/* ═══════════════════════════════════════════════════════════════════════
   Future Fiction Academy — Societies & Pathways Deck
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Fraunces:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --cream: #F5EEDC;
  --ink: #0B0F1A;
  --ink-2: #151B2B;

  --display: 'Space Grotesk', -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --fraunces: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #000; font-family: var(--display); color: var(--cream); }

/* ───────────── Slide base ───────────── */
section.slide {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
}

.slide .grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* per-slide entrance — driven by [data-deck-active] on the slide */
.slide { opacity: 0; }
.slide[data-deck-active] { opacity: 1; }

/* ─────────── Animated entrances keyframes ─────────── */
@keyframes rise-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw-line { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-glow { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes typewriter { from { width: 0; } to { width: 100%; } }
@keyframes ring-in { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideFromL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideFromR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes letterDrop { from { opacity: 0; transform: translateY(-80px) rotateX(-90deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes wiggle { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(2deg); } 75% { transform: rotate(-2deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Active-slide re-trigger animations */
.slide[data-deck-active] .anim-rise { animation: rise-in 0.9s cubic-bezier(.2,.8,.2,1) both; }
.slide[data-deck-active] .anim-fade { animation: fade-in 1.2s ease both; }
.slide[data-deck-active] .anim-slideL { animation: slideFromL 0.8s cubic-bezier(.2,.8,.2,1) both; }
.slide[data-deck-active] .anim-slideR { animation: slideFromR 0.8s cubic-bezier(.2,.8,.2,1) both; }

/* staggered delays */
.d-0 { animation-delay: 0s !important; }
.d-1 { animation-delay: 0.1s !important; }
.d-2 { animation-delay: 0.2s !important; }
.d-3 { animation-delay: 0.3s !important; }
.d-4 { animation-delay: 0.4s !important; }
.d-5 { animation-delay: 0.5s !important; }
.d-6 { animation-delay: 0.6s !important; }
.d-7 { animation-delay: 0.7s !important; }
.d-8 { animation-delay: 0.8s !important; }
.d-9 { animation-delay: 0.9s !important; }
.d-10 { animation-delay: 1.0s !important; }
.d-12 { animation-delay: 1.2s !important; }
.d-14 { animation-delay: 1.4s !important; }

/* ───────── Utility text ───────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
}
.hairline { height: 1px; background: currentColor; opacity: 0.25; }
.kbd {
  font-family: var(--mono); font-size: 13px; padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; opacity: 0.8;
}

/* ───────── Society badge (stamp) ───────── */
.stamp {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; border: 1px solid currentColor; display: inline-flex; align-items: center; gap: 8px;
}
.stamp .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ───────── Cover slide ───────── */
.cover {
  background: radial-gradient(ellipse at 50% 60%, #1a1f3a 0%, #0a0d18 60%, #000 100%);
}
.cover .title-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 80px;
}
.cover h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 160px;
  line-height: 0.9;
  margin: 0;
  letter-spacing: -0.04em;
}
.cover h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, #FFC371, #FF5F6D, #A78BFA, #60A5FA, #6EE7B7, #FCD34D);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}
.cover .subline {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}
.cover .corner-tl, .cover .corner-tr, .cover .corner-bl, .cover .corner-br {
  position: absolute; font-family: var(--mono); font-size: 24px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65;
}
.cover .corner-tl { top: 50px; left: 60px; }
.cover .corner-tr { top: 50px; right: 60px; text-align: right; }
.cover .corner-bl { bottom: 50px; left: 60px; }
.cover .corner-br { bottom: 50px; right: 60px; text-align: right; }

/* Starfield on cover */
.starfield { position: absolute; inset: 0; pointer-events: none; }
.starfield .star {
  position: absolute; width: 2px; height: 2px; background: var(--cream); border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Rainbow arc on cover (logo echo) */
.cover .rainbow-arc {
  position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%);
  width: 1800px; height: 1800px;
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%,
    transparent 0deg, transparent 180deg,
    #EF4444 180deg, #F59E0B 210deg, #FCD34D 240deg,
    #6EE7B7 265deg, #10B981 285deg, #60A5FA 310deg,
    #A78BFA 335deg, #EF4444 360deg);
  opacity: 0.15; filter: blur(2px);
  mask: radial-gradient(circle at 50% 50%, transparent 760px, black 820px, black 900px, transparent 905px);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 760px, black 820px, black 900px, transparent 905px);
}

/* ───────── Motto slide (kinetic type) ───────── */
.motto {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 120px;
  position: relative;
}
.motto .motto-eyebrow {
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 60px;
}
.motto h1 {
  font-family: var(--fraunces);
  font-weight: 300;
  font-style: italic;
  font-size: 220px;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.03em;
  text-align: center;
}
.motto .word { display: inline-block; opacity: 0; }
.slide[data-deck-active] .motto .word { animation: letterDrop 0.9s cubic-bezier(.2,.8,.2,1) both; }
.motto .trailing {
  margin-top: 80px;
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.6;
}

/* ───────── Society intro slide ───────── */
.society-intro {
  display: grid; grid-template-columns: 1fr 1fr; height: 100%;
}
.society-intro .left {
  padding: 100px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; z-index: 2;
}
.society-intro .right {
  position: relative; overflow: hidden;
}
.society-intro .big-shorthand {
  font-family: var(--display); font-weight: 300; font-size: 48px; letter-spacing: 0.3em;
  opacity: 0.5;
}
.society-intro h1 {
  font-family: var(--display); font-weight: 500; font-size: 150px; line-height: 0.92;
  margin: 24px 0; letter-spacing: -0.03em;
}
.society-intro .society-sub {
  font-family: var(--mono); font-size: 22px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75;
}
.society-intro .tagline {
  margin-top: 60px; font-family: var(--serif); font-style: italic; font-size: 48px; line-height: 1.2; max-width: 780px;
}
.society-intro .number-mark {
  position: absolute; top: 60px; right: 80px;
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.3em; opacity: 0.6;
}
.society-intro .footer-row {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.society-intro .motto-small {
  font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1.1; max-width: 680px;
}

/* ───────── Society body text slide ───────── */
.society-body {
  padding: 80px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  overflow: hidden;
}
.society-body h2 {
  font-family: var(--display); font-weight: 500; font-size: 80px; line-height: 0.95; margin: 0 0 40px;
  letter-spacing: -0.02em;
}
.society-body .body-col p {
  font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.35; margin: 0 0 18px;
  opacity: 0.9;
}
.society-body .focus-col h3 {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.26em; text-transform: uppercase;
  margin: 0 0 24px; opacity: 0.6;
}
.society-body .focus-col ul {
  list-style: none; padding: 0; margin: 0;
}
.society-body .focus-col li {
  font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.3; padding: 10px 0 10px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.society-body .focus-col li::before {
  content: ""; position: absolute; left: 0; top: 26px; width: 16px; height: 2px; background: currentColor;
}

/* ───────── Pathway detail slide ───────── */
.pathway {
  padding: 56px 76px 44px; display: flex; flex-direction: column; height: 100%; overflow: hidden;
}
.pathway .head {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;
}
.pathway .head-left {
  display: flex; flex-direction: column; gap: 12px;
}
.pathway .chip {
  display: inline-flex; gap: 16px; align-items: center; font-family: var(--mono); font-size: 24px;
  letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85;
}
.pathway .chip .code {
  padding: 8px 16px; border: 1px solid currentColor; border-radius: 4px;
}
.pathway h2 {
  font-family: var(--display); font-weight: 500; font-size: 60px; line-height: 0.95; margin: 0;
  letter-spacing: -0.02em; max-width: 1400px;
}
.pathway .priority-flag {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 4px; background: currentColor; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.pathway .nov-flag {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 4px; border: 1px dashed currentColor;
}
.pathway .body {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; flex: 1; margin-top: 12px;
  min-height: 0; overflow: hidden;
}
.pathway .outcomes h3, .pathway .careers h3 {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.26em; text-transform: uppercase;
  margin: 0 0 18px; opacity: 0.65;
}
.pathway .outcomes {
  min-height: 0; overflow: hidden;
}
.pathway .outcomes ul {
  list-style: none; padding: 0; margin: 0;
}
.pathway .outcomes li {
  font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.35; margin: 0 0 14px; padding-left: 28px;
  position: relative;
}
.pathway .outcomes li::before {
  content: "→"; position: absolute; left: 0; top: 0; opacity: 0.6;
}
.pathway .careers {
  min-height: 0; overflow: hidden;
}
.pathway .careers .career-card {
  padding: 16px 20px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px;
  background: rgba(255,255,255,0.03);
}
.pathway .careers .career-card .label {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 8px; opacity: 0.85;
  display: flex; align-items: center; gap: 10px;
}
.pathway .careers .career-card .label::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor;
}
.pathway .careers .career-card p {
  font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.35; margin: 0;
  opacity: 0.92;
}

/* ───────── Dino wrap slide ───────── */
.dino-wrap {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 100px; position: relative;
}
.dino-wrap .dino-eyebrow {
  font-family: var(--mono); font-size: 18px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.7;
}
.dino-wrap .dino-art {
  font-size: 400px; line-height: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  animation: float-y 4s ease-in-out infinite;
}
.dino-wrap h2 {
  font-family: var(--display); font-weight: 400; font-size: 90px; line-height: 1; margin: 40px 0 20px;
  letter-spacing: -0.02em;
}
.dino-wrap .trait {
  font-family: var(--serif); font-style: italic; font-size: 40px; max-width: 1200px; line-height: 1.3;
  opacity: 0.85;
}
.dino-wrap .next-up {
  margin-top: 60px; font-family: var(--mono); font-size: 18px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.55;
}

/* ───────── Table of Contents ───────── */
.toc {
  padding: 70px 100px 60px;
  display: flex; flex-direction: column; height: 100%;
}
.toc h1 {
  font-family: var(--display); font-weight: 300; font-size: 96px; line-height: 0.9; margin: 16px 0 20px;
  letter-spacing: -0.03em;
}
.toc .societies-list {
  flex: 1; display: flex; flex-direction: column; justify-content: space-around;
  min-height: 0;
}
.toc .society-row {
  display: grid; grid-template-columns: 80px 130px 1fr 380px 140px; gap: 36px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; transition: padding-left 0.3s ease;
}
.toc .society-row:hover { padding-left: 20px; }
.toc .society-row .number { font-family: var(--mono); font-size: 26px; opacity: 0.5; }
.toc .society-row .code { font-family: var(--mono); font-size: 24px; letter-spacing: 0.2em; }
.toc .society-row .name { font-family: var(--display); font-weight: 500; font-size: 46px; letter-spacing: -0.02em; }
.toc .society-row .motto { font-family: var(--serif); font-style: italic; font-size: 26px; opacity: 0.8; text-align: right; }
.toc .society-row .count { font-family: var(--mono); font-size: 24px; text-align: right; opacity: 0.6; }

/* ───────── Enrollment slide ───────── */
.enrollment {
  padding: 100px 120px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative;
  background: radial-gradient(ellipse at center, #1a1f3a 0%, #0a0d18 70%, #000 100%);
}
.enrollment .eyebrow { margin-bottom: 40px; }
.enrollment h1 {
  font-family: var(--display); font-weight: 400; font-size: 140px; line-height: 0.9; margin: 0;
  letter-spacing: -0.03em;
}
.enrollment h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  background: linear-gradient(90deg, #FCD34D, #F59E0B);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.enrollment .dates {
  margin-top: 80px;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 60px; align-items: center;
  max-width: 1400px;
}
.enrollment .date-block { text-align: center; }
.enrollment .date-block .label { font-family: var(--mono); font-size: 24px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.6; margin-bottom: 14px; }
.enrollment .date-block .date { font-family: var(--display); font-weight: 500; font-size: 48px; line-height: 1.1; }
.enrollment .date-block .date.highlight {
  background: linear-gradient(90deg, #FCD34D, #F59E0B);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.enrollment .arrow { font-family: var(--mono); font-size: 32px; opacity: 0.4; }
.enrollment .window-box {
  margin-top: 40px; margin-bottom: 50px; padding: 26px 44px; border: 1px dashed rgba(255,255,255,0.3);
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ───────── Final CTA slide ───────── */
.cta {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 80px; position: relative;
  background: radial-gradient(ellipse at 50% 70%, #1a1f3a 0%, #0a0d18 60%, #000 100%);
}
.cta h1 {
  font-family: var(--display); font-weight: 300; font-size: 180px; line-height: 0.9; margin: 0;
  letter-spacing: -0.04em;
}
.cta h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, #FFC371, #FF5F6D, #A78BFA, #60A5FA, #6EE7B7, #FCD34D);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}
.cta .url {
  margin-top: 60px; font-family: var(--mono); font-size: 30px; letter-spacing: 0.1em;
  padding: 20px 40px; border: 1px solid rgba(255,255,255,0.4); border-radius: 8px;
  background: rgba(255,255,255,0.05);
  text-decoration: none; color: var(--cream);
  transition: background 0.3s ease, transform 0.3s ease;
}
.cta .url:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.cta .share-row {
  margin-top: 60px; display: flex; gap: 20px; align-items: center;
}
.cta .share-btn {
  padding: 20px 32px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  transition: all 0.25s ease;
}
.cta .share-btn:hover {
  background: rgba(255,255,255,0.15); transform: translateY(-2px);
  border-color: rgba(255,255,255,0.5);
}
.cta .share-btn svg { width: 22px; height: 22px; }
.cta .share-status {
  margin-top: 24px; font-family: var(--mono); font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.4s ease; min-height: 22px;
}
.cta .share-status.show { opacity: 1; }

/* ───────── Persistent slide footer ───────── */
.slide-footer {
  position: absolute; bottom: 26px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 22px; align-items: center;
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.26em; text-transform: uppercase;
  opacity: 0.6; z-index: 50; pointer-events: none;
}
.slide-footer .footer-mark { font-weight: 500; }
.slide-footer .footer-sep { opacity: 0.4; }
.slide-footer .footer-url { opacity: 0.9; }
.slide-footer .footer-window { opacity: 0.7; }

/* ───────── Pathway Overview (per-society summary) ───────── */
.pathway-overview {
  padding: 70px 90px 90px;
  display: flex; flex-direction: column; gap: 36px;
  overflow: hidden;
}
.pathway-overview .pov-header h2 {
  font-family: var(--display); font-weight: 300; font-size: 80px; line-height: 0.95; margin: 12px 0 14px;
  letter-spacing: -0.03em; max-width: 1600px;
}
.pathway-overview .pov-header h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
}
.pathway-overview .pov-motto {
  font-family: var(--serif); font-style: italic; font-size: 32px; opacity: 0.85;
}
.pathway-overview .pov-grid {
  display: grid; gap: 24px; flex: 1; min-height: 0;
}
.pathway-overview .pov-grid-1 { grid-template-columns: 1fr; max-width: 1200px; }
.pathway-overview .pov-grid-2 { grid-template-columns: 1fr 1fr; }
.pathway-overview .pov-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.pathway-overview .pov-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.pathway-overview .pov-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pathway-overview .pov-grid-6 { grid-template-columns: repeat(3, 1fr); }
.pathway-overview .pov-grid-7 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pathway-overview .pov-card {
  padding: 24px; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
  background: rgba(255,255,255,0.03);
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
}
.pathway-overview .pov-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pathway-overview .pov-code {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid currentColor; border-radius: 4px;
}
.pathway-overview .pov-flag {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 4px;
}
.pathway-overview .pov-name {
  font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1.1;
  margin: 0; letter-spacing: -0.015em;
}
.pathway-overview .pov-promise {
  font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35;
  margin: 0; opacity: 0.85;
}
/* When there are many cards, compact the type */
.pathway-overview .pov-grid-5 .pov-name,
.pathway-overview .pov-grid-6 .pov-name,
.pathway-overview .pov-grid-7 .pov-name { font-size: 26px; }
.pathway-overview .pov-grid-5 .pov-promise,
.pathway-overview .pov-grid-6 .pov-promise,
.pathway-overview .pov-grid-7 .pov-promise { font-size: 24px; }

/* Bump pathway detail to clear the footer */
.pathway { padding-bottom: 100px; }
.society-body { padding-bottom: 110px; }
.society-intro .left { padding-bottom: 120px; }
.toc { padding-bottom: 110px; }
.cover .corner-bl, .cover .corner-br { bottom: 85px; }
.pathway-overview { padding-bottom: 100px; }

/* ───────── Core Curriculum opener ───────── */
.core-opener {
  padding: 0; display: flex; justify-content: center; align-items: center; position: relative;
}
.core-opener-inner {
  max-width: 1700px; padding: 100px 60px 120px; text-align: left; position: relative; z-index: 2;
}
.core-opener h1 {
  font-family: var(--display); font-weight: 300; font-size: 130px; line-height: 0.96;
  letter-spacing: -0.035em; margin: 28px 0 0;
}
.core-opener h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, #60A5FA, #A78BFA, #EF4444, #FCD34D, #6EE7B7);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 10s linear infinite;
}
.core-counts {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.count-chip {
  padding: 18px 26px; border: 1px solid currentColor; border-radius: 12px;
  display: flex; align-items: baseline; gap: 14px;
  background: rgba(255,255,255,0.03);
}
.count-chip .n {
  font-family: var(--display); font-weight: 500; font-size: 56px; line-height: 1;
  letter-spacing: -0.03em;
}
.count-chip .l {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.85;
}

/* ───────── Class grid (per-society classes slide) ───────── */
.class-grid {
  padding: 70px 90px 110px; display: flex; flex-direction: column; gap: 30px;
  overflow: hidden;
}
.class-grid .cg-header h2 {
  font-family: var(--display); font-weight: 300; font-size: 76px; line-height: 0.95; margin: 12px 0 14px;
  letter-spacing: -0.03em; max-width: 1600px;
}
.class-grid .cg-header h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
}
.class-grid .cg-sub {
  font-family: var(--serif); font-style: italic; font-size: 30px; opacity: 0.85;
}
.class-grid .cg-grid {
  display: grid; gap: 24px; flex: 1; min-height: 0;
}
.class-grid .cg-grid-1 { grid-template-columns: 1fr; max-width: 1300px; }
.class-grid .cg-grid-2 { grid-template-columns: 1fr 1fr; }
.class-grid .cg-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.class-card {
  padding: 28px 30px; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
  background: rgba(255,255,255,0.04);
  display: flex; flex-direction: column; gap: 16px; overflow: hidden;
}
.cc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cc-code {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid currentColor; border-radius: 4px;
}
.cc-launch {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.9;
}
.cc-name {
  font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.1;
  letter-spacing: -0.015em; margin: 0;
}
.cc-hook {
  font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.25;
  margin: 0;
}
.cc-why {
  font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.4;
  margin: 0; opacity: 0.82;
}
/* compact 3-col type */
.cg-grid-3 .cc-name { font-size: 28px; }
.cg-grid-3 .cc-hook { font-size: 26px; }
.cg-grid-3 .cc-why { font-size: 24px; }

/* ───────── Core Wall — all 12 ───────── */
.core-wall {
  padding: 70px 120px 110px; display: flex; flex-direction: column; gap: 32px;
}
.core-wall .cw-header h2 {
  font-family: var(--display); font-weight: 300; font-size: 84px; line-height: 0.96; margin: 10px 0 14px;
  letter-spacing: -0.03em;
}
.core-wall .cw-header h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, #60A5FA, #A78BFA, #EF4444, #FCD34D, #6EE7B7);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 10s linear infinite;
}
.core-wall .cw-sub {
  font-family: var(--serif); font-style: italic; font-size: 28px; opacity: 0.8; max-width: 1400px;
}
.core-wall .cw-list {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; align-content: start;
  min-height: 0;
}
.cw-row {
  display: grid; grid-template-columns: 50px 90px 1fr; gap: 20px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cw-num {
  font-family: var(--mono); font-size: 26px; opacity: 0.4;
}
.cw-code {
  font-family: var(--mono); font-size: 24px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid currentColor; border-radius: 4px;
  text-align: center;
}
.cw-name {
  font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ───────── Side rail (persistent) ───────── */
.side-rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: 52px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; padding: 20px 0;
  z-index: 100; border-right: 1px solid rgba(255,255,255,0.08);
}

/* ───────── Progress bar ───────── */
.progress-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.05); z-index: 100;
}
.progress-rail .fill {
  height: 100%; background: linear-gradient(90deg, #EF4444, #F59E0B, #FCD34D, #10B981, #60A5FA, #A78BFA);
  background-size: 600% 100%;
  transition: width 0.6s cubic-bezier(.2,.8,.2,1);
}

/* ───────── Society logo mark (reusable) ───────── */
.society-mark {
  width: 100%; height: 100%; position: relative;
}

/* ───────── Ink & Code circuit background ───────── */
.bg-ink {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59,130,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(96,165,250,0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0a1024 0%, #050818 100%);
}
.bg-ink .grid {
  position: absolute; inset: 0; opacity: 0.3;
  background-image: linear-gradient(rgba(96,165,250,0.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(96,165,250,0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ───────── Midnight Drafts — moon/stars ───────── */
.bg-mid {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(167,139,250,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(124,58,237,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #120724 0%, #05020F 100%);
}

/* ───────── Cut & Bloom — bloom/red ───────── */
.bg-cut {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 60%, rgba(239,68,68,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 20%, rgba(252,165,165,0.1) 0%, transparent 50%),
    linear-gradient(180deg, #1a0505 0%, #050000 100%);
}

/* ───────── Lantern Light — warm glow ───────── */
.bg-lan {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(245,158,11,0.3) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 20%, rgba(252,211,77,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #1a0e00 0%, #050200 100%);
}

/* ───────── The Ledger — green/grid ───────── */
.bg-led {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(16,185,129,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(110,231,183,0.1) 0%, transparent 50%),
    linear-gradient(180deg, #03110C 0%, #010604 100%);
}
.bg-led .ledger-lines {
  position: absolute; inset: 0; opacity: 0.18;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(110,231,183,0.35) 40px);
}

/* ───────── Logo corner mark ───────── */
.corner-logo {
  position: absolute; top: 50px; right: 60px; width: 80px; height: 80px;
  z-index: 20;
}
.corner-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ───────── Tweaks panel ───────── */
#tweaks-panel {
  position: fixed; bottom: 80px; right: 20px; width: 320px; z-index: 100000;
  background: rgba(10, 15, 26, 0.95); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
  padding: 20px; color: var(--cream); font-family: var(--display);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
}
#tweaks-panel[data-open] { display: block; }
#tweaks-panel h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  margin: 0 0 16px; opacity: 0.7;
}
#tweaks-panel .tweak-row {
  margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px;
}
#tweaks-panel label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7;
}
#tweaks-panel select, #tweaks-panel input[type="range"] {
  width: 100%; font-family: var(--mono); font-size: 13px;
  background: rgba(255,255,255,0.05); color: var(--cream);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  padding: 8px 10px;
}
#tweaks-panel .toggle-row {
  display: flex; gap: 8px;
}
#tweaks-panel .toggle-btn {
  flex: 1; padding: 8px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); cursor: pointer;
}
#tweaks-panel .toggle-btn[data-active] {
  background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4);
}

/* ───────── Music player ───────── */
#music-player {
  position: fixed; bottom: 72px; left: 20px; z-index: 99999;
  width: 340px; background: rgba(15, 18, 30, 0.94);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 18px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
  font-family: var(--display);
  color: var(--cream);
  opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#music-player[data-open] { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.mp-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.mp-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55;
}
.mp-close {
  appearance: none; background: transparent; border: 0; color: var(--cream);
  font-size: 20px; cursor: pointer; opacity: 0.6; padding: 0; line-height: 1; width: 20px; height: 20px;
}
.mp-close:hover { opacity: 1; }

.mp-now {
  display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
}
.mp-art {
  width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #EF4444 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: background 0.5s ease;
}
.mp-art[data-palette="venus"] { background: linear-gradient(135deg, #FCD34D 0%, #EF4444 50%, #A78BFA 100%); }
.mp-art[data-palette="physics"] { background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #6EE7B7 100%); }
.mp-art[data-palette="land"] { background: linear-gradient(135deg, #6EE7B7 0%, #60A5FA 50%, #A78BFA 100%); }
.mp-art[data-palette="neon"] { background: linear-gradient(135deg, #EF4444 0%, #FCD34D 50%, #6EE7B7 100%); }

.mp-bars {
  display: flex; gap: 3px; align-items: flex-end; height: 22px;
}
.mp-bars span {
  width: 4px; background: rgba(0,0,0,0.5); border-radius: 2px;
  height: 10px;
}
#music-player[data-playing] .mp-bars span {
  animation: mp-bounce 0.8s ease-in-out infinite;
}
#music-player[data-playing] .mp-bars span:nth-child(1) { animation-delay: 0.0s; }
#music-player[data-playing] .mp-bars span:nth-child(2) { animation-delay: 0.15s; }
#music-player[data-playing] .mp-bars span:nth-child(3) { animation-delay: 0.3s; }
#music-player[data-playing] .mp-bars span:nth-child(4) { animation-delay: 0.45s; }
@keyframes mp-bounce {
  0%, 100% { height: 6px; } 50% { height: 22px; }
}

.mp-meta { flex: 1; min-width: 0; }
.mp-title {
  font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.55; margin-top: 4px;
}

.mp-controls {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.mp-controls button {
  appearance: none; background: transparent; border: 0; color: var(--cream);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0.8; transition: opacity 0.15s, background 0.15s;
}
.mp-controls button:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.mp-controls button svg { width: 14px; height: 14px; }
.mp-play-btn {
  background: var(--cream) !important; color: #0a0d18 !important;
  width: 38px !important; height: 38px !important;
}
.mp-play-btn:hover { background: #fff !important; }
.mp-play-btn svg { width: 16px !important; height: 16px !important; }

.mp-volume-wrap {
  margin-left: auto; display: flex; align-items: center; gap: 6px; opacity: 0.7;
}
.mp-volume-wrap input[type="range"] {
  width: 70px; -webkit-appearance: none; appearance: none; background: transparent;
}
.mp-volume-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: rgba(255,255,255,0.2); border-radius: 2px;
}
.mp-volume-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cream); margin-top: -4px;
}
.mp-volume-wrap input[type="range"]::-moz-range-track {
  height: 2px; background: rgba(255,255,255,0.2); border-radius: 2px;
}
.mp-volume-wrap input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px; border-radius: 50%; background: var(--cream); border: 0;
}

.mp-progress { margin-bottom: 12px; }
.mp-bar {
  height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px;
  position: relative; cursor: pointer;
}
.mp-bar-fill {
  height: 100%; background: var(--cream); border-radius: 2px; width: 0%;
  transition: width 0.1s linear;
}
.mp-times {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; opacity: 0.5;
}

.mp-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px;
  max-height: 200px; overflow-y: auto;
}
.mp-list li {
  display: grid; grid-template-columns: 28px 1fr 16px;
  gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  transition: background 0.15s;
}
.mp-list li:hover { background: rgba(255,255,255,0.06); }
.mp-list li[data-active] { background: rgba(255,255,255,0.1); }
.mp-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; opacity: 0.5;
}
.mp-name {
  font-family: var(--display); font-weight: 400; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-indicator {
  font-family: var(--mono); font-size: 10px; opacity: 0;
  transition: opacity 0.15s;
}
.mp-list li[data-active] .mp-indicator { opacity: 0.9; }
#music-player[data-playing] .mp-list li[data-active] .mp-indicator {
  animation: mp-pulse 1.2s ease-in-out infinite;
}
@keyframes mp-pulse {
  0%, 100% { opacity: 0.4; } 50% { opacity: 1; }
}

/* ───────── Autoplay / share chrome ───────── */
.deck-chrome {
  position: fixed; bottom: 20px; left: 20px; z-index: 99999;
  display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
  padding: 6px; font-family: var(--mono);
}
.deck-chrome button {
  appearance: none; background: transparent; border: 0;
  color: var(--cream); cursor: pointer;
  padding: 6px 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s ease;
}
.deck-chrome button:hover { background: rgba(255,255,255,0.12); }
.deck-chrome button[data-active] { background: rgba(255,255,255,0.2); }
.deck-chrome svg { width: 12px; height: 12px; }

/* ───────── Share modal ───────── */
#share-modal {
  position: fixed; inset: 0; z-index: 100001;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
}
#share-modal[data-open] { display: flex; }
#share-modal .modal-card {
  background: #0a0d18; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 40px; width: 540px;
  font-family: var(--display);
}
#share-modal h2 {
  font-family: var(--display); font-weight: 400; font-size: 36px; margin: 0 0 8px;
}
#share-modal p {
  font-family: var(--serif); font-style: italic; font-size: 18px; opacity: 0.75; margin: 0 0 24px;
}
#share-modal .share-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;
}
#share-modal .share-link {
  padding: 14px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  color: var(--cream); text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  cursor: pointer;
}
#share-modal .share-link:hover { background: rgba(255,255,255,0.12); }
#share-modal input {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  color: var(--cream); padding: 12px; border-radius: 8px; font-family: var(--mono); font-size: 13px;
}
#share-modal .close-btn {
  position: absolute; top: 20px; right: 20px;
  background: transparent; border: 0; color: var(--cream); font-size: 24px; cursor: pointer;
  opacity: 0.6;
}
#share-modal .copy-status {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  margin-top: 8px; opacity: 0; transition: opacity 0.3s ease;
}
#share-modal .copy-status.show { opacity: 0.8; }
