/* ==========================================================================
   Wallthrough — styles
   ========================================================================== */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("assets/type/libre-caslon-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hedvig Letters Sans";
  src: url("assets/type/hedvig-letters-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — cool architectural: near-black, graphite, mineral gray.
     The warmth on the page comes from the films, never from the UI. */
  --night: #0b0c0e;        /* hero, contact, footer, lightbox */
  --graphite: #13151a;     /* page body */
  --graphite-2: #191c22;   /* process band */
  --mineral: #272c34;      /* raised fills, plan grid */
  --mineral-2: #3a414b;    /* secondary strokes */
  --paper: #eceeea;        /* crisp off-white type and lines */
  --ink: var(--night);     /* text on paper-filled controls */
  --ink-soft: rgba(236, 238, 234, 0.7);
  --ink-mute: rgba(236, 238, 234, 0.56);
  --line: rgba(236, 238, 234, 0.12);
  --line-strong: rgba(236, 238, 234, 0.28);
  --line-light: var(--line);

  --font-display: "Libre Caslon Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Hedvig Letters Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --shell: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--paper);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--night);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--light {
  color: var(--ink-soft);
}

.section-head {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.section-head--left {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  line-height: 0.99;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.section-sub {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 18px;
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-large {
  min-height: 60px;
  padding: 0 30px;
  font-size: 16px;
}

.btn-light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--night);
}

.btn-ghost-light {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(11, 12, 14, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .btn-light:hover {
    background: #fff;
    border-color: #fff;
  }

  .btn-ghost-light:hover {
    background: rgba(236, 238, 234, 0.1);
    border-color: rgba(236, 238, 234, 0.55);
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--paper);
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.site-header.is-solid {
  background-color: rgba(19, 21, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  opacity: 0.82;
  transition: opacity 200ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    opacity: 1;
  }

  .nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.btn-header {
  border-color: var(--line-strong);
  color: var(--paper);
}

.site-header.is-solid .btn-header {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--night);
}

@media (hover: hover) and (pointer: fine) {
  .btn-header:hover {
    background: rgba(236, 238, 234, 0.1);
    border-color: rgba(236, 238, 234, 0.55);
  }

  .site-header.is-solid .btn-header:hover {
    background: #fff;
    border-color: #fff;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 14, 0.55) 0%, rgba(11, 12, 14, 0) 22%),
    linear-gradient(0deg, rgba(11, 12, 14, 0.88) 0%, rgba(11, 12, 14, 0.4) 42%, rgba(11, 12, 14, 0.04) 70%),
    linear-gradient(90deg, rgba(11, 12, 14, 0.54) 0%, rgba(11, 12, 14, 0.34) 42%, rgba(11, 12, 14, 0) 78%);
}

.hero-content {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(32px, 6vh, 64px);
}

.hero .eyebrow {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.55rem, 8.7vw, 8.25rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  /* room for descenders inside the mask */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero-title .line > span {
  display: inline-block;
}

.hero-lede {
  max-width: 540px;
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(236, 238, 234, 0.84);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-foot::before {
  /* hairline aligned to the content edges, not the gutters */
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-light);
}

.reel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding-right: 8px;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}

.reel-toggle:active {
  transform: scale(0.97);
}

.reel-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: border-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .reel-toggle:hover .reel-icon {
    border-color: var(--paper);
  }
}

.reel-icon svg {
  position: absolute;
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
}

.reel-toggle .i-play {
  opacity: 0;
  transform: scale(0.6);
}

.reel-toggle[aria-pressed="true"] .i-pause {
  opacity: 0;
  transform: scale(0.6);
}

.reel-toggle[aria-pressed="true"] .i-play {
  opacity: 1;
  transform: scale(1);
}

.scroll-cue {
  display: inline-flex;
  gap: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .reel-toggle:hover,
  .scroll-cue:hover {
    color: var(--paper);
  }
}

/* Load-in choreography: one entrance for the hero, non-uniform stagger.
   Total ends around 700ms; the poster is visible the whole time. */
.js .hero-in {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 560ms var(--ease-out) forwards;
  animation-delay: calc(80ms + var(--i) * 60ms);
}

.js .hero-title .hero-in {
  transform: translateY(100%);
  animation-duration: 680ms;
}

/* The play/pause control is a control, not a reveal: present from first paint. */
.js .hero-foot.hero-in {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.8rem, 13.2vw, 3.5rem);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .scroll-cue {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Scroll reveals
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 480ms var(--ease-out),
    transform 560ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.intro {
  padding-top: clamp(96px, 14vw, 180px);
  padding-bottom: clamp(96px, 12vw, 160px);
}

.intro-statement {
  max-width: 1080px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.3vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 8vw, 104px);
}

.fact {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.fact dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}

.fact dd {
  font-size: 18px;
  line-height: 1.45;
  max-width: 28ch;
}

.intro-facts .fact:nth-child(2) {
  --d: 70ms;
}

.intro-facts .fact:nth-child(3) {
  --d: 120ms;
}

@media (max-width: 720px) {
  .intro-facts {
    grid-template-columns: 1fr;
  }
}

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

.work {
  padding-bottom: clamp(112px, 14vw, 180px);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}

.work-card--offset {
  margin-top: clamp(48px, 8vw, 120px);
}

.work-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mineral);
  transition: transform 160ms var(--ease-out);
}

.work-media:active {
  transform: scale(0.985);
}

.work-media--square {
  aspect-ratio: 1 / 1;
}

.work-media img,
.work-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-media img {
  transition: transform 600ms var(--ease-out);
}

.work-media video {
  opacity: 0;
  transition: opacity 240ms ease;
}

.work-media.is-previewing video {
  opacity: 1;
}

.play-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.56);
  border: 1px solid rgba(236, 238, 234, 0.14);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.play-chip svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .work-media:hover img {
    transform: scale(1.035);
  }

  .work-media:hover .play-chip {
    background: rgba(11, 12, 14, 0.78);
    border-color: rgba(236, 238, 234, 0.3);
  }
}

.work-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding-top: 22px;
}

.work-index {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-mute);
  padding-top: 4px;
}

.work-meta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.work-type {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.work-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
}

@media (max-width: 900px) {
  .work-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: min(78%, 360px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .work-grid::-webkit-scrollbar {
    display: none;
  }

  .work-card {
    scroll-snap-align: start;
  }

  .work-card--offset {
    margin-top: 0;
  }

  .work-media--square {
    aspect-ratio: 4 / 5;
  }
}

/* --------------------------------------------------------------------------
   Concept interiors
   -------------------------------------------------------------------------- */

.interiors {
  margin-top: clamp(64px, 9vw, 132px);
  padding-top: clamp(36px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.interior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 54px) clamp(18px, 2.6vw, 34px);
}

.interior-room img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mineral);
}

.interior-room figcaption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
}

@media (max-width: 680px) {
  .interior-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process {
  padding-top: clamp(112px, 14vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
  background: var(--graphite-2);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.steps {
  counter-reset: step;
}

.step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  transition: border-color 200ms ease, color 200ms ease;
  color: var(--ink-mute);
}

.step:last-child {
  min-height: 72vh;
}

.step.is-active {
  border-top-color: var(--paper);
  color: var(--paper);
}

.step-num {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 18px;
  transition: color 200ms ease;
}

.step.is-active .step-num {
  color: var(--paper);
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.step p {
  max-width: 44ch;
  color: var(--ink-mute);
  font-size: 17px;
  transition: color 200ms ease;
}

.step.is-active p {
  color: var(--ink-soft);
}

.process-stage-wrap {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  height: calc(100vh - var(--header-h) - 64px);
  display: flex;
  align-items: center;
}

.process-stage {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}

.stage-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 260ms ease,
    transform 420ms var(--ease-out);
}

.stage-layer.is-active {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 320ms ease,
    transform 480ms var(--ease-out);
}

.stage-layer video,
.stage-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-plan {
  display: grid;
  place-items: center;
  padding: 12%;
  background:
    radial-gradient(120% 90% at 50% 40%, var(--mineral) 0%, var(--night) 72%);
}

.stage-plan::before {
  /* faint drafting grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 238, 234, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 238, 234, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 100%);
}

.plan-svg {
  position: relative;
  width: 100%;
  height: auto;
}

.plan-svg polyline,
.plan-route {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms var(--ease-in-out);
  transition-delay: calc(var(--n, 0) * 40ms);
}

.plan-walls {
  stroke: var(--paper);
}

.plan-windows {
  stroke: var(--mineral-2);
}

.plan-doors {
  stroke: rgba(236, 238, 234, 0.45);
}

.plan-route {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3;
  stroke-linecap: round;
  transition-duration: 1100ms;
  transition-delay: 700ms;
}

.plan-cam {
  fill: var(--paper);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.7);
  transition:
    opacity 220ms ease,
    transform 320ms var(--ease-out);
  transition-delay: 1600ms;
}

.stage-plan.is-drawn polyline,
.stage-plan.is-drawn .plan-route {
  stroke-dashoffset: 0;
}

.stage-plan.is-drawn .plan-cam {
  opacity: 1;
  transform: scale(1);
}

.stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(11, 12, 14, 0.72), rgba(11, 12, 14, 0));
}

.stage-caption [data-stage-caption] {
  transition: opacity 160ms ease;
}

.stage-caption.is-swapping [data-stage-caption] {
  opacity: 0;
}

.stage-count {
  font-family: var(--font-body);
  color: var(--ink-mute);
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-stage-wrap {
    order: -1;
    top: calc(var(--header-h) + 12px);
    height: auto;
    z-index: 2;
    padding-bottom: 12px;
    background: var(--graphite-2);
  }

  .process-stage {
    aspect-ratio: 4 / 3;
    max-height: 42vh;
  }

  .stage-plan {
    padding: 8% 18%;
  }

  .step {
    min-height: 56vh;
  }

  .step:last-child {
    min-height: 60vh;
  }
}

/* --------------------------------------------------------------------------
   Audiences (tabs)
   -------------------------------------------------------------------------- */

.clients {
  padding-top: clamp(112px, 14vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.tablist-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.tablist {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.tablist > * {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-soft);
}

.tablist [role="tab"] {
  transition: color 160ms ease, transform 160ms var(--ease-out);
}

.tablist [role="tab"]:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .tablist [role="tab"]:hover {
    color: var(--paper);
  }
}

/* The clipped copy: only the active tab shows through */
.tablist--active {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-color: transparent;
  overflow: hidden;
  clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path 260ms var(--ease-in-out);
}

.tablist--active > * {
  background: var(--paper);
  color: var(--night);
  border-radius: 0;
}

.tablist--active > *:first-child {
  border-radius: 999px 0 0 999px;
}

.tablist--active > *:last-child {
  border-radius: 0 999px 999px 0;
}

/* Fill the 4px gaps so the clip window reads as one continuous pill */
.tablist--active {
  background: transparent;
}

.tablist--active > * + * {
  box-shadow: -4px 0 0 var(--paper);
}

.panels {
  display: grid;
}

.panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease-out),
    visibility 0s linear 220ms;
}

.panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 260ms ease 60ms,
    transform 320ms var(--ease-out) 60ms,
    visibility 0s;
}

.panel:focus-visible {
  outline-offset: 8px;
}

.panel-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mineral);
}

.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-copy h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.panel-copy p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 42ch;
}

.panel-copy ul {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.panel-copy li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.panel-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--paper);
}

@media (max-width: 900px) {
  .panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tablist > * {
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .tablist > * {
    padding-inline: 9px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   Stills strip
   -------------------------------------------------------------------------- */

.stills {
  padding-bottom: clamp(112px, 14vw, 180px);
}

.stills-track {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(20px, 2.6vw, 36px);
  align-items: end;
}

.still img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mineral);
}

.still:last-child img {
  aspect-ratio: 4 / 5;
}

.still figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .stills-track {
    grid-template-columns: 1fr;
  }

  .still:last-child img {
    aspect-ratio: 4 / 3;
  }
}

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

.contact {
  position: relative;
  background: var(--night);
  color: var(--paper);
  padding-top: clamp(112px, 15vw, 200px);
  padding-bottom: clamp(112px, 15vw, 200px);
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  /* a cool, barely-there fall of light so the near-black isn't flat */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(236, 238, 234, 0.05), rgba(236, 238, 234, 0));
}

.contact-inner {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.contact-lede {
  max-width: 520px;
  font-size: 18px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    flex: 1 1 100%;
  }
}

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

.site-footer {
  background: var(--night);
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.brand--footer {
  color: var(--paper);
  font-size: 17px;
}

.brand--footer img {
  width: 24px;
  height: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover {
    color: var(--paper);
  }
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   Film dialog
   -------------------------------------------------------------------------- */

.film-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.film-dialog[open] {
  display: grid;
  place-items: center;
}

.film-dialog::backdrop {
  background: rgba(11, 12, 14, 0);
  transition: background-color 220ms ease;
}

.film-dialog[data-open]::backdrop {
  background: rgba(11, 12, 14, 0.9);
}

.film-frame {
  --rw: 9;
  --rh: 16;
  width: min(92vw, calc((100vh - 140px) * var(--rw) / var(--rh)));
  width: min(92vw, calc((100dvh - 140px) * var(--rw) / var(--rh)));
  opacity: 0;
  transform: scale(0.97) translateY(6px);
  /* exit is quicker than enter */
  transition:
    opacity 160ms ease,
    transform 180ms var(--ease-out);
}

.film-dialog[data-open] .film-frame {
  opacity: 1;
  transform: none;
  transition:
    opacity 220ms ease,
    transform 320ms var(--ease-drawer);
}

.film-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  color: var(--paper);
}

.film-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.film-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}

.film-close svg {
  width: 16px;
  height: 16px;
}

.film-close:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .film-close:hover {
    background: rgba(236, 238, 234, 0.1);
    border-color: rgba(236, 238, 234, 0.55);
  }
}

.film-body {
  aspect-ratio: var(--rw) / var(--rh);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 0 0 1px var(--line);
}

.film-body video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--night);
}

/* --------------------------------------------------------------------------
   Reduced motion: keep fades that aid comprehension, drop movement
   -------------------------------------------------------------------------- */

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

  /* Hero copy fades in together, no travel, no stagger. */
  .js .hero-in,
  .js .hero-title .hero-in {
    transform: none;
    animation: fade 200ms ease forwards;
    animation-delay: 0ms;
  }

  .js .hero-foot.hero-in {
    animation: none;
    opacity: 1;
  }

  .js .reveal {
    transform: none;
    transition: opacity 200ms ease;
    transition-delay: 0ms;
  }

  /* Stage and tab panels: a plain crossfade, nothing moves. */
  .stage-layer,
  .stage-layer.is-active {
    transform: none;
    transition: opacity 200ms ease;
  }

  .panel,
  .panel.is-active {
    transform: none;
    transition: opacity 200ms ease, visibility 0s;
  }

  .panel {
    transition-delay: 0s, 200ms;
  }

  .plan-svg polyline,
  .plan-route,
  .plan-cam {
    transition: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }

  .tablist--active {
    transition: none;
  }

  .film-frame,
  .film-dialog[data-open] .film-frame {
    transform: none;
    transition: opacity 160ms ease;
  }

  .film-dialog::backdrop {
    transition: none;
  }

  .work-media img,
  .work-media:hover img {
    transition: none;
    transform: none;
  }

  .nav a::after {
    transition: none;
  }

  .btn,
  .work-media,
  .reel-toggle,
  .film-close,
  .tablist [role="tab"] {
    transition-property: background-color, border-color, color;
  }

  .btn:active,
  .work-media:active,
  .reel-toggle:active,
  .film-close:active,
  .tablist [role="tab"]:active {
    transform: none;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

.reel-toggle[hidden] { display: none; }

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .contact-details a:hover {
    color: var(--paper);
  }
}

.contact-details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.detail-links > a:not(.btn),
.detail-copy p a {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.detail-links > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.94rem;
}

@media (hover: hover) and (pointer: fine) {
  .work-meta h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.intro > .detail-links {
  margin-top: 24px;
}

.detail-header,
.detail-footer {
  background: var(--night);
}

.detail-header {
  border-bottom: 1px solid var(--line);
}

.detail-header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  min-height: 68px;
  padding-block: 10px;
}

.detail-main {
  padding-block: clamp(44px, 7vw, 96px);
}

.detail-lead {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.detail-title {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

.detail-intro {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.detail-image {
  width: min(100%, 46rem);
  height: auto;
  margin-bottom: clamp(32px, 5vw, 64px);
  border-radius: var(--radius);
}

.detail-copy {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  max-width: 65ch;
}

.detail-copy h2 {
  color: var(--paper);
  font: 400 clamp(1.75rem, 3.5vw, 2.5rem)/1.12 var(--font-display);
}

.detail-copy p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.film-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 80px);
}

.detail-player video {
  width: auto;
  height: min(61svh, 620px);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--night);
}

.detail-player figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.detail-footer {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 680px) {
  .film-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}
