/* ===== tokens.css ===== */
/*************************************************************************
 * Asura Website — design tokens (CSS custom properties)
 * Story 2.2: split from prototype.css. Source of truth — edit ONLY here.
 * The build script (scripts/build_assets.py) concatenates the 4 files in
 * order: tokens -> base -> components -> sections, output app.min.css.
 *************************************************************************/

/* =========================================================
   ASURA PORTAL — design tokens
   Lime-green Asura brand · warm charcoal base · cyan reserved for Nexus.
   ========================================================= */
:root {
  --bg:              #171612;
  --bg-deep:         #0E0D0A;
  --surface:         #22201A;
  --surface-raised:  #2D2A22;
  --surface-border:  #3A362A;

  --brand:           #A8E84F;       /* lime — Asura primary */
  --brand-deep:      #7BB22E;
  --brand-glow:      rgba(168, 232, 79, 0.20);

  --amber:           #E8B25A;       /* warm — community moments */
  --amber-deep:      #C68F38;
  --amber-glow:      rgba(232, 178, 90, 0.22);

  --nexus:           #3FC6E0;                    /* cyan — RESERVED for Nexus references only */
  --nexus-soft:      rgba(63, 198, 224, 0.4);    /* button border idle */
  --nexus-fill:      rgba(63, 198, 224, 0.08);   /* button hover background */
  --nexus-edge:      rgba(63, 198, 224, 0.35);   /* card hover border */
  --nexus-glow:      rgba(63, 198, 224, 0.18);   /* shadow for Nexus card hover */

  --critical:        #E85A5A;
  --success:         #7BB22E;

  --text:            #EDE8DD;
  --heading:         #FAF6EC;
  --muted:           #7A6F5C;
  --muted-strong:    #9C8E76;

  --font-display:    'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:       'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, monospace;

  /* Fraunces tuning shortcuts. Use these in font-variation-settings on display elements. */
  --fraunces-display:  "opsz" 144, "wght" 600, "SOFT" 80;  /* Hero, big H2 */
  --fraunces-headline: "opsz" 72,  "wght" 600, "SOFT" 60;  /* Section heads */
  --fraunces-cardhead: "opsz" 24,  "wght" 600, "SOFT" 40;  /* Card titles */

  --radius:          4px;
  --radius-lg:       8px;

  --section-pad:     8rem;          /* desktop vertical rhythm */
  --section-pad-sm:  4rem;          /* mobile */

  --max-width:       1280px;

  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== base.css ===== */
/*************************************************************************
 * Asura Website — reset, typography, layout primitives
 * Story 2.2: split from prototype.css. Source of truth — edit ONLY here.
 * The build script (scripts/build_assets.py) concatenates the 4 files in
 * order: tokens -> base -> components -> sections, output app.min.css.
 *************************************************************************/

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle film-grain overlay for texture (slipped in despite the user not picking it — it's tasteful and barely there). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;          /* Fraunces 600 reads like 700 because of its warmth */
  color: var(--heading);
  letter-spacing: -0.015em;  /* Less tight than Space Grotesk wanted; Fraunces breathes */
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-variation-settings: var(--fraunces-headline);
}
h1 { font-variation-settings: var(--fraunces-display); }
h4, h5 { font-variation-settings: var(--fraunces-cardhead); font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
a:hover { color: var(--brand-deep); }

::selection {
  background: var(--brand);
  color: var(--bg);
}

/* =========================================================
   LAYOUT — section rhythm, container override
   ========================================================= */
section {
  padding: var(--section-pad) 0;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: var(--section-pad-sm) 0; }
}

.container {
  max-width: var(--max-width);
  padding-inline: 1.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-strong);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--brand);
  vertical-align: middle;
  margin-right: 0.75rem;
  transform: translateY(-2px);
}

/* ===== components.css ===== */
/*************************************************************************
 * Asura Website — navbar, buttons, cards, status pills, slot bars, reveal utils
 * Story 2.2: split from prototype.css. Source of truth — edit ONLY here.
 * The build script (scripts/build_assets.py) concatenates the 4 files in
 * order: tokens -> base -> components -> sections, output app.min.css.
 *************************************************************************/

/* =========================================================
   NAVBAR — custom, sticky, blurred
   ========================================================= */
.nav-asura {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(23, 22, 18, 0.65);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease-out), padding 250ms var(--ease-out);
}
.nav-asura.scrolled {
  border-bottom-color: var(--surface-border);
  padding: 0.7rem 2rem;
}
.nav-asura .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-asura .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  /* Nav brand stays Inter — uppercase tracked sans reads cleanly here, serif at this size feels off. */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--heading);
  text-transform: uppercase;
}
.nav-asura .brand-mark {
  width: 28px;
  height: 28px;
}
.nav-asura .brand:hover { color: var(--brand); }
.nav-asura .brand:hover .brand-mark path { fill: var(--brand); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.nav-links a:hover { color: var(--heading); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-ctas { display: flex; gap: 0.75rem; }

@media (max-width: 900px) {
  .nav-asura { padding: 0.8rem 1rem; }
  .nav-asura .nav-inner { gap: 1rem; }
  .nav-links { display: none; }
}

/* =========================================================
   BUTTONS — fully custom, override Bootstrap .btn
   ========================================================= */
.btn-asura {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  /* Buttons stay in Inter — serif on buttons feels precious and reduces clarity. */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-asura.btn-primary {
  background: var(--brand);
  color: #0E1108;
  border-color: var(--brand);
  box-shadow: 0 0 0 0 var(--brand-glow);
}
.btn-asura.btn-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 28px var(--brand-glow);
}

.btn-asura.btn-amber {
  background: var(--amber);
  color: #2A1B05;
  border-color: var(--amber);
}
.btn-asura.btn-amber:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: #1F1304;
  transform: translateY(-1px);
  box-shadow: 0 4px 28px var(--amber-glow);
}

.btn-asura.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--surface-border);
}
.btn-asura.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-asura.btn-nexus {
  background: transparent;
  color: var(--nexus);
  border-color: var(--nexus-soft);
}
.btn-asura.btn-nexus:hover {
  border-color: var(--nexus);
  background: var(--nexus-fill);
  box-shadow: 0 0 24px var(--nexus-glow);
}

.btn-asura.btn-sm { padding: 0.55rem 1rem; font-size: 0.82rem; }

/* =========================================================
   CARDS — custom, hover lift + glow
   ========================================================= */
.asura-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: transform 350ms var(--ease-out), border-color 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.asura-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top, var(--brand-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}
.asura-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 232, 79, 0.35);
  box-shadow: 0 12px 40px -10px rgba(168, 232, 79, 0.18), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.asura-card:hover::before { opacity: 1; }

.asura-card .card-content { position: relative; z-index: 1; }

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 232, 79, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(168, 232, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 232, 79, 0); }
}
.status-pill.offline .dot {
  background: var(--muted);
  animation: none;
}
.status-pill.amber .dot { background: var(--amber); animation-name: pulse-amber; }
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(232, 178, 90, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(232, 178, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 178, 90, 0); }
}

/* =========================================================
   IMAGE PLACEHOLDERS — for the prototype
   Each carries the AI-generation prompt the user can copy.
   ========================================================= */
.image-placeholder {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raised) 100%);
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
}
.image-placeholder::before {
  content: "\f03e"; /* fa-image */
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  position: absolute;
  top: 1rem; right: 1.2rem;
  color: var(--surface-border);
  font-size: 1.4rem;
}
.image-placeholder .label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-size: 0.7rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.image-placeholder .prompt-label {
  color: var(--amber);
  font-weight: 600;
  margin-top: 0.8rem;
}
.image-placeholder .prompt {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-top: 0.3rem;
}


/* =========================================================
   UTILITIES — reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue { animation: none; }
  .hero-bg .layer { transform: none !important; }
}

/* =========================================================
   STATIC PAGES — privacy / terms / about / rules / guides
   Story 3.1: shared article shell.
   ========================================================= */
.page-article {
  padding: 9rem 0 6rem;
  min-height: 70vh;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.md-body {
  color: var(--ink, #ECE7DA);
  line-height: 1.7;
  font-size: 1.05rem;
}
.md-body h1 {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 2rem;
  color: var(--ink-strong, #fff);
}
.md-body h2 {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 3rem 0 1rem;
  color: var(--ink-strong, #fff);
}
.md-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink-strong, #fff);
}
.md-body p { margin: 0 0 1.25rem; }
.md-body a {
  color: var(--asura-lime, #A8E84F);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.md-body a:hover { text-decoration-thickness: 2px; }
.md-body ul, .md-body ol { margin: 0 0 1.5rem 1.25rem; padding: 0; }
.md-body li { margin-bottom: 0.5rem; }
.md-body code {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.md-body pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.md-body pre code { background: transparent; padding: 0; }
.md-body blockquote {
  border-left: 3px solid var(--asura-lime, #A8E84F);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--muted-strong, #B7B0A1);
  margin: 1.5rem 0;
  font-style: italic;
}
.md-body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 3rem 0;
}
.page-last-updated {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted, #8A8475);
  font-size: 0.9rem;
}

/* Guide cards turned into clickable links — strip default link styling so
   the card itself is the click target. */
.guide-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.guide-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* ===== sections.css ===== */
/*************************************************************************
 * Asura Website — per-section visual styles + breakpoints
 * Story 2.2: split from prototype.css. Source of truth — edit ONLY here.
 * The build script (scripts/build_assets.py) concatenates the 4 files in
 * order: tokens -> base -> components -> sections, output app.min.css.
 *************************************************************************/

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}

/* Hero image background — single photographic layer, parallax-driven on scroll. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg .hero-image {
  position: absolute;
  inset: -8% 0 -8% 0;          /* Slight overscan so parallax doesn't reveal edges */
  width: 100%;
  height: 116%;
  display: block;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
/* The inner <img> inside the <picture> fills the area and crops via object-fit. */
.hero-bg .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
/* Multi-layer overlay: warms, darkens, and vignettes for text legibility without flattening the photo. */
.hero-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(14, 13, 10, 0.55) 75%, rgba(14, 13, 10, 0.85) 100%),
    linear-gradient(180deg, rgba(23, 22, 18, 0.35) 0%, transparent 30%, transparent 70%, rgba(23, 22, 18, 0.85) 100%);
  pointer-events: none;
}

/* Hero content */
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 2.5rem;
  display: block;
  filter: drop-shadow(0 0 32px var(--brand-glow));
}

.hero-headline {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "wght" 600, "SOFT" 100;  /* Maximum softness at hero scale */
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  color: var(--heading);
}
/* Italic plays beautifully with Fraunces — used very sparingly */
.hero-headline em {
  font-style: italic;
  color: var(--brand);
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 100;
}
.hero-headline .punctuation {
  color: var(--brand);
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.55;
}
.hero-sub em {
  font-style: italic;
  color: var(--heading);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-pulse {
  position: absolute;
  top: 5.5rem;
  right: 2rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(34, 32, 26, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
}
.hero-pulse .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand);
  animation: pulse 2s var(--ease-out) infinite;
}
@media (max-width: 900px) { .hero-pulse { top: 4.5rem; right: 1rem; font-size: 0.72rem; } }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  animation: cue-float 3s ease-in-out infinite;
}
@keyframes cue-float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}
.scroll-cue .arrow { display: block; margin-top: 0.5rem; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  background: var(--bg);
}
.manifesto h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.manifesto .lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
}
.manifesto-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  position: sticky;
  top: 6rem;
}
.manifesto-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) brightness(0.92);
  transition: filter 600ms var(--ease-out);
}
.manifesto-figure:hover img {
  filter: saturate(1.05) brightness(1);
}
@media (max-width: 992px) {
  .manifesto-figure { position: static; aspect-ratio: 16 / 10; }
}

.pillar {
  padding: 1.75rem 0;
  border-top: 1px solid var(--surface-border);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.pillar:last-child { border-bottom: 1px solid var(--surface-border); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brand);
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.pillar-body h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--heading);
}
.pillar-body p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   APPS section
   ========================================================= */
.apps {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.apps h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.5rem;
}
.apps .section-sub {
  color: var(--muted-strong);
  font-size: 1.05rem;
  margin-bottom: 4rem;
  max-width: 600px;
}

.app-card .brand-mark {
  width: 36px; height: 36px;
  margin-bottom: 1.5rem;
}
.app-card .app-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.app-card .app-host {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-strong);
  margin-bottom: 1.4rem;
}
.app-card .app-desc {
  color: var(--text);
  margin-bottom: 1.6rem;
  font-size: 0.97rem;
  line-height: 1.6;
}
.app-card .app-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-strong);
  padding-top: 1.4rem;
  margin-top: 1.6rem;
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.app-card.nexus:hover {
  border-color: var(--nexus-edge);
  box-shadow: 0 12px 40px -10px var(--nexus-glow), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.app-card.nexus::before {
  background: radial-gradient(ellipse at top, var(--nexus-glow) 0%, transparent 60%);
}

.apps-tail {
  text-align: center;
  margin-top: 3rem;
  color: var(--muted-strong);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* =========================================================
   SERVERS
   ========================================================= */
.servers {
  background: var(--bg);
}
.server-card .server-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.server-card .server-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.02em;
}
.server-card .server-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.6rem;
  display: block;
}
.server-card.pvp .server-tag { color: var(--critical); }
.server-card .slot-bar {
  height: 6px;
  background: var(--surface-raised);
  border-radius: 100px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  position: relative;
}
.server-card .slot-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  border-radius: 100px;
  width: 0%;
  transition: width 1.6s var(--ease-out);
}
.server-card .slot-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.server-card .server-body {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.servers-note {
  text-align: center;
  color: var(--muted-strong);
  font-size: 0.92rem;
  margin-top: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* =========================================================
   RULES
   ========================================================= */
.rules {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 50%, var(--bg) 100%);
}
.rules h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 4rem;
  max-width: 700px;
}
.rule-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--surface-border);
  align-items: start;
}
.rule-row:last-of-type { border-bottom: 1px solid var(--surface-border); }
.rule-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--brand);
  font-weight: 500;
  padding-top: 0.4rem;
}
.rule-content h4 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--heading);
}
.rule-content p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}
.rules .full-link {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
}
.rules .full-link:hover { gap: 0.9rem; }

/* =========================================================
   GUIDES preview
   ========================================================= */
.guides {
  background: var(--bg);
}
.guide-card {
  padding: 0;
  overflow: hidden;
}
.guide-card .guide-cover {
  height: 220px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}
.guide-card .guide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease-out), filter 500ms var(--ease-out);
  filter: saturate(0.92) brightness(0.92);
}
.guide-card:hover .guide-cover img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}
/* Subtle bottom-edge shadow on cover image so the body text doesn't fight it */
.guide-card .guide-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--surface) 95%);
  pointer-events: none;
}
.guide-card .guide-body {
  padding: 2rem;
}
.guide-card .guide-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.guide-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.guide-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.guides-cta-row {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================================
   MAP showcase
   ========================================================= */
.map-showcase {
  background: var(--bg-deep);
  overflow: hidden;
}
.map-showcase h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  max-width: 700px;
}
.map-showcase .lead {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3rem;
}
.map-frame {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(232, 178, 90, 0.06) 0%,
      var(--bg-deep) 70%);
  max-height: 720px;
}
@media (min-width: 900px) {
  .map-frame { aspect-ratio: 16 / 10; }
}
.map-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.map-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 1200ms var(--ease-out), filter 500ms var(--ease-out);
  filter: saturate(0.95) drop-shadow(0 0 30px rgba(232, 178, 90, 0.15));
}
.map-link:hover img {
  transform: scale(1.025);
  filter: saturate(1.05) drop-shadow(0 0 40px rgba(232, 178, 90, 0.25));
}
.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 13, 10, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2rem;
  transition: background 300ms var(--ease-out);
  pointer-events: none;
}
.map-link:hover .map-overlay {
  background: linear-gradient(180deg, rgba(14, 13, 10, 0.1) 0%, rgba(14, 13, 10, 0.7) 100%);
}
.map-overlay-text {
  color: var(--heading);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  background: rgba(168, 232, 79, 0.92);
  color: #0E1108;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  transition: transform 300ms var(--ease-out);
}
.map-link:hover .map-overlay-text {
  transform: translateY(-3px);
}
.map-out {
  margin-top: 2rem;
  text-align: right;
}

/* =========================================================
   DISCORD CTA — full bleed amber moment
   ========================================================= */
.discord-cta {
  background-color: #1A130A;
  background-image: url("discord%20CTA.png");
  background-size: cover;
  background-position: center 65%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Heavy dark overlay so headline + numbers always read; warm color tint preserves the photo's mood. */
.discord-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(14, 13, 10, 0.55) 0%, rgba(14, 13, 10, 0.85) 100%),
    linear-gradient(135deg, rgba(42, 31, 14, 0.4) 0%, rgba(34, 26, 24, 0.4) 100%);
  pointer-events: none;
}
.discord-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(232, 178, 90, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(168, 232, 79, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.discord-cta-inner {
  position: relative;
  z-index: 2;  /* Above ::before AND ::after overlays */
}
.discord-cta h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.discord-cta .live-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.discord-cta .stat {
  text-align: center;
}
.discord-cta .stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  display: block;
}
.discord-cta .stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  display: block;
}
.discord-cta .btn-asura.btn-amber {
  padding: 1.1rem 2.2rem;
  font-size: 1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer.site-footer {
  background: var(--bg-deep);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--surface-border);
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
footer .footer-brand .brand-mark {
  width: 32px; height: 32px;
  margin-bottom: 1rem;
}
footer .footer-brand p {
  color: var(--muted-strong);
  font-size: 0.9rem;
  margin: 0;
  max-width: 280px;
}
footer .footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
footer .footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
footer .footer-col li { margin-bottom: 0.6rem; }
footer .footer-col a {
  color: var(--text);
  font-size: 0.92rem;
}
footer .footer-col a:hover { color: var(--brand); }
footer .footer-col a .out { font-size: 0.7em; opacity: 0.6; margin-left: 0.2em; }

footer .footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}


/* =========================================================
   TRIADIC SECTIONS (Waves 1-4) — shared base + per-wave styles.
   Story 2.8 ships Wave 4. Stories 2.9/2.10/2.11 layer on top.
   ========================================================= */
.triadic {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
@media (max-width: 768px) {
  .triadic { padding: var(--section-pad-sm) 0; }
}
.triadic .section-subhead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--heading);
  margin-bottom: 2rem;
  font-variation-settings: var(--fraunces-headline);
}

/* Big counter (used by Wave 4 total-scale and reusable for other waves). */
.big-counter {
  text-align: center;
  padding: 2rem 0;
}
.big-counter-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-variation-settings: var(--fraunces-display);
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  display: inline-block;
}
.big-counter-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--brand-deep);
  vertical-align: top;
  margin-left: 0.1em;
}
.big-counter-label {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 1rem;
  font-style: italic;
}
.big-counter-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.stale .big-counter-num,
.big-counter-num.stale {
  color: var(--muted-strong);
}

/* Timeline scroll (Wave 4). */
.timeline-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-border) transparent;
}
.timeline-scroll::-webkit-scrollbar { height: 6px; }
.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 3px;
}
.timeline-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border-left: 2px solid var(--surface-border);
  padding: 0 0 0 1.5rem;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
}
.timeline-item-now {
  border-left-color: var(--brand);
}
.timeline-item-now::before {
  background: var(--brand);
  box-shadow: 0 0 14px var(--brand-glow);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 0.5rem;
}
.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--heading);
}
.timeline-item p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 768px) {
  .timeline-item { flex-basis: 280px; }
}

/* Members wall (Wave 4 human-angle cell). */
.members-wall { margin-top: 2rem; }
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.member-tile {
  text-align: center;
  margin: 0;
}
.member-tile img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--surface-border);
  background: var(--surface);
  transition: border-color 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.member-tile:hover img {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.member-joined {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}
.members-wall-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}


/* =========================================================
   WAVE 3 STORAGE
   ========================================================= */
.triadic-storage .storage-stats { text-align: center; }
.storage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .storage-grid { grid-template-columns: 1fr 1fr; }
}
.storage-cell .storage-cell-num,
.nexus-cell .nexus-cell-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-variation-settings: var(--fraunces-headline);
  font-weight: 600;
  color: var(--brand);
  margin: 1rem 0 0.5rem;
  line-height: 1;
}
.storage-cell .storage-cell-num-amber,
.nexus-cell .nexus-cell-num-amber {
  color: var(--amber);
}
.storage-cell .storage-cell-label,
.nexus-cell .nexus-cell-label {
  font-size: 1.1rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
}
.storage-cell .storage-cell-body,
.nexus-cell .nexus-cell-body {
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   WAVE 2 SKINS
   ========================================================= */
.triadic-skins {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.skins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .skins-grid { grid-template-columns: repeat(8, 1fr); }
}
.skin-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  transition: transform 250ms var(--ease-out);
}
.skin-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.skin-tile-blurred img {
  filter: blur(6px) saturate(0.8);
  opacity: 0.5;
  transition: filter 350ms var(--ease-out), opacity 350ms var(--ease-out);
}
.skin-tile-blurred:hover img {
  filter: blur(0) saturate(1);
  opacity: 1;
}
.skin-tile-sharp img {
  filter: saturate(1);
}
.skins-mosaic-note,
.designers-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1rem;
}

.designers-section { margin-top: 4rem; }
.designers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.designer-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 250ms var(--ease-out);
}
.designer-card:hover {
  border-color: var(--brand);
}
.designer-rank {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted-strong);
  font-weight: 600;
}
.designer-stats {
  flex: 1;
}
.designer-count {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand);
  font-variation-settings: var(--fraunces-cardhead);
  line-height: 1;
}
.designer-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* =========================================================
   WAVE 1 NEXUS MAP — map showcase + 3-counter strip
   ========================================================= */
.nexus-map-frame {
  margin: 0 0 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .nexus-map-frame {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.nexus-map-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%,
    var(--nexus-fill) 0%,
    var(--bg-deep) 70%);
  border: 1px solid var(--surface-border);
  aspect-ratio: 1 / 1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nexus-map-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
    transparent 30%,
    rgba(23,22,18,0.4) 70%,
    rgba(23,22,18,0.7) 100%);
  pointer-events: none;
  z-index: 2;
}
.nexus-map-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.85) brightness(0.95) drop-shadow(0 0 20px var(--nexus-glow));
  transition: filter 350ms var(--ease-out);
  position: relative;
  z-index: 1;
}
.nexus-map-frame:hover .nexus-map-image img {
  filter: saturate(1) brightness(1) drop-shadow(0 0 30px var(--nexus-edge));
}
/* Pulsing dots overlay — fakes positions on the map until livemap data lands */
.nexus-map-image .map-pulse-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nexus);
  z-index: 3;
  box-shadow: 0 0 12px var(--nexus);
  animation: nexus-pulse 2.5s ease-in-out infinite;
}
.nexus-map-image .map-pulse-dot:nth-child(2) { top: 35%; left: 42%; animation-delay: 0s; }
.nexus-map-image .map-pulse-dot:nth-child(3) { top: 50%; left: 55%; animation-delay: 0.5s; }
.nexus-map-image .map-pulse-dot:nth-child(4) { top: 60%; left: 38%; animation-delay: 1s; }
.nexus-map-image .map-pulse-dot:nth-child(5) { top: 45%; left: 65%; animation-delay: 1.5s; }
.nexus-map-image .map-pulse-dot:nth-child(6) { top: 55%; left: 48%; animation-delay: 2s; }
@keyframes nexus-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.5); opacity: 1; }
}

.nexus-map-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
@media (max-width: 900px) {
  .nexus-map-content { text-align: center; align-items: center; }
}
.nexus-map-title {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-headline);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--heading);
  line-height: 1.15;
  margin: 0.4rem 0 0.4rem;
}
.nexus-map-body {
  color: var(--text);
  font-size: 1rem;
  max-width: 56ch;
  margin: 0 0 0.8rem;
}

/* Counters strip below the map. */
.nexus-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
  text-align: center;
}
@media (max-width: 640px) {
  .nexus-counters { grid-template-columns: 1fr; gap: 1.5rem; }
}
.nexus-counter {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
}
.nexus-counter-num {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-cardhead);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.nexus-counter-suffix {
  font-size: 0.5em;
  color: var(--muted);
  margin-left: 0.05em;
}
.nexus-counter-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-top: 0.6rem;
}
.nexus-honesty-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* =========================================================
   TIGHTEN spacing on Wave 3 + Wave 4 (dense, less wasted vertical)
   ========================================================= */
.triadic-storage,
.triadic-community {
  padding: 5rem 0;
}
@media (max-width: 768px) {
  .triadic-storage,
  .triadic-community {
    padding: 3.5rem 0;
  }
}
.triadic-storage .big-counter,
.triadic-community .big-counter {
  padding: 0.5rem 0;
}
.triadic-storage .reveal[style*="margin-bottom:5rem"],
.triadic-community .reveal[style*="margin-bottom:5rem"] {
  margin-bottom: 2.5rem !important;
}
.triadic-storage .reveal[style*="margin-bottom:4rem"],
.triadic-community .reveal[style*="margin-bottom:4rem"] {
  margin-bottom: 2rem !important;
}
.triadic-community .members-wall { margin-top: 1.5rem; }

/* Storage hero — two-column, copy left, big counter right. */
.storage-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .storage-hero {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 2.5rem 3rem;
  }
}
.storage-hero-text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.storage-hero-counter {
  text-align: center;
}
@media (min-width: 900px) {
  .storage-hero-counter { text-align: right; }
}
.storage-big-num {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: var(--brand);
  line-height: 1;
  display: inline-block;
  font-feature-settings: "tnum" 1;
}
.storage-big-label {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  margin-top: 0.5rem;
}
.storage-big-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Compact storage cells, side by side. */
.triadic-storage .storage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .triadic-storage .storage-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.storage-cell-compact {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.storage-cell-compact .status-pill {
  align-self: flex-start;
}
.storage-cell-compact .storage-cell-num {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-cardhead);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  margin: 0.5rem 0 0;
  font-feature-settings: "tnum" 1;
}
.storage-cell-compact .storage-cell-num-amber { color: var(--amber); }
.storage-cell-compact .storage-cell-label {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  margin: 0;
}
.storage-cell-compact .storage-cell-body {
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0.25rem 0 0;
}

/* =========================================================
   WAVE 2 SKINS — carousel + named designer cards
   ========================================================= */
.skins-carousel-wrap { position: relative; }
.skins-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-border) transparent;
}
.skins-carousel::-webkit-scrollbar { height: 6px; }
.skins-carousel::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 3px;
}
.skin-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 0.85rem 0.85rem 1.1rem;
  text-align: center;
  transition:
    border-color 250ms var(--ease-out),
    transform 250ms var(--ease-out),
    box-shadow 250ms var(--ease-out);
  position: relative;
}
.skin-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg,
    rgba(168, 232, 79, 0) 0%,
    rgba(168, 232, 79, 0.0) 60%,
    rgba(168, 232, 79, 0.18) 100%);
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
}
.skin-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(168, 232, 79, 0.25);
}
.skin-card:hover::after { opacity: 1; }
.skin-card-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  background: var(--bg-deep);
  position: relative;
}
.skin-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms var(--ease-out);
}
.skin-card:hover .skin-card-thumb img {
  transform: scale(1.05);
}
.skin-card-name {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-cardhead);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.skin-card-designer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.skin-card-designer strong {
  color: var(--brand);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

/* Named designer leaderboard with top-3 emphasis. */
.designers-grid-named {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.designer-card-named {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition:
    border-color 250ms var(--ease-out),
    transform 250ms var(--ease-out),
    box-shadow 250ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.designer-card-named::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(168, 232, 79, 0.06) 0%,
    transparent 60%);
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
  pointer-events: none;
}
.designer-card-named:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgba(168, 232, 79, 0.2);
}
.designer-card-named:hover::before { opacity: 1; }

/* Top 1, 2, 3 get a brand-accent rank badge + thicker border */
.designer-card-named:nth-child(1) {
  border-color: rgba(168, 232, 79, 0.4);
  background: linear-gradient(160deg, var(--surface) 0%, rgba(168, 232, 79, 0.04) 100%);
}
.designer-card-named:nth-child(1) .designer-rank,
.designer-card-named:nth-child(2) .designer-rank,
.designer-card-named:nth-child(3) .designer-rank {
  color: var(--brand);
  background: rgba(168, 232, 79, 0.12);
  border-radius: 4px;
  padding: 0.2em 0.45em;
}

.designer-card-named .designer-rank {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted-strong);
  font-weight: 700;
  min-width: 2rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.designer-card-named .designer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--surface-border);
  background: var(--bg-deep);
  flex: 0 0 auto;
  transition: border-color 250ms var(--ease-out);
}
.designer-card-named:hover .designer-avatar {
  border-color: var(--brand);
}
.designer-card-named .designer-info {
  flex: 1;
  min-width: 0;
}
.designer-card-named .designer-name {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-cardhead);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.designer-card-named .designer-meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.designer-card-named .designer-count {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-cardhead);
  font-size: 1.1rem;
  color: var(--brand);
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}
.designer-card-named .designer-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
