
/* ═══════════════════════════════════════════════════════════════
   LEARN — bioluminescent learn page
   matches Common Planet homepage v25 / about v22
═══════════════════════════════════════════════════════════════ */

:root {
  --void:      #020509;
  --abyss:     #04101E;
  --ocean:     #071629;
  --deep:      #0A1F38;

  --teal:      #00D4AA;
  --teal-dim:  #00A882;
  --azure:     #00B4FF;
  --azure-dim: #0088CC;
  --jade:      #00FF88;
  --jade-dim:  #00CC6A;
  --violet:    #9B59FE;
  --violet-dim:#7B39DE;
  --magenta:   #E040FB;
  --magenta-dim:#B020CC;
  --amber:     #FFB300;
  --amber-dim: #E09500;
  --crimson:   #FF3366;
  --gold:      #FFD700;
  --rose:      #FF69B4;
  --lime:      #AAFF00;

  --cream:     rgba(235, 250, 255, 0.96);
  --cream-mid: rgba(235, 250, 255, 0.90);
  --cream-dim: rgba(225, 245, 255, 0.62);
  --cream-ghost: rgba(200, 230, 255, 0.12);

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Jost', ui-sans-serif, sans-serif;
  --title:  'Cinzel', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 17px; overflow-x: hidden; }

body {
  background: var(--void);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* ═══ GRAIN OVERLAY ═══ */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

::selection { background: var(--azure); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible {
  outline-color: var(--azure);
}

.skip-link {
  position: absolute; left: -9999px; top: 1rem;
  background: var(--azure); color: var(--void);
  padding: 0.5rem 1rem; border-radius: 4px;
  font-weight: 700; z-index: 10000;
}
.skip-link:focus { left: 1rem; }

/* ═══ ANIMATED GRADIENT TEXT UTILITY ═══ */
.grad-text {
  background: linear-gradient(90deg, var(--teal), var(--azure), var(--jade), var(--violet), var(--teal));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s linear infinite;
}
.grad-text-azure {
  background: linear-gradient(90deg, var(--azure), var(--teal), var(--violet), var(--azure));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s linear infinite;
}
.grad-text-warm {
  background: linear-gradient(90deg, var(--amber), var(--gold), var(--rose), var(--magenta), var(--amber));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s linear infinite;
}
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ═══ HERO ═══ */
.hero {
  min-height: min(72svh, 80vh);
  position: relative;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 60%, rgba(0,180,255,0.08) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 30%, rgba(155,89,254,0.07) 0%, transparent 55%),
              var(--void);
}
#hero-canvas {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: 0.5;
}
.hero-spotlight {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle 600px at var(--mx,50%) var(--my,50%),
    rgba(0,180,255,0.10) 0%,
    rgba(155,89,254,0.05) 40%,
    transparent 75%);
  transition: background 0.08s;
}
.hero-content {
  position: relative; z-index: 3;
  max-width: 820px; text-align: center;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
  animation: riseIn 0.9s 0.05s ease both;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 28px; height: 1px;
  background: rgba(0,180,255,0.45);
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 300; font-style: italic;
  line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
  animation: riseIn 1s 0.1s ease both;
}
.hero-headline em {
  font-style: normal; font-weight: 400;
  background: linear-gradient(90deg, var(--azure), var(--teal), var(--violet));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s linear infinite;
}
.hero-body {
  font-size: 1.05rem; font-weight: 300; letter-spacing: 0.04em;
  color: var(--cream-mid);
  line-height: 1.85; max-width: 660px;
  margin: 0 auto 2.4rem;
  animation: riseIn 1s 0.2s ease both;
}
.hero-body strong { color: var(--azure); font-weight: 400; }
.hero-actions {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
  animation: riseIn 1s 0.3s ease both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--azure-dim), var(--teal-dim));
  color: var(--void);
  border: none; padding: 0.95rem 2.2rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.25s;
  box-shadow: 0 0 30px rgba(0,180,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,180,255,0.5);
}
.btn-outline {
  background: transparent; color: var(--cream-mid);
  border: 1px solid rgba(0,212,170,0.28);
  padding: 0.95rem 2.2rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.25s;
}
.btn-outline:hover {
  border-color: rgba(0,212,170,0.7);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,212,170,0.15);
}
.btn-amber {
  background: linear-gradient(135deg, var(--amber-dim), var(--gold));
  color: var(--void);
  border: none; padding: 0.95rem 2.2rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.25s;
  box-shadow: 0 0 30px rgba(255,179,0,0.25);
}
.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255,179,0,0.45);
}

@keyframes riseIn { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

/* ═══ WAVE DIVIDERS ═══ */
.wave-divider {
  position: relative; width: 100%; overflow: visible;
  pointer-events: none; z-index: 10;
  height: 16px; margin-top: -1px; margin-bottom: -1px;
  background: transparent;
}
.wave-divider svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 5px rgba(0,212,170,0.6)) drop-shadow(0 0 12px rgba(155,89,254,0.4)); }
.wave-path  { animation: waveFlow  8s ease-in-out infinite alternate; }
.wave-path-2 { animation: waveFlow2 10s ease-in-out infinite alternate; }
.wave-path-3 { animation: waveFlow3 12s ease-in-out infinite alternate; }
@keyframes waveFlow {
  0%   { d: path("M0,8 C120,0 240,16 360,8 C480,0 600,16 720,8 C840,0 960,16 1080,8 C1200,0 1320,16 1440,8"); }
  100% { d: path("M0,8 C120,16 240,0 360,8 C480,16 600,0 720,8 C840,16 960,0 1080,8 C1200,16 1320,0 1440,8"); }
}
@keyframes waveFlow2 {
  0%   { d: path("M0,10 C160,2 320,18 480,10 C640,2 800,18 960,10 C1100,2 1280,18 1440,10"); }
  100% { d: path("M0,6 C160,14 320,0 480,8 C640,16 800,2 960,9 C1100,17 1280,3 1440,7"); }
}
@keyframes waveFlow3 {
  0%   { d: path("M0,12 C200,4 400,16 600,6 C800,0 1000,14 1200,8 C1320,4 1400,14 1440,10"); }
  100% { d: path("M0,5 C200,15 400,3 600,13 C800,18 1000,4 1200,11 C1320,15 1400,5 1440,9"); }
}
@keyframes waveColorShift {
  0%   { stop-color: #00D4AA; }
  20%  { stop-color: #00B4FF; }
  40%  { stop-color: #9B59FE; }
  60%  { stop-color: #E040FB; }
  80%  { stop-color: #FFB300; }
  100% { stop-color: #00D4AA; }
}
.wave-color-mid  { animation: waveColorShift 5s linear infinite; }
.wave-color-mid2 { animation: waveColorShift 7s 1.5s linear infinite; }

/* ═══ SHARED LAYOUT ═══ */
section { padding: 4rem 2rem; position: relative; overflow-x: clip; }
.container { max-width: 980px; margin: 0 auto; position: relative; }
.container-wide { max-width: 1180px; margin: 0 auto; position: relative; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.5; }
.eyebrow.teal   { color: var(--teal); }
.eyebrow.jade   { color: var(--jade); }
.eyebrow.azure  { color: var(--azure); }
.eyebrow.violet { color: var(--violet); }
.eyebrow.amber  { color: var(--amber); }
.eyebrow.gold   { color: var(--gold); }
.eyebrow.rose   { color: var(--rose); }

.section-h {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 300; font-style: italic;
  line-height: 1.1; margin-bottom: 1.25rem;
  letter-spacing: -0.01em; color: var(--cream);
}
.section-h em { font-style: normal; font-weight: 400; }
.section-p {
  font-size: 1rem; letter-spacing: 0.04em;
  color: var(--cream-mid); line-height: 1.85;
  max-width: 600px; font-weight: 300;
}

/* ═══ BOOK SECTION ═══ */
.book-section {
  background: radial-gradient(ellipse at 25% 35%, rgba(255,179,0,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 70%, rgba(155,89,254,0.07) 0%, transparent 55%),
              var(--abyss);
  padding: 5.5rem 2rem;
}
.book-head { max-width: 740px; margin: 0 auto 3rem; text-align: center; }
.book-head .section-p { margin-left: auto; margin-right: auto; }

.book-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4.5rem;
  align-items: start;
  max-width: 1080px; margin: 0 auto;
}

.book-cover-wrap {
  position: relative;
  perspective: 1400px;
}
.book-cover {
  position: relative;
  aspect-ratio: 459 / 468;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.55))
          drop-shadow(0 30px 50px rgba(0,180,255,0.20))
          drop-shadow(0 52px 72px rgba(155,89,254,0.14));
  transition: transform 0.5s ease;
}
.book-cover:hover { transform: translateY(-6px); }
.book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.book-cover-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem 1.6rem;
  z-index: 1;
}
.book-cover-mark {
  width: 56px; height: 56px;
  opacity: 0.9;
}
.book-cover-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 300; font-style: italic;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.book-cover-title em {
  font-style: normal; font-weight: 400;
  color: var(--teal);
}
.book-cover-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--azure);
  margin-top: 0.5rem;
}
.book-cover-author {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(220,245,255,0.7);
}
.book-cover-note {
  position: absolute;
  bottom: -2rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220,245,255,0.35);
  font-style: italic;
}

.book-content { position: relative; }
.book-meta {
  font-family: var(--sans);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.book-meta::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

.book-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 300; font-style: italic;
  line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
  color: var(--cream);
}
.book-title em {
  font-style: normal; font-weight: 400;
  background: linear-gradient(90deg, var(--amber), var(--gold), var(--rose));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s linear infinite;
}
.book-author {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 1.6rem;
}
.book-author em { color: var(--teal); font-style: normal; font-weight: 600; }
.book-blurb {
  font-size: 0.98rem; letter-spacing: 0.03em;
  color: var(--cream-mid); line-height: 1.85;
  margin-bottom: 1.1rem;
}
.book-blurb:last-of-type { margin-bottom: 2rem; }
.book-blurb strong { color: var(--azure); font-weight: 400; }
.book-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center;
}
.book-bio {
  margin: 2.8rem auto 0;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(200,230,255,0.1);
  max-width: 420px;
}
.book-bio-label {
  font-family: var(--sans);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.book-bio p {
  font-size: 0.86rem; letter-spacing: 0.03em;
  color: var(--cream-dim); line-height: 1.8;
}
.book-bio p em { color: var(--cream-mid); font-style: italic; }
.book-pdf-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  font-style: italic;
}

/* ═══ ARTICLES (SUBSTACK) SECTION ═══ */
.articles-section {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(155,89,254,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 20%, rgba(180,130,60,0.06) 0%, transparent 45%),
    linear-gradient(180deg, #0d0a07 0%, #100c08 40%, #0d0a07 100%);
  padding: 5.5rem 2rem;
}
.articles-head { max-width: 980px; margin: 0 auto 3rem; text-align: center; }
.articles-head .section-p { margin-left: auto; margin-right: auto; }

.section-subtext-wide {
  max-width: 660px;
  width: min(660px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.articles-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px;
  margin-top: 3rem; max-width: 920px; margin-left: auto; margin-right: auto;
}

.article {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(60,40,15,0.08) 100%),
    linear-gradient(180deg, #ede0c0 0%, #e5d5a8 60%, #ddc99a 100%);
  border: 1px solid rgba(80,55,25,0.26);
  border-radius: 4px;
  padding: 2.4rem 2rem 2rem;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; display: block;
  color: #1a1208;
  position: relative; overflow: hidden;
  box-shadow:
    0 2px 0 rgba(60,40,15,0.12),
    0 16px 30px -10px rgba(0,0,0,0.55),
    0 30px 50px -25px rgba(0,0,0,0.40);
}
/* paper grain — visible on cream */
.article::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.10 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.18;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: multiply;
}
/* warm bottom underline animates on hover (newspaper-style) */
.article::after {
  content: '';
  position: absolute; bottom: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #8a4a1a, #6b3a14);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.article:hover {
  transform: translateY(-4px) rotate(-0.25deg);
  box-shadow:
    0 2px 0 rgba(60,40,15,0.10),
    0 24px 40px -10px rgba(0,0,0,0.55),
    0 40px 60px -25px rgba(0,0,0,0.45);
}
.article:hover::after { width: 100%; }

.art-n {
  font-family: var(--title);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #6b3a14;
  margin-bottom: 1.4rem;
  padding-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}
/* Editorial double-rule — high contrast on cream */
.art-n::after {
  content: '';
  position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background:
    linear-gradient(to bottom,
      rgba(60,40,15,0.85) 0,
      rgba(60,40,15,0.85) 1px,
      transparent 1px,
      transparent 3px,
      rgba(60,40,15,0.55) 3px,
      rgba(60,40,15,0.55) 4px);
  pointer-events: none;
}

.article h4 {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 600; font-style: italic;
  color: #130e06; margin-bottom: 1rem; line-height: 1.22;
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.article p {
  font-size: 0.92rem; letter-spacing: 0.005em;
  color: rgba(15,8,2,0.97); line-height: 1.58; margin-bottom: 1.6rem;
  position: relative; z-index: 1;
}
.art-link {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #6b3a14;
  display: flex; align-items: center; gap: 6px;
  position: relative; z-index: 1;
}
.art-link::after { content:'→'; transition: transform 0.2s; }
.article:hover .art-link::after { transform: translateX(5px); }
.article:hover .art-link { color: #4a2509; }

.articles-footnote {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
}
.articles-footnote a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,212,170,0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.articles-footnote a:hover { color: var(--azure); border-bottom-color: var(--azure); }

/* ═══ FOOTER ═══ */
footer {
  background: var(--void);
  padding: 5rem 3rem 2.5rem;
  position: relative;
  border-top: 1px solid rgba(0,212,170,0.1);
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--violet), var(--azure), transparent);
  opacity: 0.35;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr;
  gap: 4rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(200,230,255,0.06);
  margin-bottom: 1.5rem;
}
.f-brand h3 {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 300; font-style: italic;
  color: var(--cream); margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.f-brand h3 em { font-style: normal; color: var(--teal); font-weight: 400; }
.f-brand p {
  font-size: 0.87rem; letter-spacing: 0.04em;
  color: rgba(220,248,255,0.88); line-height: 1.78;
  max-width: 440px; margin-bottom: 1.25rem;
}
.address {
  font-size: 0.77rem; letter-spacing: 0.06em;
  color: rgba(220,245,255,0.75); line-height: 1.75;
}
.f-col h4 {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.f-col a {
  display: block; font-size: 0.82rem; letter-spacing: 0.04em;
  color: rgba(220,245,255,0.88); text-decoration: none;
  margin-bottom: 0.55rem; transition: color 0.15s;
}
.f-col a:hover { color: var(--teal); }
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  padding-top: 0.5rem;
  align-items: start;
}
.f-legal, .f-disc {
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: rgba(220,245,255,0.72); line-height: 1.7;
  max-width: 100%;
}
.f-disc { text-align: left; }
@media (max-width: 700px) {
  .footer-bottom { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  footer { padding: 3rem 1rem 2rem; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grad-text, .grad-text-warm, .grad-text-azure {
    animation: none !important;
    background-position: 0 50% !important;
  }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1080px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .book-grid { grid-template-columns: 1fr; gap: 3rem; }
  .book-cover { max-width: 280px; }
  .book-content { text-align: center; }
  .book-meta { justify-content: center; }
  .book-actions { justify-content: center; }
}
@media (max-width: 760px) {

  section { padding: 4rem 1.25rem; }
  .hero { padding: 7rem 1.25rem 3rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .f-brand h3 { flex-wrap: wrap; }
  .articles-grid { grid-template-columns: 1fr; }
}

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ FIXED NAV PATCH ═══ */
nav {
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
  contain: paint;
  backface-visibility: hidden;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
  pointer-events: none;
}
.reveal {
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.reveal.visible { will-change: auto; }

.grad-text, .grad-text-warm, .grad-text-azure,
.hero-headline em, .book-title em,
.wave-divider, .wave-divider svg,
.wave-path, .wave-path-2, .wave-path-3,
.wave-color-mid, .wave-color-mid2,
.hero-spotlight, #hero-canvas {
  transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .grad-text, .grad-text-warm, .grad-text-azure,
  .hero-headline em, .book-title em,
  .wave-path, .wave-path-2, .wave-path-3,
  .wave-color-mid, .wave-color-mid2 {
    animation: none !important;
  }
}


/* Site integration: book cover presentation fallback styles. */
.book-cover-fallback {
  overflow: hidden;
  border: 1px solid rgba(0, 212, 170, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 16%, rgba(0, 212, 170, 0.28), transparent 28%),
    radial-gradient(circle at 76% 30%, rgba(0, 180, 255, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(3, 18, 31, 0.98), rgba(2, 5, 9, 0.96) 58%, rgba(0, 212, 170, 0.12));
  box-shadow: inset 28px 0 34px rgba(0, 0, 0, 0.26);
}
.book-cover-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 18%, transparent 78%, rgba(0,0,0,0.22)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 9px);
  opacity: 0.42;
}
.book-cover-fallback::after {
  content: '';
  position: absolute;
  top: 9%;
  bottom: 9%;
  left: 13%;
  width: 1px;
  background: linear-gradient(transparent, rgba(0, 212, 170, 0.55), transparent);
}

