/* ============================================================
   TVOIDOM — v2 "Ink / Paper / Teal"
   Editorial-Brutalist × Aurora-Noir hybrid
   Stage 1: nav + hero + marquee
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0b0e14;
  --ink-2:      #11151f;
  --ink-3:      #161b27;
  --paper:      #f1efe7;
  --paper-2:    #e7e4d8;
  --line:       rgba(241, 239, 231, 0.12);
  --line-2:     rgba(241, 239, 231, 0.22);

  --teal:       #5eead4;   /* primary accent */
  --teal-deep:  #2dd4bf;
  --lime:       #ccff4d;   /* secondary electric accent (swappable) */

  --text:       #f1efe7;
  --text-dim:   #94a0b3;
  --text-mute:  #5f6b7e;

  --font-display: 'Clash Display', 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  --container: 1340px;
  --pad: clamp(1.1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--teal); color: var(--ink); }

/* Native cursor kept (custom cursor removed by request). */

/* ---------- Overlays ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.atmos {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%,  rgba(94, 234, 212, 0.16) 0%, transparent 60%),
    radial-gradient(55% 45% at 10% 22%, rgba(124, 110, 255, 0.12) 0%, transparent 62%),
    radial-gradient(70% 60% at 50% 110%, rgba(94, 234, 212, 0.08) 0%, transparent 60%);
  filter: saturate(1.1);
  transition: opacity 0.8s ease;
}

/* WebGL ambient background canvas (raw WebGL1, js/webgl-bg.js). Sits behind
   .atmos; on successful init JS adds body.webgl-on and the CSS aurora fades out. */
.webgl-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2;
  pointer-events: none; display: block; }
body.webgl-on .atmos { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .webgl-bg { display: none; } }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  mix-blend-mode: difference; opacity: 0; transition: opacity 0.3s ease; }
.cursor.is-visible { opacity: 1; }
.cursor-dot { position: fixed; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper); transform: translate(-50%, -50%); }
.cursor-ring { position: fixed; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--paper); transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s ease; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; background: rgba(241, 239, 231, 0.08); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem var(--pad);
  mix-blend-mode: difference;
}
.brand-mark { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: 0.02em; color: var(--paper); }
.brand-mark sup { color: var(--teal); font-size: 0.7em; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--paper); position: relative; padding: 0.2rem 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--paper); transition: width 0.35s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--paper); border: 1px solid var(--paper); padding: 0.6rem 1.1rem; border-radius: 100px; }
.nav-cta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 10px var(--teal); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.6; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: clamp(7rem, 14vh, 11rem) var(--pad) 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-grid-lines { position: absolute; inset: 0; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--pad); display: grid;
  grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.hero-grid-lines span { border-left: 1px solid var(--line); }
.hero-grid-lines span:last-child { border-right: 1px solid var(--line); }

.hero-inner { position: relative; width: 100%; max-width: var(--container);
  margin-inline: auto; z-index: 3; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--text-dim); margin-bottom: clamp(1.4rem, 4vh, 2.6rem); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 12px var(--lime); }

.hero-title { font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.9rem, 11.5vw, 11rem); line-height: 0.92;
  letter-spacing: -0.02em; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-in { display: block; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--paper); text-stroke: 1.5px var(--paper); }
.hero-title .accent { color: var(--teal); -webkit-text-stroke: 0; }

.hero-bottom { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 3rem;
  align-items: end; margin-top: clamp(2rem, 6vh, 3.6rem); }
.hero-lead { font-size: clamp(1rem, 1.35vw, 1.18rem); color: var(--text-dim);
  max-width: 46ch; line-height: 1.65; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: flex-end; }

.btn { display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 1rem 1.6rem; border-radius: 100px; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease; will-change: transform; }
.btn-primary { background: var(--teal); color: var(--ink); font-weight: 700; }
.btn-primary .btn-arrow { transition: transform 0.3s var(--ease); }
.btn-primary:hover { background: var(--lime); }
.btn-primary:hover .btn-arrow { transform: translateX(5px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.hero-services { display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem;
  margin-top: clamp(2.4rem, 7vh, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text); }
.hero-services .num { color: var(--teal); margin-right: 0.4rem; }

/* Rotating seal */
.hero-seal-wrap { position: absolute; top: clamp(6rem, 16vh, 11rem); right: var(--pad);
  width: clamp(110px, 13vw, 190px); aspect-ratio: 1; z-index: 2; }
.hero-seal { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-seal text { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.5px;
  fill: var(--text-dim); text-transform: uppercase; }
.hero-seal-core { position: absolute; inset: 0; display: grid; place-items: center; }
.seal-arrow { font-size: clamp(1.4rem, 2.6vw, 2.4rem); color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em; color: var(--text-mute); }
.scroll-bar { width: 1px; height: 42px; background: linear-gradient(var(--teal), transparent);
  animation: scrolly 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrolly { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem) 0;
  overflow: hidden; background: var(--ink-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 4rem); text-transform: uppercase; letter-spacing: -0.01em;
  white-space: nowrap; padding-right: 0.4em; color: var(--paper); }
.marquee-track i { font-style: normal; color: var(--teal); margin: 0 0.25em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stub ---------- */
.next-stub { padding: clamp(4rem, 12vh, 9rem) 0; }
.stub-note { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.05em; }
.stub-note .num { color: var(--teal); margin-right: 0.6rem; }

/* ---------- Reveal base (JS-driven) ---------- */
.hero-title .line-in, .reveal-line { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero-bottom { grid-template-columns: 1fr; align-items: start; }
  .hero-actions { justify-content: flex-start; }
  .hero-seal-wrap { display: none; }
  .hero-grid-lines { display: none; }
}
@media (max-width: 540px) {
  .hero-services { gap: 0.5rem 1.4rem; font-size: 0.74rem; }
  .nav-cta span:first-child { display: none; }
}

/* ============================================================
   STAGE 2 — Selected Work + Services + Studio + Contact
   ============================================================ */

/* Scroll lock when a case is open */
html.scroll-locked { overflow: hidden; }
/* Hide the difference-blend cursor while a case is open (it vanishes over teal Close) */
body.case-open .cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.case-open, body.case-open a, body.case-open button { cursor: auto !important; }
}

/* ---------- Section heads (shared) ---------- */
.work, .svc { padding: clamp(4.5rem, 12vh, 9rem) 0; }
.work-head { margin-bottom: clamp(2.2rem, 6vh, 4rem); }
.work-h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 5.5rem); line-height: 0.96; letter-spacing: -0.02em; margin-top: 0.6rem; }
.work-h2 .num { font-family: var(--font-mono); font-size: 0.28em; color: var(--teal);
  vertical-align: super; margin-right: 0.5rem; }
.work-h2 .outline { color: transparent; -webkit-text-stroke: 1.4px var(--paper); }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); min-height: 60vh; }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card.is-feature { grid-column: 1 / -1; }
}

/* ---------- Work card (window) ---------- */
.work-card { position: relative; display: block; color: var(--text); text-decoration: none;
  contain: layout paint; }
.work-card .case-body { display: none; }

.work-media-slot { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
.work-card.is-feature .work-media-slot { aspect-ratio: 4 / 3; max-height: 78vh; margin-inline: auto; max-width: calc(78vh * 4 / 3); }
.work-media { position: relative; width: 100%; height: 100%; margin: 0; overflow: hidden;
  border-radius: inherit; background: var(--ink-3); border: 1px solid var(--line); }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* corner '+' crosshair markers */
.corner { position: absolute; width: 14px; height: 14px; z-index: 4; pointer-events: none; opacity: 0.9; }
.corner::before, .corner::after { content: ''; position: absolute; background: var(--teal); }
.corner::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.corner::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.corner.tl { top: 10px; left: 10px; } .corner.tr { top: 10px; right: 10px; }
.corner.bl { bottom: 10px; left: 10px; } .corner.br { bottom: 10px; right: 10px; }

/* teal reveal curtain over media */
.case-curtain { position: absolute; inset: 0; z-index: 2; background: var(--teal);
  transform: scaleY(0); transform-origin: bottom; pointer-events: none; }

/* hover "VIEW" cue chip */
.work-cue { position: absolute; right: 12px; bottom: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink);
  background: var(--teal); padding: 0.3rem 0.6rem; border-radius: 100px; }

.work-tags { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 1rem 0 0; padding: 0;
  font-family: var(--font-mono); text-transform: uppercase; font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--teal); }
.work-tags li { position: relative; }
.work-tags li:not(:last-child)::after { content: '•'; margin-left: 1rem; color: var(--text-mute); }

.work-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1; margin-top: 0.6rem; }
.work-card.is-feature .work-title { font-size: clamp(2.4rem, 7vw, 6rem); }
.work-sub { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim);
  margin-top: 0.55rem; }

/* per-letter split */
.char { display: inline-block; overflow: hidden; vertical-align: bottom; }
.char > span { display: inline-block; will-change: transform; }

@media (hover: hover) and (pointer: fine) {
  .work-media img { transition: filter 0.5s ease; }
  .work-card:hover .work-media img { filter: saturate(1.06) contrast(1.02); }
  .work-cue { opacity: 0; transform: translateY(6px); transition: 0.4s var(--ease); }
  .work-card:hover .work-cue { opacity: 1; transform: none; }
  .work-card:hover .work-title { color: var(--teal); transition: color 0.3s ease; }
}

/* ---------- OPEN state (CSS owns layout; JS toggles .is-open) ---------- */
.work-card.is-open {
  position: fixed; inset: 0; width: 100vw; height: 100svh; z-index: 9500;
  border-radius: 0; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(11, 14, 20, 0.55); backdrop-filter: blur(10px) saturate(1.15);
  padding: clamp(1.4rem, 4vw, 3.4rem);
  -webkit-overflow-scrolling: touch;
}
/* While a case is open, lift the WebGL liquid above the scrim so it shows
   through the translucent case (the canvas keeps animating — not paused). */
body.case-open .webgl-bg { z-index: 9450; }

/* ============================================================
   CINEMATIC CASE OPEN — dolly-zoom into the media, blur, blackout,
   then the project page emerges from darkness.
   ============================================================ */
.case-blackout { position: fixed; inset: 0; z-index: 9750; background: #05070c;
  opacity: 0; pointer-events: none; }
/* WebGL "camera dives into the image" overlay (js/cinema.js) — sits above the
   entering media (9500) and below the blackout cover (9750). */
.cinema-dive { position: fixed; inset: 0; z-index: 9700; pointer-events: none; }
/* "entering" state: the media panel fills the screen for the camera push-in;
   the rest of the horizontal track is hidden until we emerge from black. */
.work-card.is-entering { overflow: hidden !important; background: var(--ink) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.work-card.is-entering .case-panel:not(.case-panel--media) { opacity: 0; visibility: hidden; }
.work-card.is-entering .case-panel--media { position: absolute; top: 0; left: 0;
  width: 100vw !important; height: 100svh; z-index: 2; margin: 0; }
.work-card.is-entering .case-panel--media .work-media { width: 100%; height: 100%;
  border: 0; border-radius: 0; transform-origin: center center; will-change: transform, filter; }
@media (prefers-reduced-motion: reduce) { .case-blackout { display: none; } }

/* ============================================================
   HORIZONTAL CASE SCROLL (Lusion-style) — only for cards whose
   case-body has a .case-track (so non-converted cards stay vertical).
   ============================================================ */
.work-card.is-open:has(.case-track) {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain;
  padding: 0; scrollbar-width: none; cursor: grab;
}
.work-card.is-open:has(.case-track)::-webkit-scrollbar { display: none; }
.work-card.is-open.is-grabbing { cursor: grabbing; }
.work-card.is-open:has(.case-track) a,
.work-card.is-open:has(.case-track) button { cursor: auto; }
.work-card.is-open > .work-media-slot { display: none; }
.work-card.is-open .work-tags { display: none; }

.work-card.is-open .case-body { display: block; position: static; height: 100%; max-width: none; margin: 0; }
.case-track { display: flex; align-items: center; height: 100%;
  gap: clamp(2rem, 6vw, 6rem); padding-inline: clamp(1.4rem, 6vw, 6rem);
  width: max-content; }
.case-track::after { content: ''; flex: 0 0 clamp(2rem, 8vw, 8rem); }
.case-panel { flex: 0 0 auto; height: min(80svh, 760px);
  display: flex; flex-direction: column; justify-content: center; }
.case-panel--media { width: clamp(60vw, 92svh, 1100px); }
.case-panel--media .work-media { position: relative; height: 100%; width: 100%;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin: 0; }
.case-panel--media .work-media img { width: 100%; height: 100%; object-fit: cover; }
.case-panel--intro { width: min(46ch, 82vw); }
.case-panel--pipeline { width: auto; }
.case-panel--pipeline .case-steps { display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 300px); gap: 1.1rem; margin: 0; align-content: center; }
.case-panel--stack { width: min(60vw, 760px); }
.case-panel--stack .case-meta { margin: 0 0 1.4rem; }
.case-panel--stack .case-video { margin: 0; max-height: 46svh; }
.case-panel--cta { width: min(42ch, 72vw); align-items: flex-start; }
.case-panel--cta .case-foot { margin: 0; }

/* progress bar (body-level, above case/close) */
.case-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 9650;
  background: var(--line); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease); pointer-events: none; }
body.case-open .case-progress { opacity: 1; visibility: visible; }
.case-progress-bar { display: block; height: 100%; width: 100%; transform: scaleX(0);
  transform-origin: left; background: linear-gradient(90deg, var(--teal), var(--violet)); }

/* touch / coarse — native horizontal swipe + snap, no Lenis */
@media (pointer: coarse) {
  .work-card.is-open:has(.case-track) { overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; cursor: auto; }
  .case-panel { scroll-snap-align: center; }
}
/* narrow phones — vertical column (safe) */
@media (max-width: 600px) {
  .work-card.is-open:has(.case-track) { overflow-x: hidden; overflow-y: auto;
    padding: clamp(1.4rem, 4vw, 3.4rem); }
  .case-track { flex-direction: column; align-items: stretch; width: auto;
    gap: 1.6rem; padding-inline: 0; }
  .case-track::after { display: none; }
  .case-panel { height: auto; width: auto !important; }
  .case-panel--media .work-media { aspect-ratio: 16 / 10; height: auto; }
  .case-panel--pipeline .case-steps { grid-auto-flow: row; grid-template-columns: 1fr; }
}
/* reduced motion — instant native scroll */
@media (prefers-reduced-motion: reduce) {
  .work-card.is-open:has(.case-track) { overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; }
  .case-progress-bar { transition: none; }
}
.work-card.is-open .work-media-slot { aspect-ratio: auto; height: 56svh; max-width: 1100px; margin: 0 auto; }
.work-card.is-open .work-tags { max-width: 1100px; margin-left: auto; margin-right: auto; }
.work-card.is-open .work-title, .work-card.is-open .work-sub { display: none; }
.work-card.is-open .work-cue { display: none; }
.work-card.is-open .case-body { display: block; position: relative; max-width: 1100px; margin: 1.6rem auto 0; }

/* ---------- Case content ---------- */
.case-kicker { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  color: var(--text-dim); margin-bottom: 0.8rem; }
.case-kicker .num { color: var(--teal); }
.case-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.02em; }
.case-title:focus { outline: none; }
.case-lead { font-size: clamp(1.05rem, 1.6vw, 1.4rem); color: var(--text); max-width: 60ch;
  margin-top: 1.1rem; line-height: 1.55; }
.case-meta { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; margin: 1.8rem 0; padding: 1.3rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.case-meta li { list-style: none; }
.case-meta span { display: block; color: var(--teal); margin-bottom: 0.25rem; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; }
.case-steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1.8rem 0; }
.case-step { border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; background: var(--ink-2); }
.case-step .num { font-family: var(--font-mono); color: var(--teal); font-size: 1.3rem; }
.case-step h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0.5rem 0 0.3rem; }
.case-step p { font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }
.case-video { margin: 1.8rem 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  max-height: 60svh; background: var(--ink-3); }
.case-video-el { width: 100%; height: auto; display: block; }
.case-foot { margin: 2rem 0 1rem; }

/* ---------- Scrim + Close (body-level) ---------- */
.work-scrim { position: fixed; inset: 0; z-index: 9400; background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.work-scrim.is-on { opacity: 1; visibility: visible; }
.case-close { position: fixed; top: 1.1rem; right: 1.1rem; z-index: 9600;
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  background: var(--teal); color: var(--ink); border: 0; border-radius: 100px; padding: 0.55rem 1.05rem; }
.case-close[hidden] { display: none; }
.case-close i { font-style: normal; font-size: 1rem; }

/* ---------- Cursor "VIEW" state ---------- */
.cursor.is-view .cursor-ring { width: 80px; height: 80px; background: rgba(241, 239, 231, 0.06); }
.cursor.is-view .cursor-ring::after { content: 'VIEW'; position: absolute; inset: 0; display: grid;
  place-items: center; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--paper); }

/* ---------- Studio statement ---------- */
.studio { padding: clamp(4rem, 10vh, 8rem) 0; border-top: 1px solid var(--line); }
.studio-statement { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 4.4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em;
  max-width: 22ch; margin-top: 1.4rem; }
.studio-statement .accent { color: var(--teal); }

/* ---------- Services list ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: baseline;
  padding: clamp(1.1rem, 3vw, 2rem) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease); }
.svc-row .num { font-family: var(--font-mono); color: var(--teal); font-size: 0.85rem; }
.svc-name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1; }
.svc-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .svc-row:hover { padding-left: 1.2rem; }
  .svc-row:hover .svc-name { color: var(--teal); transition: color 0.3s ease; }
}

/* ---------- Contact band ---------- */
.contact { padding: clamp(5rem, 14vh, 11rem) 0; border-top: 1px solid var(--line); }
.contact-h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 8rem); line-height: 0.95; letter-spacing: -0.02em; margin-top: 1.2rem; }
.contact-h2 .accent { color: var(--teal); -webkit-text-stroke: 0; }
.contact-lead { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--text-dim); margin-top: 1.4rem; max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

@media (max-width: 880px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card.is-feature { grid-column: auto; }
  .work-card.is-open .work-media-slot { height: 44svh; }
  .svc-row { grid-template-columns: auto 1fr; }
  .svc-meta { grid-column: 1 / -1; text-align: left; margin-top: 0.3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-seal, .marquee-track, .scroll-bar, .nav-cta-dot { animation: none !important; }
  body { cursor: auto !important; }
  .cursor { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .char, .char > span { overflow: visible; transform: none; }
  .case-curtain { display: none; }
}

/* ============================================================
   STAGE 3 — Process + Footer + page-wide reveal helpers
   Reveal from-states are set by JS (gsap.from) ONLY when motion
   is allowed — nothing here hides content (progressive enhancement).
   ============================================================ */

/* Runtime mask wrapper: JS inserts .reveal-mask around 'rise' headings to clip
   the rise. padding/margin give the teal superscript room so it isn't clipped. */
.reveal-mask { display: block; overflow: hidden; padding-top: 0.15em; margin-top: -0.15em; }

/* ---------- PROCESS (mirrors .work / .svc rhythm) ---------- */
.proc { padding: clamp(4.5rem, 12vh, 9rem) 0; border-top: 1px solid var(--line); }
.proc-list { border-top: 1px solid var(--line); margin-top: clamp(2.2rem, 6vh, 4rem); }
.proc-step { display: grid; grid-template-columns: clamp(3rem, 7vw, 6.5rem) 1fr;
  gap: clamp(1rem, 3vw, 2.6rem); align-items: start;
  padding: clamp(1.4rem, 3.6vw, 2.6rem) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease); }
.proc-num { font-family: var(--font-mono); color: var(--teal); font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.8rem); line-height: 1; }
.proc-main { min-width: 0; }
.proc-name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.01em;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 1rem; }
.proc-en { font-family: var(--font-mono); font-weight: 400; text-transform: uppercase;
  font-size: 0.32em; letter-spacing: 0.16em; color: var(--text-mute); }
.proc-desc { font-size: clamp(0.95rem, 1.25vw, 1.12rem); color: var(--text-dim);
  line-height: 1.6; max-width: 56ch; margin-top: 0.9rem; }
.proc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin-top: 1.1rem; padding: 0; }
.proc-chips li { list-style: none; font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 0.32rem 0.8rem; }
@media (hover: hover) and (pointer: fine) {
  .proc-step:hover { padding-left: clamp(0.8rem, 2vw, 1.4rem); }
  .proc-step:hover .proc-name { color: var(--teal); transition: color 0.3s ease; }
  .proc-step:hover .proc-num { color: var(--lime); transition: color 0.3s ease; }
}
@media (max-width: 540px) {
  .proc-step { grid-template-columns: 1fr; gap: 0.6rem; }
  .proc-num { font-size: clamp(1.6rem, 11vw, 2.4rem); }
}

/* ---------- FOOTER ("Colophon / Giant Wordmark") ---------- */
.site-foot { position: relative; border-top: 1px solid var(--line-2);
  background: var(--ink-2); overflow: hidden;
  padding: clamp(3.5rem, 9vh, 6.5rem) 0 clamp(1.4rem, 4vh, 2.2rem); }
.foot-top { display: grid; grid-template-columns: 1.2fr 1.8fr;
  gap: clamp(2.4rem, 5vw, 5rem); align-items: start; }
.foot-brand { max-width: 40ch; }
.foot-mark { font-family: var(--font-display); font-weight: 600; color: var(--paper);
  font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: 0.01em; display: inline-block; }
.foot-mark sup { color: var(--teal); font-size: 0.55em; vertical-align: super; }
.foot-blurb { color: var(--text-dim); font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6; margin-top: 1rem; }
.foot-status { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.6rem;
  font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-mute); }
.foot-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 12px var(--teal); animation: pulse 2.4s ease-in-out infinite; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3vw, 3rem); }
.foot-col-h { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-mute); margin-bottom: 1.1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.foot-col ul { display: grid; gap: 0.7rem; padding: 0; margin: 0; }
.foot-col li { list-style: none; }
.foot-col a { display: inline-block; font-size: clamp(0.92rem, 1.05vw, 1rem); color: var(--text); }
.foot-col a > span { position: relative; }
.foot-col a > span::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px;
  width: 0; background: var(--teal); transition: width 0.35s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover { color: var(--teal); }
  .foot-col a:hover > span::after { width: 100%; }
  .foot-mark:hover sup { color: var(--lime); transition: color 0.3s ease; }
}
.foot-word { margin: clamp(2.4rem, 6vh, 4.5rem) 0 clamp(1.4rem, 3vh, 2.2rem);
  line-height: 0.8; pointer-events: none; padding-inline: var(--pad); }
.foot-word-in { display: inline-block; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; user-select: none;
  font-size: clamp(3.4rem, 19vw, 17rem); color: transparent;
  -webkit-text-stroke: 1.2px var(--line-2); text-stroke: 1.2px var(--line-2); }
.foot-word-dot { font-style: normal; color: var(--teal); -webkit-text-stroke: 0; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1.4rem; padding-top: clamp(1.4rem, 3vh, 2rem); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em;
  color: var(--text-mute); text-transform: uppercase; }
.foot-copy .num { color: var(--teal); margin-right: 0.35rem; }
.foot-up { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-mute);
  transition: color 0.3s ease; }
.foot-up span { transition: transform 0.3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .foot-up:hover { color: var(--teal); }
  .foot-up:hover span { transform: translateY(-4px); }
}
@media (max-width: 880px) {
  .foot-top { grid-template-columns: 1fr; gap: 2.6rem; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; }
}
@media (max-width: 540px) {
  .foot-cols { grid-template-columns: 1fr; }
  .foot-word-in { -webkit-text-stroke-width: 0.85px; text-stroke-width: 0.85px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-mask { overflow: visible !important; }
  .foot-status-dot { animation: none !important; }
}
