/* Linewright homepage concept — styles */
:root {
  --studio: #DFDDDA;          /* the film's backdrop, matched to the render */
  --paper: #EEEBE6;
  --paper-2: #E4E1DB;
  --card: #F7F5F1;
  --ink: #111214;
  --ink-2: #2A2C31;
  --muted: #5E6168;
  --line: rgba(17, 18, 20, .12);
  --accent: #FF4D00;
  --accent-2: #FF7A2E;
  --night: #0E0F11;
  --night-2: #17191C;
  --night-line: rgba(255, 255, 255, .1);
  --on-night: #F1EEE8;
  --on-night-muted: #9A9DA3;
  --r: 22px;
  --r-sm: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tick { width: 18px; height: 6px; display: inline-flex; gap: 3px; }
.tick::before, .tick::after { content: ""; flex: 1; background: var(--accent); border-radius: 1px; transform: skewX(-18deg); }
.sec-title { font-size: clamp(38px, 5vw, 76px); max-width: 16ch; margin-top: 18px; }
.sec-sub { margin-top: 20px; font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 44ch; }
.sec-head { display: grid; gap: 0; margin-bottom: clamp(40px, 5vw, 72px); }

.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 560; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate; transition: box-shadow .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--sweep, var(--ink-2)); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-accent { --bg: var(--accent); --fg: #fff; --sweep: #E24400; box-shadow: 0 10px 30px -12px rgba(255, 77, 0, .7); }
.btn-ink { --bg: var(--ink); --sweep: #2E3036; }
.btn-ghost { --bg: rgba(255, 255, 255, .55); --fg: var(--ink); --sweep: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(17, 18, 20, .12); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn > span { position: relative; }

.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #1FC16B; display: inline-block; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #1FC16B; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 14px; right: 14px; margin-inline: auto;
  max-width: 1400px; height: 64px; padding: 0 10px 0 22px;
  display: flex; align-items: center; gap: 20px; border-radius: 999px;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s;
}
.nav.is-solid {
  background: rgba(247, 245, 241, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 40px -18px rgba(17, 18, 20, .35), 0 0 0 1px rgba(17, 18, 20, .06);
}
.nav.is-dark { color: var(--on-night); }
.nav.is-dark.is-solid { background: rgba(23, 25, 28, .72); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 40px -18px rgba(0, 0, 0, .6); }
.nav.is-dark .btn-ink { --bg: #fff; --fg: var(--ink); --sweep: #E8E4DD; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; font-size: 19px; letter-spacing: -0.03em; }
.mark { display: inline-flex; gap: 3px; height: 20px; }
.mark i { width: 6px; background: var(--accent); border-radius: 1.5px; transform: skewX(-14deg); transform-origin: bottom; }
.brand:hover .mark i { animation: bars .8s var(--ease); }
.brand:hover .mark i + i { animation-delay: .08s; }
@keyframes bars { 40% { transform: skewX(-14deg) scaleY(.45); } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500; border-radius: 999px; transition: background .3s; }
.nav-links a:hover { background: rgba(17, 18, 20, .06); }
.nav.is-dark .nav-links a:hover { background: rgba(255, 255, 255, .08); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-live { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; padding: 0 6px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--on-night);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 46px); transition: clip-path .8s var(--ease); pointer-events: none;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 46px); pointer-events: auto; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font-size: clamp(40px, 11vw, 64px); font-weight: 600; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 14px; }
.menu nav a small { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0; }
.menu-foot { display: flex; align-items: center; gap: 10px; color: var(--on-night-muted); }
.menu-foot a { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 1. story ---------- */
.story { position: relative; background: var(--studio); }
.story-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.film { position: absolute; inset: 0; }
.film-poster, .film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.film-video { opacity: 0; transition: opacity .6s; }
.film.is-ready .film-video { opacity: 1; }
.film-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(223, 221, 218, .92) 0%, rgba(223, 221, 218, .55) 30%, rgba(223, 221, 218, 0) 52%);
}
.hero-copy, .steps { position: absolute; left: var(--gutter); top: 0; bottom: 0; width: min(640px, 46vw); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 40px; }
.hero-title { font-size: clamp(48px, 5.7vw, 94px); letter-spacing: -0.045em; line-height: .94; margin-top: 22px; }
.hero-title .line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-sub { margin-top: 26px; font-size: clamp(18px, 1.45vw, 21px); color: var(--ink-2); max-width: 30ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.steps { display: grid; grid-template-columns: auto 1fr; gap: clamp(26px, 3vw, 48px); align-items: center; pointer-events: none; }
.steps.is-on { pointer-events: auto; }
.rail { position: relative; display: grid; gap: 18px; padding-left: 2px; opacity: 0; }
.rail::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(17, 18, 20, .14); border-radius: 2px; }
.rail-fill { position: absolute; left: 7px; top: 8px; width: 2px; height: calc(100% - 16px); background: var(--accent); border-radius: 2px; transform-origin: top; transform: scaleY(0); }
.rail li { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(17, 18, 20, .42); transition: color .4s; }
.rail .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--studio); box-shadow: inset 0 0 0 2px rgba(17, 18, 20, .22); transition: box-shadow .4s var(--ease), background .4s, transform .5s var(--ease); }
.rail li.is-done { color: rgba(17, 18, 20, .7); }
.rail li.is-done .dot { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.rail li.is-active { color: var(--ink); }
.rail li.is-active .dot { background: #fff; box-shadow: inset 0 0 0 5px var(--accent), 0 0 0 6px rgba(255, 77, 0, .18); transform: scale(1.12); }

.caps { display: grid; }
.cap { grid-area: 1 / 1; align-self: center; visibility: hidden; }
.cap-num { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.cap-num span { color: rgba(17, 18, 20, .38); }
.cap h2 { font-size: clamp(64px, 8.4vw, 132px); letter-spacing: -0.055em; line-height: .9; margin-top: 12px; }
.cap-end h2 { font-size: clamp(46px, 5.2vw, 84px); max-width: 8ch; }
.cap > p:not(.cap-num) { margin-top: 18px; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 30ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { font-family: var(--mono); font-size: 12.5px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(17, 18, 20, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cap-link { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 560; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.cap-link span { transition: transform .4s var(--ease); }
.cap-link:hover span { transform: translateX(4px); }

.cue { position: absolute; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 28px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cue-track { position: relative; width: 22px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(17, 18, 20, .35); overflow: hidden; }
.cue-bottle { position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.hud { position: absolute; right: var(--gutter); bottom: 30px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: rgba(17, 18, 20, .55); }
.hud-sep { width: 28px; height: 1px; background: currentColor; opacity: .5; }

/* ---------- 2. machines ---------- */
.machines { position: relative; padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 10vw, 150px); background: var(--paper); }
.machines::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 160px; background: linear-gradient(var(--studio), var(--paper)); pointer-events: none; }
.machines .wrap { position: relative; }
.machines .sec-head { grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; }
.machines .sec-head .eyebrow, .machines .sec-head .sec-title { grid-column: 1; }
.machines .sec-head .sec-sub { grid-column: 2; grid-row: 2; max-width: 36ch; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(300px, auto); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--card); box-shadow: 0 0 0 1px rgba(17, 18, 20, .06), 0 1px 2px rgba(17, 18, 20, .04);
  transition: box-shadow .5s var(--ease);
}
.card:hover { box-shadow: 0 0 0 1px rgba(17, 18, 20, .08), 0 30px 60px -30px rgba(17, 18, 20, .35); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--studio); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .5s; }
.card-media video { opacity: 0; }
.card.is-playing .card-media video { opacity: 1; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.045); }
.card-body { position: relative; padding: 18px 20px 20px; display: grid; gap: 4px; }
.card h3 { font-size: 20px; letter-spacing: -0.025em; line-height: 1.15; padding-right: 30px; }
.card-body p { color: var(--muted); font-size: 15px; line-height: 1.4; }
.card-arrow { position: absolute; right: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: rgba(17, 18, 20, .06); transition: background .4s, color .4s, transform .5s var(--ease); }
.card:hover .card-arrow { background: var(--accent); color: #fff; transform: rotate(-45deg); }

.card-hero { grid-column: span 2; grid-row: span 2; color: #fff; }
.card-hero .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.card-hero .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 13, 0) 40%, rgba(10, 11, 13, .78) 100%); }
.card-hero .card-body { margin-top: auto; padding: clamp(22px, 2.6vw, 36px); gap: 10px; }
.card-hero h3 { font-size: clamp(30px, 3vw, 46px); max-width: 14ch; letter-spacing: -0.04em; line-height: 1; }
.card-hero .card-body p { color: rgba(255, 255, 255, .78); font-size: 17px; }
.card-kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2) !important; }
.card-cta { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; justify-self: start; height: 46px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 560; font-size: 15px; transition: background .4s, color .4s; }
.card-hero:hover .card-cta { background: var(--accent); color: #fff; }

/* ---------- 3. build your line ---------- */
.lines { position: relative; padding: 0 clamp(8px, 1.2vw, 16px); background: var(--paper); }
.lines-inner { position: relative; border-radius: clamp(24px, 3vw, 44px); background: var(--night); color: var(--on-night); padding: clamp(90px, 10vw, 150px) 0 clamp(70px, 8vw, 120px); overflow: hidden; }
.lines-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 0%, rgba(255, 77, 0, .14), transparent 60%), radial-gradient(50% 50% at 0% 100%, rgba(255, 255, 255, .05), transparent 70%); pointer-events: none; }
.sec-head-dark .eyebrow { color: var(--on-night-muted); }
.sec-head-dark .sec-title { max-width: 18ch; }

.builder { position: relative; display: grid; gap: 34px; }
.builder-controls { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: 28px 48px; align-items: end; }
.field { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend, .field > span, .field > label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--on-night-muted); padding: 0; margin-bottom: 12px; }
.field > span { margin-bottom: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--on-night); box-shadow: inset 0 0 0 1px var(--night-line); transition: background .35s, color .35s, box-shadow .35s; }
.seg button:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.seg button[aria-checked="true"] { background: var(--on-night); color: var(--ink); box-shadow: none; }
.speed { display: flex; align-items: center; gap: 16px; }
.speed input { flex: 1; appearance: none; -webkit-appearance: none; height: 44px; background: none; cursor: pointer; }
.speed input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 26%), rgba(255, 255, 255, .14) var(--p, 26%)); }
.speed input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.speed input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.speed input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 77, 0, .25); transition: box-shadow .3s; }
.speed input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 77, 0, .25); }
.speed input:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(255, 77, 0, .3); }
.speed output { min-width: 64px; font-family: var(--mono); font-size: 26px; font-variant-numeric: tabular-nums; text-align: right; }

.sim { --tok: 1.3; position: relative; height: 310px; border-radius: var(--r); background: radial-gradient(120% 90% at 50% 0%, #1D2024, var(--night-2) 70%); box-shadow: inset 0 0 0 1px var(--night-line); overflow: hidden; }
.sim-belt { position: absolute; left: 0; right: 0; top: 246px; height: 18px; background: #24272C; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .5), 0 18px 30px -10px rgba(0, 0, 0, .6); }
.sim-belt-lines { position: absolute; inset: 4px 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 22px); animation: belt var(--belt-dur, 1.2s) linear infinite; }
@keyframes belt { to { background-position: 22px 0; } }
.sim-stations { position: absolute; left: 3%; right: 3%; top: 30px; display: flex; justify-content: space-between; gap: 10px; }
.station {
  position: relative; flex: 1 1 0; max-width: 150px; height: 216px; border-radius: 18px 18px 4px 4px;
  background: linear-gradient(180deg, #30343B 0%, #23262B 55%, #1C1E22 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 40px -24px rgba(0, 0, 0, .9);
  display: flex; flex-direction: column; align-items: center; padding-top: 18px; gap: 10px; transition: box-shadow .4s;
}
.station::before { /* the tunnel containers run through */
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 84px; border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #0B0C0E, #141619); box-shadow: inset 0 10px 18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.station::after { content: ""; position: absolute; left: 24px; right: 24px; top: 114px; height: 4px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 14px rgba(255, 77, 0, .55); opacity: .9; }
.st-num { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--on-night-muted); }
.station .st-ico { width: 44px; height: 44px; margin-top: 6px; stroke: var(--on-night); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.station .st-name { font-size: 13.5px; font-weight: 560; letter-spacing: -0.01em; text-align: center; line-height: 1.15; padding: 0 8px; }
.station .st-led { position: absolute; top: 13px; right: 13px; width: 7px; height: 7px; border-radius: 50%; background: #1FC16B; box-shadow: 0 0 10px #1FC16B; }
.station.is-hit { animation: hit .55s var(--ease); }
.station.is-hit .st-led { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
@keyframes hit { 30% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 77, 0, .7), 0 0 40px -8px rgba(255, 77, 0, .55); } }
.sim-tokens { position: absolute; inset: 0; pointer-events: none; }
.tok { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 50% 100%; }
.sim-read { position: absolute; left: 20px; right: 20px; bottom: 12px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-muted); }
.sim-read b { color: var(--on-night); font-weight: 500; font-variant-numeric: tabular-nums; }
.sim-read .live-dot { margin-right: 8px; }
.builder-out { display: grid; grid-template-columns: 1fr auto auto; gap: 24px 48px; align-items: center; }
.out-line { font-family: var(--mono); font-size: 14px; color: var(--on-night-muted); line-height: 1.7; }
.out-line b { color: var(--on-night); font-weight: 500; }
.out-stats { display: flex; gap: 36px; }
.out-stats p { display: grid; }
.out-stats strong { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.out-stats span { font-size: 13px; color: var(--on-night-muted); }

/* ---------- 4. service ---------- */
.service { padding: clamp(110px, 12vw, 190px) 0 clamp(80px, 9vw, 140px); }
.journey { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); padding-top: 34px; }
.journey-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); border-radius: 2px; }
.journey-line span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); border-radius: 2px; }
.stage { position: relative; display: grid; gap: 12px; align-content: start; }
.stage::before { content: ""; position: absolute; left: 0; top: -41px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(17, 18, 20, .25); transition: all .5s var(--ease); }
.stage.is-on::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 6px rgba(255, 77, 0, .16); }
.stage-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); margin-bottom: 10px; }
.stage-media img { width: 100%; height: 118%; object-fit: cover; }
.stage-num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.stage h3 { font-size: clamp(26px, 2.3vw, 34px); }
.stage > p:not(.stage-num) { color: var(--muted); max-width: 34ch; }
.stage ul { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.stage li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; display: flex; gap: 12px; align-items: center; }
.stage li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--ink); transform: rotate(45deg); flex: none; }

.support {
  margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 36px;
  padding: 22px 22px 22px 30px; border-radius: 999px; background: var(--night); color: var(--on-night);
}
.support-state { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-muted); }
.support-title { font-size: clamp(18px, 1.6vw, 23px); font-weight: 560; letter-spacing: -0.02em; }

/* ---------- 5. proof ---------- */
.proof { padding: clamp(30px, 4vw, 60px) 0 clamp(100px, 11vw, 170px); overflow: hidden; }
.marquee { overflow: hidden; padding: 12px 0 clamp(60px, 7vw, 110px); }
.marquee-track { display: flex; align-items: center; gap: clamp(26px, 3vw, 54px); width: max-content; will-change: transform; }
.marquee-track span { font-size: clamp(56px, 8.5vw, 136px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.marquee-track i { width: clamp(22px, 2.6vw, 40px); height: clamp(22px, 2.6vw, 40px); display: inline-flex; gap: 4px; flex: none; }
.marquee-track i::before, .marquee-track i::after { content: ""; flex: 1; background: var(--accent); border-radius: 2px; transform: skewX(-14deg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 34px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat-n { font-size: clamp(44px, 5vw, 78px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat p:last-child { margin-top: 10px; color: var(--muted); }
.quote { margin: clamp(60px, 8vw, 120px) 0 0; display: grid; gap: 28px; max-width: 1100px; }
.quote blockquote { margin: 0; font-size: clamp(30px, 3.8vw, 58px); font-weight: 520; letter-spacing: -0.04em; line-height: 1.06; text-indent: -.42em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.quote strong { color: var(--ink); font-weight: 600; }
.q-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }

/* ---------- 6. contact ---------- */
.contact { position: relative; padding: clamp(100px, 11vw, 170px) 0; background: var(--accent); color: #140700; overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -10vw; top: -20vw; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.eyebrow-dark { color: rgba(20, 7, 0, .7); }
.eyebrow-dark .tick::before, .eyebrow-dark .tick::after { background: #140700; }
.contact .sec-sub { color: rgba(20, 7, 0, .75); }
.contact-list { margin-top: 40px; display: grid; border-top: 1px solid rgba(20, 7, 0, .2); }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(20, 7, 0, .2); }
.contact-list span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; align-self: center; }
.contact-list a { font-weight: 560; font-size: 17px; }
.form { position: relative; display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--r) + 6px); background: #FFF7F1; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(80, 20, 0, .55); }
.form .field legend, .form .field > span { color: var(--muted); }
.seg-light button { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.seg-light button:hover { box-shadow: inset 0 0 0 1px rgba(17, 18, 20, .3); }
.seg-light button[aria-checked="true"] { background: var(--ink); color: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 0; border-radius: 14px;
  padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.form input.is-bad { box-shadow: inset 0 0 0 2px #D92D20; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-done { position: absolute; inset: 0; border-radius: inherit; background: #FFF7F1; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 30px; opacity: 0; visibility: hidden; }
.form-done p { font-size: 17px; color: var(--muted); }
.form-done strong { color: var(--ink); font-size: 22px; letter-spacing: -0.02em; }
.done-check { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.done-check svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.form.is-done .done-check svg { transition: stroke-dashoffset .7s .25s var(--ease); stroke-dashoffset: 0; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-night-muted); padding: 80px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid > div { display: grid; gap: 10px; align-content: start; }
.foot-grid a { font-size: 15px; transition: color .3s; }
.foot-grid a:hover { color: var(--on-night); }
.foot-h { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night); margin-bottom: 6px; }
.brand-light { color: var(--on-night); font-size: 24px; }
.foot-brand p { margin-top: 10px; }
.foot-mega { margin-top: 80px; display: flex; align-items: center; gap: clamp(10px, 2vw, 30px); color: var(--on-night); font-weight: 650; letter-spacing: -0.06em; line-height: .8; font-size: clamp(64px, 16.2vw, 250px); overflow: hidden; }
.foot-mega .mark { height: .7em; gap: .08em; flex: none; }
.foot-mega .mark i { width: .16em; border-radius: .03em; }
.foot-mega [data-mega] { display: inline-block; }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 20px; font-size: 13.5px; }

/* ---------- motion helpers ---------- */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
[data-reveal] { will-change: transform, opacity; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-hero { grid-column: span 2; grid-row: span 1; min-height: 480px; }
  .builder-controls { grid-template-columns: 1fr; }
  .builder-out { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .machines .sec-head { grid-template-columns: 1fr; }
  .machines .sec-head .sec-sub { grid-column: 1; grid-row: auto; }
  .journey { grid-template-columns: 1fr; gap: 56px; padding-top: 0; padding-left: 34px; }
  .journey-line { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .journey-line span { transform-origin: top; transform: scaleY(0); }
  .stage::before { left: -34px; top: 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .support { grid-template-columns: 1fr; border-radius: var(--r); padding: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { top: 10px; width: calc(100% - 20px); height: 58px; padding: 0 6px 0 16px; gap: 8px; }
  .nav-right .nav-live { display: none; }
  .nav-right .btn { display: none; }
  .burger { display: block; margin-left: auto; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-rows: auto; }
  .card-hero { min-height: 440px; }
  .card-body { padding: 12px 14px 16px; }
  .card h3 { font-size: 16.5px; padding-right: 0; }
  .card-body p { font-size: 13.5px; }
  .card-arrow { display: none; }
  .sim { --tok: .78; height: 210px; }
  .sim-stations { left: 8px; right: 8px; top: 18px; gap: 5px; }
  .station { height: 150px; border-radius: 12px 12px 3px 3px; padding-top: 12px; }
  .station::before { left: 4px; right: 4px; height: 56px; }
  .station::after { left: 10px; right: 10px; top: 84px; height: 3px; }
  .station .st-ico { width: 26px; height: 26px; margin-top: 8px; }
  .station .st-name, .st-num { display: none; }
  .station .st-led { top: 7px; right: 7px; width: 5px; height: 5px; }
  .sim-belt { top: 168px; height: 12px; }
  .sim-read { font-size: 10px; left: 12px; right: 12px; bottom: 8px; }
  .out-stats { gap: 22px; }
  .out-stats strong { font-size: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .foot-base { flex-direction: column; }
}

/* story on portrait screens: film fills the screen, copy sits in a card at the bottom */
@media (max-aspect-ratio: 9/10) {
  .film-poster, .film-video { object-position: 50% 50%; }
  .film-veil { background: linear-gradient(180deg, rgba(223, 221, 218, 0) 45%, rgba(223, 221, 218, .7) 72%, rgba(223, 221, 218, .95) 100%); }
  .hero-copy, .steps { left: 16px; right: 16px; width: auto; top: 0; bottom: 22px; }
  .hero-copy { justify-content: flex-end; padding: 0 0 50px; }
  .hero-title { font-size: clamp(40px, 11.5vw, 64px); }
  .hero-sub { margin-top: 14px; font-size: 17px; }
  .hero-ctas { margin-top: 22px; }
  .hero-ctas .btn { height: 50px; padding: 0 22px; }
  .steps { grid-template-columns: 1fr; gap: 14px; bottom: 18px; align-content: end; }
  .rail { display: flex; justify-content: space-between; gap: 0; padding: 0; order: 2; }
  .rail::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .rail-fill { left: 8px; top: 7px; width: calc(100% - 16px); height: 2px; transform-origin: left; transform: scaleX(0); }
  .rail li { flex-direction: column; gap: 6px; font-size: 10px; }
  .cap { align-self: end; }
  .cap h2 { font-size: 64px; }
  .cap > p:not(.cap-num) { font-size: 16px; margin-top: 10px; }
  .chips { margin-top: 12px; }
  .cap-link { margin-top: 12px; }
  .cue { display: none; }
  .hud { display: none; }
}
@media (max-aspect-ratio: 9/10) and (max-height: 700px) {
  .hero-title { font-size: 40px; }
  .hero-sub { display: none; }
  .chips { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
