/* ════════════════════════════════════════════════════════════════
   FOUNDATIONS FIRST ATHLETICS — DESIGN SYSTEM v2 ("Field Manual")
   Loaded after each page's legacy styles; later rules win ties.
   Typography: Fraunces (display) + Inter (body)
   Window system: Neural=Gold · Stabilization=Taupe · Force=Clay
   ════════════════════════════════════════════════════════════════ */

/* ─── TOKENS (override legacy values) ─── */
:root {
  /* surfaces */
  --cream:    #FAF7F0;
  --cream-2:  #F3EDE0;
  --white:    #FFFFFF;
  --black:    #1B1610;   /* legacy token name, warm ink value */
  --ink:      #1B1610;
  --ink-2:    #241E16;
  --ink-soft: #2E261C;

  /* brand gold */
  --gold:      #B8860B;
  --gold-deep: #8F6806;
  --gold-lt:   #EBDDB4;  /* legacy token name */
  --gold-tint: #F2E8CC;

  /* window system */
  --taupe:      #877B66;
  --taupe-deep: #5F5747;
  --taupe-tint: #E6E0D3;
  --clay:       #A2552F;
  --clay-deep:  #7E3F20;
  --clay-tint:  #EDD9CC;

  /* text */
  --text:   #2C2620;
  --gray:   #5F584C;     /* legacy token name, warmed */
  --muted:  #6C6457;
  --faint:  #968D7D;

  /* lines + shadow */
  --gray-lt:   #E8E1D2;  /* legacy token name, warmed */
  --line:      #E8E1D2;
  --line-soft: #EFE9DC;
  --line-dark: #352D22;
  --shadow-sm: 0 1px 2px rgba(43,34,21,0.05), 0 2px 8px rgba(43,34,21,0.05);
  --shadow-md: 0 2px 4px rgba(43,34,21,0.06), 0 12px 32px rgba(43,34,21,0.10);
  --shadow-lg: 0 4px 8px rgba(43,34,21,0.08), 0 24px 64px rgba(43,34,21,0.16);

  /* type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* active window accent (defaults to gold) */
  --w:      var(--gold);
  --w-deep: var(--gold-deep);
  --w-tint: var(--gold-tint);
}
body[data-window="neural"]  { --w: var(--gold);  --w-deep: var(--gold-deep);  --w-tint: var(--gold-tint); }
body[data-window="stab"]    { --w: var(--taupe); --w-deep: var(--taupe-deep); --w-tint: var(--taupe-tint); }
body[data-window="force"]   { --w: var(--clay);  --w-deep: var(--clay-deep);  --w-tint: var(--clay-tint); }

/* ─── BASE ─── */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold-tint); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
img { max-width: 100%; height: auto; }

/* ─── BRAND MARK: three windows, ascending ─── */
.ffa-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  flex-shrink: 0;
}
.ffa-mark i {
  display: block;
  width: 5px;
  border-radius: 3px 3px 1.5px 1.5px;
}
.ffa-mark i:nth-child(1) { height: 11px; background: var(--gold); }
.ffa-mark i:nth-child(2) { height: 15px; background: var(--taupe); }
.ffa-mark i:nth-child(3) { height: 20px; background: var(--clay); }
.ffa-mark--lg { height: 30px; gap: 4px; }
.ffa-mark--lg i { width: 7px; }
.ffa-mark--lg i:nth-child(1) { height: 17px; }
.ffa-mark--lg i:nth-child(2) { height: 23px; }
.ffa-mark--lg i:nth-child(3) { height: 30px; }

/* ─── AGE TRACK MOTIF (7 → 18) ─── */
.age-track { max-width: 460px; }
.age-track-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}
.age-track-bar i { display: block; height: 100%; border-radius: 2px; }
.age-track-bar i:nth-child(1) { flex: 5; background: var(--gold); }
.age-track-bar i:nth-child(2) { flex: 3; background: var(--taupe); }
.age-track-bar i:nth-child(3) { flex: 3; background: var(--clay); }
.age-track-labels {
  display: flex;
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
  font-family: var(--sans);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.age-track-labels span:nth-child(1) { flex: 5; }
.age-track-labels span:nth-child(2) { flex: 3; }
.age-track-labels span:nth-child(3) { flex: 3; text-align: left; }

/* ─── NAV: cream, hairline, blur ─── */
nav {
  background: rgba(250, 247, 240, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  height: 72px;
  padding: 0 48px;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-logo { flex-direction: row !important; align-items: center; gap: 12px !important; text-decoration: none; }
.nav-logo-wrap { display: flex; align-items: center; gap: 12px; }
.nav-logo-stack { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-top {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  font-weight: 600;
}
.nav-logo-main {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  font-weight: 600 !important;
  border-radius: 100px;
  padding: 9px 20px;
  font-size: 12px !important;
  letter-spacing: 0.08em;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.35);
}
.nav-hamburger span { background: var(--ink); }

/* mobile dropdown (homepage pattern) */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 64px; }
  .nav-links {
    top: 64px;
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a { color: var(--text); }
}
/* mobile menu (coaches/orgs pattern) */
.nav-mobile-menu { background: var(--cream); border-top: 1px solid var(--line); }
.nav-mobile-menu a { color: var(--text); border-bottom: 1px solid var(--line-soft); }

/* ─── TYPOGRAPHY SYSTEM ─── */
h1, h2, h3, .section-title, .tier-name, .window-name, .win-title, .format-name,
.lie-headline, .book-feature-title, .partner-strip-title, .org-card-title,
.eng-title, .who-title, .tool-title, .outcome-num, .game-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-label, .hero-eyebrow, .page-eyebrow, .section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before, .hero-eyebrow::before, .page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 10px;
  border-radius: 2px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 100% / 5px 6px no-repeat,
    linear-gradient(var(--taupe), var(--taupe)) 8px 100% / 5px 8px no-repeat,
    linear-gradient(var(--clay), var(--clay)) 16px 100% / 5px 10px no-repeat;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  color: var(--ink);
}
.section-body { font-size: 17px; line-height: 1.75; color: var(--muted); }
.gold-rule {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0 45%, var(--taupe) 45% 73%, var(--clay) 73% 100%);
}

/* dark sections: keep their label legible */
.windows-section .section-label, .qr-section .section-label { color: var(--gold-lt); }

/* ─── BUTTONS: one family ─── */
.btn-primary, .btn-gold, .form-submit, .upgrade-btn,
.tier-link.gold, .format-cta.primary {
  background: var(--gold);
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.07em;
  border-radius: 100px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary:hover, .btn-gold:hover, .form-submit:hover, .upgrade-btn:hover,
.tier-link.gold:hover, .format-cta.primary:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.38);
}
.btn-white {
  background: var(--cream);
  color: var(--ink);
  font-weight: 650;
  border-radius: 100px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-white:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.btn-ghost, .btn-outline, .tier-link.outline, .format-cta.secondary {
  border-radius: 100px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.btn-ghost:hover, .btn-outline:hover { transform: translateY(-2px); }
.btn-secondary {
  color: var(--muted);
  border-bottom-color: var(--line);
}
.btn-secondary:hover { color: var(--ink); border-bottom-color: var(--gold); }
.tier-cta, .age-cta, .drill-link, .format-cta { border-radius: 100px; font-weight: 600; }
.tier-cta:hover { background: var(--ink); color: var(--cream); }

/* ─── HOOK BAR: ink statement band ─── */
.hook-bar {
  background: var(--ink);
  border-top: 3px solid var(--gold);
  padding: 22px 48px;
}
.hook-bar p {
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 500;
}
.hook-bar em { color: var(--gold-lt); font-style: italic; font-weight: 600; }

/* ─── CARD FAMILY ─── */
.tier-card, .format-card, .free-card, .game-card, .lie-card, .tool-card,
.org-card, .eng-card, .who-card, .outcome-card, .price-card, .win-card,
.warmup-step, .why-stat, .book-feature, .info-box, .sidebar-card,
.coaching-cue-card, .prog-card, .window-context-card, .cta-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tier-card:hover, .format-card:hover, .free-card:hover, .game-card:hover,
.tool-card:hover, .org-card:hover, .eng-card:hover, .who-card:hover,
.price-card:hover, .win-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #DCD2BD;
}
.tier-card.featured { border: 1px solid var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-md); }
.price-card.featured, .format-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-md); }

/* check bullets → window mark */
.tier-features li::before { color: var(--gold); font-weight: 700; }

/* ─── HOMEPAGE WINDOW CARDS: color-coded system ─── */
.windows-grid {
  gap: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.window-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.window-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--wc, var(--gold));
}
.window-card:hover { transform: translateY(-4px); border-color: var(--wc, var(--gold)); }
.window-card.w-neural { --wc: var(--gold); }
.window-card.w-stab   { --wc: var(--taupe); }
.window-card.w-force  { --wc: var(--clay); }
.window-number { color: var(--wc, var(--gold)); font-weight: 650; letter-spacing: 0.2em; }
.window-age {
  display: inline-block;
  background: color-mix(in srgb, var(--wc, var(--gold)) 18%, transparent);
  color: var(--wc, var(--gold));
  border: 1px solid color-mix(in srgb, var(--wc, var(--gold)) 40%, transparent);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.window-focus-label { color: var(--wc, var(--gold)); }
.window-focus li::before { content: '·'; font-size: 22px; line-height: 0.6; color: var(--wc, var(--gold)); }
.window-desc { color: #A39A8B; }
.window-focus li { color: #968D7D; }

/* organizations win-cards get the same coding */
.win-card:nth-child(1) { border-top: 4px solid var(--gold); }
.win-card:nth-child(2), .win-card.mid { border-top: 4px solid var(--taupe); }
.win-card:nth-child(3) { border-top: 4px solid var(--clay); }
.win-card:nth-child(1) .win-num, .win-card:nth-child(1) .win-age { color: var(--gold-deep); }
.win-card:nth-child(2) .win-num, .win-card:nth-child(2) .win-age { color: var(--taupe-deep); }
.win-card:nth-child(3) .win-num, .win-card:nth-child(3) .win-age { color: var(--clay-deep); }

/* window landing pages + drill pages: accent follows body[data-window] */
.hero-age { color: var(--w-deep) !important; }
.drill-card { border-radius: var(--r-md); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.drill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.drill-cat { color: var(--w-deep); }
.window-badge, .category-badge { border-radius: 100px; }

/* ─── FORMS ─── */
.form-field input, .form-input, .form-select, .form-textarea, .email-form input {
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: var(--sans);
}
.form-field input:focus, .form-input:focus, .form-select:focus, .form-textarea:focus, .email-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
  outline: none;
}
.form-label, .form-field label { font-weight: 600; color: var(--gray); }

/* ─── PULL QUOTES / BLOCKQUOTES ─── */
blockquote {
  border-left: 3px solid var(--w, var(--gold));
  background: var(--white);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}
.footer-brand-top { color: var(--gold-lt); letter-spacing: 0.22em; font-weight: 600; }
.footer-brand-name { font-family: var(--serif); font-weight: 600; }
.footer-col h5 { color: var(--faint); letter-spacing: 0.2em; font-weight: 650; }
.footer-col a { color: #9A9183; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-brand-desc { color: #8A8174; }
.footer-bottom { border-top-color: var(--line-dark); }
.footer-bottom p { color: #6E6759; }

/* ─── FINAL CTA: ink statement ─── */
.final-cta {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0 45%, var(--taupe) 45% 73%, var(--clay) 73% 100%);
}
.final-cta h2 { color: var(--cream); font-weight: 600; }
.final-cta p { color: #A39A8B; }
.final-cta .btn-gold, .final-cta .btn-white { margin: 0 8px; }

/* cta-bar (interior pages) */
.cta-bar { background: var(--ink); position: relative; }
.cta-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0 45%, var(--taupe) 45% 73%, var(--clay) 73% 100%);
}
.cta-bar h2 { color: var(--cream); }

/* ─── LIBRARY ─── */
/* library window tabs keep their native gold-underline active state */
.window-tab { transition: border-color 0.18s ease; }
.meta-pill, .drill-level, .drill-category-tag, .level-badge { border-radius: 100px; }
.drill-thumb { border-radius: var(--r-md); overflow: hidden; }

/* ─── DRILL PAGES ─── */
.breadcrumb-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.drill-header { background: var(--ink); }
.video-player, .video-thumb { border-radius: var(--r-md); overflow: hidden; }
.step-num { background: var(--w); color: var(--ink); font-weight: 700; border-radius: 100px; }
.play-btn-large, .play-btn { background: var(--gold); }
.play-btn-large:hover { background: var(--gold-deep); }

/* ─── SCROLL REVEAL ─── */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .rv.in { opacity: 1; transform: none; }
  .rv:nth-child(2) { transition-delay: 0.07s; }
  .rv:nth-child(3) { transition-delay: 0.14s; }
  .rv:nth-child(4) { transition-delay: 0.21s; }
}

/* ─── RESPONSIVE POLISH ─── */
@media (max-width: 768px) {
  .section-title { font-size: clamp(24px, 6.4vw, 32px); }
  .hook-bar { padding: 18px 20px; }
  .windows-grid { gap: 14px; }
  .final-cta .btn-gold, .final-cta .btn-white { margin: 0; }
}

/* ─── PAGES WITHOUT HAMBURGER: wrap nav gracefully on mobile ─── */
@media (max-width: 768px) {
  nav.no-burger { height: auto; min-height: 60px; flex-wrap: wrap; padding: 12px 20px; row-gap: 6px; }
  nav.no-burger .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    padding: 4px 0 6px;
    scrollbar-width: none;
  }
  nav.no-burger .nav-links::-webkit-scrollbar { display: none; }
  nav.no-burger .nav-links a { font-size: 12.5px; white-space: nowrap; display: inline-block; padding: 0; }
  nav.no-burger .nav-links li { border: none; }
  nav.no-burger .nav-cta { padding: 7px 16px; margin: 0; }
}

body > .hero h1 { font-weight: 600; letter-spacing: -0.015em; }

/* ═══ CREAM CONVERSION: interior heroes match the homepage palette ═══ */
.hero, .hero-wrap, .page-hero, .drill-header, .qr-landing-hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(184, 134, 11, 0.07), transparent 60%),
    var(--cream);
}
.page-hero { border-bottom: 1px solid var(--line); }
.hero h1, .hero-wrap .hero h1, .page-hero h1, .drill-header h1 { color: var(--ink); }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub, .hero-sub2, .page-hero-sub, .drill-header-sub { color: var(--muted); }
.hero .hero-eyebrow, .hero-wrap .hero-eyebrow, .page-eyebrow { color: var(--gold-deep); }
.hero .btn-secondary { color: var(--muted); border-bottom-color: var(--line); }
.hero .btn-secondary:hover { color: var(--ink); border-bottom-color: var(--gold); }
.hero .btn-ghost, .hero-wrap .btn-ghost {
  color: var(--ink-soft);
  border: 1px solid #D8CFBC;
  background: transparent;
}
.hero .btn-ghost:hover, .hero-wrap .btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); background: transparent; }
.launch-badge {
  background: var(--gold-tint);
  border: 1px solid #E2CF9C;
  color: var(--gold-deep);
  border-radius: 100px;
}

/* library index hero counts on cream */
.hero-count-num { color: var(--ink); font-family: var(--serif); font-weight: 600; }
.hero-count-label { color: var(--faint); }

/* drill page header on cream */
.drill-header h1 { color: var(--ink); }
.window-badge {
  background: var(--w-tint);
  color: var(--w-deep);
  border: 1px solid transparent;
}
.category-badge { color: var(--muted); border: 1px solid var(--line); background: var(--white); }
.drill-stat-row { border-top: 1px solid var(--line); }
.drill-stat { border-right: 1px solid var(--line); }
.drill-stat-label { color: var(--faint); }
.drill-stat-value { color: var(--ink); }
.drill-meta-row { color: var(--muted); }
.breadcrumb-sep { color: #C9C0AE; }
.breadcrumb .current { color: var(--ink); }
.breadcrumb a:hover { color: var(--ink); }

/* tables (warm-up page) */
.drill-table { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.drill-table th { background: var(--ink); color: var(--cream); font-family: var(--sans); letter-spacing: 0.08em; }

/* hero on home keeps ink text (override interior rule) */
.hero-content .hero-eyebrow { color: var(--gold-deep); }

/* ─── NAV: unified active state + global mobile dropdown ─── */
.nav-links a.active {
  color: var(--gold-deep);
  font-weight: 600;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 20px;
    gap: 0;
    z-index: 99;
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    overflow: visible;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 15px 24px; font-size: 15px; white-space: normal; }
  .nav-links a.active { background: var(--gold-tint); color: var(--gold-deep); }
  .nav-links .nav-cta { display: inline-block; margin: 14px 24px 4px; padding: 12px 24px; text-align: center; }
  .nav-hamburger { display: flex !important; }
}

/* ─── HAMBURGER: global base (pages that never styled it) ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── DRILL LIBRARY: compact hero, aligned sticky bar, coded tabs ─── */
.page-hero { padding: 36px 48px 30px; }
.page-eyebrow { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 10px; }
.page-hero-sub { font-size: 15px; line-height: 1.65; }
.hero-count-num { font-size: 30px; }

/* sticky bar sits flush under the 72px nav (64px on phones) */
.filter-bar { top: 72px; }

/* dividers out, breathing room + window-coded active states in */
.tab-divider { display: none; }
.window-tabs { gap: 10px; }
.window-tab-name { white-space: nowrap; }
.window-tab { flex-shrink: 0; height: 76px; padding-top: 6px; gap: 3px; }
.window-tab-label, .window-tab-name, .window-tab-age { line-height: 1.25; display: block; }
.window-tab:nth-of-type(1).active { border-color: var(--gold); }
.window-tab:nth-of-type(1).active .window-tab-label,
.window-tab:nth-of-type(1).active .window-tab-age { color: var(--gold-deep); }
.window-tab:nth-of-type(2).active { border-color: var(--taupe); }
.window-tab:nth-of-type(2).active .window-tab-label,
.window-tab:nth-of-type(2).active .window-tab-age { color: var(--taupe-deep); }
.window-tab:nth-of-type(3).active { border-color: var(--clay); }
.window-tab:nth-of-type(3).active .window-tab-label,
.window-tab:nth-of-type(3).active .window-tab-age { color: var(--clay-deep); }

@media (max-width: 900px) {
  .filter-bar { top: 72px; }
  .filter-bar-inner {
    padding: 0 16px;
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar-inner::-webkit-scrollbar { display: none; }
  .window-tab { padding: 0 16px; }
  .window-tab-name { font-size: 14px; }
  .filter-right { display: none; }
  .page-hero { padding: 28px 20px 24px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 18px; }
  .hero-count-group { display: none; }
  .library-body { grid-template-columns: 1fr; padding: 28px 20px 64px; gap: 28px; }
  .lib-sidebar { position: static; }
}
@media (max-width: 768px) {
  .filter-bar { top: 64px; }
}
