/* ============================================================
   LANDSCOPE — Imagination, Rendered.
   Design system: dark cinematic, spectral accent, display type
   ============================================================ */

:root {
  --bg: #07070b;
  --bg-2: #0c0d14;
  --bg-3: #12141d;
  --ink: #f5f5f2;
  --muted: #969cab;
  --faint: #5b6070;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #6a8dff;
  --accent-2: #b15bff;
  --accent-3: #ff5fa2;
  --grad: linear-gradient(100deg, #6a8dff 0%, #b15bff 52%, #ff5fa2 100%);
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --max: 1640px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.container { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 24px; top: -80px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 12px 18px; font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Grain & atmosphere ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 120; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400; background: #050508;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 28px;
  transition: clip-path 0.9s var(--ease-expo);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader-word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em;
  font-size: clamp(28px, 5vw, 56px); display: flex; overflow: hidden;
}
.preloader-word span { display: inline-block; transform: translateY(110%); animation: pl-rise 0.8s var(--ease-out) forwards; }
.preloader-count { font-size: 12px; letter-spacing: 0.35em; color: var(--muted); font-variant-numeric: tabular-nums; }
.preloader-bar { width: min(300px, 60vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.preloader-bar i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
@keyframes pl-rise { to { transform: translateY(0); } }

/* ---------- Page transition wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 350; background: #050508; transform: scaleY(0); transform-origin: top; pointer-events: none; }
.wipe.is-active { pointer-events: all; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.cursor-ring .cursor-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  opacity: 0; transition: opacity 0.2s; white-space: nowrap;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--accent); background: rgba(106, 141, 255, 0.08); }
.cursor-ring.is-view { width: 92px; height: 92px; background: rgba(7, 7, 11, 0.55); backdrop-filter: blur(4px); border-color: rgba(255,255,255,0.5); }
.cursor-ring.is-view .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: transform 0.45s var(--ease-out), background 0.3s, backdrop-filter 0.3s;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-solid { background: rgba(7, 7, 11, 0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.05em; }
.brand .brand-mark { color: var(--accent); }
.desktop-nav { display: flex; align-items: center; gap: 38px; }
.nav-link { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 0; position: relative; color: var(--muted); transition: color 0.25s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; overflow: hidden;
  padding: 16px 26px; border-radius: 100px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong);
  transition: color 0.35s, border-color 0.35s; isolation: isolate; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: translateY(101%); transition: transform 0.4s var(--ease-expo); border-radius: inherit;
}
.btn:hover { border-color: transparent; color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid:hover { color: #fff; }
.btn-sm { padding: 12px 20px; font-size: 11px; }
.arrow { width: 14px; height: 14px; flex: 0 0 auto; }

/* Text link */
.tlink {
  display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong); transition: color 0.25s, border-color 0.25s;
}
.tlink:hover { color: var(--accent); border-color: var(--accent); }
.tlink .arrow { transition: transform 0.3s var(--ease-out); }
.tlink:hover .arrow { transform: translate(3px, -3px); }

/* Mobile nav */
.menu-toggle { display: none; position: relative; z-index: 260; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle .bars { width: 24px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 10px; }
.menu-toggle.is-open .bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle.is-open .bars::after { top: 5px; transform: rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 250; background: rgba(5, 5, 8, 0.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-size: clamp(40px, 9vw, 64px); font-weight: 700; letter-spacing: -0.03em;
  padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  color: var(--ink); transform: translateY(20px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.mobile-nav.is-open a { transform: translateY(0); opacity: 1; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.05s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.1s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.15s; }
.mobile-nav a .arrow { width: 22px; height: 22px; color: var(--accent); }
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav-foot { margin-top: 34px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }

/* ---------- Eyebrow & headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98;
}
.h-xl { font-size: clamp(52px, 9.5vw, 164px); }
.h-lg { font-size: clamp(42px, 6.5vw, 104px); }
.h-md { font-size: clamp(30px, 4vw, 56px); }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; color: var(--muted); max-width: 640px; }
.lede strong { color: var(--ink); font-weight: 500; }

/* Split reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(115%); will-change: transform; }
.no-js .split .w > span, .split.is-in .w > span { transform: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,11,0.6) 0%, rgba(7,7,11,0.3) 40%, rgba(7,7,11,0.85) 88%, var(--bg) 100%);
}
.hero-aurora { position: absolute; inset: 0; z-index: 0; }
.hero-saturn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-media.is-static { background: url("../video/hero.jpg") center / cover no-repeat; }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(40px, 6vh, 80px); padding-top: 140px; }
.hero-eyebrow-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: clamp(24px, 4vh, 48px); }
.hero-tag { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.hero h1 { margin: 0 0 clamp(24px, 4vh, 44px); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 44px; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 6vh, 80px); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll .line { width: 1px; height: 56px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll .line::after { content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--accent); animation: scroll-drip 1.8s var(--ease-expo) infinite; }
@keyframes scroll-drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; padding-right: 28px;
  display: inline-flex; align-items: center; gap: 28px; color: var(--ink);
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 0.6em; }
.marquee-track span.is-ghost { color: transparent; -webkit-text-stroke: 1px var(--faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vh, 160px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 7vh, 88px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { max-width: 400px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.section-index { font-size: 11px; letter-spacing: 0.3em; color: var(--faint); text-transform: uppercase; }

/* ---------- Services (index) ---------- */
.services { border-top: 1px solid var(--line); }
.service-row {
  position: relative; display: grid; grid-template-columns: 90px 1.4fr 1fr 40px; gap: 32px; align-items: center;
  padding: clamp(30px, 5vh, 52px) 0; border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease-out);
}
.service-row:hover { padding-left: 20px; }
.service-num { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: 0.15em; }
.service-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.2vw, 62px); letter-spacing: -0.035em; line-height: 1.02; transition: color 0.3s; }
.service-row:hover .service-name { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.service-row:hover .service-name .grad-text { -webkit-text-stroke: 0; }
.service-desc { font-size: 15px; color: var(--muted); max-width: 420px; line-height: 1.7; }
.service-row > .arrow { width: 22px; height: 22px; color: var(--accent); transition: transform 0.35s var(--ease-out); justify-self: end; }
.service-row:hover > .arrow { transform: translate(4px, -4px) scale(1.15); }
.service-preview {
  position: fixed; z-index: 90; width: 300px; aspect-ratio: 16/10; border-radius: var(--radius);
  overflow: hidden; pointer-events: none; opacity: 0; transform: scale(0.85) rotate(-3deg);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.service-preview.is-on { opacity: 1; transform: scale(1) rotate(0deg); }
.service-preview img, .service-preview video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Showreel ---------- */
.reel { position: relative; border-radius: calc(var(--radius) * 2); overflow: hidden; aspect-ratio: 16/8.2; background: var(--bg-2); cursor: pointer; }
.reel video, .reel img.reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,5,8,0.65)); transition: opacity 0.4s; }
.reel.is-playing::after { opacity: 0; }
.reel-ui { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; }
.reel-play {
  width: clamp(84px, 10vw, 128px); height: clamp(84px, 10vw, 128px); border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(7, 7, 11, 0.35); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease-out), background 0.3s, opacity 0.3s;
}
.reel-play svg { width: 28%; height: 28%; margin-left: 6%; }
.reel:hover .reel-play { transform: scale(1.08); background: rgba(106, 141, 255, 0.35); }
.reel.is-playing .reel-ui { opacity: 0; pointer-events: none; }
.reel-meta { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; transition: opacity 0.3s; }
.reel.is-playing .reel-meta { opacity: 0; }
.reel-meta h3 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.reel-meta .kicker { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.reel-len { font-size: 11px; letter-spacing: 0.15em; color: rgba(255,255,255,0.65); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Engine wall ---------- */
.engines { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.engine-card {
  position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px); min-height: 210px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; isolation: isolate; transition: background 0.35s;
}
.engine-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(106, 141, 255, 0.16), transparent 65%);
}
.engine-card:hover::before { opacity: 1; }
.engine-tag { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.engine-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.025em; margin: 16px 0 8px; }
.engine-note { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(20px, 2.5vw, 40px); border-bottom: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.5vw, 88px); letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value em { font-style: normal; color: var(--accent); }
.stat-label { margin-top: 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Manifesto quote ---------- */
.manifesto { text-align: left; }
.manifesto blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 68px); letter-spacing: -0.03em; line-height: 1.14; max-width: 1180px;
}
.manifesto cite { display: block; margin-top: 28px; font-style: normal; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-orbs { position: absolute; inset: 0; filter: blur(90px); opacity: 0.5; }
.cta-orbs i { position: absolute; border-radius: 50%; }
.cta-orbs i:nth-child(1) { width: 44vw; height: 44vw; left: -10%; top: -40%; background: rgba(106, 141, 255, 0.28); animation: orb-a 14s ease-in-out infinite alternate; }
.cta-orbs i:nth-child(2) { width: 36vw; height: 36vw; right: -8%; bottom: -50%; background: rgba(177, 91, 255, 0.22); animation: orb-b 18s ease-in-out infinite alternate; }
.cta-orbs i:nth-child(3) { width: 20vw; height: 20vw; right: 22%; top: -20%; background: rgba(255, 95, 162, 0.16); animation: orb-a 11s ease-in-out infinite alternate-reverse; }
@keyframes orb-a { to { transform: translate(9%, 14%) scale(1.15); } }
@keyframes orb-b { to { transform: translate(-12%, -10%) scale(0.92); } }
.cta-inner { position: relative; z-index: 2; padding: clamp(90px, 16vh, 190px) 0; display: flex; flex-direction: column; align-items: flex-start; gap: 34px; }
.cta-inner .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #050508; position: relative; z-index: 2; }
.footer-word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9;
  font-size: clamp(64px, 14.5vw, 264px); padding: clamp(40px, 7vh, 90px) 0 clamp(20px, 4vh, 50px);
  background: linear-gradient(180deg, var(--ink) 30%, rgba(245,245,242,0.12));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; white-space: nowrap; overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 30px 0 40px; border-top: 1px solid var(--line); }
.footer-col h4 { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: var(--ink); transform: translateX(4px); }
.footer-blurb { font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.7; }
.footer-clock { font-variant-numeric: tabular-nums; color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(150px, 22vh, 240px) 0 clamp(50px, 8vh, 100px); position: relative; }
.page-hero h1 { margin: 22px 0 26px; }
.page-hero .lede { max-width: 720px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Showcase ---------- */
.model-tabs { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.model-tabs::-webkit-scrollbar { display: none; }
.model-tab {
  flex: 1 0 auto; min-width: 170px; padding: 22px 24px; text-align: left; position: relative;
  border-right: 1px solid var(--line); color: var(--muted); transition: color 0.25s, background 0.25s;
}
.model-tab:last-child { border-right: 0; }
.model-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.model-tab[aria-selected="true"] { color: var(--ink); }
.model-tab[aria-selected="true"]::after { transform: scaleX(1); }
.model-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.model-tab .tab-num { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--faint); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.model-tab .tab-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.model-tab .tab-meta { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; color: var(--faint); }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3vw, 48px); margin-top: clamp(28px, 5vh, 56px); align-items: start; }
.stage-player { position: relative; border-radius: calc(var(--radius) * 2); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-2); }
.stage-player video, .stage-player .stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s; }
.stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,8,0.25), transparent 35%, transparent 55%, rgba(5,5,8,0.7)); pointer-events: none; transition: opacity 0.35s; }
.stage.is-playing .stage-shade { opacity: 0; }
.stage-topline { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 12px; z-index: 2; }
.stage-chip { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; padding: 7px 10px; border: 1px solid rgba(255,255,255,0.25); background: rgba(7,7,11,0.35); backdrop-filter: blur(6px); border-radius: 2px; }
.stage-play { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s; }
.stage.is-playing .stage-play { opacity: 0; pointer-events: none; }
.stage-play .reel-play { width: 88px; height: 88px; }
.stage-bottomline { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; transition: opacity 0.3s; }
.stage.is-playing .stage-bottomline { opacity: 0; }
.stage-bottomline h3 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.stage-bottomline .kicker { font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 7px; }

.clip-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.clip-chip {
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 9px 16px; font-size: 12px; color: var(--muted);
  display: inline-flex; gap: 10px; align-items: center; transition: all 0.25s;
}
.clip-chip i { font-style: normal; font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
.clip-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: rgba(106, 141, 255, 0.1); }
.clip-chip:hover { border-color: var(--ink); color: var(--ink); }

.stage-panel { position: sticky; top: 110px; }
.panel-status { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.stage-panel h2 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.03em; }
.panel-lede { font-size: 17px; line-height: 1.55; margin-top: 18px; color: var(--ink); }
.panel-desc { font-size: 14px; line-height: 1.75; color: var(--muted); margin-top: 14px; }
.panel-facts { margin-top: 24px; border-top: 1px solid var(--line); }
.panel-facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.panel-facts dt { color: var(--faint); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.panel-facts dd { margin: 0; color: var(--ink); }
.panel-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- Studio page ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.editorial .sticky-col { position: sticky; top: 130px; }
.body-copy p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; color: var(--muted); }
.body-copy p + p { margin-top: 22px; }
.body-copy strong { color: var(--ink); font-weight: 500; }
.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--faint); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 56px); }
.principle { border-top: 1px solid var(--line-strong); padding-top: 24px; position: relative; }
.principle .p-num { font-size: 11px; color: var(--accent); letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.principle h3 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.025em; margin: 16px 0 12px; }
.principle p { font-size: 14px; color: var(--muted); line-height: 1.75; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); counter-reset: step; }
.process-step { border-top: 1px solid var(--line-strong); padding-top: 22px; position: relative; }
.process-step .service-num { display: block; margin-bottom: 16px; }
.process-step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.media-break { position: relative; border-radius: calc(var(--radius) * 2); overflow: hidden; aspect-ratio: 21/9; }
.media-break video, .media-break img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-break figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 2; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.media-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(5,5,8,0.55)); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact-panel { border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); padding: clamp(28px, 3.5vw, 48px); background: var(--bg-2); position: relative; overflow: hidden; }
.contact-panel::before { content: ""; position: absolute; top: -60%; right: -40%; width: 80%; aspect-ratio: 1; background: radial-gradient(circle, rgba(106,141,255,0.14), transparent 65%); pointer-events: none; }
.contact-panel h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.contact-panel > p { color: var(--muted); font-size: 15px; margin-top: 16px; line-height: 1.7; }
.contact-mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; font-family: var(--font-display); font-size: clamp(19px, 2vw, 27px); font-weight: 700; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-strong); padding-bottom: 8px; transition: color 0.25s, border-color 0.25s; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.brief-list { margin-top: 30px; border-top: 1px solid var(--line); }
.brief-list li { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); align-items: baseline; }
.brief-list .item-number { font-size: 10px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.15em; flex: 0 0 26px; }
.contact-details h2 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px; }
.contact-details > p { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 520px; }

/* ---------- Credits ---------- */
.credits-list { border-top: 1px solid var(--line); }
.credits-list li { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.credits-list .cr-file { font-family: var(--font-display); font-weight: 500; }
.credits-list .cr-src { color: var(--muted); }
.credits-list a { color: var(--accent); border-bottom: 1px solid transparent; }
.credits-list a:hover { border-color: var(--accent); }
.credits-note { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 760px; }
.credits-note + .credits-note { margin-top: 16px; }

/* ---------- 404 ---------- */
.not-found { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 26px; padding: 120px var(--gutter) 60px; position: relative; overflow: hidden; }
.not-found .nf-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 26vw, 320px); line-height: 0.9; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { color: var(--muted); max-width: 420px; }

/* ---------- Reveal helpers ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); }
.no-js [data-reveal] { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
.img-parallax { overflow: hidden; }
.img-parallax img, .img-parallax video { scale: 1.15; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .engines { grid-template-columns: repeat(2, 1fr); }
  .stage { grid-template-columns: 1fr; }
  .stage-panel { position: static; }
  .service-row { grid-template-columns: 60px 1fr 30px; }
  .service-desc { grid-column: 2; grid-row: 2; max-width: 560px; margin-top: 10px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { height: 72px; }
  .hero-tag { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-scroll { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .editorial { grid-template-columns: 1fr; }
  .editorial .sticky-col { position: static; }
  .principles { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-preview { display: none; }
  .credits-list li { grid-template-columns: 1fr; gap: 6px; }
  .reel { aspect-ratio: 16/10; }
  .footer-word { white-space: normal; }
}
@media (max-width: 480px) {
  .engines { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .model-tab { min-width: 140px; padding: 18px 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  .grain { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
}
