/* ============================================================
   NOCTURNE — brand and film studio
   ------------------------------------------------------------
   Theme lock ....... dark, page level. No section inverts.
   Accent lock ...... one accent (--accent) used site wide.
   Radius lock ...... 0 everywhere. The single exception is the
                     showreel knob (.reel__knob), a circular
                     transport control by semantic necessity.
   Type ............. Archivo (display) + Geist Mono (meta).
   Motion ........... guarded by prefers-reduced-motion in main.js.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* surfaces (cool off-black, never pure #000) */
  --ink-000: #08080a;
  --ink-050: #0e0e11;
  --ink-100: #141418;
  --ink-200: #1d1d22;

  /* foreground */
  --fg: #ececef; /* on --ink-000 = 17.6:1 */
  --fg-dim: #9a9aa4; /* on --ink-000 =  7.0:1 */
  --fg-mute: #83838e; /* on --ink-000 =  5.3:1 */

  /* the one accent: film tungsten */
  --accent: #f4522a;
  --accent-hi: #ff6a3d;

  --line: rgba(236, 236, 239, 0.13);
  --line-soft: rgba(236, 236, 239, 0.07);

  /* film grade applied to every clip so mixed footage reads as one production */
  --grade-sat: 0.52;
  --grade-con: 1.14;
  --grade-bri: 0.62;

  --shell: 1440px;
  --pad: clamp(20px, 5vw, 72px);
  --nav-h: 68px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink-000);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure,
blockquote,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--ink-000);
  padding: 10px 16px;
  font: 500 13px/1 var(--f-mono);
  transition: transform 0.2s var(--ease);
}
.skip:focus {
  transform: translateY(0);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- 3. FILM TREATMENT (fixed, pointer-safe) ---------- */
.grade {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(244, 82, 42, 0.05) 0%,
    transparent 38%,
    rgba(30, 60, 120, 0.07) 100%
  );
  mix-blend-mode: screen;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 61;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  16% {
    transform: translate(-3%, 2%);
  }
  33% {
    transform: translate(2%, -3%);
  }
  50% {
    transform: translate(-2%, -2%);
  }
  66% {
    transform: translate(3%, 1%);
  }
  83% {
    transform: translate(-1%, 3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  box-shadow: inset 0 0 clamp(90px, 14vw, 220px) rgba(0, 0, 0, 0.62);
}

/* the shared look: every clip sits in the same grade */
.cine {
  filter: saturate(var(--grade-sat)) contrast(var(--grade-con))
    brightness(var(--grade-bri));
}

/* ---------- 4. PRELOADER CURTAIN ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.curtain__shutter {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: var(--ink-000);
  transform: translateY(0);
}
.curtain__shutter--t {
  top: 0;
}
.curtain__shutter--b {
  bottom: 0;
}
.curtain__core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  justify-items: center;
}
.curtain__mark {
  color: var(--fg);
  opacity: 0.9;
}
.curtain__count {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.2em;
  color: var(--fg-mute);
}

/* ---------- 5. ANCHOR WIPE ---------- */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  overflow: hidden;
}
.wipe span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink-000);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 8, 10, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.nav__brand svg {
  color: var(--accent);
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
}
.nav__links a {
  font: 400 13px/1 var(--f-mono);
  color: var(--fg-dim);
  position: relative;
  padding-block: 6px;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover {
  color: var(--fg);
}
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 9px;
  width: 20px;
  height: 1.5px;
  background: var(--fg);
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s var(--ease);
}
.burger span:nth-child(1) {
  top: 16px;
}
.burger span:nth-child(2) {
  top: 22px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- 7. MOBILE MENU ---------- */
.menu[hidden] {
  display: none;
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: var(--ink-000);
  padding: calc(var(--nav-h) + 40px) var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu__list a {
  font-size: clamp(32px, 10vw, 54px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  overflow: hidden;
}
.menu__list a span {
  display: block;
}
.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu__foot a {
  font: 400 13px/1.6 var(--f-mono);
  color: var(--fg-dim);
}

/* ---------- 8. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  background: var(--accent);
  color: var(--ink-000);
  font: 500 13px/1 var(--f-mono);
  letter-spacing: 0.01em;
  border: 1px solid var(--accent);
  white-space: nowrap;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.18s var(--ease);
}
.btn:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.btn--sm {
  padding: 11px 20px;
  font-size: 12px;
}
.btn--ghost {
  background: rgba(8, 8, 10, 0.42);
  color: var(--fg);
  border-color: rgba(236, 236, 239, 0.34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(8, 8, 10, 0.7);
  border-color: var(--fg);
}
.btn--wide {
  width: 100%;
}

/* ---------- 9. EYEBROW (max 2 on the whole page) ---------- */
.eyebrow {
  font: 400 11px/1 var(--f-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 18px;
}

/* ---------- 10. HERO — VIDEO MASK ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 32px) var(--pad) clamp(48px, 8vh, 92px);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 8, 10, 0.78) 0%,
      rgba(8, 8, 10, 0.18) 30%,
      rgba(8, 8, 10, 0.78) 66%,
      rgba(8, 8, 10, 0.97) 90%,
      var(--ink-000) 100%
    ),
    radial-gradient(
      130% 90% at 14% 96%,
      rgba(8, 8, 10, 0.86),
      rgba(8, 8, 10, 0.2) 58%,
      transparent 78%
    );
}
.hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  z-index: 2;
  background: var(--ink-000);
  pointer-events: none;
}
.hero__bar--t {
  top: 0;
}
.hero__bar--b {
  bottom: 0;
}

.hero__body {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}
.hero__title {
  font-size: clamp(44px, 9.2vw, 148px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 26px;
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.02em;
}
.line__in {
  display: block;
}
.hero__sub {
  max-width: 44ch;
  color: var(--fg-dim);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 11. CLIENT LOGO WALL ---------- */
.clients {
  padding: clamp(34px, 5vw, 58px) var(--pad);
  border-block: 1px solid var(--line-soft);
}
.clients__row {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px 40px;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-mute);
  opacity: 0.8;
  transition:
    color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.lockup:hover {
  color: var(--fg);
  opacity: 1;
}
.lockup__mark {
  width: 22px;
  height: 22px;
  flex: none;
}
.lockup span {
  font: 600 15px/1 var(--f-display);
  letter-spacing: -0.01em;
}

/* ---------- 12. MANIFESTO — KINETIC TYPE ---------- */
.manifesto {
  padding: clamp(96px, 17vw, 220px) var(--pad);
}
.manifesto__text {
  max-width: 22ch;
  font-size: clamp(30px, 5.6vw, 86px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
}
.manifesto__text .w {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---------- 13. WORK — HORIZONTAL PAN ---------- */
.work {
  position: relative;
  padding-top: clamp(40px, 6vw, 80px);
}
.work__head {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  margin-bottom: clamp(30px, 4vw, 52px);
}
.work__head h2 {
  font-size: clamp(28px, 4.4vw, 62px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 16ch;
}
.work__wrap {
  overflow: hidden;
}
.work__track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}
.proj {
  width: clamp(260px, 42vw, 520px);
  flex: none;
}
.proj__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink-100);
  clip-path: inset(0 0 0 0);
}
.proj__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj__meta {
  padding-top: 18px;
}
.proj__meta h3 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.proj__meta p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  max-width: 38ch;
  margin-top: 7px;
}
.proj__tags {
  font: 400 11px/1 var(--f-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 12px;
}
.work__end {
  flex: none;
  width: clamp(180px, 24vw, 300px);
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.work__end p {
  font: 400 12px/1.5 var(--f-mono);
  color: var(--fg-mute);
}

/* ---------- 14. CAPABILITIES — BENTO ---------- */
.caps {
  padding: clamp(96px, 14vw, 190px) var(--pad);
}
.caps__head {
  max-width: var(--shell);
  margin-inline: auto;
  margin-bottom: clamp(34px, 5vw, 64px);
}
.caps__head h2 {
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1;
}
.caps__head p {
  color: var(--fg-dim);
  max-width: 46ch;
  margin-top: 18px;
  font-size: 15px;
}

.bento {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}
.cell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(220px, 26vw, 330px);
}
.cell h3 {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.cell p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 9px;
  max-width: 34ch;
}

/* 6 cells tile 3 full rows with no gap and no overflow:
   row 1 = 4 + 2   row 2 = 3 + 3   row 3 = 2 + 4 */
.cell--s4 {
  grid-column: span 4;
}
.cell--s3 {
  grid-column: span 3;
}
.cell--s2 {
  grid-column: span 2;
}

.cell--flat {
  background: var(--ink-050);
}

/* visual variety: two graded media plates, one warm gradient, one pattern */
.cell--media {
  padding: 0;
  border-color: var(--line);
}
.cell--media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cell__overlay {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 2.4vw, 32px);
  background: linear-gradient(
    180deg,
    transparent 18%,
    rgba(8, 8, 10, 0.55) 52%,
    rgba(8, 8, 10, 0.94) 86%
  );
  margin-top: auto;
}
.cell--grad {
  background: linear-gradient(150deg, #5a1b08 0%, #241009 38%, #0e0e11 88%);
  border-color: rgba(244, 82, 42, 0.42);
}
.cell--pattern {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(236, 236, 239, 0.11) 0 1px,
      transparent 1px 12px
    ),
    var(--ink-100);
  border-color: rgba(236, 236, 239, 0.2);
}

/* ---------- 15. PROCESS — STICKY STACK ----------
   Each card is a full viewport of sticky plate. The negative
   margin-BOTTOM is what makes the next card ride up over the
   current one while the current one is still pinned at the top.
   Using margin-top here instead breaks the sequence and the cards
   cascade as a staircase rather than stacking. */
.process {
  position: relative;
}
.stack {
  position: relative;
}
.stack-card {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) clamp(44px, 8vh, 92px);
  isolation: isolate;
  margin-bottom: -56dvh;
}
.stack-card:last-child {
  margin-bottom: 0;
}
.stack-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.stack-card__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0.5) 0%,
    rgba(8, 8, 10, 0.2) 30%,
    rgba(8, 8, 10, 0.92) 92%
  );
}
.stack-card__body {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}
.stack-card__body h3 {
  font-size: clamp(40px, 7.6vw, 116px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.94;
}
.stack-card__body p {
  color: var(--fg-dim);
  max-width: 42ch;
  margin-top: 16px;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.55;
}

/* ---------- 16. SHOWREEL — SCRUB ---------- */
.reel {
  position: relative;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink-000);
}
.reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.reel__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    90% 70% at 50% 50%,
    transparent 30%,
    rgba(8, 8, 10, 0.8) 100%
  );
}
.reel__body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--pad);
  pointer-events: none;
}
.reel__title {
  font-size: clamp(46px, 11vw, 180px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.reel__note {
  font: 400 11px/1 var(--f-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 22px;
}

/* the one rounded element: a transport control */
.reel__knob {
  position: absolute;
  z-index: 3;
  bottom: clamp(40px, 7vh, 74px);
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 1px solid rgba(236, 236, 239, 0.4);
  background: rgba(8, 8, 10, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.reel__knob:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.reel__knob-label {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.3s var(--ease);
}
.reel__knob:hover .reel__knob-label {
  color: var(--ink-000);
}
.reel__bar {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(20px, 3.4vh, 32px);
  height: 1px;
  background: var(--line);
}
.reel__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ---------- 17. QUOTES ---------- */
.quotes {
  padding: clamp(96px, 14vw, 190px) var(--pad);
}
.quotes__grid {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.quote--a {
  grid-column: 1 / span 6;
}
.quote--b {
  grid-column: 8 / span 5;
  margin-top: clamp(30px, 7vw, 90px);
}
.quote--c {
  grid-column: 2 / span 5;
  margin-top: clamp(10px, 3vw, 40px);
}
.quote {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.quote blockquote {
  font-size: clamp(19px, 2.1vw, 29px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.24;
  max-width: 24ch;
}
.quote figcaption {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.quote figcaption b {
  font: 600 14px/1 var(--f-display);
}
.quote figcaption span {
  font: 400 12px/1.4 var(--f-mono);
  color: var(--fg-mute);
}

/* ---------- 18. CONTACT ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 13vw, 170px) var(--pad);
}
.contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.contact__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    var(--ink-000) 0%,
    rgba(8, 8, 10, 0.82) 40%,
    rgba(8, 8, 10, 0.95) 100%
  );
}
.contact__inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}
.contact__copy h2 {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.contact__copy p {
  color: var(--fg-dim);
  max-width: 38ch;
  margin-top: 20px;
  font-size: 15px;
}
.contact__details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__details a {
  font: 400 15px/1.4 var(--f-mono);
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  width: fit-content;
  transition: border-color 0.3s var(--ease);
}
.contact__details a:hover {
  border-color: var(--accent);
}

/* ---------- 19. FORM ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 17, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: clamp(22px, 2.6vw, 34px);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field:nth-child(5) {
  grid-column: 1 / -1;
}
.field label {
  font: 400 11px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  font: 400 15px/1.45 var(--f-display);
  padding: 12px 14px;
  width: 100%;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 104px;
}
.field select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg-mute) 50%),
    linear-gradient(135deg, var(--fg-mute) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 21px,
    calc(100% - 14px) 21px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
.field select option {
  background: var(--ink-100);
  color: var(--fg);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-mute);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(236, 236, 239, 0.28);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(244, 82, 42, 0.05);
}
.field__help {
  font: 400 11px/1.4 var(--f-mono);
  color: var(--fg-mute);
}
.field__err {
  font: 400 12px/1.4 var(--f-mono);
  color: #ff7a5c;
  min-height: 0;
}
.field__err:empty {
  display: none;
}
.field.has-error input,
.field.has-error textarea {
  border-color: #ff7a5c;
}
.form .btn {
  grid-column: 1 / -1;
  margin-top: 6px;
}
.form__status {
  grid-column: 1 / -1;
  font: 400 12px/1.5 var(--f-mono);
  color: var(--fg-mute);
}
.form__status.is-ok {
  color: var(--accent-hi);
}
.form.is-sent .field,
.form.is-sent .btn {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- 20. FOOTER ---------- */
.foot {
  padding: clamp(40px, 5vw, 64px) var(--pad) clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
}
.foot__row {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot__row--fine {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.foot__brand {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.8vw, 26px);
}
.foot__links a {
  font: 400 12px/1 var(--f-mono);
  color: var(--fg-dim);
  transition: color 0.25s var(--ease);
}
.foot__links a:hover {
  color: var(--accent);
}
.foot__row--fine p {
  font: 400 11px/1.5 var(--f-mono);
  color: var(--fg-mute);
}

/* ============================================================
   21. RESPONSIVE — explicit per-section collapse below 768
   ============================================================ */
@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .cell--s4 {
    grid-column: span 4;
  }
  .cell--s3 {
    grid-column: span 2;
  }
  .cell--s2 {
    grid-column: span 2;
  }
  .quotes__grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .quote--a {
    grid-column: 1 / span 6;
  }
  .quote--b {
    grid-column: 1 / span 5;
    margin-top: 0;
  }
  .quote--c {
    grid-column: 1 / span 5;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 60px;
  }
  .nav__links {
    display: none;
  }
  .nav__inner > .btn {
    display: none;
  }
  .burger {
    display: block;
  }

  .clients__row {
    justify-content: flex-start;
    gap: 20px 32px;
  }
  .lockup span {
    font-size: 14px;
  }

  .manifesto__text {
    max-width: none;
  }

  .proj {
    width: min(78vw, 380px);
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cell,
  .cell--s4,
  .cell--s3,
  .cell--s2 {
    grid-column: 1 / -1;
    min-height: 200px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .field:nth-child(5) {
    grid-column: auto;
  }
  .form .btn,
  .form__status {
    grid-column: auto;
  }

  .foot__row {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero__cta {
    width: 100%;
  }
  .hero__cta .btn {
    flex: 1 1 100%;
  }
  .quote--a,
  .quote--b,
  .quote--c {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   22. REDUCED MOTION — everything collapses to a static page
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain {
    animation: none;
  }
  .curtain,
  .wipe {
    display: none;
  }
  .line__in,
  .menu__list a span {
    transform: none;
  }
  .stack-card {
    position: static;
    height: auto;
    min-height: 70dvh;
    padding-block: 80px;
    margin-bottom: 0;
  }
  .stack-card + .stack-card {
    margin-top: 0;
  }
  .manifesto__text .w {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__media video {
    transform: none;
  }
}

/* ============================================================
   23. LENIS SMOOTH SCROLL
   Shipped by the library itself, inlined so it costs no extra
   request. Without these, Lenis fights the document height and
   the scroll lock leaks.
   ============================================================ */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
  overscroll-behavior: contain;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Lenis owns the scroll position, so native smooth scrolling would
   fight it and produce a double ease. */
html.lenis {
  scroll-behavior: auto !important;
}

/* ============================================================
   24. PRE-MOTION STATE
   The masked hero headline is owned entirely by JS. Declaring the
   offset in CSS would make GSAP read it as `y` while the tween
   drives `yPercent`, so the two stack and the line never rises.
   Same reason the mobile menu spans are set in JS.
   ============================================================ */
.js .hero__media video {
  transform: scale(1.14);
}
