/* =========================================================
   Volks Mechanical — v2 "Decoded"
   Dark, red, engineered. Archivo (variable width) + JetBrains Mono.
   ========================================================= */

:root {
  --bg: #070708;
  --bg-2: #0d0d0f;
  --bg-3: #141417;
  --ink: #f3f2ef;
  --mute: #8d8f95;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --red: #e2192f;
  --red-hot: #ff2a3f;
  --red-deep: #7a0716;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --hdr: 76px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Archivo', system-ui, -apple-system, Segoe UI, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.red { color: var(--red); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--red); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

/* ---------- WebGL + grain ---------- */
#gl {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.gl-ready #gl { opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .055;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* No WebGL: a cinematic photo fallback in the hero */
.no-webgl .hero { background: linear-gradient(90deg, var(--bg) 35%, rgba(7,7,8,.4)), url('../img/huracan-cabin.jpg') right center / cover no-repeat; }
.no-webgl .anatomy { height: auto; }
.no-webgl .anatomy-sticky { position: relative; height: auto; padding: 120px 0; }
.no-webgl .rev, .no-webgl .labels { display: none; }

main, .foot { position: relative; z-index: 2; }

/* ---------- Ignition intro ---------- */
.ignition {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease-io), visibility 0s 1s;
  clip-path: inset(0 0 0 0);
}
.ignition.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.ign-inner { width: min(320px, 70vw); text-align: center; }
.ign-key { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; animation: keyturn 1.2s var(--ease) forwards; }
.ign-key span { width: 4px; height: 26px; background: var(--red); border-radius: 2px; box-shadow: 0 0 18px var(--red); }
@keyframes keyturn { 0%{transform:rotate(-90deg)} 70%{transform:rotate(12deg)} 100%{transform:rotate(0)} }
.ign-label { font-size: 12px; text-transform: uppercase; letter-spacing: .3em; color: var(--mute); margin: 0 0 12px; }
.ign-label b { color: var(--ink); font-weight: 500; }
.ign-bar { height: 2px; background: var(--line); overflow: hidden; }
.ign-bar i { display: block; height: 100%; width: 0; background: var(--red); box-shadow: 0 0 12px var(--red); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--hdr);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.hdr.scrolled { background: rgba(7,7,8,.62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.hdr.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(360deg); }
.brand-word { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; font-stretch: 112%; font-weight: 500; }
.brand-word b { font-weight: 850; }
.nav { display: flex; gap: 6px; }
.nav a { font-size: 14px; padding: 8px 14px; border-radius: 99px; color: var(--mute); transition: color .25s, background .25s; }
.nav a:hover, .nav a.on { color: var(--ink); background: rgba(255,255,255,.06); }
.hdr-cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 650; font-size: 14px; transition: background .25s, color .25s; }
.hdr-cta i { font-style: normal; transition: transform .3s var(--ease); }
.hdr-cta:hover { background: var(--red); color: #fff; }
.hdr-cta:hover i { transform: translateX(4px); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--hdr) + 24px) var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path .7s var(--ease-io);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 38px); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(34px, 10vw, 56px); font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 1.1; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.menu nav a small { font-family: var(--mono); font-size: 12px; color: var(--red); font-weight: 500; width: 28px; }
.menu-call { font-family: var(--mono); font-size: 20px; color: var(--red); }

/* ---------- HUD (instrument cluster) ---------- */
.hud {
  position: fixed; left: var(--pad); bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 12px; pointer-events: none;
  padding: 6px 18px 6px 8px; border-radius: 99px; background: rgba(7,7,8,.66); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.ready .hud { opacity: 1; transform: none; }
.tach { width: 60px; height: 60px; overflow: visible; }
.tach text { display: none; }
.tach text { font-family: var(--mono); font-size: 11px; fill: var(--mute); }
#tachNeedle { transform-origin: 100px 100px; }
.hud-read { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 14px; }
.hud-shift { grid-column: 1 / -1; }
.hud-gear { display: flex; align-items: baseline; gap: 8px; }
.hud-gear-l { font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: .2em; }
.hud-gear b { font-size: 26px; font-weight: 850; font-stretch: 125%; line-height: 1; }
.hud-rpm { font-size: 13px; color: var(--mute); }
.hud-rpm b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; margin-right: 6px; }
.hud-shift { font-size: 11px; color: var(--red); letter-spacing: .2em; text-transform: uppercase; opacity: 0; }
.redline .hud-shift { opacity: 1; animation: blink .18s steps(2) infinite; }
.redline .hud-gear b { color: var(--red); }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Gear rail ---------- */
.rail {
  position: fixed; right: calc(var(--pad) - 6px); top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transition: opacity .8s var(--ease) .2s;
}
.ready .rail { opacity: 1; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 26px; }
.rail span { font-family: var(--mono); font-size: 11px; width: 26px; text-align: center; color: var(--mute); transition: color .3s, transform .3s var(--ease); }
.rail em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink); opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease); text-transform: uppercase; letter-spacing: .12em; }
.rail a:hover em, .rail a.on em { opacity: 1; transform: none; }
.rail a.on span { color: #fff; background: var(--red); border-radius: 4px; transform: scale(1.1); box-shadow: 0 0 18px color-mix(in srgb, var(--red) 60%, transparent); }

/* ---------- 3D labels ---------- */
.labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.lbl { position: absolute; left: 0; top: 0; will-change: transform; }
.lbl i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent), 0 0 20px var(--red); transform: scale(0); transition: transform .5s var(--ease); }
.lbl span {
  position: absolute; left: 22px; top: -64px; width: max-content; max-width: 220px;
  font-family: var(--mono); font-size: 11px; color: var(--mute); line-height: 1.5;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(7,7,8,.72); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.lbl span::before { content: ""; position: absolute; left: -22px; top: 100%; width: 22px; height: 1px; background: var(--line-2); transform-origin: right; transform: rotate(-40deg); }
.lbl span b { display: block; font-family: var(--sans); font-size: 14px; color: var(--ink); font-weight: 700; letter-spacing: 0; }
.lbl-l span { left: auto; right: 22px; }
.lbl-l span::before { left: 100%; transform-origin: left; transform: rotate(40deg); }
.lbl.on i { transform: scale(1); }
.lbl.on span { opacity: 1; transform: none; }

/* ---------- Typography ---------- */
.eyebrow { font-size: 12px; color: var(--red); text-transform: uppercase; letter-spacing: .22em; margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red); }
.h2 { font-size: clamp(40px, 6.2vw, 104px); line-height: .9; font-weight: 850; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 28px; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: #c4c5c9; max-width: 54ch; margin: 0 0 24px; }
.lead b { color: var(--ink); font-weight: 650; }

/* split-word reveal */
.split .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.split .sw > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.in .sw > span { transform: none; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 28px; border-radius: 99px; font-weight: 650; font-size: 16px; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease); }
.btn i { font-style: normal; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--red) 80%, transparent); }
.btn-red::before { background: var(--red-hot); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); font-family: var(--mono); font-weight: 500; }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--bg); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr) + 30px) var(--pad) 170px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 72% 55%, color-mix(in srgb, var(--red) 16%, transparent), transparent 70%); pointer-events: none; }
.hero-copy { max-width: 700px; position: relative; z-index: 2; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--mute); display: flex; align-items: center; gap: 12px; margin: 0 0 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 70%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--red) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 0%, transparent); } }
.hero-title { margin: 0 0 30px; font-size: clamp(60px, 8.4vw, 150px); line-height: .84; font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero-title .w { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.ready .hero-title .w { transform: none; }
.hero-title .line:nth-child(1) .w:nth-child(2) { transition-delay: .06s; }
.hero-title .line:nth-child(1) .w:nth-child(3) { transition-delay: .12s; }
.hero-title .line:nth-child(2) .w { transition-delay: .2s; }
.hero-title .amp { color: var(--red); font-weight: 300; font-stretch: 62%; }
@keyframes decode { to { clip-path: inset(0 0 0 0); } }
.hero-sub { font-size: clamp(17px, 1.4vw, 21px); color: #c4c5c9; max-width: 44ch; margin: 0 0 38px; }
.hero-sub b { color: var(--ink); font-weight: 650; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.ready .hero .reveal { opacity: 1; transform: none; }
.hero .reveal:nth-of-type(1) { transition-delay: .1s; }
.hero-sub.reveal { transition-delay: .55s; }
.hero-ctas.reveal { transition-delay: .7s; }

.hero-meta { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; display: flex; justify-content: flex-end; align-items: center; gap: 32px; padding-right: 60px; }
.g-badge { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(7,7,8,.5); backdrop-filter: blur(8px); transition: border-color .3s; }
.g-badge:hover { border-color: var(--red); }
.g-badge b { font-size: 20px; font-weight: 850; font-stretch: 120%; }
.stars { color: #ffb400; letter-spacing: 2px; font-size: 14px; }
.g-badge small { font-family: var(--mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.scroll-hint { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--mute); display: flex; align-items: center; gap: 12px; margin: 0; }
.scroll-hint span { width: 1px; height: 38px; background: linear-gradient(var(--red), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Hold-to-rev button */
.rev { position: absolute; right: clamp(80px, 9vw, 150px); top: calc(var(--hdr) + 7vh); z-index: 3; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rev-ring { position: absolute; inset: 0; }
.rev-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rev-ring circle { fill: rgba(7,7,8,.45); stroke: var(--line-2); stroke-width: 1.5; }
.rev-ring .rev-prog { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 289; stroke-dashoffset: 289; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--red)); }
.rev-txt { position: relative; font-size: 10.5px; line-height: 1.35; text-transform: uppercase; letter-spacing: .2em; text-align: center; transition: transform .2s; }
.rev:active .rev-txt, .rev.held .rev-txt { transform: scale(.92); color: var(--red-hot); }
.rev::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: var(--red); color: #fff; padding: 16px 0; transform: rotate(-1.4deg) scale(1.03); margin: 10px 0 0; }
.ticker-track { display: flex; gap: 28px; width: max-content; animation: tick 38s linear infinite; font-size: clamp(18px, 2vw, 26px); font-weight: 800; font-stretch: 120%; text-transform: uppercase; white-space: nowrap; }
.ticker i { font-style: normal; opacity: .6; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- D2 ANATOMY ---------- */
.anatomy { position: relative; height: 340vh; }
.anatomy-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: flex-end; padding: var(--hdr) var(--pad) 40px; }
.anatomy-copy { width: min(480px, 38vw); margin-right: 50px; padding: 34px; border-radius: 20px; background: linear-gradient(180deg, rgba(13,13,15,.78), rgba(13,13,15,.55)); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.anatomy-copy .h2 { font-size: clamp(36px, 4.4vw, 70px); }
.anatomy-stats { list-style: none; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.anatomy-stats b { display: block; font-size: 46px; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--ink); }
.anatomy-stats span { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.4; margin-top: 8px; }

/* ---------- Panels (opaque sheets that slide over the engine) ---------- */
.panel { background: var(--bg); position: relative; padding: clamp(96px, 12vw, 180px) 0; border-radius: 34px 34px 0 0; margin-top: -34px; box-shadow: 0 -40px 80px rgba(0,0,0,.6); }
.panel + .panel, .work + .panel { border-top: 1px solid var(--line); }

/* ---------- D3 DIAGNOSE ---------- */
.diag-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.diag-pick { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .18em; margin: 32px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 12px 18px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 550; transition: background .25s, border-color .25s, color .25s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.term { border-radius: 16px; overflow: hidden; background: #0a0b0c; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--red) 35%, transparent), 0 0 0 1px rgba(0,0,0,.6); position: relative; }
.term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #111214; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2b2f; }
.term-bar i:first-child { background: var(--red); }
.term-bar span { font-size: 12px; color: var(--mute); margin-left: 10px; }
.term-bar em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--mute); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 7px; text-transform: uppercase; letter-spacing: .12em; }
.term-body { margin: 0; padding: 22px 22px 18px; min-height: 380px; font-size: 13.5px; line-height: 1.75; color: #b9bcc2; white-space: pre-wrap; word-break: break-word; }
.term-body .c-ok { color: #3ddc84; }
.term-body .c-red { color: var(--red-hot); }
.term-body .c-w { color: #fff; }
.term-body .c-m { color: #6b6e75; }
.term-body .cur { display: inline-block; width: 8px; height: 1.1em; background: var(--red); vertical-align: text-bottom; animation: blink .9s steps(2) infinite; }
.term-foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--mute); }
#termStatus { color: #3ddc84; }

/* ---------- D4 SERVICES ---------- */
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.svc.reveal { opacity: 1; transform: none; }
.svc.reveal > * { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: inherit; }
.svc.reveal.in > * { opacity: 1; transform: none; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.svc { position: relative; background: var(--bg); padding: 34px 28px 40px; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; transition: background .4s; }
.svc::before { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--red) 28%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; }
.svc:hover::before { opacity: 1; }
.svc-n { font-size: 12px; color: var(--red); margin-bottom: auto; padding-bottom: 50px; }
.svc h3 { font-size: 23px; line-height: 1.05; font-weight: 800; font-stretch: 112%; text-transform: uppercase; margin: 0 0 12px; }
.svc p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; transition: color .3s; }
.svc:hover p { color: #cfd0d4; }
.svc-xl { grid-column: span 2; grid-row: span 2; justify-content: flex-end; background: linear-gradient(160deg, color-mix(in srgb, var(--red) 10%, #0d0d0f), var(--bg) 60%); }
.svc-xl h3 { font-size: clamp(38px, 4vw, 64px); font-stretch: 125%; }
.svc-xl p { font-size: 17px; max-width: 40ch; }
.svc-viz { position: absolute; left: 0; right: 0; top: 34%; height: 90px; }
.svc-viz svg { width: 100%; height: 100%; }
.wave { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; filter: drop-shadow(0 0 6px var(--red)); animation: ecg 3.2s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes ecg { to { stroke-dashoffset: -600; } }

/* ---------- D5 WORK ---------- */
.work { position: relative; background: var(--bg-2); }
.work-pin { overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr) + 10px) 0 110px; }
.work-head { display: block; width: 100%; margin: 0 auto 36px; }
.work-head .h2 { margin: 0; }
.work-track { display: flex; gap: 22px; padding: 0 var(--pad); width: max-content; align-items: stretch; }
.shot { position: relative; margin: 0; width: clamp(300px, 46vw, 720px); height: min(54vh, 520px); border-radius: 20px; overflow: hidden; flex: none; background: #111; }
.shot-tall { width: clamp(260px, 30vw, 440px); }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); filter: saturate(.9) contrast(1.05); }
.shot:hover img { transform: scale(1.04); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85)); pointer-events: none; }
.shot figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; line-height: 1.35; max-width: 36ch; }
.shot figcaption span { display: block; font-size: 11px; color: var(--red-hot); text-transform: uppercase; letter-spacing: .18em; margin-bottom: 8px; font-weight: 500; }
.shot-end { width: clamp(260px, 26vw, 380px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 40px; background: var(--red); }
.shot-end::after { display: none; }
.shot-end p { font-size: 13px; text-transform: uppercase; letter-spacing: .2em; margin: 0; }
.shot-end .btn-red { background: var(--bg); box-shadow: none; }
.shot-end .btn-red::before { background: #000; }

/* ---------- D6 REVIEWS ---------- */
.rev-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.score { display: grid; justify-items: end; text-align: right; }
.score b { font-size: clamp(90px, 12vw, 190px); line-height: .8; font-weight: 900; font-stretch: 125%; background: linear-gradient(180deg, #fff, #6f7177); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score .stars { font-size: 22px; margin: 14px 0 6px; }
.score small { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .14em; transition: color .3s; }
.score:hover small { color: var(--red-hot); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.q { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: border-color .3s, transform .5s var(--ease); }
.q:hover { border-color: var(--line-2); transform: translateY(-4px); }
.q p { margin: 0; font-size: 18px; line-height: 1.45; color: #dcdde0; }
.q footer { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.q-big { grid-column: span 2; grid-row: span 2; background: linear-gradient(140deg, color-mix(in srgb, var(--red) 10%, #0d0d0f), var(--bg-2) 70%); border-color: color-mix(in srgb, var(--red) 30%, transparent); position: relative; overflow: hidden; }
.q-big::before { content: "“"; position: absolute; right: 20px; top: -40px; font-size: 300px; line-height: 1; color: var(--red); opacity: .15; font-weight: 900; }
.q-big p { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.18; font-weight: 600; font-stretch: 105%; color: var(--ink); letter-spacing: -.01em; }
.compare { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.cmp-col { padding: 32px 30px; border-right: 1px solid var(--line); }
.cmp-col:last-child { border: 0; }
.cmp-col h3 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--mute); margin: 0 0 20px; }
.cmp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cmp-col li { font-size: 17px; color: var(--mute); padding-left: 24px; position: relative; }
.cmp-col li::before { content: "–"; position: absolute; left: 0; color: var(--line-2); }
.cmp-us { background: var(--red); }
.cmp-us h3 { color: rgba(255,255,255,.8); }
.cmp-us li { color: #fff; font-weight: 600; }
.cmp-us li::before { content: "✓"; color: #fff; }

/* ---------- P BOOK ---------- */
.book { position: relative; padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.book::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,7,8,.2), rgba(7,7,8,.75) 46%, var(--bg) 70%); pointer-events: none; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.book-copy { padding-top: 10px; }
.book-copy .lead { text-shadow: 0 2px 20px #000; }
.facts { margin: 44px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); background: rgba(7,7,8,.4); }
.facts dt { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .18em; padding-top: 4px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 550; }
.facts a { transition: color .25s; } .facts a:hover { color: var(--red-hot); }
.form { padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: rgba(13,13,15,.86); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; gap: 16px; box-shadow: 0 50px 120px -40px color-mix(in srgb, var(--red) 35%, transparent); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label > span, .pills legend { display: block; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 8px; }
.form input:not([type=radio]), .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(255,255,255,.035); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color .25s, background .25s; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #5d5f65; }
.form input:focus, .form textarea:focus { border-color: var(--red); background: color-mix(in srgb, var(--red) 5%, transparent); }
.form .invalid { border-color: var(--red-hot) !important; }
.pills { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { width: 100%; padding: 0; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills label span { display: block; margin: 0; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-family: var(--sans); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); transition: background .2s, border-color .2s; }
.pills input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--red-hot); outline-offset: 2px; }
.f-status { margin: 0; font-size: 13px; min-height: 1.4em; color: var(--mute); }
.f-status.ok { color: #3ddc84; } .f-status.err { color: var(--red-hot); }

/* ---------- Footer ---------- */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding-top: 70px; overflow: hidden; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-tag { max-width: 34ch; font-size: 20px; line-height: 1.4; margin: 0; color: #c4c5c9; }
.foot-links { display: grid; gap: 10px; font-size: 14px; }
.foot-links a { color: var(--mute); transition: color .25s; } .foot-links a:hover { color: var(--ink); }
.foot-word { font-size: 20.5vw; line-height: .78; font-weight: 900; font-stretch: 125%; letter-spacing: -.04em; text-align: center; margin: 60px 0 0; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; user-select: none; }
.foot-word span { display: block; font-size: .36em; letter-spacing: .04em; -webkit-text-stroke: 0; color: var(--red); line-height: 1; margin-top: .1em; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 30px; padding-bottom: 30px; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .rail { display: none; }
}
@media (max-width: 820px) {
  :root { --hdr: 66px; }
  body { font-size: 16px; }
  .hdr-cta { display: none; }
  .burger { display: block; }
  .brand-word { font-size: 13px; }
  .hero { justify-content: flex-start; padding-top: calc(var(--hdr) + 36px); padding-bottom: 150px; }
  .hero::after { background: radial-gradient(80% 50% at 50% 80%, color-mix(in srgb, var(--red) 20%, transparent), transparent 70%); }
  .hero-meta { justify-content: space-between; padding-right: 0; bottom: 92px; }
  .scroll-hint { display: none; }
  .rev { right: var(--pad); top: auto; bottom: 150px; width: 84px; height: 84px; }
  .hud { left: 50%; transform: translateX(-50%) translateY(20px); bottom: 14px; }
  .ready .hud { transform: translateX(-50%); }
  .tach { width: 46px; height: 46px; }
  .hud-gear b { font-size: 20px; }
  .anatomy { height: 300vh; }
  .anatomy-sticky { align-items: flex-end; justify-content: center; padding-bottom: 90px; }
  .anatomy-copy { width: 100%; margin: 0; padding: 22px; }
  .anatomy-copy .lead { font-size: 15px; margin-bottom: 0; }
  .anatomy-stats { display: none; }
  .labels { display: none; }
  .hud { transition: opacity .4s; }
  .hud-dim .hud { opacity: 0; }
  .work-pin { min-height: 0; padding: 90px 0; }
  .diag-grid, .book-grid { grid-template-columns: 1fr; }
  .term-body { min-height: 330px; font-size: 12px; padding: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-xl { grid-column: auto; grid-row: auto; min-height: 360px; }
  .svc { min-height: 0; }
  .svc-n { padding-bottom: 28px; }
  .work-track { overflow-x: auto; scroll-snap-type: x mandatory; width: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .work-track::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; width: 82vw; height: 62vh; }
  .shot-tall { width: 72vw; }
  .quotes { grid-template-columns: 1fr; }
  .q-big { grid-column: auto; grid-row: auto; }
  .score { justify-items: start; text-align: left; }
  .compare { grid-template-columns: 1fr; }
  .cmp-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .f-row { grid-template-columns: 1fr; }
  .book::before { background: linear-gradient(180deg, rgba(7,7,8,.3), var(--bg) 40%); }
  .foot { padding-bottom: 80px; }
}

.lbl-r span { left: 22px; right: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  }

/* =========================================================
   v3 — editorial refinement (serif display + Geist)
   ========================================================= */
:root {
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --silver: linear-gradient(100deg, #ffffff 0%, #d6d8de 35%, #8b8f98 62%, #f1f2f4 100%);
}
body { font-family: var(--sans); letter-spacing: -0.006em; }
.mono { letter-spacing: .04em; }

/* Hero headline */
.hero::after { background: radial-gradient(50% 60% at 74% 48%, color-mix(in srgb, var(--red) 10%, transparent), transparent 70%); }
.hero-title { font-family: var(--serif); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: -0.035em; line-height: .86; font-size: clamp(76px, 11.2vw, 190px); margin-bottom: 34px; }
.hero-title .line { padding-bottom: .06em; }
.hero-title .amp { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: normal; color: var(--red); margin: 0 -.02em; }
.hero-title em, .h2 em { font-style: italic; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.decode .sc { font-family: var(--mono); font-style: normal; font-size: .36em; letter-spacing: 0; color: var(--red); -webkit-text-fill-color: var(--red); display: inline-block; width: .62em; text-align: center; vertical-align: .35em; }
.decode .ok { -webkit-text-fill-color: transparent; }
.hero-sub { color: #b9bbc1; font-weight: 300; }
.hero-sub b { font-weight: 500; }
.kicker { letter-spacing: .2em; }

/* Section headings */
.h2 { font-family: var(--serif); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: -0.03em; line-height: .94; font-size: clamp(48px, 6.6vw, 112px); }
.h2 em.red { background: none; color: var(--red); -webkit-text-fill-color: var(--red); }
.anatomy-copy .h2 { font-size: clamp(42px, 4.8vw, 80px); }
.eyebrow { color: #a3a6ad; font-size: 11px; letter-spacing: .24em; }
.eyebrow::before { background: var(--red); width: 30px; }
.lead { font-weight: 300; color: #b9bbc1; }
.lead b { font-weight: 500; }

/* Stats, score, quotes */
.anatomy-stats b { font-family: var(--serif); font-weight: 400; font-stretch: normal; font-size: 64px; letter-spacing: -0.03em; }
.score b { font-family: var(--serif); font-weight: 400; font-style: italic; font-stretch: normal; background: var(--silver); -webkit-background-clip: text; background-clip: text; letter-spacing: -0.04em; }
.q p { font-weight: 300; font-size: 17px; color: #d4d5d9; }
.q-big p { font-family: var(--serif); font-weight: 400; font-stretch: normal; font-size: clamp(30px, 3.1vw, 50px); line-height: 1.08; letter-spacing: -0.015em; }
.q-big::before { font-family: var(--serif); font-weight: 400; opacity: .2; }

/* Services */
.svc h3 { font-family: var(--sans); font-weight: 500; font-stretch: normal; text-transform: none; font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
.svc-xl h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 5.6vw, 92px); letter-spacing: -0.03em; line-height: .9; }
.svc-xl { background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--red) 14%, transparent), transparent 60%), var(--bg); }
.svc p { font-weight: 300; }

/* Ticker: quiet, editorial */
.ticker { background: transparent; color: #75787f; transform: none; margin: 0; padding: 22px 0; border-block: 1px solid var(--line); }
.ticker-track { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: normal; text-transform: none; font-size: clamp(24px, 2.4vw, 36px); gap: 34px; animation-duration: 60s; }
.ticker i { color: var(--red); opacity: 1; }

/* Buttons: white primary, red on hover */
.btn { font-weight: 500; letter-spacing: -0.01em; }
.btn-red { background: var(--ink); color: var(--bg); box-shadow: 0 20px 60px -24px rgba(255,255,255,.35); }
.btn-red::before { background: var(--red); }
.btn-red:hover { color: #fff; }

/* Work end card */
.shot-end { background: var(--bg-3); border: 1px solid var(--line-2); }
.shot-end-t { font-family: var(--serif); font-size: clamp(40px, 3.6vw, 58px); line-height: .95; letter-spacing: -0.03em; margin: 0; }
.shot-end-t em { font-style: italic; color: var(--red); }
.shot-end .btn-red { background: var(--ink); }

/* Compare */
.cmp-col h3 { font-family: var(--mono); }
.cmp-col li { font-weight: 300; }
.cmp-us { background: linear-gradient(170deg, color-mix(in srgb, var(--red) 20%, transparent), color-mix(in srgb, var(--red) 4%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 45%, transparent); }
.cmp-us h3 { color: var(--red-hot); }
.cmp-us li { color: var(--ink); font-weight: 500; }
.cmp-us li::before { color: var(--red); }

/* Menu, brand, HUD, footer */
.menu nav a { font-family: var(--serif); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: -0.02em; }
.brand-word { font-stretch: normal; font-weight: 400; letter-spacing: .18em; font-size: 13px; }
.brand-word b { font-weight: 600; }
.hud-gear b { font-family: var(--mono); font-weight: 500; font-stretch: normal; font-size: 22px; }
.ign-label { font-family: var(--mono); }
.foot-word { font-family: var(--serif); font-weight: 400; font-stretch: normal; font-size: 16vw; letter-spacing: -0.04em; line-height: .9; color: rgba(255,255,255,.07); -webkit-text-stroke: 0; margin-top: 40px; }
.foot-word em { font-style: italic; color: color-mix(in srgb, var(--red) 35%, transparent); }
.form { background: rgba(12,12,14,.88); }
.lbl span b { font-family: var(--sans); font-weight: 500; }
@media (max-width: 820px) {
  .hero-title { font-size: clamp(64px, 19vw, 110px); }
  .menu nav a { font-size: 46px; }
  .h2 { font-size: clamp(44px, 12vw, 70px); }
}

.hero-copy { max-width: 860px; }
.hero-title { font-size: clamp(72px, 10.2vw, 176px); }
.hero-sub { max-width: 46ch; }
.book::before { background: linear-gradient(90deg, rgba(7,7,8,.05), rgba(7,7,8,.55) 40%, rgba(7,7,8,.9) 62%); }
.book-copy .h2, .book-copy .lead, .facts { position: relative; }

/* =========================================================
   v4: marque-tuned theme, engine lab, sound, cursor, logo
   ========================================================= */
@property --red { syntax: '<color>'; inherits: true; initial-value: #e2192f; }
:root { --red-hot: color-mix(in srgb, var(--red) 82%, #fff); transition: --red .9s var(--ease); }

/* Logo */
.brand img { height: 40px; width: auto; display: block; }
.ign-logo { width: min(260px, 64vw); height: auto; margin: 0 auto 30px; display: block; animation: ignlogo 1.2s var(--ease) both; }
@keyframes ignlogo { from { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.foot-logo { width: min(440px, 80vw); height: auto; margin-bottom: 26px; display: block; }

/* Hero marque word */
.mq-word { display: inline-block; white-space: nowrap; }
.mq-word .sc, .decode .sc { font-family: var(--mono); font-style: normal; font-size: .36em; letter-spacing: 0; color: var(--red); -webkit-text-fill-color: var(--red); display: inline-block; width: .62em; text-align: center; vertical-align: .35em; }
.hero-title .comma { color: var(--red); font-style: italic; }
.hero-title { font-size: clamp(64px, 9.6vw, 168px); }

/* Marque switcher */
.mq { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 34px; padding: 5px; border: 1px solid var(--line); border-radius: 99px; width: max-content; max-width: 100%; background: rgba(13,13,15,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mq-l { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--mute); padding: 0 12px 0 14px; }
.mq button { position: relative; padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 500; color: #a9abb1; transition: color .3s, background .3s; }
.mq button:hover { color: var(--ink); }
.mq button.on { color: #fff; background: var(--red); box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--red) 80%, transparent); }
.hero .mq.reveal { transition-delay: .85s; }

/* Engine lab card */
.anatomy-copy.lab { width: min(500px, 40vw); }
.mq-lab { margin: 6px 0 26px; width: 100%; justify-content: space-between; }
.mq-lab button { flex: 1; padding: 10px 6px; font-size: 13.5px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 26px; border-top: 1px solid var(--line); }
.spec div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.spec div:nth-child(even) { padding-left: 16px; }
.spec dt { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--mute); margin-bottom: 6px; }
.spec dd { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.spec dd.mono { font-family: var(--mono); font-size: 16px; letter-spacing: .06em; color: var(--red); padding-top: 6px; }
#spEg { font-family: var(--sans); font-size: 14px; line-height: 1.35; color: #c4c5c9; }

/* Sound buttons */
.snd-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.snd-bars i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; transition: height .2s; }
.on .snd-bars i { animation: eq .9s ease-in-out infinite; background: var(--red); }
.on .snd-bars i:nth-child(2) { animation-delay: -.3s; } .on .snd-bars i:nth-child(3) { animation-delay: -.6s; } .on .snd-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
.btn-snd { height: 52px; font-family: var(--sans); gap: 12px; }
.btn-snd.on { border-color: var(--red); }
.hud .snd { pointer-events: auto; display: flex; align-items: center; gap: 8px; margin-left: 4px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--mute); transition: color .3s, border-color .3s; }
.hud .snd:hover, .hud .snd.on { color: var(--ink); border-color: var(--red); }
.snd-t { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.hud-gear b { color: var(--ink); }

/* Cursor */
.cur { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .3s; }
.has-cur .cur.on { opacity: 1; }
.cur-dot, .cur-ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); }
.cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,.4); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
.cur.hov .cur-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.cur.img .cur-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.cur.img .cur-ring::after { content: "DRAG"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #fff; }

/* Gallery: horizontal on every screen */
.work-pin { min-height: 100vh; min-height: 100svh; }
.work-track { will-change: transform; }

@media (max-width: 1100px) {
  .anatomy-copy.lab { width: min(460px, 46vw); margin-right: 0; }
}
@media (max-width: 820px) {
  .brand img { height: 32px; }
  .hero-title { font-size: clamp(50px, 15vw, 100px); }
  .mq { margin-top: 24px; width: 100%; justify-content: space-between; }
  .mq-l { display: none; }
  .mq button { flex: 1; padding: 9px 4px; font-size: 13px; }
  .hero { padding-bottom: 170px; }
  .anatomy-copy.lab { width: 100%; padding: 18px; }
  .anatomy-copy.lab .h2 { font-size: 36px; margin-bottom: 12px; }
  .lab-lead { display: none; }
  .mq-lab { margin: 0 0 14px; }
  .spec { margin-bottom: 14px; }
  .spec div { padding: 10px 0; }
  .spec dd { font-size: 22px; }
  .spec div:nth-child(4), .spec div:nth-child(3) { display: none; }
  .btn-snd { height: 46px; width: 100%; justify-content: center; }
  .anatomy-sticky { padding-bottom: 24px; }
  .hud .snd .snd-t { display: none; }
  /* horizontal gallery on phones too */
  .work-pin { min-height: 100svh; padding: calc(var(--hdr) + 6px) 0 96px; justify-content: center; }
  .work-head { margin-bottom: 22px; }
  .work-track { overflow: visible; scroll-snap-type: none; width: max-content; padding-bottom: 0; }
  .shot { width: 80vw; height: 52svh; }
  .shot-tall { width: 64vw; }
  .shot-end { width: 70vw; }
  .foot-logo { width: 70vw; }
}
@media (min-width: 1800px) {
  :root { --wrap: 1560px; }
  body { font-size: 18px; }
  .shot { width: min(46vw, 900px); height: min(60vh, 680px); }
}

.brand img { height: 50px; }
.spec dd.mono { font-size: 14px; letter-spacing: .02em; }
@media (max-width: 820px) {
  .brand img { height: 38px; }
  .rev { top: calc(var(--hdr) + 14px); bottom: auto; right: var(--pad); width: 72px; height: 72px; }
  .rev-txt { font-size: 9px; }
  .kicker { padding-right: 84px; }
}

@media (min-width: 1800px) {
  .hero-copy { max-width: 1100px; }
  .hero-title { font-size: clamp(168px, 9.4vw, 260px); }
  .hero-sub, .lead { font-size: 22px; }
  .nav a { font-size: 16px; }
  .brand img { height: 60px; }
  .h2 { font-size: clamp(100px, 6.4vw, 170px); }
  .anatomy-copy.lab { width: min(620px, 32vw); }
  .hud { transform-origin: left bottom; scale: 1.2; }
}
.hero-title .w { white-space: nowrap; }
@media (min-width: 1800px) { .hero-copy { max-width: 1500px; } }

/* Film strip (auto-glide + drag/swipe) */
.work { padding: clamp(90px, 10vw, 150px) 0; overflow: hidden; }
.work-pin { min-height: 0 !important; padding: 0 !important; display: block; overflow: visible; }
.work-head { margin-bottom: clamp(28px, 4vw, 50px) !important; }
.work-track { display: flex; gap: 22px; width: max-content !important; padding: 0 0 0 var(--pad); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: visible !important; }
.work-track.dragging { cursor: grabbing; }
.work-track img { pointer-events: none; transition: none; }
.shot { height: min(62vh, 560px); }
.shot:hover img { transform: none; }
.work-hint { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .2em; }
.work-hint i { width: 60px; height: 1px; background: linear-gradient(90deg, var(--red), transparent); }
@media (max-width: 820px) {
  .work { padding: 84px 0; }
  .work-track { gap: 14px; }
  .shot { width: 78vw; height: 56svh; }
  .shot-tall { width: 62vw; }
  .shot-end { width: 66vw; }
}

/* "Rami" glows in the chosen brand colour (works in Safari/Chrome/Firefox) */
.rami {
  position: relative; display: inline-block; font-weight: 600; font-style: italic; padding: 0 .05em;
  color: color-mix(in srgb, var(--red) 55%, #fff);
  text-shadow: 0 0 4px var(--red), 0 0 12px var(--red), 0 0 26px var(--red), 0 0 48px color-mix(in srgb, var(--red) 60%, transparent);
  animation: rami-glow 2.2s ease-in-out infinite;
}
.rami::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -.06em; height: 2px; border-radius: 2px;
  background: var(--red); box-shadow: 0 0 10px var(--red), 0 0 22px var(--red);
}
@keyframes rami-glow {
  0%, 100% { text-shadow: 0 0 3px var(--red), 0 0 10px var(--red), 0 0 22px color-mix(in srgb, var(--red) 70%, transparent), 0 0 40px color-mix(in srgb, var(--red) 40%, transparent); }
  50% { text-shadow: 0 0 6px var(--red), 0 0 16px var(--red), 0 0 34px var(--red), 0 0 64px color-mix(in srgb, var(--red) 70%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .rami { animation: none; } }

/* Paired service cards split by a brand-coloured diagonal */
.svc-pair { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; padding: 28px; min-height: 320px; }
.svc-pair .half { position: relative; z-index: 1; max-width: 64%; }
.svc-pair .half-a { align-self: start; }
.svc-pair .half-b { align-self: end; justify-self: end; text-align: right; }
.svc-pair .svc-n { display: block; margin: 0 0 8px; padding: 0; }
.svc-pair h3 { font-size: 19px; margin-bottom: 6px; }
.svc-pair p { font-size: 14px; line-height: 1.45; }
.svc-diag { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); overflow: visible; pointer-events: none; z-index: 0; }
.svc-diag line { stroke: var(--red); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .95; }
.svc-diag { filter: drop-shadow(0 0 5px var(--red)); clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease) .25s, filter .3s; }
.svc-pair.in .svc-diag { clip-path: inset(-20px -20px -20px -20px); }
.svc-pair:hover .svc-diag { filter: drop-shadow(0 0 8px var(--red)) drop-shadow(0 0 16px var(--red)); }
@media (max-width: 820px) {
  .svc-pair { min-height: 0; aspect-ratio: 1.25 / 1; padding: 20px; }
  .svc-pair .half { max-width: 68%; }
  .svc-pair h3 { font-size: 17px; }
  .svc-pair p { font-size: 13px; }
  .svc-diag { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
}
@media (max-width: 380px) {
  .svc-pair { aspect-ratio: auto; min-height: 270px; }
  .svc-pair p { display: none; }
}
.svc-pair .half { max-width: 56%; }
.svc-pair .half-a { padding-right: 4px; }
@media (max-width: 820px) { .svc-pair .half { max-width: 54%; } .svc-pair { aspect-ratio: 1.1 / 1; } }
