/* ============================================================
   QUADRIVIUM DESIGN SYSTEM — bobbyalexis.com
   Consolidated into a single file (tokens + layout/components)
   to avoid an @import chain and keep this render-fast — the
   whole point of moving off the Tailwind CDN. Source design
   system: tokens/*.css + styles.css + bobbyalexis-site/site.css.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Hanken+Grotesk:wght@300;400;500;600;700&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

/* ---------- Color tokens ---------- */
:root {
  /* --- Ink (near-black navy foundation) --- */
  --ink-950: #06090F;
  --ink-900: #0A0E18;
  --ink-850: #0E1322;
  --ink-800: #131A2C;
  --ink-700: #1C2540;
  --ink-600: #2A3552;

  /* --- Ivory / parchment (warm light neutral) --- */
  --ivory-50:  #FBF8F1;
  --ivory-100: #F5F0E5;
  --ivory-200: #ECE5D6;
  --ivory-300: #DED4BF;

  /* --- Slate / stone (cool structural gray) --- */
  --slate-100: #E3E5EA;
  --slate-200: #C7CBD4;
  --slate-300: #A4AAB8;
  --slate-400: #7C8395;
  --slate-500: #5C6376;
  --slate-600: #434A5C;
  --slate-700: #2E3445;

  /* --- Brass / gold (precision accent) --- */
  --brass-200: #E7D4A8;
  --brass-300: #D8BE86;
  --brass-400: #C6A562;
  --brass-500: #B4914E;   /* primary accent */
  --brass-600: #97773A;
  --brass-700: #74592A;

  /* --- Four pillar hues (muted, celestial) --- */
  --arithmetic: #B4914E;
  --arithmetic-soft: #E9DCC0;
  --geometry:   #3C5C84;
  --geometry-soft: #CCD8E6;
  --music:      #A2583A;
  --music-soft: #ECD3C7;
  --cosmology:  #574B7C;
  --cosmology-soft: #D7D1E4;

  /* --- Status --- */
  --success: #4E7A56;
  --warning: #B4914E;
  --danger:  #9E3D3D;

  /* ===== Semantic aliases — light surface (default) ===== */
  --bg:            var(--ivory-100);
  --surface:       var(--ivory-50);
  --surface-card:  #FFFFFF;
  --surface-sunken:var(--ivory-200);
  --border:        var(--ivory-300);
  --border-strong: var(--slate-300);
  --hairline:      rgba(10, 14, 24, 0.10);

  --text-strong:   var(--ink-900);
  --text-body:     var(--slate-700);
  --text-muted:    var(--slate-500);
  --text-faint:    var(--slate-400);
  --text-on-ink:   var(--ivory-100);
  --text-on-brass: var(--ink-900);

  --accent:        var(--brass-500);
  --accent-hover:  var(--brass-600);
  --accent-quiet:  var(--brass-200);
  --link:          var(--geometry);
  --focus-ring:    var(--brass-400);
}

.q-dark,
[data-theme="ink"] {
  --bg:            var(--ink-900);
  --surface:       var(--ink-850);
  --surface-card:  var(--ink-800);
  --surface-sunken:var(--ink-950);
  --border:        rgba(245, 240, 229, 0.10);
  --border-strong: rgba(245, 240, 229, 0.22);
  --hairline:      rgba(245, 240, 229, 0.08);

  --text-strong:   var(--ivory-50);
  --text-body:     var(--slate-200);
  --text-muted:    var(--slate-400);
  --text-faint:    var(--slate-500);

  --accent:        var(--brass-400);
  --accent-hover:  var(--brass-300);
  --accent-quiet:  rgba(180, 145, 78, 0.16);
  --link:          var(--brass-300);
}

/* ---------- Typography tokens ---------- */
:root {
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-sans:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Spline Sans Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --t-display-xl: 5.5rem;
  --t-display-l:  4rem;
  --t-display-m:  3rem;
  --t-display-s:  2.25rem;
  --t-heading:    1.5rem;
  --t-subhead:    1.25rem;
  --t-body-l:     1.125rem;
  --t-body:       1rem;
  --t-small:      0.875rem;
  --t-caption:    0.75rem;
  --t-micro:      0.6875rem;

  --lh-tight: 1.04;
  --lh-snug:  1.18;
  --lh-normal:1.5;
  --lh-relaxed:1.65;

  --ls-display: -0.02em;
  --ls-tight:  -0.01em;
  --ls-normal:  0;
  --ls-wide:    0.04em;
  --ls-eyebrow: 0.22em;
}

/* ---------- Spacing & layout tokens ---------- */
:root {
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container: 1200px;
  --container-narrow: 760px;
  --gutter: var(--space-5);
  --section-y: var(--space-10);

  --grid-cols: 12;
  --grid-gap: var(--space-5);
}

/* ---------- Effects tokens ---------- */
:root {
  --r-none: 0;
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  --bw-hair: 1px;
  --bw-rule: 1.5px;

  --shadow-xs: 0 1px 2px rgba(10, 14, 24, 0.06);
  --shadow-sm: 0 2px 6px rgba(10, 14, 24, 0.07);
  --shadow-md: 0 8px 24px -8px rgba(10, 14, 24, 0.16);
  --shadow-lg: 0 24px 60px -20px rgba(10, 14, 24, 0.28);
  --shadow-ring: 0 0 0 1px var(--hairline);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 360ms;

  --z-base: 0;
  --z-raised: 10;
  --z-overlay: 100;
  --z-modal: 1000;
}

/* ---------- Base element styling ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-quiet); color: var(--text-strong); }

img { max-width: 100%; display: block; }

.q-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.q-metric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.q-rule {
  border: 0;
  border-top: var(--bw-hair) solid var(--border);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============================================================
   Page layout + components (was bobbyalexis-site/site.css)
   ============================================================ */

.wrap       { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.wrap-md    { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow{ max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

.section    { padding: 104px 0; }
.section-sm { padding: 72px 0; }
@media (max-width: 860px) {
  .section    { padding: 72px 0; }
  .section-sm { padding: 52px 0; }
}

.bg-ink     { background: var(--ink-900); color: var(--slate-200); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--ivory-50); }
.bg-ivory-50  { background: var(--ivory-50); }
.bg-ivory-100 { background: var(--ivory-100); }
.bg-white     { background: #FFFFFF; }
.hairline-y   { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-overlay);
  background: rgba(10,14,24,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245,240,229,0.10);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px; height: 92px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 23px;
  letter-spacing: -0.005em; color: var(--ivory-50); text-decoration: none; flex: none; white-space: nowrap;
}
.nav-logo-mark { width: 75px; height: 75px; object-fit: contain; flex: none; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-sans); font-size: 14px; color: var(--slate-300); text-decoration: none;
  letter-spacing: 0.01em; transition: color var(--dur) var(--ease-out); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--ivory-50); }
.nav-drop { position: relative; }
.nav-drop-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 14px;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out); z-index: 60;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel,
.nav-drop.is-open .nav-drop-panel { opacity: 1; visibility: visible; }
/* Advisory trigger is a button (it chooses an audience, it does not navigate).
   Reset the UA button styles so it renders identically to the sibling nav links. */
.nav-drop-toggle {
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; font-size: 14px; line-height: inherit; cursor: pointer;
}
.nav-drop-inner {
  background: var(--ink-800); border: 1px solid rgba(245,240,229,0.14); border-radius: var(--r-md);
  padding: 6px; min-width: 190px; box-shadow: var(--shadow-lg);
}
.nav-drop-inner a {
  display: block; padding: 10px 14px; font-size: 13.5px; color: var(--slate-300); text-decoration: none;
  border-radius: var(--r-sm); white-space: nowrap; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav-drop-inner a:hover { background: rgba(245,240,229,0.07); color: var(--ivory-50); }
.nav-burger { display: none; background: none; border: none; color: var(--ivory-50); cursor: pointer; padding: 6px; }
.mobile-menu {
  display: none; position: fixed; top: 92px; left: 0; right: 0; background: var(--ink-900);
  border-bottom: 1px solid rgba(245,240,229,0.10); padding: 22px 24px 26px; z-index: 59;
  flex-direction: column; gap: 16px; max-height: calc(100vh - 92px); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-sans); font-size: 15px; color: var(--slate-200); text-decoration: none; }
.mobile-menu a.active { color: var(--brass-300); }
.mobile-sub { padding-left: 14px; display: flex; flex-direction: column; gap: 12px; margin-top: -4px; }
@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-burger { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans);
  font-weight: var(--fw-medium); letter-spacing: 0.01em; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn-lg { font-size: 15px; padding: 15px 30px; height: 54px; }
.btn-md { font-size: 14px; padding: 11px 22px; height: 44px; }
.btn-primary { background: var(--ink-900); color: var(--ivory-50); }
.btn-primary:hover { background: var(--ink-700); }
.btn-accent { background: var(--accent); color: var(--text-on-brass); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--slate-500); }
.btn-on-ink-secondary { background: transparent; color: var(--ivory-100); border-color: rgba(245,240,229,0.28); }
.btn-on-ink-secondary:hover { border-color: rgba(245,240,229,0.55); }
.btn-block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: var(--t-micro);
  font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted);
}
.eyebrow .idx { color: var(--accent); }
.eyebrow.on-ink { color: var(--brass-300); }
.eyebrow-rule { flex: 1; height: 1px; background: var(--border); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 28px; transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
a.card, a.card:hover { text-decoration: none; color: inherit; }
.card.hoverable:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.card-top-edge { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-featured { border: 1.5px solid var(--brass-400); }
.card-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 10px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink-900); margin: 0 0 10px; line-height: 1.32; }
.card-body { font-size: 14px; line-height: 1.62; color: var(--text-body); margin: 0; }
.card-link { display: inline-block; margin-top: 14px; font-family: var(--font-sans); font-size: 13.5px; color: var(--link); font-weight: 500; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Pull-quote / callout ---------- */
.pull-quote, .callout {
  border-left: 3px solid var(--accent); background: var(--ivory-100); padding: 20px 28px;
  border-radius: 0 var(--r-md) var(--r-md) 0; margin: 28px 0;
}
.pull-quote p, .callout p {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.5;
  color: var(--ink-900); margin: 0;
}

/* ---------- Prose (article body) ---------- */
.prose { font-size: 17px; line-height: 1.75; color: var(--text-body); }
.prose p { margin: 0 0 24px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--ink-900); margin: 48px 0 16px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--ink-900); margin: 32px 0 12px; }
.prose a { color: var(--link); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink-900); font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  height: 46px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 14px;
  font-family: var(--font-sans); font-size: 15px; color: var(--ink-900); background: #fff; width: 100%;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-quiet);
}

/* ---------- Logo strip ---------- */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 28px; align-items: center; justify-items: center; }
.logo-strip img { max-height: 58px; max-width: 163px; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: opacity var(--dur) var(--ease-out), filter var(--dur) var(--ease-out); }
.logo-strip img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 860px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Metrics / stats ---------- */
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric-value { font-family: var(--font-mono); font-weight: 500; font-size: 38px; letter-spacing: -0.01em; color: var(--ink-900); }
.metric-label { font-size: 13px; color: var(--text-muted); }
.metric.on-ink .metric-value { color: var(--brass-300); }
.metric.on-ink .metric-label { color: var(--slate-300); }

/* ---------- Numbered step ---------- */
.step { padding: 0 28px; border-left: 1px solid var(--border); }
.step:first-child { border-left: none; padding-left: 0; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-hover); letter-spacing: 0.16em; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink-900); margin: 14px 0 10px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--text-body); margin: 0; }
@media (max-width: 860px) {
  .step { border-left: none; padding: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .step:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Facts panel ---------- */
.facts-panel { background: var(--ivory-100); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.facts-panel h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 18px; }
.fact { margin-bottom: 16px; }
.fact:last-child { margin-bottom: 0; }
.fact .k { font-size: 13px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; }
.fact .v { font-size: 13.5px; color: var(--text-body); line-height: 1.5; }

/* ---------- Headshot frame ---------- */
.headshot { border-radius: var(--r-lg); overflow: hidden; background: var(--ivory-200); border: 1px solid var(--border); }
.headshot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Simple dot list (replaces emoji bullets) ---------- */
.dot-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dot-list li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.6; color: var(--text-body); }
.dot-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 7px; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); padding: 56px 0 36px; border-top: 1px solid rgba(245,240,229,0.10); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 18px; }
.footer-name-mark { height: 64px; width: auto; object-fit: contain; flex: none; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ivory-50); }
.footer-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-400); margin-top: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13.5px; color: var(--slate-300); text-decoration: none; }
.footer-links a:hover { color: var(--ivory-50); }
.footer-copy {
  max-width: var(--container); margin: 32px auto 0; padding: 20px 32px 0; border-top: 1px solid rgba(245,240,229,0.08);
  text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500);
}

/* ---------- Pillar accent icons ---------- */
.pillar-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-icon.geometry { color: var(--geometry); }
.pillar-icon.music { color: var(--music); }
.pillar-chip {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-md); flex: none;
}
.pillar-chip.geometry { background: var(--geometry-soft); }
.pillar-chip.music { background: var(--music-soft); }
.pillar-chip .pillar-icon { width: 24px; height: 24px; }

.pillar-icon-sm { width: 22px; height: 22px; flex: none; display: inline-flex; }
.pillar-icon-sm svg { width: 100%; height: 100%; }

/* ---------- Venture logos ---------- */
.venture-logo-link { display: inline-block; margin-bottom: 16px; }
.venture-logo {
  display: block; height: 34px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.6; transition: opacity var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
}
.venture-logo-link:hover .venture-logo { filter: grayscale(0); opacity: 1; }

/* ---------- Mobile: collapse remaining multi-column layouts + scale headline type ---------- */
@media (max-width: 860px) {
  /* A child with an explicit grid-column span (e.g. a "featured, full-width" card meant for
     desktop) forces an implicit second track, which pulls its auto-placed siblings back into
     a two-up layout even though the container itself collapses to a single 1fr column below. */
  .grid-2 > *, .grid-3 > *, .grid-4 > * { grid-column: auto !important; }

  /* Inline two/three-column layouts (hero, about-page sidebar, etc.) aren't reachable via a
     class selector -- collapse them by targeting the inline declaration directly. */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  h1 { font-size: clamp(28px, 8vw, 36px) !important; line-height: 1.15 !important; }
  h2 { font-size: clamp(22px, 6.5vw, 27px) !important; line-height: 1.2 !important; }
  h3 { font-size: clamp(18px, 5vw, 21px) !important; line-height: 1.25 !important; }

  /* Browse-in-any-order card sections (opt in via an extra .card-carousel class) become a
     horizontal swipeable row instead of a vertical stack, so scanning several short cards
     doesn't turn into a long scroll. Bleeds edge-to-edge (cancels .wrap's 32px padding) so
     the next card visibly peeks in from the right as a "swipe for more" affordance. */
  .card-carousel {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -32px;
    padding: 4px 32px 12px;
    scrollbar-width: none;
  }
  .card-carousel::-webkit-scrollbar { display: none; }
  .card-carousel > * { scroll-snap-align: start; flex: 0 0 84%; }
}

/* ---------- Scroll reveal ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in.js-fade.visible { animation: fadeInUp 0.7s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .fade-in.js-fade.visible { animation: none; }
}
