:root {
  --bg: #07090c;
  --bg-2: #0d1015;
  --ink: #f3f4f6;
  --ink-2: #a7adb8;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.09);
  --band: #c8c8c2;
  --band-ink: #0b0c0e;
  --accent: #4d74ff;
  --warn: #ff9a1f;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { display: block; max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 16px; }
.wrap { width: min(1220px, 100% - 48px); margin: 0 auto; }

/* nav — over the hero */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 30; }
.nav-row { display: flex; align-items: center; height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .26em; font-size: 15px; }
.wordmark svg { width: 22px; height: 22px; color: #fff; }
.nav-links { display: flex; gap: 44px; margin: 0 auto; font-size: 16px; color: #e7e9ee; }
.nav-links a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent; font-weight: 500; font-size: 15px; transition: opacity .15s, transform .15s; }
.btn:hover { opacity: .9; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-light { background: #fff; color: #0b0c0e; }
.btn-line { border-color: rgba(255, 255, 255, .25); color: #fff; }

/* hero */
.hero { position: relative; height: min(100svh, 980px); min-height: 620px; overflow: hidden; }
.twin { position: absolute; inset: 0; }
.twin canvas { width: 100% !important; height: 100% !important; display: block; }
.twin.no-webgl { background: radial-gradient(900px 500px at 55% 35%, #1a2233, var(--bg) 70%); }
.hero-fade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(7,9,12,.55) 0%, rgba(7,9,12,0) 18%, rgba(7,9,12,0) 52%, rgba(7,9,12,.88) 82%, var(--bg) 100%),
  radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(7,9,12,.75) 100%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vh, 80px); z-index: 2; }
/* the headline waits for the scan, but never longer than 6 s (CDN down, no WebGL) */
.hero-copy { opacity: 0; transform: translateY(14px); transition: opacity 1.4s ease, transform 1.4s ease; animation: show-anyway 0s 6s forwards; }
.twin-on .hero-copy { opacity: 1; transform: none; }
@keyframes show-anyway { to { opacity: 1; transform: none; } }
.scan-hud { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1220px) / 2)); bottom: clamp(48px, 8vh, 92px); display: flex; align-items: center; gap: 10px;
  font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a9b6d6; transition: opacity 1s ease 1.2s; }
.scan-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1s ease-in-out infinite; }
#scanlabel.live { color: #7ff2bd; }
#scanlabel.live + * { display: none; }
.scan-hud:has(#scanlabel.live) .scan-dot { background: #1de38c; box-shadow: 0 0 10px #1de38c; animation: none; }
@keyframes blink { 50% { opacity: .3; } }
h1 { margin: 0; font-weight: 400; font-size: clamp(44px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -0.035em; }

/* marquee */
.marquee-sec { padding: 26px 0 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: slide 40s linear infinite; padding: 12px 0; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; color: #c9cdd5; font-size: 16px; white-space: nowrap; }
.g { width: 14px; height: 14px; border-radius: 4px; display: inline-block; opacity: .9; }
.g1 { background: #ff9a1f; } .g2 { background: #f2c94c; } .g3 { background: #9b6bff; } .g4 { background: #1de38c; }
.g5 { background: #2bb673; } .g6 { background: #3a7bd5; } .g7 { background: #4d74ff; } .g8 { background: #e2434b; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-cap { text-align: center; color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }

/* sections */
.sec { padding: 120px 0; }
.h2 { margin: 0 0 22px; font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
.h2 .mute { color: #7b818c; }
.h2.dark { color: var(--band-ink); }
.h2.center { text-align: center; }
.body { color: var(--ink-2); max-width: 46ch; margin: 0; font-size: 16px; }
.body.dark { color: #34373d; }
.inl { color: #fff; white-space: nowrap; }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.split.rev { grid-template-columns: 1.05fr 1fr; }

/* three cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.c3-img { aspect-ratio: 16 / 10.5; border-radius: 4px; overflow: hidden; background: linear-gradient(180deg, #11151c, #0a0d12); border: 1px solid var(--line); margin-bottom: 22px; }
.c3-img svg { width: 100%; height: 100%; }
.c3-n { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.c3 h3 { margin: 0 0 8px; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.c3 p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.scanline { animation: scan 3.2s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(130px); } }
.mould-half { animation: open 3.4s ease-in-out infinite; }
.mh { animation: open 3.4s ease-in-out infinite; }
@keyframes open { 0%, 30% { transform: translateX(0); } 50%, 80% { transform: translateX(18px); } 100% { transform: translateX(0); } }

/* light band: simulation */
.band { background: var(--band); color: var(--band-ink); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: rgba(0, 0, 0, .08); }
.tabs button { height: 34px; padding: 0 14px; border-radius: 6px; border: 0; background: transparent; color: #3b3e44; font-size: 14px; }
.tabs button[aria-selected="true"] { background: #1a1c20; color: #fff; }
.sim-head { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 18px; }
.sim-big { font-size: clamp(48px, 5vw, 66px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sim-sub { color: #44474d; font-size: 15px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bars li { display: grid; grid-template-columns: 210px 1fr 46px; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 6px; font-size: 14px; color: #2d3035; }
.bars .track { height: 3px; background: rgba(0, 0, 0, .14); border-radius: 3px; overflow: hidden; }
.bars .fill { display: block; height: 100%; width: 0; background: #1a1c20; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bars .pct { text-align: right; font-variant-numeric: tabular-nums; }
.bars li.bn { background: rgba(226, 67, 75, .12); color: #a3141c; }
.bars li.bn .fill { background: #e2434b; }
.bars li.bn .name::after { content: "Bottleneck"; display: block; font-size: 11px; color: #c0262f; margin-top: 1px; }
.sim-note { color: #55585e; font-size: 12.5px; margin: 14px 0 0; }

/* diagrams */
.hub svg, .plants svg, .plan svg { width: 100%; height: auto; }
.wires path { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }
.spark { fill: #8fb0ff; filter: drop-shadow(0 0 4px #4d74ff); }
.spark.warm { fill: #ffb45c; filter: drop-shadow(0 0 4px #ff9a1f); }
.node-l text { font: 400 13px var(--sans); fill: #d7dae0; text-anchor: end; }
.node-r text { font: 400 13px var(--sans); fill: #d7dae0; }
.hub-l { font: 500 13px var(--sans); fill: #c9cdd5; text-anchor: middle; }
.hub-l.sm { font-size: 12px; }
.plab text { font: 400 12.5px var(--sans); fill: #9aa0ab; text-anchor: middle; }
.plab .hot { fill: #e2434b; }
.dimline path { stroke: rgba(255, 255, 255, .35); fill: none; }
.dimline text { font: 400 11px var(--mono); fill: #8a909b; text-anchor: middle; }
.wall { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; }
.room rect { fill: rgba(255, 255, 255, .02); stroke: rgba(255, 255, 255, .28); }
.room text { font: 400 10.5px var(--mono); fill: #9aa0ab; }
.pr rect { fill: rgba(77, 116, 255, .10); stroke: rgba(143, 176, 255, .45); }
.flowl { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 4; fill: none; animation: dash 1.4s linear infinite; }
.door path { stroke: var(--bg); stroke-width: 4; }
@keyframes dash { to { stroke-dashoffset: -14; } }

/* case study */
.case { border-top: 1px solid var(--line); }
.kicker { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.split.top { align-items: start; }
.case-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; max-width: 52ch; }
.case-list li { color: var(--ink-2); font-size: 15px; padding-left: 18px; border-left: 1px solid var(--line); }
.case-list b { color: var(--ink); font-weight: 500; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.case-stats > div { padding: 22px 24px; display: grid; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-stats > div:nth-child(2n) { border-right: 0; }
.case-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.cs-v { font-size: clamp(34px, 3.4vw, 46px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.cs-k { color: var(--muted); font-size: 13.5px; }
.case-find { margin-top: 16px; border-radius: 10px; padding: 24px; background: linear-gradient(160deg, rgba(77, 116, 255, .14), rgba(77, 116, 255, .03)); border: 1px solid rgba(77, 116, 255, .3); }
.cf-k { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9fb4ff; }
.cf-v { font-size: clamp(36px, 3.8vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 10px; }
.case-find p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.case-note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }

/* metallic pilot card */
.metal { position: relative; aspect-ratio: 1.6 / 1; border-radius: 14px; padding: 30px 32px; color: #15171b; overflow: hidden;
  background: linear-gradient(135deg, #f2f3f5 0%, #c9ccd2 38%, #eef0f3 55%, #b9bdc4 80%, #e9ebee 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .8); }
.metal-top { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .26em; font-size: 13px; }
.metal-top svg { width: 18px; height: 18px; }
.metal-h { position: absolute; left: 32px; top: 46%; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -0.02em; }
.metal-ft { position: absolute; left: 32px; bottom: 24px; font-size: 10px; letter-spacing: .2em; color: #50545b; }
.metal-mark { position: absolute; right: -30px; bottom: -40px; width: 230px; height: 230px; color: rgba(0, 0, 0, .07); }

/* close */
.close { padding: 110px 0 140px; text-align: center; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.contact input { height: 46px; min-width: 240px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; padding: 0 14px; font: inherit; font-size: 15px; }
.contact input::placeholder { color: #6b7280; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot-brand svg { width: 26px; height: 26px; color: #fff; margin-bottom: 18px; }
.foot-brand p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; max-width: 28ch; }
.foot-brand .loc { color: var(--muted); }
.foot h4 { margin: 0 0 12px; font-weight: 500; font-size: 14px; }
.foot-grid > div { display: grid; align-content: start; gap: 8px; font-size: 14px; color: var(--ink-2); }
.foot-grid a:hover { color: #fff; }
.foot-legal { margin-top: 48px; color: var(--muted); font-size: 13px; }

/* responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-row .btn { margin-left: auto; }
  .split, .split.rev, .cards3 { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > :first-child { order: 2; }
  .sec { padding: 84px 0; }
  .bars li { grid-template-columns: 1fr 1fr 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { height: 86svh; min-height: 540px; }
  .scan-hud { left: 16px; right: auto; bottom: auto; top: 84px; }
  .wrap { width: calc(100% - 32px); }
  .bars li { grid-template-columns: 1fr 40px; }
  .bars .track { grid-column: 1 / -1; grid-row: 2; }
  .contact input { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
