/* R.I.P. – Racing Instead of Playing · Alpha site
   Fonts are self-hosted: Saira (display), Share Tech Mono (HUD labels), Inter (body). All SIL OFL. */
@font-face {
  font-family: "Saira";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../assets/fonts/saira-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../assets/fonts/saira-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Share Tech Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/share-tech-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  --bg: #07090a;
  --bg-2: #0b0f11;
  --panel: #0f1417;
  --panel-2: #141b1f;
  --line: rgba(233, 238, 240, 0.1);
  --fg: #e9eef0;
  --fg-muted: #98a3a8;
  --stone: #aab2b9;
  --teal: #22c3c0;
  --teal-dim: rgba(34, 195, 192, 0.16);
  --orange: #ff7a1a;
  --orange-dim: rgba(255, 122, 26, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --head: "Saira", "Eurostile", "Arial Narrow", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

/* ---------- headings / labels ---------- */
.h {
  font-family: var(--head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0;
}
.h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.h3 { font-size: 1.35rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transform: skewX(-30deg);
}
.lead { color: var(--fg-muted); font-size: 1.08rem; max-width: 62ch; margin: 18px 0 0; }
.accent-t { color: var(--teal); }
.accent-o { color: var(--orange); }

.section { padding: clamp(64px, 11vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: clamp(28px, 5vw, 52px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand {
  font-family: var(--head);
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand span { color: var(--orange); }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.88rem; color: var(--fg-muted); transition: color 0.25s var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--head);
  font-style: italic;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 0;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn--primary { background: var(--orange); color: #130a02; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px rgba(233, 238, 240, 0.28); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal); }
.btn--small { padding: 9px 18px; font-size: 0.78rem; }

/* ---------- hero ---------- */
.hero { padding: 0; position: relative; overflow: hidden; }
.hero__poster { position: relative; background: transparent; }
.hero__poster img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.hero__poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(7, 9, 10, 0), var(--bg));
  pointer-events: none;
}
.hero__bar { padding: 8px 0 clamp(40px, 7vw, 72px); text-align: center; margin-top: -2px; }
.hero__sub { max-width: 60ch; margin: 0 auto 26px; color: var(--fg-muted); font-size: 1.1rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__facts { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; margin: 28px 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--fg-muted); letter-spacing: 0.04em; }
.hero__facts li::before { content: "◆"; color: var(--teal); margin-right: 8px; font-size: 0.6rem; vertical-align: middle; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px 30px;
  position: relative;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--teal), transparent); }
.card--o::before { background: linear-gradient(90deg, var(--orange), transparent); }
.card__num { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 3.2rem; line-height: 1; color: rgba(233, 238, 240, 0.08); position: absolute; right: 18px; top: 8px; }
.card p { color: var(--fg-muted); margin: 12px 0 0; font-size: 0.97rem; }
.tag { display: inline-block; margin-top: 16px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(255, 122, 26, 0.4); padding: 4px 10px; border-radius: 3px; }

/* ---------- week timeline ---------- */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: wk; border-top: 1px solid var(--line); }
.week li { padding: 26px 20px 8px 0; position: relative; counter-increment: wk; }
.week li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--teal); transform: rotate(45deg); }
.week li:last-child::before { background: var(--orange); }
.week b { display: block; font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.04em; margin-bottom: 6px; }
.week span { color: var(--fg-muted); font-size: 0.92rem; display: block; padding-right: 8px; }

/* ---------- format table ---------- */
.spec { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 0.97rem; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 34%; font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--teal); }
.spec td { color: var(--fg); }
.spec td small { color: var(--fg-muted); display: block; font-size: 0.85rem; margin-top: 2px; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.rules { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--fg-muted); }
.rules li::before { content: "▸"; color: var(--orange); font-size: 1.15rem; line-height: 1.4; }
.rules b { color: var(--fg); font-weight: 600; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 34px); }
.vote-flow { display: grid; gap: 0; }
.vote-flow div { padding: 14px 0 14px 22px; border-left: 2px solid var(--line); position: relative; }
.vote-flow div::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--teal); transform: rotate(45deg); }
.vote-flow div:last-child { border-left-color: transparent; }
.vote-flow strong { display: block; font-family: var(--head); font-style: italic; text-transform: uppercase; letter-spacing: 0.04em; }
.vote-flow span { color: var(--fg-muted); font-size: 0.92rem; }

/* ---------- prize ---------- */
.prize { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 10px; align-items: end; margin-top: 8px; }
.podium div { text-align: center; padding: 18px 8px 16px; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; }
.podium .p1 { padding-top: 34px; border-color: rgba(255, 122, 26, 0.6); background: linear-gradient(180deg, var(--orange-dim), var(--panel)); }
.podium .p2 { padding-top: 24px; }
.podium strong { display: block; font-family: var(--head); font-style: italic; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.podium .p1 strong { font-size: 3rem; color: var(--orange); }
.podium span { font-size: 0.8rem; color: var(--fg-muted); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 6px; }
.calc label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 8px; }
.calc output { color: var(--teal); font-family: var(--head); font-style: italic; font-weight: 800; font-size: 1.1rem; }
.calc input[type="range"] { width: 100%; accent-color: var(--orange); }
.calc__rows { margin: 22px 0 0; display: grid; gap: 0; }
.calc__rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.calc__rows div:last-child { border-bottom: 0; }
.calc__rows span { color: var(--fg-muted); }
.calc__rows b { font-weight: 700; }
.note { font-size: 0.85rem; color: var(--fg-muted); margin: 16px 0 0; }

/* ---------- roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.phase { border: 1px solid var(--line); border-radius: 6px; padding: 26px 24px 28px; background: var(--panel); position: relative; }
.phase--now { border-color: rgba(34, 195, 192, 0.6); background: linear-gradient(180deg, var(--teal-dim), var(--panel)); }
.phase__fee { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 2.4rem; line-height: 1; margin: 10px 0 14px; }
.phase__flag { position: absolute; right: 18px; top: 18px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.phase ul { margin: 0; padding-left: 18px; color: var(--fg-muted); font-size: 0.93rem; }
.phase li { margin: 4px 0; }

/* ---------- community / shop ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- join ---------- */
.join { text-align: center; }
.join .lead { margin-left: auto; margin-right: auto; }
.join__cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.join__small { margin-top: 18px; font-size: 0.85rem; color: var(--fg-muted); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--fg-muted); max-width: 70ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--fg-muted); font-size: 0.88rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
.foot ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.foot a:hover { color: var(--teal); }
.foot .age { border: 1px solid var(--orange); color: var(--orange); font-family: var(--head); font-style: italic; font-weight: 800; padding: 2px 10px; border-radius: 3px; margin-right: 10px; letter-spacing: 0.08em; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pillars, .phases { grid-template-columns: 1fr; }
  .split, .prize, .duo { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); }
  .week li { padding: 6px 0 22px 26px; }
  .week li::before { left: -6px; top: 10px; }
}
@media (max-width: 760px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(7, 9, 10, 0.98); border-bottom: 1px solid var(--line);
    padding: 8px clamp(18px, 4vw, 32px) 20px; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; font-size: 1rem; }
  .hero__poster img { max-height: none; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .spec th, .spec td { display: block; width: 100%; padding: 10px 18px; }
  .spec th { border-bottom: 0; padding-bottom: 0; }
  .podium { grid-template-columns: 1fr 1fr 1fr; }
  .podium strong { font-size: 1.5rem; }
  .podium .p1 strong { font-size: 2rem; }
}

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(8px, 2vw, 24px); border-bottom: 1px solid var(--line); background: radial-gradient(900px 320px at 20% 0, rgba(34, 195, 192, 0.08), transparent 70%), radial-gradient(700px 300px at 90% 10%, rgba(255, 122, 26, 0.07), transparent 70%); }
.page-hero .section__head, .page-hero .lead { margin-bottom: 0; }
.page-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.nav__links a.active { color: var(--fg); box-shadow: 0 2px 0 var(--orange); padding-bottom: 4px; }
.card h2.h3, .phase h2.h3 { margin: 0; }
.card p a { font-weight: 600; }
.nav__links a.btn--primary { color: #130a02; }
.nav__links a.btn--primary:hover { color: #130a02; }
