/* =================================================================
   XTEMPLATES · 12 layout archetypes (the structural variety).
   Generic section components first, then body.x-<arch> overrides.
   ================================================================= */

/* ---- generic components --------------------------------------- */
.x-pad { padding-top: 96px; }            /* clears fixed top menus */
.sec-head { display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 34px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.6rem, 4vw, 3rem); }

.svc { padding: 22px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 48px 1fr; gap: 8px 18px;
  align-items: baseline; }
.svc-n { font-family: var(--font-mono); color: var(--accent);
  font-size: 13px; }
.svc h3 { font-size: clamp(1.3rem, 3vw, 2.1rem); }
.svc p { grid-column: 2; color: var(--muted); font-size: 0.95rem; }

.works { display: grid; gap: 14px;
  grid-template-columns: repeat(var(--cols, 3), 1fr); }
.work { aspect-ratio: 4/3; display: flex; align-items: flex-end;
  padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform 0.25s ease; }
.work:hover { transform: translateY(-4px); }
.work-meta { font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  padding: 6px 10px; border-radius: 4px; }

.clients { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; }
.clients span { font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.7rem); }

.contact { display: flex; flex-direction: column; gap: 20px; }
.contact .mail { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 7vw, 5rem); letter-spacing: -0.03em; }
.socials { display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); }

.x-footer { padding: 30px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ====== 1 · FULLBLEED ========================================== */
.x-fullbleed .hero { min-height: 100vh; display: flex;
  flex-direction: column; justify-content: center; }
.x-fullbleed .hero h1 { font-size: clamp(3rem, 13vw, 11rem);
  line-height: 0.9; }
.x-fullbleed .hero .lead { max-width: 620px; margin-top: 26px; }

/* ====== 2 · SPLIT ============================================== */
.x-split .split { display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh; }
.x-split .split-l { position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px 6vw 50px; background: var(--soft); }
.x-split .split-l h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.x-split .split-r { padding: 110px 6vw 60px; }
@media (max-width: 860px) { .x-split .split { grid-template-columns: 1fr; }
  .x-split .split-l { position: static; height: auto; min-height: 60vh; } }

/* ====== 3 · MAGAZINE =========================================== */
.x-magazine .masthead { text-align: center; padding: 40px 0 22px;
  border-bottom: 3px solid var(--fg); }
.x-magazine .masthead h1 { font-size: clamp(2.6rem, 9vw, 7rem); }
.x-magazine .cols { columns: 3; column-gap: 34px; margin-top: 34px; }
.x-magazine .cols p { margin-bottom: 14px; }
.x-magazine .cols p:first-child::first-letter { font-family: var(--font-display);
  font-weight: 800; font-size: 3.4em; line-height: 0.8; float: left;
  padding: 4px 8px 0 0; }
@media (max-width: 860px) { .x-magazine .cols { columns: 1; } }

/* ====== 4 · BRUTALIST ========================================== */
.x-brutalist { --radius: 0px; }
.x-brutalist .blocks > * { border: 3px solid var(--fg); padding: 28px; }
.x-brutalist .blocks { display: grid; gap: 0; }
.x-brutalist .blocks > * + * { margin-top: -3px; }
.x-brutalist h1 { font-size: clamp(3rem, 12vw, 9rem); text-transform: uppercase;
  line-height: 0.85; }
.x-brutalist .grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.x-brutalist .grid2 > * { border: 3px solid var(--fg); margin: -1.5px;
  padding: 28px; }
.x-brutalist .work { border: 3px solid var(--fg); border-radius: 0; }

/* ====== 5 · BENTO ============================================= */
.x-bento .bento { display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto); }
.x-bento .bento > * { border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: flex;
  flex-direction: column; justify-content: space-between; }
.x-bento .b-hero { grid-column: span 2; grid-row: span 2;
  background: var(--soft); }
.x-bento .b-hero h1 { font-size: clamp(2rem, 5vw, 4rem); }
.x-bento .b-wide { grid-column: span 2; }
.x-bento .b-accent { background: var(--accent); color: var(--accent-fg); }
@media (max-width: 860px) { .x-bento .bento { grid-template-columns: 1fr 1fr; }
  .x-bento .b-hero { grid-column: span 2; } }

/* ====== 6 · SIDEBAR =========================================== */
.x-sidebar .layout { display: grid;
  grid-template-columns: 280px 1fr; gap: 0; }
.x-sidebar .aside { position: sticky; top: 0; height: 100vh;
  padding: 120px 32px 40px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; }
.x-sidebar .aside h1 { font-size: 2rem; }
.x-sidebar .main { padding: 120px 5vw 60px; }
@media (max-width: 860px) { .x-sidebar .layout { grid-template-columns: 1fr; }
  .x-sidebar .aside { position: static; height: auto; } }

/* ====== 7 · MINIMAL =========================================== */
.x-minimal .narrow { max-width: 680px; margin: 0 auto; }
.x-minimal .hero { padding: 16vh 0 8vh; }
.x-minimal .hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.x-minimal .works { --cols: 1; }
.x-minimal .work { aspect-ratio: auto; padding: 22px 0; border: 0;
  border-top: 1px solid var(--line); }

/* ====== 8 · CARDS ============================================= */
.x-cards .hero { padding: 14vh 0 7vh; }
.x-cards .hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
.x-cards .card-grid { display: grid; gap: 22px;
  grid-template-columns: repeat(var(--cols, 3), 1fr); }
.x-cards .card { border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s; }
.x-cards .card:hover { transform: translateY(-6px); }
.x-cards .card .media { aspect-ratio: 16/10; }
.x-cards .card .cap { padding: 16px 18px; display: flex;
  justify-content: space-between; gap: 10px; }
.x-cards .card .cap .mono { font-size: 11px; color: var(--muted); }

/* ====== 9 · ASYMMETRIC ======================================== */
.x-asym .hero { display: grid; grid-template-columns: 2fr 9fr 1fr;
  align-items: end; min-height: 78vh; }
.x-asym .hero .col-lab { writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); }
.x-asym .hero h1 { grid-column: 2; font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.86; }
.x-asym .offset { margin-left: 30%; max-width: 560px; }
@media (max-width: 860px) { .x-asym .hero { grid-template-columns: 1fr; }
  .x-asym .hero h1 { grid-column: 1; } .x-asym .offset { margin-left: 0; } }

/* ====== 10 · HORIZONTAL ======================================= */
.x-horizontal .hero { min-height: 70vh; display: flex; align-items: center; }
.x-horizontal .hero h1 { font-size: clamp(2.6rem, 9vw, 7rem); }
.x-horizontal .strip { display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 18px; scroll-snap-type: x mandatory; }
.x-horizontal .strip .work { flex: 0 0 min(70vw, 460px);
  scroll-snap-align: start; aspect-ratio: 3/4; }

/* ====== 11 · POSTER =========================================== */
.x-poster .poster { min-height: 100vh; display: flex; flex-direction: column;
  justify-content: space-between; padding: 90px 0 40px; }
.x-poster .poster h1 { font-size: clamp(3.4rem, 18vw, 16rem); line-height: 0.82;
  text-transform: uppercase; letter-spacing: -0.04em; }
.x-poster .meta-row { display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ====== 12 · DUOTONE ========================================== */
.x-duotone .row { display: grid; grid-template-columns: 1fr 1fr;
  min-height: 70vh; }
.x-duotone .row .media { min-height: 320px; }
.x-duotone .row .txt { padding: 8vh 6vw; display: flex;
  flex-direction: column; justify-content: center; gap: 18px; }
.x-duotone .row:nth-child(even) .media { order: 2; }
.x-duotone .row h2 { font-size: clamp(1.8rem, 5vw, 3.4rem); }
@media (max-width: 860px) { .x-duotone .row { grid-template-columns: 1fr; }
  .x-duotone .row:nth-child(even) .media { order: 0; } }
