:root {
  --bg: #08070b;
  --bg-soft: #0e0c13;
  --panel: #121017;
  --panel-2: #17131e;
  --text: #f5f2f7;
  --muted: #aaa4b2;
  --faint: #6f6877;
  --purple: #9b5cff;
  --purple-light: #c6a2ff;
  --line: rgba(255,255,255,.1);
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.dot { color: var(--purple); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.site-header.scrolled { background: rgba(8,7,11,.88); border-color: var(--line); backdrop-filter: blur(16px); }
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 50%; width: 40px; height: 40px; }
.brand-wordmark { display: inline-block; flex: none; aspect-ratio: 4.1 / 1; background-image: url('/assets/storm-diff-wordmark.png'); background-repeat: no-repeat; background-size: 96% auto; background-position: center; }
.brand-wordmark--nav { width: 132px; }
.brand-wordmark--hero { width: min(100%, 620px); }
.brand-wordmark--inline { width: 5.9em; vertical-align: -.34em; }
.brand-wordmark--lead { width: 6.3em; }
.brand-wordmark--footer { width: 176px; }
.brand-wordmark--copyright { width: 5.4em; opacity: .75; }
.primary-nav { display: flex; gap: 32px; align-items: center; }
.primary-nav a { text-decoration: none; color: var(--muted); font-size: .86rem; letter-spacing: .035em; transition: color .2s; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--text); }
.menu-button { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; color: var(--text); }
.menu-button span:not(.sr-only) { display: block; height: 1px; background: currentColor; margin: 6px 0; }

.hero { position: relative; min-height: 780px; padding: 156px 0 104px; overflow: hidden; background: radial-gradient(circle at 72% 35%, rgba(107,49,176,.20), transparent 31%), linear-gradient(180deg, rgba(28,19,42,.28), transparent 45%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--purple-light); font-size: .76rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .18em; font-weight: 750; }
h1, h2, h3, p { margin-top: 0; }
.hero-wordmark { width: min(100%, 650px); margin: -8px 0 18px; line-height: 0; }
.hero-focus { color: #d6d0dc; font-size: clamp(1rem, 2vw, 1.22rem); letter-spacing: .045em; }
.hero-focus span { color: var(--purple); margin-inline: 6px; }
.entity-statement { max-width: 650px; margin: 30px 0 38px; color: var(--muted); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 800; border: 1px solid var(--line); border-radius: 2px; }
.button-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-primary:hover { background: var(--purple-light); border-color: var(--purple-light); }
.button-secondary { background: transparent; color: var(--text); }
.button-pending { color: var(--muted); cursor: not-allowed; }
.button small { color: var(--faint); font-size: .62rem; letter-spacing: .06em; }

.result-card { position: relative; overflow: hidden; min-height: 474px; padding: 34px; border: 1px solid rgba(173,117,255,.32); background: linear-gradient(145deg, rgba(31,23,43,.92), rgba(13,11,17,.98)); box-shadow: 0 30px 80px rgba(0,0,0,.34); }
.result-card::before { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(180,128,255,.13); border-radius: 50%; right: -130px; top: -130px; box-shadow: 0 0 0 36px rgba(180,128,255,.025), 0 0 0 72px rgba(180,128,255,.018); }
.card-kicker { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.placement { margin: 34px 0 4px; font-variant-numeric: tabular-nums; font-size: 8rem; line-height: .9; letter-spacing: -.09em; font-weight: 780; background: linear-gradient(180deg, #fff, #bba2d7); background-clip: text; -webkit-background-clip: text; color: transparent; }
.placement span { font-size: 1.45rem; letter-spacing: -.03em; color: var(--purple-light); }
.result-card h2 { margin-bottom: 28px; font-size: 1.12rem; font-weight: 620; }
.result-stats { display: grid; grid-template-columns: 1fr 1.5fr; margin: 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 20px; }
.result-stats div { display: grid; gap: 2px; }
.result-stats dt { color: var(--faint); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.result-stats dd { margin: 0; font-size: .94rem; }
.result-note { margin: 20px 0 0; color: var(--purple-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--purple), transparent); opacity: .55; }

.section { padding: 112px 0; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 52px; }
.section-heading h2, .about h2, .schedule h2 { margin-bottom: 0; max-width: 780px; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.split-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; }
.split-heading > p { margin-bottom: 5px; color: var(--muted); }
.snapshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.mini-card { min-height: 230px; padding: 28px; position: relative; }
.mini-card + .mini-card { border-left: 1px solid var(--line); }
.mini-card .index { color: var(--faint); font-variant-numeric: tabular-nums; font-size: .75rem; }
.mini-card .card-label { margin: 62px 0 5px; color: var(--purple-light); text-transform: uppercase; letter-spacing: .14em; font-size: .67rem; }
.mini-card h3 { margin: 0 0 2px; font-size: 1.45rem; }
.mini-card p:last-child { margin: 0; color: var(--muted); }

.events { background: var(--bg-soft); }
.empty-event { display: grid; grid-template-columns: 72px 1fr auto; gap: 28px; align-items: center; padding: 34px; border: 1px solid var(--line); }
.empty-mark { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(172,114,255,.4); color: var(--purple-light); font-size: 1.7rem; font-weight: 200; }
.empty-event h3 { margin-bottom: 6px; font-size: 1.1rem; }
.empty-event p { max-width: 700px; margin: 0; color: var(--muted); }
.status { align-self: start; padding: 5px 9px; color: var(--faint); border: 1px solid var(--line); font-size: .68rem; letter-spacing: .05em; white-space: nowrap; }

.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 10vw, 140px); }
.about-intro { position: relative; }
.about-logo { margin-top: 56px; width: 116px; height: 116px; border-radius: 50%; filter: grayscale(.12); box-shadow: 0 0 0 1px rgba(167,99,255,.42), 0 20px 60px rgba(90,31,145,.24); }
.about-copy { padding-top: 32px; color: var(--muted); }
.about-copy .lead { color: var(--text); font-size: 1.28rem; line-height: 1.5; }
.about-copy strong { color: var(--text); }
.about-copy h3 { margin: 46px 0 18px; color: var(--text); font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; }
.goals { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.goals li { padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); position: relative; }
.goals li::before { content: ""; position: absolute; left: 1px; top: 26px; width: 7px; height: 1px; background: var(--purple); }

.schedule { background: linear-gradient(130deg, #15101d, #0a090d 58%); }
.schedule-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(64px, 11vw, 150px); align-items: start; }
.schedule-grid > div:first-child > p:not(.eyebrow) { max-width: 640px; margin: 30px 0; color: var(--muted); }
.text-link { display: inline-block; color: var(--purple-light); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.times { border-top: 1px solid rgba(189,145,255,.4); }
.times > div { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.times span { color: var(--muted); }
.times time { font-size: 1.42rem; font-variant-numeric: tabular-nums; }
.times > p { margin: 16px 0 0; color: var(--faint); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }

.site-footer { padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer-brand { height: 40px; margin-bottom: 3px; line-height: 0; }
.footer-grid > div:first-child > p:last-child, .copyright { color: var(--faint); font-size: .82rem; }
.footer-links { display: flex; gap: 28px; align-items: start; }
.footer-links a { color: var(--muted); font-size: .82rem; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  :root { --shell: min(100% - 32px, 680px); }
  .menu-button { display: block; }
  .primary-nav { position: absolute; inset: 76px 0 auto; display: none; padding: 18px 16px 24px; background: rgba(8,7,11,.97); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 0; font-size: .95rem; }
  .hero { min-height: auto; padding: 132px 0 84px; }
  .hero-grid, .split-heading, .about-grid, .schedule-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .result-card { min-height: 450px; }
  .split-heading { gap: 24px; }
  .about-grid, .schedule-grid { gap: 52px; }
  .about-logo { margin-top: 36px; }
  .empty-event { grid-template-columns: 56px 1fr; }
  .empty-event .status { grid-column: 2; }
}

@media (max-width: 620px) {
  .section { padding: 82px 0; }
  .hero-wordmark { width: min(100%, 520px); }
  .hero-focus { letter-spacing: .015em; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .result-card { padding: 24px; min-height: 420px; }
  .card-kicker { font-size: .6rem; }
  .placement { font-size: 6.7rem; }
  .result-stats { grid-template-columns: 1fr; gap: 14px; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .mini-card { min-height: 190px; }
  .mini-card + .mini-card { border-left: 0; border-top: 1px solid var(--line); }
  .mini-card .card-label { margin-top: 42px; }
  .empty-event { grid-template-columns: 1fr; padding: 26px; }
  .empty-event .status { grid-column: 1; justify-self: start; }
  .about-copy { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: space-between; }
  .copyright { grid-column: 1; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
