/* ==========================================================================
   THE HOUSE OF V
   A dark room with warm light entering it.
   Mobile-first. Tokens on :root. No !important anywhere.
   ========================================================================== */

/* --------------------------------------------------------------- TOKENS -- */
:root {
  /* Palette */
  --ink:        #0B0A08;
  --ink-2:      #141110;
  --walnut:     #221A14;
  --leather:    #5A3A28;
  --garnet:     #4A1B22;
  --emerald:    #123B32;
  --patina:     #4E8577;
  --brass:      #B08D4F;
  --brass-hot:  #D8B771;
  --silver:     #A9A29B;
  --limestone:  #D9CFC1;
  --bone:       #EDE7DD;

  /* Derived */
  --hairline:        color-mix(in srgb, var(--brass) 34%, transparent);
  --hairline-soft:   color-mix(in srgb, var(--brass) 16%, transparent);
  --ink-veil:        color-mix(in srgb, var(--ink) 88%, transparent);

  /* Type */
  --f-display: "Cormorant Garamond", "Cormorant Fallback", "Times New Roman", serif;
  --f-editorial: "Fraunces", "Cormorant Garamond", "Cormorant Fallback", serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-h1:        clamp(3.2rem, 11vw, 12rem);
  --t-h2:        clamp(2.4rem, 7vw, 7rem);
  --t-statement: clamp(1.8rem, 4.5vw, 4rem);
  --t-body:      clamp(1rem, 1.15vw, 1.25rem);
  --t-eyebrow:   clamp(0.68rem, 0.8vw, 0.78rem);

  /* Rhythm */
  --gutter: clamp(1.5rem, 5vw, 7rem);
  --section-y: clamp(5rem, 11vh, 12rem);
  --measure: 62ch;

  /* Motion */
  --dur: 1.2s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --grain-opacity: 0.03;
}

@media (min-width: 64em) {
  :root { --grain-opacity: 0.05; }
}

/* ------------------------------------------------- METRIC-MATCHED FALLBACKS
   The webfonts arrive with display:swap. These local stand-ins are adjusted to
   sit close to the real metrics so the swap does not shove the layout. */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Times New Roman"), local("Times"), local("Georgia");
  size-adjust: 91%;
  ascent-override: 100%;
  descent-override: 28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--limestone);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none; }

::selection { background: var(--brass); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass-hot);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.9rem 1.4rem;
  background: var(--ink-2);
  color: var(--bone);
  border-bottom: 1px solid var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateY(-110%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ------------------------------------------------------------ UTILITIES -- */
.eyebrow {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  line-height: 1.4;
}

.h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-wrap: balance;
}

.dot { color: var(--brass); padding: 0 0.15em; }

.hairline {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--hairline);
  transform-origin: left center;
}

/* Line mask reveal */
.mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
}
.mask__i { display: block; }

.brk { display: none; flex: 0 0 100%; width: 100%; height: 0; }
.brk--m { display: block; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 1rem 2rem;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(0.7rem, 0.78vw, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--brass);
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.btn > span { position: relative; z-index: 1; }
.btn--lg { min-height: 56px; padding: 1.25rem 2.5rem; }

.btn--hairline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 0%,
    color-mix(in srgb, var(--brass-hot) 26%, transparent) 45%,
    color-mix(in srgb, var(--brass-hot) 46%, transparent) 50%,
    color-mix(in srgb, var(--brass-hot) 26%, transparent) 55%,
    transparent 100%);
  transform: translateX(-105%);
  transition: transform 0.9s var(--ease-out);
}
.btn--hairline:hover::before,
.btn--hairline:focus-visible::before { transform: translateX(105%); }
.btn--hairline:hover { color: var(--brass-hot); border-color: var(--brass-hot); }

.link-ghost {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0;
  min-height: 48px;
  line-height: 2.2;
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.5s var(--ease-out);
}
.link-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.4rem;
  height: 1px;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.link-ghost:hover { color: var(--bone); }
.link-ghost:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------------- OVERLAYS -- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 900;
  pointer-events: none;
  background-image: url("assets/img/grain.png");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  animation: grain-shift 1s steps(8) infinite;
}

@keyframes grain-shift {
  0%   { background-position:   0px   0px; }
  12%  { background-position: -32px  18px; }
  25%  { background-position:  24px -34px; }
  37%  { background-position: -18px -22px; }
  50%  { background-position:  36px  12px; }
  62%  { background-position: -28px  30px; }
  75%  { background-position:  14px -16px; }
  87%  { background-position: -36px  -8px; }
  100% { background-position:   0px   0px; }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 899;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%,
              transparent 42%,
              color-mix(in srgb, var(--ink) 38%, transparent) 78%,
              color-mix(in srgb, var(--ink) 72%, transparent) 100%);
}

/* Scroll rail */
.rail {
  position: fixed;
  top: 12vh;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: 12vh;
  width: 1px;
  z-index: 500;
  background: var(--hairline-soft);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.rail.is-on { opacity: 1; }
.rail__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top center;
}
.rail__tick {
  position: absolute;
  right: 0;
  top: calc(var(--at) * 100%);
  width: 5px;
  height: 1px;
  background: var(--hairline);
}
/* One tick per section, placed by scroll depth. */
.rail__tick:nth-of-type(1) { --at: 0.10; }
.rail__tick:nth-of-type(2) { --at: 0.22; }
.rail__tick:nth-of-type(3) { --at: 0.38; }
.rail__tick:nth-of-type(4) { --at: 0.52; }
.rail__tick:nth-of-type(5) { --at: 0.66; }
.rail__tick:nth-of-type(6) { --at: 0.80; }
.rail__tick:nth-of-type(7) { --at: 0.92; }

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 950;
  pointer-events: none;
  display: none;
  transform: translate3d(-100px, -100px, 0);
}
.cursor__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  background: transparent;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out),
              margin 0.45s var(--ease-out), background-color 0.45s var(--ease-out);
}
.cursor__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--brass-hot);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-active .cursor__ring {
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  background: color-mix(in srgb, var(--brass) 8%, transparent);
}
.cursor.is-labelled .cursor__label { opacity: 1; }

@media (hover: hover) and (pointer: fine) and (min-width: 64em) {
  .cursor { display: block; }
}

/* ------------------------------------------------------------ PRELOADER -- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--brass);
}
.preloader.is-done { pointer-events: none; }

.preloader__inner { display: grid; justify-items: center; gap: 2.2rem; }

.preloader__mark {
  width: clamp(56px, 9vw, 96px);
  height: auto;
  overflow: visible;
}
.preloader__path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.preloader__count {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--silver);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ NAV -- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
  background: linear-gradient(to bottom,
              color-mix(in srgb, var(--ink) 92%, transparent),
              transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav.is-hidden  { opacity: 0; pointer-events: none; transform: translateY(-100%); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
}

.nav__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -12px;
  color: var(--brass);
  transition: color 0.5s var(--ease-out);
}
.nav__mark svg { width: 22px; height: 22px; }
.nav__mark:hover { color: var(--brass-hot); }

.nav__links { display: none; gap: clamp(1.5rem, 3vw, 3.5rem); }
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 0.9rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.5s var(--ease-out);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.55rem;
  height: 1px;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: none; }

@media (min-width: 64em) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; padding: 0.85rem 1.6rem; min-height: 44px; }
}

/* ----------------------------------------------------------------- HERO -- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  will-change: transform;
}
.hero__video.is-ready { opacity: 1; }
/* The poster is the LCP paint. Small screens get a 900px cut of it. */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/img/scene-01-poster-mobile.jpg");
  background-size: cover;
  background-position: center;
}
@media (min-width: 48em) {
  .hero__media::before { background-image: url("assets/img/scene-01-poster.jpg"); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      color-mix(in srgb, var(--ink) 96%, transparent) 0%,
      color-mix(in srgb, var(--ink) 78%, transparent) 26%,
      color-mix(in srgb, var(--ink) 30%, transparent) 62%,
      color-mix(in srgb, var(--ink) 12%, transparent) 100%),
    linear-gradient(to right,
      color-mix(in srgb, var(--ink) 74%, transparent) 0%,
      color-mix(in srgb, var(--ink) 40%, transparent) 38%,
      transparent 64%);
}

/* The ink the hero returns to as it leaves. */
.hero__deepen {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
}

/* Mobile is its own cut of the film: the scrim sits deeper so the type never
   has to fight the doorway light. */
@media (max-width: 47.999em) {
  .hero__scrim {
    background:
      linear-gradient(to top,
        color-mix(in srgb, var(--ink) 98%, transparent) 0%,
        color-mix(in srgb, var(--ink) 92%, transparent) 40%,
        color-mix(in srgb, var(--ink) 58%, transparent) 72%,
        color-mix(in srgb, var(--ink) 34%, transparent) 100%);
  }
}

.hero__content {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter) clamp(4rem, 12vh, 8rem);
}

.hero__eyebrow { margin-bottom: clamp(1.2rem, 3vh, 2rem); }

.hero__title {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.26em;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h1);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.hero__sub {
  max-width: 34ch;
  margin-top: clamp(1.4rem, 3vh, 2.4rem);
  color: var(--limestone);
  font-size: clamp(0.98rem, 1.15vw, 1.2rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.hero__cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 6vh, 4rem);
  width: 1px;
  height: 76px;
  overflow: hidden;
  display: none;
}
.hero__cue-line {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--brass);
  transform-origin: top center;
  animation: cue 2.8s var(--ease-inout) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0); transform-origin: top center; }
  45%      { transform: scaleY(1); transform-origin: top center; }
  55%      { transform: scaleY(1); transform-origin: bottom center; }
  95%      { transform: scaleY(0); transform-origin: bottom center; }
}

@media (min-width: 48em) {
  .hero__cue { display: block; }
}

/* ---------------------------------------------------------------- STATS -- */
.stats {
  position: relative;
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
  background: var(--ink);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.stat { display: grid; gap: 0.9rem; align-content: start; }

/* All four values sit on one baseline regardless of their type size. */
.stat__value {
  display: flex;
  align-items: flex-end;
  min-height: clamp(3rem, 6vw, 5.5rem);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.stat__value--word { font-size: clamp(2.2rem, 4.2vw, 4rem); }

.stat__label {
  max-width: 26ch;
  font-size: clamp(0.86rem, 0.95vw, 0.98rem);
  line-height: 1.55;
  color: var(--silver);
}

.stats__note {
  margin-top: clamp(3rem, 7vh, 5rem);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--limestone);
}

@media (min-width: 48em) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------- MISSION -- */
.mission {
  position: relative;
  background: var(--ink);
}
.mission__pin {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--section-y) var(--gutter);
}
.mission__statement {
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-statement);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--bone);
}
/* 0.4 is the resting opacity, not 0.25: below this the un-revealed words fail
   AA contrast against the ink for anyone who never scrubs past them. */
.mission__statement .w { opacity: 0.4; transition: opacity 0.4s linear; }

@media (min-width: 64em) {
  .mission__statement { max-width: 26ch; }
}

/* Swap */
.swap {
  position: relative;
  background: var(--ink);
}
.swap__pin {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--section-y) var(--gutter);
}
.swap__line {
  grid-area: 1 / 1;
  max-width: 20ch;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-statement);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.swap__line--a { color: var(--bone); }
.swap__line--b { color: var(--brass); opacity: 0; }

/* -------------------------------------------------------------- PILLARS -- */
.pillars {
  position: relative;
  background: var(--ink-2);
  padding-top: var(--section-y);
}

.pillars__head {
  padding: 0 var(--gutter) clamp(3rem, 8vh, 6rem);
  display: grid;
  gap: 1.4rem;
}

.pillars__track { display: block; }

.pillar {
  position: relative;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  border-top: 1px solid var(--hairline-soft);
  background: var(--ink-2);
  overflow: hidden;
}

.pillar__numeral {
  position: absolute;
  top: clamp(1rem, 3vh, 3rem);
  right: var(--gutter);
  font-family: var(--f-editorial);
  font-weight: 300;
  font-size: clamp(7rem, 22vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--limestone) 16%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.pillar__figure {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--walnut);
}
.pillar__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.42) saturate(1.5) hue-rotate(348deg) contrast(1.05) brightness(0.86);
  transition: filter 0.6s var(--ease-out), transform 1.6s var(--ease-out);
}
.pillar:hover .pillar__figure img,
.pillar:focus-within .pillar__figure img {
  filter: none;
  transform: scale(1.03);
}

.pillar__body { position: relative; z-index: 1; display: grid; gap: 1.2rem; max-width: 56ch; }

.pillar__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.pillar__lede {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.7vw, 1.6rem);
  line-height: 1.45;
  color: var(--brass);
}

.pillar__text { color: var(--limestone); max-width: var(--measure); }

.pillar__seq {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-soft);
  counter-reset: seq;
}
.pillar__seq li {
  font-size: clamp(0.68rem, 0.78vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}
.pillar__seq li + li::before {
  content: "\2192";
  color: var(--brass);
  padding-right: 1rem;
}

@media (min-width: 64em) {
  .pillar {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(3rem, 6vw, 7rem);
    padding-block: clamp(6rem, 12vh, 10rem);
  }
  .pillar__figure { margin-bottom: 0; aspect-ratio: 4 / 5; }
  /* The numeral bleeds off the right edge so it never crowds the sequence. */
  .pillar__numeral { top: 50%; right: -4vw; transform: translateY(-50%); }
}

/* ---------------------------------------------------------------- STORY -- */
.story {
  position: relative;
  background: var(--ink);
  padding: var(--section-y) var(--gutter);
  display: grid;
  gap: clamp(3rem, 8vh, 5rem);
}

.story__sticky { display: grid; gap: 1.4rem; align-content: start; }
.story__name {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.story__scroll { display: grid; gap: clamp(1.6rem, 3.5vh, 2.4rem); max-width: var(--measure); }

.story__p {
  color: var(--limestone);
  font-size: clamp(1.02rem, 1.2vw, 1.24rem);
  line-height: 1.75;
}

.story__declaration {
  margin: clamp(1.5rem, 4vh, 3rem) 0 0;
  padding: clamp(1.8rem, 4vh, 2.8rem) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.story__declaration p {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  line-height: 1.35;
  color: var(--bone);
}

.story__sig {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

@media (min-width: 64em) {
  .story {
    grid-template-columns: 0.85fr 1fr;
    gap: clamp(4rem, 8vw, 10rem);
    align-items: start;
  }
  .story__sticky { position: sticky; top: 22vh; }
}

/* ------------------------------------------------------------ STANDARDS -- */
.experience {
  background: var(--ink);
  padding: var(--section-y) var(--gutter);
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 5vh, 3rem);
  text-align: center;
}
.experience__text {
  max-width: 30ch;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  line-height: 1.35;
  color: var(--bone);
}

.standards {
  position: relative;
  background: var(--ink-2);
  padding-top: var(--section-y);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.standards__head {
  padding: 0 var(--gutter) clamp(3rem, 7vh, 5rem);
  display: grid;
  gap: 1.4rem;
}

.standards__viewport { overflow: hidden; }

.standards__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-inline: var(--gutter);
}
.standards__track::-webkit-scrollbar { display: none; }

.standard {
  flex: 0 0 min(84vw, 34rem);
  scroll-snap-align: center;
  display: grid;
  align-content: center;
  gap: 1.4rem;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.2rem, 3vw, 3rem) clamp(2rem, 5vh, 4rem) 0;
  min-height: clamp(20rem, 52vh, 34rem);
}

.standard__num {
  font-family: var(--f-editorial);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--brass);
}

.standard__word {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.standard__line {
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.65;
  color: var(--silver);
}

.standards__progress {
  margin: clamp(2rem, 5vh, 3rem) var(--gutter) 0;
  height: 1px;
  background: var(--hairline-soft);
}
.standards__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0.14);
  transform-origin: left center;
}

@media (min-width: 64em) {
  .standards__track {
    overflow-x: visible;
    scroll-snap-type: none;
    padding-inline: 0;
    will-change: transform;
  }
  .standard {
    flex: 0 0 min(38vw, 34rem);
    padding-inline: clamp(3rem, 6vw, 7rem);
    min-height: 62vh;
    border-left: 1px solid var(--hairline-soft);
  }
}

/* --------------------------------------------------------- LIVING SYSTEM -- */
.living {
  position: relative;
  background: var(--ink);
}
.living__pin {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.living__media { position: absolute; inset: 0; }
.living__video,
.living__seq {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.living__seq[hidden] { display: none; }
.living__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 50%,
      color-mix(in srgb, var(--ink) 22%, transparent) 0%,
      color-mix(in srgb, var(--ink) 76%, transparent) 100%);
}

.living__lines {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  text-align: center;
}
.living__line {
  grid-area: 1 / 1;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.living__line.is-on { opacity: 1; }

/* The Table */
.table {
  background: var(--ink);
  padding: clamp(3rem, 9vh, 7rem) var(--gutter) var(--section-y);
  display: grid;
  justify-items: center;
}
.table__frame {
  width: min(100%, 62rem);
  padding: clamp(0.6rem, 1.4vw, 1rem);
  border: 1px solid var(--brass);
  display: grid;
  gap: clamp(1rem, 2.4vh, 1.6rem);
}
.table__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--walnut);
}
.table__caption {
  padding-bottom: 0.4rem;
  font-size: clamp(0.68rem, 0.8vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--silver);
  text-align: center;
}

/* ----------------------------------------------------------------- WORK -- */
.work {
  background: var(--ink-2);
  padding: var(--section-y) var(--gutter);
}
.work__head { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 8vh, 6rem); }

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vh, 5rem);
}

.work__item { display: grid; gap: 1.4rem; }

.work__figure {
  overflow: hidden;
  background: var(--walnut);
  aspect-ratio: 3 / 2;
}
.work__item--b .work__figure,
.work__item--d .work__figure,
.work__item--f .work__figure { aspect-ratio: 4 / 5; }

.work__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.4s var(--ease-out), filter 0.7s var(--ease-out);
}
.work__item:hover .work__figure img,
.work__item:focus-within .work__figure img {
  filter: saturate(0.7) brightness(0.94);
}

.work__meta { display: grid; gap: 0.5rem; }

.work__name {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
}
.work__place {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.work__note {
  max-width: 42ch;
  margin-top: 0.4rem;
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  line-height: 1.65;
  color: var(--silver);
}
.work__meta .hairline {
  margin-top: 1rem;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-out);
}
.work__item:hover .work__meta .hairline,
.work__item:focus-within .work__meta .hairline { transform: scaleX(1); }

@media (min-width: 48em) {
  .work__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(3rem, 6vh, 6rem) clamp(1.5rem, 3vw, 3rem);
  }
  .work__item--a { grid-column: 1 / 8; }
  .work__item--b { grid-column: 9 / 13; align-self: end; }
  .work__item--c { grid-column: 2 / 9; }
  .work__item--d { grid-column: 9 / 13; }
  .work__item--e { grid-column: 1 / 7; align-self: end; }
  .work__item--f { grid-column: 8 / 12; }
}

@media (min-width: 90em) {
  .work__item--a { grid-column: 1 / 7; }
  .work__item--b { grid-column: 8 / 12; }
  .work__item--c { grid-column: 2 / 8; }
  .work__item--d { grid-column: 9 / 13; }
  .work__item--e { grid-column: 1 / 6; }
  .work__item--f { grid-column: 7 / 11; }
}

/* ------------------------------------------------------------------ CTA -- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--section-y) var(--gutter) clamp(5rem, 12vh, 9rem);
}
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.cta__video.is-ready { opacity: 1; }
.cta__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/img/scene-03-poster.jpg");
  background-size: cover;
  background-position: center;
}
.cta__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--ink) 88%, transparent) 0%,
      color-mix(in srgb, var(--ink) 96%, transparent) 42%,
      color-mix(in srgb, var(--ink) 99%, transparent) 100%);
}

.cta__content { max-width: 74rem; margin: 0 auto; }

.cta__title {
  max-width: 16ch;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--bone);
}
/* Words hold their characters together so a word never breaks across lines. */
.cta__title .word { display: inline-block; white-space: nowrap; }
.cta__title .ch { display: inline-block; }

.cta__sub {
  max-width: 46ch;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  color: var(--limestone);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.7;
}

/* Form */
.form-wrap { margin-top: clamp(3.5rem, 9vh, 7rem); }

.form {
  display: grid;
  gap: clamp(2.6rem, 6vh, 4.2rem);
  max-width: 46rem;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.form.is-dissolving { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.field { position: relative; display: grid; }

.field__input {
  order: 2;
  width: 100%;
  min-height: 56px;
  padding: 1.6rem 0 0.9rem;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.field__input:focus { outline: none; }
.field__input--area { min-height: 8.5rem; resize: vertical; padding-top: 1.8rem; }

.field__input--select {
  color: var(--bone);
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
                    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field__input--select option { background: var(--ink-2); color: var(--bone); }

.field__label {
  order: 1;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.4s var(--ease-out);
  pointer-events: none;
}

/* Short fields: the label sits on the line, then rises and shrinks into
   letterspaced mono once the question is being answered. */
.field--float { position: relative; }
.field--float .field__label {
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: color-mix(in srgb, var(--silver) 84%, transparent);
  transition: top 0.5s var(--ease-out), font-size 0.5s var(--ease-out),
              font-weight 0.5s var(--ease-out), letter-spacing 0.5s var(--ease-out),
              color 0.5s var(--ease-out);
}
.field--float .field__input:focus ~ .field__label,
.field--float .field__input:not(:placeholder-shown) ~ .field__label {
  top: 0;
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.field--float .field__input:focus ~ .field__label { color: var(--brass-hot); }

/* Long answers and the select keep their question above the field: a question
   the size of a question, with room to write beneath it. */
.field--long .field__label,
.field--select .field__label {
  margin-bottom: 0.4rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: color-mix(in srgb, var(--limestone) 92%, transparent);
}
.field--long .field__input,
.field--select .field__input { padding-top: 0.7rem; }
.field--long .field__input:focus ~ .field__label,
.field--select .field__input:focus ~ .field__label { color: var(--brass-hot); }

.field__rule {
  order: 3;
  display: block;
  height: 1px;
  width: 100%;
  background: var(--hairline);
  position: relative;
}
.field__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass-hot);
  box-shadow: 0 0 12px color-mix(in srgb, var(--brass-hot) 40%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}
.field__input:focus ~ .field__rule::after { transform: scaleX(1); }

.field__msg {
  order: 4;
  min-height: 1.4rem;
  margin-top: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--leather);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.field.is-invalid .field__msg { opacity: 1; color: #A96A46; }
.field.is-invalid .field__rule { background: color-mix(in srgb, #A96A46 60%, transparent); }

.form__error {
  min-height: 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #A96A46;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.form__error.is-on { opacity: 1; }

.btn--sweep { justify-self: start; }
.btn[disabled] { opacity: 0.5; cursor: progress; }

.form-done {
  display: grid;
  justify-items: start;
  gap: clamp(2rem, 5vh, 3rem);
}
.form-done[hidden] { display: none; }
.form-done__line {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.3;
  color: var(--bone);
}
.form-done__mark { width: clamp(48px, 6vw, 72px); height: auto; color: var(--brass); overflow: visible; }
.form-done__path { stroke-dasharray: 160; stroke-dashoffset: 160; }

@media (min-width: 48em) {
  .field--select .field__label { order: 1; }
}

/* --------------------------------------------------------------- FOOTER -- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--hairline-soft);
  padding: clamp(4rem, 10vh, 8rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  display: grid;
  justify-items: center;
  gap: clamp(1.6rem, 4vh, 2.6rem);
  text-align: center;
}
.footer__mark { width: clamp(54px, 7vw, 88px); height: auto; color: var(--brass); }

.footer__line {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--silver);
}

.footer__closing {
  max-width: 42ch;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--limestone);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(0.5rem, 2vh, 1.5rem);
}
.footer__links a {
  position: relative;
  display: inline-block;
  min-height: 48px;
  line-height: 3;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.5s var(--ease-out);
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1.1rem;
  height: 1px;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.footer__links a:hover { color: var(--bone); }
.footer__links a:hover::after { transform: scaleX(1); }

.footer__copy {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

/* -------------------------------------------------- BREAKPOINT REFINEMENTS */
@media (min-width: 48em) {
  .brk--m { display: none; }
  .brk--d { display: block; }
}

@media (min-width: 120em) {
  :root { --measure: 66ch; }
  .cta__content { max-width: 86rem; }
  .story { max-width: 132rem; margin-inline: auto; }
  .work__grid { max-width: 132rem; margin-inline: auto; }
}

@media (min-width: 160em) {
  :root {
    --t-h1: 13rem;
    --t-h2: 7.5rem;
    --gutter: 9rem;
  }
  .hero__content,
  .stats__grid,
  .stats__note { max-width: 160rem; margin-inline: auto; }
}

/* ------------------------------------------------- REDUCED MOTION / A11Y -- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.3s;
  }
  .grain { animation: none; }
  .hero__cue { display: none; }
  .mission__statement .w { opacity: 1; }
  .cursor { display: none; }
  .hero__video,
  .cta__video { opacity: 1; }
}

/* Print — the site is a screen piece, but do not leave it black. */
@media print {
  .grain, .vignette, .rail, .cursor, .nav, .preloader { display: none; }
  body { background: #fff; color: #111; }
}
