/* ============ UPSITE — THE ROAD AHEAD ============ */
:root {
  --red: #ED1C24;
  --red-soft: #ff4a51;
  --red-dark: #a80f15;
  --bg: #0a0a0c;
  --bg-alt: #101014;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f4f4f6;
  --muted: #9a9aa3;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* clip (not hidden) so `position: sticky` keeps working */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}

::selection { background: var(--red); color: #fff; }
.red { color: var(--red); }
strong { color: #fff; }

/* ---------- Ambient layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 950; pointer-events: none; opacity: 0.035;
  background-image: radial-gradient(#fff 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 1px solid rgba(237, 28, 36, 0.7);
  box-shadow: 0 0 22px rgba(237, 28, 36, 0.45);
  transition: transform 0.18s ease-out, opacity 0.3s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.big { transform: scale(2.1); background: rgba(237, 28, 36, 0.10); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 1000; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-soft));
  box-shadow: 0 0 12px rgba(237, 28, 36, 0.8);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 4vw;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-logo img { height: 32px; display: block; }
.nav-links { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px; transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; background: rgba(237, 28, 36, 0.2); }
.nav-back {
  color: var(--muted); text-decoration: none; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--card-border); white-space: nowrap; transition: 0.25s;
}
.nav-back:hover { color: #fff; border-color: var(--red); background: rgba(237, 28, 36, 0.12); }

/* ---------- Acts ---------- */
.act { position: relative; padding: 130px 4vw 100px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; position: relative; z-index: 2; }

.act-num {
  font-size: 4.6rem; font-weight: 800; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(237, 28, 36, 0.4); margin-bottom: 4px;
}
.act-title {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 16px;
}
.act-sub { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin-bottom: 60px; }
.hint-scroll { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--red-soft); letter-spacing: 0.05em; }
.punch { margin-top: 64px; font-size: 1.28rem; font-weight: 600; text-align: center; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(52px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- ACT 1 · Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  background: radial-gradient(1200px 720px at 50% 18%, #17171d, var(--bg) 72%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(130px);
  z-index: 0; pointer-events: none; animation: drift 10s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; top: -160px; left: -140px; background: rgba(237, 28, 36, 0.17); }
.orb-2 { width: 440px; height: 440px; bottom: -180px; right: -110px; background: rgba(237, 28, 36, 0.11); animation-delay: -5s; }
@keyframes drift { from { transform: translateY(-28px) scale(1); } to { transform: translateY(28px) scale(1.09); } }

.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 68%);
  animation: gridPan 26s linear infinite;
}
@keyframes gridPan { to { background-position: 74px 74px; } }

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-logo {
  width: min(300px, 62vw);
  filter: drop-shadow(0 14px 50px rgba(237, 28, 36, 0.4));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.kicker {
  text-transform: uppercase; letter-spacing: 0.34em; font-size: 0.76rem;
  font-weight: 700; color: var(--red-soft); margin: 12px 0 10px;
}
.hero-title {
  font-size: clamp(2rem, 7vw, 5rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 16px;
}
.hero-title .ch { display: inline-block; }
.hero-title.visible .ch {
  animation: chIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 0.06s + 0.2s);
}
@keyframes chIn {
  from { opacity: 0; transform: translateY(70%) rotateX(-70deg); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.hero-tag { font-size: clamp(1.05rem, 2.4vw, 1.45rem); font-weight: 600; margin-bottom: 18px; }
.hero-desc { font-size: 1.03rem; color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; color: var(--muted);
  border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03);
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--muted); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.mouse {
  width: 25px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 7px;
}
.wheel { width: 4px; height: 8px; border-radius: 4px; background: var(--red); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- ACT 2 · Action plan ---------- */
#plan { background: radial-gradient(900px 520px at 88% 8%, rgba(237, 28, 36, 0.06), transparent 62%), var(--bg-alt); }

.plan { position: relative; padding-left: 0; }
.plan-rail {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  transform: translateX(-50%); background: rgba(255, 255, 255, 0.08);
}
.plan-rail i {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%; display: block;
  background: linear-gradient(180deg, var(--red-soft), var(--red));
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.75);
}
.plan-rail i::after {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 18px rgba(237, 28, 36, 0.95);
}

.step { position: relative; display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; margin-bottom: 34px; }
.step:last-child { margin-bottom: 0; }
.step-node {
  grid-column: 2; justify-self: center; z-index: 3;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #14141a; border: 2px solid rgba(255, 255, 255, 0.14);
  font-weight: 800; font-size: 0.92rem; color: var(--muted);
  transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.step.on .step-node {
  border-color: var(--red); color: #fff; transform: scale(1.14);
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  box-shadow: 0 0 0 6px rgba(237, 28, 36, 0.14), 0 10px 34px rgba(237, 28, 36, 0.5);
}

.step-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  transform-style: preserve-3d;
}
.step:nth-child(odd) .step-card  { grid-column: 1; transform: translateX(-60px) scale(0.96); }
.step:nth-child(even) .step-card { grid-column: 3; transform: translateX(60px) scale(0.96); }
.step.on .step-card { opacity: 1; transform: none; }
.step-card:hover {
  border-color: rgba(237, 28, 36, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(237, 28, 36, 0.1);
  background: rgba(255, 255, 255, 0.055);
}
.step-tag {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red-soft); margin-bottom: 8px;
}
.step-card h3 { font-size: 1.16rem; color: #fff; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- ACT 3 · Journey ---------- */
.journey { padding-bottom: 0; }
.journey-head { margin-bottom: 10px; }
/* shorter track = the same route covered in less scrolling = a faster car */
.journey-track { position: relative; height: 330vh; }
.journey-stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 76px 3vw 30px;
}

.road { width: 100%; height: 100%; max-width: 1240px; overflow: visible; }

.road-outer { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 54; stroke-linecap: round; stroke-linejoin: round; }
.road-inner { fill: none; stroke: #16161c; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.road-done {
  fill: none; stroke: var(--red); stroke-width: 46; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.22; filter: url(#fGlow);
}
.road-dash {
  fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 3;
  stroke-dasharray: 16 22; animation: dashRun 1.1s linear infinite;
}
@keyframes dashRun { to { stroke-dashoffset: -38; } }

.link {
  stroke: rgba(237, 28, 36, 0.45); stroke-width: 2; stroke-dasharray: 5 7;
  opacity: 0; transition: opacity 0.6s ease;
}
.link.reached { opacity: 1; }

.st-halo {
  fill: rgba(237, 28, 36, 0.15); opacity: 0;
  transform-box: fill-box; transform-origin: 50% 50%; transition: opacity 0.5s;
}
.st.reached .st-halo { opacity: 1; animation: halo 2.2s ease-out infinite; }
@keyframes halo {
  0%   { transform: scale(0.7); opacity: 0.75; }
  100% { transform: scale(1.9); opacity: 0; }
}
.st-ring { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 2; transition: stroke 0.5s; }
.st.reached .st-ring { stroke: var(--red-soft); }
.st-core { fill: #14141a; stroke: rgba(255, 255, 255, 0.3); stroke-width: 2; transition: fill 0.5s, stroke 0.5s; }
.st.reached .st-core { fill: var(--red); stroke: var(--red-soft); }
.st-num {
  text-anchor: middle; font-family: inherit; font-size: 16px; font-weight: 800;
  fill: var(--muted); transition: fill 0.5s;
}
.st.reached .st-num { fill: #fff; }

.jc { opacity: 0; transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.jc { transform: translateX(46px); }
.jc.show { opacity: 1; transform: none; }
.jc-bg { fill: url(#gCard); stroke: rgba(237, 28, 36, 0.45); stroke-width: 1.5; }
.jc-badge { fill: var(--red); }
.jc-badge-t {
  text-anchor: middle; font-family: inherit; font-size: 14px; font-weight: 800;
  letter-spacing: 1.6px; fill: #fff;
}
.jc-title { font-family: inherit; font-size: 32px; font-weight: 800; fill: #fff; letter-spacing: -0.5px; }
.jc-desc  { font-family: inherit; font-size: 17px; fill: var(--muted); }

.finish { opacity: 0; transform: translateY(-12px); transition: opacity 0.6s, transform 0.6s; }
.finish.show { opacity: 1; transform: none; }
.fl-pole  { stroke: rgba(255, 255, 255, 0.55); stroke-width: 3; stroke-linecap: round; }
.fl-cloth { fill: var(--red); filter: url(#fGlow); }
.fl-dot   { fill: var(--red-soft); }

.car { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.65)); }
.car-body  { fill: url(#gCar); }
.car-roof  { fill: #101016; opacity: 0.92; }
.car-glass { fill: #39394a; }
.wheel     { fill: #0c0c10; }
.car-lamp  { fill: #fff8dc; }
.car-tail  { fill: #ff6b70; }
.car-beam  { fill: url(#gBeam); }
.car-shadow{ fill: rgba(0, 0, 0, 0.45); }

.hud {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  width: min(560px, 88vw); z-index: 5;
  background: rgba(16, 16, 20, 0.72); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 11px 20px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hud-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 7px; }
.hud-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: #fff; }
.hud-pct { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.hud-pct b { color: var(--red-soft); font-size: 0.86rem; }
.hud-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.hud-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red-dark), var(--red-soft));
  box-shadow: 0 0 10px rgba(237, 28, 36, 0.8);
}

.jm { display: none; }

/* ---------- ACT 4 · Team ---------- */
.team { background: radial-gradient(900px 520px at 15% 6%, rgba(237, 28, 36, 0.07), transparent 62%), var(--bg-alt); }

.crew { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.crew i {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-border);
  opacity: 0; transform: scale(0.4);
}
.crew.visible i {
  animation: crewPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 0.08s + 0.2s);
}
@keyframes crewPop { to { opacity: 1; transform: none; } }
.crew i.crew-lead {
  color: #fff; font-size: 0.95rem; border-color: var(--red);
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  box-shadow: 0 8px 28px rgba(237, 28, 36, 0.45);
}
.crew-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 52px; }
.crew-note b { color: #fff; }

/* five cards on a six-column grid: three up top, the last two centred beneath */
.t-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.role { grid-column: span 2; }
.role:nth-child(4) { grid-column: 2 / span 2; }
.role:nth-child(5) { grid-column: 4 / span 2; }
.role {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  transform-style: preserve-3d;
}
.role:hover {
  border-color: rgba(237, 28, 36, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(237, 28, 36, 0.1);
  background: rgba(255, 255, 255, 0.055);
}
.role-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.role-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.22), rgba(237, 28, 36, 0.06));
  border: 1px solid rgba(237, 28, 36, 0.35);
  transform: translateZ(30px);
}
.role-icon svg {
  width: 25px; height: 25px; fill: none; stroke: var(--red-soft);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.role-count { font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1; }
.role h3 { font-size: 1.06rem; color: #fff; margin-bottom: 8px; }
.role-txt { color: var(--muted); font-size: 0.9rem; flex: 1; margin-bottom: 18px; }
.role-dots { display: flex; gap: 6px; }
.role-dots span {
  width: 26px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  box-shadow: 0 0 10px rgba(237, 28, 36, 0.55);
}

/* ---------- ACT 5 · Partners ---------- */
.partners { background: radial-gradient(900px 520px at 88% 8%, rgba(237, 28, 36, 0.06), transparent 62%), var(--bg); }
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.partner {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 24px 26px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform-style: preserve-3d;
}
.partner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--pc), transparent);
  opacity: 0.65; transition: opacity 0.3s;
}
.partner:hover::before { opacity: 1; }
.partner::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 45%;
  transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.75s ease;
}
.partner:hover::after { left: 150%; }
.partner:hover { border-color: color-mix(in srgb, var(--pc) 55%, transparent); }

.p-mark {
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
  min-height: 62px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.p-mark span {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: #fff;
  text-shadow: 0 0 26px color-mix(in srgb, var(--pc) 55%, transparent);
}
.p-mark em { font-style: normal; font-size: 1.7rem; font-weight: 300; color: var(--pc); letter-spacing: -0.03em; }
.p-kind {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pc); margin-bottom: 10px;
}
.p-txt { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; flex: 1; }
.p-live {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: #4ade80;
}
.p-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.marquee {
  margin-top: 46px; overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.07); padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-run {
  display: flex; align-items: center; gap: 26px; width: max-content;
  animation: run 26s linear infinite;
}
.marquee-run span {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28); white-space: nowrap;
}
.marquee-run i { color: var(--red); font-style: normal; font-size: 1.5rem; }
@keyframes run { to { transform: translateX(-33.333%); } }

/* ---------- ACT 5 · Conclusion ---------- */
.end { overflow: hidden; text-align: center; padding-bottom: 120px; }
.end .act-num, .end .act-title { text-align: center; }
.rays {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.3;
  mask-image: radial-gradient(circle at 50% 42%, #000 8%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 8%, transparent 62%);
}
.rays i {
  position: absolute; top: 42%; left: 50%; width: 2px; height: 90vh;
  background: linear-gradient(180deg, transparent, rgba(237, 28, 36, 0.35), transparent);
  transform-origin: 50% 0;
}
.rays i:nth-child(1) { transform: translate(-50%, -50%) rotate(12deg); }
.rays i:nth-child(2) { transform: translate(-50%, -50%) rotate(42deg); }
.rays i:nth-child(3) { transform: translate(-50%, -50%) rotate(74deg); }
.rays i:nth-child(4) { transform: translate(-50%, -50%) rotate(108deg); }
.rays i:nth-child(5) { transform: translate(-50%, -50%) rotate(140deg); }
.rays i:nth-child(6) { transform: translate(-50%, -50%) rotate(166deg); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 46px 0 54px; }
.stat {
  padding: 26px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border);
}
.stat b { display: block; font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 6px 30px rgba(237, 28, 36, 0.3); }
.stat span {
  display: block; margin-top: 8px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted);
}

.end-body { max-width: 700px; margin: 0 auto; }
.end-body p { color: var(--muted); font-size: 1.03rem; margin-bottom: 16px; }

.closing { margin-top: 66px; }
.closing-logo { width: 190px; filter: drop-shadow(0 8px 32px rgba(237, 28, 36, 0.38)); animation: bob 6s ease-in-out infinite; }
.closing-line { font-size: clamp(1.3rem, 3.4vw, 1.9rem); font-weight: 800; margin: 14px 0 28px; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 8px 30px rgba(237, 28, 36, 0.42);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(237, 28, 36, 0.58); }

.footer {
  text-align: center; padding: 32px 20px; color: var(--muted); font-size: 0.84rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .p-grid, .t-grid { grid-template-columns: repeat(2, 1fr); }
  .role, .role:nth-child(4), .role:nth-child(5) { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .journey-track { height: auto; }
  .journey-stage { position: static; height: auto; display: block; padding: 20px 0 0; }
  .road { height: 62vh; min-height: 380px; }
  .hud { position: static; transform: none; width: 100%; margin: 0 auto 22px; border-radius: 14px; }
  .jc, .link { display: none; }
  .jm { display: grid; gap: 16px; margin-top: 34px; }
  .jm-card {
    position: relative; padding: 24px 24px 24px 66px;
    background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  }
  .jm-n {
    position: absolute; left: 20px; top: 24px;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, var(--red), var(--red-dark));
    color: #fff; font-weight: 800; font-size: 0.85rem;
  }
  .jm-y { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-soft); }
  .jm-card h3 { font-size: 1.15rem; color: #fff; margin: 3px 0 6px; }
  .jm-card p { color: var(--muted); font-size: 0.92rem; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .act { padding: 108px 6vw 76px; }
  .act-num { font-size: 3.2rem; }
  .p-grid, .t-grid, .stats { grid-template-columns: 1fr; }
  .crew i { width: 50px; height: 50px; font-size: 0.68rem; }
  .plan-rail { left: 22px; }
  .step { grid-template-columns: 46px 1fr; gap: 14px; }
  .step-node { grid-column: 1; width: 44px; height: 44px; font-size: 0.8rem; }
  .step:nth-child(odd) .step-card,
  .step:nth-child(even) .step-card { grid-column: 2; transform: translateX(34px) scale(0.97); }
  .step.on .step-card { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title.visible .ch { animation: none; }
  .hero-logo, .closing-logo, .orb, .hero-grid, .wheel,
  .road-dash, .marquee-run, .st.reached .st-halo, .p-live::before { animation: none; }
  .crew i { opacity: 1; transform: none; }
  .crew.visible i { animation: none; }
  .step-card { opacity: 1; transform: none !important; }
  .cursor { display: none; }
}
