/* ==========================================================================
   NOCTILUCENT — main stylesheet
   Palette: Void / Abyss / Graphite / Ash / Bone + two lights:
   Noctilucent (cold, the primary light) and Sodium (hot, used rarely as a signal).
   ========================================================================== */

:root {
  --void: #060708;
  --abyss: #0b0d0f;
  --graphite: #15181b;
  --iron: #23272b;
  --ash: #7f868c;
  --fog: #b4b6b3;
  --bone: #e7e3d9;
  --nlc: #a8d4ff;          /* noctilucent: pale electric blue */
  --nlc-dim: rgba(168, 212, 255, 0.16);
  --sodium: #ff5a1f;       /* sodium vapour: the one hot signal */
  --line: rgba(231, 227, 217, 0.11);
  --line-strong: rgba(231, 227, 217, 0.24);

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-serif: "Instrument Serif", "Times New Roman", serif;

  --pad: clamp(16px, 3.2vw, 52px);
  --gut: clamp(12px, 1.6vw, 28px);
  --hud-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-cut: cubic-bezier(0.9, 0, 0.1, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading, body.is-locked { overflow: hidden; }
img, video, canvas, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--nlc); color: var(--void); }
:focus-visible { outline: 1px solid var(--nlc); outline-offset: 4px; }
[hidden] { display: none !important; }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 87.5;
  font-weight: 400;
}
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.dim { color: var(--ash); }
.shell { padding-left: var(--pad); padding-right: var(--pad); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 14px; background: var(--bone); color: var(--void);
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* --------------------------------------------------------------------------
   Atmosphere layers
   -------------------------------------------------------------------------- */
#void {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none;
  transition: opacity 1.2s var(--ease-out), filter 1.2s var(--ease-out);
}
body.is-deep #void { opacity: 0.32; filter: blur(2px); }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.075; 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='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}
.scan {
  position: fixed; inset: 0; z-index: 89; pointer-events: none; opacity: 0.22;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.22) 2px 3px);
  mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   Mark
   -------------------------------------------------------------------------- */
.mark { overflow: visible; }
.mark__body { fill: var(--void); stroke: var(--bone); stroke-opacity: 0.55; stroke-width: 1.4; }
.mark__arc { fill: none; stroke: var(--nlc); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(168, 212, 255, 0.55)); }
.mark--sm { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   Buttons / chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s;
}
.btn:hover { border-color: var(--bone); }
.btn--light { background: var(--bone); color: var(--void); border-color: var(--bone); }
.btn--light:hover { background: var(--nlc); border-color: var(--nlc); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 10px var(--sodium); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.chip {
  height: 30px; padding: 0 12px;
  border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ash);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover { color: var(--bone); border-color: var(--line-strong); }
.chip.is-on { color: var(--void); background: var(--bone); border-color: var(--bone); }
.chip sup { font-size: 8px; margin-left: 4px; vertical-align: top; opacity: 0.7; }

/* --------------------------------------------------------------------------
   Gate
   -------------------------------------------------------------------------- */
.gate {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--void);
  transition: clip-path 1.1s var(--ease-cut), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.gate.is-gone { clip-path: inset(0 0 100% 0); visibility: hidden; }
.gate__inner { display: grid; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.gate__mark { width: 84px; height: 84px; margin-bottom: 8px; }
.gate__mark .mark__arc { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.25s linear; }
.gate__count { font-size: 12px; color: var(--bone); }
.gate__name {
  margin: 0; font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(28px, 6vw, 64px); letter-spacing: 0.02em; line-height: 1;
}
.gate__note { color: var(--ash); min-height: 1.5em; }
.gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.gate.is-ready .gate__actions { opacity: 1; transform: none; pointer-events: auto; }
.gate__hint { color: var(--ash); opacity: 0.7; margin-top: 4px; }

/* --------------------------------------------------------------------------
   HUD
   -------------------------------------------------------------------------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--hud-h);
  display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: var(--gut);
  padding: 0 var(--pad);
  mix-blend-mode: difference;
}
.hud__brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.hud__brand .mark__body { fill: transparent; }
.hud__name { font-weight: 800; font-variation-settings: "wdth" 125; font-size: 14px; letter-spacing: 0.08em; }
.hud__clock { color: var(--fog); justify-self: center; }
.hud__nav { display: flex; gap: clamp(14px, 2vw, 32px); justify-self: end; }
.hud__nav a { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; position: relative; padding: 6px 0; }
.hud__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.hud__nav a:hover::after, .hud__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.sound { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); }
.sound__scope { width: 48px; height: 12px; }
.sound[aria-pressed="true"] { border-color: var(--bone); }
.menu-btn { display: none; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); }

.readout {
  position: fixed; left: var(--pad); right: var(--pad); bottom: 16px; z-index: 60;
  display: flex; justify-content: space-between; gap: 20px;
  color: var(--fog); pointer-events: none; mix-blend-mode: difference;
}
.readout__right { display: flex; gap: 22px; }
#readout-freq { color: var(--nlc); min-width: 7.5em; text-align: right; }

/* --------------------------------------------------------------------------
   Shared section anatomy
   -------------------------------------------------------------------------- */
main { position: relative; z-index: 2; }
section { position: relative; }
.label { display: flex; align-items: center; gap: 14px; color: var(--ash); margin: 0 0 28px; }
.label__idx { color: var(--bone); padding: 2px 6px; border: 1px solid var(--line-strong); }
.sec-head { display: grid; gap: 8px; margin-bottom: clamp(36px, 6vw, 80px); }
.title {
  margin: 0;
  font-weight: 800; font-variation-settings: "wdth" 72;
  font-size: clamp(54px, 9.4vw, 168px);
  line-height: 0.84; letter-spacing: -0.02em; text-transform: uppercase;
}
.title sup { font-size: 12px; vertical-align: top; letter-spacing: 0.06em; color: var(--ash); margin-left: 0.3em; }
.title__serif { text-transform: none; font-size: 1.02em; letter-spacing: -0.03em; color: var(--fog); }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hud-h) + 18px) var(--pad) 56px;
}
.hero__kicker { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--fog); margin: 0; }
.hero__base { display: grid; gap: clamp(18px, 3vw, 36px); }
.hero__word {
  margin: 0; white-space: nowrap; line-height: 0.8; font-weight: 800;
  letter-spacing: -0.035em; text-transform: uppercase;
  font-size: 12vw; /* refined by JS fit */
  user-select: none;
  text-shadow: 0 0 60px rgba(168, 212, 255, 0.12);
}
.hero__word .ch { display: inline-block; font-variation-settings: "wdth" 100, "wght" 760; will-change: font-variation-settings; transition: color 0.4s; }
/* singularity: letters near the cursor lose their glow and gain a hard edge */
.bh-word { display: inline-block; white-space: nowrap; }
.bh {
  --bh: 0;
  display: inline-block; transform-origin: 50% 50%; will-change: transform;
  -webkit-text-stroke: calc(var(--bh) * 1.6px) var(--void);
  text-shadow:
    calc(var(--bh) * -2px) 0 0 rgba(168, 212, 255, calc(var(--bh) * 0.85)),
    calc(var(--bh) * 2px) 0 0 rgba(255, 90, 31, calc(var(--bh) * 0.45)),
    0 0 calc((1 - var(--bh)) * 60px) rgba(168, 212, 255, calc((1 - var(--bh)) * 0.12));
  color: color-mix(in srgb, #ffffff calc(var(--bh) * 100%), currentColor);
}
.title__serif .bh, .title__serif.bh { -webkit-text-stroke-width: calc(var(--bh) * 0.8px); }
/* split letters are separate boxes, so tracking moves from letter-spacing to margins */
.title .bh, .contact__big .bh, .hero__word .bh { letter-spacing: 0; }
.title .bh { margin-right: -0.045em; }
.title .title__serif .bh { margin-right: -0.03em; }
.contact__big .bh { margin-right: -0.05em; }
.hero__word .bh { margin-right: -0.04em; }
.cursor.is-singularity { mix-blend-mode: normal; }
.cursor.is-singularity .cursor__ring {
  width: 46px; height: 46px; left: -23px; top: -23px;
  background: #000; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(168, 212, 255, 0.55), 0 0 22px 4px rgba(168, 212, 255, 0.28), inset 0 0 14px rgba(168, 212, 255, 0.35);
  animation: horizon 2.4s linear infinite;
}
.cursor.is-singularity .cursor__dot { opacity: 0; }
@keyframes horizon { 50% { box-shadow: 0 0 0 1px rgba(168, 212, 255, 0.8), 0 0 30px 8px rgba(168, 212, 255, 0.36), inset 0 0 18px rgba(168, 212, 255, 0.5); } }
.hero__foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); align-items: end; }
.hero__headline { grid-column: 1 / span 5; margin: 0; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; max-width: 30ch; }
/* tagline: set in the wordmark's own voice — Archivo Expanded, light, wide-tracked */
.hero__tag {
  grid-column: 6 / span 5; margin: 0;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-sans); font-style: normal;
  font-variation-settings: "wdth" 125; font-weight: 300;
  font-size: clamp(11px, 0.95vw, 14px); line-height: 1.6; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--fog);
}
.hero__tag-mark { flex: none; width: 28px; height: 1px; background: var(--nlc); box-shadow: 0 0 8px rgba(168, 212, 255, 0.7); }
.hero__scroll { grid-column: 11 / span 2; justify-self: end; display: inline-flex; align-items: center; gap: 12px; color: var(--fog); }
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--bone), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; width: 1px; height: 14px; background: var(--nlc); animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { 0% { top: -14px; } 100% { top: 42px; } }

/* --------------------------------------------------------------------------
   Manifesto
   -------------------------------------------------------------------------- */
.manifesto { padding-top: clamp(100px, 18vh, 220px); padding-bottom: clamp(100px, 18vh, 220px); }
.manifesto__text {
  margin: 0; max-width: 22ch;
  font-size: clamp(30px, 4.6vw, 78px); line-height: 1.04; letter-spacing: -0.02em;
  font-weight: 500; font-variation-settings: "wdth" 88;
}
.manifesto__text .w { opacity: 0.13; transition: opacity 0.5s linear, color 0.5s; }
.manifesto__text .w.is-on { opacity: 1; }
.manifesto__text .w--serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--nlc); letter-spacing: -0.02em; }

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */
.work { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(80px, 12vh, 160px); }
.work__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.filters, .viewtoggle { display: flex; flex-wrap: wrap; gap: 6px; }
.work__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.work__empty { color: var(--ash); padding: 40px 0; }

/* list view */
.row { border-top: 1px solid var(--line); }
.row__link {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 0.55fr) 150px 64px 28px;
  align-items: center; gap: var(--gut);
  padding: 22px 0;
  transition: padding 0.5s var(--ease-out), color 0.3s;
}
.row__link::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(168,212,255,0.07), rgba(168,212,255,0) 70%);
  opacity: 0; transition: opacity 0.4s;
}
.row__idx, .row__cat, .row__year { color: var(--ash); }
.row__title {
  font-weight: 700; font-variation-settings: "wdth" 80;
  font-size: clamp(24px, 3vw, 46px); line-height: 1; letter-spacing: -0.015em; text-transform: uppercase;
  transition: transform 0.6s var(--ease-out), color 0.3s;
}
.row__client { color: var(--fog); font-size: 15px; }
.row__arrow { justify-self: end; transition: transform 0.5s var(--ease-out); }
.row__thumb { display: none; }
.row__link:hover::before, .row__link:focus-visible::before { opacity: 1; }
.row__link:hover .row__title, .row__link:focus-visible .row__title { transform: translateX(18px); color: var(--nlc); }
.row__link:hover .row__arrow { transform: translateX(6px) rotate(-45deg); }
.work__list.is-hovering .row__link:not(:hover) { color: rgba(231,227,217,0.35); }
.work__list.is-hovering .row__link:not(:hover) .row__client { color: rgba(231,227,217,0.25); }

/* grid view */
.work__list[data-view="grid"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gut); border-bottom: 0; }
.work__list[data-view="grid"] .row { border-top: 0; }
.work__list[data-view="grid"] .row__link { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "thumb thumb thumb" "idx title year" ". client cat"; gap: 8px 14px; padding: 0; }
.work__list[data-view="grid"] .row__link::before { display: none; }
.work__list[data-view="grid"] .row__thumb { grid-area: thumb; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--graphite); margin-bottom: 10px; position: relative; }
.work__list[data-view="grid"] .row__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) contrast(1.1) brightness(0.8); transform: scale(1.02); transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.work__list[data-view="grid"] .row__link:hover .row__thumb img { filter: none; transform: scale(1.06); }
.work__list[data-view="grid"] .row__idx { grid-area: idx; }
.work__list[data-view="grid"] .row__title { grid-area: title; font-size: clamp(18px, 1.6vw, 24px); }
.work__list[data-view="grid"] .row__link:hover .row__title { transform: none; }
.work__list[data-view="grid"] .row__year { grid-area: year; }
.work__list[data-view="grid"] .row__client { grid-area: client; font-size: 14px; }
.work__list[data-view="grid"] .row__cat { grid-area: cat; }
.work__list[data-view="grid"] .row__arrow { display: none; }
.work__list[data-view="grid"].is-hovering .row__link:not(:hover) { color: inherit; }

/* cursor-follow preview with RGB split */
.preview {
  position: fixed; left: 0; top: 0; z-index: 55; pointer-events: none;
  width: clamp(260px, 26vw, 440px); aspect-ratio: 16 / 10;
  background: #000; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.92);
  clip-path: inset(50% 0 50% 0);
  transition: opacity 0.35s var(--ease-out), clip-path 0.55s var(--ease-cut);
  isolation: isolate;
}
.preview.is-on { opacity: 1; clip-path: inset(0 0 0 0); }
.preview__ch { position: absolute; inset: -4%; background-size: cover; background-position: center; background-blend-mode: multiply; mix-blend-mode: screen; will-change: transform; }
.preview__ch--r { background-color: #f00; }
.preview__ch--g { background-color: #0f0; }
.preview__ch--b { background-color: #00f; }
.preview__meta { position: absolute; left: 10px; bottom: 8px; z-index: 2; color: var(--bone); mix-blend-mode: difference; }

/* --------------------------------------------------------------------------
   Disciplines
   -------------------------------------------------------------------------- */
.disciplines { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(80px, 12vh, 160px); }
.svc { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.svc__item { border-top: 1px solid var(--line); }
.svc__head {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 0.8fr) 28px; align-items: baseline; gap: var(--gut);
  padding: 26px 0;
}
.svc__code { color: var(--ash); }
.svc__title { font-weight: 700; font-variation-settings: "wdth" 80; font-size: clamp(26px, 3.6vw, 58px); line-height: 1; text-transform: uppercase; letter-spacing: -0.015em; transition: color 0.3s, transform 0.6s var(--ease-out); }
.svc__line { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.7vw, 26px); color: var(--fog); line-height: 1.15; }
.svc__plus { justify-self: end; width: 16px; height: 16px; position: relative; align-self: center; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.svc__plus::after { transform: rotate(90deg); }
.svc__item.is-open .svc__plus::after { transform: rotate(0deg); }
.svc__head:hover .svc__title, .svc__item.is-open .svc__title { color: var(--nlc); }
.svc__head:hover .svc__title { transform: translateX(10px); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.svc__item.is-open .svc__panel { grid-template-rows: 1fr; }
.svc__panel > div { overflow: hidden; }
.svc__cols { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 0.8fr) 28px; gap: var(--gut); padding: 0 0 36px; }
.svc__body { grid-column: 2; margin: 0; max-width: 52ch; color: var(--fog); font-size: 17px; }
.svc__meta { grid-column: 3; display: grid; gap: 22px; align-content: start; }
.svc__del { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.svc__del li::before { content: "— "; color: var(--ash); }
.svc__for { display: flex; flex-wrap: wrap; gap: 6px; }
.svc__for span { border: 1px solid var(--line-strong); padding: 4px 8px; color: var(--fog); }

/* --------------------------------------------------------------------------
   Method
   -------------------------------------------------------------------------- */
.method { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(80px, 12vh, 160px); }
.method__track { position: relative; height: 1px; background: var(--line-strong); margin-bottom: 36px; overflow: hidden; }
.method__pulse { position: absolute; top: -1px; left: 0; width: 18%; height: 3px; background: linear-gradient(90deg, transparent, var(--nlc), transparent); animation: sweep 5.5s var(--ease-io) infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(560%); } }
.method__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); }
.method__item { display: grid; gap: 14px; align-content: start; padding-right: 10px; }
.method__num { font-family: var(--f-serif); font-style: italic; font-size: clamp(48px, 6vw, 96px); line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--fog); transition: color 0.5s, -webkit-text-stroke-color 0.5s; }
.method__item:hover .method__num { color: var(--nlc); -webkit-text-stroke-color: var(--nlc); }
.method__title { margin: 0; font-weight: 700; font-variation-settings: "wdth" 80; font-size: 24px; text-transform: uppercase; letter-spacing: 0.01em; }
.method__body { margin: 0; color: var(--fog); max-width: 34ch; font-size: 16px; }

/* --------------------------------------------------------------------------
   Engagements
   -------------------------------------------------------------------------- */
.engage { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(80px, 12vh, 160px); }
.engage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.card {
  position: relative; display: grid; gap: 18px; align-content: start;
  min-height: 340px; padding: 26px 24px 28px;
  border: 1px solid var(--line); background: rgba(11, 13, 15, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.4s, background 0.4s, transform 0.6s var(--ease-out);
}
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 22px; height: 22px; border-left: 1px solid var(--nlc); border-top: 1px solid var(--nlc); opacity: 0; transition: opacity 0.4s; }
.card:hover { border-color: var(--line-strong); background: rgba(21, 24, 27, 0.7); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card__kind { color: var(--ash); display: flex; justify-content: space-between; }
.card__title { margin: 0; font-weight: 800; font-variation-settings: "wdth" 72; font-size: clamp(34px, 3.3vw, 56px); overflow-wrap: anywhere; line-height: 0.9; text-transform: uppercase; }
.card__body { margin: 0; color: var(--fog); font-size: 16px; }
.card__span { margin-top: auto; color: var(--nlc); }

/* --------------------------------------------------------------------------
   Collaborators marquee
   -------------------------------------------------------------------------- */
.clients { padding-top: clamp(60px, 10vh, 120px); padding-bottom: clamp(60px, 10vh, 120px); }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 0.5em; padding-right: 0.5em;
  font-weight: 800; font-variation-settings: "wdth" 110; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 120px); line-height: 1.05; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(231, 227, 217, 0.45);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.marquee__item:hover { color: var(--bone); -webkit-text-stroke-color: var(--bone); }
.marquee__sep { font-family: var(--f-serif); font-style: italic; font-weight: 400; -webkit-text-stroke: 0; color: var(--ash); font-size: 0.55em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */
.archive { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(80px, 12vh, 160px); }
.archive__grid { columns: 4 260px; column-gap: var(--gut); }
.shot { break-inside: avoid; margin: 0 0 var(--gut); display: block; width: 100%; text-align: left; position: relative; overflow: hidden; background: var(--graphite); }
.shot img, .shot video { width: 100%; height: auto; filter: grayscale(0.6) brightness(0.85); transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.shot:hover img, .shot:hover video { filter: none; transform: scale(1.03); }
.shot__cap { position: absolute; left: 10px; bottom: 8px; right: 10px; color: var(--bone); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; mix-blend-mode: difference; }
.shot:hover .shot__cap { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Studio
   -------------------------------------------------------------------------- */
.studio { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(80px, 12vh, 160px); }
.studio__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.studio__copy p { margin: 0 0 1.1em; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.38; max-width: 36ch; }
.studio__copy p.studio__quiet { font-size: 17px; color: var(--fog); max-width: 52ch; }
.studio__copy p.studio__serif { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.12; color: var(--nlc); }
.spec { margin: 0; border-top: 1px solid var(--line-strong); }
.spec__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ash); }
.spec dd { margin: 0; color: var(--bone); }
.spec__live { display: inline-flex; align-items: center; gap: 8px; }
.spec__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 8px var(--sodium); animation: blink 1.6s steps(2) infinite; }

/* --------------------------------------------------------------------------
   Contact & footer
   -------------------------------------------------------------------------- */
.contact { padding-top: clamp(100px, 16vh, 200px); padding-bottom: clamp(80px, 12vh, 140px); }
.contact__big {
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-weight: 800; font-variation-settings: "wdth" 72; text-transform: uppercase;
  font-size: clamp(64px, 15vw, 280px); line-height: 0.8; letter-spacing: -0.03em;
}
.contact__mail {
  display: inline-block; position: relative;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(28px, 4.4vw, 72px); line-height: 1.1;
  color: var(--nlc); word-break: break-word;
}
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 1px; background: currentColor; transform-origin: left; transition: transform 0.6s var(--ease-out); }
.contact__mail:hover::after { transform: scaleX(0); transform-origin: right; }
.contact__socials { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.contact__socials a { color: var(--fog); transition: color 0.3s; }
.contact__socials a:hover { color: var(--bone); }

.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 64px; border-top: 1px solid var(--line); color: var(--ash); }
.foot a:hover { color: var(--bone); }

/* --------------------------------------------------------------------------
   Case viewer
   -------------------------------------------------------------------------- */
.case {
  position: fixed; inset: 0; z-index: 120;
  background: var(--void);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s var(--ease-cut);
}
.case.is-open { clip-path: inset(0 0 0 0); }
.case__bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: var(--hud-h); padding: 0 var(--pad); background: linear-gradient(rgba(6,7,8,0.95), rgba(6,7,8,0)); color: var(--fog); }
.case__close { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); }
.case__close:hover { border-color: var(--bone); }
kbd { font-family: var(--f-mono); font-size: 9px; padding: 1px 5px; border: 1px solid var(--line-strong); color: var(--ash); }
.case__body { padding: 0 var(--pad) 80px; outline: none; }
.case__eyebrow { color: var(--ash); display: flex; gap: 18px; flex-wrap: wrap; margin: clamp(30px, 6vh, 80px) 0 18px; }
.case__title { margin: 0; font-weight: 800; font-variation-settings: "wdth" 72; text-transform: uppercase; font-size: clamp(48px, 9vw, 160px); line-height: 0.86; letter-spacing: -0.02em; max-width: 14ch; }
.case__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); margin: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line-strong); }
.case__meta div { padding-top: 14px; }
.case__meta dt { color: var(--ash); margin-bottom: 6px; }
.case__meta dd { margin: 0; font-size: 15px; }
.case__summary { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 3vw, 46px); line-height: 1.1; color: var(--fog); max-width: 26ch; margin: 0 0 28px; }
.case__text { max-width: 62ch; color: var(--fog); }
.case__text p { margin: 0 0 1em; }
.case__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); margin-top: clamp(40px, 6vw, 90px); }
.case__media .m { grid-column: span 2; margin: 0; }
.case__media .m--half { grid-column: span 1; }
.case__media figcaption { color: var(--ash); margin-top: 10px; }
.case__media img, .case__media video { width: 100%; height: auto; background: var(--graphite); }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; width: 100%; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__facade { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.embed__facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) brightness(0.7); transition: filter 0.6s, transform 1.2s var(--ease-out); }
.embed__facade:hover img { filter: none; transform: scale(1.02); }
.embed__play { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; background: rgba(6,7,8,0.65); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.3s, color 0.3s; }
.embed__play::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.embed__facade:hover .embed__play { background: var(--bone); color: var(--void); }
.case__next { display: grid; gap: 10px; margin-top: clamp(60px, 10vw, 140px); padding-top: 24px; border-top: 1px solid var(--line-strong); }
.case__next span { color: var(--ash); }
.case__next a { font-weight: 800; font-variation-settings: "wdth" 72; text-transform: uppercase; font-size: clamp(36px, 6vw, 100px); line-height: 0.9; transition: color 0.3s; }
.case__next a:hover { color: var(--nlc); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(6,7,8,0.96); display: grid; place-items: center; padding: 70px var(--pad) 40px; }
.lightbox__close { position: absolute; top: 16px; right: var(--pad); height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); display: inline-flex; gap: 10px; align-items: center; }
.lightbox__fig { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox__fig img { max-height: calc(100vh - 150px); width: auto; }
.lightbox__fig figcaption { color: var(--fog); }

/* --------------------------------------------------------------------------
   Transition wipe + cursor
   -------------------------------------------------------------------------- */
.wipe { position: fixed; inset: 0; z-index: 140; pointer-events: none; background: var(--void); transform: scaleY(0); transform-origin: bottom; }
.wipe.is-run { animation: wipe 0.9s var(--ease-cut); }
@keyframes wipe { 0% { transform: scaleY(0); transform-origin: bottom; } 45% { transform: scaleY(1); transform-origin: bottom; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: top; } }

.cursor { position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; background: var(--bone); border-radius: 50%; }
.cursor__ring {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px;
  border: 1px solid var(--bone); border-radius: 50%;
  display: grid; place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), left 0.45s var(--ease-out), top 0.45s var(--ease-out), background 0.3s, border-radius 0.45s;
}
.cursor__label { opacity: 0; font-size: 9px; color: var(--void); white-space: nowrap; transition: opacity 0.25s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; left: -32px; top: -32px; }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; left: -42px; top: -42px; background: var(--bone); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-down .cursor__ring { width: 22px; height: 22px; left: -11px; top: -11px; }

.noscript { position: fixed; inset: auto 0 0 0; z-index: 200; padding: 16px; background: var(--bone); color: var(--void); text-align: center; margin: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .row__link { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.6fr) 64px 24px; }
  .row__cat { display: none; }
  .engage__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .method__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .work__list[data-view="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --hud-h: 56px; }
  body { font-size: 16px; }
  .hud { grid-template-columns: 1fr auto auto; mix-blend-mode: normal; background: linear-gradient(rgba(6,7,8,0.9), rgba(6,7,8,0)); }
  .hud__clock { display: none; }
  .hud__nav {
    position: fixed; inset: var(--hud-h) 0 auto 0; z-index: 59;
    flex-direction: column; gap: 0; padding: 8px var(--pad) 24px;
    background: rgba(6,7,8,0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  }
  .hud__nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .hud__nav a { font-family: var(--f-sans); font-size: 34px; font-weight: 800; font-variation-settings: "wdth" 72; letter-spacing: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .hud__nav a::after { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .sound__label { display: none; }
  .sound { padding: 0 10px; }
  .readout { display: none; }

  .hero { padding-bottom: 36px; }
  .hero__foot { grid-template-columns: 1fr; gap: 18px; }
  .hero__headline, .hero__tag, .hero__scroll { grid-column: auto; justify-self: start; }

  .row__link { grid-template-columns: 88px minmax(0, 1fr) 24px; grid-template-areas: "thumb title arrow" "thumb client arrow"; gap: 4px 14px; padding: 16px 0; }
  .row__thumb { display: block; grid-area: thumb; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite); }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) brightness(0.85); }
  .row__idx, .row__year, .row__cat { display: none; }
  .row__title { grid-area: title; font-size: 22px; align-self: end; }
  .row__client { grid-area: client; font-size: 13px; align-self: start; }
  .row__arrow { grid-area: arrow; }
  .row__link:hover .row__title { transform: none; }
  .work__list[data-view="grid"] { grid-template-columns: 1fr; }

  .svc__head { grid-template-columns: 34px minmax(0, 1fr) 20px; padding: 20px 0; }
  .svc__line { grid-column: 2; grid-row: 2; font-size: 18px; }
  .svc__plus { grid-column: 3; grid-row: 1; }
  .svc__cols { grid-template-columns: 34px minmax(0, 1fr); }
  .svc__body, .svc__meta { grid-column: 2; }
  .svc__head:hover .svc__title { transform: none; }

  .method__list { grid-template-columns: 1fr; }
  .studio__grid { grid-template-columns: 1fr; }
  .case__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case__media { grid-template-columns: 1fr; }
  .case__media .m, .case__media .m--half { grid-column: span 1; }
  .spec__row { grid-template-columns: 100px 1fr; }
  .scan { display: none; }
}

/* Reduced motion: keep what the visitor drives (cursor light, type, scroll-lit
   manifesto), calm what moves on its own. Targeted rules only; a blanket
   transition-duration on * would turn every style change into a transition. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; transition: opacity 0.6s linear; }
  .grain, .btn__dot, .spec__live::before, .hero__scroll-line::after, .method__pulse { animation: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__item[aria-hidden="true"] { display: none; }
  .gate, .case { transition-duration: 0.35s; }
  .wipe.is-run { animation-duration: 0.3s; }
  .row__title, .svc__title, .card { transition-property: color; }
}

@media (hover: none) {
  kbd { display: none; }
}
