/* =============================================
   NINESTONE — Liquid Glass Design System
   Clear optical glass, not frosted — iOS 26 / visionOS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Liquid glass properties */
  --glass-fill:         rgba(255,255,255,0.08);
  --glass-fill-hover:   rgba(255,255,255,0.13);
  --glass-specular:     rgba(255,255,255,0.90);   /* bright rim highlight */
  --glass-rim:          rgba(255,255,255,0.55);
  --glass-rim-dim:      rgba(255,255,255,0.22);
  --glass-inner-shadow: rgba(0,0,0,0.22);
  --glass-drop:         rgba(0,0,0,0.30);

  /* Tints — vivid, seen through the glass */
  --tint-red:       rgba(220,50,70,0.85);
  --tint-red-rim:   rgba(255,160,170,0.60);
  --tint-red-glow:  rgba(220,50,70,0.40);
  --tint-gold:      #d4a820;
  --tint-gold-glow: rgba(212,168,32,0.35);

  /* Text — white on dark scene */
  --text-primary:   rgba(255,255,255,0.96);
  --text-secondary: rgba(255,255,255,0.65);
  --text-tertiary:  rgba(255,255,255,0.38);
  --text-accent:    #eabb3a;
  --text-red:       #f08090;

  /* Scene — deep, rich, behind the glass */
  --scene:    #08090f;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --radius-sm:   10px;
  --radius:      18px;
  --radius-lg:   26px;
  --radius-xl:   34px;
  --radius-pill: 9999px;

  --max-w:     1100px;
  --content-w: 780px;
}

/* -----------------------------------------------
   LIQUID GLASS MIXIN
   The secret: very low fill + low blur + strong
   bright-top / dark-bottom border + specular arc
----------------------------------------------- */

/* Base clear glass */
.glass, .card, .widget, .article-item, .strat-card, .hero-stat {
  background: var(--glass-fill);
  /* Minimal blur — just enough to slightly bend light */
  backdrop-filter: blur(6px) saturate(1.25);
  -webkit-backdrop-filter: blur(6px) saturate(1.25);
  /* Top rim bright, bottom rim dark — refractive edge */
  border-top: 1px solid var(--glass-rim);
  border-left: 1px solid rgba(255,255,255,0.30);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  /* Bottom caustic shadow */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),   /* inner top highlight */
    inset 0 -1px 0 rgba(0,0,0,0.18),         /* inner bottom shadow */
    0 8px 32px rgba(0,0,0,0.28),
    0 2px 8px rgba(0,0,0,0.16);
}

/* -----------------------------------------------
   RESET & BASE
----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  background: var(--scene);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* Scene ambience — vivid orbs that show THROUGH the glass */
  background-image:
    radial-gradient(ellipse 75% 65% at 18% 8%,  rgba(200,40,60,0.55)  0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 82% 18%,  rgba(70,90,210,0.45)  0%, transparent 52%),
    radial-gradient(ellipse 55% 50% at 55% 88%,  rgba(40,70,180,0.40)  0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 88% 72%,  rgba(180,130,40,0.35) 0%, transparent 48%),
    radial-gradient(ellipse 70% 40% at 10% 80%,  rgba(150,40,160,0.28) 0%, transparent 48%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* -----------------------------------------------
   HEADER — clear glass bar
----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  /* Clear glass nav */
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 1px 0 rgba(255,255,255,0.08),
    0 6px 24px rgba(0,0,0,0.22);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.site-logo { display: inline-flex; align-items: center; line-height: 1; white-space: nowrap; text-decoration: none; }
.site-logo img { height: 38px; width: auto; display: block; }
.site-logo span, .site-logo sup { display: none; }

.site-nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.site-nav a {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  transition: all .18s;
  white-space: nowrap;
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.28);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.18);
  padding: 5px 12px;
}

.nav-cta {
  background: rgba(220,50,70,0.18) !important;
  color: var(--text-primary) !important;
  border-top: 1px solid rgba(255,160,170,0.55) !important;
  border-left: 1px solid rgba(255,140,150,0.35) !important;
  border-right: 1px solid rgba(255,120,130,0.22) !important;
  border-bottom: 1px solid rgba(180,30,50,0.25) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,200,210,0.30),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 4px 16px rgba(220,50,70,0.28) !important;
  padding: 5px 12px !important;
}
.nav-cta:hover {
  background: rgba(220,50,70,0.26) !important;
}

/* -----------------------------------------------
   LAYOUT
----------------------------------------------- */
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 80px; }
.page-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; padding-top: 48px; }
.page-wrap.full-width .page-grid { grid-template-columns: 1fr; }

/* -----------------------------------------------
   HERO
----------------------------------------------- */
.hero-section { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  /* Very subtle extra layer — the main color comes from body bg-image */
  background: transparent;
}
.hero-board-art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 480px; height: 480px; opacity: .10; z-index: 0; }

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 80px 24px 88px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-accent);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content:''; width:28px; height:1px; background:var(--text-accent); opacity:.7; display:inline-block; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; line-height: .95;
  color: var(--text-primary); margin-bottom: 24px;
}
.hero-title em { color: var(--text-red); font-style: italic; }

.hero-desc { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.65; max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* -----------------------------------------------
   BUTTONS — clear glass capsules
----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--radius-pill);
  cursor: pointer; transition: all .2s; text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
}

/* Specular arc painted on top of button */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 45%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.06) 60%,
    transparent 100%
  );
  border-radius: var(--radius-pill) var(--radius-pill) 50% 50%;
  pointer-events: none;
}

.btn-primary {
  background: rgba(220,50,70,0.20);
  color: #fff;
  border-top: 1px solid rgba(255,170,180,0.65);
  border-left: 1px solid rgba(255,150,160,0.40);
  border-right: 1px solid rgba(255,130,140,0.28);
  border-bottom: 1px solid rgba(160,20,40,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,210,215,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 6px 24px rgba(220,50,70,0.38),
    0 2px 8px rgba(0,0,0,0.20);
}
.btn-primary:hover {
  background: rgba(220,50,70,0.28);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,220,225,0.40),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 10px 32px rgba(220,50,70,0.50),
    0 4px 12px rgba(0,0,0,0.24);
}

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border-top: 1px solid rgba(255,255,255,0.50);
  border-left: 1px solid rgba(255,255,255,0.30);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.14),
    0 4px 14px rgba(0,0,0,0.22);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero stats */
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 48px; }
.hero-stat {
  text-align: center; padding: 18px 10px;
  border-radius: var(--radius);
}
.hero-stat-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  color: var(--text-accent); line-height: 1; display: block; margin-bottom: 4px;
}
.hero-stat-label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }

.hero-board-visual { display: flex; align-items: center; justify-content: center; }
.hero-board-visual svg {
  width: 100%; max-width: 400px; height: auto;
  filter: drop-shadow(0 24px 60px rgba(200,50,70,0.40));
  animation: boardFloat 4s ease-in-out infinite;
}
@keyframes boardFloat {
  0%,100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-8px) rotate(0.6deg); }
}

/* -----------------------------------------------
   AD UNITS
----------------------------------------------- */
.ad-unit {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.20);
  border-left: 1px solid rgba(255,255,255,0.14);
  border-right: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.ad-unit::before {
  content: 'Advertisement';
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em;
  color: var(--text-tertiary); position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%); text-transform: uppercase; white-space: nowrap;
}
.ad-leaderboard { width: 100%; min-height: 90px; margin: 0 auto 32px; max-width: 728px; }
.ad-rectangle { width: 300px; min-height: 250px; }
.ad-wide { width: 100%; min-height: 90px; margin: 32px 0; }

/* -----------------------------------------------
   SECTION HEADERS
----------------------------------------------- */
.section-header { margin-bottom: 32px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-accent); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content:''; width:20px; height:1px; background:var(--text-accent); opacity:.7; display:inline-block; }
.section-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem,4vw,2.8rem); color: var(--text-primary); line-height: 1.1; }
.section-title em { color: var(--text-red); font-style: italic; }
.section-sub { font-size: 1.05rem; color: var(--text-secondary); margin-top: 12px; max-width: 520px; }

/* -----------------------------------------------
   CONTENT CARDS — clear glass panels
----------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; margin-top: 32px; }

.card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all .25s;
  position: relative; overflow: hidden;
}

/* Specular top arc on every card */
.card::after {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 38%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 60%, transparent 100%);
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}

.card:hover {
  background: var(--glass-fill-hover);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 20px 60px rgba(0,0,0,0.36),
    0 4px 16px rgba(0,0,0,0.20);
}

.card-icon { font-size: 2.2rem; margin-bottom: 14px; line-height: 1; }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--text-secondary); line-height: 1.6; }
.card-feature { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 36px 32px; }

/* -----------------------------------------------
   ARTICLE LIST
----------------------------------------------- */
.article-list { display: flex; flex-direction: column; gap: 16px; }

.article-item {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: 22px 24px; border-radius: var(--radius-lg);
  text-decoration: none; color: inherit; transition: all .22s;
  position: relative; overflow: hidden;
}
.article-item::after {
  content: '';
  position: absolute; top: 0; left: 5%; right: 5%; height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  border-radius: 0 0 50% 50%; pointer-events: none;
}
.article-item:hover {
  background: var(--glass-fill-hover);
  transform: translateX(4px);
  color: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.50),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 12px 36px rgba(0,0,0,0.30);
}
.article-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; color: rgba(255,255,255,0.10); line-height: 1; min-width: 56px; text-align: right; }
.article-meta { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 4px; }
.article-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.article-excerpt { font-size: .88rem; color: var(--text-secondary); line-height: 1.5; }

/* -----------------------------------------------
   RULES PAGE
----------------------------------------------- */
.rules-section { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.rules-section:last-child { border-bottom: none; }
.rules-section h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 900; color: var(--text-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.rules-section h2 .step-num {
  background: rgba(220,50,70,0.22);
  color: #fff; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500; flex-shrink: 0;
  border-top: 1px solid rgba(255,170,180,0.55);
  border-left: 1px solid rgba(255,150,160,0.35);
  border-right: 1px solid rgba(255,130,140,0.22);
  border-bottom: 1px solid rgba(160,20,40,0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,200,210,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 4px 14px rgba(220,50,70,0.30);
}
.rules-section p, .rules-section li { font-size: 1.03rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 12px; }
.rules-section ul { padding-left: 24px; }
.rules-section ul li { margin-bottom: 8px; }
.rules-section strong { color: rgba(255,255,255,0.92); }
.rules-section .term {
  background: rgba(212,168,32,0.10); color: var(--text-accent);
  padding: 2px 8px; border-radius: 6px;
  border-top: 1px solid rgba(212,168,32,0.30); border-bottom: 1px solid rgba(212,168,32,0.12);
  font-family: var(--font-mono); font-size: .85em;
}

.callout {
  background: rgba(220,50,70,0.08);
  border-top: 1px solid rgba(220,50,70,0.30);
  border-right: 1px solid rgba(220,50,70,0.15);
  border-bottom: 1px solid rgba(220,50,70,0.10);
  border-left: 2px solid rgba(220,50,70,0.75);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.callout strong { color: var(--text-red); display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.gold-callout { background: rgba(212,168,32,0.07); border-top-color: rgba(212,168,32,0.30); border-left-color: rgba(212,168,32,0.75); }
.gold-callout strong { color: var(--text-accent); }

/* -----------------------------------------------
   FAQ
----------------------------------------------- */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 24px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-q { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; display: flex; gap: 14px; align-items: flex-start; }
.faq-q::before {
  content: 'Q';
  background: rgba(220,50,70,0.18); color: white;
  font-size: .72rem; font-family: var(--font-mono);
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 4px;
  border-top: 1px solid rgba(255,170,180,0.50);
  border-bottom: 1px solid rgba(160,20,40,0.25);
  box-shadow: inset 0 1px 0 rgba(255,200,210,0.25), inset 0 -1px 0 rgba(0,0,0,0.15);
}
.faq-a { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; padding-left: 38px; }

/* -----------------------------------------------
   STRATEGY
----------------------------------------------- */
.strategy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 22px; margin-top: 32px; }
.strat-card {
  padding: 28px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
}
.strat-card::after {
  content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 38%;
  background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, transparent 100%);
  border-radius: 0 0 50% 50%; pointer-events: none;
}
.strat-num {
  position: absolute; top: -12px; left: 20px;
  background: rgba(220,50,70,0.20); color: white;
  font-family: var(--font-mono); font-size: .68rem;
  padding: 4px 12px; border-radius: var(--radius-pill);
  letter-spacing: .08em; text-transform: uppercase;
  border-top: 1px solid rgba(255,170,180,0.50);
  border-bottom: 1px solid rgba(160,20,40,0.28);
  box-shadow: inset 0 1px 0 rgba(255,200,210,0.22), inset 0 -1px 0 rgba(0,0,0,0.15), 0 4px 14px rgba(220,50,70,0.28);
}
.strat-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-primary); margin-bottom: 10px; margin-top: 8px; }
.strat-card p { font-size: .92rem; color: var(--text-secondary); line-height: 1.65; }

/* -----------------------------------------------
   PROSE
----------------------------------------------- */
.prose-header { padding: 60px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 40px; }
.prose-header .meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 12px; }
.prose-header h1 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; color: var(--text-primary); line-height: 1.08; margin-bottom: 16px; }
.prose-header .lede { font-size: 1.18rem; color: var(--text-secondary); line-height: 1.65; max-width: 620px; }
.prose h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--text-primary); margin: 40px 0 16px; }
.prose h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; color: var(--text-accent); margin: 28px 0 10px; }
.prose p { font-size: 1.03rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 28px; margin-bottom: 20px; }
.prose li { font-size: 1.03rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 8px; }
.prose strong { color: rgba(255,255,255,0.92); }
.prose em { color: var(--text-secondary); font-style: italic; }
.prose .highlight {
  background: rgba(212,168,32,0.07);
  border-left: 2px solid rgba(212,168,32,0.70);
  border-top: 1px solid rgba(212,168,32,0.22);
  border-right: 1px solid rgba(212,168,32,0.10);
  border-bottom: 1px solid rgba(212,168,32,0.08);
  padding: 16px 20px; margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* -----------------------------------------------
   SIDEBAR WIDGETS
----------------------------------------------- */
.widget {
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px;
}
.widget-header {
  padding: 13px 18px;
  background: rgba(220,50,70,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.widget-header h4 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-primary); font-weight: 500; }
.widget-body { padding: 18px; }
.quick-facts li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: .88rem; color: var(--text-secondary); list-style: none; }
.quick-facts li:last-child { border-bottom: none; }
.quick-facts li strong { color: var(--text-primary); }
.related-list { list-style: none; }
.related-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: .88rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.related-list a::before { content: '→'; color: var(--text-red); font-size: .78rem; }
.related-list a:hover { color: var(--text-accent); }

/* -----------------------------------------------
   ABOUT
----------------------------------------------- */
.about-lead { font-size: 1.3rem; font-style: italic; color: var(--text-secondary); line-height: 1.65; border-left: 2px solid rgba(212,168,32,0.65); padding-left: 24px; margin: 32px 0; }
.timeline { position: relative; padding-left: 36px; margin-top: 32px; }
.timeline::before { content:''; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, rgba(220,50,70,0.55), transparent); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content:''; position: absolute; left: -32px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: rgba(220,50,70,0.75); border: 1px solid rgba(255,150,160,0.45); box-shadow: 0 0 10px rgba(220,50,70,0.40); }
.timeline-year { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 4px; }
.timeline-item h3 { font-family: var(--font-display); font-size: 1.18rem; color: var(--text-primary); margin-bottom: 8px; }
.timeline-item p { font-size: 1rem; color: var(--text-secondary); line-height: 1.65; }

/* -----------------------------------------------
   PAGE HERO
----------------------------------------------- */
.page-hero {
  padding: 56px 24px 52px; position: relative; overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(0,0,0,0.08);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3.6rem); font-weight: 900; color: var(--text-primary); line-height: 1.05; margin-bottom: 12px; }
.page-hero h1 em { color: var(--text-red); font-style: italic; }
.page-hero p { font-size: 1.08rem; color: var(--text-secondary); max-width: 600px; line-height: 1.6; }
.breadcrumb { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--text-accent); }
.breadcrumb span { color: rgba(255,255,255,0.18); }

/* -----------------------------------------------
   FOOTER
----------------------------------------------- */
.site-footer {
  position: relative; padding: 52px 24px 32px; margin-top: 60px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 -4px 20px rgba(0,0,0,0.16);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .site-logo { display: inline-flex; margin-bottom: 14px; }
.footer-brand .site-logo img { height: 30px; }
.footer-brand p { font-size: .88rem; color: var(--text-tertiary); line-height: 1.65; max-width: 300px; }
.footer-col h5 { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .88rem; color: var(--text-tertiary); transition: color .2s; }
.footer-col a:hover { color: var(--text-accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06); font-size: .8rem; color: var(--text-tertiary); font-family: var(--font-mono); }
.footer-bottom a { color: var(--text-tertiary); font-size: .8rem; }
.footer-bottom a:hover { color: var(--text-accent); }

/* -----------------------------------------------
   BOARD DIAGRAM
----------------------------------------------- */
.board-diagram {
  background: rgba(220,50,70,0.14);
  border-top: 1px solid rgba(255,180,185,0.55);
  border-left: 1px solid rgba(255,160,170,0.35);
  border-right: 1px solid rgba(255,140,150,0.22);
  border-bottom: 1px solid rgba(160,20,40,0.30);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,210,215,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 20px 60px rgba(0,0,0,0.42);
}
.board-diagram svg { width: 100%; height: auto; }

/* -----------------------------------------------
   UTILITY
----------------------------------------------- */
.text-gold { color: var(--text-accent); }
.text-red { color: var(--text-red); }
.text-muted { color: var(--text-tertiary); }
.mt-0 { margin-top: 0; }
.mb-40 { margin-bottom: 40px; }

/* -----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; padding: 56px 24px 60px; gap: 40px; }
  .hero-board-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-column: span 1; grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-grid { grid-template-columns: 1fr; }
  .side-col { order: -1; }
  .header-inner { height: auto; padding: 14px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .strategy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .page-wrap { padding: 0 16px 60px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* =============================================
   REACTIVE GLASS — hover, active, focus states
   Surfaces lift, brighten, and deepen on interact
   ============================================= */

/* Cards — lift on hover, press on active */
.card {
  transition: transform .22s cubic-bezier(0.34,1.4,0.64,1),
              box-shadow .22s ease,
              background .18s ease,
              border-color .18s ease;
  cursor: default;
}
.card:hover {
  background: rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.80);
  border-left-color: rgba(255,255,255,0.48);
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.60),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 24px 60px rgba(0,0,0,0.40),
    0 8px 20px rgba(0,0,0,0.24);
}
.card:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 2px 8px rgba(0,0,0,0.20),
    0 4px 14px rgba(0,0,0,0.28);
}

/* Article items */
.article-item {
  transition: transform .2s cubic-bezier(0.34,1.4,0.64,1),
              box-shadow .2s ease,
              background .18s ease,
              border-top-color .18s ease;
}
.article-item:hover {
  background: rgba(255,255,255,0.11);
  border-top-color: rgba(255,255,255,0.75);
  transform: translateX(5px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 14px 40px rgba(0,0,0,0.32);
}

/* Strategy cards */
.strat-card {
  transition: transform .22s cubic-bezier(0.34,1.4,0.64,1),
              box-shadow .22s ease,
              background .18s ease;
}
.strat-card:hover {
  background: rgba(255,255,255,0.11);
  border-top-color: rgba(255,255,255,0.78);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 20px 52px rgba(0,0,0,0.36);
}

/* Buttons */
.btn {
  transition: transform .18s cubic-bezier(0.34,1.5,0.64,1),
              box-shadow .18s ease,
              background .15s ease;
}
.btn:active {
  transform: scale(0.96) translateY(1px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 3px 10px rgba(0,0,0,0.25),
    0 2px 6px rgba(0,0,0,0.20) !important;
}

/* Nav links — reactive pill */
.site-nav a {
  transition: all .18s cubic-bezier(0.34,1.4,0.64,1);
}

/* Widgets */
.widget {
  transition: transform .22s cubic-bezier(0.34,1.4,0.64,1),
              box-shadow .22s ease,
              background .18s ease;
}
.widget:hover {
  background: rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.72);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.50),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 16px 44px rgba(0,0,0,0.32);
}

/* Hero stats */
.hero-stat {
  transition: transform .2s cubic-bezier(0.34,1.5,0.64,1),
              box-shadow .2s ease,
              background .18s ease;
}
.hero-stat:hover {
  background: rgba(255,255,255,0.11);
  border-top-color: rgba(255,255,255,0.72);
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.52),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 16px 40px rgba(0,0,0,0.32);
}

/* Nav CTA pulse on load */
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,220,225,0.42),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 8px 28px rgba(220,50,70,0.52) !important;
}

/* Callout / highlight — subtle react */
.callout, .gold-callout {
  transition: background .2s ease, box-shadow .2s ease;
}
.callout:hover {
  background: rgba(220,50,70,0.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 20px rgba(0,0,0,0.20);
}
.gold-callout:hover {
  background: rgba(212,168,32,0.12);
}

/* FAQ items */
.faq-item {
  transition: background .18s ease;
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
}
.faq-item:hover {
  background: rgba(255,255,255,0.04);
}

/* Footer links */
.footer-col a {
  transition: color .18s ease, transform .18s ease;
  display: inline-block;
}
.footer-col a:hover {
  transform: translateX(3px);
}

/* Smooth page-load fade */
@keyframes glassReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content   { animation: glassReveal .5s cubic-bezier(0.34,1.3,0.64,1) .04s both; }
.section-header { animation: glassReveal .45s cubic-bezier(0.34,1.3,0.64,1) .08s both; }
.card-grid      { animation: glassReveal .45s cubic-bezier(0.34,1.3,0.64,1) .12s both; }
.article-list   { animation: glassReveal .45s cubic-bezier(0.34,1.3,0.64,1) .10s both; }
.strategy-grid  { animation: glassReveal .45s cubic-bezier(0.34,1.3,0.64,1) .10s both; }

/* Focus-visible — accessible keyboard ring */
.btn:focus-visible,
.site-nav a:focus-visible,
.article-item:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 0 0 3px rgba(255,255,255,0.35),
    0 0 0 5px rgba(255,255,255,0.10);
}

/* =================================================
   ENHANCEMENT STYLES
   Drop caps, pull quotes, scroll reveal,
   glass tilt gloss, step pop, turn pulse
   ================================================= */

/* --- DROP CAP ---------------------------------- */
.drop-cap {
  float: left;
  font-family: var(--font-display);
  font-size: 5.2rem;
  font-weight: 900;
  font-style: italic;
  line-height: 0.78;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--text-primary);
  /* Glass tint on the letter itself */
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(200,210,240,0.80) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- PULL QUOTES ------------------------------- */
.pull-quote, .prose blockquote {
  position: relative;
  margin: 40px -8px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.50);
  border-left: 1px solid rgba(255,255,255,0.28);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 12px 36px rgba(0,0,0,0.28);
  overflow: hidden;
}
.pull-quote::before, .prose blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px; left: 20px;
  font-family: var(--font-display);
  font-size: 6rem;
  font-style: italic;
  line-height: 1;
  color: rgba(255,255,255,0.08);
  pointer-events: none;
}
/* Specular arc */
.pull-quote::after, .prose blockquote::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}
.pull-quote p, .prose blockquote p {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  margin: 0;
}
.pull-quote cite, .prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-accent);
  font-style: normal;
}

/* --- SCROLL REVEAL ----------------------------- */
.reveal-pending {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.40s ease var(--reveal-delay, 0ms),
    transform 0.40s cubic-bezier(0.34, 1.2, 0.64, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- GLASS TILT GLOSS -------------------------- */
/* Dynamic highlight follows cursor via --gloss-x CSS var set by JS */
.card::after,
.strat-card::after,
.hero-stat::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--gloss-x, 50%) 30%,
    rgba(255,255,255,0.14) 0%,
    transparent 55%
  );
  pointer-events: none;
  transition: background 0.1s ease;
}
.card, .strat-card, .hero-stat {
  transition:
    transform 0.22s cubic-bezier(0.34,1.4,0.64,1),
    box-shadow 0.22s ease,
    background 0.18s ease,
    border-top-color 0.18s ease;
}

/* --- STEP NUM POP ------------------------------ */
@keyframes stepPop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.14); opacity: 1; }
  80%  { transform: scale(0.96); }
  100% { transform: scale(1); opacity: 1; }
}
.step-pop {
  animation: stepPop 0.5s cubic-bezier(0.34,1.5,0.64,1) both;
}

/* --- TURN INDICATOR FLASH ---------------------- */
@keyframes turnFlash {
  0%   { opacity: 0.5; transform: translateY(-2px); }
  100% { opacity: 1;   transform: translateY(0); }
}
.turn-active { animation: turnFlash 0.3s cubic-bezier(0.34,1.4,0.64,1) both; }

/* --- EDITORIAL TYPOGRAPHY UPGRADES ------------- */
/* Section pull-out numbers (article lists) */
.article-num {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Highlight box upgrade */
.prose .highlight {
  position: relative;
  overflow: hidden;
}
.prose .highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 38%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
}

/* Chapter label above h2 in rules/prose */
.prose h2,
.rules-section h2 {
  position: relative;
}

/* --- 404 PAGE ---------------------------------- */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.page-404-inner {
  max-width: 520px;
}
.page-404-board {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  background: rgba(220,50,70,0.10);
  border-top: 1.5px solid rgba(255,190,200,0.70);
  border-left: 1px solid rgba(255,170,180,0.45);
  border-right: 1px solid rgba(255,150,160,0.28);
  border-bottom: 1px solid rgba(140,15,35,0.42);
  border-radius: 20px;
  box-shadow:
    inset 0 2px 0 rgba(255,220,225,0.22),
    inset 0 -2px 0 rgba(0,0,0,0.24),
    0 20px 48px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.page-404-board::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  border-radius: 0 0 50% 50%;
}
.page-404-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.92);
}
.page-404-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-404-title em { color: var(--text-red); font-style: italic; }
.page-404-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* rail-flash removed */

/* --- LOADING STATE ----------------------------- */
.page-loading body {
  opacity: 0;
}

/* =================================================
   READING PROGRESS BAR
   ================================================= */
#reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 9999;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
#reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    rgba(220,50,70,0.85) 0%,
    rgba(245,200,55,0.90) 60%,
    rgba(220,50,70,0.75) 100%
  );
  border-right: 1px solid rgba(255,255,255,0.40);
  transition: width .08s linear;
  box-shadow: 0 0 8px rgba(220,50,70,0.50), 0 0 20px rgba(220,50,70,0.20);
}

/* =================================================
   DARK / LIGHT MODE TOGGLE
   ================================================= */
#theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.50);
  border-left: 1px solid rgba(255,255,255,0.30);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 8px 24px rgba(0,0,0,0.30);
  color: rgba(255,255,255,0.80);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .22s cubic-bezier(0.34,1.5,0.64,1);
  z-index: 800;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#theme-toggle:hover {
  transform: scale(1.12) translateY(-2px);
  background: rgba(255,255,255,0.14);
  border-top-color: rgba(255,255,255,0.70);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 12px 30px rgba(0,0,0,0.38);
}

/* Light mode overrides */
body.light-mode {
  --scene: #e8eaf2;
  --text-primary:   rgba(10, 12, 28, 0.94);
  --text-secondary: rgba(10, 12, 28, 0.62);
  --text-tertiary:  rgba(10, 12, 28, 0.38);
  --text-accent:    #9c7010;
  --text-red:       #c02030;
  --glass-fill:     rgba(255,255,255,0.55);
  --glass-fill-hover: rgba(255,255,255,0.72);
  --glass-rim:      rgba(255,255,255,0.95);
  --glass-rim-dim:  rgba(255,255,255,0.70);
  color: var(--text-primary);
}
body.light-mode {
  background: #dde0ee;
  background-image:
    radial-gradient(ellipse 75% 65% at 18% 8%,  rgba(220,130,140,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 82% 18%,  rgba(130,150,240,0.35) 0%, transparent 52%),
    radial-gradient(ellipse 55% 50% at 55% 88%,  rgba(100,140,220,0.30) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 88% 72%,  rgba(220,190,80,0.28)  0%, transparent 48%),
    radial-gradient(ellipse 70% 40% at 10% 80%,  rgba(200,120,200,0.22) 0%, transparent 48%);
  background-attachment: fixed;
  background-size: 140% 140%,130% 130%,120% 120%,110% 110%,150% 150%;
}
body.light-mode .glass,
body.light-mode .card,
body.light-mode .widget,
body.light-mode .article-item,
body.light-mode .strat-card,
body.light-mode .hero-stat {
  background: rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,0.95);
  border-left-color: rgba(255,255,255,0.75);
  border-right-color: rgba(255,255,255,0.55);
  border-bottom-color: rgba(200,205,230,0.45);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(180,185,220,0.25),
    0 8px 32px rgba(140,145,200,0.18),
    0 2px 8px rgba(140,145,200,0.12);
}
body.light-mode .site-header {
  background: rgba(255,255,255,0.55);
  border-bottom-color: rgba(255,255,255,0.80);
}
body.light-mode .site-footer {
  background: rgba(255,255,255,0.45);
  border-top-color: rgba(255,255,255,0.80);
}
body.light-mode a { color: var(--text-accent); }
body.light-mode .hero-stat-num { color: var(--text-accent); }
body.light-mode .section-eyebrow,
body.light-mode .hero-eyebrow { color: var(--text-accent); }
body.light-mode .section-eyebrow::before,
body.light-mode .hero-eyebrow::before { background: var(--text-accent); }
body.light-mode .article-meta { color: var(--text-accent); }
body.light-mode .site-nav a { color: var(--text-secondary); }
body.light-mode .site-nav a:hover,
body.light-mode .site-nav a.active { color: var(--text-primary); }

/* =================================================
   SHARE BUTTON
   ================================================= */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .70rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: rgba(255,255,255,0.07);
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.28);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: var(--text-secondary);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.16);
  transition: all .2s cubic-bezier(0.34,1.4,0.64,1);
  position: relative; overflow: hidden;
}
.share-btn::before {
  content: '';
  position: absolute; top: 0; left: 5%; right: 5%; height: 45%;
  background: linear-gradient(180deg,rgba(255,255,255,0.14) 0%,transparent 100%);
  border-radius: 0 0 50% 50%; pointer-events: none;
}
.share-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  border-top-color: rgba(255,255,255,0.65);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(0,0,0,0.16),
    0 8px 22px rgba(0,0,0,0.24);
}
.share-btn:active { transform: scale(0.95); }

/* Share confirmation toast */
#share-toast {
  position: fixed;
  bottom: 80px; right: 24px;
  background: rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.50);
  border-left: 1px solid rgba(255,255,255,0.28);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.90);
  z-index: 9000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 12px 32px rgba(0,0,0,0.32);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s cubic-bezier(0.34,1.4,0.64,1);
  pointer-events: none;
}
#share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================
   GDPR COOKIE BANNER
   ================================================= */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 8000;
  width: min(560px, calc(100vw - 32px));
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,0.55);
  border-left: 1px solid rgba(255,255,255,0.32);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 20px 60px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: transform 0.4s cubic-bezier(0.34,1.2,0.64,1);
  overflow: hidden;
}
#cookie-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 38%;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 100%);
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}
#cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}
#cookie-banner p {
  font-family: var(--font-mono);
  font-size: .70rem;
  letter-spacing: .03em;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
#cookie-banner p a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-accept {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(220,50,70,0.20);
  color: #fff;
  border-top: 1px solid rgba(255,175,182,0.60);
  border-left: 1px solid rgba(255,155,165,0.38);
  border-right: 1px solid rgba(255,135,145,0.24);
  border-bottom: 1px solid rgba(155,18,38,0.35);
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,210,215,0.25), 0 4px 14px rgba(220,50,70,0.28);
  transition: all .18s;
  position: relative; overflow: hidden;
}
.cookie-accept::before {
  content: '';
  position: absolute; top: 0; left: 5%; right: 5%; height: 45%;
  background: linear-gradient(180deg,rgba(255,255,255,0.16) 0%,transparent 100%);
  border-radius: 0 0 50% 50%; pointer-events: none;
}
.cookie-accept:hover { background: rgba(220,50,70,0.30); transform: translateY(-1px); }
.cookie-decline {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9999px;
  cursor: pointer;
  transition: all .18s;
}
.cookie-decline:hover { color: rgba(255,255,255,0.80); border-color: rgba(255,255,255,0.32); }

/* =================================================
   AUTHOR BIO & ARTICLE META
   ================================================= */
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-left: 1px solid rgba(255,255,255,0.12);
  border-right: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--text-tertiary);
}
.article-meta-bar .ameta-author {
  color: var(--text-secondary);
  font-weight: 500;
}
.article-meta-bar .ameta-sep {
  color: rgba(255,255,255,0.15);
}

.author-bio {
  margin-top: 48px;
  padding: 24px 26px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.28);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 6px 24px rgba(0,0,0,0.18);
  position: relative; overflow: hidden;
}
.author-bio::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 38%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-radius: 0 0 50% 50%; pointer-events: none;
}
.author-bio-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 10px;
}
.author-bio-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.author-bio-text {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* =================================================
   SHARE BAR
   ================================================= */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.share-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.22);
  border-right: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .04em;
}
.share-btn:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
  transform: translateY(-1px);
}

/* =================================================
   RELATED ARTICLES (bottom of article)
   ================================================= */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.related-articles h3 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  padding: 16px 18px;
  background: var(--glass-fill);
  border-top: 1px solid var(--glass-rim);
  border-left: 1px solid rgba(255,255,255,0.22);
  border-right: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all .18s;
}
.related-card:hover {
  background: var(--glass-fill-hover);
  transform: translateY(-2px);
  color: inherit;
}
.related-card-cat {
  font-family: var(--font-mono);
  font-size: .60rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 6px;
}
.related-card-title {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
