/* ═════════════════════════ OuroTaurus Shared Styles ═════════════════════════
   Default theme: Legal / Financial (light, white background, navy + gold accent)
   Dark theme:   [data-theme="dark"] on <html>
   ══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── LIGHT (default — legal/financial) ── */
  --bg:         #ffffff;
  --bg2:        #f8fafc;      /* alt section band */
  --bg3:        #f1f5f9;
  --card:       #ffffff;
  --card-alt:   #fafafa;
  --border:     #e5e7eb;
  --border-2:   #d1d5db;

  --navy:       #0b1e3b;      /* primary (deep legal navy) */
  --navy-2:     #13325d;
  --gold:       #9a7b2a;      /* muted gold for light mode (print-safe) */
  --gold-2:     #7a5e1f;
  --gold-soft:  rgba(154,123,42,0.08);
  --gold-line:  rgba(154,123,42,0.22);

  --text:       #111827;      /* body text */
  --heading:    #0b1e3b;      /* dark navy headings */
  --muted:      #475569;
  --dim:        #64748b;

  --accent-grn: #0A3D2A;      /* green used on hero + "done" rows */
  --accent-grn-soft: rgba(10,61,42,0.06);

  --hero-grad:  linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #fdfbf3 100%);
  --hero-grid:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(154,123,42,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(10,61,42,0.05) 0%, transparent 60%);

  --shadow-sm:  0 1px 2px rgba(11,30,59,0.05);
  --shadow:     0 4px 12px rgba(11,30,59,0.06), 0 1px 3px rgba(11,30,59,0.04);
  --shadow-lg:  0 12px 32px rgba(11,30,59,0.10), 0 2px 6px rgba(11,30,59,0.04);

  --font-body:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-ui:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head:  'Georgia', 'Times New Roman', Times, serif;
  --font-mono:  'Consolas', 'SF Mono', monospace;
}

/* ── DARK ── */
html[data-theme="dark"] {
  --bg:         #0a0a0a;
  --bg2:        #0d1117;
  --bg3:        #111827;
  --card:       #111;
  --card-alt:   #161616;
  --border:     #1e1e1e;
  --border-2:   #2a2a2a;

  --navy:       #D4AF37;      /* in dark mode, "primary" = gold */
  --navy-2:     #B8860B;
  --gold:       #D4AF37;
  --gold-2:     #B8860B;
  --gold-soft:  rgba(212,175,55,0.10);
  --gold-line:  rgba(212,175,55,0.30);

  --text:       #d1d5db;
  --heading:    #f9fafb;
  --muted:      #9ca3af;
  --dim:        #6b7280;

  --accent-grn: #0A3D2A;
  --accent-grn-soft: rgba(22,163,74,0.10);

  --hero-grad:  linear-gradient(135deg, #0a1a0a 0%, #0d1117 45%, #0d0d00 100%);
  --hero-grid:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(212,175,55,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(10,61,42,0.15) 0%, transparent 60%);

  --shadow-sm:  0 1px 3px rgba(212,175,55,0.08), 0 1px 2px rgba(0,0,0,0.5);
  --shadow:     0 4px 16px rgba(212,175,55,0.12), 0 1px 4px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 40px rgba(212,175,55,0.18), 0 4px 12px rgba(0,0,0,0.5);
  --gold-glow:  0 0 20px rgba(212,175,55,0.25), 0 0 40px rgba(212,175,55,0.10);

  --font-body:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head:  'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ── NAV ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] nav.site-nav {
  background: rgba(10,10,10,0.95); backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; border-radius: 4px; }
.nav-logo span {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--heading); letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 26px; list-style: none; font-family: var(--font-ui); align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.86rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }

/* ── GROUPED DROPDOWN NAV ── */
.nav-more { position: relative; }
.nav-more-toggle { cursor: pointer; user-select: none; white-space: nowrap; }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 0 10px; list-style: none;
  min-width: 190px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 200;
}
html[data-theme="dark"] .nav-dropdown { background: #111; border-color: #222; box-shadow: 0 8px 28px rgba(212,175,55,0.08), 0 8px 24px rgba(0,0,0,0.5); }
.nav-dropdown li a {
  display: block; padding: 9px 18px;
  color: var(--muted); font-size: 0.85rem; text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown li a:hover { background: var(--bg2); color: var(--gold); }
/* Section label within grouped dropdown */
.nav-group-label {
  padding: 12px 18px 3px;
  font-size: 0.65rem; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; font-family: var(--font-ui);
  pointer-events: none; line-height: 1;
  border-top: 1px solid var(--border); margin-top: 4px;
}
.nav-group-label:first-child { border-top: none; margin-top: 0; }
.nav-more:hover .nav-dropdown,
.nav-more.open .nav-dropdown { display: block; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  background: var(--navy); color: #fff; font-weight: 600; font-size: 0.82rem;
  font-family: var(--font-ui);
  padding: 9px 20px; border-radius: 4px; text-decoration: none;
  border: 1px solid var(--navy);
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--navy-2); transform: translateY(-1px); }
html[data-theme="dark"] .nav-cta { color: #000; }

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: transparent; border: 1px solid var(--border-2);
  color: var(--muted); cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 1rem; padding: 0;
}
.theme-toggle:hover { border-color: var(--navy); color: var(--navy); transform: rotate(15deg); }
.theme-toggle .sun  { display: none; }
.theme-toggle .moon { display: block; }
html[data-theme="dark"] .theme-toggle .sun  { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--hero-grad);
  padding: 88px 40px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--hero-grid);
}
.page-hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.page-badge {
  display: inline-block;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 18px;
  margin-bottom: 22px;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  color: var(--heading); font-weight: 700; line-height: 1.15; margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.page-hero h1 span { color: var(--gold); font-style: italic; }
html[data-theme="dark"] .page-hero h1 span { font-style: normal; }
.page-hero p {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: var(--muted); max-width: 680px; margin: 0 auto; line-height: 1.75;
}

/* ── SECTIONS ── */
section.body-section { padding: 76px 40px; background: var(--bg); }
section.body-section.alt { background: var(--bg2); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--font-ui);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--heading); font-weight: 700; margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.section-sub { color: var(--muted); font-size: 0.98rem; max-width: 680px; margin-bottom: 44px; line-height: 1.75; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; font-family: var(--font-ui);
  background: var(--navy); color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 13px 30px; border-radius: 4px; text-decoration: none;
  border: 1px solid var(--navy);
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow); }
html[data-theme="dark"] .btn-primary { color: #000; }
.btn-outline {
  display: inline-block; font-family: var(--font-ui);
  border: 1px solid var(--navy); color: var(--navy); font-size: 0.9rem; font-weight: 600;
  padding: 12px 30px; border-radius: 4px; text-decoration: none;
  background: transparent;
  transition: background 0.2s, transform 0.15s;
}
.btn-outline:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--gold-line); transform: translateY(-4px); box-shadow: var(--shadow); }
html[data-theme="dark"] .card:hover { box-shadow: var(--shadow), 0 0 24px rgba(212,175,55,0.08); }
.card .c-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 {
  font-family: var(--font-head); color: var(--heading);
  font-size: 1.05rem; font-weight: 700; margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.88rem; line-height: 1.75; }
.card .c-link { color: var(--gold); font-size: 0.82rem; font-weight: 600; margin-top: 14px; display: inline-block; text-decoration: none; }

/* ── BULLETS ── */
.rich-list { list-style: none; padding: 0; margin-top: 14px; }
.rich-list li {
  padding: 13px 0 13px 28px; position: relative;
  color: var(--muted); font-size: 0.92rem; line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.rich-list li:last-child { border-bottom: none; }
.rich-list li::before {
  content: "◆"; position: absolute; left: 4px; top: 14px;
  color: var(--gold); font-size: 0.7rem;
}
.rich-list li strong { color: var(--heading); font-weight: 700; }

/* ── CONTENT BLOCKS ── */
.content-block {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.content-block h3 {
  font-family: var(--font-head);
  color: var(--heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px;
}
.content-block p { color: var(--muted); font-size: 0.93rem; line-height: 1.8; margin-bottom: 10px; }
.content-block p:last-child { margin-bottom: 0; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: 1100px; margin: 0 auto; padding: 22px 40px 0;
  font-family: var(--font-ui);
  font-size: 0.8rem; color: var(--dim);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs .sep { margin: 0 10px; color: var(--border-2); }
.breadcrumbs .current { color: var(--navy); font-weight: 600; }

/* ── DISCLAIMER + FOOTER ── */
.disclaimer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 20px 40px; text-align: center;
  font-family: var(--font-ui);
  font-size: 0.78rem; color: var(--dim); line-height: 1.7;
}
footer.site-footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 48px 40px 36px; text-align: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700; color: var(--heading);
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.footer-sub { font-family: var(--font-ui); font-size: 0.82rem; color: var(--dim); margin-bottom: 24px; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-family: var(--font-ui);
  font-size: 0.82rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--navy); }
.footer-copy { font-family: var(--font-ui); font-size: 0.75rem; color: var(--dim); margin-top: 14px; }

/* ── HAMBURGER (hidden by default, shown at <=820px) ── */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle:hover span { background: var(--gold); }
nav.site-nav.mobile-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.site-nav.mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.site-nav.mobile-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  nav.site-nav { padding: 0 18px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    background: var(--card, #0d1117);
    border-top: 1px solid var(--border);
    margin: 0 -18px;
  }
  nav.site-nav.mobile-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 14px 22px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-soft, rgba(255,255,255,0.04));
  }
  .nav-links .nav-more { position: static; }
  .nav-links .nav-dropdown {
    position: static; display: none;
    transform: none; min-width: 0; box-shadow: none;
    background: transparent; border: none; padding: 0;
    margin: 0;
  }
  .nav-links .nav-more.open .nav-dropdown { display: block; }
  .nav-links .nav-dropdown li a {
    padding: 12px 38px; font-size: 14px;
    color: var(--muted);
  }
  .nav-links .nav-dropdown .nav-group-label {
    padding: 10px 38px 3px; font-size: 0.6rem;
  }
  .nav-cta { font-size: 14px; padding: 10px 16px; margin-left: auto; }
  section.body-section { padding: 56px 20px; }
  .page-hero { padding: 60px 20px 40px; }
  .breadcrumbs { padding: 22px 20px 0; }
  footer.site-footer { padding: 36px 20px; }

  /* mobile drawer: drop the underline-sweep, use a gold left-bar for the
     active link instead — reads cleaner in a stacked vertical menu,
     and the active state is visible on tap (no hover dependency). */
  .nav-links a::after { display: none; }
  .nav-links a.active {
    border-left: 3px solid var(--gold);
    background: var(--gold-soft);
    padding-left: 19px;          /* 22 − 3 keeps text aligned */
  }
}

/* ══════════════════════════════════════════════════
   SCROLL REVEAL  (applied via reveal.js)
   Add class="reveal" to any element. Optional:
   data-delay="1|2|3" for staggered siblings.
   data-dir="left|right" for horizontal slides.
   data-once="true" re-hides when scrolled out.
══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-dir="left"]  { transform: translateX(-32px); }
.reveal[data-dir="right"] { transform: translateX( 32px); }
.reveal[data-dir="left"].visible,
.reveal[data-dir="right"].visible { transform: translateX(0); }

.reveal[data-delay="1"] { transition-delay: 0.10s; }
.reveal[data-delay="2"] { transition-delay: 0.20s; }
.reveal[data-delay="3"] { transition-delay: 0.30s; }
.reveal[data-delay="4"] { transition-delay: 0.40s; }
.reveal[data-delay="5"] { transition-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible {
    opacity: 1 !important; transform: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════
   MOBILE — portrait phone (≤ 600px)
═══════════════════════════════════════ */
@media (max-width: 600px) {
  /* Nav already handled at 820px — shrink logo text */
  .nav-logo span { font-size: 15px; }
  .nav-cta { font-size: 11px; padding: 6px 12px; }

  /* Hero */
  .page-hero { padding: 60px 18px 40px; }
  .page-hero-inner h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .page-hero-inner p { font-size: 0.93rem; }
  .page-badge { font-size: 10px; padding: 4px 10px; }

  /* Sections */
  section.body-section { padding: 48px 18px; }
  .section-inner { padding: 0; }
  .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .section-sub { font-size: 0.9rem; }
  .breadcrumbs { padding: 16px 18px 0; }

  /* Cards — single column */
  .card-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .card { padding: 18px; }
  .card h3 { font-size: 1rem; }

  /* Footer */
  .footer-links { gap: 14px; }
  footer.site-footer { padding: 28px 18px; }
  .footer-copy { font-size: 0.72rem; }

  /* Tables — horizontal scroll */
  .table-wrap, table { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
  table thead, table tbody { display: table; width: 100%; }

  /* Stat/metric grids */
  .stats-grid, .metrics-row { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

  /* Buttons — full width stacked */
  .btn-primary, .btn-outline { width: 100%; text-align: center; box-sizing: border-box; }

  /* Disclaimer */
  .disclaimer { padding: 16px 18px; font-size: 0.74rem; }

  /* Typography */
  h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  h3 { font-size: clamp(1rem, 4vw, 1.3rem); }
  p  { font-size: 0.92rem; line-height: 1.75; }
}

/* ═══════════════════════════════════════
   MOBILE — landscape phone (short screen)
═══════════════════════════════════════ */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .page-hero { padding: 40px 24px 28px; }
  .page-hero-inner h1 { font-size: 1.6rem; }
  section.body-section { padding: 36px 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ═══════════════════════════════════════
   TABLET (601px – 900px)
═══════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 900px) {
  .page-hero { padding: 72px 32px 48px; }
  .card-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
  section.body-section { padding: 60px 32px; }
}

/* ════════════════════════════════════════════════════════════════════
   GOLD BRAND FLASH — SITE-WIDE  (every page includes shared.css)
   Animated gold shimmer on brand wordmarks, shimmer hero titles, and
   tasteful gold hover/active effects on nav links + internal tab strips.
   prefers-reduced-motion users get the static gold gradient, no movement.
   ════════════════════════════════════════════════════════════════════ */

/* ── keyframes ── */
@keyframes otGoldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes otGoldScan {
  0%   { left: -65%; }
  100% { left: 115%;  }
}
@keyframes otBadgePulse {
  0%,100% { border-color:rgba(212,175,55,.32); box-shadow:0 0 8px rgba(212,175,55,.12); }
  50%     { border-color:rgba(212,175,55,.80); box-shadow:0 0 20px rgba(212,175,55,.40), 0 0 40px rgba(212,175,55,.18); }
}
@keyframes otTextGlow {
  0%,100% { text-shadow:0 0 8px rgba(212,175,55,.28); }
  50%     { text-shadow:0 0 22px rgba(212,175,55,.75), 0 0 44px rgba(212,175,55,.35); }
}

/* ── NAV BRAND WORDMARK "OuroTaurus" (shimmers on every page) ── */
.nav-logo span {
  background: linear-gradient(90deg,#9a7b2a 0%,#c9a84c 22%,#ffe066 45%,#d4af37 68%,#9a7b2a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: otGoldShimmer 3.4s linear infinite;
}
html[data-theme="dark"] .nav-logo span {
  background: linear-gradient(90deg,#b8860b 0%,#d4af37 22%,#ffd700 45%,#d4af37 68%,#b8860b 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── FOOTER LOGO "OuroTaurus Flux LLC" (shimmers on every page) ── */
.footer-logo {
  background: linear-gradient(90deg,#9a7b2a 0%,#c9a84c 22%,#ffe066 45%,#d4af37 68%,#9a7b2a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: otGoldShimmer 3.4s linear infinite;
}
html[data-theme="dark"] .footer-logo {
  background: linear-gradient(90deg,#b8860b 0%,#d4af37 22%,#ffd700 45%,#d4af37 68%,#b8860b 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── REUSABLE SHIMMER TITLE — wrap the FULL heading text in this span ──
   Usage:  <h1><span class="ot-shimmer-title">My Page Title</span></h1>
   Matches the homepage hero h1 shimmer exactly.                        */
.ot-shimmer-title {
  display: inline-block;
  background: linear-gradient(90deg,#9a7b2a 0%,#c9a84c 18%,#ffe066 38%,#d4af37 55%,#c9a84c 72%,#9a7b2a 100%) !important;
  background-size: 240% auto !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: otGoldShimmer 3s linear infinite;
  line-height: inherit;
  font-style: normal !important;
}
html[data-theme="dark"] .ot-shimmer-title {
  background: linear-gradient(90deg,#b8860b 0%,#d4af37 18%,#ffd700 38%,#ffe878 55%,#d4af37 72%,#b8860b 100%) !important;
  background-size: 240% auto !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ── TOP NAV LINKS — gold underline sweep on hover + glow on active ── */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.28s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(212,175,55,0.35);
}
/* the grouped-dropdown toggle should not draw the underline twice */
.nav-links .nav-more-toggle::after { display: none; }

/* ── INTERNAL TAB STRIPS — global gold hover/active polish ──
   Reusable .ot-tabs/.ot-tab plus additive enhancement of the existing
   page tab patterns (education, tools, cognitive-health). Additive only:
   we lift + add gold accents; pages keep their own active colors.       */
.ot-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ot-tab {
  position: relative;
  padding: 0.55rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: transparent; color: var(--muted);
  font-family: var(--font-ui); font-size: 0.86rem; font-weight: 600;
  cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap; text-decoration: none;
}
.ot-tab:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 14px rgba(212,175,55,0.18);
}
.ot-tab.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.25), 0 4px 16px rgba(212,175,55,0.18);
}

/* Additive lift + gold hover for the existing per-page pill tab strips.
   Color/active states stay owned by each page; we only add motion+glow.
   (Note: .ntab on cognitive-health is a data table, NOT a tab — excluded.) */
.sub-tab, .qd-mock-tab,
.top-tab {
  transition: transform 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.sub-tab:hover, .qd-mock-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212,175,55,0.16);
}
.top-tab:hover { text-shadow: 0 0 12px rgba(212,175,55,0.25); }
/* clear gold active glow shared across the pill tab families */
.sub-tab.active, .qd-mock-tab.active {
  box-shadow: 0 0 0 1px rgba(212,175,55,0.22), 0 4px 16px rgba(212,175,55,0.16);
}

/* keep tab strips horizontally scrollable on small screens */
@media (max-width: 600px) {
  .ot-tabs, .sub-tabs, .qd-mock-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ot-tabs::-webkit-scrollbar,
  .sub-tabs::-webkit-scrollbar,
  .qd-mock-tabs::-webkit-scrollbar { display: none; }
}

/* ── REDUCED MOTION — static gold, no sweep/pulse/lift ── */
@media (prefers-reduced-motion: reduce) {
  .nav-logo span, .footer-logo, .ot-shimmer-title {
    animation: none !important;
    background-position: center !important;
  }
  .nav-links a::after { transition: none !important; }
  .ot-tab, .sub-tab, .qd-mock-tab, .top-tab {
    transition: none !important;
  }
  .ot-tab:hover, .sub-tab:hover, .qd-mock-tab:hover {
    transform: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   MODERN EFFECTS TOOLKIT  (site-wide, reusable — added 2026-06-07)
   GPU-friendly (transform/opacity only), mobile-first, reduced-motion safe.
   Pieces:
     .reveal-scale / .reveal-blur  → extra reveal flavours (work w/ reveal.js)
     .glass-card                   → glassmorphism elevated card + gold hover
     .gold-divider                 → animated gold accent line that draws in
     .ot-counter                   → count-up number styling hook
     .glow-btn / .magnetic         → button glow + magnetic micro-interaction
     .ot-aurora                    → lightweight CSS aurora hero backdrop
   ════════════════════════════════════════════════════════════════════ */

/* ── extra reveal flavours (reveal.js toggles .visible) ── */
.reveal-scale  { opacity: 0; transform: scale(0.94); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal-blur   { opacity: 0; filter: blur(8px); transform: translateY(20px); transition: opacity .7s ease, filter .7s ease, transform .7s ease; will-change: opacity, transform, filter; }
.reveal-blur.visible { opacity: 1; filter: blur(0); transform: translateY(0); }

/* ── GLASSMORPHISM CARD ── elevated, gold-glow hover, sheen sweep ── */
.glass-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
html[data-theme="dark"] .glass-card {
  background: linear-gradient(160deg, rgba(212,175,55,0.05) 0%, rgba(13,17,23,0.55) 100%);
}
/* sheen sweep on hover */
.glass-card::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -65%;
  width: 55%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,224,102,0.18), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(212,175,55,0.25), 0 0 32px rgba(212,175,55,0.18);
}
.glass-card:hover::before { opacity: 1; animation: otGoldScan 0.9s ease; }

/* ── GOLD DIVIDER ── thin accent line that draws in when revealed ── */
.gold-divider {
  height: 2px; border: 0; width: 100%; max-width: 220px;
  margin: 1.5rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform-origin: center;
}
/* draw-in only when used as a reveal target */
.gold-divider.reveal { transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.7,.2,1); opacity: 1; }
.gold-divider.reveal.visible { transform: scaleX(1); }
.gold-divider.wide { max-width: 100%; }

/* ── COUNT-UP NUMBER ── styling hook; reveal.js drives the count ── */
.ot-counter { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ── GLOW BUTTON ── pulsing gold ring on hover (additive) ── */
.glow-btn { position: relative; transition: transform .18s ease, box-shadow .25s ease; }
.glow-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(212,175,55,0.4), 0 6px 26px rgba(212,175,55,0.28); }

/* ── MAGNETIC ── JS adds --mx/--my; CSS just smooths it (opt-in) ── */
.magnetic { transition: transform .2s cubic-bezier(.2,.7,.2,1); }

/* ── AURORA HERO BACKDROP ── lightweight CSS-only animated glow ──
   Place an empty <div class="ot-aurora" aria-hidden="true"></div> as the
   first child of a position:relative hero. Pure transform/opacity drift.   */
.ot-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ot-aurora::before, .ot-aurora::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.5; will-change: transform;
}
.ot-aurora::before {
  width: 55vw; height: 55vw; top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(212,175,55,0.22), transparent 65%);
  animation: otAuroraA 18s ease-in-out infinite alternate;
}
.ot-aurora::after {
  width: 45vw; height: 45vw; bottom: -25%; right: -5%;
  background: radial-gradient(circle, rgba(125,211,252,0.16), transparent 65%);
  animation: otAuroraB 22s ease-in-out infinite alternate;
}
@keyframes otAuroraA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(8vw,6vh,0) scale(1.15); } }
@keyframes otAuroraB { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-7vw,-5vh,0) scale(0.95); } }

/* ── REDUCED MOTION — kill all modern motion, keep static gold styling ── */
@media (prefers-reduced-motion: reduce) {
  .reveal-scale, .reveal-scale.visible,
  .reveal-blur,  .reveal-blur.visible {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  .glass-card { transition: none !important; }
  .glass-card:hover { transform: none !important; }
  .glass-card::before { display: none !important; }
  .gold-divider { transform: scaleX(1) !important; transition: none !important; }
  .glow-btn, .magnetic { transition: none !important; }
  .glow-btn:hover, .magnetic:hover { transform: none !important; }
  .ot-aurora::before, .ot-aurora::after { animation: none !important; }
}
