/* ==========================================================================
   K Films — v4 design system
   Black canvas, editorial serif, one warm metal accent. Every page on the
   redesign loads this file alone; kfilms.css is the v3 system and is retired
   page by page as each one moves over. /styleguide renders these tokens.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
/* The palette and type are the K Films brand style guide (/internal/
   brand-style-guide): six colours, Fraunces over Hanken Grotesk. Gold is an
   accent, never a fill bigger than a button. */
:root {
  --ink: #0b0b0c;          /* Ink Black: page */
  --ink-2: #16151a;        /* Charcoal Surface: panels, footer */
  --ink-3: #1e1d22;        /* a step up from charcoal: cards, inputs */
  --line: rgba(241, 236, 227, 0.12);
  --line-strong: rgba(241, 236, 227, 0.28);
  --bone: #f1ece3;         /* Bone White: primary text */
  --bone-2: #c4bdb2;       /* body copy, between bone and stone */
  --mute: #8b8680;         /* Muted Stone: captions, labels (4.6:1 at worst) */
  --gold: #b08d57;         /* Champagne Gold: the accent */
  --gold-deep: #7a5c34;    /* Deep Amber: hover states, borders */

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --slow: 1.2s;
  --mid: 0.7s;
  --fast: 0.3s;

  color-scheme: dark;
}

/* ---- Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Film grain over everything — the one texture on the site. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Components set display on elements that also toggle [hidden]; hidden wins. */
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  padding: 15px 18px; background: var(--bone); color: var(--ink);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Type --------------------------------------------------------------- */
.display-xl,
.display-l,
.display-m,
.display-s {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  font-optical-sizing: auto;
}
.display-xl { font-size: clamp(3rem, 8.4vw, 8.4rem); }
.display-l  { font-size: clamp(2.5rem, 5.8vw, 5.6rem); }
.display-m  { font-size: clamp(2rem, 3.9vw, 3.7rem); line-height: 1.06; }
.display-s  { font-size: clamp(1.55rem, 2.3vw, 2.2rem); line-height: 1.15; }
.display-xl em, .display-l em, .display-m em, .display-s em { font-style: italic; color: var(--gold); }

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.label--bone { color: var(--bone); }

.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.65; color: var(--bone-2); max-width: 34em; }
.body { color: var(--bone-2); max-width: 36em; }
.meta { font-size: 13px; color: var(--mute); }

.counter { font-family: var(--serif); font-size: 1.5rem; color: var(--bone); }
.counter span { color: var(--mute); }

/* ---- Buttons & links ---------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--mid) var(--ease), border-color var(--mid) var(--ease);
}
/* Fill wipes up from the bottom edge on hover. */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--bone);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--mid) var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--bone); }
.btn:hover::before { transform: scaleY(1); }

/* Per the brand guide: .btn is ghost (tertiary), .btn--outline is outline
   gold (the header's navigation CTA), .btn--solid is solid gold, kept to the
   one highest-priority action on a screen. */
.btn--outline { border-color: var(--gold); color: var(--gold); }
.btn--outline::before { background: var(--gold); }
.btn--outline:hover { border-color: var(--gold); }
.btn--solid { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--solid::before { background: var(--bone); }
.btn--solid:hover { border-color: var(--bone); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 10px; }

.btn-arrow { width: 18px; height: 1px; background: currentColor; position: relative; }
.btn-arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.link-line {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size var(--mid) var(--ease);
}
.link-line:hover { background-size: 0 1px; background-position: right bottom; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: var(--line); opacity: 0; transition: opacity var(--mid) var(--ease);
}
.site-header.is-solid { background: rgba(7, 7, 7, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-solid::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-shell {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.header-left { display: flex; align-items: center; gap: 18px; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }

.social { display: flex; gap: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -14px; color: var(--bone-2); transition: color var(--fast); }
.social a:hover { color: var(--bone); }
.social svg { width: 16px; height: 16px; }

.brand { display: block; width: 136px; }
.brand img { width: 100%; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px; min-width: 44px; justify-content: flex-end;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.menu-toggle-lines { position: relative; width: 22px; height: 9px; }
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform var(--mid) var(--ease), top var(--mid) var(--ease);
}
.menu-toggle-lines::before { top: 0; }
.menu-toggle-lines::after { top: 8px; }
.menu-open .menu-toggle-lines::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle-lines::after { top: 4px; transform: rotate(-45deg); }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }
@media (max-width: 599px) {
  .social { display: none; }
  .header-shell { grid-template-columns: auto 1fr; }
  .header-left { display: none; }
  .brand { width: 112px; }
  .menu-toggle-text { display: none; }
}

/* ---- Menu overlay ------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr; align-items: end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s linear 0.9s;
  overflow-y: auto;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease-in-out); }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; backdrop-filter: none; }
.menu-open .site-header::after { opacity: 0; }

.menu-inner { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; gap: 48px; }
@media (min-width: 960px) { .menu-inner { grid-template-columns: 1.4fr 1fr; align-items: end; } }

.menu-nav a {
  display: flex; align-items: baseline; gap: 20px;
  font-family: var(--serif); font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: 1.06;
  color: var(--bone-2);
  transform: translateY(40px); opacity: 0;
  transition: color var(--fast), transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.menu-nav a small { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; color: var(--mute); }
.menu-nav a:hover, .menu-nav a[aria-current="page"] { color: var(--bone); }
.menu-nav a:hover em { color: var(--gold); }
.menu-nav em { font-style: italic; transition: color var(--fast); }
.menu-open .menu-nav a { transform: none; opacity: 1; }
.menu-open .menu-nav li:nth-child(2) a { transition-delay: 0.05s, 0.25s, 0.25s; }
.menu-open .menu-nav li:nth-child(3) a { transition-delay: 0.05s, 0.3s, 0.3s; }
.menu-open .menu-nav li:nth-child(4) a { transition-delay: 0.05s, 0.35s, 0.35s; }
.menu-open .menu-nav li:nth-child(5) a { transition-delay: 0.05s, 0.4s, 0.4s; }
.menu-open .menu-nav li:nth-child(6) a { transition-delay: 0.05s, 0.45s, 0.45s; }
.menu-open .menu-nav li:nth-child(1) a { transition-delay: 0.05s, 0.2s, 0.2s; }
.menu-open .menu-nav li:nth-child(7) a { transition-delay: 0.05s, 0.5s, 0.5s; }

.menu-aside { display: grid; gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.menu-aside p { margin: 0; color: var(--bone-2); }
.menu-aside .label { margin-bottom: 8px; }
.menu-aside-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Intro (first visit only) ------------------------------------------- */
/* Shown only when the inline head script finds no earlier visit. */
.intro { display: none; }
.show-intro .intro {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--ink);
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.intro img { width: 220px; opacity: 0; animation: intro-in 1.1s var(--ease) 0.15s forwards; }
.intro p { opacity: 0; animation: intro-in 1.1s var(--ease) 0.5s forwards; text-align: center; padding: 0 24px; }
.intro-line { width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.intro-line::after { content: ""; display: block; height: 100%; background: var(--bone); transform-origin: left; animation: intro-line 1.6s var(--ease-in-out) forwards; }
.show-intro .intro.is-done { opacity: 0; visibility: hidden; }
@keyframes intro-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Reveal utilities --------------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }

/* Hidden states only apply once kf.js has put .js on <html>, so the page
   reads in full with scripts off. Line masks are written into the markup. */
.mask-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask-line > span { display: block; }
.js .mask-line > span { transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js .is-in .mask-line > span, .js .mask-line.is-in > span { transform: none; }
.mask-line:nth-child(2) > span { transition-delay: 0.08s; }
.mask-line:nth-child(3) > span { transition-delay: 0.16s; }
.mask-line:nth-child(4) > span { transition-delay: 0.24s; }

/* Image wipe-in. */
.js .wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.js .wipe.is-in { clip-path: inset(0 0 0 0); }

/* Scroll progress — the thin line along the bottom edge. */
.progress { position: fixed; left: 0; bottom: 0; z-index: 99; height: 1px; width: 100%; pointer-events: none; }
.progress::after { content: ""; display: block; height: 100%; background: var(--bone); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---- Sections ----------------------------------------------------------- */
.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.section--tight { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.hairline { border-top: 1px solid var(--line); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  transform: scale(1.08); transition: transform 2.6s var(--ease);
}
.is-loaded .hero-media img { transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,7,7,.88) 0%, rgba(7,7,7,.15) 34%, rgba(7,7,7,0) 55%, rgba(7,7,7,.92) 100%);
}
.hero-title {
  align-self: start; text-align: center;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) var(--gutter) 0;
}
.hero-foot {
  display: grid; gap: 28px; align-items: end;
  padding: 0 var(--gutter) clamp(28px, 5vh, 56px);
  max-width: var(--max); width: 100%; margin: 0 auto;
}
.hero-foot .lede { margin: 0; }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: 1fr auto 1fr; }
  .hero-foot .lede { text-align: center; grid-column: 2; max-width: 26em; }
  .hero-foot .hero-actions { justify-self: end; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll { display: flex; align-items: center; gap: 14px; }
.hero-scroll span { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll span::after { content: ""; position: absolute; inset: 0; background: var(--bone); animation: scroll-cue 2.4s var(--ease-in-out) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 899px) { .hero-scroll { display: none; } }

/* The hero animates on CSS alone, from the first frame, rather than waiting
   for kf.js and an observer: it is the page's largest paint, and gating it
   behind script pushed that paint back by seconds on a phone. */
.js .hero-title .mask-line > span { transform: none; animation: hero-line 1.3s var(--ease) both; }
.js .hero-title .mask-line:nth-child(2) > span { animation-delay: 0.08s; }
.hero-in { animation: hero-fade 1.1s var(--ease) 0.25s both; }
.hero-in--late { animation-delay: 0.4s; }
@keyframes hero-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- Manifesto (word-by-word on scroll) --------------------------------- */
.manifesto { max-width: 15em; }
.manifesto .w { transition: opacity 0.4s linear, color 0.4s linear; }
.words-ready .w { opacity: 0.16; }
.words-ready .w.on { opacity: 1; }
.manifesto-foot { display: grid; gap: 32px; margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) { .manifesto-foot { grid-template-columns: 1fr 1fr; padding-left: 40%; } }

/* ---- Chapters (pinned, 01 / 03) ----------------------------------------- */
.chapters { position: relative; }
.chapters-stage { position: relative; }
.chapter {
  position: relative; display: grid; gap: 32px; align-items: center;
  padding: 64px var(--gutter);
  min-height: 90svh;
  overflow: hidden; isolation: isolate;
}
.chapter-bg { position: absolute; inset: -40px; z-index: -2; }
.chapter-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(0.32) saturate(0.8); }
.chapter-figure { width: min(100%, 560px); aspect-ratio: 1; overflow: hidden; }
.chapter-figure img { width: 100%; height: 100%; object-fit: cover; }
.chapter-copy { max-width: 26em; }
.chapter-copy .counter { margin-bottom: 18px; }
.chapter-copy h3 { margin-bottom: 20px; }
.chapter-copy .body { margin-bottom: 32px; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .chapter-figure { justify-self: end; }
}

/* Pinned mode — kf.js adds .is-pinned on wide screens with motion allowed. */
.chapters.is-pinned { height: 320vh; }
.chapters.is-pinned .chapters-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.chapters.is-pinned .chapter { position: absolute; inset: 0; min-height: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s; }
.chapters.is-pinned .chapter.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease); }
.chapters.is-pinned .chapter-figure img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.chapters.is-pinned .chapter.is-active .chapter-figure img { transform: scale(1); }
.chapters.is-pinned .chapter-copy > * { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.chapters.is-pinned .chapter.is-active .chapter-copy > * { opacity: 1; transform: none; }
.chapters.is-pinned .chapter.is-active .chapter-copy > :nth-child(2) { transition-delay: 0.1s; }
.chapters.is-pinned .chapter.is-active .chapter-copy > :nth-child(3) { transition-delay: 0.2s; }
.chapters.is-pinned .chapter.is-active .chapter-copy > :nth-child(4) { transition-delay: 0.3s; }
.chapters-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 1px; background: var(--line); display: none; }
.chapters-bar::after { content: ""; display: block; height: 100%; background: var(--bone); transform-origin: left; transform: scaleX(var(--cp, 0)); }
.chapters.is-pinned .chapters-bar { display: block; }

/* ---- Services (split panels) -------------------------------------------- */
.services-intro { padding-bottom: clamp(48px, 6vw, 96px); }
.svc { display: grid; border-top: 1px solid var(--line); }
.svc-copy { padding: clamp(40px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 22px; background: var(--ink-2); }
.svc-copy h3 { font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1; }
.svc-copy .body { margin: 0; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-meta div { display: grid; gap: 4px; }
.svc-meta dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; color: var(--bone); }
.svc-meta dt { order: -1; }
.svc-media { position: relative; overflow: hidden; min-height: 56vw; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; transform: translateY(var(--py, 0)); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 5fr 7fr; min-height: 88vh; }
  .svc-media { min-height: 0; }
  .svc:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .svc:nth-child(even) .svc-copy { order: 2; }
  .svc-copy { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: clamp(40px, 5vw, 88px); }
  .svc:nth-child(even) .svc-copy { padding-left: clamp(40px, 5vw, 88px); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* ---- Builds (horizontal track) ------------------------------------------ */
.track-wrap { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 760px);
  gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.track > li { scroll-snap-align: start; }
@media (min-width: 900px) {
  .track { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}
.build-card figure { margin: 0; }
.build-card .frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.build-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.build-card:hover .frame img { transform: scale(1.04); }
.build-card figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; }
.build-card h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.build-card p { margin: 6px 0 0; }
.track-controls { display: flex; gap: 10px; }
.track-btn { width: 52px; height: 52px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background var(--fast), color var(--fast); }
.track-btn:hover { background: var(--bone); color: var(--ink); }
.track-btn:disabled { opacity: 0.3; pointer-events: none; }
.track-btn svg { width: 18px; height: 18px; }

/* ---- Process ------------------------------------------------------------ */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 32px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.step-num { font-family: var(--serif); font-size: 1.1rem; color: var(--mute); }
.step h3 { font-family: var(--serif); font-size: clamp(1.8rem, 2.4vw, 2.4rem); line-height: 1.05; }
.step p { margin: 0; color: var(--bone-2); font-size: 15px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
  .step { padding-top: 40px; align-content: start; }
}

/* ---- Studio / HQ -------------------------------------------------------- */
.studio { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .studio { grid-template-columns: 7fr 5fr; } }
.studio-figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 900px) { .studio-figure { aspect-ratio: 5 / 6; } }
.studio-figure img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0)); }
.studio-facts { display: grid; gap: 0; margin: 36px 0; }
.studio-facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.studio-facts div:last-child { border-bottom: 1px solid var(--line); }
.studio-facts dt { padding-top: 3px; }
.studio-facts dd { margin: 0; color: var(--bone); }
.studio-facts address { font-style: normal; }

/* ---- Final CTA ---------------------------------------------------------- */
.finale { position: relative; text-align: center; overflow: hidden; isolation: isolate; padding: clamp(120px, 18vw, 260px) 0; }
.finale-bg { position: absolute; inset: 0; z-index: -1; }
.finale-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; filter: grayscale(0.3); }
.finale-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7,7,7,.2) 0%, var(--ink) 75%); }
.finale .label { margin-bottom: 28px; }
.finale h2 { margin-bottom: 48px; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0 32px; }
.footer-top { display: grid; gap: 48px; padding-bottom: clamp(48px, 6vw, 88px); }
@media (max-width: 899px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand img { width: 200px; margin-bottom: 24px; }
.footer-brand p { color: var(--bone-2); max-width: 22em; }
.footer-col .label { margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col address { color: var(--bone-2); font-style: normal; transition: color var(--fast); }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-bottom a:hover { color: var(--bone); }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---- Page hero ---------------------------------------------------------- */
.page-hero {
  position: relative; min-height: 88svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(40px, 7vh, 80px);
  overflow: hidden; isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.6s var(--ease); }
.is-loaded .page-hero-media img { transform: scale(1); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,7,7,.72) 0%, rgba(7,7,7,.05) 28%, rgba(7,7,7,.6) 58%, rgba(7,7,7,.97) 100%),
    linear-gradient(90deg, rgba(7,7,7,.35) 0%, rgba(7,7,7,0) 40%, rgba(7,7,7,.45) 100%);
}
.page-hero--plain { min-height: 62svh; }
.page-hero--plain::before { display: none; }
.page-hero-grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; } }
.page-hero h1 { margin: 22px 0 0; }
.page-hero .lede { margin: 0 0 28px; }
.page-hero .svc-meta { margin-bottom: 28px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Padded to a full tap target without moving the line it sits on. */
.crumbs a { display: inline-block; padding: 14px 0; margin: -14px 0; color: var(--mute); transition: color var(--fast); }
.crumbs a:hover { color: var(--bone); }
.crumbs span[aria-hidden] { color: var(--line-strong); }

/* ---- Statement: label left, large serif right --------------------------- */
.statement { display: grid; gap: 28px; }
@media (min-width: 900px) { .statement { grid-template-columns: 1fr 2.4fr; gap: 64px; } }
.statement .display-s { color: var(--bone); max-width: 22em; }
.statement .body { margin-top: 28px; }

/* ---- Numbered line list ------------------------------------------------- */
.lines { display: grid; }
@media (min-width: 900px) { .lines--two { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); } }
.lines li { display: grid; grid-template-columns: 3.2em 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.lines li > span:first-child { font-family: var(--serif); color: var(--mute); font-size: 1.1rem; }
.lines h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; margin-bottom: 6px; }
.lines p { margin: 0; color: var(--bone-2); font-size: 15px; }

/* ---- Split: image + copy inside the grid -------------------------------- */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip > :first-child { order: 2; }
}
.split-figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); }
.split-figure--wide { aspect-ratio: 4 / 3; }
.split-figure img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0)); }
.split h2 { margin: 22px 0 24px; }

/* ---- Image pair --------------------------------------------------------- */
.pair { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 900px) { .pair { grid-template-columns: 5fr 7fr; align-items: end; } }
.pair figure { margin: 0; overflow: hidden; background: var(--ink-3); }
.pair figure:first-child { aspect-ratio: 4 / 5; }
.pair figure:last-child { aspect-ratio: 4 / 3; }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair figcaption { padding-top: 14px; }

/* ---- Index list (services hub, builds) ---------------------------------- */
.index { border-bottom: 1px solid var(--line); }
.index-row {
  position: relative; display: grid; gap: 8px 24px; align-items: center;
  grid-template-columns: 3em 1fr auto;
  padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line);
  transition: padding var(--mid) var(--ease);
}
.index-row .num { font-family: var(--serif); color: var(--mute); }
.index-row h3 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1; transition: color var(--fast), transform var(--mid) var(--ease); }
.index-row p { grid-column: 2; margin: 0; color: var(--bone-2); max-width: 34em; }
.index-row .price { text-align: right; }
.index-row .price dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.6rem; color: var(--bone); }
.index-thumb {
  position: absolute; right: 18%; top: 50%; z-index: 2; width: 300px; aspect-ratio: 4 / 3; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(0, -50%) scale(0.92) rotate(-2deg);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.index-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 900px) {
  .index-row:hover h3 { transform: translateX(16px); }
  .index-row:hover h3 em, .index-row:hover h3 { color: var(--bone); }
  .index-row:hover .index-thumb { opacity: 1; transform: translate(0, -50%) scale(1) rotate(0); }
  .index:hover .index-row:not(:hover) h3 { color: var(--mute); }
}
@media (max-width: 599px) {
  .index-row { grid-template-columns: 2.4em 1fr; }
  .index-row .price { grid-column: 2; text-align: left; }
}

/* ---- Next page link ----------------------------------------------------- */
.next-page { display: block; padding: clamp(56px, 8vw, 120px) 0; border-top: 1px solid var(--line); }
.next-page .display-l { display: inline-flex; align-items: center; gap: 0.3em; transition: color var(--fast); }
.next-page .btn-arrow { width: 0.9em; transition: width var(--mid) var(--ease); }
.next-page:hover .display-l { color: var(--gold); }
.next-page:hover .btn-arrow { width: 1.3em; }
.next-page .label { display: block; margin-bottom: 20px; }

/* ---- Builds ------------------------------------------------------------- */
.build-grid { display: grid; gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px); }
@media (min-width: 700px) { .build-grid { grid-template-columns: 1fr 1fr; } }
.build-grid .build-card:first-child { grid-column: 1 / -1; }
.build-grid .build-card:first-child .frame { aspect-ratio: 16 / 8; }
.build-card--empty .frame { display: grid; place-items: center; border: 1px dashed var(--line-strong); background: transparent; }
.build-card--empty .frame p { margin: 0; text-align: center; padding: 24px; }

.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
@media (min-width: 900px) { .spec { grid-template-columns: repeat(4, 1fr); } }
.spec div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.spec dd { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }

.gallery { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(6, 1fr); }
.gallery figure { margin: 0; overflow: hidden; background: var(--ink-3); grid-column: span 6; aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
  .gallery .g-half { grid-column: span 3; aspect-ratio: 4 / 5; }
  .gallery .g-third { grid-column: span 2; aspect-ratio: 1; }
  .gallery .g-full { grid-column: span 6; aspect-ratio: 21 / 9; }
}

/* ---- Finishes ----------------------------------------------------------- */
.finish-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.finish { display: grid; gap: 16px; }
.finish-swatch { aspect-ratio: 4 / 5; position: relative; overflow: hidden; border: 1px solid var(--line); }
.finish-swatch::after { content: ""; position: absolute; inset: 0; transition: transform 1.6s var(--ease); }
.finish:hover .finish-swatch::after { transform: translateX(18%); }
.finish h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.finish p { margin: 0; color: var(--bone-2); font-size: 15px; }
.finish .meta { margin-top: 4px; }
.sw-gloss { background: radial-gradient(120% 80% at 30% 10%, #3a3a3a 0%, #0b0b0b 55%, #000 100%); }
.sw-gloss::after { background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.22) 46%, transparent 54%); }
.sw-satin { background: radial-gradient(120% 90% at 40% 20%, #3b3d40 0%, #1a1b1d 60%, #0d0d0e 100%); }
.sw-satin::after { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 48%, transparent 66%); }
.sw-matte { background: linear-gradient(160deg, #2a2b2a 0%, #1b1c1b 100%); }
.sw-metallic { background: radial-gradient(130% 90% at 30% 15%, #6d5a43 0%, #2c2219 55%, #120d09 100%); }
.sw-metallic::after { background: linear-gradient(115deg, transparent 34%, rgba(255,226,180,.18) 46%, transparent 58%); }
.sw-shift { background: linear-gradient(135deg, #1d2a6b 0%, #5a1f6e 35%, #1b6b62 70%, #0e2a3a 100%); }
.sw-shift::after { background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 47%, transparent 58%); }
.sw-chrome { background: linear-gradient(180deg, #e9e9e9 0%, #7d7d7d 42%, #1c1c1c 50%, #bdbdbd 62%, #f5f5f5 100%); }
.sw-chrome::after { background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.5) 47%, transparent 53%); }
.sw-carbon { background-color: #141414; background-image: repeating-linear-gradient(45deg, #1f1f1f 0 6px, #0e0e0e 6px 12px), repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 6px, transparent 6px 12px); background-blend-mode: overlay; }
.sw-ppf { background: radial-gradient(120% 80% at 30% 10%, #5b1414 0%, #2a0707 60%, #120303 100%); }
.sw-ppf::after { background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.18) 46%, transparent 54%); box-shadow: inset 0 0 0 10px rgba(255,255,255,.05); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq-group + .faq-group { margin-top: clamp(56px, 7vw, 96px); }
.faq-group > .label { display: block; margin-bottom: 20px; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 26px 0; text-align: left;
  font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2;
  transition: color var(--fast);
}
.faq-q:hover { color: var(--gold); }
.faq-q .mark { font-family: var(--sans); font-weight: 400; font-size: 1.4rem; color: var(--mute); flex: none; }
.faq-a { margin: 0; padding: 0 0 28px; color: var(--bone-2); max-width: 44em; }
.js .faq-item:not(.open) .faq-a { display: none; }

/* ---- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 28px; }
.form-row { display: grid; gap: 28px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 10px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 0; font: inherit; font-size: 17px; color: var(--bone);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color var(--fast);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--bone); }
.field ::placeholder { color: var(--mute); }
.form-note { display: none; margin: 0; color: var(--gold); }
.form-note.show { display: block; }

/* ---- Notice band -------------------------------------------------------- */
.notice { display: grid; gap: 24px; align-items: center; padding: clamp(32px, 4vw, 56px); border: 1px solid var(--line); background: var(--ink-2); }
@media (min-width: 900px) { .notice { grid-template-columns: 1fr auto; } }
.notice h2 { margin: 14px 0 10px; }
.notice p { margin: 0; }

/* ---- City cards --------------------------------------------------------- */
.cards { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; transition: border-color var(--mid) var(--ease), background var(--mid) var(--ease); }
a.card:hover { border-color: var(--line-strong); background: var(--ink-2); }
.card h3 { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.card p { margin: 0; color: var(--bone-2); font-size: 15px; }

/* ---- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .mask-line > span, .js .wipe { opacity: 1; transform: none; clip-path: none; }
  .show-intro .intro { display: none; }
}
