/* ═══════════════════════════════════════════════════════════════════════
   TMHG BASE — Shared Design System
   Professional · Advanced Technology · Rooted in Heritage
   ═══════════════════════════════════════════════════════════════════════ */

/* ── DESIGN SYSTEM TOKENS ─────────────────────────────────────────────── */
:root {
  /* ── COLOR PALETTE ─────────────────────────────────────────────────── */
  --navy:        #080b16;
  --charcoal:    #0f1220;
  --slate:       #161929;
  --panel:       #181b2e;
  --mid:         #232640;
  --mid-hover:   #2a2e4a;
  --steel:       #a0ade8;
  --steel-dim:   rgba(160,173,232,0.5);
  --white:       #edf2f4;
  --white-dim:   rgba(237,242,244,0.72);
  --gold:        #d4a574;
  --gold-bright: #e8c090;
  --gold-glow:   rgba(212,165,116,0.18);
  --gold-dim:    rgba(212,165,116,0.10);
  --gold-line:   rgba(212,165,116,0.28);
  --rule:        rgba(160,173,232,0.09);
  --green:       #4db87a;
  --blue:        #4a8fe8;
  --shadow-deep: 0 24px 80px rgba(8,11,22,0.8);
  --shadow-card: 0 8px 32px rgba(8,11,22,0.5);
  --transition:  cubic-bezier(0.22,0.68,0,1.2);

  /* ── Z-INDEX SCALE ─────────────────────────────────────────────────── */
  --z-noise:         0;
  --z-content:       1;
  --z-mobile-nav:    199;
  --z-nav:           200;
  --z-hamburger:     300;
  --z-cursor-glow:   9998;
  --z-skip-link:     9999;

  /* ── TIMING SCALE ─────────────────────────────────────────────────── */
  --timing-fast:     0.2s;
  --timing-normal:   0.3s;
  --timing-slow:     0.5s;
  --timing-reveal:   0.65s;

  /* ── SPACING SCALE ──────────────────────────────────────────────────  */
  --space-xs:        0.5rem;
  --space-sm:        1rem;
  --space-md:        1.5rem;
  --space-lg:        2rem;
  --space-xl:        2.5rem;
  --space-2xl:       3.5rem;

  /* ── BREAKPOINTS (for reference) ────────────────────────────────────  */
  /* 1024px, 768px, 560px — see @media rules below */
}

/* ── RESET & BASE ────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'IBM Plex Sans',sans-serif;
  background:var(--charcoal);
  color:var(--white);
  overflow-x:hidden;
  line-height:1.7;
}

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

nav, .hero, .hero-bg, section, main, footer, .stat-band, .dash-wrap,
.cards-wrap, .page-header { position:relative; z-index:var(--z-content); }

/* ── NAV ──────────────────────────────────────────────────────────────  */
nav {
  position:fixed;
  top:0; left:0; right:0;
  z-index:var(--z-nav);
  height:64px;
  background:rgba(8,11,22,0.92);
  border-bottom:1px solid var(--gold-line);
  backdrop-filter:blur(20px) saturate(1.4);
  -webkit-backdrop-filter:blur(20px) saturate(1.4);
  display:flex;
  align-items:center;
  transition:box-shadow var(--timing-normal) ease;
}
nav.scrolled {
  box-shadow:0 4px 40px rgba(8,11,22,0.7);
}
.nav-inner {
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:0 var(--space-lg);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo-link { text-decoration:none; display:flex; align-items:center; gap:0.75rem; }
.wordmark {
  font-family:'Bebas Neue',sans-serif;
  font-size:1.65rem;
  color:var(--white);
  letter-spacing:0.07em;
  line-height:1;
  transition:color var(--timing-fast);
}
.wordmark:hover { color:var(--gold); }
.wordmark span { color:var(--gold); }

.nav-links { display:flex; gap:2rem; list-style:none; align-items:center; }
.nav-links a {
  color:var(--steel);
  text-decoration:none;
  font-size:0.72rem;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.14em;
  transition:color var(--timing-fast);
  position:relative;
  padding:0.5rem 0.25rem;
  border-radius:2px;
}
.nav-links a:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:4px;
}
.nav-links a::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:1px;
  background:var(--gold);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color:var(--gold); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform:scaleX(1); }

/* ── HAMBURGER ────────────────────────────────────────────────────────  */
.hamburger {
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:14px;
  margin:-14px -6px -14px 0;
  z-index:var(--z-hamburger);
  min-width:44px;
  min-height:44px;
}
.hamburger span {
  display:block;
  width:24px;
  height:2px;
  background:var(--white);
  border-radius:2px;
  transition:transform var(--timing-normal) ease, opacity var(--timing-normal) ease, background var(--timing-fast);
}
.hamburger:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.hamburger:hover span { background:var(--gold); }

.mobile-nav {
  display:none;
  position:fixed;
  top:64px; left:0; right:0;
  background:rgba(8,11,22,0.97);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--gold-line);
  z-index:var(--z-mobile-nav);
  padding:1.5rem var(--space-lg) 2rem;
  transform:translateY(-8px);
  opacity:0;
  transition:transform var(--timing-normal) ease, opacity var(--timing-normal) ease;
}
.mobile-nav.open {
  display:block;
  transform:translateY(0);
  opacity:1;
}
.mobile-nav ul { list-style:none; }
.mobile-nav li { border-bottom:1px solid var(--rule); }
.mobile-nav a {
  display:block;
  padding:1rem 0;
  color:var(--steel);
  text-decoration:none;
  font-size:0.82rem;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.14em;
  transition:color var(--timing-fast), padding-left var(--timing-fast);
  border-radius:2px;
  margin:0.25rem 0;
}
.mobile-nav a:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { color:var(--gold); padding-left:0.5rem; }

/* ── HERO ─────────────────────────────────────────────────────────────  */
.hero {
  position:relative;
  min-height:max(88dvh - 64px, 60vh);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  margin-top:64px;
  background-color:var(--navy);
  background-size:cover;
  background-position:center 40%;
  overflow:hidden;
}
.hero-bg {
  position:absolute;
  inset:0;
  background-color:var(--navy);
  background-size:cover;
  background-position:center 40%;
  filter:saturate(0.40) brightness(0.60);
  animation:kenBurns 28s ease-in-out infinite;
  z-index:1;
}
.hero-bg.loaded { /* legacy compat */ }

.hero-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(8,11,22,0.25) 0%,
    rgba(8,11,22,0.45) 40%,
    rgba(8,11,22,0.70) 70%,
    rgba(15,18,32,1.00) 100%
  );
  z-index:2;
}
/* Scanlines — cinematic tech overlay */
.hero::before {
  content:'';
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.055) 2px,
    rgba(0,0,0,0.055) 3px
  );
  z-index:3;
  pointer-events:none;
}
/* Radial vignette */
.hero::after {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 50% 0%, transparent 40%, rgba(8,11,22,0.5) 100%);
  pointer-events:none;
  z-index:1;
}

.hero-content {
  position:relative;
  z-index:5;
  max-width:1280px;
  margin:0 auto;
  padding:0 var(--space-lg) 5rem;
  width:100%;
}

.eyebrow {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.7rem;
  color:var(--gold);
  letter-spacing:0.24em;
  text-transform:uppercase;
  margin-bottom:1.5rem;
  display:flex;
  align-items:center;
  gap:1.25rem;
  opacity:0;
  animation:slideRight 0.8s 0.3s cubic-bezier(0.22,0.68,0,1.2) forwards;
}
.eyebrow::before {
  content:'';
  width:40px;
  height:1px;
  background:var(--gold);
  flex-shrink:0;
  box-shadow:0 0 8px var(--gold);
}

.hero h1 {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(4.5rem,11vw,10rem);
  line-height:0.88;
  letter-spacing:0.025em;
  margin-bottom:1.25rem;
  text-shadow:0 4px 40px rgba(8,11,22,0.6);
  opacity:0;
  animation:slideUp 0.9s 0.5s cubic-bezier(0.22,0.68,0,1.2) forwards;
}
.hero h1 em { color:var(--gold); font-style:normal; }

.hero-sub {
  font-size:1rem;
  color:var(--steel);
  max-width:640px;
  line-height:1.75;
  margin-bottom:0.75rem;
  opacity:0;
  animation:slideUp 0.9s 0.7s cubic-bezier(0.22,0.68,0,1.2) forwards;
  text-shadow:0 2px 12px rgba(8,11,22,0.8);
}

.hero-credit {
  position:absolute;
  bottom:0.6rem;
  right:1.25rem;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.48rem;
  color:rgba(160,173,232,0.22);
  z-index:3;
  line-height:1;
}

/* ── GOLD RULE ─────────────────────────────────────────────────────────  */
.gold-rule {
  height:1px;
  background:linear-gradient(to right, transparent 0%, var(--gold-line) 20%, var(--gold) 50%, var(--gold-line) 80%, transparent 100%);
  position:relative;
  z-index:var(--z-content);
}

/* ── STAT BAND ──────────────────────────────────────────────────────────  */
.stat-band {
  background:var(--slate);
  border-bottom:1px solid var(--gold-line);
  position:relative;
  z-index:var(--z-content);
}
.stat-row {
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.sc {
  padding:2.25rem 2rem;
  border-right:1px solid var(--rule);
  transition:background var(--timing-fast);
}
.sc:last-child { border-right:none; }
.sc:hover { background:rgba(212,165,116,0.04); }

.sn {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(2.5rem,4vw,3.75rem);
  color:var(--gold);
  line-height:1;
  text-shadow:0 0 30px rgba(212,165,116,0.25);
}
.sl {
  font-size:0.67rem;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:var(--steel);
  margin-top:0.35rem;
  line-height:1.4;
}
.ss {
  font-size:0.75rem;
  color:rgba(160,173,232,0.5);
  margin-top:0.4rem;
  line-height:1.55;
}

/* ── HOMEPAGE NAV CARDS ─────────────────────────────────────────────────  */
.cards-wrap {
  background:var(--charcoal);
  padding:3rem var(--space-lg) 5rem;
  position:relative;
}
.nav-cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  background:var(--gold-line);
  max-width:1100px;
  margin:0 auto;
  box-shadow:var(--shadow-deep);
}
.nav-card {
  background:var(--panel);
  padding:2.25rem 2rem;
  text-align:center;
  text-decoration:none;
  color:var(--white);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  min-height:210px;
  position:relative;
  overflow:hidden;
  transition:background var(--timing-normal) ease, box-shadow var(--timing-normal) ease;
  -webkit-tap-highlight-color:transparent;
  border-radius:0;
  outline:none;
}
.nav-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(to right, transparent, var(--gold), transparent);
  transform:scaleX(0);
  transition:transform 0.4s ease;
}
.nav-card::after {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 50% 0%, rgba(212,165,116,0.08) 0%, transparent 70%);
  opacity:0;
  transition:opacity var(--timing-normal) ease;
  pointer-events:none;
}
.nav-card:hover,
.nav-card:focus-visible {
  background:var(--mid);
  box-shadow:inset 0 0 0 1px var(--gold-line);
  outline:2px solid var(--gold);
  outline-offset:0;
}
.nav-card:hover::before,
.nav-card:focus-visible::before { transform:scaleX(1); }
.nav-card:hover::after,
.nav-card:focus-visible::after { opacity:1; }

.nav-card-label {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.62rem;
  text-transform:uppercase;
  letter-spacing:0.16em;
  color:var(--steel);
  line-height:1.5;
}
.nav-card-mark {
  font-family:'Bebas Neue',sans-serif;
  font-size:2.5rem;
  color:var(--gold);
  line-height:1.0;
  letter-spacing:0.04em;
  margin:0.6rem 0;
  text-shadow:0 0 20px rgba(212,165,116,0.2);
  transition:text-shadow var(--timing-normal);
}
.nav-card:hover .nav-card-mark {
  text-shadow:0 0 30px rgba(212,165,116,0.4);
}
.nav-card-desc {
  font-size:0.72rem;
  color:var(--steel);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.1em;
}

/* ── FOOTER ABOUT (homepage) ─────────────────────────────────────────── */
.footer-about {
  max-width:900px;
  margin:0 auto 2.5rem;
  text-align:center;
}
.footer-about p {
  font-size:0.78rem;
  color:rgba(160,173,232,0.88);
  line-height:1.8;
  margin-bottom:0.75rem;
}
.footer-about p:last-child { margin-bottom:0; }

/* ── DASHBOARD SECTION ──────────────────────────────────────────────────  */
.dash-wrap {
  max-width:1280px;
  margin:0 auto;
  padding:3.5rem var(--space-lg) 6rem;
  position:relative;
  z-index:var(--z-content);
}

/* ── TABS ──────────────────────────────────────────────────────────────  */
.tab-bar {
  display:flex;
  gap:0;
  border-bottom:1px solid var(--rule);
  margin-bottom:2.75rem;
  flex-wrap:wrap;
  background:transparent;
  role:'tablist';
}
.tab-btn {
  background:none;
  border:none;
  border-bottom:2px solid transparent;
  padding:1rem 1.75rem 1.1rem;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.68rem;
  letter-spacing:0.13em;
  text-transform:uppercase;
  color:var(--steel);
  cursor:pointer;
  transition:color var(--timing-fast), border-color var(--timing-fast), background var(--timing-fast);
  margin-bottom:-1px;
  position:relative;
  min-height:44px;
  border-radius:0;
}
.tab-btn:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:-2px;
}
.tab-btn:hover {
  color:var(--white);
  background:rgba(237,242,244,0.03);
}
.tab-btn.active {
  color:var(--white);
  border-bottom-color:var(--gold);
  background:rgba(212,165,116,0.04);
}

.tab-panel { display:none; }
.tab-panel.active { display:block; animation:fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── SECTION LABELS ─────────────────────────────────────────────────── */
.sec-lbl {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.67rem;
  color:var(--gold);
  letter-spacing:0.22em;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:1rem;
  margin-bottom:1.75rem;
}
.sec-lbl::before {
  content:'';
  width:22px;
  height:1px;
  background:var(--gold);
  flex-shrink:0;
  box-shadow:0 0 6px var(--gold);
}
.sec-title {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(1.85rem,3.2vw,2.6rem);
  letter-spacing:0.04em;
  margin-bottom:1.5rem;
  line-height:1.02;
  color:var(--white);
  text-shadow:0 2px 8px rgba(8,11,22,0.6);
}

/* ── CARD GROUPS ────────────────────────────────────────────────────── */
.card-group { margin-bottom:1.75rem; }
.card-grid { display:grid; gap:2px; background:var(--gold-line); }
.cg2 { grid-template-columns:repeat(2,1fr); }
.cg3 { grid-template-columns:repeat(3,1fr); }

.card-expand {
  display:none;
  grid-column:1/-1;
  background:var(--navy);
  border-left:3px solid var(--gold);
  padding:1.75rem 2.25rem;
  font-size:0.855rem;
  color:var(--steel);
  line-height:1.82;
  margin-top:2px;
  box-shadow:inset 0 0 60px rgba(212,165,116,0.04);
}
.card-expand.open { display:block; animation:fadeUp 0.3s ease; }
.card-expand strong { color:var(--white); font-weight:600; }

/* ── STAT CARDS ─────────────────────────────────────────────────────── */
.stat-card {
  background:var(--panel);
  padding:2rem;
  border-top:3px solid transparent;
  cursor:pointer;
  transition:border-color 0.25s, background 0.25s, box-shadow 0.25s;
  position:relative;
  overflow:hidden;
  border-radius:0;
  min-height:44px;
}
.stat-card:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.stat-card::before {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 50% -20%, rgba(212,165,116,0.07) 0%, transparent 70%);
  opacity:0;
  transition:opacity var(--timing-normal);
}
.stat-card:hover {
  border-top-color:var(--gold);
  background:var(--mid);
  box-shadow:0 0 0 1px rgba(212,165,116,0.12);
}
.stat-card:hover::before { opacity:1; }
.stat-card.open {
  border-top-color:var(--gold);
  background:var(--mid);
  box-shadow:0 0 0 1px rgba(212,165,116,0.15);
}

.sc-num {
  font-family:'Bebas Neue',sans-serif;
  font-size:3rem;
  color:var(--gold);
  line-height:1;
  margin-bottom:0.4rem;
  text-shadow:0 0 20px rgba(212,165,116,0.2);
}
.sc-tag {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.62rem;
  color:var(--gold);
  letter-spacing:0.15em;
  text-transform:uppercase;
  margin-bottom:0.45rem;
}
.sc-h {
  font-family:'Bebas Neue',sans-serif;
  font-size:1.3rem;
  letter-spacing:0.05em;
  color:var(--white);
  line-height:1.1;
  margin-bottom:0.4rem;
}
.sc-p {
  font-size:0.83rem;
  color:var(--steel);
  line-height:1.68;
}
.sc-p strong { color:var(--white); font-weight:600; }
.sc-arrow {
  position:absolute;
  top:1.1rem;
  right:1.1rem;
  font-size:0.6rem;
  color:var(--steel);
  transition:transform 0.25s, color var(--timing-fast);
}
.stat-card.open .sc-arrow { transform:rotate(180deg); color:var(--gold); }
.stat-card:hover .sc-arrow { color:var(--gold); }

/* ── SPEC GRID ──────────────────────────────────────────────────────── */
.spec-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  background:var(--gold-line);
  margin-bottom:2rem;
}
.spec-cell {
  background:var(--panel);
  padding:1.75rem;
  transition:background var(--timing-fast);
}
.spec-cell:hover { background:var(--mid); }
.spec-lbl {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.6rem;
  color:var(--gold);
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin-bottom:0.6rem;
}
.spec-val {
  font-family:'Bebas Neue',sans-serif;
  font-size:1.65rem;
  color:var(--white);
  line-height:1.1;
  margin-bottom:0.3rem;
  letter-spacing:0.04em;
}
.spec-note { font-size:0.73rem; color:var(--steel); line-height:1.55; }

/* ── ACCORDIONS ──────────────────────────────────────────────────────── */
.accordion {
  margin-bottom:0.875rem;
  border:1px solid var(--rule);
  background:var(--panel);
  cursor:pointer;
  transition:background var(--timing-fast), border-color var(--timing-fast);
  overflow:hidden;
  border-radius:0;
  min-height:44px;
}
.accordion:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.accordion:hover { background:var(--slate); }
.accordion.open {
  border-color:var(--gold-line);
  background:var(--mid);
}

.acc-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.35rem 1.75rem;
  gap:1rem;
  min-height:44px;
}
.acc-left { display:flex; align-items:center; gap:1.25rem; }
.acc-badge {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.58rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  padding:0.25rem 0.65rem;
  border:1px solid;
  flex-shrink:0;
  border-radius:1px;
}
.badge-gold { color:var(--gold); border-color:var(--gold-line); background:var(--gold-dim); }
.badge-blue { color:var(--blue); border-color:rgba(74,143,232,0.35); background:rgba(74,143,232,0.08); }
.badge-green { color:var(--green); border-color:rgba(77,184,122,0.35); background:rgba(77,184,122,0.08); }

.acc-title {
  font-family:'Bebas Neue',sans-serif;
  font-size:1.2rem;
  letter-spacing:0.04em;
  color:var(--white);
  line-height:1.1;
}
.acc-chevron {
  color:var(--steel);
  font-size:0.65rem;
  transition:transform 0.25s, color var(--timing-fast);
  flex-shrink:0;
}
.accordion.open .acc-chevron { transform:rotate(180deg); color:var(--gold); }

.acc-body {
  display:none;
  border-top:1px solid var(--rule);
  padding:1.75rem 1.75rem 2rem;
}
.accordion.open .acc-body { display:block; animation:fadeUp 0.28s ease; }

.acc-q {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.67rem;
  color:var(--steel);
  letter-spacing:0.1em;
  text-transform:uppercase;
  margin-bottom:0.6rem;
}
.acc-text { font-size:0.875rem; color:var(--steel); line-height:1.82; }
.acc-text strong { color:var(--white); font-weight:600; }
.acc-text + .acc-text { margin-top:1rem; }

/* ── PULL QUOTES ─────────────────────────────────────────────────────── */
.pull-quote {
  border-left:4px solid var(--gold);
  padding:1.75rem 2.25rem;
  background:var(--panel);
  margin-bottom:1.75rem;
  position:relative;
  overflow:hidden;
  box-shadow:inset 0 0 60px rgba(212,165,116,0.05);
}
.pull-quote::before {
  content:'';
  position:absolute;
  top:0; left:0; bottom:0;
  width:4px;
  background:linear-gradient(to bottom, var(--gold-bright), var(--gold), rgba(212,165,116,0.3));
  box-shadow:0 0 16px rgba(212,165,116,0.4);
}
.pull-quote p {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(1.3rem,2.6vw,2rem);
  letter-spacing:0.04em;
  line-height:1.3;
  color:var(--white);
}
.pull-quote p em { color:var(--gold); font-style:normal; }

/* ── INFOBOXES ───────────────────────────────────────────────────────── */
.infobox {
  padding:1.75rem 2rem;
  margin-bottom:1.5rem;
  border:1px solid;
  position:relative;
}
.ib-gold {
  border-color:var(--gold-line);
  background:linear-gradient(135deg, rgba(212,165,116,0.07) 0%, rgba(212,165,116,0.03) 100%);
}
.ib-green { border-color:rgba(77,184,122,0.25); background:rgba(77,184,122,0.05); }
.ib-blue  { border-color:rgba(74,143,232,0.25);  background:rgba(74,143,232,0.05); }
.ib-steel { border-color:rgba(160,173,232,0.2);  background:rgba(160,173,232,0.04); }
.ib-lbl {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.63rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  margin-bottom:0.875rem;
}
.ib-text { font-size:0.88rem; color:var(--steel); line-height:1.82; }
.ib-text strong { color:var(--white); font-weight:600; }

/* ── LEADER CARDS ────────────────────────────────────────────────────── */
.leader-grid { display:grid; gap:2px; background:var(--gold-line); }
.lc3 { grid-template-columns:repeat(3,1fr); }

.leader-card {
  background:var(--panel);
  padding:2.25rem 2rem;
  border-top:3px solid transparent;
  cursor:pointer;
  transition:border-color 0.25s, background 0.25s, box-shadow 0.25s;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  overflow:hidden;
  border-radius:0;
  min-height:44px;
}
.leader-card:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.leader-card::before {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 50% -30%, rgba(212,165,116,0.1) 0%, transparent 65%);
  opacity:0;
  transition:opacity var(--timing-normal);
}
.leader-card:hover {
  border-top-color:var(--gold);
  background:var(--mid);
  box-shadow:0 0 0 1px rgba(212,165,116,0.12);
}
.leader-card:hover::before { opacity:1; }
.leader-card.open {
  border-top-color:var(--gold);
  background:var(--mid);
}

.lc-photo {
  width:100px;
  height:100px;
  border-radius:50%;
  object-fit:cover;
  object-position:center top;
  border:2px solid var(--gold-line);
  margin-bottom:1.25rem;
  background:var(--mid);
  transition:border-color 0.25s, box-shadow 0.25s;
}
.leader-card:hover .lc-photo,
.leader-card.open .lc-photo {
  border-color:var(--gold);
  box-shadow:0 0 20px rgba(212,165,116,0.25);
}
.lc-photo-placeholder {
  width:100px; height:100px; border-radius:50%;
  background:var(--mid);
  border:2px solid var(--gold-line);
  margin-bottom:1.25rem;
  display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue',sans-serif; font-size:1.5rem; color:var(--steel);
}
.lc-role {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.6rem;
  color:var(--gold);
  letter-spacing:0.16em;
  text-transform:uppercase;
  margin-bottom:0.45rem;
}
.lc-name {
  font-family:'Bebas Neue',sans-serif;
  font-size:1.5rem;
  color:var(--white);
  letter-spacing:0.04em;
  line-height:1.05;
  margin-bottom:0.35rem;
}
.lc-title {
  font-size:0.75rem;
  color:var(--steel);
  margin-bottom:0.75rem;
  font-weight:500;
  font-style:italic;
}
.lc-summary { font-size:0.8rem; color:var(--steel); line-height:1.65; }
.lc-arrow {
  position:absolute;
  top:0.85rem; right:0.85rem;
  font-size:0.6rem; color:var(--steel);
  transition:transform 0.25s, color var(--timing-fast);
}
.leader-card.open .lc-arrow { transform:rotate(180deg); color:var(--gold); }
.leader-card:hover .lc-arrow { color:var(--gold); }

.lc-expand {
  display:none;
  background:var(--navy);
  border-left:3px solid var(--gold);
  padding:1.75rem 2.25rem;
  font-size:0.855rem;
  color:var(--steel);
  line-height:1.82;
  margin-top:2px;
}
.lc-expand.open { display:block; animation:fadeUp 0.3s ease; }
.lc-expand strong { color:var(--white); font-weight:600; }

/* ── GENERATION TIMELINE ─────────────────────────────────────────────── */
.gen-timeline {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2px;
  background:var(--gold-line);
  margin-bottom:2rem;
}
.gen-block {
  background:var(--panel);
  padding:1.75rem 1.5rem;
  position:relative;
  transition:background var(--timing-fast);
}
.gen-block:hover { background:var(--mid); }
.gen-block.current { background:rgba(20,12,30,0.8); border-bottom:2px solid rgba(212,165,116,0.5); }
.gen-block.target {
  background:rgba(8,14,26,0.9);
  grid-column:1/-1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  border-top:2px solid var(--blue);
}
.gen-era {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.58rem;
  color:var(--steel);
  letter-spacing:0.12em;
  text-transform:uppercase;
  margin-bottom:0.5rem;
}
.gen-num {
  font-family:'Bebas Neue',sans-serif;
  font-size:2.4rem;
  color:var(--gold);
  line-height:1;
  margin-bottom:0.3rem;
  text-shadow:0 0 20px rgba(212,165,116,0.25);
}
.gen-label {
  font-family:'Bebas Neue',sans-serif;
  font-size:0.95rem;
  color:var(--white);
  letter-spacing:0.08em;
  line-height:1.2;
  margin-bottom:0.55rem;
}
.gen-desc { font-size:0.73rem; color:var(--steel); line-height:1.6; }
.gen-block.target .gen-desc { max-width:700px; }
.gen-marker {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.6rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  margin-top:0.875rem;
  padding:0.25rem 0.6rem;
  border:1px solid;
  display:inline-block;
}
.marker-current { color:rgba(212,165,116,0.9); border-color:var(--gold-line); background:var(--gold-dim); }
.marker-target { color:var(--blue); border-color:rgba(74,143,232,0.35); background:rgba(74,143,232,0.08); }

/* ── HISTORY TABLE ───────────────────────────────────────────────────── */
.hist-table {
  width:100%;
  border-collapse:collapse;
  margin-bottom:2rem;
  font-size:0.83rem;
}
.hist-table th {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.6rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--steel);
  padding:0.875rem 1.25rem;
  text-align:left;
  border-bottom:1px solid var(--gold-line);
}
.hist-table td {
  padding:1.1rem 1.25rem;
  border-bottom:1px solid var(--rule);
  color:var(--steel);
  vertical-align:top;
  line-height:1.65;
}
.hist-table td:first-child {
  font-family:'Bebas Neue',sans-serif;
  font-size:1.35rem;
  color:var(--gold);
  white-space:nowrap;
}
.hist-table td strong { color:var(--white); }
.hist-table tr:hover td { background:rgba(63,69,87,0.2); }

/* ── PHOTO BREAK ────────────────────────────────────────────────────── */
.photo-break {
  position:relative;
  height:320px;
  overflow:hidden;
  margin-bottom:2rem;
}
.photo-break img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(0.25) brightness(0.45);
  transform:scale(1.05);
  transition:transform 8s ease-out;
}
.photo-break:hover img { transform:scale(1); }
.pb-overlay {
  position:absolute;
  inset:0;
  background:rgba(8,11,22,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:0.5rem;
}
.pb-text {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(1.6rem,3.5vw,2.9rem);
  letter-spacing:0.06em;
  text-align:center;
  line-height:1.2;
  text-shadow:0 2px 20px rgba(8,11,22,0.6);
}
.pb-text em { color:var(--gold); font-style:normal; }
.pb-credit {
  position:absolute;
  bottom:0.5rem; right:1.25rem;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.52rem;
  color:rgba(160,173,232,0.26);
}

/* ── SPLIT LAYOUT ───────────────────────────────────────────────────── */
.split {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  background:var(--gold-line);
  margin-bottom:1.75rem;
}
.split-photo { position:relative; min-height:380px; overflow:hidden; background:var(--slate); }
.split-photo img {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter:saturate(0.3) brightness(0.5);
}
.sp-overlay { position:absolute; inset:0; background:rgba(8,11,22,0.25); }
.split-panel { background:var(--panel); padding:2.25rem; }

/* ── PAGE ATTR ──────────────────────────────────────────────────────── */
.page-attr {
  max-width:1280px;
  margin:0 auto;
  padding:0.6rem var(--space-lg) 1.5rem;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.58rem;
  color:rgba(160,173,232,0.28);
  line-height:1.9;
  position:relative;
  z-index:var(--z-content);
}
.page-attr strong {
  font-weight:500;
  color:rgba(160,173,232,0.38);
  letter-spacing:0.08em;
  text-transform:uppercase;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
footer {
  background:var(--navy);
  border-top:1px solid var(--gold-line);
  padding:2.5rem 0 1.5rem;
  position:relative;
  z-index:var(--z-content);
}
.footer-inner {
  max-width:1280px;
  margin:0 auto;
  padding:0 var(--space-lg);
}
.footer-main {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:2rem;
  margin-bottom:1.75rem;
  padding-bottom:1.75rem;
  border-bottom:1px solid var(--rule);
  flex-wrap:wrap;
}
.footer-nav { display:flex; gap:1.75rem; list-style:none; flex-wrap:wrap; }
.footer-nav a {
  color:var(--steel);
  text-decoration:none;
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.1em;
  transition:color var(--timing-fast);
  position:relative;
  padding:0.25rem 0;
  border-radius:1px;
}
.footer-nav a:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.footer-nav a:hover { color:var(--gold); }

.footer-attr {
  font-size:0.63rem;
  color:rgba(160,173,232,0.38);
  line-height:1.7;
  max-width:500px;
  text-align:right;
}
.footer-attr a { color:rgba(160,173,232,0.45); text-decoration:none; }
.footer-attr a:hover { color:var(--gold); }

.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:0.875rem;
  padding-top:0.35rem;
}
.footer-copy { font-size:0.68rem; color:rgba(160,173,232,0.5); }

.footer-legal { display:flex; align-items:center; }
.footer-legal a {
  font-size:0.68rem;
  color:rgba(160,173,232,0.5);
  text-decoration:none;
  padding:0 0.875rem;
  border-right:1px solid rgba(160,173,232,0.2);
  line-height:1;
  transition:color var(--timing-fast);
  border-radius:1px;
}
.footer-legal a:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.footer-legal a:first-child { padding-left:0; }
.footer-legal a:last-child { border-right:none; padding-right:0; }
.footer-legal a:hover { color:var(--gold); }

/* ── LEGAL PAGES ──────────────────────────────────────────────────────  */
.page-header {
  border-bottom:1px solid rgba(160,173,232,0.1);
  padding:5rem 2rem 3.5rem;
  background:var(--slate);
  margin-top:64px;
  position:relative;
}
.page-header::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:1px;
  background:linear-gradient(to right, transparent, var(--gold-line), transparent);
}
.page-header-inner { max-width:860px; margin:0 auto; }
.page-title {
  font-family:'Bebas Neue',sans-serif;
  font-size:3.5rem;
  letter-spacing:0.04em;
  color:var(--white);
  line-height:1;
  margin-bottom:0.875rem;
}
.last-update {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.7rem;
  color:rgba(160,173,232,0.5);
  letter-spacing:0.1em;
}
.doc-body {
  max-width:860px;
  margin:0 auto;
  padding:4rem 2rem 6rem;
  position:relative;
  z-index:var(--z-content);
}
.doc-body h2 {
  font-family:'Bebas Neue',sans-serif;
  font-size:1.75rem;
  letter-spacing:0.05em;
  color:var(--white);
  margin:2.5rem 0 1rem;
}
.doc-body h2:first-child { margin-top:0; }
.doc-body p { font-size:0.9rem; color:var(--steel); line-height:1.85; margin-bottom:1.25rem; }
.doc-body p strong { color:var(--white); font-weight:600; }
.doc-body ul { margin-left:1.5rem; margin-bottom:1.25rem; }
.doc-body ul li { font-size:0.9rem; color:var(--steel); line-height:1.8; margin-bottom:0.4rem; }
.doc-body a { color:var(--gold); text-decoration:none; transition:opacity var(--timing-fast); }
.doc-body a:hover { opacity:0.8; }

.back-link {
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--steel);
  text-decoration:none;
  transition:color var(--timing-fast);
  border-radius:1px;
}
.back-link:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.back-link:hover { color:var(--gold); }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────── */
.reveal {
  opacity:0;
  transform:translateY(20px);
  transition:opacity var(--timing-reveal) ease, transform var(--timing-reveal) ease;
}
.reveal.visible {
  opacity:1;
  transform:translateY(0);
}
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }

/* ── ENTRANCE ANIMATIONS ─────────────────────────────────────────────── */
@keyframes slideUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes slideRight {
  from { opacity:0; transform:translateX(-14px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes riseIn {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── INDEX HERO SPECIFIC ──────────────────────────────────────────────  */
.hero.index-hero {
  min-height:0;
  height:58vh;
  max-height:600px;
  overflow:hidden;
}
.hero.index-hero::after { display:none; }
.hero-text {
  position:absolute;
  bottom:3rem;
  left:0; right:0;
  text-align:center;
  padding:0 var(--space-lg);
  z-index:2;
  opacity:0;
  animation:riseIn 0.9s 0.45s ease-out forwards;
}
.hero-text h1 {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(2.8rem,7.5vw,7rem);
  line-height:0.9;
  letter-spacing:0.03em;
  text-shadow:0 4px 30px rgba(8,11,22,0.7);
}
.hero-text h1 em { color:var(--gold); font-style:normal; display:block; }
.hero-text p {
  margin-top:0.9rem;
  font-size:clamp(0.74rem,1.4vw,0.94rem);
  color:rgba(237,242,244,0.55);
  font-weight:300;
  letter-spacing:0.04em;
  max-width:540px;
  margin-left:auto;
  margin-right:auto;
}

/* Index card animation */
.nav-cards {
  opacity:0;
  animation:riseIn 0.8s 0.8s ease-out forwards;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────  */
@media(max-width:1024px) {
  .stat-row { grid-template-columns:repeat(2,1fr); }
  .sc { border-right:none; border-bottom:1px solid var(--rule); }
  .sc:last-child { border-bottom:none; }
  .spec-grid { grid-template-columns:repeat(2,1fr); }
  .cg3 { grid-template-columns:repeat(2,1fr); }
  .lc3 { grid-template-columns:repeat(2,1fr); }
  .split { grid-template-columns:1fr; }
  .split-photo { min-height:240px; }
  .gen-timeline { grid-template-columns:repeat(2,1fr); }
  .gen-block.target { grid-column:1/-1; }
}

@media(max-width:768px) {
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .cg2, .cg3 { grid-template-columns:1fr; }
  .lc3 { grid-template-columns:1fr; }
  .spec-grid { grid-template-columns:1fr; }
  .footer-main { flex-direction:column; align-items:flex-start; gap:1.5rem; }
  .footer-attr { text-align:left; max-width:100%; }
  .tab-btn { padding:0.75rem 1rem; font-size:0.62rem; }
  .hero { min-height:80dvh; }
  .hero-text { bottom:1.75rem; }
}

@media(max-width:560px) {
  .nav-cards { grid-template-columns:1fr; }
  .gen-timeline { grid-template-columns:1fr; }
  .gen-block.target { grid-column:1/-1; }
  .hero.index-hero { height:46dvh; min-height:280px; }
}

/* ── CUSTOM SCROLLBAR ────────────────────────────────────────────────── */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--navy); }
::-webkit-scrollbar-thumb { background:rgba(212,165,116,0.3); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:rgba(212,165,116,0.5); }

/* ── SELECTION ────────────────────────────────────────────────────────  */
::selection { background:rgba(212,165,116,0.25); color:var(--white); }

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM ANIMATION SYSTEM
   ═══════════════════════════════════════════════════════════════════════ */

/* ── PAGE ENTRANCE ──────────────────────────────────────────────────────── */
@keyframes pageEntrance { from { opacity:0; } to { opacity:1; } }
body { animation:pageEntrance 0.55s ease-out; }

/* ── KEN BURNS ──────────────────────────────────────────────────────────── */
@keyframes kenBurns {
  0%   { transform:scale(1.10) translate(0%,0%); }
  25%  { transform:scale(1.14) translate(-1.1%,0.5%); }
  50%  { transform:scale(1.08) translate(0.5%,-0.7%); }
  75%  { transform:scale(1.13) translate(-0.4%,0.3%); }
  100% { transform:scale(1.10) translate(0%,0%); }
}

/* Ken Burns for hero sections that use direct background-image (no .hero-bg child) */
@keyframes heroBgZoom {
  0%   { background-size:108% auto; }
  50%  { background-size:116% auto; }
  100% { background-size:108% auto; }
}
section.hero { animation:heroBgZoom 26s ease-in-out infinite; }
/* Override for why.html which uses .hero-bg — no direct bg needed */
section.hero:has(.hero-bg) { animation:none; }

/* ── SCROLL PROGRESS BAR ────────────────────────────────────────────────── */
#tmhg-progress {
  position:fixed;
  top:64px;
  left:0;
  height:2px;
  width:0%;
  background:linear-gradient(to right, var(--gold), var(--gold-bright), var(--gold));
  box-shadow:0 0 10px rgba(212,165,116,0.7), 0 0 24px rgba(212,165,116,0.3);
  z-index:var(--z-nav);
  pointer-events:none;
  transition:width 0.06s linear;
}

/* ── CURSOR GLOW ────────────────────────────────────────────────────────── */
#cursor-glow {
  position:fixed;
  pointer-events:none;
  z-index:var(--z-cursor-glow);
  width:420px;
  height:420px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(212,165,116,0.06) 0%, transparent 58%);
  transform:translate(-50%,-50%);
  transition:left 0.2s ease, top 0.2s ease;
  mix-blend-mode:screen;
}

/* ── GOLD SHIMMER ON NAV CARD MARKS ────────────────────────────────────── */
@keyframes goldShimmer {
  0%   { background-position:200% center; }
  100% { background-position:-200% center; }
}
.nav-card:hover .nav-card-mark,
.nav-card:focus-visible .nav-card-mark {
  background:linear-gradient(90deg, var(--gold) 20%, var(--gold-bright) 48%, var(--gold) 76%);
  background-size:300% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:goldShimmer 1.3s ease-in-out;
}

/* ── STAT NUMBER PULSE ──────────────────────────────────────────────────── */
@keyframes goldPulse {
  0%,100% { text-shadow:0 0 20px rgba(212,165,116,0.2); }
  50%      { text-shadow:0 0 40px rgba(212,165,116,0.6), 0 0 80px rgba(212,165,116,0.18); }
}
.sn { animation:goldPulse 4s ease-in-out infinite; }

/* ── GOLD RULE DRAW-IN ──────────────────────────────────────────────────── */
@keyframes ruleDraw {
  from { transform:scaleX(0); opacity:0; }
  to   { transform:scaleX(1); opacity:1; }
}
.gold-rule {
  transform-origin:center;
  animation:ruleDraw 1.4s 0.5s cubic-bezier(0.22,0.68,0,1.2) both;
}

/* ── ANIMATED HERO GRID OVERLAY ─────────────────────────────────────────── */
@keyframes gridDrift {
  0%   { transform:translate(0,0); }
  100% { transform:translate(60px,60px); }
}
.hero-grid-overlay {
  position:absolute;
  inset:-60px;
  background-image:
    linear-gradient(rgba(212,165,116,0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,165,116,0.038) 1px, transparent 1px);
  background-size:60px 60px;
  animation:gridDrift 22s linear infinite;
  z-index:1;
  pointer-events:none;
}

/* ── NAV CARD 3D LIFT ───────────────────────────────────────────────────── */
.nav-card {
  transition:background 0.28s ease, box-shadow 0.28s ease, transform 0.22s ease;
}
.nav-card:hover { transform:translateY(-4px); }

/* ── STAGGERED NAV CARD ENTRANCE ────────────────────────────────────────── */
.nav-cards.visible .nav-card:nth-child(1) { animation:riseIn 0.6s 0.05s ease-out both; }
.nav-cards.visible .nav-card:nth-child(2) { animation:riseIn 0.6s 0.14s ease-out both; }
.nav-cards.visible .nav-card:nth-child(3) { animation:riseIn 0.6s 0.23s ease-out both; }
.nav-cards.visible .nav-card:nth-child(4) { animation:riseIn 0.6s 0.32s ease-out both; }
.nav-cards.visible .nav-card:nth-child(5) { animation:riseIn 0.6s 0.41s ease-out both; }
.nav-cards.visible .nav-card:nth-child(6) { animation:riseIn 0.6s 0.50s ease-out both; }

/* ── PULL QUOTE ANIMATED BORDER ─────────────────────────────────────────── */
@keyframes borderGlow {
  0%,100% { box-shadow:0 0 12px rgba(212,165,116,0.3); }
  50%      { box-shadow:0 0 28px rgba(212,165,116,0.55), inset 0 0 40px rgba(212,165,116,0.04); }
}
.pull-quote { animation:borderGlow 4s ease-in-out infinite; }

/* ── TAB PANEL ENHANCED TRANSITION ─────────────────────────────────────── */
.tab-panel.active { animation:fadeUp 0.4s cubic-bezier(0.22,0.68,0,1.2); }

/* ── ENHANCED CARD REVEAL ───────────────────────────────────────────────── */
.card-expand.open,
.lc-expand.open { animation:fadeUp 0.38s cubic-bezier(0.22,0.68,0,1.2); }

/* ── ACCORDION ENHANCED OPEN ────────────────────────────────────────────── */
.accordion.open .acc-body { animation:fadeUp 0.32s cubic-bezier(0.22,0.68,0,1.2); }

/* ── GLOWING SEC LABEL LINE ─────────────────────────────────────────────── */
@keyframes linePulse {
  0%,100% { box-shadow:0 0 6px var(--gold); }
  50%      { box-shadow:0 0 14px var(--gold-bright), 0 0 28px rgba(212,165,116,0.3); }
}
.sec-lbl::before { animation:linePulse 3s ease-in-out infinite; }

/* ── INDEX HERO BACKGROUND ──────────────────────────────────────────────── */
.hero.index-hero {
  background-size:cover;
  background-repeat:no-repeat;
}

/* ── HERO TEXT OVERLAY HIGHER Z ─────────────────────────────────────────── */
.hero-text { z-index:4; position:relative; }

/* ═══════════════════════════════════════════════════════════════════════
   ACCESSIBILITY, MOBILE RESPONSIVENESS & UX REFINEMENTS
   Added April 2026
   ═══════════════════════════════════════════════════════════════════════ */

/* ── SKIP LINK ──────────────────────────────────────────────────────────── */
.skip-link {
  position:absolute;
  top:-100px;
  left:1rem;
  z-index:var(--z-skip-link);
  background:var(--gold);
  color:var(--navy);
  padding:0.75rem 1.25rem;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.75rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  text-decoration:none;
  font-weight:600;
  border-radius:2px;
  box-shadow:0 4px 20px rgba(8,11,22,0.6);
  transition:top 0.2s ease;
}
.skip-link:focus {
  top:1rem;
  outline:2px solid var(--white);
  outline-offset:2px;
}

/* ── ARIA-DRIVEN FOCUS STATES FOR CUSTOM INTERACTIVE ELEMENTS ──────────── */
.stat-card:focus-visible,
.leader-card:focus-visible,
.accordion:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:3px;
  box-shadow:0 0 0 1px rgba(212,165,116,0.2);
}

/* ── CARD-EXPAND MOBILE REFLOW SYSTEM ──────────────────────────────────── */
/* On desktop: original behavior — .card-expand sits below the grid, full row width */
/* On mobile: JS clones each .card-expand content into a card-attached slot, */
/*            which appears directly below the tapped card */

/* Card-attached mobile slots — hidden on desktop by default */
.card-expand-mobile {
  display:none;
}
.lc-expand-mobile {
  display:none;
}

/* ── MOBILE: CARD-EXPAND REFLOW ─────────────────────────────────────────── */
@media(max-width:768px) {
  /* Hide the original desktop card-expand and lc-expand blocks */
  .card-expand,
  .lc-expand {
    display:none !important;
  }
  /* Show the mobile slot only when active */
  .card-expand-mobile.open,
  .lc-expand-mobile.open {
    display:block;
    background:var(--navy);
    border-left:3px solid var(--gold);
    padding:1.5rem 1.5rem;
    font-size:1rem;
    color:var(--steel);
    line-height:1.75;
    margin-top:2px;
    margin-bottom:2px;
    box-shadow:inset 0 0 60px rgba(212,165,116,0.04);
    animation:fadeUp 0.3s ease;
  }
  .card-expand-mobile.open strong,
  .lc-expand-mobile.open strong {
    color:var(--white);
    font-weight:600;
  }
}

/* ── STICKY SUB-TAB DROPDOWN (IN-PAGE SECTION NAV, MOBILE ONLY) ────────── */
.subtab-select-wrap {
  display:none;
}
.subtab-select-label {
  display:none;
}
@media(max-width:768px) {
  /* Hide the horizontal tab bar on mobile */
  .tab-bar { display:none !important; }
  /* Show the sticky select instead */
  .subtab-select-wrap {
    display:block;
    position:sticky;
    top:64px;
    z-index:150;
    background:rgba(15,18,32,0.97);
    backdrop-filter:blur(20px) saturate(1.4);
    -webkit-backdrop-filter:blur(20px) saturate(1.4);
    border-bottom:1px solid var(--gold-line);
    padding:0.75rem var(--space-lg);
    margin-bottom:1.5rem;
  }
  .subtab-select-label {
    display:block;
    font-family:'IBM Plex Mono',monospace;
    font-size:0.62rem;
    color:var(--steel);
    letter-spacing:0.1em;
    text-transform:uppercase;
    margin-bottom:0.5rem;
    font-weight:500;
  }
  .subtab-select {
    width:100%;
    min-height:44px;
    background:var(--panel);
    color:var(--white);
    border:1px solid var(--gold-line);
    border-radius:2px;
    padding:0.75rem 2.5rem 0.75rem 1rem;
    font-family:'IBM Plex Mono',monospace;
    font-size:0.85rem;
    letter-spacing:0.10em;
    text-transform:uppercase;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4a574' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 1rem center;
    background-size:12px 8px;
  }
  .subtab-select:focus-visible {
    outline:2px solid var(--gold);
    outline-offset:2px;
  }
}

/* ── MOBILE: HISTORICAL TABLE COLUMN WIDTHS ────────────────────────────── */
@media(max-width:768px) {
  .hist-table {
    table-layout:fixed;
    font-size:0.78rem;
  }
  .hist-table th,
  .hist-table td {
    padding:0.75rem 0.625rem;
    word-wrap:break-word;
    overflow-wrap:break-word;
  }
  .hist-table th:nth-child(1),
  .hist-table td:nth-child(1) { width:18%; }
  .hist-table th:nth-child(2),
  .hist-table td:nth-child(2) { width:57%; }
  .hist-table th:nth-child(3),
  .hist-table td:nth-child(3) { width:25%; }
  .hist-table td:first-child {
    font-size:1rem;
    white-space:normal;
    line-height:1.2;
  }
}

/* ── MOBILE: BODY PARAGRAPH SIZE BUMP TO 16px (READABILITY) ─────────────── */
@media(max-width:768px) {
  .acc-text { font-size:1rem; line-height:1.7; }
  .ib-text { font-size:1rem; line-height:1.7; }
  .sc-p { font-size:0.95rem; line-height:1.65; }
  .footer-about p { font-size:0.95rem; line-height:1.75; }
}

/* ── FOOTER: STACK ON MOBILE ────────────────────────────────────────────── */
@media(max-width:768px) {
  .footer-bottom {
    flex-direction:column;
    align-items:flex-start;
    gap:0.75rem;
  }
  .footer-nav {
    flex-direction:column;
    align-items:flex-start;
    gap:0.75rem;
  }
}

/* ── VIEWPORT HEIGHT FIX (dvh fallback) ─────────────────────────────────── */
@supports (height: 100dvh) {
  .hero { min-height:88dvh; }
}
@media(max-width:768px) {
  @supports (height: 100dvh) {
    .hero { min-height:80dvh; }
  }
}
@media(max-width:560px) {
  @supports (height: 100dvh) {
    .hero.index-hero { height:46dvh; min-height:280px; }
  }
}

/* ── REDUCED MOTION ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
  .hero-bg {
    animation:none !important;
  }
  .reveal {
    opacity:1 !important;
    transform:none !important;
  }
  #cursor-glow { display:none !important; }
  .hero::before { animation:none !important; }
}

/* ── PRINT OPTIMIZATION (bonus) ─────────────────────────────────────────── */
@media print {
  nav, .mobile-nav, .hamburger, #tmhg-progress, #cursor-glow,
  .hero-grid-overlay, .subtab-select-wrap {
    display:none !important;
  }
  body { background:white; color:black; }
  .card-expand, .lc-expand, .acc-body { display:block !important; }
  .nav-links a, .mobile-nav a, .footer-nav a {
    color:black !important;
  }
}
