@font-face {
  font-family: "Alias";
  src: url("../fonts/alias-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --black:        #000000;
  --light:        #d8d5d4;
  --grey:         #a5a5a5;
  --orange-deep:  #cb4018;
  --orange:       #fe9608;
  --gradient: linear-gradient(90deg, var(--orange) 0%, var(--orange-deep) 100%);
  --gradient-v: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);

  --surface:      rgba(216, 213, 212, 0.035);
  --surface-hi:   rgba(216, 213, 212, 0.06);
  --line:         rgba(216, 213, 212, 0.14);
  --line-soft:    rgba(216, 213, 212, 0.08);
  --text:         var(--light);
  --text-dim:     var(--grey);

  --font-display: "Alias", "Arial Black", system-ui, sans-serif;
  --font-body:    "Mona Sans", system-ui, -apple-system, sans-serif;

  --gutter: 16px;
  --maxw: 1240px;
  --radius: 4px;

  --chevron-url: url("../brand/pattern.svg");
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

:root { color-scheme: dark; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.h-sub {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rule {
  height: 1px;
  background: var(--line-soft);
  border: 0;
}

.accent-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--black);
}

.bg__radar {
  position: absolute;
  top: 50%; left: 50%;
  width: min(190vh, 190vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.bg__glow {
  position: absolute;
  left: 50%;
  bottom: -40vh;
  width: 140vw;
  height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(254, 150, 8, 0.16) 0%,
    rgba(203, 64, 24, 0.09) 34%,
    transparent 68%
  );
  filter: blur(20px);
}
.bg__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--chevron-url);
  background-size: 190px auto;
  opacity: 0.035;
}
.bg__grain {
  position: absolute;
  inset: -50%;
  background-image: var(--grain-url);
  opacity: 0.16;
  mix-blend-mode: overlay;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.92), rgba(0,0,0,0));
  backdrop-filter: blur(6px);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__mark { width: 132px; height: auto; fill: var(--light); }
.nav__mark path { fill: var(--light); }

.status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.5);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}

/* Same gradient rule the countdown cells carry, turned on its side. */
.status::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  background: var(--gradient-v);
}

.hero {
  padding-top: clamp(48px, 9vh, 104px);
  padding-bottom: clamp(40px, 7vh, 88px);
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 4vh, 40px);
}
.hero__eyebrow .bar {
  width: 26px; height: 1px;
  background: var(--gradient);
  flex: none;
}
.hero__title {
  font-size: clamp(2rem, 13.5vw, 11.5rem);
  margin-bottom: clamp(20px, 3.5vh, 34px);
  color: var(--light);
}

.hero__title .dot {
  color: var(--orange);
  font-size: 0.42em;
  vertical-align: baseline;
  margin-left: 0.04em;
}

.hero__lede {
  max-width: 34ch;
  margin-inline: auto;
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
}
.hero__sub {
  max-width: 56ch;
  margin: 18px auto 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.countdown {
  /* --cd-roll is mirrored by ROLL_MS in assets/js/main.js */
  --cd-roll: 320ms;
  --cd-ease: cubic-bezier(0.33, 1, 0.68, 1);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 660px;
  margin: clamp(34px, 6vh, 60px) auto 0;
}
.cd {
  position: relative;
  padding: clamp(16px, 3vw, 26px) 6px clamp(12px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.cd::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.85;
}
.cd__num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7.4vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--light);
  font-variant-numeric: tabular-nums;

  display: flex;
  justify-content: center;
  white-space: nowrap;
}

/* One clipped window per character. Only the digits that actually change
   roll, so the seconds units move every tick and the tens every ten. */
.cd__digit {
  position: relative;
  width: 1ch;
  height: 1em;
  margin-block: -0.05em;  /* keeps the 0.9em line box the layout was tuned to */
  overflow: hidden;
}
.cd__d {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd__d--in  { animation: cd-roll-in  var(--cd-roll) var(--cd-ease); }
.cd__d--out { animation: cd-roll-out var(--cd-roll) var(--cd-ease) forwards; }

@keyframes cd-roll-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes cd-roll-out {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

/* Digits are split across spans, so expose the whole value to screen readers. */
.cd__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cd__label {
  margin-top: 10px;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.countdown.is-live { grid-template-columns: 1fr; }
.countdown.is-live .cd { padding-block: clamp(22px, 4vw, 34px); }
.countdown.is-live .cd__num { font-size: clamp(1.75rem, 6vw, 3rem); }

.ticker {
  position: relative;
  margin-top: clamp(48px, 8vh, 90px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;

  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker__group { display: flex; flex: none; }

.tk {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 22px;
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
  font-size: 0.8125rem;
}
.tk__sym {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--light);
}
.tk__px {
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.section { padding-block: clamp(64px, 11vh, 128px); }
.section__head { margin-bottom: clamp(30px, 5vh, 52px); }
.section__title {
  font-size: clamp(1.875rem, 5.2vw, 3.5rem);
  margin-top: 14px;
  color: var(--light);
}
.section__intro {
  max-width: 58ch;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 12px;
}
.mkt {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.mkt:hover {
  border-color: rgba(254, 150, 8, 0.4);
  background: var(--surface-hi);
  transform: translateY(-3px);
}
.mkt__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mkt__q {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--light);
  margin-bottom: 18px;

  min-height: 2.7em;
}

.prob {
  height: 4px;
  border-radius: 100px;
  background: rgba(216, 213, 212, 0.14);
  overflow: hidden;
  margin-bottom: 14px;
}
.prob__fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient);
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.mkt__prices {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.px {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
}
.px__side {
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.px__val {
  margin-top: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.px--yes .px__val { color: var(--orange); }
.px--no  .px__val { color: var(--light); }
.mkt__outs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
}
.out__name {
  font-size: 0.8125rem;
  color: var(--light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.out__pct {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.out__pct--alt { color: var(--light); }

.mkt__vol {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.markets__note {
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer {
  padding-block: 44px;
  border-top: 1px solid var(--line-soft);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__mark { width: 17px; height: auto; }
.footer__meta {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.footer__links { display: flex; gap: 22px; }
.footer__links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--orange); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .nav__mark { width: 108px; }
  .status { font-size: 0.625rem; padding: 6px 11px 6px 13px; letter-spacing: 0.09em; }
  .countdown { gap: 6px; }
  .mkt__q { min-height: 0; }
}
@media (max-width: 400px) {
  .status__text-long { display: none; }

  .cd__label { font-size: 0.5625rem; letter-spacing: 0.07em; }
}

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