/* ============================================================
   Pickleball Breakdowns — v2 dark premium, per DESIGN.md
   ============================================================ */

/* ---------- Fonts (self-hosted Figtree) ---------- */
@font-face { font-family: 'Figtree'; src: url('../assets/fonts/figtree-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../assets/fonts/figtree-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../assets/fonts/figtree-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../assets/fonts/figtree-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../assets/fonts/figtree-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* ---------- Tokens (dark experiment — decision #31) ---------- */
:root {
  --bg: #060d15;             /* near-black with a navy cast — never pure black */
  --surface: #0b1723;        /* raised panels */
  --surface-2: #101f2e;      /* hover / nested panels */
  --text: #eef5fb;
  --muted: #8fa9bd;
  --accent: #4e9ad9;         /* Rally Blue — the single brand accent */
  --accent-soft: rgba(78, 154, 217, 0.14);
  --hairline: rgba(255, 255, 255, 0.08);

  --glow: 0 0 0 1px rgba(78, 154, 217, 0.12), 0 18px 60px rgba(3, 10, 18, 0.6);
  --glow-hover: 0 0 0 1px rgba(78, 154, 217, 0.35), 0 24px 70px rgba(3, 10, 18, 0.75);

  --radius-card: 20px;
  --radius-pill: 24px;

  --page-max: 1200px;
  --ease-weighted: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a { color: var(--accent); font-weight: 600; }
p a:hover, li a:hover { text-decoration: underline; }
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; }
.display { font-size: clamp(46px, 7.2vw, 82px); }
h2 { font-size: clamp(32px, 4.2vw, 46px); margin-bottom: 18px; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); opacity: 0.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  transition: box-shadow 0.35s var(--ease-weighted), transform 0.35s var(--ease-weighted), background 0.35s var(--ease-weighted);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(78, 154, 217, 0.25); }
.btn-primary:hover { box-shadow: 0 12px 44px rgba(78, 154, 217, 0.45); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--hairline); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(78, 154, 217, 0.4); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0.02em;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(78, 154, 217, 0.9); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 13, 21, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--page-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.3s var(--ease-weighted), color 0.3s var(--ease-weighted);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(78, 154, 217, 0.35); }
.nav-links a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(78, 154, 217, 0.9); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

@media (max-width: 820px) {
  /* backdrop-filter turns .nav into a containing block for fixed descendants,
     which breaks .nav-links' viewport-relative inset below. Drop it here so
     the mobile menu positions against the real viewport. */
  .nav { backdrop-filter: none; background: var(--bg); }
  .nav-links {
    display: none;
    position: fixed; inset: 72px 0 0 0;
    background: var(--bg); flex-direction: column; justify-content: center; gap: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 22px; padding: 12px 24px; }
  .nav-burger { display: block; }
}

/* ---------- Hero v3 (Mariah-exact: stacked headline + socials left, giant circular portrait right) ---------- */
.hero .display.stacked { font-size: clamp(56px, 8.4vw, 108px); line-height: 0.98; letter-spacing: -0.03em; }
.hero .byline { margin: 26px 0 22px; font-size: 17px; font-weight: 600; color: var(--muted); }
.hero .byline b { color: var(--text); }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.social-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 10px 18px;
  font-size: 15px; font-weight: 600; color: var(--text);
  transition: border-color 0.35s var(--ease-weighted), transform 0.35s var(--ease-weighted);
}
.social-chip:hover { border-color: rgba(78, 154, 217, 0.5); transform: translateY(-2px); }
.social-chip .ic {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid rgba(78, 154, 217, 0.35);
  display: grid; place-items: center; color: var(--accent); font-size: 11px; font-weight: 700;
}
.social-chip .odometer { font-weight: 800; color: var(--accent); }
.social-chip small { color: var(--muted); font-weight: 500; }
.hero-photo.circle { display: grid; place-items: center; }
.hero-photo.circle::before {
  content: ''; position: absolute; width: 108%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(78, 154, 217, 0.22) 0%, rgba(78, 154, 217, 0.05) 55%, transparent 70%);
  border: 1px solid rgba(78, 154, 217, 0.25);
}
.hero-photo.circle img {
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
  width: min(100%, 560px);
  box-shadow: 0 0 0 10px rgba(78, 154, 217, 0.12), 0 0 0 1px rgba(78, 154, 217, 0.4), 0 30px 80px rgba(3, 10, 18, 0.7);
}

/* ---------- Split video (championship point beside "I'm Ryan") ---------- */
.split-video .motion-frame { padding: 16px; }
.split-video .motion-frame video {
  border-radius: 12px;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 560px;
}

/* ---------- Social prompt section (Mariah's "free tips every day") ---------- */
.social-section { text-align: center; padding: 96px 0; }
.social-section h2 { font-size: clamp(34px, 5.4vw, 58px); }
.social-section .lede { margin: 18px auto 0; }
.social-section .footer-social { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }

/* ---------- Minimal one-line footer (Mariah-style) ---------- */
.footer-min {
  border-top: 1px solid var(--hairline);
  padding: 26px 0;
}
.footer-min .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.footer-min a { color: var(--muted); font-weight: 600; }
.footer-min a:hover { color: var(--text); }

/* ---------- Newsletter issue cards (interactive) ---------- */
.issue-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 820px) { .issue-cards { grid-template-columns: 1fr; } }
.issue-card {
  position: relative; overflow: hidden;
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 34px 30px;
  transition: transform 0.45s var(--ease-weighted), border-color 0.45s var(--ease-weighted), box-shadow 0.45s var(--ease-weighted);
}
.issue-card:hover { transform: translateY(-6px); border-color: rgba(78, 154, 217, 0.5); box-shadow: var(--glow-hover); }
.issue-card .num {
  font-size: 54px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1; margin-bottom: 18px;
}
.issue-card h3 { margin-bottom: 8px; }
.issue-card p { color: var(--muted); font-size: 15px; }

/* ---------- Hero (Mariah structure: copy left, big photo right) ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(820px 540px at 84% 0%, rgba(78, 154, 217, 0.16) 0%, rgba(78, 154, 217, 0) 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(78, 154, 217, 0.07) 0%, rgba(78, 154, 217, 0) 60%);
  pointer-events: none;
}
.hero-ghost {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-weight: 800; font-size: clamp(120px, 22vw, 300px); letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.022); white-space: nowrap;
  pointer-events: none; user-select: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 64px; align-items: center;
}
.hero h1 { margin: 4px 0 24px; }
.hero .underline {
  background-image: linear-gradient(to top, rgba(78, 154, 217, 0.55) 0.16em, transparent 0.16em);
}
.hero-quote {
  margin: 28px 0 32px; padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-size: 18px; font-weight: 500; font-style: italic; color: var(--muted);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-photo { position: relative; }
.hero-photo::before {
  content: ''; position: absolute; inset: -22px -22px auto auto;
  width: 60%; height: 60%;
  border: 1px solid rgba(78, 154, 217, 0.35); border-radius: var(--radius-card);
  pointer-events: none;
}
.hero-photo img {
  position: relative;
  width: 100%; border-radius: var(--radius-card);
  box-shadow: var(--glow);
  aspect-ratio: 3 / 4; object-fit: cover;
}
@media (max-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 440px; }
}

/* ---------- Proof bar (with animated counter) ---------- */
.proof { padding: 0 0 88px; }
.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.proof-item { padding: 40px 32px; }
.proof-item + .proof-item { border-left: 1px solid var(--hairline); }
.proof-num { font-size: clamp(36px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.proof-label { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
@media (max-width: 820px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item + .proof-item { border-left: none; border-top: 1px solid var(--hairline); }
}

/* rolling odometer (donor: 21st.dev animated-counter, translated to vanilla) */
.odometer { display: inline-flex; overflow: hidden; line-height: 1.06; }
.odometer .sep { height: 1.06em; display: block; }
.odometer .digit-col { position: relative; width: 0.62em; height: 1.06em; overflow: hidden; }
.odometer .digit-strip {
  position: absolute; inset: 0 auto auto 0; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 1.6s var(--ease-weighted);
  will-change: transform;
}
.odometer .digit-strip span { height: 1.06em; line-height: 1.06; display: block; }
.odometer .sep { width: 0.3em; }

/* ---------- Motion frame ---------- */
.motion-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--glow);
}
.motion-frame video { width: 100%; border-radius: 12px; }
.motion-caption {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease-weighted);
}
.motion-caption:hover { color: var(--accent); }

/* ---------- Guide cards ---------- */
.cards-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-row.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .card-row, .card-row.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .card-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; padding-bottom: 12px; margin: 0 -24px; padding-left: 24px; padding-right: 24px;
  }
  .card-row .guide-card { flex: 0 0 72%; scroll-snap-align: start; }
  /* Six-card row: static 2-row grid instead of a horizontal scroller */
  .card-row.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; }
  .card-row.six .guide-card { flex: none; }
}
.guide-card { display: block; }
.guide-cover {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 50px rgba(3, 10, 18, 0.55);
  transition: transform 0.5s var(--ease-weighted), box-shadow 0.5s var(--ease-weighted), border-color 0.5s var(--ease-weighted);
}
.guide-card:hover .guide-cover { transform: translateY(-8px); box-shadow: var(--glow-hover); border-color: rgba(78, 154, 217, 0.45); }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-weighted); }
.guide-card:hover .guide-cover img { transform: scale(1.04); }
.guide-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
}
.guide-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(6, 13, 21, 0.72); backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
  border-radius: 999px; padding: 5px 11px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text);
}
.guide-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(78, 154, 217, 0.9); }
.guide-bottom { display: flex; align-items: end; justify-content: flex-end; }
.play-glyph {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6, 13, 21, 0.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(78, 154, 217, 0.5);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease-weighted), background 0.4s var(--ease-weighted);
}
.guide-card:hover .play-glyph { transform: scale(1.12); background: var(--accent); }
.play-glyph::after {
  content: ''; display: block; margin-left: 3px;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #ffffff;
}
.guide-meta { padding: 16px 4px 0; }
.guide-meta .t { font-weight: 700; font-size: 16px; color: var(--text); }
.guide-meta .c { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-photo img { border-radius: var(--radius-card); box-shadow: var(--glow); width: 100%; border: 1px solid var(--hairline); }
.split-photo.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Testimonials (featured-first asymmetric, not three equal cards) ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.testi.featured { grid-column: 1 / -1; display: flex; align-items: center; gap: 36px; }
.testi.featured .featured-body { flex: 1 1 auto; }
.testi.featured p { font-size: clamp(19px, 2.4vw, 24px); max-width: 46ch; }
.testi.featured .featured-photo {
  flex: 0 0 auto; width: 200px; aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline);
}
.testi.featured .featured-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .testi-grid { grid-template-columns: 1fr; }
  .testi.featured { flex-direction: column-reverse; }
  .testi.featured .featured-photo { width: 100%; max-width: 260px; }
}
.testi {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: border-color 0.4s var(--ease-weighted), transform 0.4s var(--ease-weighted);
}
.testi:hover { border-color: rgba(78, 154, 217, 0.35); transform: translateY(-4px); }
.testi .avatar {
  display: block; width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; margin-bottom: 18px;
  border: 2px solid rgba(78, 154, 217, 0.4);
}
.testi .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testi .avatar img.zoom-face { transform: scale(1.9); object-position: center 22%; }
.testi p { font-size: 17px; font-weight: 500; line-height: 1.55; color: var(--text); }
.testi .who { margin-top: 16px; font-size: 14px; }
.testi .who b { font-weight: 700; color: var(--text); }
.testi .who span { color: var(--muted); font-weight: 400; }

/* ---------- Signup block ---------- */
.signup-block {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(36px, 5vw, 68px);
}
.signup-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px 320px at 90% 0%, rgba(78, 154, 217, 0.14) 0%, rgba(78, 154, 217, 0) 60%);
  pointer-events: none;
}
.signup-block > * { position: relative; }
.signup-form { display: flex; gap: 12px; margin-top: 30px; max-width: 540px; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 260px;
  font: inherit; font-size: 16px;
  padding: 14px 22px;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  background: var(--bg); color: var(--text);
}
.signup-form input::placeholder { color: var(--muted); }
.signup-form input:disabled, .signup-form .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.issue-list { list-style: none; margin: 26px 0 0; display: grid; gap: 15px; }
.issue-list li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; color: var(--muted); }
.issue-list li b { color: var(--text); }
.issue-list li::before {
  content: ''; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(78, 154, 217, 0.8); transform: translateY(-2px);
}
.issue-list.centered { justify-items: center; }
.issue-list.centered li { max-width: none; font-size: 19px; white-space: nowrap; }
@media (max-width: 700px) { .issue-list.centered li { white-space: normal; } }

/* ---------- Topic teaser cards (1 + 2 asymmetric, not three equal cards) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; text-align: center; }
.topic-grid .topic-card:first-child { grid-column: 1 / -1; }
.topic-grid p { max-width: 60ch; margin-left: auto; margin-right: auto; }
@media (max-width: 820px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 34px 30px;
  transition: border-color 0.4s var(--ease-weighted), transform 0.4s var(--ease-weighted);
}
.topic-card:hover { border-color: rgba(78, 154, 217, 0.35); transform: translateY(-4px); }
.topic-card h3 { margin-bottom: 10px; }
.topic-card p { color: var(--muted); font-size: 15px; }

/* ---------- Full-bleed photo band (About) ---------- */
.band { position: relative; }
.band img { width: 100%; height: min(74vh, 660px); object-fit: cover; }
.band-copy {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(6, 13, 21, 0.92) 0%, rgba(6, 13, 21, 0.55) 52%, rgba(6, 13, 21, 0.1) 80%);
  display: flex; align-items: center;
}
.band-copy .inner { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; width: 100%; }
.band-copy .text { max-width: 560px; }
.band-copy .text h2 { font-size: clamp(38px, 5.5vw, 62px); }
.band-copy .text p { margin-top: 14px; }
@media (max-width: 820px) {
  .band img { height: auto; min-height: 540px; }
  .band-copy { background: linear-gradient(to top, rgba(6, 13, 21, 0.95) 16%, rgba(6, 13, 21, 0.25) 70%); align-items: end; padding-bottom: 44px; }
}

/* ---------- Contact ---------- */
.contact-links { display: grid; gap: 16px; margin-top: 40px; max-width: 500px; }
.contact-links a {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 26px;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-card);
  font-weight: 600; font-size: 17px;
  transition: border-color 0.35s var(--ease-weighted), transform 0.35s var(--ease-weighted);
}
.contact-links a:hover { border-color: rgba(78, 154, 217, 0.45); transform: translateY(-3px); }
.contact-links .ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(78, 154, 217, 0.35);
  display: grid; place-items: center; color: var(--accent); font-size: 14px; font-weight: 700;
}
.contact-links small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 88px 0 44px; margin-top: 40px;
}
.footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 50% 0%, rgba(78, 154, 217, 0.1) 0%, rgba(78, 154, 217, 0) 60%);
  pointer-events: none;
}
.footer-cta { position: relative; text-align: center; }
.footer-cta h2 { font-size: clamp(34px, 5.4vw, 58px); }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); padding: 18px 36px;
  font-weight: 600; font-size: 18px; color: var(--text);
  transition: background 0.35s var(--ease-weighted), border-color 0.35s var(--ease-weighted);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-base {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 30px;
  border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--muted);
}
.footer-base a { color: var(--muted); font-weight: 600; transition: color 0.3s; }
.footer-base a:hover { color: var(--text); }

/* ---------- Blue page band (inner pages, Mariah-style) ---------- */
.page-band {
  background: #2f6fb3; /* championship-court blue, matches homepage hero */
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.page-band .eyebrow { color: #dcebf9; justify-content: center; }
.page-band .eyebrow::before { background: #dcebf9; }
.page-band h1 {
  font-size: clamp(42px, 6.4vw, 92px);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.02em;
  text-transform: uppercase; color: #fdfaf2;
  max-width: 18ch; margin: 0 auto;
}
.page-band .lede { color: #dcebf9; margin: 22px auto 0; }

/* ---------- Contact stack (Mariah-style centered blocks) ---------- */
.contact-stack { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-stack .block { padding: 34px 0; }
.contact-stack .block + .block { border-top: 1px solid var(--hairline); }
.contact-stack h3 { margin-bottom: 10px; }
.contact-stack p { color: var(--muted); font-size: 16px; }
.contact-stack a.big-link {
  display: inline-block; margin-top: 12px;
  color: var(--accent); font-weight: 700; font-size: 18px;
}
.contact-stack a.big-link:hover { text-decoration: underline; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 80px 0 44px; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 420px at 80% 0%, rgba(78, 154, 217, 0.12) 0%, rgba(78, 154, 217, 0) 60%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 62px); max-width: 20ch; margin: 4px 0 20px; }
/* in-page headline demoted to h2 when a .page-band holds the page's h1 */
.page-title { font-size: clamp(38px, 5.5vw, 62px); max-width: 20ch; margin: 4px 0 20px; line-height: 1.06; letter-spacing: -0.02em; }
.page-title .title-short { display: none; }
@media (max-width: 480px) {
  .page-title .title-full { display: none; }
  .page-title .title-short { display: inline; }
}

/* Newsletter headline: fit on one line at desktop, wrap normally on mobile */
.nl-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: none; }
@media (min-width: 640px) {
  .nl-title { flex-wrap: nowrap; font-size: clamp(30px, 4.4vw, 54px); }
  .nl-title .badge { white-space: nowrap; }
}

/* ============================================================
   Hero split — learnaiwithmariah exact layout, Ryan's colorway
   ============================================================ */
.hero-split{
  display:grid;grid-template-columns:1fr 1fr;
  min-height:calc(100vh - 72px);
}
.hs-left{
  background:#2f6fb3; /* championship-court blue */
  display:flex;align-items:center;
  padding:64px clamp(28px,4.5vw,72px);
}
.hs-inner{width:100%;max-width:640px}
.hs-eyebrow{
  font-size:13px;font-weight:700;letter-spacing:.22em;
  color:#eaf3fc;margin-bottom:22px;
}
.hs-title{
  font-size:clamp(58px,7.6vw,124px);
  font-weight:800;line-height:.95;letter-spacing:-.02em;
  text-transform:uppercase;color:#fdfaf2;
}
.hs-handle{
  display:flex;align-items:center;gap:12px;
  margin-top:34px;
  font-size:12px;font-weight:700;letter-spacing:.2em;color:#eaf3fc;
}
.hs-handle span{width:26px;height:1px;background:#eaf3fc;opacity:.8}
.hs-left .social-row{margin:20px 0 0}
.social-chip.hs-chip{
  background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.4);color:#fff;
}
.social-chip.hs-chip:hover{background:rgba(0,0,0,.32);border-color:#fff}
.social-chip.hs-chip .ic{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.45);color:#fff}
.social-chip.hs-chip .odometer{color:#fff}
.social-chip.hs-chip small{color:#dcebf9}
.hs-ctas{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px}
.btn.hs-btn-primary{
  background:#fdfaf2;color:#1d4f88;border-radius:6px;
  font-size:13px;font-weight:700;letter-spacing:.12em;padding:16px 26px;
}
.btn.hs-btn-primary:hover{box-shadow:0 14px 36px rgba(0,0,0,.3)}
.btn.hs-btn-ghost{
  background:transparent;color:#fdfaf2;border:1px solid rgba(255,255,255,.6);border-radius:6px;
  font-size:13px;font-weight:700;letter-spacing:.12em;padding:16px 26px;
}
.btn.hs-btn-ghost:hover{background:rgba(255,255,255,.12)}
.hs-caption{margin-top:14px;font-size:10px;font-weight:700;letter-spacing:.22em;color:#dcebf9}
.hs-right{position:relative;overflow:hidden}
.hs-right img{width:100%;height:100%;object-fit:cover;object-position:50% 18%}
@media (max-width:860px){
  .hero-split{grid-template-columns:1fr}
  .hs-right{min-height:58vh;order:-1}
}

/* Odometer alignment fix — exact 1em rhythm, vertically centered in chips */
.odometer{display:inline-flex;overflow:hidden;line-height:1;height:1em;align-items:flex-start;font-weight:800}
.odometer .digit-col{position:relative;width:.62em;height:1em;overflow:hidden}
.odometer .digit-strip span{display:block;height:1em;line-height:1}
.odometer .sep{width:.3em;height:1em;line-height:1;display:block}
.social-chip{align-items:center}
.odometer-wrap{display:inline-flex;align-items:center}

/* ============================================================
   21st.dev donor components, translated to vanilla per CLAUDE.md
   (skeleton: aurora background / shimmer button / border beam)
   ============================================================ */

/* Aurora hero glow — two slow-drifting blurred orbs behind the hero */
.hero::before { display: none; } /* replaced by aurora layers */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.35; will-change: transform;
}
.aurora i:nth-child(1) {
  width: 640px; height: 640px; right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(78,154,217,0.55), rgba(78,154,217,0) 65%);
  animation: aurora-a 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 480px; height: 480px; left: -160px; bottom: -220px;
  background: radial-gradient(circle, rgba(38,99,160,0.5), rgba(38,99,160,0) 65%);
  animation: aurora-b 28s ease-in-out infinite alternate;
}
@keyframes aurora-a { from { transform: translate(0,0) scale(1); } to { transform: translate(-120px,70px) scale(1.18); } }
@keyframes aurora-b { from { transform: translate(0,0) scale(1); } to { transform: translate(100px,-60px) scale(1.12); } }

/* Shimmer sweep on the primary button */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 60%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  transform: skewX(-18deg);
  animation: shimmer 3.2s var(--ease-weighted) infinite;
}
@keyframes shimmer { 0% { left: -80%; } 55% { left: 120%; } 100% { left: 120%; } }

/* Spotlight border — the ring of light on the card edge follows the cursor.
   --spot-x/--spot-y are set by main.js on pointermove; without them (touch,
   no-JS) the glow sits at the top of the card like a static highlight. */
.guide-cover::before {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 0%),
    rgba(255,255,255,0.9), rgba(78,154,217,0.85) 30%, transparent 68%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.guide-card:hover .guide-cover::before { opacity: 1; }

/* Page-band headline reveal — the title rises and sharpens on load */
@media (prefers-reduced-motion: no-preference) {
  .page-band h1 {
    animation: band-title 0.8s var(--ease-weighted) 0.05s both;
  }
  @keyframes band-title {
    from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: blur(0); }
  }
}

/* Hero portrait slow drift (Ken Burns) — the first screen breathes */
@media (prefers-reduced-motion: no-preference) {
  .hs-right img { animation: hero-drift 26s ease-in-out infinite alternate; }
  @keyframes hero-drift {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
  }
}

/* Carousel drag affordances */
.carousel { touch-action: pan-y; cursor: grab; }
.carousel:active { cursor: grabbing; }
.carousel img { user-select: none; -webkit-user-drag: none; }

/* About action-band parallax — photo scrolls slower than the page.
   CSS scroll-driven animation; browsers without support just get the static band. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band { overflow: hidden; }
    .band img {
      animation: band-parallax linear both;
      animation-timeline: view();
    }
    @keyframes band-parallax {
      from { transform: translateY(-7%) scale(1.15); }
      to { transform: translateY(7%) scale(1.15); }
    }
  }
}

/* Featured testimonial pointer tilt (transform set by main.js) */
.testi.featured { will-change: transform; }
.testi.featured:hover { transition: transform 0.08s linear; }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .btn-primary::after { animation: none; }
  .guide-card:hover .guide-cover::before { opacity: 0.6; }
}

/* ---------- JMU intro (centered above the carousel) ---------- */
.jmu-intro { text-align: center; max-width: 900px; margin: 0 auto; }
.jmu-intro .eyebrow { justify-content: center; }
.jmu-intro h2 { max-width: none; white-space: nowrap; }
.jmu-intro .lede { max-width: 56ch; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .jmu-intro h2 { white-space: normal; } }

/* ---------- JMU carousel (About) ---------- */
.carousel {
  position: relative; overflow: hidden;
  margin-top: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--glow);
}
.carousel-track {
  display: flex;
  transition: transform 0.7s var(--ease-weighted);
}
.carousel-slide { flex: 0 0 100%; aspect-ratio: 16 / 9; }
.carousel-slide img, .carousel-slide video {
  width: 100%; height: 100%; object-fit: cover;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6, 13, 21, 0.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(78, 154, 217, 0.5);
  color: var(--text); font-size: 26px; line-height: 1;
  display: grid; place-items: center; padding-bottom: 4px;
  cursor: pointer;
  transition: background 0.35s var(--ease-weighted), transform 0.35s var(--ease-weighted);
}
.carousel-arrow:hover { background: var(--accent); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
}
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s var(--ease-weighted), transform 0.3s var(--ease-weighted);
}
.carousel-dots button.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(78, 154, 217, 0.9);
  transform: scale(1.25);
}
@media (max-width: 560px) {
  .carousel-arrow { width: 38px; height: 38px; font-size: 21px; }
  .carousel-arrow.prev { left: 10px; }
  .carousel-arrow.next { right: 10px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease-weighted), transform 0.65s var(--ease-weighted); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .guide-cover, .guide-cover img, .btn, .contact-links a, .odometer .digit-strip { transition: none; }
}
