/* TORRQE — cinematic site. Black stage, paper type, one orange. */
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --black: #050505; --stage: #0a0a0b; --graphite: #141516; --line: rgba(241, 240, 234, 0.12); --line-2: rgba(241, 240, 234, 0.22);
  --paper: #f1f0ea; --mute: #9a9a96; --dim: #6b6b68; --orange: #ff3d00; --orange-2: #ff6a33;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --pad: clamp(20px, 4vw, 64px); --max: 1440px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); color: var(--paper); -webkit-text-size-adjust: 100%; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "ss01", "cv11"; line-height: 1.5; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: var(--black); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--orange); }
.eyebrow.no-rule::before { display: none; }
.display { font-weight: 640; letter-spacing: -0.045em; line-height: 0.92; font-size: clamp(52px, 9.6vw, 168px); }
.h1 { font-weight: 620; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(42px, 6.6vw, 112px); }
.h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.0; font-size: clamp(34px, 4.6vw, 76px); }
.h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(22px, 2vw, 30px); }
.lede { font-size: clamp(17px, 1.45vw, 21px); color: #c9c8c2; max-width: 46ch; line-height: 1.55; }
.small { font-size: 14px; color: var(--mute); }
.mono { font-family: var(--mono); }
.o { color: var(--orange); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); transition: background 0.5s var(--ease), backdrop-filter 0.5s, transform 0.6s var(--ease); }
.hdr.solid { background: rgba(5, 5, 5, 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.hdr.hide { transform: translateY(-100%); }
.brand { font-weight: 800; letter-spacing: 0.26em; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.brand i { width: 9px; height: 9px; background: var(--orange); display: inline-block; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.nav { display: flex; gap: 30px; font-size: 14px; color: #d8d7d1; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-size: 14px; font-weight: 560; border: 1px solid var(--line-2); position: relative; overflow: hidden; isolation: isolate; transition: color 0.4s var(--ease), border-color 0.4s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--orange); transform: translateY(101%); transition: transform 0.5s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--orange); color: var(--black); }
.btn.solid { background: var(--orange); border-color: var(--orange); color: var(--black); }
.btn.solid::before { background: var(--paper); }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--paper); transition: transform 0.4s var(--ease), opacity 0.3s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 24px; }
.open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.curtain i { background: var(--black); transform-origin: top; transform: scaleY(1); transition: transform 0.75s var(--ease); }
.curtain i:nth-child(2) { transition-delay: 0.05s; } .curtain i:nth-child(3) { transition-delay: 0.1s; } .curtain i:nth-child(4) { transition-delay: 0.15s; } .curtain i:nth-child(5) { transition-delay: 0.2s; }
.curtain i:first-child { box-shadow: inset 0 -3px 0 var(--orange); }
.loaded .curtain i { transform: scaleY(0); transform-origin: bottom; }
.leaving .curtain i { transform: scaleY(1); transform-origin: top; transition-duration: 0.5s; }

/* ---------- reveal ---------- */
[data-r] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-r].in { opacity: 1; transform: none; }
[data-r="fade"] { transform: none; }
[data-r="scale"] { transform: scale(1.06); }
[data-r="left"] { transform: translateX(-40px); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d0, 0ms)); }
.split.in .w > span { transform: none; }
.rule { height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.rule.in { transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); opacity: 0; transition: opacity 2s var(--ease), transform 7s var(--ease); }
.loaded .hero-film { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,0) 50%, rgba(5,5,5,0.92) 100%), linear-gradient(90deg, rgba(5,5,5,0.7), rgba(5,5,5,0) 60%); }
.hero-in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(36px, 7vh, 84px); }
.hero .display { margin: 22px 0 28px; max-width: 12ch; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue { position: absolute; z-index: 3; right: var(--pad); bottom: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--mute); writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--orange), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 18px 0; background: var(--stage); }
.ticker-track { display: inline-flex; gap: 56px; animation: tick 38s linear infinite; padding-left: 56px; }
.ticker span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #bdbcb6; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: ""; width: 6px; height: 6px; background: var(--orange); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.sec { padding: clamp(96px, 16vh, 200px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 8vh, 96px); }
.sec-head .lede { justify-self: end; }
.paper { background: var(--paper); color: var(--black); }
.paper .lede { color: #3a3a38; } .paper .eyebrow { color: #5c5c58; } .paper .small { color: #5c5c58; }
.paper .rule { background: rgba(5,5,5,0.14); }

/* ---------- statement ---------- */
.statement { font-weight: 560; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(30px, 4.2vw, 68px); max-width: 22ch; }
.statement .dimw { color: #3c3c3a; transition: color 0.5s var(--ease); }
.statement .dimw.lit { color: var(--paper); }
.paper .statement .dimw { color: #c4c3bc; } .paper .statement .dimw.lit { color: var(--black); }

/* ---------- scrub film ---------- */
.scrub { height: var(--len, 400vh); }
.scrub-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--black); }
.scrub-film, .scrub-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-still { transition: opacity 0.6s; }
.film-live .scrub-still { opacity: 0; }
.scrub-pin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,0.78), rgba(5,5,5,0) 50%); pointer-events: none; }
.scrub-notes { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(48px, 12vh, 140px); width: min(520px, 80vw); }
.scrub-notes > div { position: absolute; bottom: 0; left: 0; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.scrub-notes > div.on { opacity: 1; transform: none; }
.scrub-notes .h3 { margin: 14px 0 10px; }
.scrub-head { position: absolute; z-index: 2; top: clamp(90px, 14vh, 150px); left: var(--pad); }
.scrub-bar { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 28px; height: 1px; background: var(--line); }
.scrub-bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }
.scrub-steps { position: absolute; z-index: 2; right: var(--pad); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--dim); text-align: right; }
.scrub-steps span { transition: color 0.4s; } .scrub-steps span.on { color: var(--paper); }
.scrub-steps span.on::after { content: " ●"; color: var(--orange); }

/* ---------- part labels that follow the film ---------- */
.tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tags svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tags path { fill: none; stroke: rgba(241, 240, 234, 0.55); stroke-width: 1; }
.tags circle { fill: var(--orange); filter: drop-shadow(0 0 6px rgba(255, 61, 0, 0.9)); }
.tag { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.35s; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; padding: 6px 9px; background: rgba(5, 5, 5, 0.78); border: 1px solid rgba(241, 240, 234, 0.18); color: #e8e7e1; will-change: transform; }
.tag b { color: var(--orange); font-weight: 500; margin-left: 6px; }
.mk { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--paper); background: rgba(5, 5, 5, 0.7); border: 1.5px solid var(--orange); box-shadow: 0 0 12px rgba(255, 61, 0, 0.55); opacity: 0; transition: opacity 0.3s, background 0.3s; will-change: transform; }
.mk.hot { background: var(--orange); color: var(--black); }
.legend { list-style: none; display: grid; gap: 2px; font-size: 13px; }
.legend li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); color: #d6d5cf; cursor: default; }
.legend li:hover { color: var(--orange); }
.legend em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.mk-n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--orange); display: grid; place-items: center; font-family: var(--mono); font-size: 9px; }
.legend-box { position: absolute; z-index: 3; right: var(--pad); top: 50%; transform: translateY(-50%); width: min(300px, 30vw); max-height: 70vh; overflow: auto; background: rgba(5, 5, 5, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); padding: 16px 18px; }
.legend-box .eyebrow { margin-bottom: 10px; }

/* ---------- product rail (horizontal scroll driven by vertical) ---------- */
.rail { height: var(--len, 500vh); }
.rail-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.rail-head { padding: 0 var(--pad); margin-bottom: 4vh; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.rail-track { display: flex; gap: 22px; padding: 0 var(--pad); will-change: transform; }
.card { flex: 0 0 auto; width: min(31vw, 520px); background: var(--graphite); border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.5s; }
.card:hover { border-color: rgba(255, 61, 0, 0.6); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b0c; }
.card-media video, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media video { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.card-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--orange); }
.card .small { min-height: 3em; }
.card-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; padding: 6px 9px; background: rgba(5,5,5,0.7); border: 1px solid var(--line); text-transform: uppercase; }
.card-tag.first { background: var(--orange); color: var(--black); border-color: var(--orange); }
.rail-progress { margin: 4vh var(--pad) 0; height: 1px; background: var(--line); position: relative; }
.rail-progress i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- media frames ---------- */
.frame { position: relative; overflow: hidden; background: #0b0b0c; border: 1px solid var(--line); }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame[data-r="scale"] { transform: scale(0.94); opacity: 0; }
.frame[data-r="scale"].in { transform: none; opacity: 1; }
.frame .cap { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #d0cfc9; display: flex; gap: 10px; align-items: center; }
.frame .cap::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulse 1.8s infinite; }
.kb img { animation: kb 22s var(--ease) infinite alternate; transform-origin: var(--kbo, 60% 50%); }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -1%); } }

/* ---------- braking chapter ---------- */
.brake-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.brake-film { aspect-ratio: 16 / 9; }
.compare { display: grid; gap: 0; margin-top: 28px; }
.compare-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); align-items: center; }
.compare-row .bar { grid-column: 1 / -1; height: 4px; background: rgba(241, 240, 234, 0.08); position: relative; }
.compare-row .bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: #77766f; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 160ms); }
.compare-row.us .bar i { background: var(--orange); }
.compare.in .bar i { transform: none; }
.compare-row b { font-weight: 560; } .compare-row .mono { font-size: 13px; color: var(--mute); }

/* ---------- machines (inside) ---------- */
.machines { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.machine { position: relative; overflow: hidden; border: 1px solid var(--line); background: #0b0b0c; }
.machine:nth-child(1) { grid-column: span 7; aspect-ratio: 16 / 10; } .machine:nth-child(2) { grid-column: span 5; }
.machine:nth-child(3) { grid-column: span 5; } .machine:nth-child(4) { grid-column: span 7; aspect-ratio: 16 / 10; }
.machine img, .machine video { width: 100%; height: 100%; object-fit: cover; }
.machine .lab { position: absolute; z-index: 2; left: 20px; top: 18px; right: 20px; display: flex; justify-content: space-between; align-items: baseline; }
.machine .lab b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.machine .lab span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mute); }
.machine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.6), transparent 34%); pointer-events: none; }
.scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 61, 0, 0.16) 48%, rgba(255, 106, 51, 0.5) 50%, transparent 52%); background-size: 240% 100%; animation: scan 6.5s linear infinite; mix-blend-mode: screen; opacity: 0.55; }
@keyframes scan { from { background-position: 140% 0; } to { background-position: -40% 0; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(5,5,5,0.16); }
.step { padding: 34px 32px 40px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid rgba(5,5,5,0.12); }
.step .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--orange); }
.step .h3 { margin: 18px 0 12px; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 350ms); }
.steps.in .step::before { transform: none; }

/* ---------- numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.num { padding: 34px 28px 0 0; }
.num + .num { padding-left: 28px; border-left: 1px solid var(--line); }
.num b { display: block; font-size: clamp(44px, 5.4vw, 88px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.num b small { font-size: 0.4em; letter-spacing: -0.02em; color: var(--orange); margin-left: 4px; }

/* ---------- markets ---------- */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.market { background: var(--black); padding: 36px 32px 40px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: background 0.6s var(--ease); }
.market::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(180deg, transparent, rgba(255, 61, 0, 0.12)); transform: translateY(100%); transition: transform 0.8s var(--ease); }
.market:hover::before { transform: none; }
.market .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--orange); }
.market .h3 { margin: 70px 0 12px; position: relative; }
.market p { position: relative; }

/* ---------- careers / team ---------- */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.role { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid rgba(5,5,5,0.14); transition: padding 0.4s var(--ease), color 0.3s; }
.role:hover { padding-left: 12px; color: var(--orange); }
.role span { font-family: var(--mono); font-size: 12px; color: #6b6b67; }

/* ---------- CTA + footer ---------- */
.cta { position: relative; overflow: hidden; min-height: 86svh; display: flex; align-items: center; }
.cta video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(5,5,5,0.3), rgba(5,5,5,0.9)); }
.cta .wrap { position: relative; z-index: 2; }
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot a { color: #c9c8c2; display: block; padding: 4px 0; font-size: 14px; transition: color 0.3s; }
.foot a:hover { color: var(--orange); }
.foot .giant { font-weight: 800; letter-spacing: -0.06em; font-size: clamp(80px, 21vw, 360px); line-height: 0.8; margin-top: 64px; color: transparent; background: linear-gradient(90deg, var(--orange), var(--orange)) 0 0 / var(--fill, 0%) 100% no-repeat, linear-gradient(rgba(241, 240, 234, 0.07), rgba(241, 240, 234, 0.07)); -webkit-background-clip: text; background-clip: text; }

/* ---------- product page ---------- */
.p-hero { min-height: 82svh; display: flex; align-items: flex-end; padding: 140px 0 72px; position: relative; overflow: hidden; }
.p-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.5), rgba(5,5,5,0.2) 40%, rgba(5,5,5,0.95)); }
.p-hero .wrap { position: relative; z-index: 2; }
.p-index { position: sticky; top: 64px; z-index: 20; background: rgba(5,5,5,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.p-index .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; padding-block: 14px; }
.p-index a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; transition: color 0.3s; }
.p-index a.on, .p-index a:hover { color: var(--paper); }
.p-index a.on::before { content: "● "; color: var(--orange); }
.product { padding: clamp(80px, 14vh, 160px) 0; border-bottom: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 88px); align-items: start; }
.product-copy { position: sticky; top: 140px; }
.product-copy .h1 { margin: 18px 0 22px; }
.specs { margin-top: 30px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--mute); } .specs dd { text-align: right; }
.diff { margin-top: 26px; display: grid; gap: 10px; }
.diff li { list-style: none; padding-left: 22px; position: relative; color: #d1d0ca; font-size: 15px; }
.diff li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--orange); }
.product-media { display: grid; gap: 18px; }
.loopframe { aspect-ratio: 16 / 10; }
/* outside -> inside reveal driven by scroll */
.reveal { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: #0b0b0c; }
.reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal .inside { clip-path: inset(0 0 0 calc(100% - var(--p, 0) * 100%)); }
.reveal .seam { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--orange); left: calc(100% - var(--p, 0) * 100%); box-shadow: 0 0 24px rgba(255, 61, 0, 0.8); }
.reveal .lbl { position: absolute; bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; z-index: 2; padding: 5px 8px; background: rgba(5,5,5,0.7); }
.reveal .lbl.l { left: 14px; } .reveal .lbl.r { right: 14px; color: var(--orange); }

/* ---------- contact modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(5,5,5,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: flex-end; animation: fadein 0.4s var(--ease); }
.modal-backdrop[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.contact-modal { width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--paper); color: var(--black); padding: 64px 44px; position: relative; animation: slidein 0.6s var(--ease); }
@keyframes slidein { from { transform: translateX(100%); } }
.modal-close { position: absolute; top: 18px; right: 22px; font-size: 30px; line-height: 1; color: var(--black); }
.contact-modal h2 { font-size: 44px; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 12px; }
.contact-modal .eyebrow { color: #5c5c58; }
.contact-modal p { color: #3a3a38; }
.contact-modal form { display: grid; gap: 16px; margin-top: 28px; }
.contact-modal label { display: grid; gap: 6px; font-size: 13px; font-weight: 560; }
.contact-modal label span { color: var(--orange); }
.contact-modal input, .contact-modal textarea { font: inherit; font-size: 16px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(5,5,5,0.25); background: transparent; outline: none; transition: border-color 0.3s; }
.contact-modal input:focus, .contact-modal textarea:focus { border-color: var(--orange); }
.contact-modal small { color: #6b6b67; }
.form-error { color: #c62800; font-size: 14px; min-height: 1em; }
.modal-submit { justify-content: center; margin-top: 8px; }
body.modal-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav { position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: center; padding: var(--pad); gap: 22px; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease); }
  .open .nav { clip-path: inset(0); }
  .menu-btn { display: block; z-index: 2; }
  .hdr .btn { display: none; }
  .sec-head, .brake-grid, .product-grid { grid-template-columns: 1fr; }
  .sec-head .lede { justify-self: start; }
  .product-copy { position: static; }
  .card { width: 78vw; }
  .machines { grid-template-columns: 1fr; } .machine { grid-column: auto !important; aspect-ratio: 16 / 10 !important; }
  .steps, .markets, .roles, .foot-grid { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid rgba(5,5,5,0.12); }
  .nums { grid-template-columns: 1fr 1fr; } .num:nth-child(3) { padding-left: 0; border-left: 0; }
  .scrub-steps, .scroll-cue { display: none; }
  .tag { font-size: 9px; padding: 4px 6px; }
  .legend-box { top: auto; bottom: 56px; transform: none; left: var(--pad); right: var(--pad); width: auto; max-height: 26vh; }
  .legend { font-size: 12px; }
  .scrub-notes { bottom: auto; top: 84px; }
  .scrub-notes > div { bottom: auto; top: 0; }
  .scrub-head { display: none; }
  .scrub-pin::after { background: linear-gradient(0deg, rgba(5,5,5,0.92), rgba(5,5,5,0) 60%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-r], .split .w > span { opacity: 1 !important; transform: none !important; }
  .curtain { display: none; }
}

/* ---------- markets page rows + machine links ---------- */
.mtag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--orange); }
.market .mtag { position: relative; }
.mrow { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(48px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.mrow.flip .mrow-media { order: 2; }
.mrow-media { aspect-ratio: 16 / 10; }
.mrow-copy .h3 { margin: 14px 0 14px; }
.mrow-copy ul { list-style: none; margin-top: 22px; display: grid; gap: 0; }
.mrow-copy li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); color: #d6d5cf; font-size: 15px; }
a.machine { display: block; color: inherit; text-decoration: none; }
.machine .go { position: absolute; z-index: 2; left: 20px; bottom: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); padding: 8px 12px; border: 1px solid rgba(241, 240, 234, 0.25); background: rgba(5, 5, 5, 0.55); transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s; }
a.machine:hover .go { background: var(--orange); color: var(--black); border-color: var(--orange); }
a.machine video, a.machine img { transition: transform 1.2s var(--ease); }
a.machine:hover video, a.machine:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .mrow { grid-template-columns: 1fr; }
  .mrow.flip .mrow-media { order: 0; }
}
.mrow-copy li::before { top: 1.25em; }
.legend-box:has(.legend:empty) { display: none; }
@media (max-width: 760px) { .scrub-notes { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.8); } }
@media (max-width: 760px) { .scrub-pin::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 44%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 5, 5, 0.88) 30%, transparent); } }
