/* Skyrim Underground — "Northern Dusk"
   Plain CSS, no build step. Motion only applies under html.motion
   (added in <head> unless the visitor prefers reduced motion). */

/* ---------- Tokens ---------- */
:root {
  --bg: #070B12;
  --bg-raise: #0C1320;
  --surface: #111B2C;
  --surface-2: #17243A;

  --line: #2A3A52;
  --line-strong: #8AA0BF;

  --text: #E6EDF5;
  --text-hero: #B4C3D4;
  --text-muted: #9AACC2;
  --text-faint: #8193AB;

  --ice-300: #8AD4FF;
  --discord: #029FFC;
  --discord-hover: #38B6FF;
  --discord-active: #0289D9;
  --ink: #03101C;
  --ember: #E9B55A;
  --online: #3BD18A;
  --tile: #0B2236;

  --header-solid: rgba(7, 11, 18, .94);

  --font-display: "Cinzel", "Cinzel Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Barlow Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;

  --header-h: 72px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M1 13V1h12' fill='none' stroke='%238AD4FF' stroke-opacity='.45' stroke-width='1.25'/%3E%3C/svg%3E");
  --corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M1 1h12v12' fill='none' stroke='%238AD4FF' stroke-opacity='.45' stroke-width='1.25'/%3E%3C/svg%3E");
  --corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M1 1v12h12' fill='none' stroke='%238AD4FF' stroke-opacity='.45' stroke-width='1.25'/%3E%3C/svg%3E");
  --corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M13 1v12H1' fill='none' stroke='%238AD4FF' stroke-opacity='.45' stroke-width='1.25'/%3E%3C/svg%3E");
}

@font-face {
  font-family: "Cinzel Fallback";
  src: local("Georgia");
  size-adjust: 110%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  /* Keeps anchor targets and keyboard focus clear of the fixed header. */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
/* Zero specificity so component classes (.req-list etc.) can set their own padding. */
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
img, svg { display: block; }
p { text-wrap: pretty; }

a { color: inherit; }

::selection { background: rgba(2, 159, 252, .35); color: #FFFFFF; }

:focus-visible {
  outline: 2px solid var(--ice-300);
  outline-offset: 3px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  letter-spacing: .04em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  letter-spacing: .03em;
  line-height: 1.25;
  color: var(--text);
}

strong { font-weight: 700; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  --gutter: clamp(1rem, 4vw, 2.5rem);
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  /* viewport-fit=cover: keep content clear of the notch in landscape. */
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

main:focus { outline: none; }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.ember { color: var(--ember); }

.text-link {
  color: var(--ice-300);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.text-link:hover { text-decoration-thickness: 2px; }
.link-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: .3em;
  vertical-align: -.125em;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: max(8px, env(safe-area-inset-left, 0px));
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.skip-link:focus-visible { outline: 2px solid var(--ice-300); outline-offset: 0; }

/* ---------- Kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(.8125rem, .78rem + .15vw, .9375rem);
  text-transform: uppercase;
  letter-spacing: .22em;
  line-height: 1.2;
  color: var(--ice-300);
}
.kicker::before {
  content: "";
  flex: none;
  width: 38px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='8'%3E%3Cpath d='M0 4H24' stroke='%238AD4FF' stroke-opacity='.6'/%3E%3Cpath d='M34 1.5L36.5 4L34 6.5L31.5 4Z' fill='%238AD4FF'/%3E%3C/svg%3E") no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-icon { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--discord);
  border-color: var(--discord);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px -12px rgba(2, 159, 252, .55);
}
.btn-primary:hover { background: var(--discord-hover); border-color: var(--discord-hover); }
.btn-primary:active { background: var(--discord-active); border-color: var(--discord-active); }
.btn-primary:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 5px rgba(138, 212, 255, .25);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--ice-300); background: rgba(138, 212, 255, .08); }

.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0 2rem; font-size: 1.125rem; }

html.motion .btn {
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
html.motion .btn:hover { transform: translateY(-1px); }
html.motion .btn:active { transform: none; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .75rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .16em;
  white-space: nowrap;
}
.tag-req { color: var(--ice-300); background: rgba(2, 159, 252, .12); border-color: rgba(2, 159, 252, .35); }
.tag-rec { color: var(--ember); background: rgba(233, 181, 90, .10); border-color: rgba(233, 181, 90, .40); }

/* ---------- Corner-bracket frame ---------- */
.card-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    var(--corner-tl) left 8px top 8px / 14px 14px no-repeat,
    var(--corner-tr) right 8px top 8px / 14px 14px no-repeat,
    var(--corner-bl) left 8px bottom 8px / 14px 14px no-repeat,
    var(--corner-br) right 8px bottom 8px / 14px 14px no-repeat,
    var(--surface);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(4, 7, 13, .65), rgba(4, 7, 13, 0));
}
.site-header.is-solid {
  background-color: var(--header-solid);
  box-shadow: 0 1px 0 var(--line);
}
html.motion .site-header { transition: background-color 200ms ease, box-shadow 200ms ease; }
/* Only pinned once site.js is watching the hero; otherwise it scrolls away with the page. */
html:not(.header-io) .site-header { position: absolute; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.brand-emblem { width: 36px; height: 36px; flex: none; }
.brand-emblem, .final-emblem, .footer-emblem { color: var(--ice-300); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .9375rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-hero);
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: .16em;
  bottom: 9px;
  height: 1px;
  background: var(--ice-300);
  transform: scaleX(0);
  transform-origin: left;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
html.motion .site-nav a::after { transition: transform 200ms ease; }

@media (min-width: 900px) {
  .site-nav { display: block; }
}

@media (max-width: 639px) {
  :root { --header-h: 60px; }
  .brand-emblem { width: 32px; height: 32px; }
}

@media (max-width: 479px) {
  .brand-word { display: flex; flex-direction: column; }
  .brand-word-a { font-size: 11px; letter-spacing: .42em; color: var(--ice-300); }
  .brand-word-b { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
}

/* Very narrow phones (and 400% zoom): tighten the header so the button fits. */
@media (max-width: 359px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-emblem { width: 28px; height: 28px; }
  .site-header .btn-sm { padding: 0 12px; font-size: .875rem; letter-spacing: .08em; }
}
@media (max-width: 299px) {
  .brand-word { display: none; }
}

@media (max-height: 500px) {
  html { scroll-padding-top: 0; }
  .site-header { position: absolute; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  min-height: max(640px, 100svh);
  background: linear-gradient(180deg, #04070D 0%, #081020 38%, #12223D 62%, #1D3352 74%, #070B12 100%);
}

.hero-art,
.hero-art > * {
  position: absolute;
  pointer-events: none;
}
.hero-art { inset: 0; z-index: 0; }

/* Hero artwork. The gradient keeps the header and text readable and fades into the next section. */
.hero-bg {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, .6) 0%, rgba(7, 11, 18, .3) 30%, rgba(7, 11, 18, .45) 62%, rgba(7, 11, 18, .85) 88%, #070B12 100%),
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(7, 11, 18, .45), transparent 75%),
    url("/img/hero.jpg") center 35% / cover no-repeat,
    #070B12;
}

/* Soft aurora bands from plain gradients. A blur() filter looked the same but was
   re-blurred on every scroll frame, which made the hero lag. */
.aurora {
  top: 4%;
  left: -10%;
  width: 120%;
  height: 46%;
  opacity: .22;
  background:
    radial-gradient(ellipse 22% 30% at 10% 62%, rgba(77, 224, 176, .95), transparent 72%),
    radial-gradient(ellipse 26% 30% at 32% 52%, rgba(64, 210, 185, .85), transparent 72%),
    radial-gradient(ellipse 24% 26% at 50% 44%, rgba(43, 184, 201, .7), transparent 72%),
    radial-gradient(ellipse 28% 22% at 58% 30%, rgba(139, 124, 246, .85), transparent 72%),
    radial-gradient(ellipse 24% 20% at 80% 20%, rgba(139, 124, 246, .55), transparent 72%),
    radial-gradient(ellipse 20% 24% at 78% 46%, rgba(43, 184, 201, .35), transparent 72%);
}

.ridge {
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(200px, 40vh, 460px);
}

.snow {
  inset: 0;
  overflow: hidden;
}
.snow-a, .snow-b { position: absolute; left: 0; right: 0; bottom: 0; }
.snow-a {
  top: -240px;
  background-image:
    radial-gradient(circle at 22px 36px, rgba(220, 230, 242, .55) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 88px 12px, rgba(220, 230, 242, .55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 150px 70px, rgba(220, 230, 242, .55) 0 1.5px, transparent 2.1px),
    radial-gradient(circle at 210px 140px, rgba(220, 230, 242, .55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 60px 170px, rgba(220, 230, 242, .55) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 128px 210px, rgba(220, 230, 242, .55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 196px 228px, rgba(220, 230, 242, .55) 0 1.5px, transparent 2.1px);
  background-size: 240px 240px;
}
.snow-b {
  top: -360px;
  background-image:
    radial-gradient(circle at 40px 80px, rgba(220, 230, 242, .35) 0 2px, transparent 2.7px),
    radial-gradient(circle at 170px 20px, rgba(220, 230, 242, .35) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at 300px 150px, rgba(220, 230, 242, .35) 0 2px, transparent 2.7px),
    radial-gradient(circle at 110px 260px, rgba(220, 230, 242, .35) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at 250px 320px, rgba(220, 230, 242, .35) 0 2px, transparent 2.7px);
  background-size: 360px 360px;
}

.hero-content.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 60rem;
  min-height: inherit;
  padding-top: 104px;
  padding-bottom: clamp(120px, 22vh, 260px);
  text-align: center;
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(7, 11, 18, .55), transparent 75%);
  pointer-events: none;
}

.hero-sentinel {
  position: absolute;
  top: 72px;
  left: 0;
  width: 1px;
  height: 1px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(233, 181, 90, .45);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .8125rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.pill-short { display: none; }

.status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1;
}
.h1-eyebrow {
  display: block;
  margin-bottom: .35em;
  padding-left: .6em;
  font-weight: 600;
  font-size: clamp(.95rem, .7rem + 1.1vw, 1.5rem);
  letter-spacing: .6em;
  text-transform: uppercase;
  color: var(--ice-300);
}
.h1-title {
  display: block;
  font-weight: 700;
  font-size: clamp(1.75rem, 9.2vw, 6rem);
  letter-spacing: .06em;
  /* Re-center: trailing tracking would otherwise push the word left. */
  padding-left: .06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #EEF3F9;
  /* text-shadow instead of filter: drop-shadow, which forced an extra render pass while scrolling. */
  text-shadow: 0 0 28px rgba(138, 212, 255, .28), 0 2px 0 rgba(0, 0, 0, .55);
}

.knot {
  width: 280px;
  height: 20px;
  overflow: visible;
}
.hero-knot { margin: 24px auto; }

.hero-tagline {
  font-style: italic;
  font-size: clamp(1.125rem, .95rem + .9vw, 1.5rem);
  line-height: 1.4;
  color: var(--text);
}
.hero-sub {
  max-width: 36rem;
  margin-top: 12px;
  text-wrap: balance;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-hero);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.live {
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-hero);
  font-variant-numeric: tabular-nums;
}
.live:not([hidden]) { display: inline-flex; }
/* Reserve the hero line's space so the centered column doesn't jump when the count appears. */
.hero .live { display: inline-flex; min-height: 1.4em; }
.hero .live[hidden] { visibility: hidden; }
.live::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
}
.live strong { color: var(--text); }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline: auto;
  color: rgba(138, 212, 255, .7);
}
.scroll-cue svg { width: 20px; height: 20px; }
.scroll-cue:hover { color: var(--ice-300); }

.motion-toggle {
  position: absolute;
  z-index: 2;
  right: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right, 0px));
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(138, 160, 191, .45);
  border-radius: 2px;
  background: rgba(7, 11, 18, .6);
  color: var(--text-hero);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.motion-toggle svg { width: 14px; height: 14px; flex: none; }
.motion-toggle .motion-icon-play,
.motion-toggle.is-off .motion-icon-pause { display: none; }
.motion-toggle.is-off .motion-icon-play { display: block; }

/* Phones: icon-only chip so it never crowds the scroll cue. */
@media (max-width: 639px) {
  .motion-toggle { width: 44px; padding: 0; justify-content: center; }
  .motion-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-height: 600px) {
  .scroll-cue { display: none; }
}

/* Short laptop screens: pull the content up so the scroll cue stays above the fold. */
@media (min-width: 640px) and (max-height: 720px) {
  .hero-content.container { padding-bottom: clamp(96px, 16vh, 260px); }
}

/* Landscape phones: compact the hero so the primary CTA is visible without scrolling. */
@media (max-height: 500px) and (min-width: 560px) {
  .hero { min-height: auto; }
  .hero-content.container { min-height: 0; padding-top: 72px; padding-bottom: 56px; }
  .status-pill { margin-bottom: 8px; }
  .h1-eyebrow { margin-bottom: .15em; }
  .h1-title { font-size: clamp(1.75rem, 11vh, 6rem); }
  .hero-knot { display: none; }
  .hero-tagline { margin-top: 8px; font-size: 1.125rem; }
  .hero-sub { margin-top: 2px; max-width: 44rem; line-height: 1.45; }
  .cta-row { margin-top: 14px; }
  .hero .live { margin-top: 8px; }
}

@media (max-width: 639px) {
  .aurora { height: 36%; }
  .snow-b { display: none; }
  .knot { width: 200px; height: 16px; }
  .hero-content.container { padding-top: 88px; }
}

@media (max-width: 479px) {
  .pill-long { display: none; }
  .pill-short { display: inline; }
  .cta-row { flex-direction: column; align-self: stretch; }
  .cta-row .btn,
  .join-cta .btn,
  .final-stack .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem);
}
.about:focus { outline: none; }

.band { background: var(--bg-raise); }
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 24px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.band::before {
  top: -23px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V14L80 9L150 13L260 4L330 11L420 7L540 15L640 6L720 12L830 3L930 12L1030 8L1130 14L1240 5L1330 11L1440 8V24Z' fill='%230C1320'/%3E%3C/svg%3E");
}
.band::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12L110 6L210 14L320 8L450 16L560 5L690 13L790 9L900 15L1010 4L1120 12L1230 7L1340 15L1440 10V24Z' fill='%23070B12'/%3E%3C/svg%3E");
}
@media (max-width: 639px) {
  .band::before, .band::after { height: 16px; }
  .band::before { top: -15px; }
}

.section-head {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.lead {
  margin-top: 20px;
  font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  line-height: 1.55;
  color: var(--text);
}

/* About */
.about-prose > p:not(.kicker):not(.lead) {
  margin-top: 18px;
  max-width: 65ch;
  color: var(--text-muted);
}
.about-prose .lead { max-width: 60ch; }

.ledger {
  margin-top: 40px;
  padding: 28px;
}
.ledger::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, #8AD4FF, transparent 70%);
}
/* Feature list: label above its description. */
.ledger dl > div {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ledger dt {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
}
.ledger dd {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--text);
}
.ledger-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text);
}

@media (max-width: 399px) {
  .ledger { padding: 24px 20px; }
}

@media (min-width: 960px) {
  .about-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 48px;
    align-items: start;
  }
  .about-prose { grid-column: 1 / 8; }
  .ledger { grid-column: 8 / 13; margin-top: 0; }
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 56px;
}
@media (min-width: 640px) {
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .pillar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1100px) and (max-width: 1179px) {
  .pillar { padding-inline: 20px; }
  .pillar h3 { font-size: 1.1875rem; }
}

.pillar {
  padding: 28px 24px 32px;
  background:
    var(--corner-tl) left 8px top 8px / 14px 14px no-repeat,
    var(--corner-tr) right 8px top 8px / 14px 14px no-repeat,
    var(--corner-bl) left 8px bottom 8px / 14px 14px no-repeat,
    var(--corner-br) right 8px bottom 8px / 14px 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px),
    var(--surface);
}
.numeral {
  position: absolute;
  top: 22px;
  right: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--text-faint);
}
.pillar-icon {
  width: 48px;
  height: 48px;
  color: var(--ice-300);
}
.pillar h3 { margin: 20px 0 10px; }
.pillar p:not(.tag) {
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  color: var(--text-muted);
}
.pillar .tag { margin-top: 14px; }

/* Requirements */
.req-head .muted { margin-top: 18px; max-width: 46ch; }

.req-list {
  margin-top: 32px;
  padding: 8px 20px;
}
.req-list li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 8px;
  align-items: start;
  padding: 22px 0;
}
.req-list li + li { border-top: 1px solid var(--line); }
.req-list li + li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  transform: rotate(45deg);
  background: var(--surface);
  border: 1px solid rgba(138, 212, 255, .5);
}
.req-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(2, 159, 252, .35);
  border-radius: 2px;
  background: var(--tile);
  color: var(--ice-300);
}
.req-icon svg { width: 22px; height: 22px; }
.req-text h3 { font-size: 1.125rem; }
.req-text p {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.req-text p + p { margin-top: 8px; }
.req-list .tag { grid-column: 2; }

@media (min-width: 640px) {
  .req-list { padding: 8px 28px; }
  .req-list li { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .req-list .tag { grid-column: 3; margin-top: 2px; }
}

@media (min-width: 960px) {
  .req-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 48px;
    align-items: start;
  }
  .req-head { grid-column: 1 / 6; }
  .req-list { grid-column: 6 / 13; margin-top: 0; }
}

/* How to join */
.steps {
  position: relative;
  display: grid;
  gap: 36px;
  margin-top: 56px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
}
/* Mobile trail: each step draws the segment down to the next medallion. */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -58px;
  left: 21.5px;
  border-left: 1px dashed #3C5373;
}
.medallion {
  position: relative;
  z-index: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 3px var(--bg-raise), inset 0 0 0 4px var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  color: var(--ice-300);
}
.step h3 { align-self: center; min-height: 44px; display: flex; align-items: center; }
.step p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: balance;
}

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step:not(:last-child)::before { display: none; }
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    border-top: 1px dashed #3C5373;
  }
  .step {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    text-align: center;
    row-gap: 0;
  }
  .medallion {
    grid-row: auto;
    width: 56px;
    height: 56px;
    font-size: 20px;
    box-shadow: inset 0 0 0 4px var(--bg-raise), inset 0 0 0 5px var(--line);
  }
  .step h3 { margin-top: 20px; min-height: 0; }
  .step p { margin-top: 10px; max-width: 22ch; }
}

/* Steps placed in the narrow column beside the requirements list stay stacked on desktop. */
@media (min-width: 960px) {
  .req-head .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .req-head .steps::before { display: none; }
  .req-head .step {
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    column-gap: 20px;
    row-gap: 6px;
    text-align: left;
  }
  .req-head .step:not(:last-child)::before { display: block; }
  .req-head .medallion {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    font-size: 17px;
    box-shadow: inset 0 0 0 3px var(--bg-raise), inset 0 0 0 4px var(--line);
  }
  .req-head .step h3 { margin-top: 0; min-height: 44px; }
  .req-head .step p { margin-top: 0; max-width: none; }
}

.join-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 56px auto 0;
}
.faq-list details {
  padding-inline: 16px;
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list details[open] { background: var(--surface-2); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: 4px; }
.faq-mark {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
details[open] > summary .faq-mark { color: var(--ice-300); transform: rotate(45deg); }
html.motion .faq-mark { transition: transform 200ms ease, color 200ms ease; }

.faq-list details > p {
  max-width: 62ch;
  padding-bottom: 22px;
  color: var(--text-muted);
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(5rem, 4rem + 6vw, 9rem) calc(clamp(5rem, 4rem + 6vw, 9rem) + 48px);
  background: linear-gradient(180deg, #070B12 0%, #0A1A2E 55%, #0D1F38 100%);
  text-align: center;
}
.aurora-echo {
  position: absolute;
  top: 0;
  height: 60%;
  opacity: .16;
  pointer-events: none;
}
.final-stack.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
}
.final-emblem { width: 56px; height: 56px; margin-bottom: 24px; }
.final-cta h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.final-stack > p:not(.live):not(.final-small) {
  margin-top: 16px;
  color: var(--text-hero);
}
.final-stack .btn { margin-top: 32px; }
.final-small {
  margin-top: 20px;
  font-size: .875rem;
  color: var(--text-hero);
}
.final-ridge {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  pointer-events: none;
}
@media (max-width: 639px) {
  .final-emblem { width: 48px; height: 48px; }
  .final-ridge { height: 48px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 32px;
  background: var(--bg);
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-emblem { width: 32px; height: 32px; flex: none; }
.footer-brand .faint { margin-top: 10px; font-size: .9375rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.footer-discord { display: flex; align-items: center; min-height: 44px; }

.footer-rule {
  height: 1px;
  margin: 32px 0 20px;
  border: 0;
  background: var(--line);
}
.legal {
  max-width: 72ch;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text-faint);
}
.legal + .legal { margin-top: 10px; }
.legal a { color: var(--text-muted); text-underline-offset: .2em; }
.legal a:hover { color: var(--text); }

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; }
  .footer-discord { grid-column: 2; grid-row: 1; justify-content: flex-end; }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.4fr 1.6fr 1fr; }
  .footer-nav, .footer-discord { grid-column: auto; grid-row: auto; }
}

/* ---------- 404 ---------- */
.lost {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  min-height: max(560px, 100svh);
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 48px) 0 max(160px, 14vw);
  background: linear-gradient(180deg, #04070D 0%, #081020 45%, #12223D 75%, #070B12 100%);
  text-align: center;
}
.lost .ridge { height: max(clamp(140px, 28vh, 300px), 17.5vw); }
.lost-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lost-code {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .9375rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--ice-300);
}
.lost h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  letter-spacing: .04em;
  line-height: 1.15;
  text-wrap: balance;
}
.lost p:not(.lost-code) { margin-top: 16px; max-width: 34rem; color: var(--text-hero); text-wrap: balance; }
.lost .btn { margin-top: 32px; }

/* ---------- Motion (opt-in via html.motion) ---------- */
@keyframes aurora-sway {
  from { transform: translateX(-3%) scaleY(.94); opacity: .16; }
  to { transform: translateX(3%) scaleY(1.06); opacity: .22; }
}
@keyframes aurora-sway-echo {
  from { transform: translateX(3%) scaleY(.94); opacity: .1; }
  to { transform: translateX(-3%) scaleY(1.06); opacity: .16; }
}
@keyframes snow-a { to { transform: translate3d(0, 240px, 0); } }
@keyframes snow-b { to { transform: translate3d(0, 360px, 0); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes pulse {
  from { transform: scale(1); opacity: .6; }
  to { transform: scale(2.4); opacity: 0; }
}
@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(6px); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.motion .aurora-echo {
  will-change: transform, opacity;
  animation: aurora-sway-echo 30s ease-in-out infinite alternate;
}
html.motion .snow-a { will-change: transform; animation: snow-a 20s linear infinite; }
html.motion .snow-b { will-change: transform; animation: snow-b 22s linear infinite; }
/* Attention loops are finite (they stop within 5s); snow/aurora have the pause button. */
html.motion .hero .status-dot::after { animation: pulse 2.4s ease-out 2; }
html.motion .scroll-cue svg { animation: bob 1.2s ease-in-out 4 alternate; }

/* One-time entrance. Not replayed when the visitor switches animation back on. */
html.motion:not(.motion-resumed) .hero-content > :not(.hero-sentinel) {
  animation: rise 700ms var(--ease-out) both;
}
html.motion .hero-content > :nth-child(3) { animation-delay: 80ms; }
html.motion .hero-content > :nth-child(4) { animation-delay: 160ms; }
html.motion .hero-content > :nth-child(5) { animation-delay: 240ms; }
html.motion .hero-content > :nth-child(6) { animation-delay: 320ms; }
html.motion .hero-content > :nth-child(7) { animation-delay: 400ms; }
html.motion .hero-content > :nth-child(8) { animation-delay: 480ms; }

html.motion:not(.motion-resumed) .hero-knot .knot-l,
html.motion:not(.motion-resumed) .hero-knot .knot-r {
  transform-box: fill-box;
  animation: draw-x 900ms var(--ease-out) 400ms both;
}
.hero-knot .knot-l { transform-origin: right center; }
.hero-knot .knot-r { transform-origin: left center; }

html.motion .live:not([hidden]) { animation: fade-in 300ms ease both; }

/* Paused when scrolled out of view (toggled by site.js). */
.is-paused .aurora,
.is-paused .snow-a,
.is-paused .snow-b { animation-play-state: paused !important; }

/* Section reveal: content is only hidden once site.js is running and observing (.reveal-on),
   so a failed or blocked script can never leave the page blank. */
html.motion.reveal-on .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
html.motion.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
html.motion.reveal-on .pillar:nth-child(2), html.motion.reveal-on .step:nth-child(2) { transition-delay: 90ms; }
html.motion.reveal-on .pillar:nth-child(3), html.motion.reveal-on .step:nth-child(3) { transition-delay: 180ms; }
html.motion.reveal-on .pillar:nth-child(4), html.motion.reveal-on .step:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .snow { display: none; }
  .aurora { opacity: .18; }
  .aurora-echo { opacity: .14; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .motion-toggle { display: none !important; }
}

/* ---------- Forced colors (Windows High Contrast) ---------- */
@media (forced-colors: active) {
  .h1-title { color: CanvasText; text-shadow: none; }
  .btn { border: 1px solid ButtonText; }
  .hero-art, .aurora, .aurora-echo, .snow, .final-ridge,
  .band::before, .band::after, .motion-toggle { display: none; }
  .faq-mark, .pillar-icon, .req-icon, .scroll-cue,
  .brand-emblem, .final-emblem, .footer-emblem { color: CanvasText; }
  :focus-visible { outline-color: Highlight; }
  .status-dot, .live::before { forced-color-adjust: none; }
}

/* ---------- Print ---------- */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .site-header { position: absolute; }
  .hero-art, .scroll-cue, .motion-toggle, .aurora-echo { display: none; }
}
