/* ============================================================
   Learn Like Me — learnlikeme.org  (v3: warm light theme)
   Tokens sourced from the Learn Like Me Design System
   (Claude Design project 9d90691c): gold #e9a206, cream,
   yellow, indigo; News Cycle 700 headings + Catamaran body;
   flat color bands; 5px radius. Black is ink, not a surface.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --llm-gold-500: #e9a206;
  --llm-gold-600: #cf8f05;
  --llm-gold-700: #8a5e03; /* small gold text on white passes 4.5:1 */
  --llm-gold-300: #f4d27f;
  --llm-gold-100: #fdeecb;

  --llm-yellow: #ffe500;
  --llm-yellow-200: #fff59a;

  --llm-cream: #fff5bc;
  --llm-cream-100: #fffbe3;

  --llm-indigo: #3a2498;
  --llm-indigo-600: #2e1c7a;
  --llm-indigo-100: #ece8fb;

  --llm-black: #000000;
  --llm-white: #ffffff;
  --llm-ink: #323335;
  --llm-ink-600: #5b5c5f;
  --llm-warm-050: #faf7ee;

  --llm-border: #c6c6c6;
  --llm-hairline: #e6e6e6;
  --llm-danger: #eb3d41;
  --llm-focus: #004ced;

  --font-display: 'News Cycle', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Catamaran', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-display: clamp(40px, 7vw, 64px);
  --fs-h1: clamp(34px, 5vw, 48px);
  --fs-h2: clamp(28px, 4vw, 36px);
  --fs-h3: 24px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 13px;

  --space-5: 20px;
  --space-15: 60px;
  --gutter: 20px;
  --section-y: clamp(60px, 9vw, 96px);
  --container-narrow: 900px;
  --container: 1280px;

  --radius-sm: 5px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 7px 11px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.22, 1);
  --dur-fast: 0.2s;

  --overlay-light: rgba(255, 255, 255, 0.8);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--llm-ink);
  background: var(--llm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--llm-black);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

a {
  color: var(--llm-indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--llm-gold-700); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--llm-gold-700);
  margin: 0 0 14px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--llm-black); color: var(--llm-white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Highlighter sweep (signature effect) ----------
   A teacher's-marker swipe of brand yellow behind key words and
   numbers, revealed on scroll. Text stays black on yellow. */
.hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.06em -0.14em -0.02em -0.1em;
  background: var(--llm-yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease) 0.2s;
}
.hl.is-lit::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .hl::before { transform: scaleX(1); transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--llm-gold-500); color: var(--llm-black); }
.btn--primary:hover { background: var(--llm-yellow); color: var(--llm-black); box-shadow: var(--shadow-sm); }
.btn--white { background: var(--llm-white); color: var(--llm-black); }
.btn--white:hover { background: var(--llm-cream-100); color: var(--llm-black); box-shadow: var(--shadow-sm); }
.btn--outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn--outline:hover { background: rgba(0, 0, 0, 0.08); color: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--llm-black);
  display: flex; align-items: center; gap: 10px;
}
.nav__brand img { width: 34px; height: 34px; border-radius: 3px; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--llm-black);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--llm-gold-500); color: var(--llm-black); }
.nav__cta { margin-left: 4px; }
.nav__cta .btn { padding: 12px 22px; }

.nav.is-scrolled, .nav--solid { background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-sm); }

.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--llm-black); margin: 5px 0;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

@media (max-width: 820px) {
  .nav__toggle { display: block; position: relative; z-index: 60; }
  .nav__links {
    position: fixed; inset: 0;
    background: var(--llm-gold-500);
    flex-direction: column; justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 24px; color: var(--llm-black); }
  .nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--llm-black); color: var(--llm-black); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (frosty cover — the brand's signature look) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--llm-ink);
  text-align: center;
  isolation: isolate;
}
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: var(--overlay-light); }
.hero__content {
  width: 100%;
  padding: 120px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title { font-size: var(--fs-display); color: var(--llm-black); margin-bottom: 20px; }
.hero__sub { max-width: 52ch; font-size: var(--fs-body-lg); margin: 0 auto 28px; color: var(--llm-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero--page { min-height: 62svh; }

/* staged entrance, once, on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: hero-rise 0.7s var(--ease) both; }
  .hero__content > :nth-child(1) { animation-delay: 0.05s; }
  .hero__content > :nth-child(2) { animation-delay: 0.18s; }
  .hero__content > :nth-child(3) { animation-delay: 0.32s; }
  .hero__content > :nth-child(4) { animation-delay: 0.46s; }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 12px;
  line-height: 0;
}
.hero__scroll svg { display: block; }
.hero__scroll polygon { fill: var(--llm-ink); transition: fill var(--dur-fast) var(--ease); }
.hero__scroll:hover polygon { fill: var(--llm-gold-700); }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll { animation: hero-nudge 2.4s var(--ease) infinite; }
  @keyframes hero-nudge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
  }
}

/* ---------- Sections / bands ---------- */
.band { padding: var(--section-y) 0; }
.band--cream { background: var(--llm-cream); }
.band--cream-100 { background: var(--llm-cream-100); }
.band--warm { background: var(--llm-warm-050); }
.band--gold { background: var(--llm-gold-500); color: var(--llm-black); }
.band--gold h2, .band--gold h3 { color: var(--llm-black); }
.band--gold a:not(.btn) { color: var(--llm-black); }
.band--gold a:not(.btn):hover { color: var(--llm-white); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- The funnel (signature) — warm light narrative ---------- */
.funnel { background: var(--llm-warm-050); position: relative; }

.funnel__crumb {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--llm-hairline);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.funnel__crumb ol {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 14px var(--gutter);
  max-width: var(--container);
  white-space: nowrap;
}
.funnel__crumb li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--llm-ink-600);
  padding: 2px 6px;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.funnel__crumb li::after { content: "\2192"; margin-left: 10px; color: var(--llm-border); }
.funnel__crumb li:last-child::after { content: none; }
.funnel__crumb li.is-active { color: var(--llm-black); background: var(--llm-yellow); }
.funnel__crumb li.is-passed { color: var(--llm-black); }

/* gold progress line under the crumb, driven by scroll */
.funnel__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--llm-gold-500);
}

.funnel__panel {
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--llm-hairline);
}
.funnel__panel .container { width: 100%; }
.funnel__panel:nth-of-type(odd) { background: var(--llm-white); }

.funnel__place {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--llm-gold-700);
  margin-bottom: 22px;
}
.funnel__stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 13vw, 150px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--llm-black);
  margin: 0 0 30px;
}
/* display-size marks: tuck the yellow to the glyphs, not the tall line box */
.funnel__stat .hl::before { inset: 0.16em -0.12em 0.1em -0.08em; }
.funnel__claim {
  position: relative;
  z-index: 1;
  font-size: clamp(19px, 2.4vw, 24px);
  max-width: 32ch;
  line-height: 1.4;
  color: var(--llm-ink);
  margin: 0 0 16px;
  font-weight: 400;
}
.funnel__source { position: relative; z-index: 1; font-size: var(--fs-small); color: var(--llm-ink-600); max-width: 60ch; }

/* intro hook panel: the question, before the numbers */
.funnel__panel--question { background: var(--llm-cream); border-bottom-color: rgba(0, 0, 0, 0.06); }
.funnel__panel--question .funnel__question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6.5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--llm-black);
  max-width: 16ch;
  margin: 0 0 20px;
}
.funnel__panel--question p:not(.funnel__question) {
  color: var(--llm-ink);
  font-size: var(--fs-body-lg);
  max-width: 50ch;
}

/* pivot: the panel where the problem becomes the answer */
.funnel__panel--pivot { background: var(--llm-gold-500); border-bottom: 0; color: var(--llm-black); }
.funnel__panel--pivot .funnel__place { color: rgba(0, 0, 0, 0.65); }
.funnel__panel--pivot h2 {
  font-size: clamp(36px, 6vw, 64px);
  color: var(--llm-black);
  max-width: 18ch;
  margin-bottom: 18px;
}
.funnel__panel--pivot p { color: rgba(0, 0, 0, 0.82); font-size: clamp(18px, 2.2vw, 22px); max-width: 46ch; }
.funnel__panel--pivot a:not(.btn) { color: var(--llm-black); }

/* ---------- Impact stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.stat {
  border-top: 3px solid var(--llm-gold-500);
  padding-top: 18px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  color: var(--llm-black);
  display: block;
  margin-bottom: 6px;
}
.stat__label { font-size: var(--fs-body); color: var(--llm-ink-600); margin: 0; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tiles / cards ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.tile {
  background: var(--llm-cream);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.tile--white { background: var(--llm-white); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } }
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.tile:hover .tile__img img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .tile:hover .tile__img img { transform: none; } }
.tile__body { padding: 24px; }
.tile__body h3 { margin-bottom: 8px; }
.tile__body p { margin: 0; font-size: var(--fs-body); }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.split__img img { width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Quote / thank-you card feature ---------- */
.lovequote__letters {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--llm-black);
  margin: 0 0 18px;
}
.lovequote__letters .hl::before { inset: 0.14em -0.08em 0.02em; }
blockquote {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.45;
  color: var(--llm-black);
}
blockquote footer { font-size: var(--fs-body); color: var(--llm-ink-600); margin-top: 14px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.gallery-grid > * { overflow: hidden; background: var(--llm-cream); }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.gallery-grid img:hover { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery-grid img:hover { transform: none; } }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Values list ---------- */
.values {
  display: flex; flex-wrap: wrap; gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.values li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  background: var(--llm-cream);
  padding: 12px 22px;
}
.band--cream .values li { background: var(--llm-white); }

/* ---------- Sources / citations ---------- */
.sources { font-size: var(--fs-small); color: var(--llm-ink-600); }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 10px; }
.cite-mark { font-size: 0.65em; vertical-align: super; }

article.prose { max-width: 70ch; }
article.prose h2 { margin-top: 1.8em; }
article.prose h3 { margin-top: 1.4em; }
.prose .statline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--llm-black);
  margin: 1.2em 0 0.4em;
}
.prose .statline .hl::before { transform: scaleX(1); transition: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .hero__actions { justify-content: center; margin-top: 26px; }

/* ---------- Footer (gold band, like the original site) ---------- */
.footer { background: var(--llm-gold-500); color: var(--llm-black); padding: 56px 0 32px; }
.footer a { color: var(--llm-black); }
.footer a:hover { color: var(--llm-white); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 44px; height: 44px; border-radius: 3px; background: var(--llm-white); padding: 3px; }
.footer__brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--llm-black);
}
.footer h3 { color: var(--llm-black); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { text-decoration: none; font-size: var(--fs-body); }
.footer li a:hover { text-decoration: underline; }
.footer__legal {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 24px;
  font-size: var(--fs-small);
  color: rgba(0, 0, 0, 0.75);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
