/* 08 · Sportstech Run — "A corrida".
   Pin com o run-film controlado pelo scroll: sinal de largada no arco, 5K/10K pintados no asfalto que
   acendem e passam sob a câmera, nuvem de palavras em 3 profundidades saindo do ponto de fuga,
   manchete + painel no fim da avenida. Fechamento: 2.000 partículas-corredores (meta de projeto). */
#run { padding-block: 0; background: transparent; }

#run .rn-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #02060f; }
#run .rn-media { position: absolute; inset: 0; overflow: hidden; }
#run .rn-cover { position: absolute; left: 50%; top: 50%; width: max(100%, calc(100svh * 16 / 9)); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
#run .rn-film { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
#run .rn-shade {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background:
    linear-gradient(0deg, rgba(2, 8, 22, 0.95) 0%, rgba(2, 8, 22, 0.78) 22%, rgba(2, 8, 22, 0.2) 46%, rgba(2, 8, 22, 0) 58%),
    linear-gradient(90deg, rgba(2, 8, 22, 0.78) 0%, rgba(2, 8, 22, 0.35) 30%, rgba(2, 8, 22, 0) 52%),
    linear-gradient(180deg, rgba(2, 8, 22, 0.55) 0%, rgba(2, 8, 22, 0) 16%);
}
#run .rn-top { position: absolute; left: 0; right: 0; top: 0; height: 22%; pointer-events: none; background: linear-gradient(180deg, rgba(2, 8, 22, 0.72), rgba(2, 8, 22, 0.3) 45%, transparent); }
#run .rn-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(60% 55% at 49% 40%, rgba(220, 255, 250, 0.85), rgba(79, 240, 220, 0.35) 40%, transparent 75%); }
#run .rn-media .concept-tag { top: calc(var(--hud-h) + 10px); bottom: auto; right: clamp(56px, 5vw, 96px); }

/* Sinal de largada pendurado no ápice do arco (coordenadas do quadro) */
#run .rn-gantry { position: absolute; left: 48.7%; top: 11.6%; display: grid; justify-items: center; transform: translateX(-50%); pointer-events: none; }
#run .rn-gantry__wire { width: 2px; height: clamp(14px, 3vh, 30px); background: linear-gradient(180deg, rgba(20, 30, 40, 0.9), rgba(126, 170, 232, 0.6)); }
#run .rn-lamps { display: flex; gap: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(2, 6, 15, 0.88); border: 1px solid rgba(126, 170, 232, 0.35); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7); }
#run .rn-lamps i { width: 15px; height: 15px; border-radius: 50%; background: #16243c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: background 0.15s, box-shadow 0.15s; }
#run .rn-lamps i.is-on { background: #ffb547; box-shadow: 0 0 0 2px rgba(255, 181, 71, 0.25), 0 0 16px 4px rgba(255, 181, 71, 0.65); }
#run .rn-gantry.is-go .rn-lamps { border-color: var(--teal-hi); }
#run .rn-gantry.is-go .rn-lamps i { background: var(--teal-hi); box-shadow: 0 0 0 2px rgba(79, 240, 220, 0.3), 0 0 20px 5px rgba(79, 240, 220, 0.75); }
#run .rn-gantry__lbl { margin-top: 8px; padding: 4px 9px; border-radius: 4px; background: rgba(2, 6, 15, 0.82); font-size: 10.5px; letter-spacing: 0.2em; color: var(--ink); white-space: nowrap; }
#run .rn-gantry.is-go .rn-gantry__lbl { color: var(--navy-950); background: var(--teal-hi); font-weight: 700; }

/* Marcações no asfalto */
#run .rn-road { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 2; pointer-events: none; overflow: hidden; }
#run .rn-road__plane { position: absolute; left: 50%; bottom: 0; width: min(1500px, 118%); height: 100%; transform-origin: 50% 100%; transform: translateX(-50%) perspective(620px) rotateX(58deg); }
#run .rn-marks { position: absolute; left: 0; right: 0; bottom: 9%; display: flex; justify-content: center; align-items: flex-end; gap: 9%; transform-origin: 50% 100%; }
#run .rn-mark { position: relative; font-family: var(--font-display); font-style: italic; font-weight: 880; font-stretch: 125%; font-size: clamp(120px, 17vw, 320px); line-height: 0.8; letter-spacing: -0.02em; }
#run .rn-mark b { display: block; font-weight: inherit; padding-right: 0.06em; }
#run .rn-mark .o { color: rgba(2, 8, 22, 0.28); -webkit-text-stroke: 2.5px rgba(160, 232, 255, 0.95); }
#run .rn-mark .f { position: absolute; inset: 0; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nuvem de palavras */
#run .rn-words { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
#run .rn-words span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
#run .rn-words .w-far { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice); filter: blur(0.5px); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
#run .rn-words .w-mid { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7); }
#run .rn-words .w-near { font-family: var(--font-display); font-style: italic; font-weight: 850; font-stretch: 125%; font-size: 30px; text-transform: uppercase; color: rgba(2, 8, 22, 0.15); -webkit-text-stroke: 1.2px var(--teal-hi); text-shadow: 0 0 22px rgba(18, 197, 181, 0.55); }

/* Claquete e telemetria do filme */
#run .rn-slate { position: absolute; z-index: 4; left: var(--gutter); top: calc(var(--hud-h) + clamp(10px, 3vh, 28px)); display: grid; gap: 6px; padding: 10px 14px; border-left: 2px solid var(--cyan); background: linear-gradient(90deg, rgba(2, 8, 22, 0.78), rgba(2, 8, 22, 0.2)); }
#run .rn-slate__k { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink); letter-spacing: 0.18em; }
#run .rn-slate__k i { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 10px var(--alert); animation: rn-blink 1.3s steps(2, jump-none) infinite; }
#run .rn-slate__v { font-size: 10.5px; color: var(--cyan-hi); letter-spacing: 0.18em; }
@keyframes rn-blink { 50% { opacity: 0.3; } }

#run .rn-tele { position: absolute; z-index: 4; left: var(--gutter); top: calc(var(--hud-h) + clamp(10px, 3vh, 28px) + 72px); width: min(420px, 40vw); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 10px; background: rgba(2, 8, 22, 0.66); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; }
#run .rn-tele__tc { font-size: 12px; letter-spacing: 0.1em; color: var(--teal-hi); font-variant-numeric: tabular-nums; min-width: 9ch; }
#run .rn-tele__bar { position: relative; height: 2px; background: var(--line-2); }
#run .rn-tele__bar i { position: absolute; inset: 0; background: var(--grad-brand); box-shadow: 0 0 10px var(--teal); transform-origin: 0 50%; transform: scaleX(0); }
#run .rn-tele__steps { grid-column: 1 / -1; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; font-size: 10px; letter-spacing: 0.18em; color: var(--ink-4); }
#run .rn-tele__steps li { transition: color 0.3s; }
#run .rn-tele__steps li.is-past { color: var(--ink-3); }
#run .rn-tele__steps li.is-now { color: var(--teal-hi); }

/* Texto */
#run .rn-copy { position: absolute; left: 0; right: 0; bottom: clamp(36px, 8vh, 96px); z-index: 5; pointer-events: none; }
#run .rn-copy > * { pointer-events: auto; }
#run .rn-eyebrow { margin-bottom: clamp(12px, 2vh, 20px); text-shadow: 0 1px 14px rgba(2, 8, 22, 0.95), 0 0 2px rgba(2, 8, 22, 0.8); }
#run .rn-title { max-width: 15.5ch; font-size: clamp(32px, min(4.4vw, 7.6vh), 74px); text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
#run .rn-title .rn-w { display: inline-block; }
#run .rn-dist { display: flex; align-items: center; gap: 12px; margin: clamp(14px, 2.4vh, 24px) 0 0; }
#run .rn-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-teal); background: rgba(2, 8, 22, 0.55); font-family: var(--font-display); font-style: italic; font-weight: 850; font-stretch: 120%; font-size: 20px; letter-spacing: -0.01em; color: var(--teal-hi); }
#run .rn-chip + i + .rn-chip { color: var(--cyan-hi); border-color: rgba(29, 159, 208, 0.55); }
#run .rn-dist i { width: 22px; height: 1px; background: var(--grad-brand); }
#run .rn-lead { max-width: 38ch; margin-top: clamp(12px, 2vh, 20px); color: var(--ink); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7); font-size: clamp(16px, min(1.35vw, 2.6vh), 22px); }

/* Painel dos 5 itens */
#run .rn-panel { padding: clamp(16px, 2.4vh, 26px) clamp(18px, 1.8vw, 28px) clamp(10px, 1.6vh, 18px); border-radius: 16px; }
#run .rn-panel > .hud-c { border-color: var(--cyan); }
#run .rn-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: clamp(8px, 1.4vh, 14px); border-bottom: 1px solid var(--line-2); }
#run .rn-panel__h { margin: 0; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(18px, 1.5vw, 24px); text-transform: uppercase; letter-spacing: -0.01em; }
#run .rn-panel__head .t-mono { font-size: 11px; color: var(--cyan-hi); }
#run .rn-list li { padding-block: clamp(9px, 1.5vh, 14px); color: var(--ink); font-size: clamp(15px, min(1.12vw, 2.2vh), 18px); }
#run .rn-list li::before { top: calc(clamp(9px, 1.5vh, 14px) + 0.72em - 4px); }
#run .rn-panel--pin { position: absolute; z-index: 5; right: clamp(60px, 5.6vw, 108px); bottom: clamp(36px, 8vh, 96px); width: min(460px, 34vw); }
#run .rn-after { display: none; }

#run .rn-cue { position: absolute; left: 50%; bottom: clamp(100px, 13.5vh, 150px); z-index: 6; margin: 0; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); color: var(--ink); font-size: 10.5px; white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
#run .rn-cue i { order: 2; width: 1px; height: 34px; background: linear-gradient(180deg, var(--teal-hi), transparent); }

/* ===== Fechamento: 2.000 atletas ===== */
#run .rn-goal { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: start; background: radial-gradient(80% 60% at 50% 78%, rgba(11, 33, 69, 0.55), transparent 70%); }
#run .rn-goal__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
#run .rn-goal__gates { position: absolute; inset: 0; pointer-events: none; }
#run .rn-goal__gates span { position: absolute; display: grid; justify-items: center; gap: 6px; font-size: 10.5px; letter-spacing: 0.22em; color: var(--ink-2); transform: translate(-50%, -100%); }
#run .rn-goal__gates span::after { content: ''; width: 1px; height: 36px; background: linear-gradient(180deg, var(--teal-hi), transparent); }
#run .rn-goal__gates .g1 { left: 7%; top: 78%; }
#run .rn-goal__gates .g2 { left: 93%; top: 25%; }
#run .rn-goal__in { position: relative; z-index: 2; padding-top: clamp(110px, 17vh, 180px); }
#run .rn-goal__txt { margin: 0; display: grid; justify-items: start; }
#run .rn-goal__k { font-size: clamp(13px, 1.25vw, 17px); letter-spacing: 0.22em; color: var(--teal); margin-bottom: 10px; }
#run .rn-goal__n { font-size: clamp(88px, 17vw, 300px); line-height: 0.82; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; filter: drop-shadow(0 10px 50px rgba(18, 197, 181, 0.35)); }
#run .rn-goal__u { margin-top: 6px; font-family: var(--font-display); font-style: italic; font-weight: 850; font-stretch: 125%; font-size: clamp(34px, 5.4vw, 96px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.015em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
#run .rn-goal__n { transition: filter 0.9s var(--ease-io, ease); }
#run .rn-goal.rn-full .rn-goal__n { filter: drop-shadow(0 10px 50px rgba(18, 197, 181, 0.35)) drop-shadow(0 0 26px rgba(79, 240, 220, 0.45)); }
#run .rn-goal__gates span { transition: color 0.6s; }
#run .rn-goal.rn-full .rn-goal__gates .g2 { color: var(--teal-hi); text-shadow: 0 0 12px rgba(79, 240, 220, 0.6); }
#run .rn-goal__leg { display: inline-flex; align-items: baseline; gap: 10px; margin: clamp(18px, 3vh, 30px) 0 0; font-size: 11px; color: var(--ink-3); }
#run .rn-goal__leg i { flex: none; align-self: flex-start; margin-top: 0.45em; width: 8px; height: 3px; border-radius: 2px; background: var(--teal-hi); box-shadow: 0 0 8px var(--teal-hi); }

/* ===== Telas baixas / projetor ===== */
@media (max-height: 760px) and (min-width: 821px) {
  #run .rn-slate { display: none; }
  #run .rn-list li { padding-block: 8px; }
  #run .rn-list li::before { top: calc(8px + 0.72em - 4px); }
}
@media (max-width: 1180px) and (min-width: 821px) {
  #run .rn-shade { background: linear-gradient(0deg, rgba(2, 8, 22, 0.95) 0%, rgba(2, 8, 22, 0.78) 26%, rgba(2, 8, 22, 0.25) 52%, rgba(2, 8, 22, 0) 64%), linear-gradient(90deg, rgba(2, 8, 22, 0.88) 0%, rgba(2, 8, 22, 0.55) 34%, rgba(2, 8, 22, 0) 58%), linear-gradient(180deg, rgba(2, 8, 22, 0.55) 0%, rgba(2, 8, 22, 0) 16%); }
  #run .rn-panel--pin { width: min(400px, 38vw); right: 56px; }
  #run .rn-title { max-width: 13ch; }
  #run .rn-lead { max-width: 30ch; }
}

/* ===== Celular ===== */
@media (max-width: 820px) {
  #run .rn-shade { background: linear-gradient(0deg, rgba(2, 8, 22, 0.97) 0%, rgba(2, 8, 22, 0.85) 34%, rgba(2, 8, 22, 0.2) 58%, rgba(2, 8, 22, 0) 70%), linear-gradient(180deg, rgba(2, 8, 22, 0.55), transparent 20%); }
  #run .rn-media .concept-tag { right: 12px; top: auto; bottom: 10px; }
  #run .rn-slate { left: 12px; top: calc(var(--hud-h) + 8px); padding: 8px 10px; }
  #run .rn-slate__k { font-size: 10px; letter-spacing: 0.12em; }
  #run .rn-slate__v { font-size: 10px; letter-spacing: 0.12em; }
  /* a faixa do asfalto sobe acima da etiqueta de conceito (que fica embaixo no celular) */
  #run .rn-road { height: 26%; bottom: 44px; overflow: visible; }
  #run .rn-road__plane { width: 150%; transform: translateX(-50%) perspective(420px) rotateX(56deg); }
  #run .rn-mark { font-size: 21vw; }
  #run .rn-marks { gap: 7%; bottom: 12%; }
  #run .rn-words .w-far { font-size: 11px; }
  #run .rn-words .w-mid { font-size: 16px; }
  #run .rn-words .w-near { font-size: 24px; }
  #run .rn-tele { display: none; }
  #run .rn-gantry__wire { height: 13svh; }
  #run .rn-copy { bottom: 36px; }
  #run .rn-title { font-size: clamp(28px, 8.4vw, 40px); max-width: none; }
  #run .rn-eyebrow { letter-spacing: 0.12em; gap: 0.7em; }
  #run .rn-eyebrow::before { width: 18px; }
  #run .rn-lead { font-size: 16px; }
  #run .rn-chip { min-height: 40px; font-size: 18px; }
  #run .rn-panel--pin { display: none; }
  #run .rn-after { display: block; padding: 56px 0 8px; }
  #run .rn-panel--flow { padding: 18px 18px 8px; }
  #run .rn-cue { display: none; }

  #run .rn-goal { min-height: 88svh; }
  #run .rn-goal__in { padding-top: 64px; }
  #run .rn-goal__n { font-size: clamp(84px, 27vw, 140px); }
  #run .rn-goal__u { font-size: clamp(34px, 10vw, 52px); }
  #run .rn-goal__gates .g1 { left: 12%; top: 86%; }
  #run .rn-goal__gates .g2 { left: 86%; top: 56%; }
}

/* ===== Movimento reduzido: quadro final estático, tudo em fluxo ===== */
.reduced #run .rn-pin { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-block: calc(var(--hud-h) + 48px) 48px; }
.reduced #run .rn-shade { opacity: 1; }
.reduced #run .rn-gantry, .reduced #run .rn-words, .reduced #run .rn-tele, .reduced #run .rn-cue, .reduced #run .rn-flash { display: none; }
.reduced #run .rn-road, .reduced #run .rn-film { display: none; }
.reduced #run .rn-cover { background: #02060f url(../../assets/img/run-film-poster.webp) center / cover no-repeat; }
.reduced #run .rn-slate { position: relative; left: auto; top: auto; margin: 0 var(--gutter) 24px; align-self: flex-start; }
.reduced #run .rn-copy { position: relative; bottom: auto; }
.reduced #run .rn-panel--pin { position: relative; right: auto; bottom: auto; width: auto; max-width: 560px; margin: 32px var(--gutter) 0; }
@media (min-width: 821px) {
  .reduced #run .rn-panel--pin { position: absolute; right: clamp(60px, 5.6vw, 108px); bottom: 48px; width: min(460px, 34vw); margin: 0; }
}
