:root {
  --black: #070809;
  --asphalt: #0b0d0f;
  --panel: #101316;
  --panel-2: #15191d;
  --white: #f2efe7;
  --muted: #9aa0a5;
  --line: rgba(242, 239, 231, 0.16);
  --yellow: #d7ff3f;
  --yellow-soft: rgba(215, 255, 63, 0.12);
  /* variante escura da cor da marca, para uso sobre os fundos claros */
  --lime-dark: #5f7300;
  --red: #ff4935;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --shell: min(1380px, calc(100% - 48px));
  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -50px; z-index: 200; background: var(--yellow); color: var(--black); padding: 10px 16px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 16px; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); background: rgba(7,8,9,.86); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); transition: background .25s, height .25s; }
.site-header.scrolled { background: rgba(7,8,9,.96); height: 72px; }
.header-inner { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: max-content; }
.brand-logo { width: auto; height: 46px; transition: height .25s; }
.site-header.scrolled .brand-logo { height: 40px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.4vw, 42px); }
.site-nav a { position: relative; padding: 31px 0 28px; font: 700 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .9px; color: #d6d6d2; transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 2px; background: var(--yellow); transition: right .25s; }
.site-nav a:hover, .site-nav a.active { color: var(--yellow); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.header-cta { display: inline-flex; align-items: center; gap: 15px; padding: 15px 19px; background: var(--yellow); color: var(--black); font: 800 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .8px; }
.header-cta span { color: var(--red); font-size: 10px; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 950px; padding-top: var(--header-height); isolation: isolate; overflow: hidden; background: var(--black); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #070809 0%, rgba(7,8,9,.88) 24%, rgba(7,8,9,.55) 50%, rgba(7,8,9,.1) 82%), linear-gradient(0deg, #070809 0%, rgba(7,8,9,.42) 30%, transparent 60%); }
.hero-media { position: absolute; inset: var(--header-height) 0 0 0; z-index: -2; background-image: url("assets/hero-team.jpg"); background-size: cover; background-position: 50% 30%; filter: saturate(.74) contrast(1.05) brightness(.72); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 66% 40%, transparent 0 34%, rgba(0,0,0,.42) 82%), linear-gradient(0deg, #070809 0%, transparent 28%); }
.hero-grid { min-height: 865px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(630px, .9fr); grid-template-rows: 1fr auto; align-items: center; padding-top: 86px; padding-bottom: 88px; }
.hero-copy { grid-column: 1; max-width: 740px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; color: #bbbebb; font: 600 12px/1 var(--font-mono); letter-spacing: 2px; text-transform: uppercase; }
.eyebrow::before, .section-kicker::before { content: ""; width: 34px; height: 2px; background: var(--yellow); }
.eyebrow span { color: var(--yellow); }
h1, h2, .display-quote { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: -.025em; }
h1 { max-width: 780px; font-size: clamp(76px, 7.2vw, 122px); line-height: .82; font-style: normal; font-weight: 900; }
h1 em, h2 em { color: var(--yellow); font-style: normal; }
.hero-lead { max-width: 560px; margin: 30px 0 0; color: #c9cbc9; font-size: 18px; line-height: 1.6; }
.hero-lead strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 0 28px; border: 1px solid var(--line); font: 800 16px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.button-primary:hover { background: var(--white); border-color: var(--white); }
.button-ghost { background: rgba(7,8,9,.45); color: var(--white); }
.button-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.timing-card { grid-column: 1 / -1; align-self: end; display: grid; grid-template-columns: 1.15fr 1.55fr 1fr; border: 1px solid var(--line); background: rgba(5,6,7,.82); backdrop-filter: blur(12px); box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.timing-card > div { min-height: 142px; padding: 25px 32px; display: flex; flex-direction: column; justify-content: center; }
.timing-card > div + div { border-left: 1px solid var(--line); }
.label { display: block; margin-bottom: 12px; color: #b9bdba; font: 600 11px/1 var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; }
.timing-event strong { margin-bottom: 8px; color: var(--yellow); font: 800 27px/1 var(--font-display); text-transform: uppercase; letter-spacing: .8px; }
.timing-event > span:not(.label) { font: 600 13px/1.4 var(--font-mono); }
.timing-event small { margin-top: 9px; color: #9da19e; font: 500 10px/1.4 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.countdown { display: flex; align-items: flex-start; gap: 11px; color: var(--yellow); font-family: var(--font-mono); }
.countdown div { min-width: 66px; text-align: center; }
.countdown b { display: block; font-size: clamp(35px, 3.2vw, 54px); font-weight: 400; line-height: 1; }
.countdown small { display: block; margin-top: 10px; color: #c4c6c4; font: 600 9px/1 var(--font-body); text-transform: uppercase; letter-spacing: 1px; }
.countdown i { font-size: 34px; font-style: normal; line-height: .8; }
.timing-status strong { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--font-display); text-transform: uppercase; }
.timing-status strong i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 15px var(--yellow); animation: pulse 1.6s infinite; }
.timing-status a { margin-top: 17px; color: var(--yellow); font: 600 12px/1 var(--font-mono); text-transform: uppercase; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 28px; height: 45px; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; background: var(--yellow); border-radius: 2px; animation: scroll 1.8s infinite; }

.section { position: relative; padding: 130px 0; }
.section::after { content: ""; position: absolute; left: max(24px, calc((100% - 1380px)/2)); right: max(24px, calc((100% - 1380px)/2)); bottom: 0; height: 1px; background: var(--line); }
.manifesto { background: var(--white); color: var(--asphalt); }
.manifesto::after { background: rgba(11,13,15,.18); }
.manifesto-grid { display: grid; grid-template-columns: .6fr 1.7fr .8fr; align-items: start; gap: 70px; }
.manifesto .section-kicker { color: #4d5357; }
.manifesto-copy { max-width: 760px; }
.display-quote { max-width: 750px; font-size: clamp(58px, 6vw, 102px); font-weight: 900; line-height: .88; }
.manifesto-copy p:not(.display-quote) { max-width: 640px; margin: 30px 0 0; color: #383d40; font-size: 17px; line-height: 1.7; }
.manifesto-stamp { border-left: 1px solid rgba(11,13,15,.2); padding-left: 38px; }
.manifesto-stamp img { width: 100%; max-width: 215px; height: auto; }
.manifesto-stamp span { display: block; margin-top: 26px; color: var(--lime-dark); font: 900 clamp(23px, 1.9vw, 30px)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }

.team { background: var(--black); }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 80px; margin-bottom: 68px; }
.section-heading h2, .rail-heading h2, .contact h2 { font-size: clamp(64px, 6.2vw, 110px); font-weight: 900; line-height: .84; }
.section-heading > p { max-width: 520px; margin: 0 0 3px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.prep-visual { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.prep-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,9,.85), transparent 55%); pointer-events: none; }
.prep-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.75); }
.image-caption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; color: var(--yellow); font: 500 11px/1 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.driver-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.driver-card { position: relative; min-height: 470px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s, transform .25s; }
.driver-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(.3) saturate(.85) brightness(.82); transition: transform .5s, filter .5s; }
.driver-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5,6,7,.95) 6%, rgba(5,6,7,.45) 42%, transparent 72%); }
.driver-card:hover { transform: translateY(-4px); border-color: rgba(215,255,63,.7); }
.driver-card:hover img { transform: scale(1.05); filter: grayscale(0) saturate(1) brightness(.9); }
.driver-card > span, .driver-card h3 { position: relative; z-index: 2; }
.driver-card > span { color: var(--yellow); font: 500 12px/1 var(--font-mono); }
.driver-card h3 { margin: 12px 0 0; font: 800 26px/1.05 var(--font-display); text-transform: uppercase; }

.race { background: #0b0d0f; }
.race-panel { border: 1px solid var(--line); background: var(--panel); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 28px; border-bottom: 1px solid var(--line); }
.panel-head span { color: var(--muted); font: 600 11px/1 var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; }
.panel-head small { color: var(--yellow); font: 500 10px/1 var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; }
.race-dashboard { display: grid; grid-template-columns: 1fr 1.35fr; }
.race-dashboard > div { min-height: 268px; padding: 38px; }
.race-dashboard > div + div { border-left: 1px solid var(--line); }
.race-dashboard span { display: block; color: var(--muted); font: 600 11px/1 var(--font-mono); letter-spacing: 1.4px; text-transform: uppercase; }
.race-name { display: flex; flex-direction: column; justify-content: center; }
.race-name strong { margin-top: 24px; color: var(--yellow); font: 900 clamp(36px, 3.1vw, 50px)/.92 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; }
.race-name small { margin-top: 20px; color: var(--muted); font: 500 11px/1.4 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.race-meta { display: grid; grid-template-columns: repeat(2, 1fr); }
.race-meta div { padding: 25px 28px; }
.race-meta div:nth-child(odd) { border-right: 1px solid var(--line); }
.race-meta div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.race-meta strong { display: block; margin-top: 17px; font: 800 29px/1 var(--font-display); }

.results { margin-top: 78px; border: 1px solid var(--line); background: var(--panel); }
.results-list { list-style: none; margin: 0; padding: 0; }
.results-list li { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 26px; padding: 25px 28px; }
.results-list li + li { border-top: 1px solid var(--line); }
.results-list b { color: #d8dad7; font: 400 46px/1 var(--font-mono); letter-spacing: -3px; }
.results-list b sup { font-size: 17px; letter-spacing: 0; vertical-align: super; }
.results-list strong { display: block; font: 800 27px/1.05 var(--font-display); text-transform: uppercase; }
.results-list small { display: block; margin-top: 9px; color: var(--muted); font: 500 11px/1.4 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.results-list > li > span { color: #c3c6c3; font: 500 11px/1 var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; }
.result-highlight { background: linear-gradient(90deg, var(--yellow-soft), transparent 58%); }
.result-highlight b { color: var(--yellow); }

.preparation { background: var(--black); }
.prep-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.prep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-card { min-height: 370px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); background: var(--panel); transition: transform .25s, border-color .25s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--yellow); }
.feature-index { color: var(--muted); font: 500 11px/1 var(--font-mono); }
.feature-icon { width: 60px; height: 60px; display: grid; place-items: center; margin-top: 45px; border: 1px solid rgba(215,255,63,.45); color: var(--yellow); font: 400 36px/1 var(--font-mono); }
.feature-card h3 { margin: 42px 0 14px; font: 800 37px/1 var(--font-display); text-transform: uppercase; }
.feature-card p { margin: 0 0 auto; color: var(--muted); font-size: 14px; line-height: 1.65; }

.content-rail { background: var(--white); color: var(--asphalt); }
.content-rail::after { background: rgba(11,13,15,.18); }
.rail-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 55px; }
.rail-heading .section-kicker { color: #505558; }
/* sobre os fundos claros o amarelo tem a mesma luminancia do creme e deixa de contrastar */
.manifesto .section-kicker::before, .rail-heading .section-kicker::before { background: var(--lime-dark); }
/* inline-block + line-height proprio: sem isto a caixa amarela fica mais alta do que
   a linha (line-height .84) e sobrepoe-se a linha de cima quando o titulo quebra */
.content-rail h2 { line-height: .95; }
.content-rail h2 em { display: inline-block; line-height: .88; padding: .08em .1em .1em; color: var(--black); background: var(--yellow); }
.rail-heading h2 { font-size: clamp(64px, 6vw, 100px); }
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.story-card { position: relative; min-height: 410px; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; overflow: hidden; background: #111; color: var(--white); }
.story-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5,6,7,.98), transparent 65%); }
.story-card::after { content: "→"; position: absolute; z-index: 3; top: 20px; right: 20px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); color: var(--yellow); transition: background .25s, color .25s; }
.story-card:hover::after { background: var(--yellow); color: var(--black); }
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.75); transition: transform .5s, filter .5s; }
.story-card:hover img { transform: scale(1.05); filter: grayscale(0) brightness(.8); }
.story-card span, .story-card strong { position: relative; z-index: 2; }
.story-card span { color: var(--yellow); font: 600 10px/1 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.story-card strong { margin-top: 10px; font: 800 31px/1 var(--font-display); text-transform: uppercase; }

.partners { background: #0b0d0f; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
/* o canto cortado vive no wrapper, que faz de moldura; o interior repete o recorte 1px mais dentro */
.tier-card { --cut: 28px; --edge: rgba(242,239,231,.18); position: relative; padding: 1px; background: var(--edge); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); transition: background .3s, transform .3s; }
.tier-card:hover { --edge: rgba(215,255,63,.6); transform: translateY(-7px); }
.tier-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 34px 30px 30px; overflow: hidden; background: linear-gradient(158deg, var(--panel-2), var(--asphalt) 60%); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.tier-inner > * { position: relative; z-index: 1; }

.tier-featured { --edge: var(--yellow); margin: -20px 0; filter: drop-shadow(0 26px 60px rgba(215,255,63,.1)); }
.tier-featured:hover { --edge: var(--yellow); }
.tier-featured .tier-inner { padding-top: 62px; background: linear-gradient(158deg, rgba(215,255,63,.13), transparent 34%), linear-gradient(158deg, var(--panel-2), var(--asphalt) 60%); }
.tier-flag { position: absolute; top: 0; left: 0; padding: 9px 22px 9px 30px; background: var(--yellow); color: var(--black); font: 700 10px/1 var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%); }

.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tier-level { color: var(--muted); font: 600 11px/1 var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; }
.tier-featured .tier-level { color: var(--yellow); }
.tier-steps { display: inline-flex; gap: 5px; }
.tier-steps i { width: 17px; height: 3px; background: rgba(242,239,231,.2); transform: skew(-20deg); transition: background .25s; }
.tier-steps i.on { background: var(--yellow); }

.tier-card h3 { margin: 20px 0 0; font: 900 clamp(40px, 3.6vw, 56px)/.95 var(--font-display); text-transform: uppercase; letter-spacing: -.025em; }
.tier-card > .tier-inner > p { margin: 16px 0 0; max-width: 34ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.tier-card ul { list-style: none; margin: 28px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(242,239,231,.12); display: grid; gap: 15px; }
.tier-card li { position: relative; padding-left: 23px; color: #d2d4d1; font-size: 14px; line-height: 1.5; }
.tier-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; background: rgba(215,255,63,.4); transform: skew(-20deg); }
.tier-featured li::before { background: var(--yellow); }
.tier-card li strong { color: var(--white); font-weight: 700; }
.tier-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 26px; padding-top: 30px; }
.tier-tags span { padding: 7px 11px; border: 1px solid rgba(242,239,231,.14); color: #a9ada9; font: 500 9px/1 var(--font-mono); letter-spacing: 1.1px; text-transform: uppercase; }
.tier-card .button { width: 100%; }
.tier-ghost { position: absolute; z-index: 0 !important; right: -18px; bottom: -46px; color: rgba(242,239,231,.04); font: italic 900 210px/.7 var(--font-display); letter-spacing: -14px; pointer-events: none; }
.tier-featured .tier-ghost { color: rgba(215,255,63,.07); }

/* fundo branco porque os logotipos dos parceiros vem em cores proprias e alguns
   sao escuros: sobre o fundo da seccao desapareceriam */
.partners-current { margin-top: 76px; padding-top: 44px; border-top: 1px solid var(--line); }
.partners-current > span { display: block; margin-bottom: 24px; color: var(--muted); font: 600 11px/1 var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; }
.partner-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.partner-logos li { flex: 0 1 calc((100% - 32px) / 3); min-width: 190px; min-height: 150px; display: grid; place-items: center; padding: 26px 32px; background: #fff; border: 1px solid var(--line); transition: transform .25s; }
.partner-logos li:hover { transform: translateY(-4px); }
.partner-logos img { max-width: 100%; max-height: 110px; width: auto; height: auto; }

.contact { background: var(--yellow); color: var(--black); }
.contact::after { background: rgba(11,13,15,.22); }
.contact .section-kicker { color: #3b420d; }
.contact .section-kicker::before { background: var(--black); }
.contact h2 em { color: var(--black); }
.contact-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 90px; align-items: end; }
.contact-actions p { max-width: 520px; margin: 0 0 28px; font-size: 16px; line-height: 1.65; }
.contact-actions .button-primary { background: var(--black); border-color: var(--black); color: var(--white); text-transform: lowercase; }
.contact-actions .button-primary:hover { background: var(--white); color: var(--black); }
.contact-actions small { display: block; margin-top: 16px; max-width: 460px; color: rgba(11,13,15,.65); font-size: 10px; line-height: 1.5; }

.site-footer { padding: 75px 0 35px; background: var(--black); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 70px; }
.footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .brand-logo { height: 66px; }
.footer-brand small { font: 600 9px/1 var(--font-body); letter-spacing: 3.4px; color: #c7c9c6; }
.footer-inner > p { margin: 0; color: var(--muted); font: 500 16px/1.55 var(--font-body); }
.footer-inner > p strong { color: var(--yellow); }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 15px 35px; }
.footer-links a { color: #c9cbc8; font: 700 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .8px; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--line); color: #747a7d; font: 500 9px/1 var(--font-mono); letter-spacing: 1px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 10px var(--yellow); } 50% { opacity: .35; box-shadow: 0 0 22px var(--yellow); } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 40px, 1060px); }
  .header-inner { grid-template-columns: auto auto 1fr; }
  .header-cta { display: none; }
  .site-nav { justify-content: flex-end; gap: 22px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { background-position: 54% 24%; }
  .timing-card { grid-template-columns: 1fr 1.5fr; }
  .timing-status { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); min-height: 100px !important; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; }
  .timing-status .label, .timing-status a { margin: 0; }
  .section-heading { gap: 40px; }
  /* 6 colunas para os cinco pilotos preencherem duas linhas sem espacos vazios: 3 + 2 */
  .driver-grid { grid-template-columns: repeat(6, 1fr); }
  .driver-card { grid-column: span 2; }
  .driver-card:nth-child(4), .driver-card:nth-child(5) { grid-column: span 3; }
  .prep-layout { grid-template-columns: 1.15fr .85fr; gap: 16px; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-inner { padding: 30px 24px 26px; }
  .tier-featured .tier-inner { padding-top: 58px; }
}

@media (max-width: 900px) {
  :root { --header-height: 72px; --shell: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand-logo { height: 38px; }
  .site-header.scrolled .brand-logo { height: 34px; }
  .menu-toggle { position: relative; z-index: 3; width: 42px; height: 42px; display: grid; align-content: center; gap: 5px; padding: 9px; background: transparent; border: 1px solid var(--line); color: white; }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding: 90px 32px 40px; background: rgba(7,8,9,.98); transform: translateX(100%); transition: transform .3s; }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { width: 100%; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 35px; }
  .site-nav a::after { display: none; }
  /* em ecra estreito a foto 16:9 usada como fundo ficava reduzida a um piloto:
     passa a ocupar uma faixa propria, no seu proprio racio, acima do texto */
  .hero { min-height: auto; }
  .hero::before { display: none; }
  .hero-media { position: relative; z-index: 0; inset: auto; width: 100%; aspect-ratio: 1672 / 941; opacity: 1; background-position: center; filter: saturate(.85) contrast(1.03) brightness(.92); }
  .hero-media::after { background: linear-gradient(0deg, #070809 0%, rgba(7,8,9,.35) 26%, transparent 55%); }
  .hero-grid { min-height: auto; display: block; padding-top: 34px; padding-bottom: 55px; }
  /* em touch o indicador de scroll nao acrescenta nada e chocava com o cartao */
  .scroll-cue { display: none; }
  .hero-copy { max-width: 690px; }
  h1 { font-size: clamp(65px, 14vw, 102px); }
  .timing-card { margin-top: 85px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-stamp { border-left: 0; border-top: 1px solid rgba(11,13,15,.2); padding: 35px 0 0; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .prep-layout { grid-template-columns: 1fr; }
  .driver-grid { grid-template-columns: repeat(2, 1fr); }
  .driver-card, .driver-card:nth-child(4) { grid-column: auto; }
  .driver-card:nth-child(5) { grid-column: span 2; }
  .prep-visual { min-height: 520px; }
  .prep-visual img { object-position: 50% 28%; }
  .race-dashboard { grid-template-columns: 1fr 1.25fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; gap: 16px; }
  .tier-featured { margin: 0; }
  .tier-card > .tier-inner > p { max-width: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-self: end; }
  .footer-inner > p { grid-row: 2; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 24px); }
  .brand-logo { height: 33px; }
  .site-header.scrolled .brand-logo { height: 30px; }
  .footer-brand .brand-logo { height: 54px; }
  .hero-grid { padding-top: 26px; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: 64px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .timing-card { grid-template-columns: 1fr; margin-top: 65px; }
  .timing-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .timing-status { grid-column: auto; display: flex !important; align-items: flex-start; gap: 0; min-height: 142px !important; }
  .timing-status .label { margin-bottom: 12px; }
  .timing-status a { margin-top: 17px; }
  .countdown { justify-content: space-between; gap: 3px; }
  .countdown div { min-width: 50px; }
  .countdown b { font-size: 32px; }
  .countdown i { font-size: 26px; }
  .section { padding: 90px 0; }
  .display-quote { font-size: 53px; }
  .section-heading { margin-bottom: 45px; }
  .section-heading h2, .rail-heading h2, .contact h2 { font-size: 58px; }
  .driver-grid { grid-template-columns: 1fr; }
  .driver-card, .driver-card:nth-child(5) { grid-column: auto; min-height: 430px; }
  .race-dashboard { grid-template-columns: 1fr; }
  .race-dashboard > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .race-dashboard > div { min-height: 0; padding: 30px 22px; }
  .race-name strong { margin-top: 18px; }
  .panel-head { padding: 17px 20px; }
  .results-list li { grid-template-columns: 62px 1fr; gap: 18px; padding: 22px 20px; }
  .results-list b { font-size: 34px; letter-spacing: -2px; }
  .results-list strong { font-size: 21px; }
  .results-list > li > span { grid-column: 2; margin-top: 10px; white-space: normal; }
  .race-meta { grid-template-columns: 1fr; }
  .race-meta div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .race-meta div:last-child { border-bottom: 0; }
  .prep-grid, .story-grid { grid-template-columns: 1fr; }
  .prep-visual { min-height: 420px; }
  .feature-card { min-height: 330px; }
  .rail-heading { display: block; }
  .rail-heading h2 { margin-top: 25px; }
  .story-card { min-height: 360px; }
  .partner-logos li { flex-basis: 100%; }
  .tier-card { --cut: 22px; }
  .tier-inner { padding: 28px 22px 24px; }
  .tier-featured .tier-inner { padding-top: 56px; }
  .tier-ghost { font-size: 165px; bottom: -36px; }
  .contact-actions .button { font-size: 14px; padding-inline: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
  .footer-inner > p { grid-row: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
