/* ==========================================================
   PEDRO PERDONCINI #117 — Identidade visual
   Asfalto + amarelo de largada + turquesa
   ========================================================== */
:root {
  --ink: #07080a;
  --asphalt: #0e1013;
  --carbon: #15181d;
  --line: #262a31;
  --mute: #8a909b;
  --text: #eef0f3;
  --accent: #e4ff2b;
  --accent-deep: #b8cc00;
  --accent2: #00e0c0;
  --amber: #ffb400;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink); color: var(--text); font-family: var(--body);
  font-size: 16px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.red { color: var(--accent); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
::selection { background: var(--accent); color: var(--ink); }

/* grain */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; font-family: var(--display); font-weight: 800; font-size: 18px;
  letter-spacing: .06em; text-transform: uppercase; position: relative;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--accent); color: var(--ink); }
.btn-red:hover { background: #efff70; }
.btn-ghost { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.btn-ghost:hover { background: var(--text); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 15px; --cut: 8px; }
.btn-block { width: 100%; }

/* ==========================================================
   LOADER — tela amarela, só o 117 (ponto → traço → preenchido → sobe)
   ========================================================== */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--accent); color: var(--ink); display: grid; place-items: center;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
#loader.out { transform: translateY(-100%); }
#loader::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14vh; background: var(--accent); border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleY(0); transform-origin: top; transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
#loader.out::after { transform: scaleY(1); }
.ld-center { position: relative; width: min(46vw, 260px); aspect-ratio: 300 / 140; display: grid; place-items: center; }
.ld-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: lddot 1.1s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes lddot { 0% { transform: scale(0); } 25% { transform: scale(1); } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(18); opacity: 0; } }
.ld-mark { width: 100%; overflow: visible; }
.ld-mark text { font-family: var(--display); font-weight: 900; font-size: 150px; letter-spacing: -2px; fill: var(--ink); fill-opacity: 0;
  stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: lddraw 1.1s .55s cubic-bezier(.6, 0, .3, 1) forwards, ldfill .45s 1.45s ease-out forwards; }
@keyframes lddraw { to { stroke-dashoffset: 0; } }
@keyframes ldfill { to { fill-opacity: 1; } }
#loader.out .ld-center { transform: translateY(-30px); opacity: 0; transition: transform .6s ease-in, opacity .4s ease-in; }
.ld-foot { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; padding: 0 max(16px, 3vw); font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.ld-skip { position: absolute; top: 18px; right: max(16px, 3vw); font-size: 10px; letter-spacing: .14em; opacity: .45; padding: 6px; color: var(--ink); }
.ld-skip:hover { opacity: 1; }
#loader.fast .ld-dot { animation-duration: .35s; }
#loader.fast .ld-mark text { animation: lddraw .4s .1s ease-out forwards, ldfill .25s .35s ease-out forwards; }

/* ==========================================================
   NAV + HUD
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 30px; padding: 16px max(16px, calc((100vw - var(--wrap)) / 2));
  transition: background .3s, padding .3s, transform .4s var(--ease);
}
.nav.solid { background: rgba(7,8,10,.82); backdrop-filter: blur(14px); padding-block: 10px; border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; }
.brand-num { background: var(--accent); color: var(--ink); padding: 2px 8px 0; font-size: 22px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.brand-name { font-size: 20px; letter-spacing: .1em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.burger { display: none; width: 40px; height: 40px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); transition: transform .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.hud {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
  opacity: 0; transition: opacity .5s;
}
body.ready .hud { opacity: 1; }
.hud-speed { position: relative; width: 86px; }
.hud-speed svg { width: 100%; overflow: visible; }
.hud-speed path { fill: none; stroke-width: 7; stroke-linecap: butt; }
.g-bg { stroke: rgba(255,255,255,.1); stroke-dasharray: 3 3; }
.g-fg { stroke: var(--accent); stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset .2s linear; }
.hud-kmh { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; line-height: 1; }
.hud-kmh b { font-family: var(--display); font-size: 24px; display: block; }
.hud-kmh span { font-family: var(--mono); font-size: 8px; color: var(--mute); letter-spacing: .15em; }
.hud-lap { display: flex; flex-direction: column; align-items: center; font-size: 9px; color: var(--mute); }
.hud-lap b { color: var(--text); font-size: 11px; }
.hud-track { width: 4px; height: 160px; background: rgba(255,255,255,.1); position: relative; }
.hud-fill { position: absolute; top: 0; left: 0; right: 0; height: 0; background: linear-gradient(var(--accent2), var(--accent)); }
.hud-car { position: absolute; left: 50%; top: 0; width: 12px; height: 18px; margin: -9px 0 0 -6px; background: var(--accent); clip-path: polygon(50% 100%, 100% 30%, 100% 0, 0 0, 0 30%); box-shadow: 0 0 10px var(--accent); }
.hud-sector { color: var(--accent2); font-size: 11px; border: 1px solid rgba(0,224,192,.4); padding: 2px 6px; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; filter: grayscale(.3) contrast(1.1); }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 15%, rgba(7,8,10,.4) 60%, var(--ink)), linear-gradient(0deg, var(--ink), transparent 40%); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 70% at 75% 40%, rgba(228,255,43,.22), transparent 60%), radial-gradient(40% 40% at 10% 90%, rgba(0,224,192,.06), transparent 70%);
}
.hero-num {
  position: absolute; right: -4vw; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 900; font-size: clamp(260px, 48vw, 760px); line-height: .75;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.08); letter-spacing: -.02em; user-select: none;
}
.speedlines { position: absolute; inset: 0; overflow: hidden; }
.speedlines::before, .speedlines::after {
  content: ''; position: absolute; left: -50%; width: 200%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: streak 2.2s linear infinite;
}
.speedlines::before { top: 30%; }
.speedlines::after { top: 72%; animation-delay: 1.1s; animation-duration: 1.6s; }
@keyframes streak { from { transform: translateX(-60%) scaleX(.2); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(60%) scaleX(.6); opacity: 0; } }
.checker {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28px; opacity: .9;
  background: conic-gradient(var(--text) 25%, var(--ink) 0 50%, var(--text) 0 75%, var(--ink) 0) 0 0 / 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .12;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .9fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent2); margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); animation: blink 1.2s infinite; }
.hero-title { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 11vw, 150px); line-height: .82; letter-spacing: -.01em; text-transform: uppercase; display: flex; flex-direction: column; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.hero-motto { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); color: var(--accent); margin: 22px 0 14px; letter-spacing: .04em; text-transform: uppercase; }
.hero-text { max-width: 560px; color: #c7cbd2; font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.driver-card {
  position: relative; padding: 24px; background: linear-gradient(160deg, rgba(21,24,29,.92), rgba(10,11,14,.92));
  border: 1px solid var(--line); backdrop-filter: blur(6px);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.driver-card::before { content: ''; position: absolute; top: 0; left: 24px; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--amber), var(--accent2)); }
.dc-head { display: flex; justify-content: space-between; color: var(--mute); font-size: 10px; }
.dc-lvl { color: var(--accent2); }
.dc-num { font-family: var(--display); font-weight: 900; font-size: 92px; line-height: 1; margin: 6px 0 4px; color: var(--accent); }
.dc-meta { list-style: none; display: grid; gap: 6px; font-size: 11px; margin-bottom: 20px; }
.dc-meta li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.dc-meta li span:first-child { color: var(--mute); }
.dc-meta li span:last-child { text-align: right; }
.dc-attrs { display: grid; gap: 12px; }
.attr-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.attr-top b { color: var(--accent2); }
.attr-bar { height: 8px; background: rgba(255,255,255,.07); display: flex; gap: 2px; }
.attr-bar i { flex: 1; background: rgba(255,255,255,.08); transition: background .3s; }
.attr-bar i.on { background: var(--accent); }
.attr-bar i.on.hi { background: var(--accent2); }
.dc-foot { margin-top: 20px; color: var(--accent2); font-size: 11px; }
.dc-foot .blink { color: var(--accent); }
.scroll-cue { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mute); font-size: 10px; }
.scroll-cue i { width: 2px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: cue 1.6s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================
   STATS
   ========================================================== */
.stats { position: relative; border-top: 1px solid var(--line); background: var(--asphalt); overflow-x: clip; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 26px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 96px); line-height: 1; display: block; }
.stat b em { font-style: normal; color: var(--accent); }
.stat > span { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .1em; text-transform: uppercase; }
.stat::before { content: attr(data-i); position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: 10px; color: var(--line); }
.stats-note { color: var(--mute); font-size: 10px; text-transform: none; padding: 0 26px 20px; letter-spacing: .04em; }
.ticker { background: var(--accent); color: var(--ink); overflow: hidden; padding: 12px 0; transform: rotate(-1.2deg) scale(1.03); margin: 10px 0 -14px; position: relative; z-index: 2; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ticker-track span::after { content: '◆'; margin-left: 40px; color: var(--ink); font-size: 16px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   SECTION HEADS
   ========================================================== */
section { position: relative; }
.sec-head { margin-bottom: 44px; max-width: 760px; }
.sec-idx { color: var(--accent); display: inline-block; margin-bottom: 14px; }
.sec-head h2, .contact-title { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 7vw, 96px); line-height: .88; text-transform: uppercase; letter-spacing: -.005em; }
.sec-head p { color: var(--mute); margin-top: 14px; font-size: 17px; max-width: 560px; }

/* ==========================================================
   DOCUMENTARY PLAYER
   ========================================================== */
.doc { padding: 150px 0 120px; }
.doc::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 40%, rgba(228,255,43,.08), transparent 70%); pointer-events: none; }
.player-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.doc.theater .player-layout { grid-template-columns: 1fr; }
.player { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); overflow: hidden; }
.player:fullscreen { border: 0; }
/* O iframe é 120px mais alto que a moldura: o vídeo continua ocupando 100% da largura,
   mas a barra de título, o canal e o logo do YouTube ficam fora da área visível. */
.player-frame { position: absolute; left: 0; right: 0; top: -60px; bottom: -60px; overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.player-click { position: absolute; inset: 0; z-index: 2; cursor: pointer; display: none; }
.player.started .player-click { display: block; }
.player-pause { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,8,10,.92), rgba(7,8,10,.75)), repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 2px, transparent 2px 4px); color: var(--text); }
.player.started.paused .player-pause { display: flex; }
.pp-pause-icon { width: 84px; height: 84px; display: grid; place-items: center; background: var(--accent); color: var(--ink); clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%); }
.pp-pause-icon svg { width: 34px; height: 34px; margin-left: 4px; }
.player-loading { position: absolute; z-index: 2; left: 20px; top: 18px; display: none; align-items: center; gap: 8px; font-size: 11px; color: var(--accent); pointer-events: none; }
.player-loading i { width: 12px; height: 12px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.player.started.buffering .player-loading { display: flex; }
.player-poster { position: absolute; inset: 0; z-index: 3; cursor: pointer; transition: opacity .6s, visibility .6s; }
.player.started .player-poster { opacity: 0; visibility: hidden; }
.pp-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 6s var(--ease); filter: saturate(.8) contrast(1.1); }
.player-poster:hover .pp-bg { transform: scale(1.1); }
.pp-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.15) 55%, rgba(0,0,0,.45)), repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); }
.pp-hud { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 11px; }
.pp-hud span:first-child { color: var(--accent); animation: blink 1.4s infinite; }
.pp-play {
  position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px;
  background: var(--accent); color: var(--ink); display: grid; place-items: center;
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%);
  transition: transform .35s var(--ease), background .3s;
}
.pp-play svg { width: 44px; height: 44px; margin-left: 6px; }
.pp-play::after { content: ''; position: absolute; inset: -14px; border: 1px solid rgba(228,255,43,.6); animation: ring 2s infinite; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.player-poster:hover .pp-play { transform: scale(1.08) rotate(-3deg); background: #efff70; }
.pp-title { position: absolute; left: 28px; bottom: 26px; right: 28px; }
.pp-title small { color: var(--accent2); font-size: 11px; display: block; margin-bottom: 6px; }
.pp-title strong { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 54px); line-height: .9; text-transform: uppercase; display: block; max-width: 70%; }
.pp-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent2); }
.pp-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.pp-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.pp-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.pp-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.player-empty { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; gap: 10px; padding: 20px; background: repeating-linear-gradient(45deg, #0b0c0f 0 12px, #101216 12px 24px); color: var(--mute); }
.player-empty .mono { color: var(--accent); font-size: 18px; animation: blink 1.2s infinite; }
.player-empty a { color: var(--accent2); text-decoration: underline; }

.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 6px;
  padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85));
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.player.started .controls { pointer-events: auto; }
.player.started:hover .controls, .player.started.paused .controls, .player.started.show-ui .controls { opacity: 1; transform: none; }
.c-btn { width: 38px; height: 38px; display: grid; place-items: center; flex: none; transition: color .2s; }
.c-btn svg { width: 22px; height: 22px; }
.c-btn:hover { color: var(--accent2); }
.c-time { font-size: 11px; min-width: 104px; text-align: center; flex: none; }
.c-progress { flex: 1; height: 6px; background: rgba(255,255,255,.18); position: relative; cursor: pointer; transition: height .2s; }
.c-progress:hover { height: 10px; }
.c-buf { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.25); width: 0; }
.c-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; }
.c-fill::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--accent2); transform: rotate(45deg); }
.c-marks i { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--ink); }

.chapters { background: var(--asphalt); border: 1px solid var(--line); padding: 22px; }
.doc.theater .chapters { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.ch-head { color: var(--accent); margin-bottom: 10px; }
.ch-desc { color: var(--mute); font-size: 14px; margin-bottom: 18px; }
.chapters ol { list-style: none; counter-reset: ch; display: grid; gap: 2px; }
.doc.theater .chapters ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.chapters li button {
  counter-increment: ch; width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center;
  text-align: left; padding: 12px 10px; border-left: 2px solid transparent; transition: background .2s, border-color .2s;
}
.chapters li button::before { content: counter(ch, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--mute); }
.chapters li button:hover { background: rgba(255,255,255,.04); }
.chapters li button.active { border-color: var(--accent); background: rgba(228,255,43,.08); }
.chapters li button.active::before { color: var(--accent); }
.ch-title { font-weight: 600; font-size: 14px; }
.ch-time { font-family: var(--mono); font-size: 11px; color: var(--accent2); }
.ch-ep { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.02; text-transform: uppercase; margin-bottom: 12px; }
.doc:has(.eps:not([hidden])) .ch-desc { max-height: 230px; overflow-y: auto; white-space: pre-line; }

/* Episódios — fileira no estilo Netflix */
.eps { margin-top: 44px; position: relative; }
.eps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.eps-head p { color: var(--accent); }
.eps-head span { color: var(--mute); }
.eps-arrows { display: flex; gap: 6px; }
.eps-arrows button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line); background: var(--asphalt); transition: background .2s, color .2s; }
.eps-arrows button:hover { background: var(--accent); color: var(--ink); }
.eps-arrows svg { width: 20px; height: 20px; }
.eps-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 2px 14px; scrollbar-width: none; }
.eps-rail::-webkit-scrollbar { display: none; }
.ep { display: block; text-align: left; color: inherit; scroll-snap-align: start; transition: transform .3s var(--ease); }
.ep:hover { transform: translateY(-5px); }
.ep-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--carbon); border: 1px solid var(--line); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.ep:hover .ep-thumb img { transform: scale(1.06); }
.ep-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,8,10,.42); opacity: 0; transition: opacity .25s; }
.ep-play svg { width: 46px; height: 46px; padding: 9px; background: var(--accent); color: var(--ink); }
.ep:hover .ep-play, .ep:focus-visible .ep-play { opacity: 1; }
.ep-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; font-size: 11px; background: rgba(7,8,10,.86); }
.ep-now { display: none; position: absolute; left: 8px; top: 8px; padding: 3px 7px; font-size: 10px; font-weight: 700; background: var(--accent); color: var(--ink); }
.ep.active .ep-thumb { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ep.active .ep-now { display: block; }
.ep-info { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 12px; align-items: start; }
.ep-num { font-family: var(--display); font-weight: 900; font-size: 42px; line-height: .9; color: var(--mute); }
.ep.active .ep-num { color: var(--accent); }
.ep-text strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ep-text small { display: block; margin-top: 6px; font-size: 11px; color: var(--mute); }

/* Ao vivo */
.live { padding: 120px 0 40px; position: relative; }
.live .sec-head { margin-bottom: 30px; max-width: none; }
.live-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 10px #ff2d2d; animation: blink 1.2s infinite; }
.live-frame { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); overflow: hidden; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-yt { margin-top: 18px; }
.live-pill { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; padding: 11px 15px; font-size: 12px; font-weight: 700; color: var(--text); background: rgba(7,8,10,.92); border: 1px solid #ff2d2d; }
.live-pill:hover { background: #ff2d2d; }
.nav-links a.nav-live { color: var(--text); white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1180px) { .nav-links a.nav-live { display: none; } } /* sem espaço na barra: fica o botão flutuante */

/* ==========================================================
   TIMELINE — horizontal scroll pinned
   ========================================================== */
.tl { height: calc(var(--tl-h, 400) * 1vh); background: var(--asphalt); border-block: 1px solid var(--line); }
.tl-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; }
.tl-sticky::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 80px 80px; pointer-events: none; }
.tl-head { display: flex; justify-content: space-between; align-items: flex-end; position: relative; }
.tl-head .sec-head { margin-bottom: 30px; }
.tl-counter { font-family: var(--display); font-size: 20px; display: flex; gap: 6px; align-items: baseline; margin-bottom: 36px; color: var(--mute); }
.tl-counter b { font-size: 64px; color: var(--text); line-height: 1; letter-spacing: 0; }
.tl-road { position: relative; height: 4px; margin: 0 0 30px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 30px, transparent 30px 50px); }
.tl-road-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.tl-road-fill::after { content: ''; position: absolute; right: -10px; top: -8px; width: 20px; height: 20px; background: var(--accent2); clip-path: polygon(0 0, 100% 50%, 0 100%, 25% 50%); }
.tl-track { display: flex; gap: 26px; padding-left: max(16px, calc((100vw - var(--wrap)) / 2)); padding-right: 30vw; will-change: transform; }
.tl-card {
  flex: none; width: min(380px, 78vw); background: var(--carbon); border: 1px solid var(--line); position: relative;
  padding: 26px 26px 28px; transition: border-color .4s, transform .4s var(--ease), opacity .4s;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  opacity: .5; transform: scale(.96);
}
.tl-card.active { border-color: var(--accent); opacity: 1; transform: none; }
.tl-card .tl-img { height: 170px; margin: -26px -26px 22px; background-size: cover; background-position: center 25%; filter: grayscale(.4); }
.tl-card.active .tl-img { filter: none; }
.tl-year { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.tl-card.active .tl-year { color: var(--accent); -webkit-text-stroke: 0; }
.tl-tag { position: absolute; top: 22px; right: 30px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,224,192,.12); color: var(--accent2); padding: 3px 8px; }
.tl-card h3 { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; margin: 14px 0 10px; }
.tl-card p { color: #b8bdc6; font-size: 15px; }
.tl-cp { position: absolute; bottom: 12px; right: 16px; font-family: var(--mono); font-size: 10px; color: var(--mute); }

/* ==========================================================
   CALENDAR
   ========================================================== */
.cal { padding: 130px 0 60px; }
.cal-list { display: grid; gap: 2px; }
.cal-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: center; padding: 26px; background: var(--asphalt); border-left: 3px solid var(--line); transition: background .3s, border-color .3s; }
.cal-item:hover { background: var(--carbon); border-color: var(--accent); }
.cal-item.next { border-color: var(--accent); }
.cal-idx { font-family: var(--display); font-weight: 900; font-size: 44px; color: var(--line); }
.cal-place { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 44px); text-transform: uppercase; line-height: 1; }
.cal-date { font-family: var(--mono); color: var(--mute); font-size: 13px; margin-top: 4px; }
.cal-status { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--line); }
.cal-item.next .cal-status { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cal-item.done .cal-status { color: var(--mute); }

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery { padding: 80px 0; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.gal-item { aspect-ratio: 4/3; background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: zoom-in; filter: grayscale(.4); transition: filter .4s; }
.gal-item:hover { filter: none; }
.gal-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 90vh; }
.lightbox button { position: absolute; top: 18px; right: 22px; font-size: 26px; }

/* ==========================================================
   SPONSORSHIP
   ========================================================== */
.spon { padding: 130px 0 0; }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 60px; }
.aud { background: var(--asphalt); padding: 30px; display: flex; align-items: baseline; gap: 16px; }
.aud b { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--accent2); }
.aud span { font-family: var(--mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  position: relative; padding: 34px 28px; background: var(--asphalt); border: 1px solid var(--line); display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  transition: transform .4s var(--ease), border-color .3s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--mute); }
.tier.featured { background: linear-gradient(170deg, #22260a, var(--asphalt) 60%); border-color: var(--accent); }
.tier-badge { position: absolute; top: 18px; right: 34px; font-family: var(--mono); font-size: 10px; background: var(--accent); color: var(--ink); padding: 3px 8px; letter-spacing: .1em; }
.tier-lvl { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .1em; }
.tier h3 { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: .95; text-transform: uppercase; margin: 10px 0 6px; }
.tier-price { font-family: var(--mono); color: var(--accent2); font-size: 13px; margin-bottom: 24px; }
.tier ul { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: 15px; color: #c7cbd2; }
.tier li::before { content: '▸'; color: var(--accent); }
.spon-kit { text-align: center; margin-top: 40px; }
.partners { margin-top: 110px; border-top: 1px solid var(--line); padding: 40px 0 50px; }
.partners-head { color: var(--mute); margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.partner { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; color: #5b616c; white-space: nowrap; transition: color .3s; }
.partner:hover { color: var(--text); }
.partner img { height: 46px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .7; transition: .3s; }
.partner:hover img { filter: none; opacity: 1; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { padding: 130px 0; background: linear-gradient(180deg, var(--ink), #111305); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-text { color: var(--mute); font-size: 17px; margin: 22px 0 30px; max-width: 440px; }
.contact-links { list-style: none; display: grid; gap: 12px; }
.contact-links a { display: inline-flex; gap: 12px; align-items: center; color: var(--text); }
.contact-links a:hover { color: var(--accent2); }
.contact-links span { color: var(--accent); width: 90px; }
.lead-form { background: var(--asphalt); border: 1px solid var(--line); padding: 30px; display: grid; gap: 16px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.lf-head { display: flex; justify-content: space-between; color: var(--accent); padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.lead-form label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--text); padding: 14px; font: 15px var(--body); text-transform: none; letter-spacing: 0;
  transition: border-color .2s; border-radius: 0; resize: vertical;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); }
.lead-form .hp { position: absolute; left: -9999px; }
.lf-msg { min-height: 1.4em; text-transform: none; letter-spacing: .02em; font-size: 13px; }
.lf-msg.ok { color: var(--accent2); } .lf-msg.err { color: #ff5a4f; }

.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-in { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; color: var(--mute); }
.footer .small { font-size: 10px; }

/* ==========================================================
   FOTOS RECORTADAS — topo, seleção de piloto, máquina, patrocínio
   ========================================================== */
.hero-visual { position: relative; align-self: stretch; min-height: min(76vh, 700px); display: flex; justify-content: center; align-items: flex-end; margin-bottom: -90px; }
.hv-ring { position: absolute; left: 50%; top: 14%; width: 92%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(0,224,192,.28), rgba(0,224,192,.06) 45%, transparent 68%); }
.hv-ring::before, .hv-ring::after { content: ''; position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(228,255,43,.35); animation: spin 40s linear infinite; }
.hv-ring::after { inset: 20%; border: 2px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent2); animation-duration: 6s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-img { position: relative; z-index: 1; height: min(76vh, 700px); width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
  --fade: linear-gradient(to bottom, #000 70%, transparent 97%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: var(--fade); -webkit-mask-image: var(--fade); mask-composite: intersect; -webkit-mask-composite: source-in; }
.hv-tag { position: absolute; z-index: 2; left: 0; bottom: 130px; background: rgba(7,8,10,.85); border: 1px solid var(--line); padding: 8px 12px; font-size: 11px; backdrop-filter: blur(6px); }
.hv-tag span { background: var(--accent); color: var(--ink); padding: 1px 6px; margin-right: 8px; font-weight: 700; }
.hv-tag b { color: var(--accent); }

.select { padding: 150px 0 110px; background: radial-gradient(50% 60% at 30% 60%, rgba(0,224,192,.12), transparent 70%); }
.select-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 60px; align-items: center; justify-content: center; }
.select-stage { position: relative; height: 660px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.ss-arrows { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; color: var(--mute); }
.ss-arrows > span:not(.ss-label) { color: var(--accent); font-size: 18px; animation: blink 1.6s infinite; }
.ss-label { border: 1px solid var(--line); padding: 6px 12px; }
.ss-img { position: relative; z-index: 2; height: 560px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 26px; animation: idle 3.2s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(0,0,0,.7)); }
@keyframes idle { 50% { transform: translateY(-6px); } }
.ss-platform { position: absolute; bottom: 0; left: 50%; width: 340px; height: 90px; transform: translateX(-50%); }
.ss-platform i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent2); box-shadow: 0 0 30px rgba(0,224,192,.5), inset 0 0 30px rgba(0,224,192,.35); }
.ss-platform i:nth-child(2) { inset: 18% 14%; border-color: var(--accent); box-shadow: 0 0 24px rgba(228,255,43,.4); animation: pulse 2s infinite; }
.ss-platform i:nth-child(3) { inset: -30% -20%; border: 1px dashed rgba(255,255,255,.12); box-shadow: none; }

.machine { padding: 130px 0 110px; overflow: hidden; background: linear-gradient(180deg, var(--ink), var(--asphalt) 40%, var(--ink)); border-block: 1px solid var(--line); }
.m-stage { position: relative; height: clamp(240px, 40vw, 560px); margin-top: -30px; }
.m-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: clamp(200px, 38vw, 560px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(0,224,192,.18); user-select: none; }
.m-lines { position: absolute; inset: 20% 0; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.05) 22px 23px);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.m-img { position: absolute; z-index: 2; left: 50%; bottom: 7%; height: 86%; width: auto; max-width: 92vw; object-fit: contain;
  transform: translateX(calc(-50% + var(--mx, 0px))); transition: opacity .25s, filter .25s; filter: drop-shadow(0 30px 30px rgba(0,0,0,.75)); }
.m-img.swap { opacity: 0; filter: blur(8px); }
.m-floor { position: absolute; left: 10%; right: 10%; bottom: 4%; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,224,192,.35), transparent); filter: blur(6px); }
.m-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 50px; align-items: start; margin-top: 20px; }
.m-views { display: flex; gap: 4px; flex-wrap: wrap; grid-row: span 2; }
.m-views button { padding: 10px 16px; border: 1px solid var(--line); color: var(--mute); font: inherit; letter-spacing: inherit; text-transform: inherit; transition: .2s; }
.m-views button:hover { color: var(--text); border-color: var(--mute); }
.m-views button.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.m-text { color: #c7cbd2; max-width: 620px; }
.m-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; }
.m-specs div { background: var(--carbon); padding: 14px 16px; border-left: 2px solid var(--accent2); }
.m-specs dt { font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: .1em; text-transform: uppercase; }
.m-specs dd { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; }

.spon-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: end; }
.spon-head .sec-head { margin-bottom: 60px; }
.spon-visual { position: relative; display: flex; justify-content: center; }
.spon-visual img { height: 500px; width: auto; max-width: 100%; object-fit: contain; mask-image: linear-gradient(to bottom, #000 75%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
 position: relative; z-index: 1; }
.spon-visual::before { content: ''; position: absolute; left: 50%; top: 18%; width: 90%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(228,255,43,.16), transparent 65%); }
.sv-note { position: absolute; left: -10px; top: 46%; color: var(--accent); background: var(--ink); border: 1px solid var(--accent); padding: 4px 8px; font-size: 10px; transform: rotate(-4deg); }

/* ==========================================================
   REVEAL
   ========================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; } .hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; } .hero .reveal:nth-child(5) { transition-delay: .32s; }
.tier.reveal:nth-child(2) { transition-delay: .1s; } .tier.reveal:nth-child(3) { transition-delay: .2s; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1500px) {
  .hud { right: 8px; transform: translateY(-50%) scale(.8); transform-origin: right center; }
  .wrap { width: min(var(--wrap), 100% - 160px); }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .driver-card { max-width: 460px; }
  .player-layout, .doc.theater .chapters { grid-template-columns: 1fr; }
  .hud { display: none; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .hero-visual { min-height: 0; margin: 0 auto -90px; width: 100%; }
  .hv-img { height: min(62vh, 520px); }
  .hv-tag { bottom: 100px; }
  .select-grid, .spon-head { grid-template-columns: minmax(0, 1fr); }
  .select-stage { height: 560px; }
  .ss-img { height: 470px; }
  .driver-card { margin-inline: auto; width: 100%; }
  .spon-visual { order: -1; }
  .spon-visual img { height: 380px; }
  .spon-head .sec-head { margin-bottom: 40px; }
  .m-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .select { padding: 90px 0 70px; }
  .select-stage { height: 470px; }
  .ss-img { height: 390px; }
  .ss-platform { width: 260px; height: 70px; }
  .machine { padding: 90px 0 70px; }
  .m-stage { margin-top: 0; }
  .m-views button { padding: 8px 12px; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 0; padding: 80px 16px 30px; background: rgba(7,8,10,.97); transform: translateY(-110%); transition: transform .4s var(--ease); z-index: -1; }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .burger { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tiers, .aud-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .lf-row { grid-template-columns: 1fr; }
  /* timeline vira vertical no celular */
  .tl { height: auto !important; }
  .tl-sticky { position: relative; height: auto; padding: 110px 0 80px; }
  .tl-road, .tl-counter { display: none; }
  .tl-track { flex-direction: column; padding: 0 16px; transform: none !important; gap: 16px; }
  .tl-card { width: 100%; opacity: 1; transform: none; }
  .cal-item { grid-template-columns: 1fr auto; padding: 20px; }
  .cal-idx { display: none; }
  .c-time { display: none; }
  .pp-play { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .pp-title strong { max-width: 100%; }
  .doc, .cal, .spon, .contact { padding-top: 90px; }
  .hero-title { font-size: min(64px, 15vw); }
  .sec-head h2, .contact-title { font-size: min(48px, 13vw); }
  #cBack, #cFwd, #cTheater { display: none; }
  .lead-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* sem foto cadastrada: o layout se reorganiza sozinho */
.hero-grid:has(> .hero-visual[hidden]) { grid-template-columns: minmax(0, 1fr); }
.select-grid:has(> .select-stage[hidden]) { grid-template-columns: minmax(0, 560px); }
.select:has(.select-stage[hidden]) { padding-block: 110px 80px; }
.spon-head:has(> .spon-visual[hidden]) { grid-template-columns: minmax(0, 1fr); }
.gal-grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

/* ==========================================================
   HERO — revelação líquida + rolagem que vira quadro
   (--p vai de 0 a 1 conforme a rolagem dentro da hero)
   ========================================================== */
.hx { --p: 0; --mq: 0; --cp: 0; --dk: 0; position: relative; height: 320vh; }
.hx-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: color-mix(in srgb, #f2f1ea calc((1 - var(--dk)) * 100%), #141a12); }   /* claro na abertura → escuro na rolagem */
.hx-topo { position: absolute; inset: -4%; width: 108%; height: 108%; transition: transform .9s var(--ease); }
.hx-stage { position: absolute; left: 50%; bottom: 0; height: min(94vh, 1000px); aspect-ratio: var(--asp, 1.16); max-width: 96vw;
  transform-origin: 50% 100%; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 0px)) scale(var(--s, 1)); will-change: transform; z-index: 2; }
.hx-frame { position: absolute; inset: 0; border-radius: calc(var(--p) * 18px); background: #1f2419; opacity: calc(var(--p) * 5 - .3);
  box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.hx-canvas, .hx-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; touch-action: pan-y; }
.hx-canvas { opacity: 0; transition: opacity .8s; cursor: none; }
.hx-canvas, .hx-fallback { -webkit-mask-image: linear-gradient(to bottom, #000 calc(86% + var(--p) * 14%), transparent); mask-image: linear-gradient(to bottom, #000 calc(86% + var(--p) * 14%), transparent); }
.hx-canvas.ready { opacity: 1; }
.hx-hint { position: absolute; z-index: 3; left: 64%; top: 34%; display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: var(--ink);
  background: var(--accent); padding: 6px 10px; border-radius: 30px; pointer-events: none; transition: opacity .4s, transform .4s; animation: hintfloat 2.4s ease-in-out infinite; }
.hx-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1s infinite; }
.hx-hint.gone { opacity: 0; transform: scale(.8); }
@keyframes hintfloat { 50% { transform: translateY(-6px); } }
/* os textos só entram na fase final da rolagem, ao lado do quadro */
.hx-copy { position: absolute; z-index: 3; left: max(16px, calc((100vw - var(--wrap)) / 2)); top: 50%; max-width: 470px;
  opacity: var(--cp); transform: translateY(calc(-50% + (1 - var(--cp)) * 40px)); pointer-events: none; }
.hx[style*="--cp: 1"] .hx-copy, .hx-copy.on { pointer-events: auto; }
.hx-title { font-family: var(--display); font-weight: 900; font-size: clamp(52px, 6.4vw, 104px); line-height: .84; text-transform: uppercase; display: flex; flex-direction: column; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hx-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hx-text { color: #c7cbd2; font-size: 15px; max-width: 400px; }
.hx-copy .hero-motto { margin: 14px 0 8px; font-size: clamp(18px, 1.8vw, 24px); }
.hx-copy .hero-cta { margin-top: 22px; }
.hx-card { position: absolute; z-index: 3; left: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: 6vh; width: 132px; padding: 12px; display: grid; justify-items: center; gap: 6px; text-align: center;
  background: rgba(7,8,10,.6); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 9px; color: var(--mute);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); opacity: calc(1 - var(--p) * 3); }
.hx-card svg { width: 70px; color: var(--accent2); }
.hx-card b { color: var(--text); font-size: 11px; }
.hx-card-sep { width: 100%; height: 1px; background: rgba(255,255,255,.15); margin: 4px 0; }
.hx-card-badge { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--accent); letter-spacing: 0; }
.hx-card-badge b { color: var(--accent); font-size: 30px; }
.hx-marquee { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; pointer-events: none;
  opacity: var(--mq); }
.hx-row { overflow: hidden; white-space: nowrap; padding-top: .18em; margin-top: -.18em; } /* espaço para acentos (Ã, Ç) */
.hx-track { display: inline-flex; width: max-content; will-change: transform; }
.hx-track span { padding-right: .35em; }
.hx-serif .hx-track { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(80px, 12vw, 200px); line-height: .95; color: var(--accent); text-transform: uppercase; }
.hx-sans .hx-track { font-family: var(--display); font-weight: 900; font-size: clamp(80px, 12vw, 200px); line-height: .9; color: #e7ebdc; text-transform: uppercase; }
.hx .scroll-cue { z-index: 3; opacity: calc(1 - var(--p) * 4); }
@media (max-width: 860px) {
  .hx { height: 190vh; }
  .hx-stage { top: 72px; bottom: auto; width: 100vw; height: auto; max-width: none; aspect-ratio: var(--asp, 1.16); }
  .hx-copy { left: 16px; right: 16px; top: auto; bottom: 22px; max-width: none; transform: translateY(calc((1 - var(--cp)) * 40px)); }
  .hx-title { font-size: min(58px, 14vw); }
  .hx-text, .hx-card { display: none; }
  .hx-hint { left: 60%; top: 30%; }
  .hx-serif .hx-track, .hx-sans .hx-track { font-size: 22vw; }
  .hx .scroll-cue { display: none; }
}

.hx-wirehelmet { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; pointer-events: none; z-index: 2;
  opacity: 0; filter: drop-shadow(0 0 4px rgba(0,224,192,.35)); }
/* entrada: o capacete é "escaneado" de cima para baixo no lugar (sem escorregar), acende e assenta como fantasma */
.hx-wirehelmet.drop { animation: wirescan 1.25s cubic-bezier(.55, .1, .35, 1) forwards, wireglow 2.9s ease-out forwards; }
@keyframes wirescan { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wireglow {
  0% { opacity: 1; filter: drop-shadow(0 0 10px rgba(0,224,192,.9)) brightness(1.6); }
  40% { opacity: 1; }
  46% { opacity: .55; } 50% { opacity: 1; } 55% { opacity: .7; }      /* piscada de holograma ligando */
  70% { opacity: .9; filter: drop-shadow(0 0 4px rgba(0,224,192,.4)) brightness(1); }
  100% { opacity: 0; filter: drop-shadow(0 0 4px rgba(0,224,192,.35)); }   /* some depois de passar */
}
.hx-scanbar { position: absolute; left: 14%; right: 14%; top: 0; height: 2px; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent2) 20%, #fff 50%, var(--accent2) 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(0,224,192,.55), 0 -24px 40px rgba(0,224,192,.12); }
.hx-wirehelmet.drop + .hx-scanbar { animation: scanbar 1.25s cubic-bezier(.55, .1, .35, 1) forwards; }
@keyframes scanbar { 0% { top: 2%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { top: 62%; opacity: 0; } }



/* linhas de velocidade no fundo da hero */
.hx-speed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: rgb(calc(20 + var(--dk) * 210), calc(24 + var(--dk) * 210), calc(20 + var(--dk) * 200)); }
.hx-speed i { position: absolute; left: -60%; height: 1px; width: 55%; background: linear-gradient(90deg, transparent, currentColor 70%, transparent); opacity: 0;
  animation: hxstreak 2.4s linear infinite; }
.hx-speed i:nth-child(1) { top: 14%; animation-duration: 2.1s; }
.hx-speed i:nth-child(2) { top: 27%; animation-duration: 1.6s; animation-delay: .7s; width: 40%; }
.hx-speed i:nth-child(3) { top: 39%; animation-duration: 2.8s; animation-delay: 1.3s; }
.hx-speed i:nth-child(4) { top: 52%; animation-duration: 1.4s; animation-delay: .2s; width: 35%; height: 2px; }
.hx-speed i:nth-child(5) { top: 63%; animation-duration: 2.3s; animation-delay: 1.8s; }
.hx-speed i:nth-child(6) { top: 74%; animation-duration: 1.8s; animation-delay: .9s; width: 45%; }
.hx-speed i:nth-child(7) { top: 85%; animation-duration: 2.6s; animation-delay: 1.5s; }
.hx-speed i:nth-child(8) { top: 92%; animation-duration: 1.5s; animation-delay: .4s; width: 30%; }
@keyframes hxstreak { 0% { transform: translateX(0) scaleX(.3); opacity: 0; } 15% { opacity: .55; } 70% { opacity: .35; } 100% { transform: translateX(300%) scaleX(1); opacity: 0; } }

/* abertura clara: menu, card e indicadores escuros para dar leitura */
body.on-light .nav .brand-name, body.on-light .nav-links a { color: rgba(7,8,10,.62); }
body.on-light .nav .brand-name { color: var(--ink); }
body.on-light .nav-links a:hover, body.on-light .nav-links a.active { color: var(--ink); }
body.on-light .nav.solid { background: rgba(242,241,234,.82); border-bottom-color: rgba(7,8,10,.08); }
body.on-light .burger span { background: var(--ink); }
body.on-light .hud { opacity: 0; }
body.on-light .hx .scroll-cue { color: rgba(7,8,10,.5); }
body.on-light .hx-card { background: rgba(255,255,255,.55); border-color: rgba(7,8,10,.14); color: rgba(7,8,10,.55); }
body.on-light .hx-card b, body.on-light .hx-card-badge, body.on-light .hx-card-badge b { color: var(--ink); }
body.on-light .hx-card-sep { background: rgba(7,8,10,.12); }
body.on-light .hx-card svg { color: #00a892; }
.hx-frame { background: color-mix(in srgb, #e6e4da calc((1 - var(--dk)) * 100%), #1f2419); }
@media (max-width: 860px) { body.on-light .nav-links a { color: var(--text); } }

/* ===== Hero v2: fundo preto, número 117 passando pela câmera, painel em corte diagonal e velocímetro ===== */
.hx { --e: 0; height: 280vh; }
.hx-sticky { background: radial-gradient(120% 90% at 50% 100%, #10150f 0, #050606 60%) !important; }
.hx-marquee { display: none; }
.hx-num { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.hx-num span { font-family: var(--display); font-weight: 900; font-size: min(62vw, 92vh); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(228,255,43,calc(.34 - var(--p) * .3));
  transform: translateY(calc(var(--p) * -6vh)) scale(calc(1 + var(--p) * var(--p) * 3.2)); filter: blur(calc(var(--p) * var(--p) * 10px)); will-change: transform; }
.hx-stripes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: calc(var(--e) * 1.2 - .2); }
.hx-stripes i { position: absolute; top: -20%; bottom: -20%; width: 7vw; transform: skewX(-14deg) translateX(calc((1 - var(--e)) * 70vw + var(--cp) * 19vw)); }
.hx-stripes i:nth-child(1) { left: 37%; background: var(--accent); width: 1.1vw; }
.hx-stripes i:nth-child(2) { left: 39.5%; background: var(--accent2); width: .45vw; transition-delay: .05s; }
.hx-stripes i:nth-child(3) { left: 41%; background: rgba(255,255,255,.07); width: 16vw; }
.hx-stage { clip-path: var(--clip, none); }
.hx-frame { border-radius: 0 !important; opacity: calc(var(--e) * 1.6) !important;
  background: linear-gradient(165deg, #1b2218 0, #0b0d0b 70%) !important; box-shadow: inset 0 -4px 0 var(--accent); }
.hx-copy { filter: blur(calc((1 - var(--cp)) * 10px)); transform: translate(calc((1 - var(--cp)) * -80px), -50%) !important; }
.hx-title .outline { -webkit-text-stroke-color: var(--accent); }
.hx-gauge { position: absolute; z-index: 3; right: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: 5vh; width: 120px; height: 120px; display: grid; place-items: center; text-align: center;
  color: var(--mute); font-size: 9px; letter-spacing: .14em; opacity: calc(1 - var(--cp) * .85); }
.hx-gauge svg { position: absolute; inset: 0; transform: rotate(135deg); }
.hx-gauge circle { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 235.6 314; }
.hx-gauge .g-bg { stroke: rgba(255,255,255,.1); }
.hx-gauge .g-val { stroke: var(--accent); stroke-dashoffset: 235.6; filter: drop-shadow(0 0 6px rgba(228,255,43,.6)); }
.hx-gauge b { font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--text); line-height: 1; margin-top: 10px; }
.hx-gauge span { margin-top: -34px; }
.hx-speed i { opacity: 0; }
.hx-speed { color: #e7ebdc !important; }
@media (max-width: 860px) {
  .hx { height: 200vh; }
  .hx-num span { font-size: 78vw; }
  .hx-gauge { width: 84px; height: 84px; top: 84px; bottom: auto; right: 12px; }
  .hx-gauge b { font-size: 22px; } .hx-gauge span { margin-top: -22px; }
  .hx-copy { transform: translateY(calc((1 - var(--cp)) * 40px)) !important; }
}
.hx-gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hx-gauge b { margin-top: 0; } .hx-gauge span { margin-top: 4px !important; }

@media (max-width: 860px) { .hx-stripes { display: none; } }

/* ===== Hero v3: layout "Netflix" — Pedro à direita, título e sinopse à esquerda ===== */
.hx { height: 220vh; }
.hx-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, #050606 0, rgba(5,6,6,.92) 26%, rgba(5,6,6,.4) 46%, transparent 62%),
              linear-gradient(0deg, #050606 0, transparent 22%); opacity: calc(1 - var(--e) * .7); }
.hx-num { justify-items: end; }
.hx-num span { margin-right: -4vw; }
.hx-card { display: none; }
.hx-copy { max-width: 540px; }
.hx-title { font-size: clamp(60px, 7.4vw, 124px); }
.hx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 16px 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #d9ddd2; }
.hx-meta .hx-top { background: #e50914; color: #fff; font-weight: 800; padding: 4px 7px 3px; border-radius: 3px; letter-spacing: .06em; }
.hx-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--mute); }
.hx-meta em { font-style: normal; color: var(--accent); }
.hx-copy .hero-cta .btn-red { background: #fff; color: #0a0a0a; }
.hx-copy .hero-cta .btn-red:hover { background: var(--accent); }
.hx-copy .hero-cta .btn-ghost { background: rgba(109,109,110,.55); box-shadow: none; color: #fff; }
.hx-copy .hero-cta .btn-ghost:hover { background: rgba(109,109,110,.35); color: #fff; }
.hx-text { color: #e1e4dc; font-size: 16px; max-width: 460px; }
@media (max-width: 860px) {
  .hx { height: 170vh; }
  .hx-shade { background: linear-gradient(0deg, #050606 0, rgba(5,6,6,.85) 38%, transparent 62%); }
  .hx-num { justify-items: center; } .hx-num span { margin-right: 0; }
  .hx-copy { transform: none !important; }
  .hx-title { font-size: min(62px, 15vw); }
  .hx-meta { font-size: 10px; }
}

/* ===== Hero v4: abertura só com o nome + 117 em destaque; o texto entra com a rolagem ===== */
.hx { --rv: 0; --ty: 0px; }
.hx-num span { -webkit-text-stroke: 3px rgba(228,255,43,calc(.8 - var(--p) * .75)); text-shadow: 0 0 60px rgba(228,255,43,calc(.18 - var(--p) * .18)); }
.hx-copy > * { --i: 0; --f: clamp(0, calc(var(--rv) * 2.2 - var(--i) * .3), 1); opacity: var(--f);
  transform: translateY(calc((1 - var(--f)) * 36px)); filter: blur(calc((1 - var(--f)) * 6px)); }
.hx-copy > .eyebrow { --i: 0; } .hx-copy > .hx-meta { --i: 1; } .hx-copy > .hero-motto { --i: 2; }
.hx-copy > .hx-text { --i: 3; } .hx-copy > .hero-cta { --i: 4; }
.hx-copy > .hx-title { opacity: 1; filter: none; transform: translateY(var(--ty)) scale(calc(1.12 - var(--rv) * .12)); transform-origin: 0 50%; }
.hx-title span:first-child { transform: translateX(calc((1 - var(--rv)) * -1.2vw)); }
.hx-title .outline { transform: translateX(calc((1 - var(--rv)) * 2.4vw)); display: block; }
.hx-copy:not(.on) .hero-cta { pointer-events: none; }
@media (max-width: 860px) { .hx-copy > .hx-title { transform: translateY(var(--ty)); } }
.hx-copy > * { --f: clamp(0, calc((var(--rv) - .3 - var(--i) * .13) / .18), 1); }
@media (max-width: 860px) { .hx-copy > * { --f: clamp(0, calc((var(--rv) - .05 - var(--i) * .15) / .25), 1); } }

/* ===== Mobile: foto do Pedro maior (mais alta, laterais vazias cortadas pela tela) ===== */
@media (max-width: 860px) {
  .hx-stage { top: 60px; width: auto; height: min(68svh, 150vw); max-width: none; }
}
