:root {

  --sc-canvas: var(--bg);
  --sc-ink: var(--text);
  --sc-ink-soft: var(--text-body);
  --sc-accent: var(--accent);
  --sc-accent-ink: #ffffff;
  --sc-font-display: var(--font);
  --sc-font-text: var(--font);
  --header-h: 116px;
  --dash: #c9c5bc;
  --pip-off: #e9e6df;
  --pip-on: #66686f;
  --demo-bg: #f4f2ed;
}
@media (prefers-color-scheme: dark) {
  :root { --dash: #3a3940; --pip-off: #26252b; --pip-on: #c4c4cb; --demo-bg: #141417; }
}
body { letter-spacing: normal; }
.muted { color: var(--text-muted); }

.swap {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer; user-select: none;
  font: inherit; color: var(--accent); text-align: inherit;
  text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 0.2em;
  transition: color 140ms ease;
}
.swap:hover { color: var(--text); }
.swap:active { opacity: 0.75; }
.swap.is-swapping { animation: swap-in 240ms ease-out; }
@keyframes swap-in { from { opacity: 0; } to { opacity: 1; } }

body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;

  --halo-size: 112vmax; --halo-off: 3vmax;
  width: var(--halo-size); height: var(--halo-size); border-radius: 50%;
  right: calc(var(--halo-size) / -2 - var(--halo-off)); bottom: calc(var(--halo-size) / -2 - var(--halo-off));
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 176, 222, var(--halo-core)) 0%, rgba(31, 176, 222, 0) 22%),
    radial-gradient(circle at 50% 50%,
      rgba(31, 176, 222, var(--halo-a)) 0%,
      rgba(21, 115, 190, var(--halo-b)) 28%,
      rgba(18, 60, 140, var(--halo-c)) 46%,
      rgba(18, 60, 140, 0) 68%);
}
:root { --halo-core: 0.30; --halo-a: 0.26; --halo-b: 0.16; --halo-c: 0.07; }
@media (prefers-color-scheme: dark) {
  :root { --halo-core: 0.42; --halo-a: 0.34; --halo-b: 0.22; --halo-c: 0.10; }
}

.pmark {
  position: fixed; left: 0; top: 0; z-index: 4;

  --pm-size: clamp(110px, 13vw, 180px); --inv: 1;
  width: var(--pm-size); height: var(--pm-size); transform-origin: 0 0; will-change: transform;
  pointer-events: none;
}
@media (max-width: 900px) { .pmark { --pm-size: 64px; } }
.pmark__disc {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;

  --ring-a: calc(1 - var(--land, 0));
  border: calc(1.5px * var(--inv)) solid transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--bg) calc(100% * (1 - var(--land, 0))), transparent),
                    color-mix(in srgb, var(--bg) calc(100% * (1 - var(--land, 0))), transparent)) padding-box,
    linear-gradient(135deg, rgba(31, 176, 222, var(--ring-a)) 0%, rgba(21, 115, 190, var(--ring-a)) 55%, rgba(18, 60, 140, var(--ring-a)) 100%) border-box;
  box-shadow: 0 calc(6px * var(--inv)) calc(18px * var(--inv)) calc(-8px * var(--inv)) rgba(18, 60, 140, calc(0.35 * (1 - var(--land, 0))));
}
.pmark__disc svg { width: 100%; height: 100%; overflow: visible; }
.pmark__ghost rect { fill: none; stroke: url(#pm-blue); stroke-width: 1.8; stroke-dasharray: 3 3; opacity: calc(1 - var(--land, 0)); }
.pmark__blade { stroke: url(#pm-blue); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pmark__cap {
  position: absolute; right: calc(100% + 10px * var(--inv)); top: 50%; translate: 0 -50%;
  transform: scale(var(--inv)); transform-origin: 100% 50%;
  white-space: nowrap; padding: 6px 10px; border-radius: 4px;
  background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700;
  opacity: 0; transition: opacity 240ms ease;
}
.pmark__cap.is-on { opacity: 1; }

.rules--six { row-gap: clamp(36px, 5vw, 64px); }

#support .stage { justify-content: flex-start; padding-top: calc(var(--header-h) + 40px); }
#support .split > div > h2 { position: static; }
@media (max-height: 860px) {
  #support .stage { padding-top: calc(var(--header-h) + 24px); }
  #support .split .checklist { margin-top: 20px; gap: 9px; }
  #support .split p { margin-bottom: 14px; }
}
@media (max-width: 900px) {
  #support .split { gap: 14px; }
  #support .split .checklist { margin-top: 16px; gap: 8px; }
  #support .split p { margin-bottom: 10px; font-size: 15px; }
  #support .checklist li { font-size: 14.5px; line-height: 1.4; }
}
@media (max-width: 640px) and (max-height: 780px) {
  #support .stage { padding-top: calc(var(--header-h) + 8px); }
  #support h2 { font-size: 24px; margin-top: 8px !important; }
  #support .split { gap: 8px; }
  #support .split p { font-size: 14px; margin-bottom: 8px; }
  #support .split .checklist { margin-top: 10px; gap: 6px; }
  #support .checklist li { font-size: 13.5px; line-height: 1.35; }
}

html.anim .ticklist--tick li::before { opacity: .3; transform: scale(.85); transition: opacity .35s ease, transform .35s ease; }
html.anim .ticklist--tick li.is-in::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.anim .ticklist--tick li::before { transform: none; transition: opacity .3s ease; }
}

.section--intro { padding-bottom: 0; border-bottom: 0; }
.section--intro .section-head { margin-bottom: 0; justify-items: center; text-align: center; }
.section--intro .kicker { font-size: clamp(16px, 1.5vw, 20px); letter-spacing: 0.16em; }
.section--intro h2 { max-width: 24ch; }
.section--intro .section-head p { max-width: 52ch; }
#roadmap .stage, #build .stage { justify-content: flex-start; padding-top: calc(var(--header-h) + 40px); }

#roadmap { margin-top: calc(-1 * var(--header-h)); }
.tag { display: inline-block; padding: 1px 7px; margin-right: 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }

.panel {
  position: relative; background: var(--bg-raised);
  border: 1px dashed var(--dash); border-radius: 6px; padding: 22px 24px 20px;
  transition: border-color 500ms ease;
}
.panel.staged::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; border-radius: 6px 6px 0 0;
  background: var(--gradient); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 700ms cubic-bezier(0.23, 1, 0.32, 1) var(--d, 0ms);
}
body.is-live .panel.staged { border-style: solid; border-color: var(--line); }
body.is-live .panel.staged::before { transform: scaleX(1); }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.panel__k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.panel__k .muted { font-weight: 400; letter-spacing: 0.06em; }
.panel__status { margin: 0; font-size: 14px; color: var(--text-muted); }
.panel__status b { color: var(--text); }
.panel__n { margin: 14px 0 0; font-size: 14px; color: var(--text-muted); }

.stage { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) 0 28px; }
.stage__grid { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.stage__copy h2 { margin-top: 16px; }
.stage__copy p { margin: 16px 0 0; max-width: 52ch; font-size: 16px; }
.stage__copy p:nth-of-type(2) { font-size: 18px; color: var(--text); }

.rank-head, .rank li { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px 52px 56px; gap: 10px; align-items: center; }
.rank-head { height: 32px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.rank { --rh: 50px; list-style: none; margin: 0; padding: 0; position: relative; height: calc(var(--rh) * 6); }
.rank li { position: absolute; left: 0; right: 0; top: 0; height: var(--rh); border-bottom: 1px solid var(--line); will-change: transform; }
.rank__name { min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.rank__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pips { display: flex; gap: 3px; }
.pips i { width: 8px; height: 8px; border-radius: 2px; background: var(--pip-off); transition: background-color 160ms ease; }
.pips i.on { background: var(--pip-on); }
.prio { font-weight: 700; font-size: 15px; color: var(--text); opacity: 0; transition: opacity 200ms ease; font-variant-numeric: tabular-nums; }
.prio.on { opacity: 1; }
.badge { flex: none; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--text-muted); opacity: 0; transition: opacity 200ms ease; white-space: nowrap; }
.badge.on { opacity: 1; }
.badge--go { color: #fff; border-color: transparent; background: var(--gradient); }

.build-top { align-items: start; }
.build-top > div > h2 { position: static; }
.build-top p { margin: 0 0 18px; }
.ticks, .final { list-style: none; margin: 0; padding: 0; }
.ticks li, .final li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--text); }
.ticks i, .final i { flex: none; position: relative; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--dash); transition: background 200ms ease, border-color 200ms ease; }
.ticks li.done i, .final li.done i { background: var(--gradient); border-color: transparent; }
.ticks li.done i::after, .final li.done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

#levels .stage { justify-content: flex-start; padding-top: calc(var(--header-h) + 40px); }
#levels .levels-head { margin-bottom: 36px; }
@media (max-height: 860px) {
  #levels .stage { padding-top: calc(var(--header-h) + 24px); }
  #levels .levels-head { gap: 12px; margin-bottom: 22px; }
  #levels h2 { font-size: clamp(26px, 4.6vh, 38px); }
  #levels .levels-head p { font-size: 15px; }
  #levels .level { padding: 20px 20px 22px; gap: 8px; }
  #levels .level p { font-size: 15px; }
}

@media (max-width: 640px) {
  #levels .stage { padding-top: calc(var(--header-h) + 12px); }
  #levels .levels-head { gap: 8px; margin-bottom: 14px; }
  #levels h2 { font-size: 24px; }
  #levels .levels-head p:not(.kicker) { display: none; }
  #levels .levels { grid-template-columns: 1fr 1fr; gap: 8px; }
  #levels .level { padding: 14px 12px 14px; gap: 6px; }
  #levels .level h3 { font-size: 17px; }
  #levels .level p { font-size: 12.5px; line-height: 1.4; }
}
@media (max-width: 640px) and (max-height: 760px) {
  #levels .stage { padding-top: calc(var(--header-h) + 6px); }
  #levels h2 { font-size: 21px; }
  #levels .level { padding: 10px 10px 10px; }
  #levels .level p { font-size: 11.5px; line-height: 1.35; }
}

.golive-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.golive { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.final li { color: var(--text-muted); }
.final li.done { color: var(--text); }
.switch { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.switch__track { width: 54px; height: 30px; border-radius: 999px; background: var(--pip-off); border: 1px solid var(--line); position: relative; transition: background 500ms ease; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-muted); transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), background 420ms ease; }
body.is-live .switch__track { background: var(--gradient); border-color: transparent; }
body.is-live .switch__knob { transform: translateX(24px); background: #fff; }
.switch__label { position: relative; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.switch__off { color: var(--text-muted); transition: opacity 300ms ease; }
.switch__on { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 300ms ease; }
body.is-live .switch__off { opacity: 0; }
body.is-live .switch__on { opacity: 1; }

.panel--feed { position: relative; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); line-height: 1.45;
  opacity: 0; transform: translateY(6px); transition: opacity 360ms ease-out, transform 360ms ease-out; }
.feed li.is-on { opacity: 1; transform: none; }
.feed time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.feed__empty { position: absolute; left: 24px; right: 24px; top: 58px; margin: 0; color: var(--text-muted); font-size: 15px; opacity: 0; transition: opacity 240ms ease; pointer-events: none; }
.feed.is-empty + .feed__empty { opacity: 1; }
.live-line { margin: 22px 0 0; font-size: 18px; color: var(--text); opacity: 0; transition: opacity 400ms ease 300ms; }
body.is-live .live-line { opacity: 1; }

.finale__stage { height: 100vh; height: 100svh; overflow: clip; display: flex; flex-direction: column; }
.finale__daily { flex: 1; min-height: 0; display: flex; align-items: center; padding-top: var(--header-h); }
.finale__foot { flex: none; padding: 24px 0 20px; }
.finale__foot .footer-legal { margin-top: 4px; padding-top: 14px; }
.finale__inner {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start;
}
.finale__mark { width: clamp(110px, 13vw, 180px); aspect-ratio: 1; }
.finale__h { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; max-width: 17ch; }
.finale__contact { margin-top: clamp(24px, 4vh, 40px); max-width: 56ch; }
.finale__ask { margin: 0; font-size: clamp(17px, 1.5vw, 19px); }
.finale__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 24px; font-weight: 700; }

@media (max-width: 900px) {
  .stage { justify-content: flex-start; padding-top: calc(var(--header-h) + 12px); }
  .stage__grid { grid-template-columns: 1fr; gap: 18px; }
  .stage__copy p:not(:nth-of-type(2)):not(.kicker) { display: none; }
  .golive { grid-template-columns: 1fr; }
  .panel--feed { display: none; }

  #build .build-top { gap: 18px; }
  #build .build-top > div:first-child p:not(.kicker) { display: none; }
  #build .build-top h2 { margin-top: 10px !important; }
  #build .ticks li { padding: 7px 0; font-size: 14px; line-height: 1.4; }
  #build .panel { padding: 14px 16px 10px; }
  .finale__inner { grid-template-columns: auto 1fr; gap: 16px; }
  .finale__mark { width: 56px; }
}

@media (max-height: 800px) {
  .finale__h { font-size: clamp(30px, 6.2vh, 48px); }
  .finale__contact { margin-top: 18px; }
  .finale__actions { margin-top: 16px; }
  .finale__foot { padding: 16px 0 14px; }
}
@media (max-width: 640px) {
  .finale__h { font-size: 26px; }
  .finale__ask { font-size: 15px; }
  .finale__actions { gap: 10px 20px; margin-top: 14px; font-size: 15px; }
  .finale__actions .btn { min-height: 42px; }
  .finale__foot .lockup { display: none; }
  .finale__foot .footer-links { font-size: 13px; gap: 6px 16px; }
  .finale__foot .footer-legal { font-size: 11px; }
}
@media (max-width: 640px) {
  :root { --header-h: 80px; }
  .rank-head { display: none; }
  .rank { --rh: 66px; }
  .rank li { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; row-gap: 4px; column-gap: 8px; padding: 6px 0; }
  .rank__name { grid-column: 1 / -1; font-size: 14px; }
  .pips::before { content: attr(data-k); font-size: 10px; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
  .prio { display: none; }
  .panel { padding: 18px 16px 16px; }
}
