@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations"), url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0a1120;          /* fundo: noite de prancha */
  --ink-2: #0e1729;
  --ink-3: #142039;
  --grid: rgba(132, 168, 222, .07);
  --grid-strong: rgba(132, 168, 222, .14);
  --line: #8fb0dc;         /* traço de desenho */
  --line-dim: rgba(143, 176, 220, .38);
  --text: #eaf0f8;
  --muted: #9fb1cb;
  --red: #e3263a;
  --violet: #5a3b86;
  --blue: #3a5bb0;
  --cyan: #6cc6f0;
  --led: linear-gradient(180deg, var(--red) 0%, var(--violet) 42%, var(--blue) 70%, var(--cyan) 100%);
    --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sec: clamp(88px, 12vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #22345a; border: 2px solid var(--ink); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
html { scrollbar-color: #22345a var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
input, button, textarea, select { font: inherit; color: inherit; caret-color: var(--cyan); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }

h1, h2, h3 { margin: 0; font-stretch: 72%; font-weight: 800; line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); font-weight: 750; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* rótulo de prancha: uma só voz para notas, termos e legendas */
.sheet-tabs b, .spec-list span, .rider caption, .rider thead th, .slide-info dt, .foot-tb dt, .stage-caption, .rider-zoom > span, .plot figcaption {
  font-size: .72rem; font-weight: 600; font-stretch: 90%; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h); padding: 0 1.25em; border: 0; border-radius: 3px; cursor: pointer;
  font-weight: 650; font-stretch: 88%; text-decoration: none; letter-spacing: .005em; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .4s var(--ease);
}
.btn-lg { --h: 56px; font-size: 1.05rem; padding: 0 1.5em; }
.btn-block { width: 100%; }
.btn-lit { background: var(--text); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); overflow: hidden; }
.btn-lit::before { /* fita de LED que corre no topo */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cyan);
  transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease);
}
.btn-lit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8); }
.btn-lit:hover::before { transform: scaleX(1); }
.btn-lit:active { transform: translateY(0); }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-dim); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--cyan); color: #fff; }
.btn-line .ic { transition: transform .4s var(--ease); }
.btn-line:hover .ic { transform: translateX(4px); }

/* ---------- Title block (nav) ---------- */
.titleblock {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
  height: 72px; padding: 0 var(--gut);
  background: rgba(10, 17, 32, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-dim);
  transition: transform .5s var(--ease);
}
.titleblock::after { /* marcas de canto da prancha */
  content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: -1px; height: 7px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); pointer-events: none;
}
.tb-logo img { height: 30px; width: auto; }
.tb-nav { display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 34px); }
.tb-nav a { position: relative; text-decoration: none; color: var(--muted); font-weight: 550; font-stretch: 90%; font-size: .95rem; padding: 6px 0; transition: color .3s; }
.tb-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tb-nav a:hover, .tb-nav a.on { color: var(--text); }
.tb-nav a:hover::after, .tb-nav a.on::after { transform: scaleX(1); }
.tb-cta { --h: 42px; }
.tb-menu { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-dim); border-radius: 3px; cursor: pointer; position: relative; }
.tb-menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.tb-menu span:first-child { top: 17px; } .tb-menu span:last-child { top: 25px; }
.tb-menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.tb-menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-mobile { position: fixed; inset: 72px 0 auto 0; z-index: 49; background: var(--ink-2); border-bottom: 1px solid var(--line-dim); padding: 12px var(--gut) 24px; display: grid; gap: 4px; }
.menu-mobile[hidden] { display: none; }
.menu-mobile a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--grid-strong); text-decoration: none; font-size: 1.15rem; font-stretch: 85%; font-weight: 650; }
.menu-mobile .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; padding: 112px var(--gut) 56px; max-width: 1680px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero h1 { font-size: clamp(2.9rem, 1.2rem + 5.2vw, 6rem); font-stretch: 66%; font-weight: 850; line-height: .92; letter-spacing: -.02em; }
.lit-word { color: #fff; }
.lede { margin-top: 28px; max-width: 46ch; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-base { display: flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--muted); font-size: .9rem; font-stretch: 90%; }
.hero-stage { margin: 0; position: relative; }
.hero-stage canvas { width: 100%; aspect-ratio: 16 / 10; display: block; cursor: crosshair; }
.stage-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-dim); color: var(--muted); }
.stage-hint { opacity: .8; }

/* ---------- Ticker ---------- */
.ticker { height: 68px; border-block: 1px solid var(--line-dim); background: #05080f; }
.ticker canvas { width: 100%; height: 100%; display: block; }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) var(--gut) 0; max-width: var(--max); margin: 0 auto; }
.sec-head { max-width: 760px; }
.sec-head h2 + p { margin-top: 22px; color: var(--muted); max-width: 58ch; font-size: clamp(1.02rem, 1rem + .2vw, 1.15rem); }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.sec-head.row > div { max-width: 720px; }

/* ---------- Sheets (serviços) ---------- */
.sheets { margin-top: 56px; border: 1px solid var(--line-dim); background: rgba(10, 17, 32, .6); position: relative; }
.sheets::before, .sheets::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--line); pointer-events: none; }
.sheets::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.sheets::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.sheet-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-dim); }
.sheet-tabs button {
  position: relative; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 22px 20px;
  color: var(--muted); font-weight: 650; font-stretch: 85%; font-size: 1.02rem; display: grid; gap: 4px;
  border-right: 1px solid var(--line-dim); transition: color .3s, background-color .3s;
}
.sheet-tabs button:last-child { border-right: 0; }
.sheet-tabs b { color: var(--line); }
.sheet-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.sheet-tabs button:hover { color: var(--text); background: rgba(143, 176, 220, .04); }
.sheet-tabs button[aria-selected="true"] { color: var(--text); background: rgba(143, 176, 220, .06); }
.sheet-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.sheet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 460px; }
.sheet[hidden] { display: none; }
.sheet-draw { border-right: 1px solid var(--line-dim); padding: clamp(16px, 3vw, 40px); display: grid; place-items: center; }
.sheet-text { padding: clamp(24px, 3.5vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.sheet-text h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); }
.sheet-text p { margin-top: 16px; color: var(--muted); }
.spec-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line-dim); }
.spec-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grid-strong); font-size: .96rem; }
.spec-list span { color: var(--line); align-self: center; }

.draw { width: 100%; max-width: 620px; height: auto; overflow: visible; }
.draw .ln path, .draw .ln rect, .draw .ln circle { fill: none; stroke: var(--line); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.draw .dim path { fill: none; stroke: var(--line-dim); stroke-width: 1; }
.draw .note path { fill: none; stroke: var(--line-dim); stroke-width: 1; stroke-dasharray: 3 4; }
.draw text { fill: var(--muted); font-size: 11px; font-family: "Archivo", sans-serif; font-weight: 600; font-stretch: 90%; letter-spacing: .08em; text-transform: uppercase; }
.draw .pk { fill: #111a2c; stroke: var(--line-dim); }
.draw .glow { filter: drop-shadow(0 0 14px rgba(108, 198, 240, .45)); }
.draw .glow-stroke { fill: none; stroke: var(--cyan); stroke-width: 4; filter: drop-shadow(0 0 8px var(--cyan)); }
.draw .tracks rect { fill: #1b2a48; } .draw .tracks .hot { fill: var(--blue); } .draw .tracks .soft { fill: #142039; }
.draw .playhead { stroke: var(--red); stroke-width: 2; }
.draw .beams path { mix-blend-mode: screen; }
.sheet.drawing .ln path, .sheet.drawing .ln rect, .sheet.drawing .ln circle { stroke-dasharray: 900; animation: drawOn 1.6s var(--ease) both; }
.sheet.drawing .glow, .sheet.drawing .glow-stroke, .sheet.drawing .beams, .sheet.drawing .diodes, .sheet.drawing .tracks { animation: ignite 1s .9s both; }
@keyframes drawOn { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes ignite { 0% { opacity: 0; } 30% { opacity: 1; } 45% { opacity: .3; } 100% { opacity: 1; } }
.draw .playhead { animation: play 6s linear infinite; }
@keyframes play { from { transform: translateX(-200px); } to { transform: translateX(238px); } }

/* ---------- Carousel ---------- */
.car-ctrl { display: flex; align-items: center; gap: 14px; flex: none; }
.car-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dim); background: none; cursor: pointer; transition: border-color .3s, background-color .3s; }
.car-btn:hover { border-color: var(--cyan); background: rgba(108, 198, 240, .08); }
.car-count { font-variant-numeric: tabular-nums; color: var(--muted); font-stretch: 85%; min-width: 3ch; text-align: center; }
.car-count b { color: var(--text); }
.carousel { margin-top: 48px; position: relative; overflow: hidden; touch-action: pan-y; }
.car-track { display: flex; gap: 20px; transition: transform .9s var(--ease); will-change: transform; }
.carousel.dragging .car-track { transition: none; }
.slide { flex: 0 0 min(86%, 1040px); position: relative; border: 1px solid var(--line-dim); background: #060a14; user-select: none; }
.scene { width: 100%; aspect-ratio: 16 / 8.2; display: block; }
.slide-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; padding: 24px 28px 28px; border-top: 1px solid var(--line-dim); }
.slide-info p { color: var(--muted); }
.slide-info dl { margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.slide-info dl div { display: flex; gap: 12px; } .slide-info dt { color: var(--line); width: 6em; align-self: center; } .slide-info dd { margin: 0; }
.slide { opacity: .45; transition: opacity .6s; } .slide.is-active { opacity: 1; }
.car-progress { height: 2px; margin-top: 20px; background: var(--grid-strong); }
.car-progress i { display: block; height: 100%; width: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(0); }

/* ---------- Processo (cota) ---------- */
.cota { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; counter-reset: c; }
.cota::before { /* linha de cota */
  content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--line);
  transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.6s var(--ease);
}
.cota li { position: relative; padding: 44px 24px 0 0; }
.cota li::before { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 20px; background: var(--line); }
.cota li::after { content: ""; position: absolute; top: 6px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .5s, box-shadow .5s; }
.cota.on li::after { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.cota.on li:nth-child(2)::after { transition-delay: .3s; } .cota.on li:nth-child(3)::after { transition-delay: .6s; } .cota.on li:nth-child(4)::after { transition-delay: .9s; } .cota.on li:nth-child(5)::after { transition-delay: 1.2s; }
.cota h3 { font-size: clamp(1.3rem, 1rem + .9vw, 1.7rem); }
.cota p { margin-top: 10px; color: var(--muted); font-size: .96rem; max-width: 26ch; }
.cota li:last-child::before { left: auto; right: 0; }

/* ---------- Equipamentos ---------- */
.equip-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.equip .sec-head { position: sticky; top: 110px; }
.equip .sec-head .btn { margin-top: 32px; }
.rider { position: relative; }
.rider table { width: 100%; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
.rider caption { text-align: left; color: var(--line); padding-bottom: 14px; }
.rider th, .rider td { text-align: left; padding: 15px 14px 15px 0; border-bottom: 1px solid var(--grid-strong); vertical-align: top; }
.rider thead th { color: var(--muted); border-bottom: 1px solid var(--line-dim); }
.rider tbody th { font-weight: 650; font-stretch: 88%; }
.rider tbody td { color: var(--muted); }
.rider tbody tr { transition: background-color .3s; }
.rider tbody tr:hover { background: rgba(143, 176, 220, .05); }
.rider-zoom { margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.rider-zoom canvas { width: 100%; height: 240px; display: block; border: 1px solid var(--line-dim); cursor: none; background: #04070d; }
.rider-zoom > span { color: var(--muted); }
.pitch-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-top: 6px; }
.pitch legend { margin-bottom: 10px; }
.pitch .chips span { min-height: 36px; padding: 0 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.pitch-out { display: grid; gap: 2px; font-size: .88rem; font-stretch: 90%; font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.pitch-out b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .pitch-out { text-align: left; } }

/* ---------- Equipe (planta) ---------- */
.crew-plot { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.plot { margin: 0; border: 1px solid var(--line-dim); padding: clamp(12px, 2vw, 24px); background: rgba(10, 17, 32, .6); }
.plot .draw { max-width: none; }
.plot figcaption { color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-dim); }
.draw .seats path { stroke: var(--line-dim); stroke-dasharray: 2 6; fill: none; }
.draw .emit { filter: drop-shadow(0 2px 6px rgba(108, 198, 240, .5)); }
.draw .balloons path { stroke: var(--line); fill: none; }
.draw .balloons circle { fill: var(--ink); stroke: var(--line); }
.draw .balloons circle[r="3"] { fill: var(--line); stroke: none; }
.draw .balloons text { fill: var(--text); font-size: 12px; text-anchor: middle; letter-spacing: 0; }
.crew-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dim); }
.crew-list li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--grid-strong); transition: background-color .3s; }
.crew-list b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s; }
.crew-list li:hover b, .crew-list li.on b { background: var(--cyan); color: var(--ink); box-shadow: none; }
.crew-list h3 { font-size: 1.3rem; } .crew-list p { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.draw .balloons g.on circle:not([r="3"]) { fill: var(--cyan); stroke: var(--cyan); }
.draw .balloons g.on text { fill: var(--ink); }

/* ---------- Configurador ---------- */
.cfg { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--line-dim); background: rgba(10, 17, 32, .7); }
.cfg { align-items: start; }
.cfg-draw { position: sticky; top: 84px; display: flex; flex-direction: column; padding: 24px 0 0; }
.cfg-fields { border-left: 1px solid var(--line-dim); }
.cfg-draw canvas { width: 100%; aspect-ratio: 16 / 10; display: block; }
.cfg-readout { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 24px 0; padding: 14px 0 18px; border-top: 1px solid var(--line-dim); font-size: .88rem; font-stretch: 90%; font-variant-numeric: tabular-nums; color: var(--muted); }
.cfg-readout b { color: var(--text); font-weight: 600; }
.cfg-fields { padding: clamp(22px, 3vw, 40px); display: grid; gap: 26px; align-content: start; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .range label, .field label { display: flex; justify-content: space-between; width: 100%; font-weight: 600; font-stretch: 88%; margin-bottom: 12px; color: var(--text); }
.range output { color: var(--cyan); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-dim); color: var(--muted); font-size: .94rem; font-stretch: 90%; transition: all .3s var(--ease); }
.chips label:hover span { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.chips input:checked + span { background: rgba(108, 198, 240, .12); color: #fff; box-shadow: inset 0 0 0 1px var(--cyan); }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) var(--fill, 50%), #22345a var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: #22345a; }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(108, 198, 240, .25); transition: box-shadow .3s; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(108, 198, 240, .25); }
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(108, 198, 240, .3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input { width: 100%; min-height: 46px; padding: 0 12px; background: #0b1424; border: 1px solid var(--line-dim); border-radius: 3px; color-scheme: dark; transition: border-color .3s; }
.field input::placeholder { color: #7d90ad; }
.field input:hover { border-color: var(--line); } .field input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(108, 198, 240, .2); }
.fine { font-size: .82rem; color: var(--muted); margin-top: -12px; }

/* ---------- Base ---------- */
.base { position: relative; max-width: none; padding-bottom: var(--sec); overflow: hidden; }
.base-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.base h2 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5.6rem); font-stretch: 66%; max-width: 15ch; }
.base-inner > p { margin-top: 24px; color: var(--muted); max-width: 52ch; font-size: 1.1rem; }
#route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; pointer-events: none; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line-dim); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); background: #070c18; }
.foot-block { padding: 40px var(--gut); border-right: 1px solid var(--line-dim); }
.foot-block img { height: 34px; width: auto; }
.foot-block p { margin-top: 18px; color: var(--muted); font-size: .92rem; max-width: 40ch; }
.foot-tb { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.foot-tb div { padding: 40px 22px; border-right: 1px solid var(--line-dim); }
.foot-tb div:last-child { border-right: 0; }
.foot-tb dt { color: var(--line); }
.foot-tb dd { margin: 8px 0 0; font-size: .95rem; }
.foot-tb a { text-decoration: none; } .foot-tb a:hover { color: var(--cyan); text-decoration: underline; }

.wa-float { display: none; }

/* ---------- Reveal ---------- */
.rv { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .sheet.drawing * { animation: none !important; }
  .draw .playhead { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .equip .sec-head { position: static; }
  .tb-nav { display: none; }
  .titleblock { grid-template-columns: auto 1fr auto auto; }
  .tb-menu { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 108px; }
  .hero-stage { order: 2; }
  .sheet { grid-template-columns: 1fr; }
  .sheet-draw { border-right: 0; border-bottom: 1px solid var(--line-dim); }
  .equip-grid { grid-template-columns: 1fr; }
  .cfg { grid-template-columns: 1fr; }
  .cfg-draw { position: static; border-bottom: 1px solid var(--line-dim); padding-top: 12px; }
  .cfg-fields { border-left: 0; }
  .cfg-readout { margin: 4px 20px 0; }
  .crew-plot { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot-block { border-right: 0; border-bottom: 1px solid var(--line-dim); }
}
@media (max-width: 760px) {
  .tb-cta { display: none; }
  .tb-logo img { height: 24px; }
  .sheet-tabs { grid-template-columns: repeat(2, 1fr); }
  .sheet-tabs button:nth-child(2) { border-right: 0; }
  .sheet-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line-dim); }
  .spec-list li { grid-template-columns: 1fr; gap: 2px; }
  .sec-head.row { flex-direction: column; align-items: start; }
  .slide { flex-basis: 92%; }
  .scene { aspect-ratio: 4 / 3; }
  .slide-info { grid-template-columns: 1fr; padding: 20px; }
  .cota { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .cota::before { top: 0; bottom: 0; left: 3px; right: auto; width: 1px; height: auto; transform: scaleY(var(--p, 0)); transform-origin: top; }
  .cota li { padding: 0 0 32px 32px; }
  .cota li::before { display: none; }
  .cota li::after { top: 6px; left: 0; }
  .rider thead { display: none; }
  .rider tbody tr { display: grid; grid-template-columns: 1fr; padding: 12px 0; border-bottom: 1px solid var(--grid-strong); }
  .rider tbody th, .rider tbody td { border: 0; padding: 2px 0; }
  .two { grid-template-columns: 1fr; }
  .foot-tb { grid-template-columns: 1fr 1fr; }
  .foot-tb div { border-bottom: 1px solid var(--line-dim); }
  .foot-tb div:nth-child(2n) { border-right: 0; }
  .stage-hint { display: none; }
  .ticker { height: 56px; }
  #route { opacity: .45; }
  .plot { overflow-x: auto; overscroll-behavior-x: contain; }
  .plot .draw { min-width: 600px; }
  .plot figcaption { position: sticky; left: 0; }
  .wa-float { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--text); color: var(--ink); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .75); }
  .wa-float .ic { width: 26px; height: 26px; }
}
