/* ============================================================
   HOWLING MEDIA
   Brand kit v2, September 2026. Paper ground, ink type, one red
   element per section, Archivo throughout, one serif line.
   One easing curve. No shadows, no gradients as decoration.
   ============================================================ */

:root {
  --ink: #0D0D0D;
  --paper: #FFFFFF;
  --red: #A31419;
  --red-hover: #8C1015;
  --grey: #6B6B6B;
  --surface: #F5F5F7;
  --line: #E6E6EA;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 600ms;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;

  --wrap: 1320px;
  --pad: clamp(20px, 5vw, 72px);
  --section: clamp(96px, 12vw, 180px);
  --nav-h: 72px;
  --radius: 12px;
}

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-normal-100-900-w62-125.woff2") format("woff2-variations"),
       url("assets/fonts/archivo-normal-100-900-w62-125.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-italic-400-800.woff2") format("woff2-variations"),
       url("assets/fonts/eb-garamond-italic-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--grey) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
p, dd, li { text-wrap: pretty; }
[id], .tile-media, .btn, input, textarea, select { scroll-margin-top: calc(var(--nav-h) + 24px); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p a, .direct a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color var(--t-fast) var(--ease); }
p a:hover, .direct a:hover { text-decoration-color: var(--ink); }

/* ---------- Browser surfaces ---------- */

::selection { background: var(--ink); color: var(--paper); }
.band ::selection, .hero ::selection { background: var(--paper); color: var(--ink); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--paper); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--grey); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
input, textarea, select { caret-color: var(--red); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.skip-link:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- Type roles ---------- */

h1 { font-weight: 800; font-size: clamp(2.75rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; max-width: 18ch; }
h3 { font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: normal; color: var(--red); display: inline-block; }
h1 em[data-counter] { font-variant-numeric: tabular-nums; text-align: left; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.line { display: block; will-change: transform; }
.lead { font-size: clamp(1.1875rem, 1.9vw, 1.4375rem); line-height: 1.45; letter-spacing: -0.012em; max-width: 34ch; }
p { max-width: 62ch; }
.quiet { color: var(--grey); }
.say { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.22; letter-spacing: -0.005em; max-width: 24ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: 0; white-space: nowrap;
  background: var(--red); color: var(--paper);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--red-hover); }
.btn:active { transform: scale(0.97); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--paper); color: var(--ink); opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: transparent; border-color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink); opacity: 0.9; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: var(--paper);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.nav.is-scrolled { background: rgba(255, 255, 255, 0.74); color: var(--ink); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
body.menu-open .nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-transparency: reduce) { .nav.is-scrolled { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav.is-scrolled::after { opacity: 1; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lockup { display: flex; align-items: center; height: 44px; }
.lockup img { height: 17px; width: auto; }
.lockup .wm-ink { display: none; }
.nav.is-scrolled .lockup .wm-paper, body.menu-open .lockup .wm-paper { display: none; }
.nav.is-scrolled .lockup .wm-ink, body.menu-open .lockup .wm-ink { display: block; }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-links a { position: relative; padding: 6px 0; opacity: 0.86; transition: opacity var(--t-fast) var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.nav-links a:hover, .nav-links a.is-current { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-cta { height: 40px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav-toggle { transition: transform var(--t-fast) var(--ease); }
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle span { position: absolute; left: 12px; width: 20px; height: 2px; background: currentColor; transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--paper); color: var(--ink);
  padding: calc(var(--nav-h) + 24px) var(--pad) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity var(--t-med) var(--ease); overscroll-behavior: contain;
}
.menu.is-open { opacity: 1; }
.menu li { opacity: 0; transform: translateY(14px); transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.menu li:nth-child(2) { transition-delay: 50ms; }
.menu li:nth-child(3) { transition-delay: 100ms; }
.menu li:nth-child(4) { transition-delay: 150ms; }
.menu.is-open li { opacity: 1; transform: none; }
.menu ul { display: grid; gap: 8px; }
.menu a:not(.btn) { display: block; font-weight: 800; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.03em; line-height: 1.1; padding: 6px 0; }
.menu .btn { width: 100%; height: 56px; font-size: 16px; }
body.menu-open .nav { color: var(--ink); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--paper); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.hero-media video.is-live { opacity: 1; }
/* Legibility scrim, functional: the copy sits low-left over moving pictures. */
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 13, 13, 0.72) 0%, rgba(13, 13, 13, 0.28) 45%, rgba(13, 13, 13, 0.12) 100%); }
.hero-inner { position: relative; padding: calc(var(--nav-h) + 56px) 0 clamp(48px, 7vh, 88px); }
.hero h1 { max-width: 13ch; font-size: clamp(2.75rem, 6.6vw, 5.75rem); }
.hero-pause {
  position: absolute; right: var(--pad); bottom: 28px; z-index: 3;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(13, 13, 13, 0.55); color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600; line-height: 1;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.hero-pause:hover { border-color: var(--paper); }
.hero-pause:active { transform: scale(0.96); }
html:not(.motion) .hero-pause { display: none; }
@media (prefers-reduced-transparency: reduce) { .hero-pause { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.hero .lead { margin-top: 28px; color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--red); margin-top: 22px; }
.section-head .lead { margin-top: 20px; }

/* ---------- Positioning ---------- */

.position { padding: clamp(88px, 11vw, 160px) 0 clamp(72px, 9vw, 120px); }
.position-statement { font-weight: 800; font-size: clamp(1.75rem, 3.5vw, 3.125rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 24ch; text-wrap: balance; }
.position-statement em { font-style: normal; color: var(--red); }
.position-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.position-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); }
.position-photo img { width: 100%; height: 100%; object-fit: cover; }
.beats { margin-top: clamp(36px, 4.5vw, 64px); display: grid; gap: 18px; }
.beats p { font-size: 1.0625rem; line-height: 1.6; max-width: 54ch; }
.beats strong { font-weight: 700; }

/* ---------- Section pictures: framed in the grid, under the heading, slow parallax inside the frame ---------- */

.section-photo { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); margin: 0 0 clamp(48px, 6vw, 80px); }
.section-photo img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* ---------- Work ---------- */

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); }
.tile { grid-column: span 6; }
.tile-lead { grid-column: span 12; }
.tile-media {
  display: block; position: relative; width: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); aspect-ratio: 16 / 10; text-align: left; isolation: isolate;
}
.tile-lead .tile-media { aspect-ratio: 21 / 9; }
.tile-frame { display: block; position: absolute; inset: 0; transition: transform 700ms var(--ease); will-change: transform; }
.tile-media img, .tile-media video { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.tile-media video { opacity: 0; transition: opacity 320ms var(--ease); }
.tile-media:active .tile-frame { transform: scale(0.99); transition-duration: var(--t-fast); }
.tile-media video.is-live { opacity: 1; }
.tile-pill {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: transform var(--t-med) var(--ease);
}
.tile-pill::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--ink); }
.tile-media:focus-visible { outline-offset: 4px; }
.tile-text { display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-items: baseline; margin-top: 18px; }
.tile-text h3 { grid-column: 1; }
.tile-text .meta { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 500; color: var(--grey); white-space: nowrap; }
.tile-text p { grid-column: 1 / -1; margin-top: 2px; max-width: 58ch; }
.case-more { grid-column: 1 / -1; margin-top: 4px; }
.case-toggle { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink); }
.case-toggle { transition: transform var(--t-fast) var(--ease); }
.case-toggle:active { transform: scale(0.98); }
.case-toggle::-webkit-details-marker { display: none; }
.case-toggle::marker { content: ""; }
.case-icon { position: relative; width: 18px; height: 18px; }
.case-icon::before, .case-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.case-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 240ms var(--ease); }
details[open] .case-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.when-open { display: none; }
details[open] .when-open { display: inline; }
details[open] .when-closed { display: none; }
.case-panel { overflow: hidden; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding-top: 6px; }
.case > div { border-top: 1px solid var(--line); padding: 14px 0 16px; }
.case dt { font-size: 13px; font-weight: 600; color: var(--grey); margin-bottom: 4px; }
.case dd { font-size: 16px; line-height: 1.55; max-width: 52ch; }
.tile:not(.tile-lead) .case { grid-template-columns: 1fr; }
.tile-media { will-change: transform, opacity; }

/* ---------- What we do: four families ---------- */

.families { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 40px; }
.family { position: relative; padding-top: 20px; --rule: 1; }
.family::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(var(--rule)); transform-origin: left; }
.family h3 { font-size: 1.25rem; margin-bottom: 18px; }
.family li { position: relative; padding: 14px 0; border-top: 1px solid var(--line); }
.family li strong { display: block; font-weight: 600; font-size: 16px; line-height: 1.35; }
.family li span { display: block; font-size: 15px; line-height: 1.5; color: var(--grey); margin-top: 3px; }
.family li::after { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease); }
.services-network { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 56ch; }

/* ---------- How it works: the page's focal moment, a pinned timeline ---------- */

.process-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-left { position: relative; }
.process-left .lead { margin-top: 20px; max-width: 30ch; }
.process-stage { display: none; margin-top: clamp(40px, 5vw, 64px); }
.process.is-live .process-stage { display: block; }
.stage-n { display: block; font-weight: 800; font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--red); margin-bottom: 20px; }
.stage-title { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.02em; }
.stage-body { margin-top: 14px; font-size: 1.125rem; line-height: 1.5; max-width: 34ch; }
.stage-detail { margin-top: 12px; font-size: 16px; color: var(--grey); max-width: 40ch; }
.process-stage > * { transition: opacity 200ms var(--ease), transform 200ms var(--ease), filter 200ms var(--ease); }
.process-stage.is-swapping > * { opacity: 0; transform: translateY(6px); filter: blur(4px); }
.process-right { display: grid; gap: 24px; align-content: start; }
.process-list-wrap { position: relative; }
.process-list { display: grid; gap: 0; padding-left: 0; }
.stage-stack { display: none; position: relative; width: min(100%, 460px); aspect-ratio: 16 / 10; margin-top: 12px; }
.process.is-live .stage-stack { display: block; }
.scard { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); transform-origin: 50% 100%; opacity: 0; will-change: transform, opacity; }
.scard img { width: 100%; height: 100%; object-fit: cover; }
.pstep-photo { margin-top: 14px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; max-width: 460px; background: var(--surface); }
.pstep-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-height: 820px) { .stage-stack { width: min(100%, 380px); } }
.process-line { position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.process-line-fill { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(1); }
.process.is-live .process-line-fill { transform: scaleY(0); }
.pstep { display: grid; grid-template-columns: 32px 1fr; gap: 20px; padding: 12px 0; color: var(--ink); transition: color 200ms var(--ease); position: relative; }
.pstep-n { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 14px; transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
.pstep h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; padding-top: 3px; }
.pstep-go { font: inherit; letter-spacing: inherit; text-align: left; cursor: default; display: inline-flex; align-items: center; min-height: 44px; margin: -9px 0; transition: transform var(--t-fast) var(--ease); }
.process.is-live .pstep-go:active { transform: scale(0.98); }
.process.is-live .pstep-go { cursor: pointer; }
.pstep-body { margin-top: 8px; display: grid; gap: 6px; }
.pstep-body p { font-size: 16px; line-height: 1.55; max-width: 48ch; }
.process.is-live .pstep-body { display: none; }
.process.is-live .pstep { color: var(--grey); }
.process.is-live .pstep-n { border-color: var(--line); color: var(--grey); }
.process.is-live .pstep.is-done, .process.is-live .pstep.is-active { color: var(--ink); }
.process.is-live .pstep.is-done .pstep-n { border-color: var(--red); color: var(--red); }
.process.is-live .pstep.is-active .pstep-n { border-color: var(--red); background: var(--red); color: var(--paper); }
.process-close { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }

/* ---------- AI ---------- */

.ai-top { display: grid; gap: 22px; }
.ai-top .lead { max-width: 40ch; }
.uses { margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--ink); }
.use { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.use dt { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; }
.use dd { font-size: 17px; line-height: 1.55; max-width: 54ch; }
.band { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 150px) 0; }
.band p { font-weight: 500; font-size: clamp(1.5rem, 2.9vw, 2.25rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 26ch; }
.band p + p { margin-top: 1.2em; }

/* ---------- Who ---------- */

.who-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.who-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); }
.who-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.who-text p { margin-top: 24px; }
.who-text p.lead { margin-top: 28px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.booking { display: none; margin-top: clamp(40px, 5vw, 64px); max-width: 760px; background: var(--surface); border-radius: var(--radius); padding: 20px; }
.has-booking .booking { display: block; }
.booking h3 { margin-bottom: 12px; }
.booking-frame { min-height: 480px; border-radius: 8px; overflow: hidden; background: var(--paper); }
.booking-iframe { display: block; width: 100%; height: 500px; border: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid transparent; border-radius: var(--radius); padding: 14px 16px; min-height: 50px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230D0D0D' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { display: none; font-size: 14px; line-height: 1.4; color: var(--red); }
.field [aria-invalid="true"] ~ .field-error { display: block; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 15px; color: var(--grey); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; font-size: 16px; }
.form-msg.is-error { color: var(--red); }
.form-success { background: var(--surface); border-radius: var(--radius); padding: 36px 32px; }
.form-success:focus { outline: none; }
.form-success h3 { margin-bottom: 8px; }
.direct h3 { margin-bottom: 8px; }
.direct ul { margin-top: 16px; }
.direct li { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 2px; }
.direct li:last-child { border-bottom: 1px solid var(--line); }
.direct li span { font-size: 14px; color: var(--grey); }
.direct li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.direct li a:hover { color: var(--red); }

/* ---------- Footer ---------- */

.footer { padding: clamp(56px, 8vw, 120px) 0 40px; border-top: 1px solid var(--line); }
.footer-mark { width: 100%; height: auto; }
.footer-line { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; max-width: 48ch; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: clamp(32px, 4vw, 56px); font-size: 15px; color: var(--grey); }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-row a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
.footer-row a:hover { color: var(--ink); }

/* ---------- Simple pages: 404 and thanks ---------- */

.simple { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.simple h1 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 14ch; }
.simple h1::after { content: ""; display: block; width: 44px; height: 3px; background: var(--red); margin-top: 22px; }
.simple .lead { margin-top: 24px; max-width: 40ch; }
.simple .btn { margin-top: 32px; }

/* ---------- Lightbox ---------- */

.lb { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; margin: 0; color: var(--paper); overscroll-behavior: contain;
  opacity: 0; transition: opacity 240ms var(--ease), overlay 240ms var(--ease) allow-discrete, display 240ms var(--ease) allow-discrete; }
.lb[open] { display: grid; place-items: center; opacity: 1; }
@starting-style { .lb[open] { opacity: 0; } }
.lb::backdrop { background: rgba(13, 13, 13, 0); transition: background 240ms var(--ease), overlay 240ms var(--ease) allow-discrete, display 240ms var(--ease) allow-discrete; }
.lb[open]::backdrop { background: rgba(13, 13, 13, 0.94); }
@starting-style { .lb[open]::backdrop { background: rgba(13, 13, 13, 0); } }
.lb-inner { width: min(1240px, 100vw - 2 * var(--pad)); display: grid; gap: 16px; transform: scale(0.97); transition: transform 320ms var(--ease); }
.lb[open] .lb-inner { transform: none; }
@starting-style { .lb[open] .lb-inner { transform: scale(0.97); } }
.lb-video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.lb-video video { width: 100%; height: 100%; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 15px; }
.lb-bar strong { font-weight: 600; }
.lb-bar .quiet { color: rgba(255, 255, 255, 0.62); }
.lb-nav { display: flex; gap: 8px; }
.lb-btn { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); font-size: 14px; font-weight: 600; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.lb-btn:hover { border-color: var(--paper); }
.lb-btn:active { transform: scale(0.97); }
.lb-btn[disabled] { opacity: 0.35; cursor: default; }
.lb :focus-visible { outline-color: var(--paper); }
.lb-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); display: grid; place-items: center; font-size: 22px; line-height: 1; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.lb-close:hover { border-color: var(--paper); }
.lb-close:active { transform: scale(0.94); }

/* ---------- Motion layer ---------- */
/* Reveals hide only when JS is running with motion allowed; otherwise everything renders static. */
html.motion .reveal:not(.is-in) { opacity: 0; transform: translateY(32px); }
html.motion h2.reveal:not(.is-in) { transform: none; }
html.motion .family:not(.is-in) { --rule: 0; }
/* visibility joins opacity so an unrevealed h3 is out of the accessibility tree, the same as the autoAlpha reveals; GSAP's autoAlpha lifts it inline. */
html.motion .family:not(.is-in) h3, html.motion .family:not(.is-in) li { opacity: 0; visibility: hidden; transform: translateY(16px); }
.btn.is-magnet { will-change: translate; }
html.motion .hero-copy:not(.is-in) > :not(h1) { opacity: 0; transform: translateY(28px); }
html.motion .hero-copy:not(.is-in) h1 { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn, .tile-pill, .nav-links a::after, .menu, .menu li, .tile-frame, .lb, .lb::backdrop, .lb-inner, .hero-pause, .process-stage > *, .pstep, .pstep-n, .case-icon::after, .family li::after { transition: none; }
  .menu li { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .families { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .who-grid, .contact-grid, .process-grid, .position-grid { grid-template-columns: 1fr; }
  .position-photo { max-width: 420px; }
  .section-photo { aspect-ratio: 16 / 10; }
  .families { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .process-stage { display: none !important; }
  .process-list { margin-top: 40px; }
  .who-grid { gap: 32px; }
  .who-photo { max-width: 420px; }
  .use { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .tile { grid-column: span 12; }
  .tile-lead .tile-media, .tile-media { aspect-ratio: 16 / 10; }
  .tile-text { grid-template-columns: 1fr; }
  .tile-text .meta { grid-column: 1; grid-row: auto; }
  .form { grid-template-columns: 1fr; }
  .contact-grid { gap: 48px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-inner { padding-bottom: 40px; }
  .hero .lead { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-pause { bottom: auto; top: calc(var(--nav-h) + 12px); }
  .families { grid-template-columns: 1fr; gap: 28px; }
  .case { grid-template-columns: 1fr; }
  .process-close { flex-direction: column; align-items: flex-start; }
  .lb-inner { width: 100vw; }
  .lb-video { border-radius: 0; }
  .lb-bar { padding: 0 16px; }
  .booking { padding: 16px 12px; }
  .booking-iframe { height: 480px; }
}
@media (hover: hover) and (pointer: fine) {
  .tile-media:hover .tile-frame { transform: scale(1.025); }
  .tile-media:hover .tile-pill { transform: translateY(-2px); }
  .family li:hover::after { transform: scaleX(1); }
}
