/* =================================================================
   NextTake Labs — homepage styles
   Theme: dark, cinematic, blue accent (NTL), archive/lab energy
   Edit the variables below to retune the whole look.
   ================================================================= */

:root {
  --bg:        #060607;   /* near-black base                     */
  --bg-soft:   #0c0c0f;   /* slightly lifted panels              */
  --ink:       #f4f2ee;   /* warm off-white text                 */
  --ink-dim:   #9b97a0;   /* muted text                          */
  --ink-faint: #4d4a52;   /* labels / lines                      */
  --crimson:   #2f8fd0;   /* primary accent (NTL blue)           */
  --crimson-2: #5bb0ee;   /* brighter accent for glow            */
  --line:      rgba(255,255,255,0.08);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Space Grotesk", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

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

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--crimson); color: #fff; }

/* film grain overlay used in several sections */
.intro__grain, .story__grain, .archive__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* shared little label */
.kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--crimson); display: inline-block;
  margin-bottom: 1.2rem;
}
.kicker--mono { color: var(--ink-dim); }

/* =================================================================
   KINETIC TYPOGRAPHY
   [data-kinetic] elements are split into .k-char spans by JS.
   Chars rise + unblur with a per-character stagger once the parent
   (or its .reveal wrapper) gets .is-in.
   ================================================================= */
.k-word { display: inline-block; white-space: nowrap; }
.k-char {
  display: inline-block; white-space: pre;
  opacity: 0; transform: translateY(0.55em) rotate(4deg); filter: blur(8px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease),
    filter 0.7s var(--ease);
  transition-delay: calc(var(--ci, 0) * 26ms + var(--d, 0) * 140ms);
}
.is-in .k-char, .is-in.k-host .k-char {
  opacity: 1; transform: none; filter: blur(0);
}

/* =================================================================
   CUSTOM CURSOR  (enabled by JS only on fine pointers, no reduced motion)
   ================================================================= */
.cursor { display: none; }
body.has-cursor .cursor { display: block; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor .screen, body.has-cursor label { cursor: none; }
}
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px; height: 6px; background: var(--crimson-2);
  box-shadow: 0 0 12px rgba(47,143,208,0.9);
}
.cursor__ring {
  width: 34px; height: 34px; border: 1px solid rgba(244,242,238,0.35);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              border-color 0.35s, background 0.35s;
}
.cursor.is-active .cursor__ring {
  width: 58px; height: 58px;
  border-color: var(--crimson);
  background: rgba(47,143,208,0.08);
}
.cursor.is-hidden { opacity: 0; }

/* =================================================================
   DUST PARTICLES (canvas)
   ================================================================= */
.dust {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 5; pointer-events: none; opacity: 0.4;
}

/* =================================================================
   0. INTRO / COLD OPEN
   ================================================================= */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #000; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* cinema letterbox bars inside the intro */
.intro::before, .intro::after {
  content: ""; position: absolute; left: 0; right: 0; height: 11vh;
  background: #000; border-color: rgba(47,143,208,0.25); z-index: 2;
}
.intro::before { top: 0; border-bottom: 1px solid var(--line); }
.intro::after  { bottom: 0; border-top: 1px solid var(--line); }

.intro__pulse {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--crimson-2);
  box-shadow: 0 0 24px 8px var(--crimson);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.8); }
}

/* white flash frame on the final cut */
.intro__flash {
  position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3;
}
.intro.is-closing .intro__flash { animation: flashcut 0.5s ease-out forwards; }
@keyframes flashcut {
  0% { opacity: 0; } 12% { opacity: 0.85; } 100% { opacity: 0; }
}

.intro__lines {
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.6em;
}
.intro__line {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.4rem, 5vw, 3.4rem); letter-spacing: 0.02em;
  color: var(--ink); opacity: 0;
  filter: blur(12px); transform: translateY(14px);
}
.intro__line em { font-style: italic; color: var(--crimson-2); text-shadow: 0 0 36px rgba(47,143,208,0.45); }
.intro__line.is-in  { animation: lineIn 1.1s var(--ease) forwards; }
.intro__line.is-out { animation: lineOut 0.8s var(--ease) forwards; }
/* line 1 uses kinetic chars instead of the block animation */
.intro__line[data-kinetic].is-in { animation: none; opacity: 1; filter: none; transform: none; }
@keyframes lineIn  { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes lineOut { to { opacity: 0; filter: blur(10px); transform: translateY(-12px); } }

/* NTL monogram flash between the two lines */
.intro__mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1.6);
  font-family: var(--mono); font-weight: 500; letter-spacing: 0.35em;
  font-size: clamp(3rem, 12vw, 7rem);
  color: transparent; -webkit-text-stroke: 1px rgba(244,242,238,0.85);
  opacity: 0; pointer-events: none;
}
.intro__mark.is-in { animation: markIn 0.7s var(--ease) forwards; }
.intro__mark.is-out { animation: markOut 0.45s var(--ease) forwards; }
@keyframes markIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(1.7); filter: blur(14px); }
  45%  { opacity: 1; -webkit-text-stroke-color: var(--crimson-2); }
  60%  { transform: translate(-49.4%, -50%) scale(1.02); }   /* glitch nudge */
  70%  { transform: translate(-50.5%, -50%) scale(1.0); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}
@keyframes markOut {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.92); filter: blur(10px); }
}

.intro__bar {
  position: absolute; bottom: 14%; width: min(240px, 50vw); height: 1px;
  background: var(--line); overflow: hidden; z-index: 4;
}
.intro__bar-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-2));
  box-shadow: 0 0 12px var(--crimson);
}
.intro.is-playing .intro__bar-fill { animation: fill 5s linear forwards; }
@keyframes fill { to { width: 100%; } }

.intro__skip {
  position: absolute; bottom: 4%; right: 8%; z-index: 5;
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 0.6em 1.1em; cursor: pointer;
  transition: 0.3s var(--ease);
}
.intro__skip:hover { color: var(--ink); border-color: var(--crimson); }

/* lock scroll while intro is up */
body.intro-lock { overflow: hidden; height: 100vh; }

/* =================================================================
   SCROLL PROGRESS STRIP
   ================================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-2));
  box-shadow: 0 0 10px var(--crimson); z-index: 1000;
  transition: width 0.1s linear;
}

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.2rem, 5vw, 3.5rem);
  transition: 0.5s var(--ease);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
}
.nav.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.nav.is-scrolled {
  background: rgba(6,6,7,0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__mark {
  font-family: var(--mono); font-weight: 500; letter-spacing: 0.1em;
  border: 1px solid var(--crimson); color: var(--crimson);
  padding: 0.25em 0.5em; font-size: 0.8rem;
  transition: 0.3s var(--ease);
}
.nav__brand:hover .nav__mark {
  background: var(--crimson); color: #fff;
  box-shadow: 0 0 22px rgba(47,143,208,0.5);
}
.nav__name { font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.nav__links a {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); transition: color 0.3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--line); padding: 0.6em 1.1em; color: var(--ink) !important;
  transition: 0.3s var(--ease);
}
.nav__cta:hover { border-color: var(--crimson); box-shadow: 0 0 20px rgba(47,143,208,0.35); }

/* =================================================================
   1. HERO + SCREENING ROOM
   ================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 12vh, 8rem) clamp(1.2rem, 6vw, 5rem) 5.5rem;
  overflow: hidden;
}
.hero__media { position: absolute; inset: -10% 0; z-index: 0; will-change: transform; }
.hero__video, .hero__media-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero__media-fallback {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(47,143,208,0.18), transparent 60%),
    linear-gradient(160deg, #111014, #060607 70%);
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,6,7,0.7) 0%, rgba(6,6,7,0.45) 35%, rgba(6,6,7,0.92) 100%),
    radial-gradient(120% 100% at 50% 120%, rgba(6,6,7,0.9), transparent 60%);
}

.hero__inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1100px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 300; line-height: 1.04;
  font-size: clamp(2.1rem, 5.6vw, 4.6rem); letter-spacing: -0.01em;
}
.hero__line { display: block; }
.hero__line--accent {
  font-style: italic; color: var(--crimson-2);
  text-shadow: 0 0 40px rgba(47,143,208,0.35);
}
.hero__sub {
  margin-top: 1.4rem; max-width: 44ch; color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

/* ---- the screening room frame ---- */
.screen-wrap {
  perspective: 1200px;
  width: min(880px, 100%);
  margin-top: clamp(2rem, 4.5vh, 3.2rem);
  position: relative; z-index: 2;
}
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 30px 80px -24px rgba(0,0,0,0.85),
    0 0 90px rgba(47,143,208,0.10),
    inset 0 0 60px rgba(0,0,0,0.55);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.5s var(--ease);
}
.screen:hover { box-shadow: 0 30px 90px -22px rgba(0,0,0,0.9), 0 0 110px rgba(47,143,208,0.2), inset 0 0 60px rgba(0,0,0,0.55); }
.screen__video { width: 100%; height: 100%; object-fit: cover; }

.screen__scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg,
    transparent 0 2px, rgba(255,255,255,0.018) 2px 4px);
}
.screen__vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 90px rgba(0,0,0,0.75);
}

/* viewfinder corner brackets */
.screen__corner {
  position: absolute; width: 20px; height: 20px; z-index: 4; pointer-events: none;
  border: 1px solid rgba(244,242,238,0.7);
  transition: border-color 0.4s, width 0.4s var(--ease), height 0.4s var(--ease);
}
.screen__corner--tl { top: 12px; left: 12px;  border-right: 0; border-bottom: 0; }
.screen__corner--tr { top: 12px; right: 12px; border-left: 0;  border-bottom: 0; }
.screen__corner--bl { bottom: 12px; left: 12px;  border-right: 0; border-top: 0; }
.screen__corner--br { bottom: 12px; right: 12px; border-left: 0;  border-top: 0; }
.screen.is-dragover .screen__corner { border-color: var(--crimson-2); width: 30px; height: 30px; }

/* HUD */
.screen__hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.6rem 0; pointer-events: none;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.screen__rec { display: flex; align-items: center; gap: 0.55rem; }
.screen__rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--crimson-2);
  box-shadow: 0 0 12px 2px rgba(47,143,208,0.8);
  animation: rec-blink 2.6s steps(1, end) infinite;
}
.screen.is-standby .screen__rec-dot { animation: none; background: var(--ink-faint); box-shadow: none; }
.screen__tc { color: var(--ink-dim); letter-spacing: 0.16em; }
.screen__hud-label { color: var(--ink-dim); }
@keyframes rec-blink {
  0%, 80%   { opacity: 1; }
  85%, 100% { opacity: 0.12; }
}

/* always-visible hint pill */
.screen__hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 4; pointer-events: none; white-space: nowrap;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em;
  color: var(--ink-dim); background: rgba(6,6,7,0.7);
  border: 1px solid var(--line); padding: 0.5em 1em;
  backdrop-filter: blur(6px);
  transition: 0.35s var(--ease);
}
.screen:hover .screen__hint { color: var(--ink); border-color: rgba(47,143,208,0.55); }

/* full drag-over overlay */
.screen__drop {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(6,6,7,0.78); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.screen__drop::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed rgba(47,143,208,0.7);
  animation: drop-pulse 1.4s ease-in-out infinite;
}
@keyframes drop-pulse {
  0%, 100% { opacity: 0.5; } 50% { opacity: 1; }
}
.screen__drop p { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 1.5rem; }
.screen__drop strong {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem); color: var(--ink);
}
.screen__drop span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-dim);
}
.screen.is-dragover .screen__drop { opacity: 1; }

/* end-of-take card */
.screen__end {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem; text-align: center;
  background: rgba(4,4,5,0.82); backdrop-filter: blur(8px);
  animation: endIn 0.7s var(--ease);
}
.screen__end[hidden] { display: none; }
@keyframes endIn { from { opacity: 0; } to { opacity: 1; } }
.screen__end-title {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--ink-dim);
}
.screen__end-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.screen__end-actions button {
  background: none; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 0.85em 1.6em; cursor: pointer;
  transition: 0.3s var(--ease);
}
.screen__end-actions button:hover {
  border-color: var(--crimson); color: #fff;
  box-shadow: 0 0 24px rgba(47,143,208,0.35);
}

.screen__caption {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint);
}

.hero__cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero__cue-line {
  width: 1px; height: 40px; background: linear-gradient(var(--crimson), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1);   opacity: 1;   transform-origin: top; }
}

/* =================================================================
   TICKER MARQUEE
   ================================================================= */
.ticker {
  overflow: hidden; background: #070708;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.1rem 0; position: relative; z-index: 2;
}
.ticker__track {
  display: flex; align-items: center; gap: 2.6rem; width: max-content;
  animation: tick 30s linear infinite; will-change: transform;
}
.ticker__track span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--ink-dim);
  white-space: nowrap;
}
.ticker__track i { font-style: normal; color: var(--crimson); font-size: 0.8rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* =================================================================
   2. SCROLL STORYTELLING (pinned scenes)
   ================================================================= */
.story { position: relative; }
.story__track { height: 360vh; }           /* drives the pinned swaps */
.story__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(100% 80% at 50% 50%, #101015, var(--bg) 75%);
}
/* drifting fog blobs behind the scenes */
.story__fog, .lab__fog {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(70px); will-change: transform; opacity: 0.55;
}
.story__fog--1 {
  width: 55vw; height: 55vw; top: -18%; left: -12%;
  background: radial-gradient(circle, rgba(47,143,208,0.10), transparent 65%);
  animation: fog-drift-a 22s ease-in-out infinite alternate;
}
.story__fog--2 {
  width: 48vw; height: 48vw; bottom: -22%; right: -10%;
  background: radial-gradient(circle, rgba(120,120,140,0.10), transparent 65%);
  animation: fog-drift-b 28s ease-in-out infinite alternate;
}
@keyframes fog-drift-a { to { transform: translate(9vw, 6vh) scale(1.15); } }
@keyframes fog-drift-b { to { transform: translate(-8vw, -7vh) scale(1.1); } }

/* white flash frame between scene cuts */
.story__flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: #fff; opacity: 0;
}
.story__flash.is-cut { animation: scenecut 0.28s ease-out; }
@keyframes scenecut { 0% { opacity: 0; } 25% { opacity: 0.10; } 100% { opacity: 0; } }

.story__scenes {
  position: relative; width: min(1100px, 90vw); text-align: center;
  min-height: 4em; display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.story__scene {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 300; line-height: 1.08;
  font-size: clamp(2rem, 6.5vw, 5.4rem); letter-spacing: -0.01em;
  opacity: 0; filter: blur(16px);
  transform: translateY(36px) scale(0.96) skewY(1.2deg);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.9s var(--ease);
}
.story__scene span { color: var(--crimson-2); }
.story__scene em { font-style: italic; color: var(--crimson-2); }
.story__scene.is-active { opacity: 1; filter: blur(0); transform: none; }
/* the scene that just left exits upward instead of fading in place */
.story__scene.is-left { transform: translateY(-30px) scale(1.02); }
.story__scene--final { font-style: normal; }
.story__index {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.25em;
  color: var(--ink-faint); z-index: 2;
}
.story__index #storyIndex { color: var(--crimson); }

/* =================================================================
   2b. ABOUT — THE LAB
   ================================================================= */
.lab {
  position: relative; overflow: hidden;
  padding: clamp(7rem, 16vh, 12rem) clamp(1.2rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--bg) 0%, #08070a 60%, var(--bg) 100%);
}
.lab__fog--1 {
  width: 60vw; height: 60vw; top: -25%; right: -18%;
  background: radial-gradient(circle, rgba(47,143,208,0.08), transparent 65%);
  animation: fog-drift-b 26s ease-in-out infinite alternate;
}
.lab__fog--2 {
  width: 50vw; height: 50vw; bottom: -25%; left: -15%;
  background: radial-gradient(circle, rgba(110,110,130,0.09), transparent 65%);
  animation: fog-drift-a 32s ease-in-out infinite alternate;
}
/* giant outlined ghost word drifting behind the copy */
.lab__ghost {
  position: absolute; top: 8%; left: 50%; margin-left: -0.5em; z-index: 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(8rem, 24vw, 22rem);
  letter-spacing: 0.04em; line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(244,242,238,0.05);
  pointer-events: none; user-select: none;
}
.lab__inner { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; }
.lab__statement {
  font-family: var(--serif); font-weight: 300; line-height: 1.12;
  font-size: clamp(1.9rem, 4.6vw, 3.8rem); letter-spacing: -0.01em;
  margin-bottom: 2.6rem; max-width: 24ch;
}
.lab__statement em {
  font-style: italic; color: var(--crimson-2);
  text-shadow: 0 0 36px rgba(47,143,208,0.3);
}
.lab__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem);
  color: var(--ink-dim); max-width: 880px;
}
.lab__cols strong { color: var(--ink); font-weight: 500; }
.lab__meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem;
}
.lab__meta li {
  display: flex; align-items: baseline; gap: 0.8rem;
  border: 1px solid var(--line); padding: 0.8em 1.2em;
  font-size: 0.88rem; color: var(--ink-dim);
  background: rgba(255,255,255,0.015);
  transition: 0.4s var(--ease);
}
.lab__meta li:hover {
  border-color: rgba(47,143,208,0.5); color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -12px rgba(47,143,208,0.25);
}
.lab__meta span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.24em;
  color: var(--crimson);
}

/* =================================================================
   3. SERVICES / PRODUCTION UNITS
   ================================================================= */
.units {
  padding: clamp(6rem, 14vh, 11rem) clamp(1.2rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.units__head { max-width: 720px; margin-bottom: 4.5rem; }
.units__head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 1rem;
}
.units__head p { color: var(--ink-dim); max-width: 46ch; }

.units__list { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.unit {
  position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  background: var(--bg); padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1rem, 3vw, 2.6rem);
  transition: background 0.5s var(--ease);
  overflow: hidden;
}
.unit:hover { background: #0e0d11; }
.unit:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.unit:nth-child(even) .unit__body { order: -1; }

/* huge ghost number behind each unit */
.unit__ghost {
  position: absolute; top: 50%; right: -0.06em; transform: translateY(-50%);
  font-family: var(--mono); font-weight: 500; line-height: 1;
  font-size: clamp(8rem, 18vw, 16rem);
  color: transparent; -webkit-text-stroke: 1px rgba(244,242,238,0.045);
  pointer-events: none; user-select: none; z-index: 0;
  transition: -webkit-text-stroke-color 0.6s;
}
.unit:nth-child(even) .unit__ghost { right: auto; left: -0.06em; }
.unit:hover .unit__ghost { -webkit-text-stroke-color: rgba(47,143,208,0.14); }

/* cursor spotlight that follows the mouse (JS sets --mx / --my) */
.unit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(540px circle at var(--mx, 50%) var(--my, 50%),
              rgba(47,143,208,0.07), transparent 55%);
  opacity: 0; transition: opacity 0.5s;
}
.unit:hover::after { opacity: 1; }

.unit__media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  border: 1px solid var(--line); background: #0a0a0c; z-index: 2;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease) 0.15s;
}
.unit.is-in .unit__media { clip-path: inset(0 0 0 0); }
.unit__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.7) contrast(1.05);
  transform: scale(1.08); transition: 0.7s var(--ease);
}
.unit:hover .unit__media img { filter: grayscale(0) brightness(0.95); transform: scale(1); }
.unit__media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
  background: linear-gradient(120deg, transparent 60%, rgba(47,143,208,0.12));
  opacity: 0; transition: 0.6s; pointer-events: none;
}
.unit:hover .unit__media::after { opacity: 1; }
.unit__body { position: relative; z-index: 2; }
.unit__code {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--ink-faint); display: block; margin-bottom: 1rem;
  transition: color 0.4s;
}
.unit:hover .unit__code { color: var(--crimson); }
.unit__body h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0.8rem; line-height: 1;
}
.unit__body p { color: var(--ink-dim); max-width: 42ch; }

/* =================================================================
   4. ARCHIVE / WORK
   ================================================================= */
.archive {
  position: relative; overflow: hidden;
  padding: clamp(6rem, 14vh, 11rem) clamp(1.2rem, 6vw, 5rem);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.archive__head { max-width: 760px; margin-bottom: 4rem; }
.archive__head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 1.1rem;
}
/* old projector flicker on the headline */
.archive__flicker { animation: flicker 7s linear infinite; }
@keyframes flicker {
  0%, 91%, 94%, 100% { opacity: 1; }
  92%               { opacity: 0.82; }
  93%               { opacity: 0.95; }
  93.5%             { opacity: 0.78; }
}
.archive__meta {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.archive__meta .ok { color: var(--crimson); }

.archive__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem; position: relative; z-index: 2;
  perspective: 1400px;
}
.case {
  border: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.case:hover {
  border-color: rgba(47,143,208,0.5);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8), 0 0 50px rgba(47,143,208,0.08);
}
.case__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0a0a0c; }
.case__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.6) brightness(0.78); transition: 0.6s var(--ease);
}
.case:hover .case__media img { filter: grayscale(0) brightness(1); transform: scale(1.04); }
.case__tag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em;
  background: rgba(6,6,7,0.8); border: 1px solid var(--line);
  padding: 0.35em 0.7em; color: var(--ink-dim);
}
.case__body { padding: 1.4rem 1.6rem 1.8rem; }
.case__body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.4rem; }
.case__body p { color: var(--ink-dim); font-size: 0.95rem; }
.case__link {
  display: inline-block; margin-top: 1rem; font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.14em; color: var(--crimson);
  border-bottom: 1px solid transparent; transition: 0.3s;
}
.case__link:hover { border-color: var(--crimson); }

.case--stat .case__stat {
  font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--crimson-2); text-shadow: 0 0 36px rgba(47,143,208,0.35); line-height: 1;
}
.case__media--stat img { filter: grayscale(0.3) brightness(0.55); }

.case--empty .case__media--empty {
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--ink-faint);
  background: repeating-linear-gradient(45deg, #08080a, #08080a 12px, #0b0b0e 12px, #0b0b0e 24px);
}
.case--empty { border-style: dashed; }

/* =================================================================
   5. FINAL CTA — last shot of the trailer
   ================================================================= */
.cta {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.2rem;
  background: radial-gradient(80% 60% at 50% 60%, #0d0c10, #000 75%);
}
/* letterbox bars close in as the section enters (JS drives --bars 0..1) */
.cta__bar {
  position: absolute; left: 0; right: 0; height: 10vh; z-index: 3;
  background: #000; pointer-events: none;
  transform: scaleY(var(--bars, 0));
  will-change: transform;
}
.cta__bar--top { top: 0; transform-origin: top; border-bottom: 1px solid rgba(47,143,208,0.18); }
.cta__bar--bottom { bottom: 0; transform-origin: bottom; border-top: 1px solid rgba(47,143,208,0.18); }

.cta__glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  border-radius: 50%; top: 60%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47,143,208,0.22), transparent 65%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}
.cta__inner { position: relative; z-index: 2; }
.cta__tag {
  display: inline-block; margin-bottom: 2.2rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--ink-dim);
  border: 1px solid var(--line); padding: 0.7em 1.4em;
}
.cta__line {
  font-family: var(--serif); font-weight: 300; line-height: 1.05;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
}
.cta__line--accent { font-style: italic; color: var(--crimson-2); margin-bottom: 2.5rem; }
.cta__btn {
  position: relative; display: inline-block;
  font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: 0.05em;
  padding: 1.05em 2.6em; color: #fff; overflow: hidden;
  border: 1px solid var(--crimson);
  background: linear-gradient(180deg, rgba(47,143,208,0.12), transparent);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.cta__btn:hover {
  background: var(--crimson);
  box-shadow: 0 0 40px rgba(47,143,208,0.6);
}
.cta__btn-glow {
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); animation: sweep 3.5s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -120%; } 60%, 100% { left: 140%; } }
.cta__sub {
  margin-top: 1.8rem; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.4rem; padding: 2.6rem clamp(1.2rem, 6vw, 5rem);
  border-top: 1px solid var(--line); background: #000;
}
.footer__credit { display: flex; align-items: center; gap: 0.9rem; }
.footer__mark {
  font-family: var(--mono); border: 1px solid var(--line); color: var(--ink-dim);
  padding: 0.25em 0.5em; font-size: 0.75rem; letter-spacing: 0.1em;
}
.footer__credit p { color: var(--ink-faint); font-size: 0.82rem; letter-spacing: 0.05em; }
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ink-dim);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--crimson); }
.footer__fin {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.4em; color: var(--ink-faint);
  width: 100%; text-align: center; padding-top: 1.4rem;
}

/* =================================================================
   REVEAL ANIMATIONS (driven by IntersectionObserver in JS)
   ================================================================= */
.reveal {
  opacity: 0; transform: translateY(34px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 140ms);
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
/* kinetic hosts keep the wrapper static — only the chars animate */
.reveal[data-kinetic] { transform: none; filter: none; opacity: 1; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 860px) {
  .nav__name { display: none; }
  .nav__links { gap: 1rem; }
  .nav__links a:not(.nav__cta) { display: none; }   /* keep it clean on mobile */
  .unit, .unit:nth-child(even) { grid-template-columns: 1fr; }
  .unit:nth-child(even) .unit__body { order: 0; }
  .unit__body { order: 0; }
  .unit__ghost { font-size: 9rem; opacity: 0.7; }
  .archive__grid { grid-template-columns: 1fr; }
  .story__track { height: 300vh; }
  .lab__cols { grid-template-columns: 1fr; }
  .lab__ghost { display: none; }
  .screen__hud { padding: 0.8rem 1rem 0; font-size: 0.58rem; letter-spacing: 0.16em; }
  .screen__hud-label { display: none; }
  .screen__hint { font-size: 0.55rem; bottom: 10px; }
  .dust { display: none; }
}
@media (max-width: 520px) {
  .hero__sub { max-width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
  .hero { padding-bottom: 4.5rem; }
  .hero__cue { display: none; }
}

/* =================================================================
   ACCESSIBILITY — respect reduced motion
   ================================================================= */
@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;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .story__scene.is-active { opacity: 1; }
  .k-char { opacity: 1; transform: none; filter: none; }
  .dust, .cursor { display: none !important; }
  .unit__media { clip-path: none; }
  .cta__bar { transform: scaleY(1); }
  .ticker__track { animation: none; }
}
/* NTL v2 */

/* =================================================================
   CONTACT FORM (in the CTA section) — cinematic, matches brand
   ================================================================= */
.cform { max-width: 540px; margin: 2.4rem auto 0; text-align: left; display: grid; gap: 1.1rem; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cform__field { display: grid; gap: 0.5rem; }
.cform__field > span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-dim);
}
.cform input, .cform select, .cform textarea {
  width: 100%; font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  padding: 0.82em 1em; border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.cform textarea { resize: vertical; min-height: 96px; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--ink-faint); }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 1px var(--crimson), 0 0 24px rgba(47,143,208,0.22);
  background: rgba(47,143,208,0.04);
}
.cform select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
                    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: right 1.1em center, right 0.85em center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.cform select option { color: #111; }
.cform.is-invalid input:invalid, .cform.is-invalid textarea:invalid { border-color: #ff5a4d; }
.cform__submit { margin-top: 0.4rem; justify-self: start; cursor: pointer; border-radius: 2px; }
.cform__note { font-family: var(--sans); font-size: 0.86rem; color: var(--ink-dim); margin: 0.2rem 0 0; }
.cform__note a { color: var(--crimson-2); border-bottom: 1px solid rgba(47,143,208,0.4); }
.cform.is-sent .cform__note { color: var(--crimson-2); }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }

/* fix: .story__scene is a flexbox, so the coloured <span>/<em> and the
   surrounding text become separate flex items and the whitespace between
   them collapses ("brands into" → "brandsinto"). Restore the gap. */
.story__scene span { margin-right: 0.28em; }
.story__scene em   { margin-left: 0.28em; }

/* space between the two Abel social links */
.case__link + .case__link { margin-left: 1.4rem; }
