/* ==========================================================================
   37 Customs: Homepage prototype v0.2, "The Bay"
   Identity built from two things only 37 Customs has:
     1. The logo's band: "CUSTOMS" held between two hairline rules
        -> .band, used for section headers, labels, stats, buttons.
     2. The studio's light tunnel: vertical walls, 45-degree shoulders,
        flat ceiling of LED bars -> .portal frames + glowing light lines.
   Order: tokens -> base -> type -> motifs -> components -> header ->
   sections -> footer -> prototype aids -> motion -> responsive.
   Fonts: system stacks only (works offline). See README for final fonts.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #08080a;
  --carbon: #0e0f11;
  --charcoal: #15161a;
  --graphite: #23252a;
  --steel: #8e929a;
  --bone: #ecebe7;
  --led: #f5f8ff;
  --led-glow: rgba(214, 228, 255, .55);
  --warm-glow: rgba(255, 92, 72, .55);
  --line: rgba(236, 235, 231, .12);
  --line-strong: rgba(236, 235, 231, .3);
  --text-dim: rgba(236, 235, 231, .74);

  --font-display: "Big Shoulders Display", "Bahnschrift", "DIN Condensed", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --font-serif: "Playfair Display", "Constantia", "Didot", "Bodoni MT", "Book Antiqua", Georgia, serif;
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1680px;
  --header-h: 80px;
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
  --shoulder: clamp(18px, 3.2vw, 56px); /* a length, never a %, so shoulders stay at 45 degrees */

  --ease: cubic-bezier(.2, .7, 0, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
address { font-style: normal; }
::selection { background: var(--led); color: var(--ink); }

:focus-visible { outline: 2px solid var(--led); outline-offset: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

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

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 300;
  padding: .75rem 1rem;
  background: var(--led);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .8rem;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75, "wght" 700;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
}

/* The serif italic answers the calligraphic numerals of the logo. */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.4;
}

.lead { font-size: clamp(1.12rem, 1rem + .55vw, 1.4rem); line-height: 1.5; color: var(--bone); }

.section-title { font-size: clamp(3rem, 8.4vw, 8.5rem); }
.section-title .serif, .why__title .serif, .heat__title .serif { font-size: .82em; }

/* ---------- 4. Motif 1: the band (from the logo) ---------- */
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: .7rem;
  border-block: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
}
.band > span:first-child { color: var(--bone); }
.band--sm { padding-block: .55rem; font-size: .66rem; justify-content: flex-start; }
.section-band { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-band > span:nth-child(2) { margin-right: auto; color: var(--bone); }

/* ---------- 5. Motif 2: the portal (from the light tunnel) ---------- */
.portal {
  --c: var(--shoulder);
  position: relative;
  isolation: isolate;
}
.portal__media,
.portal:not(:has(.portal__media)) > img {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  clip-path: polygon(0 var(--c), var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
.portal__media > img,
.portal__media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LED outline drawn by JS to match each portal's real size. */
.portal__lines {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.portal__lines path {
  fill: none;
  stroke: var(--led);
  stroke-width: 1.5;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px var(--led-glow)) drop-shadow(0 0 14px var(--led-glow));
  opacity: 0;
}
.portal--warm .portal__lines path { stroke: #ffd9d2; filter: drop-shadow(0 0 5px var(--warm-glow)) drop-shadow(0 0 16px var(--warm-glow)); }
.portal__lines.is-on path { animation: led-on 1.1s steps(1, end) forwards; animation-delay: var(--d, 0s); }
@keyframes led-on {
  0% { opacity: 0; }
  12% { opacity: .9; }
  18% { opacity: .1; }
  30% { opacity: 1; }
  36% { opacity: .25; }
  48%, 100% { opacity: 1; }
}

/* Shutter reveal: two dark panels part from a centre slit, like a bay door.
   The image itself is never clipped away, so native lazy-loading still works. */
.shutter { position: relative; }
.js .shutter::before,
.js .shutter::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  height: 50.5%;
  background: var(--ink);
  z-index: 1;
  transition: transform 1.3s var(--ease-io) var(--delay, .1s);
  pointer-events: none;
}
.js .shutter::before { top: -2px; transform-origin: top; }
.js .shutter::after { bottom: -2px; transform-origin: bottom; }
.js .is-in .shutter::before,
.js .is-in .shutter::after,
.js .shutter.is-in::before,
.js .shutter.is-in::after { transform: scaleY(0); }
.after-dark .shutter::before, .after-dark .shutter::after { background: #050507; }
.heat .shutter::before, .heat .shutter::after { background: var(--carbon); }

/* ---------- 6. Buttons & links ---------- */
.btn {
  --cut: 12px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 3.25rem;
  padding: 1rem 1.6rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s;
}
/* Primary: a lit panel with tunnel shoulders and a light sweep on hover. */
.btn--primary {
  background: var(--led);
  color: var(--ink);
  clip-path: polygon(0 var(--cut), var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(8, 8, 10, .16) 46%, rgba(8, 8, 10, .04) 54%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease);
}
.btn--primary:hover::before, .btn--primary:focus-visible::before { transform: translateX(110%); }
.btn--primary:hover { background: #fff; }
/* Ghost: the logo band, two rules and no sides. */
.btn--ghost {
  color: var(--bone);
  border-block: 1px solid var(--line-strong);
  padding-inline: .25rem;
  min-width: 10rem;
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--led);
  transform: scaleY(0);
  transition: transform .5s var(--ease);
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: var(--led); }
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { transform: none; }
.btn--sm { min-height: 2.6rem; padding: .7rem 1.1rem; font-size: .68rem; --cut: 9px; }
.btn--ghost.btn--sm { min-width: 0; padding-inline: .2rem; }
.btn--block { width: 100%; }
.btn__arrow { font-family: var(--font-body); font-size: 1.05em; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-block: .4rem;
  background: linear-gradient(var(--led), var(--led)) left bottom / 0 1px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px, 100% 1px; }
.link-arrow span { transition: transform .5s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
}
.site-header.is-scrolled,
.site-header.is-mega-open {
  background: rgba(8, 8, 10, .8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* Logo: always sized by height so its proportions are never distorted. */
.logo { display: block; flex: none; }
.logo img { height: 50px; width: auto; transition: opacity .3s; }
.logo:hover img { opacity: .8; }

.nav__list { display: flex; gap: clamp(1.1rem, 2.2vw, 2.25rem); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-block: .5rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--led);
  box-shadow: 0 0 8px var(--led-glow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__link:hover::after,
.nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__caret {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .4s var(--ease);
}
.nav__trigger[aria-expanded="true"] .nav__caret { transform: translateY(1px) rotate(-135deg); }

.site-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; }
.header-phone:hover { color: var(--led); }

.mega {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(8, 8, 10, .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.mega.is-open { opacity: 1; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 2.5rem; padding-block: 2.5rem 3rem; }
.mega__col .band { margin-bottom: 1rem; }
.mega__col li a { display: block; padding-block: .42rem; font-size: 1rem; transition: color .3s, transform .4s var(--ease); }
.mega__col li a:hover { color: var(--led); transform: translateX(6px); }
.mega__feature { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem 1.25rem; align-items: end; }
.mega__feature-media { grid-row: span 2; --c: 14px; }
.mega__feature-media img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.mega__feature-title { font-size: 1.15rem; line-height: 1.3; }
.mega__feature-title .serif { display: block; font-size: 1.5rem; line-height: 1.1; }
.mega__feature .link-arrow { justify-self: start; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle__bar {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--bone);
  transition: transform .5s var(--ease), top .5s var(--ease), right .5s var(--ease);
}
.menu-toggle__bar:nth-of-type(2) { top: 18px; }
.menu-toggle__bar:nth-of-type(3) { top: 26px; right: 18px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(2) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(3) { top: 22px; right: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  padding-top: calc(var(--header-h) + 1rem);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
  overflow-y: auto;
}
.mobile-menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .8s var(--ease-io), visibility 0s; }
.mobile-menu__inner { min-height: calc(100svh - var(--header-h) - 1rem); display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 2rem; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: .85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 12vw, 4rem);
  line-height: .95;
  transform: translateY(100%);
  transition: transform .8s var(--ease);
}
.mobile-menu.is-open .mobile-menu__list a { transform: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu__foot { display: grid; gap: 1rem; padding-top: 2rem; }
.mobile-menu__contact { font-family: var(--font-mono); font-size: .9rem; color: var(--steel); }

/* ---------- 8. Hero: three bays ----------
   The film (37.mov) is vertical. Rather than crop it to fit a wide screen,
   the hero is built like the shop itself: three bays side by side. The
   centre bay plays the film whole; the side bays play other moments of the
   same film, dimmed, so the whole width is real footage. The bay sizes come
   from the viewport height (9:16 each), so on a typical desktop the three
   bays fill the screen edge to edge; on very wide screens a blurred light-
   spill of the footage fills any remainder.

   Unveiling (JS adds stage classes to <html>; no JS or reduced motion =
   final state straight away):
     u-logo  the 37 Customs mark on black
     u-line  (no-op, kept for timing)
     u-open  the bay doors roll up - centre first, then left, then right -
             each door carrying a thin line of light on its edge; the mark
             travels up into the header logo slot
     u-title headline rises    u-ui  message + CTAs    u-done */
.hero {
  --bay-w: calc(100svh * 9 / 16);
  --gap: clamp(4px, .45vw, 8px);
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero__ambient {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  z-index: -2;
  filter: blur(48px) saturate(1.5);
  opacity: .7;
  pointer-events: none;
}

/* The bays */
.bays {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  justify-content: center;
  gap: var(--gap);
}
.bay {
  position: relative;
  flex: none;
  width: var(--bay-w);
  height: 100%;
  overflow: hidden;
  background: #000;
  outline: var(--gap) solid var(--ink); /* keeps the seams between bays dark */
}
.bay video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bay--main video { translate: 0 calc(var(--hp, 0) * 6vh); scale: calc(1 + var(--hp, 0) * .04); }
.bay--side video { filter: brightness(.42) saturate(.75); translate: 0 calc(var(--hp, 0) * 12vh); }
.bay--side::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bay--left::after { background: linear-gradient(90deg, rgba(8, 8, 10, .75), transparent 70%); }
.bay--right::after { background: linear-gradient(270deg, rgba(8, 8, 10, .75), transparent 70%); }

/* Light tunnel: the studio's LED tunnel (straight walls, 45-degree
   shoulders, flat ceiling), drawn by JS around the centre bay. During the
   unveiling its frames switch on from the far end towards you, then the
   tunnel carries you through and dissolves into the footage. */
.tunnel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  overflow: visible;
}
.tunnel path { fill: none; stroke: #f5f8ff; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.tunnel .glow { stroke: rgba(214, 228, 255, .5); stroke-width: 7; opacity: .35; }
.tunnel g { opacity: 0; }
/* Readability: dark at the top for the header, deep at the bottom for the
   title; the centre of the frame stays clear for the car. */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 8, 10, .7) 0%, rgba(8, 8, 10, 0) 20%),
    linear-gradient(to top, rgba(8, 8, 10, .96) 0%, rgba(8, 8, 10, .82) 18%, rgba(8, 8, 10, .3) 42%, rgba(8, 8, 10, 0) 58%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-h) + .75rem);
  padding-bottom: clamp(1.25rem, 3.5vh, 2.25rem);
}
.hero__top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.hero__eyebrow { display: grid; gap: .3rem; }
.hero__eyebrow span:first-child { color: var(--bone); }
.hero__meta { display: grid; justify-items: end; gap: .8rem; }

/* Title: "THE NEW" set small and wide-tracked, "STANDARD." monumental. */
.hero__bottom { display: grid; gap: clamp(1rem, 2.4vh, 1.75rem); }
.hero__title {
  --size: clamp(4.4rem, min(15vw, 26vh), 15rem);
  display: grid;
  justify-items: center;
  pointer-events: none;
  /* drop-shadow on the whole title: a text-shadow would be clipped by each letter's mask */
  filter: drop-shadow(0 8px 34px rgba(0, 0, 0, .55));
}
.hero__kicker {
  font-size: calc(var(--size) * .2);
  letter-spacing: .5em;
  margin-right: -.5em; /* balance the trailing tracking so it centres optically */
  line-height: 1;
  margin-bottom: calc(var(--size) * .04);
  color: rgba(236, 235, 231, .92);
}
.hero__kicker > span { display: inline-block; }
.hero__headline { font-size: var(--size); line-height: .8; letter-spacing: -.01em; overflow: hidden; padding: .03em .04em .06em; white-space: nowrap; }
.hero__letters { display: inline-block; }
.hero__letters > span { display: inline-block; }
.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 26rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem 2rem;
  padding-top: clamp(1rem, 2.2vh, 1.5rem);
  border-top: 1px solid rgba(236, 235, 231, .16);
}
.hero__lede { font-size: clamp(.98rem, .94rem + .25vw, 1.12rem); line-height: 1.55; color: rgba(236, 235, 231, .86); }
.hero__ctas { display: flex; gap: .75rem; }
.hero__ctas .btn { min-height: 3.5rem; min-width: 13.5rem; }
.btn--book { font-size: .8rem; letter-spacing: .2em; }

.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .1rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color .3s;
}
.video-toggle:hover { color: var(--led); }
.video-toggle__icon { width: 10px; height: 10px; border-inline: 3px solid currentColor; }
.video-toggle[aria-pressed="true"] .video-toggle__icon { border: 0; border-left: 9px solid currentColor; border-block: 5px solid transparent; width: 0; height: 0; }

/* The mark: on black first, then flies into the header logo slot (JS sets the path). */
.intro-mark {
  position: fixed;
  left: 50%; top: 50%;
  width: clamp(150px, 16vw, 230px);
  z-index: 110;
  translate: -50% -50%;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .6));
}
.intro-mark img { width: 100%; height: auto; }

/* Scroll hand-off into the quote section. */
.hero__top, .hero__bottom { opacity: calc(1 - var(--hp, 0) * 1.5); translate: 0 calc(var(--hp, 0) * -4vh); }

/* ---- Unveiling states (only while JS runs the sequence) ----
   u-logo   mark on black; tunnel frames switch on, far to near
   u-open   tunnel carries you through (scales past the viewer and fades),
            the bays rise out of the dark, the mark flies to the header
   u-title  "THE NEW" settles its tracking; STANDARD. rises letter by letter
   u-ui     message + CTAs          u-done   clean-up */
.js.u-run .bays { opacity: 0; scale: 1.06; }
.js.u-run .hero__ambient { opacity: 0; }
.js.u-run .hero__kicker > span { opacity: 0; letter-spacing: 1.1em; }
.js.u-run .hero__letters > span { transform: translateY(115%); opacity: 0; }
.js.u-run .hero__eyebrow, .js.u-run .hero__meta, .js.u-run .hero__lede, .js.u-run .hero__ctas { opacity: 0; translate: 0 14px; }
.js.u-run .hero__foot { border-top-color: transparent; }
.js.u-run .logo img { opacity: 0; }

.js.u-run.u-logo .intro-mark { opacity: 1; transition: opacity .5s var(--ease); }
.js.u-run.u-logo .tunnel { opacity: 1; }
.js.u-run.u-logo .tunnel g { animation: tunnel-on .55s steps(1, end) forwards; animation-delay: calc(.1s + var(--i) * .11s); }
@keyframes tunnel-on { 0% { opacity: 0; } 20% { opacity: .9; } 32% { opacity: .2; } 50%, 100% { opacity: var(--o, 1); } }
.js.u-run.u-open .tunnel { opacity: 0; transform: scale(2.6); transition: transform 1.2s cubic-bezier(.55, 0, .25, 1), opacity .9s ease .25s; }
.js.u-run.u-open .bays { opacity: 1; scale: 1; transition: opacity 1s ease .15s, scale 1.6s var(--ease) .15s; }
.js.u-run.u-open .hero__ambient { opacity: .7; transition: opacity 1.8s ease .5s; }
.js.u-run.u-title .hero__kicker > span { opacity: 1; letter-spacing: .5em; transition: opacity 1s ease, letter-spacing 1.4s var(--ease); }
.js.u-run.u-title .hero__letters > span { transform: none; opacity: 1; transition: transform 1s var(--ease) calc(.15s + var(--i) * .045s), opacity .5s ease calc(.15s + var(--i) * .045s); }
.js.u-run.u-ui .hero__eyebrow,
.js.u-run.u-ui .hero__meta,
.js.u-run.u-ui .hero__lede,
.js.u-run.u-ui .hero__ctas { opacity: 1; translate: 0 0; transition: opacity .8s ease var(--d, 0s), translate .9s var(--ease) var(--d, 0s); }
.js.u-run.u-ui .hero__foot { border-top-color: rgba(236, 235, 231, .16); transition: border-color 1s ease; }
.js.u-run.u-done .logo img { opacity: 1; }
.js.u-run.u-quick .logo img { opacity: 1; }
.js.u-done .intro-mark { display: none; }
.js:not(.u-run) .intro-mark { display: none; }
.js:not(.u-run) .tunnel { display: none; }
.hero .loop-fade { z-index: 2; }
/* One soft specular pass across STANDARD. once it has landed. */
.hero__headline { position: relative; }
.hero__headline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  mix-blend-mode: overlay;
  translate: -120% 0;
  pointer-events: none;
}
.js.u-ui .hero__headline::after { animation: title-sheen 1.6s var(--ease-io) .2s 1 forwards; }
@keyframes title-sheen { to { translate: 120% 0; } }
/* ---- Hero: phones and portrait tablets. The vertical film fills the screen. ---- */
@media (max-width: 960px), (max-aspect-ratio: 4/5) {
  .hero { min-height: 36rem; }
  .hero__ambient, .bay--side { display: none; }
  .bay--main { width: 100%; }
  .bay--main video { translate: 0 calc(var(--hp, 0) * 8vh); scale: 1; }
  .hero__shade { background: linear-gradient(to bottom, rgba(8, 8, 10, .6) 0%, transparent 20%, transparent 40%, rgba(8, 8, 10, .75) 64%, rgba(8, 8, 10, .97) 100%); }
  .hero__meta .hero__caption-alt { display: none; }
  .hero__title { --size: clamp(3.3rem, 18.2vw, 9.5rem); justify-items: start; }
  .hero__kicker { font-size: calc(var(--size) * .24); letter-spacing: .42em; margin-right: 0; padding-left: .06em; }
  .js.u-run.u-title .hero__kicker > span { letter-spacing: .42em; }
  .hero__foot { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__ctas .btn { min-width: 0; }
  .intro-mark { width: clamp(120px, 34vw, 170px); }
}
@media (max-width: 420px) {
  .hero__ctas { grid-template-columns: 1fr; gap: .6rem; }
  .hero__ctas .btn { min-height: 3.25rem; }
}
@media (max-height: 560px) and (max-width: 960px) {
  .hero { height: auto; min-height: 100svh; }
}

/* ---------- 9. Section scaffolding ---------- */
.section { padding-block: var(--section-y); position: relative; }

/* ---------- 10. Studio ---------- */
.studio { padding-top: clamp(3rem, 5vw, 4.5rem); }
.studio__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) var(--gutter);
  align-items: start;
}
.studio__statement {
  grid-column: 1 / span 8;
  font-size: clamp(2.8rem, 6.6vw, 7rem);
  line-height: .9;
}
.studio__statement .serif { font-size: 1.05em; line-height: .8; }
.studio__media { grid-column: 9 / -1; grid-row: span 2; display: grid; gap: .9rem; }
.studio__media { position: relative; }
.studio__media .portal__media { aspect-ratio: 3 / 4; }
.studio__stack img {
  position: absolute;
  inset: 0;
  opacity: 0;
  scale: 1.06;
  transition: opacity 1.2s var(--ease), scale 5s linear;
}
.studio__stack img.is-active { opacity: 1; scale: 1; }
.studio__caption { display: flex; align-items: baseline; gap: .6rem; }
.studio__caption span:first-child { color: var(--bone); }
.studio__caption-name { margin-left: auto; color: var(--bone); }
.studio__media .file__confirm { position: static; }
.studio__body {
  grid-column: 1 / span 5;
  display: grid;
  gap: 1.25rem;
  align-content: start;
  color: var(--text-dim);
}
.studio__body .lead { color: var(--bone); }
.studio__body .link-arrow { justify-self: start; margin-top: .5rem; color: var(--bone); }
.studio__aside { grid-column: 6 / span 3; margin-top: clamp(2rem, 8vw, 8rem); }
.studio__aside img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 1s var(--ease); }
.studio__aside:hover img { filter: none; }

.studio__stats { margin-top: clamp(3rem, 7vw, 6rem); padding-block: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.studio__stats > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem clamp(.75rem, 2vw, 2rem); }
.studio__stats > div + div { border-left: 1px solid var(--line); }
.studio__stats > div:first-child { padding-left: 0; }
.studio__stats dt { color: var(--steel); }
.studio__stats dd { font-size: clamp(2.6rem, 5vw, 4.75rem); color: var(--bone); letter-spacing: 0; }

/* Words light up as the statement passes through the viewport. */
.js [data-light-words] .w { color: rgba(236, 235, 231, .16); transition: color .5s var(--ease), text-shadow .5s; }
.js [data-light-words] .w.is-lit { color: var(--bone); }
.js [data-light-words] .serif.is-lit { color: var(--led); text-shadow: 0 0 28px var(--led-glow); }

/* ---------- 11. Build files ---------- */
.builds { background: linear-gradient(var(--ink), var(--carbon) 35%, var(--ink)); }
.builds__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.builds__intro { max-width: 24rem; color: var(--text-dim); }

.builds__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.files { grid-column: 1 / span 7; counter-reset: file; }
.file { position: relative; border-top: 1px solid var(--line); }
.file:last-child { border-bottom: 1px solid var(--line); }
.file::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 1px;
  background: var(--led);
  box-shadow: 0 0 10px var(--led-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.file.is-active::before { transform: scaleX(1); }
.file__link {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  grid-template-areas: "no title arrow" "no work arrow";
  gap: .35rem 1.25rem;
  align-items: center;
  padding-block: clamp(1.4rem, 2.6vw, 2.25rem);
}
.file__no { grid-area: no; align-self: start; padding-top: .6rem; }
.file__title {
  grid-area: title;
  font-size: clamp(2.4rem, 5.4vw, 5.6rem);
  color: rgba(236, 235, 231, .32);
  transition: color .5s var(--ease), translate .7s var(--ease);
}
.file__work { grid-area: work; font-size: 1rem; color: var(--steel); transition: color .5s; }
.file__arrow { grid-area: arrow; font-size: 1.6rem; opacity: .3; transition: opacity .4s, transform .5s var(--ease); }
.file.is-active .file__title { color: var(--bone); translate: .25em 0; }
.file.is-active .file__work { color: var(--bone); }
.file.is-active .file__arrow { opacity: 1; transform: translate(3px, -3px); }
.file__media { display: none; }
.file__confirm { position: absolute; right: 0; bottom: .5rem; }
body:not(.show-notes) .file__confirm { display: none; }

.files__preview { grid-column: 8 / -1; position: sticky; top: calc(var(--header-h) + 2rem); display: grid; }
.files__preview .portal__media { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 6rem); width: 100%; }
.files__stack img {
  position: absolute;
  inset: 0;
  opacity: 0;
  scale: 1.08;
  transition: opacity .9s var(--ease), scale 1.6s var(--ease);
}
.files__stack img.is-active { opacity: 1; scale: 1; }
/* Light sweep: a bar of LED light passes over the frame on each change. */
.files__sweep {
  position: absolute;
  left: -10%; right: -10%;
  top: 0;
  height: 18%;
  background: linear-gradient(transparent, rgba(245, 248, 255, .22) 45%, rgba(245, 248, 255, .5) 50%, rgba(245, 248, 255, .22) 55%, transparent);
  mix-blend-mode: screen;
  translate: 0 -120%;
  pointer-events: none;
  z-index: 1;
}
.files__sweep.is-sweeping { animation: sweep 1s var(--ease-io); }
@keyframes sweep { from { translate: 0 -120%; } to { translate: 0 620%; } }
.files__detail {
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 3.5vw, 3.5rem));
  bottom: clamp(-3rem, -4vw, -1rem);
  width: clamp(7rem, 12vw, 11rem);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-strong);
  background: var(--charcoal);
  overflow: hidden;
  z-index: 3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.files__detail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease) .15s; }
.files__detail img.is-active { opacity: 1; }
.files__count { justify-self: end; margin-top: 1rem; }
.files__count span { color: var(--bone); }
.builds .proto-note { margin-top: 3rem; max-width: 52rem; }

/* ---------- 12. Services: three departments ---------- */
.services .section-title { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.dept-tabs { display: none; }
.js .dept-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line-strong);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.dept-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding: 1.15rem 1rem 1.15rem 0;
  text-align: left;
  font-size: clamp(.95rem, .9rem + .3vw, 1.15rem);
  color: var(--steel);
  transition: color .4s;
}
.dept-tab + .dept-tab { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.dept-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--led);
  box-shadow: 0 0 12px var(--led-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.dept-tab:hover { color: var(--bone); }
.dept-tab[aria-selected="true"] { color: var(--bone); }
.dept-tab[aria-selected="true"]::after { transform: scaleX(1); }

.dept { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.dept + .dept { margin-top: var(--section-y); }
.js .dept + .dept { margin-top: 0; }
.js .dept[hidden] { display: none; }
.js .dept.is-entering .dept__body > * { animation: rise .9s var(--ease) both; }
.js .dept.is-entering .dept__body > :nth-child(2) { animation-delay: .05s; }
.js .dept.is-entering .dept__body > :nth-child(3) { animation-delay: .1s; }
.js .dept.is-entering .dept__body > :nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.dept__media { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); }
.dept__stack { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 5rem); width: 100%; }
.dept__stack img { position: absolute; inset: 0; opacity: 0; scale: 1.06; transition: opacity .8s var(--ease), scale 1.4s var(--ease); }
.dept__stack img.is-active { opacity: 1; scale: 1; }
.dept__caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 3;
  padding: .45rem .7rem;
  color: var(--bone);
  background: rgba(8, 8, 10, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dept__body { grid-column: 7 / -1; }
.dept__index { margin-bottom: 1rem; }
.dept__title { font-size: clamp(3rem, 6vw, 6.2rem); margin-bottom: 1.5rem; }
.dept__title .serif { font-size: .8em; color: var(--steel); }
.dept__desc { color: var(--text-dim); max-width: 34rem; margin-bottom: 2rem; }

.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name arrow" "desc arrow";
  align-items: center;
  column-gap: 1rem;
  padding: 1.1rem 0;
  transition: padding .5s var(--ease);
}
.svc a::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--led);
  box-shadow: 0 0 8px var(--led-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.svc__thumb { display: none; }
.svc__name { grid-area: name; font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem); transition: color .3s; }
.svc__desc {
  grid-area: desc;
  font-size: .95rem;
  color: var(--text-dim);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease), opacity .5s, margin .6s var(--ease);
}
.svc__arrow { grid-area: arrow; font-size: 1.15rem; opacity: .35; transition: transform .5s var(--ease), opacity .3s; }
.svc.is-active a, .svc a:hover, .svc a:focus-visible { padding-left: .9rem; }
.svc.is-active a::before, .svc a:hover::before { transform: scaleX(1); }
.svc.is-active .svc__desc, .svc a:focus-visible .svc__desc { max-height: 4rem; opacity: 1; margin-top: .35rem; }
.svc.is-active .svc__arrow { opacity: 1; transform: translate(3px, -3px); }
html:not(.js) .svc__desc { max-height: none; opacity: 1; margin-top: .35rem; }
.services > .container > .proto-note { margin-top: 2.5rem; }

/* ---------- 13. After dark ---------- */
.after-dark {
  position: relative;
  padding-block: var(--section-y);
  background: #050507;
  overflow: hidden;
  isolation: isolate;
}
.after-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 40% at 55% 30%, rgba(255, 70, 50, .08), transparent 70%), radial-gradient(40% 35% at 85% 75%, rgba(140, 80, 255, .08), transparent 70%);
}
.after-dark__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.after-dark .band { border-color: rgba(236, 235, 231, .2); }
.after-dark__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.after-dark__text { grid-column: 1 / span 4; display: grid; gap: 1.75rem; justify-items: start; align-self: center; }
.after-dark__title { font-size: clamp(3.6rem, 8vw, 8.5rem); line-height: .85; }
.after-dark__title .display { display: block; }
.after-dark__title .serif { display: block; font-size: 1.05em; line-height: .9; color: #ffe1db; text-shadow: 0 0 40px rgba(255, 92, 72, .45); }
.after-dark__text .lead { color: var(--text-dim); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.after-dark__list { display: grid; width: 100%; }
.after-dark__list a { display: flex; gap: 1rem; align-items: baseline; padding-block: .75rem; border-top: 1px solid var(--line); transition: color .3s, padding .5s var(--ease); }
.after-dark__list li:last-child a { border-bottom: 1px solid var(--line); }
.after-dark__list a:hover { color: #ffe1db; padding-left: .5rem; }
.after-dark__list .mono-label { width: 2.75rem; }

.after-dark__main { grid-column: 5 / span 4; display: grid; gap: .9rem; }
.after-dark__main .portal__media { aspect-ratio: 9 / 15; }
.after-dark__side { grid-column: 9 / -1; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.after-dark__ambient .portal { --c: 22px; }
.after-dark__ambient .portal__media { aspect-ratio: 4 / 5; }
.after-dark__glow { width: 72%; justify-self: end; }
.after-dark__glow .portal { --c: 16px; }
.after-dark__glow .portal__media { aspect-ratio: 1 / 1; }
.after-dark figure { display: grid; gap: .75rem; }

/* ---------- 14. Heat: performance & fabrication ---------- */
.heat { background: var(--carbon); }
.heat__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.heat__words { grid-column: 1 / span 7; display: grid; }
.heat__words span {
  font-size: clamp(4rem, 11vw, 12rem);
  line-height: .84;
  /* Outline = stroke painted under a surface-coloured fill. Bahnschrift has
     overlapping contours that a transparent fill would expose as inner lines. */
  color: var(--carbon);
  -webkit-text-stroke: 3px rgba(236, 235, 231, .26);
  paint-order: stroke fill;
  transition: color .6s var(--ease), -webkit-text-stroke-color .6s, text-shadow .6s;
}
.heat__words span.is-lit { color: var(--bone); -webkit-text-stroke-color: transparent; }
.heat__words span.is-lit:last-child { color: var(--led); text-shadow: 0 0 30px var(--led-glow); }
.heat__video { grid-column: 8 / -1; display: grid; gap: .9rem; }
.heat__video .portal__media { aspect-ratio: 4 / 5; }
/* The clip carries a caption baked into its top third; framing from the bottom hides it. */
.heat__video video { object-position: 50% 100%; }
.heat__intro { grid-column: 1 / span 9; margin-top: clamp(2rem, 4vw, 3rem); }
.heat__title { font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .92; }

.heat__collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.5rem);
  margin-top: clamp(3rem, 7vw, 6rem);
  align-items: start;
}
.heat__shot { display: grid; gap: .7rem; }
.heat__shot img { width: 100%; object-fit: cover; filter: saturate(.9); transition: filter .8s var(--ease), scale 1.2s var(--ease); }
.heat__shot:hover img { filter: saturate(1.1); }
.heat__shot--a { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.heat__shot--a img { aspect-ratio: 4 / 5; }
.heat__shot--b { grid-column: 6 / span 3; grid-row: 1 / span 2; margin-top: clamp(3rem, 10vw, 9rem); }
.heat__shot--b img { aspect-ratio: 3 / 4; }
.heat__shot--c { grid-column: 9 / span 4; grid-row: 1; }
.heat__shot--c img { aspect-ratio: 1 / 1; }
.heat__shot--d { grid-column: 9 / span 3; grid-row: 2; margin-top: .5rem; }
.heat__shot--d img { aspect-ratio: 4 / 3; }

.heat__specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(3rem, 6vw, 5rem); }
.spec { position: relative; padding-top: 1.5rem; display: grid; gap: .9rem; align-content: start; color: var(--text-dim); }
.spec::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transform: scaleX(var(--line-scale, 1));
  transition: transform 1.4s var(--ease) var(--delay, 0s);
}
.js .spec[data-reveal]:not(.is-in)::before { --line-scale: 0; }
.spec__title { font-size: 1.2rem; font-weight: 600; color: var(--bone); line-height: 1.25; }
.heat > .container > .proto-note { margin-top: 2.5rem; }

/* ---------- 15. Process + why ---------- */
.process__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.process__media { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 2rem); }
.process__media .portal__media { aspect-ratio: 9 / 14; max-height: calc(100vh - var(--header-h) - 4rem); }
.process__body { grid-column: 6 / -1; display: grid; gap: 1.5rem; }

.steps { --progress: 0; position: relative; display: grid; margin-top: 1.5rem; padding-left: 2.25rem; }
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--line);
}
.steps::after {
  background: var(--led);
  box-shadow: 0 0 12px var(--led-glow);
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.step { display: grid; grid-template-columns: clamp(4.5rem, 8vw, 7.5rem) 1fr; gap: 1.5rem; padding-block: clamp(1.75rem, 3.5vw, 3rem); border-bottom: 1px solid var(--line); color: var(--text-dim); }
.step:first-child { padding-top: 0; }
.step__num { font-size: clamp(3.6rem, 7vw, 6.5rem); color: rgba(236, 235, 231, .14); transition: color .6s var(--ease), text-shadow .6s; }
.step.is-lit .step__num { color: var(--led); text-shadow: 0 0 26px var(--led-glow); }
.step__title { font-size: 1.4rem; font-weight: 600; color: var(--bone); margin-bottom: .5rem; padding-top: .4rem; }

.why { margin-top: clamp(6rem, 12vw, 10rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) var(--gutter); }
.why__title { grid-column: 1 / -1; font-size: clamp(3rem, 7vw, 7rem); }
.why__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.why__list li { display: grid; gap: .6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.why__list h4 { font-size: 1.25rem; font-weight: 600; }
.why__list p { color: var(--text-dim); }
.trust { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.trust__slot { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px dashed var(--line-strong); }
.trust__logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.trust__logos span { height: 2.75rem; background: rgba(236, 235, 231, .05); border: 1px solid var(--line); }
.trust__quote { display: grid; gap: .6rem; }
.trust__quote span { height: .7rem; background: rgba(236, 235, 231, .06); }
.trust__quote .short { width: 55%; }

/* ---------- 16. Quote ---------- */
.quote { background: var(--carbon); overflow: hidden; isolation: isolate; }
.quote__bg { position: absolute; inset: 0 auto 0 0; width: 46%; z-index: -1; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(.4); }
.quote__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 17, .2), var(--carbon) 96%), linear-gradient(to top, var(--carbon), transparent 30%, transparent 70%, var(--carbon)); }
.quote__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(3rem, 5vw, 4rem) var(--gutter); align-items: start; }
.quote__intro { grid-column: 1 / span 5; display: grid; gap: 1.75rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.quote__intro .section-band { margin-bottom: 0; }
.quote__title { font-size: clamp(4rem, 9.5vw, 10rem); line-height: .82; }
.quote__title .display { display: block; }
.quote__title .serif { display: block; font-size: .95em; line-height: .95; }
.quote__book { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.quote__direct li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: baseline; padding-block: 1rem; border-top: 1px solid var(--line); }
.quote__direct li:last-child { border-bottom: 1px solid var(--line); }
.quote__direct a { font-size: 1.1rem; transition: color .3s; overflow-wrap: anywhere; }
.quote__direct a:hover { color: var(--led); }

.quote-form {
  --c: 32px;
  grid-column: 7 / -1;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: var(--charcoal);
  clip-path: polygon(0 var(--c), var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
.quote-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: .55rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); padding: 0; }
.field__hint { text-transform: none; letter-spacing: .02em; opacity: .7; margin-left: .4rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%;
  font: inherit;
  color: var(--bone);
  background: transparent linear-gradient(var(--led), var(--led)) left bottom / 0 1px no-repeat;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: .7rem 0;
  transition: border-color .3s, background-size .6s var(--ease);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(236, 235, 231, .3); }
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 1px; border-color: transparent; }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--led); }
.field.has-error input { border-color: #e0786b; }
.field__error { font-size: .85rem; color: #f0a196; }
.field__error:empty { display: none; }
.chips { gap: 1.25rem; }
.chips legend { margin-bottom: 1rem; }
.chips__group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips__label { width: 100%; font-size: .64rem; margin-bottom: .15rem; color: rgba(142, 146, 154, .85); }
.chip, .radio { position: relative; cursor: pointer; }
.chip input, .radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .radio span { display: inline-block; padding: .55rem .9rem; font-family: var(--font-body); font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--bone); border: 1px solid var(--line-strong); transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.chip input:hover + span, .radio input:hover + span { border-color: var(--bone); }
.chip input:checked + span, .radio input:checked + span { background: var(--led); color: var(--ink); border-color: var(--led); box-shadow: 0 0 18px rgba(214, 228, 255, .25); }
.chip input:focus-visible + span, .radio input:focus-visible + span { outline: 2px solid var(--led); outline-offset: 3px; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radios legend { width: 100%; margin-bottom: .6rem; }
.quote-form__status { font-size: .95rem; }
.quote-form__status:empty { display: none; }
.quote-form__status.is-success { padding: 1rem 1.25rem; border-left: 2px solid var(--led); background: rgba(236, 235, 231, .05); }

/* Quote, directly below the hero: the hero's deep base continues into the
   section, so the film appears to settle onto the form. */
.quote { padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.quote::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(6rem, 14vw, 12rem);
  z-index: -1;
  background: linear-gradient(var(--ink), var(--carbon));
  pointer-events: none;
}
.quote__bg {
  top: clamp(4rem, 8vw, 8rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent), linear-gradient(to right, #000 55%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent), linear-gradient(to right, #000 55%, transparent);
  mask-composite: intersect;
}

/* Readability and touch: clearer labels, filled fields, 44px+ targets. */
.field { gap: .5rem; }
.field label, .field legend { font-size: .74rem; color: rgba(236, 235, 231, .72); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  font-size: max(1rem, 16px); /* 16px+ stops phones zooming into fields */
  line-height: 1.4;
  padding: .85rem .95rem;
  min-height: 3.1rem;
  background-color: rgba(236, 235, 231, .045);
  border-bottom-color: rgba(236, 235, 231, .32);
}
.field input:focus, .field textarea:focus { background-color: rgba(236, 235, 231, .07); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--bone); box-shadow: 0 0 0 100px #1d1e22 inset; }
.field__error { font-size: .9rem; }
.chips__label { font-size: .68rem; color: rgba(236, 235, 231, .55); margin-top: .35rem; }
.chip span, .radio span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem 1rem; font-size: .95rem; }
.quote-form .btn--block { min-height: 3.6rem; font-size: .8rem; }
.quote-form > .proto-note { text-align: center; }

/* ---------- 17. Footer ---------- */
.site-footer { position: relative; padding-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); overflow: hidden; }
/* The logo's own band rules run out to both edges of the page. */
.site-footer__mark { position: relative; width: min(46vw, 34rem); margin: 0 auto clamp(3.5rem, 7vw, 6rem); }
.site-footer__mark img { position: relative; width: 100%; height: auto; }
.site-footer__rule { position: absolute; left: -50vw; right: -50vw; height: 1px; background: var(--line-strong); }
.site-footer__rule--top { top: 43.6%; }
.site-footer__rule--bottom { top: 57.4%; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.5rem var(--gutter); padding-bottom: clamp(3rem, 6vw, 5rem); }
.site-footer__col { display: grid; gap: 1rem; align-content: start; color: rgba(236, 235, 231, .82); font-size: .98rem; }
.site-footer__col a:hover { color: var(--led); }
.site-footer__col ul { display: grid; gap: .4rem; }
.site-footer__col--lead { gap: 1.75rem; justify-items: start; }
.site-footer__tag { font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: .95; }
.site-footer__tag .serif { font-size: .9em; }
.site-footer__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hours { display: grid; gap: .3rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; max-width: 15rem; }
.hours dt { color: var(--steel); }
.social { display: flex !important; gap: 1.25rem !important; margin-top: .5rem; flex-wrap: wrap; }
.social a { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem calc(4.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: .85rem;
}

/* ---------- 18. Prototype review aids (removed in production) ---------- */
.proto-note { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; line-height: 1.5; color: #d9c38f; }
.proto-note::before { content: "\25B2  "; font-size: .6rem; }
[data-note] { position: relative; }
.show-notes [data-note]::after {
  content: attr(data-note);
  display: inline-block;
  margin-left: .5rem;
  padding: .15rem .45rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
  background: #d9c38f;
  vertical-align: middle;
  white-space: nowrap;
}
.show-notes .file__confirm[data-note]::after { margin: 0; }
body:not(.show-notes) .proto-note { display: none; }

.proto-bar {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .4rem .4rem .4rem .9rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(21, 22, 26, .92);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.proto-bar__label { color: #d9c38f; }
.proto-bar__btn { padding: .45rem .7rem; background: var(--bone); color: var(--ink); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 130;
  max-width: min(30rem, calc(100% - 2rem));
  padding: .9rem 1.2rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--led);
  transform: translate(-50%, calc(100% + 3rem));
  visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s .6s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }

/* ---------- 19. Motion: entrances & reveals (JS-enhanced only) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) var(--delay, 0s), transform 1.3s var(--ease) var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js figure[data-reveal] { transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .mega__inner { grid-template-columns: repeat(3, 1fr); }
  .mega__feature { display: none; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__col--lead { grid-column: 1 / -1; }
  .heat__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .after-dark__text { grid-column: 1 / span 5; }
  .after-dark__main { grid-column: 6 / span 4; }
  .after-dark__side { grid-column: 10 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav, .site-header__actions > .btn { display: none; }
  .menu-toggle { display: block; }
  .mega { display: none; }
  .logo img { height: 42px; }


  .studio__statement, .studio__body { grid-column: 1 / -1; }
  .studio__media { grid-column: 1 / span 7; grid-row: auto; }
  .studio__aside { grid-column: 8 / -1; margin-top: 30%; }
  .studio__stats { grid-template-columns: repeat(3, 1fr); }
  .studio__stats > div { flex-direction: column-reverse; align-items: flex-start; gap: .25rem; }

  /* Build files: each file shows its own image. */
  .files { grid-column: 1 / -1; }
  .files__preview { display: none; }
  .file__media { display: block; margin-bottom: 1.75rem; --c: 28px; }
  .file__media .portal__media { aspect-ratio: 4 / 5; }
  .file__media img { width: 100%; height: 100%; object-fit: cover; }
  .file__title { color: var(--bone); }
  .file__work { color: var(--bone); }
  .file.is-active .file__title { translate: none; }
  .file__confirm { position: static; display: block; margin: -1rem 0 1.25rem; }
  .file__confirm::after { margin-left: 0 !important; }

  /* Services: tabs scroll, every service shows a thumbnail. */
  .js .dept-tabs { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .dept-tab { flex: none; scroll-snap-align: start; padding-right: 1.25rem; }
  .dept__media { grid-column: 1 / -1; position: relative; top: auto; }
  .dept__stack { aspect-ratio: 4 / 3; max-height: none; }
  .dept__body { grid-column: 1 / -1; }
  .svc a { grid-template-columns: 4.25rem 1fr auto; grid-template-areas: "thumb name arrow" "thumb desc arrow"; padding-block: .85rem; }
  .svc.is-active a, .svc a:hover, .svc a:focus-visible { padding-left: 0; }
  .svc__thumb { display: block; grid-area: thumb; width: 3.5rem; height: 3.5rem; object-fit: cover; }
  .svc__desc { max-height: none; opacity: 1; margin-top: .2rem; font-size: .88rem; }

  .after-dark__text { grid-column: 1 / -1; }
  .after-dark__main { grid-column: 1 / span 7; }
  .after-dark__side { grid-column: 8 / -1; align-self: end; }
  .after-dark__glow { width: 100%; }

  .heat__words { grid-column: 1 / -1; }
  .heat__video { grid-column: 1 / -1; }
  .heat__video .portal__media { aspect-ratio: 4 / 4.2; }
  .heat__intro { grid-column: 1 / -1; }
  .heat__shot { grid-row: auto !important; }
  .heat__shot--a { grid-column: 1 / span 7; }
  .heat__shot--b { grid-column: 8 / -1; margin-top: 30%; }
  .heat__shot--c { grid-column: 1 / span 6; }
  .heat__shot--d { grid-column: 7 / -1; margin-top: 15%; }

  .process__media { grid-column: 1 / -1; position: relative; top: auto; }
  .process__media .portal__media { aspect-ratio: 4 / 4.4; }
  .process__body { grid-column: 1 / -1; }
  .why__list { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }

  .quote__bg { width: 100%; inset: 0 0 auto; height: 60vh; }
  .quote__intro, .quote-form { grid-column: 1 / -1; }
  .quote__intro { position: static; }
  .site-footer__mark { width: min(70vw, 26rem); }
}

@media (max-width: 600px) {
  .band { font-size: .64rem; letter-spacing: .14em; }
  .section-band > span:nth-child(3) { display: none; }
  .studio__stats dd { font-size: 2.4rem; }
  .studio__stats dt { font-size: .6rem; }
  .studio__media { grid-column: 1 / -1; }
  .studio__aside { display: none; }
  .file__link { grid-template-columns: 1fr auto; grid-template-areas: "no arrow" "title arrow" "work arrow"; }
  .file__no { padding-top: 0; }
  .after-dark__main, .after-dark__side { grid-column: 1 / -1; }
  .after-dark__side { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .after-dark__glow .portal__media { aspect-ratio: 4 / 5; }
  .heat__specs { grid-template-columns: 1fr; }
  .heat__collage { row-gap: 1.5rem; }
  .step { grid-template-columns: 1fr; gap: .25rem; }
  .steps { padding-left: 1.5rem; }
  .quote-form__row { grid-template-columns: 1fr; }
  .quote-form { --c: 18px; padding: 1.4rem 1.1rem 1.6rem; margin-inline: calc(-.25 * var(--gutter)); }
  .chips__group { gap: .45rem; }
  .quote__direct li { grid-template-columns: 1fr; gap: .25rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .proto-bar__label { display: none; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .intro-mark { display: none !important; }
  .bay video, .hero__top, .hero__bottom { translate: none !important; scale: none !important; opacity: 1 !important; }
  .tunnel { display: none !important; }
  .hero__headline::after { display: none; }
  .studio__stack img { transition: none !important; }
  .js .shutter::before, .js .shutter::after { display: none; }
  .portal__lines path { opacity: 1 !important; animation: none !important; }
  .files__sweep { display: none; }
}
