/* base.css — the foundation every client site starts from. It has no look of its own:
   set the tokens below from the dealt palette and type system (design-taste-frontend) or the client's brand,
   then build the client's own sections on top in site/css/site.css. Delete what the site does not use.
   House rules it already follows: flat colour, no gradients except neutral scrims on photos, no shadows at rest,
   no thin rules, one radius, real focus states, 44px touch targets, reduced motion respected. */

:root {
  /* ---- palette: replace every value (dark/ink, light/paper, a second surface, one accent) ---- */
  --c-dark: #14110e;      /* deepest colour: dark sections, header when solid, footer */
  --c-dark-2: #221e1a;    /* one tone up from --c-dark: surfaces on dark */
  --c-light: #e8e7e3;     /* page ground */
  --c-light-2: #d9d8d2;   /* one tone off the ground: fields, rows, surfaces */
  --c-accent: #f2c230;    /* the one accent: primary action on dark, current state */
  --c-ink-muted: #45413b; /* secondary text on light (keep 4.5:1 against --c-light) */
  --c-fog: #b3aca1;       /* secondary text on dark (keep 4.5:1 against --c-dark) */
  --scrim: rgba(10, 8, 6, 0.45); /* flat darkening of photos under text */

  /* ---- roles (sections switch these with .dark / .light / .tint) ---- */
  --bg: var(--c-light);
  --surface: var(--c-light-2);
  --ink: var(--c-dark);
  --muted: var(--c-ink-muted);
  --btn: var(--c-dark);
  --btn-ink: var(--c-light);

  /* ---- type: replace with the dealt faces; load them in build.mjs SITE.fonts ---- */
  --font-display: 'Sentient', Georgia, 'Times New Roman', serif;
  --font-text: 'Sentient', Georgia, 'Times New Roman', serif;
  --display-case: none;
  --display-weight: 300;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 1rem + 6.4vw, 7rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 13vw, 13rem);
  --radius: 0px; /* one radius for the whole site: 0, or fully round buttons — decide once */
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

.dark { --bg: var(--c-dark); --surface: var(--c-dark-2); --ink: var(--c-light); --muted: var(--c-fog); --btn: var(--c-accent); --btn-ink: var(--c-dark); background: var(--bg); color: var(--ink); }
.light { --bg: var(--c-light); --surface: var(--c-light-2); --ink: var(--c-dark); --muted: var(--c-ink-muted); --btn: var(--c-dark); --btn-ink: var(--c-light); background: var(--bg); color: var(--ink); }
.tint { --bg: var(--c-light-2); --surface: var(--c-light); background: var(--bg); color: var(--ink); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--c-light); color: var(--c-dark); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; } /* note: write ul.my-list when a list needs its own padding */
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 6rem; }
::selection { background: var(--c-accent); color: var(--c-dark); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.light :focus-visible, .tint :focus-visible { outline-color: var(--c-dark); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); font-weight: var(--display-weight); line-height: 0.92; letter-spacing: -0.035em; text-transform: var(--display-case); }
.head { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; } /* note: a full-width row built as <p> needs max-width: none */
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: 1rem; z-index: 100; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; background: var(--c-accent); color: var(--c-dark); padding: 0.75rem 1rem; font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.skip:focus { clip-path: none; width: auto; height: auto; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.5rem; background: var(--btn); color: var(--btn-ink); border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.textlink { display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 2px; transition: text-decoration-color var(--t-hover) ease; }
.arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--bg); }
  .button:hover .arrow, .textlink:hover .arrow { transform: translateX(4px); }
  .textlink:hover { text-decoration-color: currentColor; }
}

/* ---------- header and phone menu ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: var(--margin); color: var(--c-light); transition: background-color var(--t-ui) ease, transform 320ms var(--ease-out); }
.site-header.is-solid { background: var(--c-dark); }
.site-header.is-hidden { transform: translateY(-100%); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; min-height: 2.75rem; display: inline-flex; align-items: center; }
.wordmark img { height: 2rem; width: auto; background: none; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a:not(.button) { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.nav a[aria-current="page"]::after, .nav a:not(.button):hover::after { transform: none; }
.nav .button { --btn: var(--c-accent); --btn-ink: var(--c-dark); min-height: 2.75rem; }
.menu-toggle { display: none; font-family: var(--font-display); font-weight: 700; font-size: 1rem; min-height: 2.75rem; min-width: 2.75rem; color: inherit; }
.menu { position: fixed; inset: 0; z-index: 60; background: var(--c-dark); color: var(--c-light); padding: calc(var(--header-h) + 2rem) var(--margin) 2rem; display: none; flex-direction: column; justify-content: space-between; }
.menu.is-open { display: flex; }
.menu__links a { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 12vw, 5rem); line-height: 1.05; letter-spacing: -0.035em; text-transform: var(--display-case); text-decoration: none; padding-block: 0.2rem; }
.menu__close { position: absolute; top: 0; right: var(--margin); height: var(--header-h); font-family: var(--font-display); font-weight: 700; min-width: 2.75rem; }
.menu__foot { display: grid; gap: 0.5rem; }
.menu__foot a { min-height: 2.75rem; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: no-preference) { .menu.is-open .menu__links a { animation: rise 600ms var(--ease-out) both; } .menu.is-open .menu__links a:nth-child(2) { animation-delay: 60ms; } .menu.is-open .menu__links a:nth-child(3) { animation-delay: 120ms; } .menu.is-open .menu__links a:nth-child(4) { animation-delay: 180ms; } .menu.is-open .menu__links a:nth-child(5) { animation-delay: 240ms; } }
@media (max-width: 860px) { .nav { display: none; } .menu-toggle { display: inline-flex; align-items: center; } }

/* ---------- page head: a photo or film with the title (home hero default; components can replace it) ---------- */
.page-head { position: relative; min-height: 88svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--c-light); background: var(--c-dark); overflow: hidden; isolation: isolate; }
.page-head.full { min-height: 100svh; }
.page-head > img, .page-head > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.page-head__inner { padding: 0 var(--margin) clamp(1.5rem, 3vw, 3rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; row-gap: 1.25rem; }
.page-head h1 { grid-column: 1 / 9; }
.page-head .lead, .page-head__cta { grid-column: 9 / 13; }
.film-toggle { position: absolute; right: var(--margin); top: calc(var(--header-h) + 0.75rem); z-index: 2; min-height: 2.75rem; min-width: 2.75rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--c-light); }
.film-toggle svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 860px) { .page-head h1, .page-head .lead, .page-head__cta { grid-column: 1 / -1; } .page-head { min-height: 78svh; } .page-head h1 { font-size: 11vw; } }

/* ---------- intro: heading left, statement right ---------- */
.intro { padding-top: var(--section); padding-bottom: clamp(3rem, 6vw, 6rem); }
.intro h2 { grid-column: 1 / 8; }
.intro__text { grid-column: 8 / 13; align-self: end; font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem); line-height: 1.35; max-width: 34ch; }
@media (max-width: 860px) { .intro h2, .intro__text { grid-column: 1 / -1; } .intro__text { margin-top: 1.5rem; } }

/* ---------- panels: photos side by side with a heading and link (services, categories) ---------- */
.panels { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 4px; background: var(--c-dark); }
.panel { position: relative; min-height: min(88svh, 52rem); color: var(--c-light); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.25rem, 2.4vw, 2.5rem); overflow: hidden; text-decoration: none; isolation: isolate; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--ease-soft); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.panel h3 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); font-weight: var(--display-weight); line-height: 0.92; letter-spacing: -0.035em; text-transform: var(--display-case); }
.panel p { margin-top: 1rem; max-width: 30ch; }
.panel .textlink { margin-top: 1rem; }
@media (hover: hover) and (pointer: fine) { .panel:hover img { transform: scale(1.05); } .panel:hover .arrow { transform: translateX(4px); } }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; } .panel { min-height: 70svh; } }

/* ---------- card over a full-bleed photo (reasons, values, a short list) ---------- */
.over { position: relative; min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: clamp(4rem, 9vw, 9rem) var(--margin); isolation: isolate; overflow: clip; }
.over > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.over__card { grid-column: 7 / 13; align-self: center; background: var(--c-light); color: var(--c-dark); padding: clamp(1.75rem, 4vw, 4rem); }
.over__card h2 { font-size: clamp(3rem, 1.5rem + 4.5vw, 6.5rem); font-weight: var(--display-weight); line-height: 0.88; letter-spacing: -0.045em; text-transform: var(--display-case); }
.over__list { margin-top: clamp(1.75rem, 3vw, 2.75rem); display: grid; gap: 1.5rem; }
.over__list h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); letter-spacing: -0.02em; line-height: 1; text-transform: var(--display-case); }
.over__list p { margin-top: 0.4rem; }
@media (max-width: 860px) { .over { padding: 0; min-height: 0; display: block; } .over > img { position: static; height: 62svh; } .over__card { padding: 2rem var(--margin) 0; } }

/* ---------- project list with filters and a hover preview ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px; padding: clamp(2.5rem, 5vw, 4rem) var(--margin) 1.5rem; }
.filters button { min-height: 2.75rem; padding: 0 1.1rem; background: var(--surface); font-family: var(--font-display); font-weight: 700; font-size: 1rem; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.filters button[aria-pressed="true"] { background: var(--c-dark); color: var(--c-light); }
.filters button:active { transform: scale(0.96); }
ul.index { position: relative; padding: 0 var(--margin) var(--section); }
.index__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 0.8fr); gap: var(--gutter); align-items: center; padding-block: 1.1rem; text-decoration: none; }
.index__thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.index__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.75rem, 0.8rem + 2.8vw, 3.5rem); line-height: 0.95; letter-spacing: -0.04em; text-transform: var(--display-case); transition: transform var(--t-ui) var(--ease-out); }
.index__meta { font-size: 1rem; color: var(--muted); }
.index__meta:last-child { text-align: right; }
.index li[hidden] { display: none; }
.index__frame { position: fixed; z-index: 5; width: min(26vw, 380px); aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; visibility: hidden; transform: scale(0.96); right: calc(var(--margin) + 22%); top: 0; transition: opacity 220ms ease, transform 320ms var(--ease-out), visibility 0s linear 220ms; }
.index__frame.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms ease, transform 320ms var(--ease-out); }
.index__frame img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .index__row:hover .index__name { transform: translateX(0.5rem); } }
@media (max-width: 860px) {
  .index__row { grid-template-columns: 1fr auto; row-gap: 0.75rem; }
  .index__thumb { grid-column: 1 / -1; order: -1; }
  .index__name { grid-column: 1 / -1; font-size: 9vw; }
  .index__meta:nth-of-type(3) { display: none; }
  .index__frame { display: none; }
}

/* ---------- project page ---------- */
.project-intro { padding: var(--section) var(--margin) clamp(3rem, 6vw, 6rem); }
.project-intro__text { grid-column: 1 / 7; }
.project-intro__text h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.facts { grid-column: 8 / 13; display: grid; grid-template-columns: auto 1fr; gap: 4px; align-self: start; }
.facts dt, .facts dd { padding: 0.85rem 1rem; background: var(--surface); font-size: 1rem; }
.facts dt { color: var(--muted); font-family: var(--font-display); font-weight: 700; }
.film-full { padding: 0 var(--margin); }
.film-full video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--c-dark); }
.film-full .still img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.gallery { padding: var(--section) var(--margin) 0; }
.gallery h2 { font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1; }
.gallery__grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.gallery__grid button { position: relative; overflow: hidden; display: block; cursor: zoom-in; background: var(--surface); }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .gallery__grid button:hover img { transform: scale(1.04); } }
.gallery__grid button:nth-child(6n+1) { grid-column: span 8; aspect-ratio: 3 / 2; }
.gallery__grid button:nth-child(6n+2) { grid-column: span 4; }
.gallery__grid button:nth-child(6n+3), .gallery__grid button:nth-child(6n+4), .gallery__grid button:nth-child(6n+5) { grid-column: span 4; aspect-ratio: 4 / 5; }
.gallery__grid button:nth-child(6n+6) { grid-column: span 12; aspect-ratio: 21 / 9; }
.strip { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 4px; margin-top: 1.5rem; }
.strip a { display: block; text-decoration: none; }
.strip li { overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.strip span { display: block; padding-top: 0.75rem; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
@media (hover: hover) and (pointer: fine) { .strip a:hover img { transform: scale(1.04); } }
.up-next { position: relative; margin-top: var(--section); min-height: 70svh; color: var(--c-light); text-decoration: none; overflow: hidden; isolation: isolate; padding: clamp(1.5rem, 3vw, 3rem) var(--margin); display: flex; flex-direction: column; justify-content: space-between; }
.up-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--ease-soft); }
.up-next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.up-next .small { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.up-next h2 { font-size: var(--step-display); font-weight: var(--display-weight); line-height: 0.9; letter-spacing: -0.045em; text-transform: var(--display-case); }
@media (hover: hover) and (pointer: fine) { .up-next:hover img { transform: scale(1.04); } }
@media (max-width: 860px) {
  .project-intro__text, .facts { grid-column: 1 / -1; }
  .facts { margin-top: 2rem; }
  .gallery__grid button { grid-column: span 12 !important; aspect-ratio: 3 / 2 !important; }
  .gallery__grid button:nth-child(3n+2), .gallery__grid button:nth-child(3n+3) { grid-column: span 6 !important; aspect-ratio: 4 / 5 !important; }
  .strip { grid-template-columns: 1fr 1fr; }
  .film-full .still img { aspect-ratio: 4 / 3; }
}

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: var(--c-dark); color: var(--c-light); }
.lightbox::backdrop { background: var(--c-dark); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar, .lightbox__nav { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem var(--margin); font-family: var(--font-display); font-weight: 700; }
.lightbox button { min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.75rem; color: var(--c-light); font-family: var(--font-display); font-weight: 700; }
.lightbox figure { display: grid; place-items: center; padding: 0 var(--margin); min-height: 0; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; height: auto; background: transparent; }

/* ---------- a sentence of names, one lit at a time ---------- */
.names { padding-block: clamp(4rem, 8vw, 7.5rem); }
.names p { max-width: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; }
.names .name { color: var(--muted); transition: color 400ms ease; }
.names .name.is-lit, .names .lead-in { color: var(--ink); }

/* ---------- contact: big rows, then the request form ---------- */
.rows { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); }
.rows__head { padding: 0 var(--margin) clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.25rem; align-items: end; }
.rows__head h1 { grid-column: 1 / 8; font-size: var(--step-display); font-weight: var(--display-weight); line-height: 0.9; letter-spacing: -0.045em; text-transform: var(--display-case); }
.rows__head .lead { grid-column: 8 / 13; }
.rows ul > li { display: flex; align-items: flex-end; gap: 0.3em; min-height: clamp(5.5rem, 10vw, 9.5rem); padding: 0 var(--margin) clamp(0.75rem, 1.6vw, 1.5rem); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 0.6rem + 4.6vw, 5.5rem); line-height: 1; letter-spacing: -0.035em; }
.rows ul > li:nth-child(odd) { background: var(--surface); }
.rows ul > li a { text-decoration: none; overflow-wrap: anywhere; }
.rows ul > li a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.request { padding: var(--section) var(--margin); }
.request__head { grid-column: 1 / 6; }
.request__head h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.request__head p { margin-top: 1.25rem; max-width: 36ch; }
.request form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem var(--gutter); }
.field-wrap { display: grid; gap: 0.45rem; }
.field-wrap.full { grid-column: 1 / -1; }
.field-wrap label, .field-wrap legend { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.field-wrap .hint { font-size: 0.9375rem; color: var(--muted); }
.field { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.95rem; background: var(--surface); border: 2px solid transparent; border-radius: var(--radius); font-size: max(1rem, var(--step-body)); transition: border-color var(--t-hover) ease; }
.field:focus { outline: none; border-color: var(--c-dark); }
textarea.field { min-height: 9rem; resize: vertical; }
.field[aria-invalid="true"] { border-color: #b3261e; }
.error { color: #b3261e; font-size: 0.9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; border: 0; padding: 0; margin: 0; }
.chips legend { width: 100%; margin-bottom: 0.45rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; background: var(--surface); font-family: var(--font-display); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color var(--t-hover) ease; }
.chips input:checked + span { background: var(--c-dark); color: var(--c-light); }
.chips input:focus-visible + span { outline: 2px solid var(--c-dark); outline-offset: 2px; }
.form-status { grid-column: 1 / -1; font-size: 1rem; }
@media (max-width: 860px) { .rows__head h1, .rows__head .lead, .request__head, .request form { grid-column: 1 / -1; } .rows__head h1 { font-size: 12vw; } .request form { margin-top: 2rem; grid-template-columns: 1fr; } }

/* ---------- footer: invitation, links, the name cropped at full width ---------- */
.site-footer { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(5rem, 10vw, 9rem) var(--margin) 0; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.footer__invite { grid-column: 1 / 8; }
.footer__invite h2 { font-size: clamp(2.75rem, 1rem + 5vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; max-width: 12ch; }
.footer__invite .button { margin-top: 2rem; }
.footer__links { grid-column: 9 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem var(--gutter); align-content: start; }
.footer__links h3 { font-size: 1rem; color: var(--muted); font-weight: 700; margin-bottom: 0.35rem; }
.footer__links a { display: flex; align-items: center; min-height: 2.5rem; text-decoration: none; font-size: 1rem; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer__legal { margin-top: auto; padding-top: clamp(4rem, 8vw, 7rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: var(--step-small); color: var(--muted); }
.footer__name { max-width: none; font-family: var(--font-display); font-weight: 800; text-transform: var(--display-case); font-size: var(--footer-name, 30vw); line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap; margin: 0.5rem 0 0 -0.04em; transform: translateY(22%); user-select: none; }
@media (max-width: 860px) { .footer__invite, .footer__links { grid-column: 1 / -1; } }

/* ---------- motion helpers (content stays visible without JavaScript and with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .drift { animation: drift 24s var(--ease-soft) infinite alternate; }
}
.shutter { overflow: hidden; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1%, -1%); } }
