/*
Theme Name:  Damanhur Digital Commons
Theme URI:   https://damanhur.org
Author:      Damanhur Digital Commons
Author URI:  https://damanhur.org
Description: The official premium WordPress theme for the Federation of Damanhur. Features the complete digital guidebook, evidence classification system, interactive atlas, claim explorer, constitutional viewer, and experience booking. Sacred geometry design language with Piedmont terracotta, Temple gold, and Sacred Woods green palette.
Version:     2.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.1
License:     Proprietary
License URI: https://damanhur.org/license
Text Domain: ddc
Tags:        custom, spiritual, community, knowledge-base, guidebook, evidence
*/

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  /* ── Brand Palette ── */
  --rust-950: #3A1510;
  --rust-900: #5C2218;
  --rust-800: #7A2E20;
  --rust-700: #8B3A2A;
  --rust-600: #A44E38;
  --rust-500: #C4643A;
  --rust-400: #D4845A;
  --rust-300: #E0A880;
  --rust-200: #EDBBAA;
  --rust-100: #F5C4A8;
  --rust-50:  #FDF0EA;

  --gold-950: #4A3500;
  --gold-900: #7A5A00;
  --gold-800: #9A7200;
  --gold-700: #B8860B;
  --gold-600: #C99A12;
  --gold-500: #D4A017;
  --gold-400: #E0B840;
  --gold-300: #EAD070;
  --gold-200: #F0D88A;
  --gold-100: #FDF5DC;
  --gold-50:  #FFFBF0;

  --forest-950: #071409;
  --forest-900: #0D2010;
  --forest-800: #1A3C1E;
  --forest-700: #245028;
  --forest-600: #2C5F2E;
  --forest-500: #3A7A3D;
  --forest-400: #4A8B4E;
  --forest-300: #6BA36F;
  --sage-500:   #7D9E7A;
  --sage-300:   #9BB899;
  --sage-100:   #EAF2E9;

  --stone-950: #0A0807;
  --stone-900: #1A1713;
  --stone-850: #221E19;
  --stone-800: #2A2520;
  --stone-700: #3A3530;
  --stone-600: #4A4540;
  --stone-500: #6A6560;
  --stone-400: #8A857E;
  --stone-300: #AAA59E;
  --stone-200: #C8C3BC;
  --stone-150: #DED9D2;
  --stone-100: #EDE9E3;
  --stone-50:  #F5F2ED;
  --stone-25:  #FAF8F5;
  --white:     #FFFFFF;

  /* Evidence classification */
  --ev-official:       #1A5C9E;
  --ev-academic:       #1B6B2F;
  --ev-constitutional: #A87800;
  --ev-journalistic:   #C84800;
  --ev-former-member:  #6B1A9A;
  --ev-unverified:     #5A5A5A;
  --ev-disputed:       #A51515;
  --ev-belief:         #5C3D2A;
  --ev-independent:    #1B6B2F;

  /* ── Semantic tokens ── */
  --c-primary:     var(--rust-700);
  --c-primary-h:   var(--rust-900);
  --c-primary-l:   var(--rust-50);
  --c-gold:        var(--gold-700);
  --c-gold-h:      var(--gold-900);
  --c-accent:      var(--forest-600);
  --c-text:        var(--stone-900);
  --c-text-2:      var(--stone-600);
  --c-text-3:      var(--stone-400);
  --c-bg:          var(--stone-50);
  --c-bg-alt:      var(--stone-25);
  --c-surface:     var(--white);
  --c-border:      var(--stone-150);
  --c-border-2:    var(--stone-200);

  /* ── Typography ── */
  --f-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Scale: perfect fourth (1.333) */
  --t-2xs: 0.563rem;
  --t-xs:  0.75rem;
  --t-sm:  0.875rem;
  --t-base:1rem;
  --t-md:  1.125rem;
  --t-lg:  1.333rem;
  --t-xl:  1.777rem;
  --t-2xl: 2.369rem;
  --t-3xl: 3.157rem;
  --t-4xl: 4.209rem;
  --t-5xl: 5.61rem;
  --t-6xl: 7.478rem;

  /* ── Spacing (8pt grid) ── */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-40: 10rem;

  /* ── Layout ── */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max-w: 1280px;
  --max-w-wide: 1440px;
  --max-w-prose: 68ch;
  --header-h: 72px;

  /* ── Radii ── */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-pill: 9999px;

  /* ── Shadows ── */
  --sh-sm:  0 1px 4px rgba(26,23,19,.07), 0 1px 2px rgba(26,23,19,.05);
  --sh-md:  0 4px 16px rgba(26,23,19,.08), 0 2px 6px rgba(26,23,19,.05);
  --sh-lg:  0 12px 40px rgba(26,23,19,.10), 0 4px 14px rgba(26,23,19,.06);
  --sh-xl:  0 24px 64px rgba(26,23,19,.12), 0 8px 24px rgba(26,23,19,.07);
  --sh-gold:0 6px 30px rgba(184,134,11,.22);
  --sh-rust:0 6px 30px rgba(139,58,42,.22);

  /* ── Motion ── */
  --ease-out: cubic-bezier(.2,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;

  /* ── Z-index ── */
  --z-below:   -1;
  --z-base:    0;
  --z-drop:    100;
  --z-sticky:  200;
  --z-fixed:   300;
  --z-modal:   400;
  --z-toast:   500;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; object-fit: cover; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--c-primary-h); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: var(--r-sm); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style-position: inside; }
li { margin-bottom: var(--s-1); }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-text);
}
h1 { font-size: clamp(var(--t-3xl), 5.5vw, var(--t-5xl)); }
h2 { font-size: clamp(var(--t-2xl), 4vw, var(--t-4xl)); }
h3 { font-size: clamp(var(--t-xl),  3vw, var(--t-3xl)); }
h4 { font-size: clamp(var(--t-lg),  2.5vw, var(--t-2xl)); }
h5 { font-size: var(--t-xl); }
h6 { font-size: var(--t-lg); font-family: var(--f-body); font-weight: 600; }

p { max-width: var(--max-w-prose); line-height: 1.8; margin-bottom: var(--s-5); }
p:last-child { margin-bottom: 0; }

/* Display text utilities */
.display-serif  { font-family: var(--f-display); }
.display-xl     { font-size: clamp(var(--t-4xl), 7vw, var(--t-6xl)); font-weight: 300; line-height: 1.0; }
.display-lg     { font-size: clamp(var(--t-3xl), 5vw, var(--t-5xl)); font-weight: 300; line-height: 1.0; }
.eyebrow        { font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.caption        { font-size: var(--t-xs); color: var(--c-text-3); line-height: 1.5; }

/* ================================================================
   LAYOUT
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide  { max-width: var(--max-w-wide); }
.container--narrow{ max-width: 760px; }

.section          { padding-block: clamp(var(--s-16), 8vw, var(--s-32)); }
.section--sm      { padding-block: clamp(var(--s-12), 6vw, var(--s-24)); }
.section--lg      { padding-block: clamp(var(--s-24), 12vw, var(--s-40)); }

/* Grid */
.grid             { display: grid; gap: var(--s-8); }
.grid-2           { grid-template-columns: repeat(auto-fit, minmax(min(100%,480px),1fr)); }
.grid-3           { grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); }
.grid-4           { grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); }

.sidebar-layout   { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-8); align-items: start; }
.golden-layout    { display: grid; grid-template-columns: 1fr 1.618fr; gap: var(--s-12); align-items: start; }

@media (max-width: 1024px) {
  .sidebar-layout, .golden-layout { grid-template-columns: 1fr; }
}

/* Flex utils */
.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-col       { display: flex; flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.gap-2  { gap: var(--s-2); }
.gap-4  { gap: var(--s-4); }
.gap-6  { gap: var(--s-6); }
.gap-8  { gap: var(--s-8); }
.gap-12 { gap: var(--s-12); }

/* ================================================================
   SACRED GEOMETRY SVG PATTERNS
   ================================================================ */

/* Fibonacci spiral pattern (decorative) */
.geo-spiral {
  position: absolute;
  pointer-events: none;
  opacity: .05;
}
.geo-spiral--lg { width: 600px; height: 600px; }
.geo-spiral--sm { width: 300px; height: 300px; }

/* Hexagonal grid overlay */
.geo-hex-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32z' fill='none' stroke='rgba(184,134,11,0.08)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V52L28 36l28 16v32z' fill='none' stroke='rgba(184,134,11,0.08)' stroke-width='1'/%3E%3C/svg%3E");
}

/* Diamond lattice */
.geo-diamond-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 4L56 30 30 56 4 30z' fill='none' stroke='rgba(139,58,42,0.07)' stroke-width='1'/%3E%3Cpath d='M30 14L46 30 30 46 14 30z' fill='none' stroke='rgba(139,58,42,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}

/* Sacred circle pattern */
.geo-circle-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='36' fill='none' stroke='rgba(184,134,11,0.06)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='rgba(184,134,11,0.06)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='6' fill='none' stroke='rgba(184,134,11,0.10)' stroke-width='1'/%3E%3C/svg%3E");
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  height: var(--header-h);
  background: var(--stone-900);
  border-bottom: 1px solid rgba(184,134,11,.25);
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(26,23,19,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-700) 30%, var(--rust-700) 70%, transparent);
  opacity: .6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--gutter);
  max-width: var(--max-w-wide);
  margin-inline: auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }

.logo-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.02em;
}
.logo-sub {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav > li { position: relative; margin: 0; }
.primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--s-2) var(--s-3);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--stone-300);
  border-radius: var(--r-md);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
.primary-nav > li > a:hover,
.primary-nav > li > a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.primary-nav > li > a.active { color: var(--gold-400); }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--stone-850);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: var(--s-2);
  box-shadow: var(--sh-xl);
  z-index: var(--z-drop);
  animation: dropIn .15s var(--ease-out);
}
.primary-nav > li:hover .nav-dropdown,
.primary-nav > li:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: var(--s-2) var(--s-4);
  font-size: var(--t-sm);
  color: var(--stone-300);
  border-radius: var(--r-md);
  transition: all var(--dur-fast);
}
.nav-dropdown a:hover { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.btn-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  color: var(--stone-400);
  transition: all var(--dur-fast);
}
.btn-search:hover { color: var(--white); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--s-2);
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all var(--dur-base);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Search panel */
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--stone-850);
  border-bottom: 1px solid rgba(184,134,11,.2);
  padding: var(--s-4) var(--gutter);
  display: none;
  box-shadow: var(--sh-lg);
}
.search-panel.open { display: block; animation: slideDown .2s var(--ease-out); }

.search-wrap {
  position: relative;
  max-width: 600px;
  margin-inline: auto;
}
.search-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--s-4) 0 var(--s-12);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  color: var(--white);
  font-family: var(--f-body);
  font-size: var(--t-base);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.search-input::placeholder { color: var(--stone-500); }
.search-input:focus { outline: none; border-color: var(--gold-700); background: rgba(255,255,255,.09); }
.search-icon {
  position: absolute;
  left: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--stone-500);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + var(--s-2));
  left: 0;
  right: 0;
  background: var(--stone-850);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}
.search-results.open { display: block; }
.search-result {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid rgba(255,255,255,.07);
  cursor: pointer;
  transition: background var(--dur-fast);
  text-decoration: none;
  color: var(--white);
}
.search-result:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.search-result:last-child { border-bottom: none; }
.search-result-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.search-result-text { }
.search-result-title { font-size: var(--t-sm); font-weight: 500; color: var(--white); }
.search-result-excerpt { font-size: var(--t-xs); color: var(--stone-400); margin-top: 2px; }

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .nav-toggle  { display: flex; }
  .primary-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--stone-900);
    padding: var(--s-6);
    overflow-y: auto;
    z-index: var(--z-fixed);
    animation: slideDown .25s var(--ease-out);
  }
  .primary-nav.mobile-open > li > a {
    font-size: var(--t-lg);
    padding: var(--s-3) var(--s-4);
  }
  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    border: none;
    animation: none;
    transform: none;
    margin-top: var(--s-1);
  }
  .primary-nav > li:hover .nav-dropdown,
  .primary-nav > li:focus-within .nav-dropdown { display: block; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.btn:disabled      { opacity: .5; cursor: not-allowed; }

.btn--sm  { padding: var(--s-2) var(--s-4); font-size: var(--t-xs); }
.btn--lg  { padding: var(--s-4) var(--s-8); font-size: var(--t-md); }
.btn--xl  { padding: var(--s-5) var(--s-10); font-size: var(--t-lg); }
.btn--full{ width: 100%; }

/* Shimmer on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .4s var(--ease-out);
}
.btn:hover::before { transform: translateX(100%); }

.btn--primary {
  background: var(--rust-700);
  color: var(--white);
  border-color: var(--rust-700);
  box-shadow: 0 2px 8px rgba(139,58,42,.3);
}
.btn--primary:hover {
  background: var(--rust-900);
  border-color: var(--rust-900);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--sh-rust);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold-700);
  color: var(--stone-950);
  border-color: var(--gold-700);
  box-shadow: 0 2px 8px rgba(184,134,11,.3);
}
.btn--gold:hover {
  background: var(--gold-900);
  border-color: var(--gold-900);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--sh-gold);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--rust-700);
  border-color: var(--rust-700);
}
.btn--outline:hover {
  background: var(--rust-700);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
  text-decoration: none;
}

.btn--forest {
  background: var(--forest-600);
  color: var(--white);
  border-color: var(--forest-600);
}
.btn--forest:hover {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  background: var(--c-bg);
  border-color: var(--c-border-2);
  text-decoration: none;
}

/* ================================================================
   HERO — HOMEPAGE
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--stone-950);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Layered background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg__rust {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(160deg, var(--rust-950) 0%, var(--rust-800) 100%);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
.hero-bg__gold-line {
  position: absolute;
  left: 43%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold-700) 20%, var(--gold-600) 80%, transparent);
  transform: skewX(-2deg);
}
.hero-bg__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  opacity: .5;
}
.hero-bg__radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 75% 50%, rgba(44,95,46,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 15% 80%, rgba(139,58,42,.25) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 85% 10%, rgba(184,134,11,.1) 0%, transparent 60%);
}

/* Sacred spiral SVG decoration */
.hero-spiral {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 55%;
  opacity: .055;
  animation: slowRotate 120s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: var(--s-32) var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--s-20);
  align-items: center;
}

.hero-left {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px var(--s-4);
  background: rgba(184,134,11,.12);
  border: 1px solid rgba(184,134,11,.3);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--s-6);
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(var(--t-3xl), 6.5vw, var(--t-6xl));
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: var(--s-6);
}
.hero-title em {
  font-style: normal;
  color: var(--gold-500);
  font-weight: 600;
}
.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(var(--t-base), 1.8vw, var(--t-xl));
  color: var(--stone-300);
  line-height: 1.7;
  max-width: 54ch;
  margin-bottom: var(--s-5);
}

.hero-con-te {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-style: italic;
  color: var(--gold-600);
  letter-spacing: .01em;
  margin-bottom: var(--s-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-12);
}

.hero-stats {
  display: flex;
  gap: var(--s-8);
  flex-wrap: wrap;
  padding-top: var(--s-8);
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat {}
.hero-stat-num {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-top: var(--s-1);
}

/* Hero right: capability stack */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.cap-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
}
.cap-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(184,134,11,.3);
  transform: translateX(5px);
  text-decoration: none;
}
.cap-card-num {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 300;
  color: rgba(184,134,11,.35);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2ch;
}
.cap-card-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--s-1);
}
.cap-card-desc {
  font-size: var(--t-xs);
  color: var(--stone-400);
  line-height: 1.5;
}

.hero-scroll {
  position: absolute;
  bottom: var(--s-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: rgba(255,255,255,.35);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(184,134,11,.5));
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right  { display: none; }
  .hero-bg__rust { width: 100%; clip-path: polygon(0 0, 100% 0, 100% 40%, 0 60%); }
}

/* ================================================================
   PAGE HERO
   ================================================================ */
.page-hero {
  position: relative;
  background: var(--stone-900);
  color: var(--white);
  padding-block: clamp(var(--s-16), 8vw, var(--s-24));
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(139,58,42,.4) 0%, transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rust-700), var(--gold-700), var(--forest-600));
}
.page-hero .geo-diamond-bg {
  position: absolute;
  inset: 0;
  opacity: .4;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page-hero-eyebrow {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust-400);
  margin-bottom: var(--s-3);
  display: block;
}
.page-hero-title {
  font-family: var(--f-display);
  font-size: clamp(var(--t-2xl), 5vw, var(--t-4xl));
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--s-5);
  letter-spacing: -.02em;
}
.page-hero-lead {
  font-size: clamp(var(--t-base), 1.8vw, var(--t-xl));
  color: var(--stone-300);
  max-width: 62ch;
  line-height: 1.7;
}
.page-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  font-size: var(--t-xs);
  color: var(--stone-500);
}
.breadcrumb a { color: var(--gold-600); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb-sep { color: var(--stone-700); font-size: .8em; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}
.card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); border-color: var(--stone-200); }
.card-body  { padding: var(--s-6); }
.card-footer { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--c-border); }

/* Feature card (dark) */
.feature-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  transition: all var(--dur-base) var(--ease-out);
}
.feature-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(184,134,11,.25);
  transform: translateY(-3px);
}
.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--s-4);
  background: rgba(184,134,11,.12);
}
.feature-card-title {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  color: var(--white);
  margin-bottom: var(--s-3);
}
.feature-card-desc {
  font-size: var(--t-sm);
  color: var(--stone-400);
  line-height: 1.65;
  max-width: none;
  margin: 0;
}

/* Experience card */
.exp-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  height: 100%;
}
.exp-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); border-color: var(--rust-300); }
.exp-card-header {
  padding: var(--s-6);
  position: relative;
}
.exp-card-badge {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  padding: 4px var(--s-3);
  background: rgba(184,134,11,.18);
  border: 1px solid rgba(184,134,11,.35);
  color: var(--gold-400);
  font-size: var(--t-xs);
  font-weight: 700;
  border-radius: var(--r-pill);
}
.exp-card-type {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: var(--s-2);
}
.exp-card-title {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  color: var(--white);
  margin-bottom: var(--s-2);
}
.exp-card-lang {
  font-size: var(--t-xs);
  color: rgba(255,255,255,.4);
}
.exp-card-body { padding: var(--s-5) var(--s-6); }
.exp-card-desc {
  font-size: var(--t-sm);
  color: var(--c-text-2);
  line-height: 1.65;
  margin-bottom: var(--s-4);
  max-width: none;
}
.exp-card-includes { display: flex; flex-direction: column; gap: var(--s-2); }
.exp-card-include {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  line-height: 1.4;
}
.exp-card-include--yes { color: var(--forest-500); }
.exp-card-include--yes::before { content: '✓'; font-weight: 700; flex-shrink: 0; }
.exp-card-include--no  { color: var(--stone-400); }
.exp-card-include--no::before  { content: '×'; font-weight: 700; flex-shrink: 0; color: var(--stone-500); }
.exp-card-footer {
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--c-border);
  background: var(--stone-25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.exp-card-price {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 600;
  color: var(--rust-700);
  line-height: 1;
}
.exp-card-price-note { font-size: var(--t-xs); color: var(--c-text-3); margin-top: 3px; }

/* Guidebook card */
.gb-card {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.gb-card:hover {
  border-color: var(--rust-400);
  background: var(--rust-50);
  transform: translateX(5px);
  text-decoration: none;
  box-shadow: var(--sh-sm);
}
.gb-card-num {
  font-family: var(--f-display);
  font-size: var(--t-4xl);
  font-weight: 300;
  color: var(--rust-200);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5ch;
}
.gb-card-content { flex: 1; min-width: 0; }
.gb-card-part {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust-600);
  margin-bottom: var(--s-1);
}
.gb-card-title {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  color: var(--c-text);
  margin-bottom: var(--s-2);
  line-height: 1.2;
}
.gb-card:hover .gb-card-title { color: var(--rust-700); }
.gb-card-excerpt {
  font-size: var(--t-sm);
  color: var(--c-text-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gb-card-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.gb-card-time {
  font-size: var(--t-xs);
  color: var(--stone-400);
}

/* ================================================================
   EVIDENCE SYSTEM
   ================================================================ */
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  white-space: nowrap;
  font-family: var(--f-body);
  cursor: help;
  position: relative;
}
.ev-badge--official      { background: rgba(26,92,158,.12);  color: var(--ev-official);      border: 1px solid rgba(26,92,158,.25); }
.ev-badge--academic      { background: rgba(27,107,47,.12);  color: var(--ev-academic);      border: 1px solid rgba(27,107,47,.25); }
.ev-badge--constitutional{ background: rgba(168,120,0,.12);  color: var(--ev-constitutional);border: 1px solid rgba(168,120,0,.25); }
.ev-badge--journalistic  { background: rgba(200,72,0,.12);   color: var(--ev-journalistic);  border: 1px solid rgba(200,72,0,.25); }
.ev-badge--former-member { background: rgba(107,26,154,.12); color: var(--ev-former-member); border: 1px solid rgba(107,26,154,.25); }
.ev-badge--unverified    { background: rgba(90,90,90,.10);   color: var(--ev-unverified);    border: 1px solid rgba(90,90,90,.25); }
.ev-badge--disputed      { background: rgba(165,21,21,.10);  color: var(--ev-disputed);      border: 1px solid rgba(165,21,21,.25); }
.ev-badge--belief        { background: rgba(92,61,42,.10);   color: var(--ev-belief);        border: 1px solid rgba(92,61,42,.25); }
.ev-badge--independent   { background: rgba(27,107,47,.12);  color: var(--ev-independent);   border: 1px solid rgba(27,107,47,.25); }

/* Evidence block (inline) */
.ev-block {
  border-left: 3px solid;
  padding: var(--s-4) var(--s-5);
  margin-block: var(--s-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-sm);
  line-height: 1.65;
}
.ev-block--official      { border-color: var(--ev-official);      background: rgba(26,92,158,.05); }
.ev-block--academic      { border-color: var(--ev-academic);      background: rgba(27,107,47,.05); }
.ev-block--constitutional{ border-color: var(--ev-constitutional); background: rgba(168,120,0,.05); }
.ev-block--journalistic  { border-color: var(--ev-journalistic);  background: rgba(200,72,0,.05); }
.ev-block--former-member { border-color: var(--ev-former-member); background: rgba(107,26,154,.05); }
.ev-block--unverified    { border-color: var(--ev-unverified);    background: rgba(90,90,90,.05); }
.ev-block--disputed      { border-color: var(--ev-disputed);      background: rgba(165,21,21,.05); }
.ev-block--belief        { border-color: var(--ev-belief);        background: rgba(92,61,42,.05); }
.ev-block-header { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }

/* Evidence legend */
.ev-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  background: var(--stone-25);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.ev-legend-title {
  width: 100%;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--s-1);
}

/* Evidence gap */
.ev-gap {
  padding: var(--s-5);
  background: linear-gradient(135deg, rgba(165,21,21,.04), rgba(90,90,90,.04));
  border: 1px dashed var(--ev-unverified);
  border-radius: var(--r-lg);
  margin-block: var(--s-6);
}
.ev-gap-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ev-unverified);
  margin-bottom: var(--s-2);
}
.ev-gap-text { font-size: var(--t-sm); color: var(--c-text-2); }

/* ================================================================
   INFO BOXES
   ================================================================ */
.info-box {
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
.info-box--gold    { background: var(--gold-50);   border-color: var(--gold-400);  }
.info-box--rust    { background: var(--rust-50);   border-color: var(--rust-400);  }
.info-box--forest  { background: var(--sage-100);  border-color: var(--forest-500);}
.info-box--stone   { background: var(--stone-25);  border-color: var(--stone-200); }
.info-box--warning { background: #FFF8E1; border-color: #F9A825; }
.info-box--error   { background: #FFF5F5; border-color: var(--ev-disputed); }
.info-box-title {
  font-size: var(--t-sm);
  font-weight: 700;
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.info-box-content { font-size: var(--t-sm); line-height: 1.65; }
.info-box-content p { max-width: none; margin-bottom: var(--s-3); }
.info-box-content p:last-child { margin-bottom: 0; }

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--rust-700);
  padding: var(--s-6) var(--s-8);
  margin-block: var(--s-10);
  background: var(--stone-25);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -.1em;
  left: var(--s-5);
  font-family: var(--f-display);
  font-size: 7rem;
  color: var(--rust-200);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pull-quote-text {
  font-family: var(--f-display);
  font-size: clamp(var(--t-lg), 2.5vw, var(--t-2xl));
  font-style: italic;
  line-height: 1.35;
  color: var(--stone-800);
  position: relative;
}
.pull-quote-source {
  font-size: var(--t-sm);
  font-style: normal;
  font-weight: 700;
  color: var(--rust-700);
  margin-top: var(--s-4);
}

/* ================================================================
   PRICING DISPLAY
   ================================================================ */
.price-display {
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.price-display-header {
  padding: var(--s-6);
  background: var(--stone-900);
}
.price-display-label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: var(--s-2);
}
.price-display-amount {
  font-family: var(--f-display);
  font-size: var(--t-5xl);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.price-display-per { font-size: var(--t-sm); color: var(--stone-500); margin-top: var(--s-1); }
.price-display-body { padding: var(--s-6); }

.price-includes { margin-bottom: var(--s-5); }
.price-includes-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.price-includes-title--yes { color: var(--forest-500); }
.price-includes-title--no  { color: var(--ev-disputed); }
.price-includes-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.price-includes-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--t-sm);
  line-height: 1.4;
  margin: 0;
}
.price-includes-item--yes::before { content: '✓'; color: var(--forest-500); font-weight: 700; flex-shrink: 0; }
.price-includes-item--no::before  { content: '×'; color: var(--ev-disputed); font-weight: 700; flex-shrink: 0; }

.price-community {
  padding: var(--s-3) var(--s-4);
  background: var(--gold-50);
  border: 1px solid var(--gold-400);
  border-radius: var(--r-md);
  font-size: var(--t-xs);
  color: var(--stone-700);
  margin-bottom: var(--s-5);
  display: flex;
  gap: var(--s-2);
}
.price-community strong { color: var(--gold-700); }

.cancellation-table { }
.cancellation-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--s-3);
}
.cancellation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border);
  gap: var(--s-4);
}
.cancellation-row:last-child { border-bottom: none; }
.cancellation-row strong { color: var(--rust-700); font-size: var(--t-sm); }

/* ================================================================
   GUIDEBOOK ARTICLE
   ================================================================ */
.article-content {
  font-size: var(--t-md);
  line-height: 1.85;
  color: var(--c-text);
}
.article-content h2 {
  font-size: clamp(var(--t-xl), 3vw, var(--t-3xl));
  margin-top: var(--s-12);
  margin-bottom: var(--s-4);
  padding-top: var(--s-6);
  border-top: 2px solid var(--gold-400);
}
.article-content h3 {
  font-size: clamp(var(--t-lg), 2.5vw, var(--t-2xl));
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
  color: var(--rust-700);
}
.article-content h4 {
  font-size: var(--t-lg);
  margin-top: var(--s-6);
  margin-bottom: var(--s-2);
  color: var(--forest-700);
}
.article-content p    { margin-bottom: var(--s-5); max-width: var(--max-w-prose); }
.article-content ul,
.article-content ol   { margin-bottom: var(--s-5); padding-left: var(--s-6); max-width: var(--max-w-prose); }
.article-content li   { margin-bottom: var(--s-2); line-height: 1.7; }
.article-content table{ margin-block: var(--s-6); }
.article-content blockquote {
  border-left: 4px solid var(--rust-700);
  padding: var(--s-4) var(--s-6);
  margin-block: var(--s-6);
  background: var(--rust-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  font-family: var(--f-display);
  font-size: var(--t-lg);
}

/* Reading depth switcher */
.depth-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--stone-100);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-8);
  width: fit-content;
}
.depth-btn {
  padding: 6px var(--s-4);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-text-3);
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.depth-btn.active,
.depth-btn:hover {
  background: var(--white);
  color: var(--rust-700);
  box-shadow: var(--sh-sm);
}

/* TOC */
.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
  max-height: calc(100vh - var(--header-h) - var(--s-12));
  overflow-y: auto;
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  scrollbar-width: thin;
  scrollbar-color: var(--stone-200) transparent;
}
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-track { background: transparent; }
.toc::-webkit-scrollbar-thumb { background: var(--stone-200); border-radius: 2px; }
.toc-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-3);
}
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  display: block;
  padding: 5px var(--s-3);
  font-size: var(--t-sm);
  color: var(--c-text-3);
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  text-decoration: none;
  transition: all var(--dur-fast);
  line-height: 1.4;
}
.toc-link:hover { color: var(--c-primary); background: var(--rust-50); border-left-color: var(--rust-300); text-decoration: none; }
.toc-link.active { color: var(--rust-700); background: var(--rust-50); border-left-color: var(--rust-700); font-weight: 600; }
.toc-link--h3 { padding-left: var(--s-6); font-size: var(--t-xs); }
.toc-link--h4 { padding-left: var(--s-8); font-size: var(--t-xs); }

/* Reading progress */
.read-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stone-200);
  z-index: var(--z-sticky);
}
.read-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rust-700), var(--gold-700));
  width: 0;
  transition: width 80ms linear;
}

/* ================================================================
   INTERACTIVE — TIMELINE
   ================================================================ */
.timeline { position: relative; padding-left: var(--s-12); }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rust-700), var(--gold-700), var(--forest-600));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--s-8);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--s-12) + 12px);
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rust-700);
  border: 3px solid var(--c-bg);
  box-shadow: 0 0 0 2px var(--rust-700);
  transition: transform var(--dur-base);
}
.timeline-item:hover .timeline-dot { transform: scale(1.4); }
.timeline-dot--gold   { background: var(--gold-700);   box-shadow: 0 0 0 2px var(--gold-700); }
.timeline-dot--forest { background: var(--forest-600); box-shadow: 0 0 0 2px var(--forest-600); }
.timeline-dot--lg     { width: 24px; height: 24px; left: calc(-1 * var(--s-12) + 9px); }

.timeline-date  { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust-600); margin-bottom: var(--s-1); }
.timeline-title { font-family: var(--f-display); font-size: var(--t-lg); margin-bottom: var(--s-2); }
.timeline-desc  { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.65; }

/* ================================================================
   INTERACTIVE — TABS
   ================================================================ */
.tabs-list {
  display: flex;
  border-bottom: 2px solid var(--c-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs-list::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: var(--s-3) var(--s-5);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-text-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast);
}
.tab-btn:hover   { color: var(--c-text); }
.tab-btn.active  { color: var(--rust-700); border-bottom-color: var(--rust-700); }
.tab-panel       { padding-top: var(--s-6); }
.tab-panel[hidden]{ display: none; }

/* ================================================================
   INTERACTIVE — ACCORDION
   ================================================================ */
.accordion { border: 1px solid var(--c-border); border-radius: var(--r-xl); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--c-border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--s-5) var(--s-6);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--f-body);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  gap: var(--s-4);
  transition: background var(--dur-fast);
}
.accordion-trigger:hover { background: var(--stone-25); }
.accordion-trigger[aria-expanded="true"] { color: var(--rust-700); background: var(--rust-50); }
.accordion-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: var(--t-lg);
  color: var(--c-text-3);
  transition: all var(--dur-fast);
  line-height: 1;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  background: var(--rust-700);
  border-color: var(--rust-700);
  color: var(--white);
  rotate: 45deg;
}
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.accordion-panel.open { max-height: 9999px; }
.accordion-body { padding: 0 var(--s-6) var(--s-6); }

/* ================================================================
   CLAIM EXPLORER
   ================================================================ */
.claim-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.claim-card:hover { box-shadow: var(--sh-md); border-color: var(--stone-200); transform: translateY(-2px); }
.claim-card-header {
  padding: var(--s-5) var(--s-6);
  background: var(--stone-25);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
}
.claim-title {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-style: italic;
  color: var(--c-text);
}

.spectrum-track {
  height: 10px;
  background: linear-gradient(90deg, var(--forest-500) 0%, var(--gold-500) 50%, var(--ev-disputed) 100%);
  border-radius: var(--r-pill);
  position: relative;
  margin-bottom: var(--s-2);
}
.spectrum-needle {
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 4px; height: 18px;
  background: var(--stone-900);
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 2px var(--white);
}
.spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ================================================================
   MAP / ATLAS
   ================================================================ */
.atlas-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-lg);
}
#ddc-map { width: 100%; height: 100%; }
.atlas-overlay {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 999;
  background: rgba(26,23,19,.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  min-width: 180px;
}
.atlas-layer-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: var(--s-3);
}
.atlas-layer {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-block: 5px;
  font-size: var(--t-sm);
  color: var(--stone-300);
  cursor: pointer;
}
.atlas-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.atlas-layer input { accent-color: var(--gold-700); }

/* ================================================================
   TABLES
   ================================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.data-table th {
  background: var(--stone-900);
  color: var(--gold-500);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: var(--s-3) var(--s-4);
  text-align: left;
}
.data-table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--stone-25); }
.data-table tr:hover td { background: var(--rust-50); transition: background var(--dur-fast); }

/* ================================================================
   FORMS
   ================================================================ */
.form-field { margin-bottom: var(--s-5); }
.form-label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: var(--s-2);
}
.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font-family: var(--f-body);
  font-size: var(--t-base);
  color: var(--c-text);
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--rust-600);
  box-shadow: 0 0 0 3px rgba(139,58,42,.14);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-error {
  display: block;
  font-size: var(--t-xs);
  color: var(--ev-disputed);
  margin-top: var(--s-2);
}
.form-field.has-error .form-input,
.form-field.has-error .form-textarea { border-color: var(--ev-disputed); }

.form-success {
  text-align: center;
  padding: var(--s-12) var(--s-8);
}
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--forest-600);
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-5);
}
.form-success-title {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  margin-bottom: var(--s-3);
}
.form-success-msg { color: var(--c-text-2); }

/* ================================================================
   SECTION DIVIDERS / DECORATIONS
   ================================================================ */
.divider-gradient {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust-700) 25%, var(--gold-700) 50%, var(--forest-600) 75%, transparent);
}
.divider-gem {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-block: var(--s-10);
}
.divider-gem::before,
.divider-gem::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.divider-gem-icon {
  width: 10px; height: 10px;
  background: var(--gold-700);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 5px var(--s-4);
  background: var(--rust-50);
  border: 1px solid var(--rust-200);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust-700);
  margin-bottom: var(--s-5);
}

/* Placeholder image (SVG-based, no external request) */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--stone-800) 0%, var(--stone-700) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  color: var(--stone-500);
  font-size: var(--t-sm);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 4L56 30 30 56 4 30z' fill='none' stroke='rgba(184,134,11,0.06)' stroke-width='1'/%3E%3C/svg%3E");
}
.img-placeholder svg { width: 48px; height: 48px; opacity: .3; }
.img-placeholder span { opacity: .5; }

/* ================================================================
   FILTER BAR
   ================================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px var(--s-4);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.filter-tag:hover {
  border-color: var(--rust-400);
  color: var(--rust-700);
  background: var(--rust-50);
}
.filter-tag.active {
  background: var(--rust-700);
  color: var(--white);
  border-color: var(--rust-700);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--stone-950);
  color: var(--stone-500);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 4L56 30 30 56 4 30z' fill='none' stroke='rgba(184,134,11,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.footer-top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--rust-700), var(--gold-700), var(--forest-600));
}
.footer-inner {
  position: relative;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: var(--s-16) var(--gutter) var(--s-12);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-12);
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  text-decoration: none;
}
.footer-logo-mark {
  width: 44px; height: 44px;
  background: var(--rust-700);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--gold-500);
  flex-shrink: 0;
}
.footer-logo-name {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  color: var(--white);
}
.footer-tagline {
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--stone-600);
  margin-bottom: var(--s-6);
  max-width: 38ch;
}
.footer-con-te {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-style: italic;
  color: var(--gold-700);
}
.footer-col-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone-300);
  margin-bottom: var(--s-5);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-links li { margin: 0; }
.footer-links a {
  font-size: var(--t-sm);
  color: var(--stone-600);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: var(--s-6) var(--gutter);
  max-width: var(--max-w-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer-legal { font-size: var(--t-xs); color: var(--stone-700); }
.footer-legal a { color: var(--stone-600); }
.footer-vat { font-size: var(--t-xs); color: var(--stone-700); text-align: right; }

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-vat { text-align: center; }
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-12);
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--s-3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all var(--dur-fast);
}
.pagination .page-numbers:hover { border-color: var(--rust-400); color: var(--rust-700); background: var(--rust-50); text-decoration: none; }
.pagination .page-numbers.current { background: var(--rust-700); color: var(--white); border-color: var(--rust-700); }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(10,8,7,.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  animation: fadeIn .2s var(--ease-out);
}
.modal-panel {
  background: var(--white);
  border-radius: var(--r-2xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 100px rgba(0,0,0,.5);
  animation: slideUp .25s var(--ease-out);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.modal-title { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 400; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-3);
  font-size: var(--t-xl);
  transition: all var(--dur-fast);
}
.modal-close:hover { background: var(--stone-100); color: var(--c-text); }
.modal-body { padding: var(--s-6); overflow-y: auto; }

/* ================================================================
   TOAST
   ================================================================ */
.toast-container {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.toast {
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-lg);
  color: var(--white);
  font-size: var(--t-sm);
  font-weight: 600;
  box-shadow: var(--sh-xl);
  max-width: 360px;
  animation: slideUp .3s var(--ease-out);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.toast--success { background: var(--forest-700); }
.toast--error   { background: #991B1B; }
.toast--info    { background: var(--ev-official); }
.toast--warning { background: var(--gold-800); color: var(--stone-900); }

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden  { display: none !important; }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Colors */
.text-white   { color: var(--white); }
.text-rust    { color: var(--rust-700); }
.text-gold    { color: var(--gold-700); }
.text-forest  { color: var(--forest-600); }
.text-muted   { color: var(--c-text-3); }
.text-sm      { font-size: var(--t-sm); }
.text-xs      { font-size: var(--t-xs); }
.font-serif   { font-family: var(--f-display); }
.italic       { font-style: italic; }

/* Backgrounds */
.bg-stone-950 { background: var(--stone-950); }
.bg-stone-900 { background: var(--stone-900); }
.bg-rust      { background: var(--rust-700); }
.bg-gold      { background: var(--gold-700); }
.bg-forest    { background: var(--forest-600); }
.bg-surface   { background: var(--c-surface); }
.bg-alt       { background: var(--c-bg-alt); }

/* ================================================================
   ANIMATIONS (keyframes)
   ================================================================ */
@keyframes fadeIn    { from { opacity: 0; }                          to { opacity: 1; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dropIn    { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes pulse     { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(1.2); } }
@keyframes bounce    { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes slowRotate{ from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
@keyframes shimmer   { from { background-position: -200% center; } to { background-position: 200% center; } }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: .1s; }
.reveal--d2 { transition-delay: .2s; }
.reveal--d3 { transition-delay: .3s; }
.reveal--d4 { transition-delay: .4s; }
.reveal--left { transform: translateX(-28px); }
.reveal--left.visible { transform: translateX(0); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--stone-200) 25%, var(--stone-100) 50%, var(--stone-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
  *, *::before, *::after { box-shadow: none !important; animation: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .site-footer, .toc, .depth-switcher, .read-progress, nav, .btn, .filter-bar { display: none !important; }
  h1,h2,h3 { page-break-after: avoid; color: #000; }
  p, blockquote, table { page-break-inside: avoid; }
  @page { margin: 2cm; size: A4; }
}
