/* ============================================================================
   TAK Studio — Landing hub  (warm-dark)
   Built on the shared design-system tokens (assets/css/tokens.css).
   Marketing-scale type + spacing composed here; identity (fonts, terracotta,
   warm surfaces) preserved from the system.
   ============================================================================ */

/* ---- Marketing scale + hub-local variables --------------------------------- */
:root {
  --fs-hero:    clamp(2.6rem, 1.5rem + 4.6vw, 5rem);       /* 41.6 → 80px  */
  --fs-h2:      clamp(1.95rem, 1.35rem + 2.4vw, 3rem);     /* 31 → 48px    */
  --fs-h3:      clamp(1.35rem, 1.12rem + 0.85vw, 1.75rem); /* 21.6 → 28px  */
  --fs-lead:    clamp(1.125rem, 1.02rem + 0.46vw, 1.375rem);/* 18 → 22px   */
  --fs-body:    1.0625rem;                                  /* 17px         */
  --fs-meta:    0.8125rem;                                  /* 13px mono    */

  --lh-display: 1.07;
  --lh-body:    1.62;

  --wrap-max: 1240px;
  --gutter:   clamp(1.25rem, 4.2vw, 3.75rem);
  --header-h: 76px;
  --section-py: clamp(4.5rem, 8.5vw, 8.5rem);

  --hairline: color-mix(in srgb, var(--text-primary) 14%, transparent);
  --hairline-soft: color-mix(in srgb, var(--text-primary) 8%, transparent);
  --ink-950: #0F0D0B;

  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

:root[data-theme="light"] {
  --surface-base: #F8F9FA;   /* Portal surface (cool off-white) — was warm cream #FBFAF7 */
  --surface-raised: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-elevated: #F3F1EC;
  --hairline: color-mix(in srgb, #2B2620 16%, transparent);
  --hairline-soft: color-mix(in srgb, #2B2620 9%, transparent);
  /* Warm ink + terracotta text matching the Portal app + design tokens (#E46C43 light-mode accent). */
  --text-primary: #1A1512;
  --accent-text: #E46C43;   /* Portal's exact light --accent-text (for accent TEXT); --accent #FF7C4F stays for fills */
}

/* Guard: the Rebuilto/Elementor reskin (mu-plugin tak-override.css) repurposes
   --accent as a heading ink and loads after hub.css, which would turn the
   terracotta buttons and accents dark. Reassert the brand accent on the hub
   subtree; body-level (html-qualified for specificity) so it resolves from the
   nearest ancestor and wins over the ambient :root token. */
html body.tak-hub { --accent: #FF7C4F; }

/* ---- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background-color: var(--surface-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}
:root[data-theme="dark"] body { letter-spacing: 0.006em; line-height: 1.66; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-weight: 400; line-height: var(--lh-display); text-wrap: balance; color: var(--text-primary); }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }

.font-display { font-family: var(--font-display); }
.mono {
  font-family: var(--font-mono); font-size: var(--fs-meta);
  letter-spacing: 0.02em; font-feature-settings: "tnum" 1;
}

/* ---- Layout primitives ----------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap-max)); margin-inline: auto; }
.wrap--wide { width: min(100% - (var(--gutter) * 2), 1360px); }
.section { padding-block: var(--section-py); }
.section--raised { background: var(--surface-raised); }
.nowrap { white-space: nowrap; }
section[id], #main { scroll-margin-top: calc(var(--header-h) + 14px); }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: var(--z-tooltip, 600); background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: 0 0 var(--radius-button) var(--radius-button);
  font-weight: 600; transition: transform var(--duration-fast) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.plus { display: inline-block; color: var(--accent); font-weight: 700; transform: translateY(0.02em); }

/* ---- Section headers ------------------------------------------------------- */
.sec-head { max-width: 44ch; display: flex; flex-direction: column; gap: var(--space-4); }
.sec-head--between { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.sec-head h2 { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -0.015em; }
.sec-head p { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-secondary); max-width: 52ch; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 0.55em;
  color: var(--accent-text); font-family: var(--font-mono); font-size: var(--fs-meta);
  letter-spacing: 0.04em;
}
.sec-kicker::before { content: ""; width: 1.6em; height: 1px; background: var(--accent); opacity: 0.6; }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.4em; border-radius: var(--radius-button); border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1;
  min-height: 46px; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-standard) var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(0,0,0,0.15); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); transform: translateY(-1px); box-shadow: var(--elevation-accent); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-lg { min-height: 52px; padding-inline: 1.65em; font-size: 1rem; }
.btn svg { flex: none; }
/* The parent (Rebuilto) theme colors bare <a> — a → --accent, a:hover → --primary
   — and `a:hover` (0,1,1) outranks `.btn-primary` (0,1,0), so on hover our primary
   button text flipped to the terracotta fill colour (invisible). Pin the button
   text (and its currentColor arrow) for every state, above that specificity. */
.tak-hub .btn-primary,
.tak-hub .btn-primary:link,
.tak-hub .btn-primary:visited,
.tak-hub .btn-primary:hover,
.tak-hub .btn-primary:focus,
.tak-hub .btn-primary:active { color: var(--on-accent); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: var(--text-primary); position: relative; width: fit-content; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 1.6em; bottom: -3px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-standard) var(--ease-out); }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform var(--duration-standard) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-topbar, 200); height: var(--header-h);
  display: flex; align-items: center;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color var(--duration-standard) var(--ease-out),
              border-color var(--duration-standard) var(--ease-out);
}
.site-header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--surface-base) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--hairline-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
/* Logo swaps with the header: cream lockup over the dark hero, dark lockup once the header goes light. */
.brand img.brand__logo--light { display: none; }
.site-header[data-scrolled="true"] .brand img.brand__logo--dark,
.site-header[data-menu-open="true"] .brand img.brand__logo--dark { display: none; }
.site-header[data-scrolled="true"] .brand img.brand__logo--light,
.site-header[data-menu-open="true"] .brand img.brand__logo--light { display: block; }

.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.8vw, 1.9rem); }
.nav-link { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); padding: 0.4em 0.15em; transition: color var(--duration-fast) var(--ease-out); }
.nav-link:hover { color: var(--text-primary); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.35em; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-standard) var(--ease-out); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 0.4rem; }
.nav-toggle { display: none; }
/* Over the dark hero (header transparent at top), nav links read light; they revert to ink once scrolled. */
.site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .nav-link { color: color-mix(in srgb, #F5F0E8 82%, transparent); }
.site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .nav-link:hover { color: #F5F0E8; }

/* ---- Hero (full-bleed crossfade) ------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  min-height: min(940px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink-950); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-standard); }
.hero__slide[data-active="true"] { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(98deg, var(--ink-950) 0%, color-mix(in srgb, var(--ink-950) 78%, transparent) 30%, color-mix(in srgb, var(--ink-950) 22%, transparent) 56%, transparent 78%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink-950) 72%, transparent) 0%, transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink-950) 55%, transparent) 0%, transparent 22%);
}
.hero__inner { display: flex; flex-direction: column; gap: clamp(1.35rem, 2.3vw, 2rem); padding-block: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) clamp(2rem, 5vw, 4rem); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.55em; color: color-mix(in srgb, #F5F0E8 78%, transparent); }
.hero h1 { font-family: var(--font-display); font-size: var(--fs-hero); letter-spacing: -0.018em; max-width: 16ch; color: #F8F4EC; }
.hero h1 em { font-style: normal; color: var(--accent); }  /* bright terracotta over the dark hero */
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: color-mix(in srgb, #F5F0E8 82%, transparent); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 0.3rem; }
/* Ghost button sits over the dark hero, so it reads light (theme ink would be dark-on-dark). */
.hero .btn-ghost { color: #F5F0E8; border-color: rgba(245, 240, 232, 0.35); }
.hero .btn-ghost:hover { color: #F8F4EC; border-color: var(--accent); }

.hero__cap {
  position: absolute; z-index: 1; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 1.75rem);
  display: inline-block; max-width: min(70vw, 520px); /* inline-block, not -flex: text-overflow is inert on a flex container */
  padding: 0.5em 0.85em; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink-950) 55%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245,240,232,0.16);
  color: #F5F0E8; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* ---- Division gateway ------------------------------------------------------ */
.gateway { position: relative; }
.gateway__grid {
  --gate-gap: clamp(1.5rem, 3.5vw, 3.25rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gate-gap);
  position: relative; container-type: inline-size;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
/* Height tracks the media band (columns are aspect-ratio 5/4), so the "+" lands
   at the centre of the two images rather than the full column height. */
.gateway__seam {
  /* Centered without a transform: the motion layer's revealed state sets
     transform: none on grid children, which would wipe a translateX(-50%). */
  position: absolute; inset-inline: 0; top: 0;
  height: calc((100cqw - var(--gate-gap)) * 0.4);
  z-index: 2;
  display: grid; place-items: center; pointer-events: none;
}
.gateway__seam .plus { font-size: 2rem; line-height: 1; color: var(--accent); background: var(--surface-base); width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline); }

.gate { display: flex; flex-direction: column; }
.gate__media { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-card); overflow: hidden; }
.gate__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.gate:hover .gate__media img { transform: scale(1.045); }
.gate__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--ink-950) 72%, transparent) 100%); }
.gate__tag {
  position: absolute; z-index: 1; left: var(--space-4); top: var(--space-4);
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.8em; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink-950) 50%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(245,240,232,0.18); color: #F5F0E8; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em;
}
.gate__body { padding-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.gate__body h3 { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: -0.01em; }
.gate__body p { color: var(--text-secondary); max-width: 46ch; }
.gate__services { display: flex; flex-wrap: wrap; gap: 0.4em 0.9em; margin-top: var(--space-1); color: var(--text-tertiary); font-size: 0.9rem; }
.gate__services li { display: inline-flex; align-items: center; }
.gate__services li:not(:last-child)::after { content: "·"; margin-left: 0.9em; color: var(--accent); opacity: 0.7; }
.gate__enter { margin-top: var(--space-3); }

/* ---- Integration ("why one studio") ---------------------------------------- */
.why__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why__lead h2 { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -0.015em; margin-bottom: var(--space-5); }
.why__lead h2 em { font-style: normal; color: var(--accent-text); }   /* Portal accent-text #E46C43 (accent-colored text on light) */
.why__lead p { color: var(--text-secondary); font-size: var(--fs-lead); line-height: 1.55; max-width: 46ch; }
.why__list { display: flex; flex-direction: column; }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--hairline-soft); }
.why__item:last-child { border-bottom: 1px solid var(--hairline-soft); }
.why__num { font-size: 1.5rem; font-weight: 700; line-height: calc(1.15rem * var(--lh-display)); color: var(--accent); }
.why__item h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); margin-bottom: var(--space-2); letter-spacing: -0.01em; }
.why__item p { color: var(--text-secondary); font-size: 1rem; }

/* ---- Contact --------------------------------------------------------------- */
.contact { background: var(--surface-elevated); color: var(--text-primary); }
.contact .sec-head h2, .contact .why__lead h2 { color: var(--text-primary); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__intro h2 { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -0.015em; color: var(--text-primary); }
.contact__intro p { color: var(--text-secondary); font-size: var(--fs-lead); line-height: 1.55; max-width: 42ch; margin-top: var(--space-4); }
.contact__direct { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: var(--space-3); }
.contact__direct a { display: inline-flex; align-items: center; gap: 0.6em; font-size: 1.15rem; color: var(--text-primary); width: fit-content; }
.contact__direct a:hover { color: var(--accent-text); }
.contact__direct .ico { color: var(--accent); }
.contact__meta { margin-top: var(--space-5); color: var(--text-tertiary); font-family: var(--font-mono); font-size: var(--fs-meta); }

.form { display: grid; gap: var(--space-4); background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 0.45em; }
.field label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--text-primary); background: var(--surface-base);
  border: 1px solid var(--hairline); border-radius: var(--radius-input); padding: 0.75em 0.9em; width: 100%;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form__note { color: var(--text-tertiary); font-size: 0.8rem; }
.form__privacy { line-height: 1.5; }
.form__privacy a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 0.2em; }
.form__privacy a:hover { color: var(--accent-text); }
.form__status { font-size: 0.95rem; line-height: 1.5; color: var(--text-secondary); }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { color: var(--status-active-text); }
.form__status[data-state="error"] { color: var(--status-flagged-text); }
.form[aria-busy="true"] .btn { opacity: 0.7; cursor: progress; }

/* ---- Gallery — swipeable picture row ---------------------------------------
   Kept in step with the same block in site.css. Scrolls with the wheel, a swipe
   or the keyboard on its own; site.js only adds the two arrow buttons. */
.gallery-sec .sec-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.gallery { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); }
.gallery__track {
  flex: 1 0 100%; display: flex; align-items: stretch; gap: clamp(0.75rem, 1.8vw, 1.25rem);
  list-style: none; padding: 0 0 var(--space-3); margin: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
}
/* Natural shape means the pictures are genuinely different heights: hang them
   from the top instead of stretching every card to the tallest. */
.gallery__track:has(.gallery__media--natural) { align-items: flex-start; }
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-track { background: transparent; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: var(--radius-pill); }
.gallery__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-card); }
.gallery__item { flex: 0 0 clamp(260px, 62vw, 520px); scroll-snap-align: start; }
.gallery__fig { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; background: var(--surface-card); }
.gallery__media { overflow: hidden; }
.gallery__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery__media--3-2 { aspect-ratio: 3 / 2; }
.gallery__media--4-3 { aspect-ratio: 4 / 3; }
.gallery__media--16-9 { aspect-ratio: 16 / 9; }
.gallery__media--natural img { height: auto; }
.gallery__cap { padding: var(--space-3) var(--space-4) var(--space-4); color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.gallery__nav {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--surface-card);
  color: var(--text-secondary); cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.gallery__nav:hover:not(:disabled) { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 38%, var(--hairline)); }
.gallery__nav:disabled { opacity: 0.35; cursor: default; }
.gallery__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Stacked: one picture per row with its caption beside it, the sides alternating
   down the page. No track, no arrows — site.js never sees it (no [data-gallery]).
   The row spans the full wrap, a picture column plus a text column, so the picture
   is narrower than a full-bleed one while none of the wrap is left empty. The split
   follows the picture's own shape, which sections/gallery/template.php stamps on the
   figure, so a portrait photo or a tall drawing gets a column that fits it instead of
   a band of empty page. Collapses to one column at 1024px. Keep the
   `gallery-stacked-*` slots in Helpers::SIZES in step with the columns here. */
.gallery--stacked { display: grid; justify-content: normal; gap: clamp(3rem, 6vw, 4.5rem); }
.gallery--stacked .gallery__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: clamp(1.75rem, 3.2vw, 3rem); align-items: center; width: 100%; }
/* Shapes a wide column would leave standing in empty page: give the picture a column
   it can fill, and hand the rest back to the text. Exactly one of these is stamped on
   every row, so none of them ever has to out-specify another. */
.gallery--stacked .gallery__row--square { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); }
.gallery--stacked .gallery__row--portrait { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
.gallery--stacked .gallery__row--tall { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
/* No caption — nothing to sit beside, so the picture keeps the old single column. */
.gallery--stacked .gallery__row--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-inline: auto; }
/* Sides alternate. The track list has to be mirrored as well as the cells placed:
   these columns are asymmetric, and `order` alone feeds auto-placement rather than
   moving the tracks — it would hand the picture the text's width and vice versa.
   Placing explicitly also leaves the DOM as figure → picture → figcaption. */
.gallery--stacked .gallery__row--wide:nth-of-type(even) { grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr); }
.gallery--stacked .gallery__row--square:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); }
.gallery--stacked .gallery__row--portrait:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
.gallery--stacked .gallery__row--tall:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
.gallery--stacked .gallery__row:nth-of-type(even) .gallery__media { grid-column: 2; grid-row: 1; }
.gallery--stacked .gallery__row:nth-of-type(even) .gallery__note { grid-column: 1; grid-row: 1; }
.gallery--stacked .gallery__row--solo:nth-of-type(even) .gallery__media { grid-column: 1; }
.gallery--stacked .gallery__media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-card); max-width: 100%; }
/* The column fills, and its shape already bounds the height — so no height cap here
   and nothing to letterbox. `width: auto` would be wrong: a srcset picture then takes
   its density-corrected intrinsic size, i.e. whatever `sizes` says, and leaves the
   rest of the column empty. The column drives the width; `sizes` follows it. */
.gallery--stacked .gallery__media--natural img { display: block; width: 100%; height: auto; }
.gallery--stacked .gallery__note { max-width: 60ch; color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .gallery__track { scroll-behavior: auto; }
}

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--surface-raised); border-top: 1px solid var(--hairline-soft); padding-block: clamp(3rem, 6vw, 5rem) var(--space-6); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); }
.footer__brand img { height: 34px; width: auto; margin-bottom: var(--space-4); }
.footer__brand p { color: var(--text-secondary); max-width: 34ch; font-size: 0.95rem; }
.footer__col { display: flex; flex-direction: column; }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: var(--space-4); text-transform: uppercase; }
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a { color: var(--text-secondary); font-size: 0.95rem; transition: color var(--duration-fast) var(--ease-out); }
.footer__col a:hover { color: var(--accent-text); }
.footer__bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: var(--space-5); border-top: 1px solid var(--hairline-soft); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between; color: var(--text-tertiary); font-size: 0.85rem; }
.footer__bottom nav { display: flex; gap: var(--space-5); }
.footer__bottom a:hover { color: var(--accent-text); }
/* The "Cookie settings" control is a button (the consent plugin listens for one), drawn like its sibling links. */
.footer__text-button { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__text-button:hover { color: var(--accent-text); }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  .contact__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  /* Too narrow for a picture beside its caption: back to picture, then caption. The
     row placement has to be released as well as the columns collapsed — both cells
     are pinned to row 1 above this breakpoint and would otherwise overlap. */
  .gallery--stacked .gallery__row,
  .gallery--stacked .gallery__row--wide:nth-of-type(even),
  .gallery--stacked .gallery__row--square, .gallery--stacked .gallery__row--square:nth-of-type(even),
  .gallery--stacked .gallery__row--portrait, .gallery--stacked .gallery__row--portrait:nth-of-type(even),
  .gallery--stacked .gallery__row--tall, .gallery--stacked .gallery__row--tall:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .gallery--stacked .gallery__row:nth-of-type(even) .gallery__media,
  .gallery--stacked .gallery__row:nth-of-type(even) .gallery__note { grid-column: 1; grid-row: auto; }
  /* One column now, so a tall picture needs the height cap back. */
  .gallery--stacked .gallery__media { display: flex; justify-content: center; }
  .gallery--stacked .gallery__media--natural img { width: auto; max-width: 100%; max-height: 60vh; object-fit: contain; }
}

/* Mobile nav (hamburger) */
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--surface-raised); border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg); transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), visibility 0s linear var(--duration-fast);
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-link { padding: 0.9em 0; font-size: 1.05rem; color: var(--text-primary); border-bottom: 1px solid var(--hairline-soft); }
  .nav-link::after { display: none; }
  .nav-cta { margin: var(--space-4) 0 0; }
  .btn.nav-cta { width: 100%; }
  .site-header[data-menu-open="true"] { background: color-mix(in srgb, var(--surface-base) 92%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: var(--radius-button); color: var(--text-primary); }
  .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .nav-toggle { color: #F5F0E8; border-color: rgba(245,240,232,0.3); }
  .nav-toggle .bar { display: block; width: 18px; height: 1.6px; background: currentColor; transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast); }
  .nav-toggle .bar + .bar { margin-top: 4px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .gateway__grid { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 3.5rem); }
  .gateway__seam { display: none; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { max-width: 20ch; }
  .hero__cap { display: none; }
}

/* ---- FAQ ------------------------------------------------------------------- */
.faq__list { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--hairline-soft); max-width: 80ch; }
.faq__item { border-bottom: 1px solid var(--hairline-soft); }
.faq__q {
  list-style: none; cursor: pointer; padding: var(--space-5) 0;
  font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); letter-spacing: -0.01em; color: var(--text-primary);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform var(--duration-fast) var(--ease-out); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-input); }
.faq__a { padding: 0 0 var(--space-5); }
.faq__a p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; max-width: 70ch; }
