/* ============================================================
   SAT Lab — styles.css
   Collegiate Blue palette · Newsreader + Inter + JetBrains Mono
   ============================================================ */

:root {
  /* Collegiate Blue palette (locked) */
  --bg:        #f1ecdf;
  --card:      #faf6ec;
  --card-2:    #e2dcc9;
  --ink:       #0c2340;
  --ink-soft:  #26405e;
  --muted:     #7a8499;
  --rule:      rgba(0, 56, 147, 0.12);
  --primary:   #003893;
  --secondary: #c89a3c;

  --shadow:    0 1px 2px rgba(31, 42, 38, 0.04), 0 8px 24px rgba(31, 42, 38, 0.06);
  --shadow-lg: 0 2px 4px rgba(31, 42, 38, 0.04), 0 16px 48px rgba(31, 42, 38, 0.10);

  --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-card: 32px;
  --radius-pill: 999px;

  --section-px: 64px;
}

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

html { scroll-snap-type: y mandatory; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-snap-type: y mandatory;
}

/* While JS is loading fonts/images, hide body so the portrait doesn't flash in early.
   Once the load event fires, JS removes the class and the page appears all at once. */
html.js-loading body { visibility: hidden; }

main { display: block; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font: inherit; }

a { color: inherit; }

/* ============ SECTION SHELL ============ */

.snap-section {
  scroll-snap-align: start;
  min-height: 100vh;
  padding: clamp(20px, 3.4vh, 56px) var(--section-px) clamp(24px, 4.8vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.snap-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

/* Invisible alias anchor (e.g. #method) — resolves the hash without
   occupying layout. */
.section-anchor { display: block; height: 0; margin: 0; padding: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow--primary { color: var(--primary); }

/* ============ NAV — centered split ============ */

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4px 0 24px;
  position: relative;
}

.nav-wordmark {
  text-decoration: none;
  white-space: nowrap;
  display: block;
  line-height: 1;
}

.nav-wordmark-name {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.nav-wordmark-rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.nav-wordmark-rule {
  width: 32px;
  height: 1.5px;
  background: var(--primary);
  display: none;
}

.nav-wordmark-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta-pill {
  padding: 11px 20px;
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-radius: 0;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background .15s ease;
}
.nav-cta-pill:hover { background: var(--primary) !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-hamburger.is-open {
  transform: translateY(-50%);
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ HERO — full-bleed portrait + content card overlay ============ */

.section--hero {
  padding: clamp(16px, 2.4vh, 28px) var(--section-px) clamp(16px, 2.4vh, 28px);
  justify-content: flex-start;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.hero-stage {
  position: relative;
  /* Stage fills available vertical space, capped at design max.
     Uses dvh so mobile address-bar collapse doesn't pop the layout. */
  height: clamp(540px, calc(100dvh - 220px), 760px);
  margin-top: auto;
  margin-bottom: auto;
  flex-shrink: 0;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.hero-portrait-bleed {
  position: absolute;
  top: 0;
  left: 0;
  width: 52%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
}
.hero-portrait-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.hero-portrait-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero-card {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: clamp(540px, 46vw, 680px);
  background: var(--card);
  border-radius: 28px;
  padding: clamp(36px, 5.2vh, 56px);
  box-shadow: var(--shadow);
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero-headline em {
  font-style: italic;
  color: var(--ink);
}
.hero-headline-blue { color: var(--primary); }

.hero-lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: clamp(14px, 2.4vh, 22px);
}
.hero-lede-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hero-lede-link:hover { text-decoration: underline; }

.hero-stats {
  margin-top: clamp(20px, 3.5vh, 32px);
  padding: clamp(14px, 2.6vh, 24px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-stats--solo {
  grid-template-columns: 1fr;
}

.hero-stat-num {
  font-family: var(--display);
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-num--primary { color: var(--primary); }
.hero-stat-num--secondary { color: var(--secondary); }

.hero-stat-label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: clamp(18px, 3vh, 28px);
  flex-wrap: wrap;
}

.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn-primary {
  padding: 14px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-pill);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.22);
}
.btn-link {
  color: var(--primary);
}
.btn-link:hover {
  color: var(--ink);
}

/* ============ METHOD ============ */

.method-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vh, 64px);
}
.method-header .eyebrow { margin-bottom: 14px; display: block; }

.method-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 4.3vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.method-headline em {
  font-style: italic;
  color: var(--primary);
}

.method-sub {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* Method section — generous side gutters + vertical breathing room.
   Outer-card-to-viewport-edge gutter scales with vw so the proportion
   holds from 1100px to 27" iMacs. */
.section--method { --section-px: clamp(56px, 7vw, 140px); }
.section--method .snap-inner { max-width: 1400px; }
.section--method { padding-top: clamp(48px, 7vh, 96px); padding-bottom: clamp(48px, 7vh, 96px); }

.method-grid {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 1.8vw, 36px);
}

.method-step {
  flex: 1 1 0;
  min-width: 0;
}

.method-arrow {
  flex: 0 0 auto;
  width: 24px;
  align-self: center;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-arrow svg {
  width: 24px;
  height: 12px;
  display: block;
}

.method-step {
  background: var(--card);
  border-radius: 24px;
  padding: clamp(18px, 1.4vw, 24px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .25s ease,
              box-shadow .25s ease,
              transform .25s ease;
  cursor: default;
}

.method-step:hover {
  background: #fefcf6;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.method-img-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--card-2);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.method-step-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06),
              0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.method-step-badge-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
}

.method-step-badge-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-right: 2px;
}

.method-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.method-step-title {
  font-family: var(--display);
  font-size: clamp(20px, 1.85vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 4px;
  line-height: 1.1;
  color: var(--ink);
}

.method-step-num {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

.method-step-body {
  font-family: var(--sans);
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 10px 4px 4px;
  flex: 1;
}

/* ============ RESULTS ============ */

.results-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.results-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 32px);
  align-self: stretch;
}

.results-header-left { max-width: 620px; }

.results-header .eyebrow { margin-bottom: 10px; display: block; }

.results-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.results-headline em {
  font-style: italic;
  color: var(--primary);
}

.results-sub {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 320px;
  text-align: right;
}

/* Results — narrows the whole content composition so the chart, stats,
   and testimonials all pinch inward proportionally. */
.section--results { --section-px: clamp(48px, 5.4vw, 112px); }
.section--results { padding-top: clamp(40px, 6vh, 84px); padding-bottom: clamp(40px, 6vh, 84px); }
.section--results .snap-inner { max-width: clamp(960px, 86vw, 1140px); }

.results-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  max-width: 100%;
  margin: 0 auto clamp(16px, 3vh, 32px);
}

.results-stat-block { padding-right: 8px; }

.results-stat-kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.results-stat-hero {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 400;
  color: var(--primary);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.results-stat-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  max-width: 280px;
  line-height: 1.55;
}

.results-stat-source {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin: 18px 0 0;
  max-width: 280px;
  line-height: 1.5;
}

.results-stat-row {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.results-stat-cell-num {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.results-stat-cell-num-sm { font-size: 16px; }

.results-stat-cell-label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.chart-card {
  background: var(--card);
  border-radius: 18px;
  padding: clamp(14px, 2.2vh, 26px) 24px clamp(10px, 1.6vh, 18px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  /* Chart fills its grid cell; cap at 60vh so testimonials always fit too. */
  max-height: clamp(320px, 56vh, 540px);
}

/* Vector chart card — narrower than full width; header sits left. */
.chart-card--vector {
  background: var(--bg);
  padding: 0;
  overflow: hidden;
  max-height: none;
  aspect-ratio: 1080 / 500;
  width: 100%;
  align-self: center;
}
.chart-card--vector .chart-host {
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
}
.chart-card--vector .chart-host svg {
  width: 100%; height: 100%;
  display: block;
}
.chart-card .chart-host { flex: 1; min-height: 0; overflow: hidden; }
.chart-card .chart-host svg { max-height: 100%; height: 100%; }

.chart-host {
  width: 100%;
  display: block;
}

.chart-host svg { display: block; width: 100%; height: auto; }

/* Testimonials */
.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(6px, 1.2vh, 12px);
}

.testimonials-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

.testimonials-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}

.testimonials-viewport {
  width: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}
.testimonials-viewport::-webkit-scrollbar { display: none; }

.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 4px 0; /* breathing room for box-shadow inside the mask */
  will-change: scroll-position;
}

/* Margin-note testimonial card — left rail "+N points", quote right, crest in footer */
.t-card {
  flex-shrink: 0;
  cursor: pointer;
  width: 340px;
  /* Cap card height so one verbose testimonial can't stretch the
     whole row. Combined with line-clamp on .t-quote, every card
     occupies the same compact rectangle regardless of quote length. */
  max-height: clamp(220px, 28vh, 280px);
  background: var(--card);
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(12, 35, 64, 0.06),
              0 8px 24px rgba(12, 35, 64, 0.10);
  display: grid;
  grid-template-columns: 74px 1fr;
  overflow: hidden;
}

.t-rail {
  background: var(--bg);
  border-right: 1px solid var(--rule);
  padding: clamp(14px, 2.2vh, 22px) 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.t-rail-gain {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.t-rail-label {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.t-body {
  padding: clamp(10px, 1.7vh, 18px) 20px clamp(8px, 1.5vh, 16px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 12px);
  min-height: clamp(90px, 16vh, 200px);
  position: relative;
}

/* Lightweight sideways chevron, sitting at the bottom-right edge of the
   truncated quote — where the line-clamp ellipsis sits — to signal
   "more available, click to expand." No box, no background. */
.t-quote { position: relative; }
.t-expand {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity .15s ease, transform .15s ease;
  line-height: 1;
}
.t-card:hover .t-expand { opacity: 1; }
.t-expand:hover { transform: translateX(2px); opacity: 1; }
.t-expand:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

/* ============ TESTIMONIAL OVERLAY (full-quote panel) ============ */
.t-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
}
.t-overlay-backdrop.is-open { opacity: 1; }

.t-overlay-panel {
  position: relative;
  width: min(560px, 100%);
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 16px 64px rgba(12, 35, 64, 0.28),
              0 2px 6px rgba(12, 35, 64, 0.08);
  display: grid;
  grid-template-columns: 96px 1fr;
  overflow: hidden;
  transform: translateY(8px) scale(0.985);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.t-overlay-backdrop.is-open .t-overlay-panel { transform: none; }

.t-overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: rgba(12, 35, 64, 0.06);
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
  z-index: 2;
}
.t-overlay-close:hover { background: rgba(12, 35, 64, 0.14); }

.t-overlay-rail {
  background: var(--bg);
  border-right: 1px solid var(--rule);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.t-overlay-gain {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.t-overlay-rail-label {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.t-overlay-body {
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.t-overlay-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.t-overlay-attrib {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.t-overlay-badge {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.t-overlay-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.t-overlay-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.t-overlay-scores {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 540px) {
  .t-overlay-panel { grid-template-columns: 1fr; }
  .t-overlay-rail { flex-direction: row; padding: 16px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .t-overlay-body { padding: 20px 22px 22px; }
}

.t-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  /* Truncate at 4 lines max with an ellipsis. Cards stay uniform. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.t-attrib {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.t-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.25;
}

.t-crest { flex-shrink: 0; }

.t-badge {
  flex-shrink: 0;
  width: 56px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* ============ FAQ — outline rows + side help panel ============ */

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}

.faq-header > .eyebrow {
  margin-bottom: 14px;
  display: block;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.faq-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.faq-headline em {
  font-style: italic;
  color: var(--primary);
}

.faq-side {
  margin-top: 32px;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.faq-side-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.faq-side-msg {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.faq-side-msg em {
  font-style: italic;
}

.faq-side-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.faq-side-link:hover { color: var(--ink); }

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:first-child {
  border-top: 1px solid var(--ink);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.faq-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-top: 4px;
  flex-shrink: 0;
  width: 32px;
}

.faq-content {
  flex: 1;
  display: block;
}

.faq-q {
  display: block;
  flex: 1;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color .2s ease;
}

.faq-item.is-open .faq-q { color: var(--primary); }

.faq-answer {
  display: block;
  height: 0;
  overflow: hidden;
  transition: height .28s cubic-bezier(.4, 0, .2, 1);
}

.faq-answer-inner {
  padding: 0 0 22px 52px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.faq-chevron {
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform .25s ease, color .2s ease;
  color: var(--muted);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* ============ BOOK — letter on left, form on right ============ */

/* Centering: book-inner stays centered by .snap-section's flex centering.
   The © footer is absolutely positioned at the section bottom so it doesn't
   participate in the vertical-centering math. */
.section--book { position: relative; }
.book-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.book-letter {
  background: var(--card);
  border-radius: 24px;
  padding: 48px 52px;
  box-shadow: var(--shadow);
  position: relative;
}

.book-letter-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.book-letter-greeting {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}

.book-letter-body {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  margin: 16px 0 0;
}
.book-letter-body + .book-letter-body { margin-top: 14px; }

.book-letter-signature {
  margin-top: 32px;
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-size: 38px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  transform: rotate(-2deg);
  display: inline-block;
}

.book-letter-meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.book-form-wrap { padding-top: 4px; }

.book-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.book-headline em {
  font-style: italic;
  color: var(--primary);
}

.book-sub {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 14px 0 0;
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label { display: block; }

.form-label-text {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-label-opt {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  color: var(--muted);
}

.book-form input[type="text"],
.book-form input[type="tel"],
.book-form textarea {
  width: 100%;
  background: #ebe4d2;
  border: 1px solid var(--rule);
  border-radius: 10px;
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.book-form input[type="text"]:focus,
.book-form input[type="tel"]:focus,
.book-form textarea:focus {
  background: var(--card);
}

.book-form input::placeholder,
.book-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.book-form input:focus,
.book-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 56, 147, 0.15);
}

.book-form input.error {
  border-color: #b3261e;
}

.book-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: #b3261e;
  margin-top: 6px;
  min-height: 16px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-submit {
  margin-top: 4px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  align-self: flex-start;
}

.form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.22);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  min-height: 18px;
}

.form-status.success {
  color: var(--primary);
  font-weight: 500;
}

.form-status.error {
  color: #b3261e;
}

.hp { display: none; }

.book-footer {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  padding: 0;
  margin: 0;
}

/* ============ METHOD — 3-page snap-scroll skeleton (placeholders) ============ */

.section--method-page { --section-px: clamp(48px, 6vw, 112px); }
.section--method-page .snap-inner { max-width: 1100px; }
.section--method-map .snap-inner { max-width: 1480px; }
.section--method-page {
  padding-top: clamp(24px, 4vh, 56px);
  padding-bottom: clamp(24px, 4vh, 56px);
}

.method-page-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 36px);
  align-items: center;
  text-align: center;
  width: 100%;
}

.method-page-header { max-width: 880px; width: 100%; }

.method-page-header .eyebrow {
  margin-bottom: 14px;
  display: block;
}

.method-page-headline {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.method-page-tagline {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 880px;
  text-wrap: balance;
}

.method-page-tagline-accent {
  color: var(--primary);
  font-weight: 600;
}

.method-canvas {
  width: min(880px, 86vw);
  height: clamp(280px, 50vh, 520px);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.method-canvas-stub {
  border: 2px dashed rgba(12, 35, 64, 0.18);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 40px);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.method-canvas-stub-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.method-canvas-stub-detail {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 540px;
  line-height: 1.5;
}

.method-page-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
  max-width: 600px;
}

/* Subtle per-page tint differentiation so snap-scroll between pages is felt */
.section--method-live { background: rgba(226, 220, 201, 0.35); }

/* Page 2 — split layout (text left, landscape visual right) */
.method-page-inner--split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  text-align: left;
}
.method-page-inner--split .method-page-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: none;
}
.method-page-inner--split .method-page-headline { text-align: left; }
.method-page-inner--split .method-page-caption {
  text-align: left;
  max-width: 460px;
}

.method-canvas--landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Page 2 whiteboard image: matches the composite's native 3006×1784 aspect
   (≈1.685). The right side of the image holds the dark Zoom participant
   panel, kept empty for now and reserved for Phase 1 (student + Nathaniel
   tiles). Don't letterbox the FigJam UI chrome at top/bottom. */
.method-canvas--whiteboard {
  aspect-ratio: 3006 / 1784;
  padding: 0;
  overflow: hidden;
}
.method-canvas-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

/* Page 1 — wider canvas for granular comparison, two columns inside.
   The right-column constellation widget needs real room (1040×940 native),
   so we let this canvas grow significantly larger than other method pages. */
.method-canvas--map {
  width: 100%;
  max-width: min(1540px, 97vw);
  margin-left: auto;
  margin-right: auto;
  height: clamp(400px, 60vh, 660px);
  padding: 0;
}

.method-canvas-cols {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* "vs." divider — just the italic text floating between the two
   cards. No dashed bar; the open page-bg space between the cards is
   the divider. */
.method-canvas-cols::before { content: none; display: none; }
.method-canvas-cols::after {
  content: "vs.";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  line-height: 1;
  z-index: 3;
  transition: left 1.6s cubic-bezier(0.7, 0, 0.25, 1);
}

/* Wipe state — divider moves 7.5pp right of center (30% of the prior
   25pp displacement). Mine grows to 57.5%, theirs shrinks to 42.5%,
   line slides with the boundary on the same transition timing. */
.method-canvas-cols.is-split [data-side="theirs"] { width: 42.5%; }
.method-canvas-cols.is-split [data-side="mine"]   { width: 57.5%; }
.method-canvas-cols.is-split::before { left: 42.5%; }

.method-canvas-col {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 26px) clamp(20px, 2.4vw, 32px);
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  flex: 0 0 auto;
}
/* Fixed split — no animation. Mine column gets the larger share for the
   constellation widget; theirs stays narrow for the CB-style report. */
.method-canvas-col[data-side="theirs"] { width: 42.5%; }
.method-canvas-col[data-side="mine"]   { width: 57.5%; }
.method-canvas-cols::before { left: 42.5%; }
/* Keep the "vs." text glued to the same column boundary as the
   hairline above, otherwise the text drifts into the right widget. */
.method-canvas-cols::after        { left: 42.5%; }
.method-canvas-cols.is-split::after { left: 42.5%; }

.method-canvas-col-label {
  font-size: 11px;
  color: var(--muted);
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 8px;
  gap: 0;
  max-width: 100%;
}

/* Brand wordmarks — competitor names rendered in their brand colors with
   bold sans typography to evoke each company's identity (nominative fair
   use for comparative purposes). No actual logo marks. */
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.01em;
}
.brand--mine    { color: var(--ink);   text-transform: uppercase; letter-spacing: 0.16em; }
.brand--cb      { color: #0A2240;       text-transform: uppercase; letter-spacing: 0.06em; }
.brand--kaplan  { color: #E4002B;       text-transform: uppercase; letter-spacing: 0.06em; }
.brand--khan    { color: #14BF96; }
.brand--pr      { color: #FF6633; }
.brand-sep      { color: var(--muted); margin: 0 4px; font-size: 10px; }

/* Real SVG brand logos (sit inline with text wordmarks) */
.brand-logo {
  display: inline-block;
  height: 16px;
  width: auto;
  vertical-align: middle;
}
.brand--cb-logo     { height: 22px; }
.brand--kaplan-logo { height: 22px; }
.brand--khan-logo   { height: 18px; }
.brand--pr-logo     { height: 40px; }

/* Editorial caption sitting between a column's brand row and its artifact —
   reads as commentary on the artifact below, not a section header. */
.method-canvas-col-tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.35;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
  padding: 0 8px;
  flex: 0 0 auto;
}

.method-canvas-col-tagline em { font-style: italic; }

/* Constellation widget — designed at 1040×940 native; scales to fit the
   right column body via transform. Container reserves the scaled height. */
.method-canvas-col-body.method-canvas-col-body--constellation {
  /* Match base column body chrome (dashed border, rounded corners).
     Inner is solid white so the whole area inside the dashed line is
     one seamless surface with the widget. */
  padding: 0;
  background: #fff;
  overflow: hidden;
  display: block;
}
.constellation-scaler {
  --cw-w: 1040;
  --cw-h: 940;
  /* Scale factor computed from container width via CSS custom prop set by JS,
     with a CSS fallback that fits whichever dimension is more constraining. */
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.constellation-scaler #constellation-mount {
  width: 1040px;
  height: 940px;
  transform-origin: top left;
  /* JS sets transform: scale(...) below; CSS fallback uses container query */
}

/* When the brand row sits below the artifact, treat it as a citation footer:
   thin hairline above, slightly subdued so the artifact stays the hero. */
.method-canvas-col-label--source {
  padding-top: 10px;
  border-top: 1px solid rgba(12, 35, 64, 0.10);
  opacity: 0.78;
}

/* ============ CB-style score-report placeholder (theirs body) ============ */

.method-canvas-col-body--populated {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  display: block;
  padding: 0;
  text-align: left;
  min-height: 0;
  overflow: hidden;
}

/* College Board score-report mockup — fonts mirror the real CB digital
   score report (Roboto / Roboto Slab + Helvetica fallback). */
.cb-report {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 22px 28px 24px;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Centre the bars + logo block vertically inside the card so the
     logos sit just below the bars instead of pinned to the bottom. */
  justify-content: center;
  gap: 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cb-report > .cb-report-cols { flex: 0 0 auto; }

/* 2x2 logo grid pinned to the bottom of the cb-report card. These four
   providers all report performance against the same 4-Reading/Writing +
   4-Math content-domain taxonomy that the card visualizes above. */
.cb-brand-grid {
  /* No longer pinned to the bottom of the card — the parent flex
     justify-content:center keeps the whole bars+logos block centred. */
  margin-top: 0;
  padding-top: 22px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  column-gap: 28px;
  row-gap: 18px;
  align-items: center;
  justify-items: center;
}
.cb-brand-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
}
.cb-brand-cell .brand-logo {
  max-width: 100%;
  max-height: 36px;
  height: auto;
  width: auto;
}

.cb-report-head {
  margin-bottom: 18px;
}
.cb-report-title {
  font-family: 'Roboto Slab', 'Roboto', 'Helvetica Neue', Arial, serif;
  font-weight: 700;
  font-size: 17px;
  color: #111;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.cb-report-sub {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  color: #4b5563;
  line-height: 1.45;
  margin: 0;
}

.cb-report-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  align-content: start;
  column-gap: 28px;
  row-gap: 0;
  position: relative;
}
/* Divider drawn as an ::after on the first section so it tracks the actual
   bar content height (not the taller grid container) while sitting centered
   in the 28px column gap. */
.cb-report-cols > .cb-section:first-child { position: relative; }
.cb-report-cols > .cb-section:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -14px;
  width: 1px;
  background: rgba(0, 0, 0, 0.16);
}

.cb-section-title {
  font-family: 'Roboto Slab', 'Roboto', 'Helvetica Neue', Arial, serif;
  font-weight: 700;
  font-size: 11.5px;
  color: #111;
  margin: 0 0 14px;
  /* keep section title on a single line in both expanded and condensed states */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: -0.005em;
}

.cb-row { margin-bottom: 14px; }
.cb-row:last-child { margin-bottom: 0; }
.cb-row-name {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  color: #111;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.cb-row-meta {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 9px;
  color: #6b7280;
  margin: 2px 0 7px;
  line-height: 1.35;
  /* the parenthetical metadata never wraps */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: 0;
}

.cb-bars {
  display: flex;
  gap: 3px;
  align-items: center;
}

.cb-bar {
  display: block;
  height: 9px;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 1px;
  box-sizing: border-box;
}
.cb-bar.is-filled { background: #1f2937; }
.cb-bar.is-empty  { background: transparent; border: 1px solid #1f2937; }

.method-canvas-col-body {
  flex: 1;
  border: 2px dashed rgba(12, 35, 64, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  min-height: 0;
}

/* Open a real, page-bg gap between the two card bodies so the "vs."
   has clean space to sit in — no more overlapping the dashed borders. */
.method-canvas-col[data-side="theirs"] .method-canvas-col-body { margin-right: clamp(14px, 1.6vw, 26px); }
.method-canvas-col[data-side="mine"]   .method-canvas-col-body { margin-left:  clamp(14px, 1.6vw, 26px); }

.method-canvas-col-detail {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.5;
}

/* Page 3 — split layout reversed (visual left, text right) */
.method-page-inner--split-reverse {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
}
.method-page-inner--split-reverse .method-page-text { order: 2; }
.method-page-inner--split-reverse .method-canvas { order: 1; }

/* Page 3 — the engine. Headline + caption above, two product screenshots
   below: a portrait dashboard on the left, a landscape problem-set view on
   the right. The two shots share a common visual height so they sit on the
   same baseline. */
.section--method-engine .snap-inner { max-width: 1280px; }
.section--method-merged .snap-inner { max-width: 1560px; }
.method-page-inner--engine {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  text-align: center;
}
.method-page-engine-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  align-items: center;
}
.method-page-engine-header .method-page-headline { text-align: center; }
.method-page-engine-header .method-page-caption {
  text-align: center;
  max-width: 640px;
}
.method-engine-shots {
  display: grid;
  /* Both shots are landscape now (dashboard 1440×920, problem 1440×760).
     Equal columns; size them down via max-width so they read as cards. */
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 36px);
  width: 100%;
  max-width: 1100px;
  align-items: end;
  margin: 0 auto;
}
/* Merged page (live whiteboard + dashboard + problem) — three equal landscape shots */
.method-engine-shots--three {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1480px;
  align-items: start;
}
.method-engine-shot-headline {
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 14px 0 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.method-engine-shot-headline-logo {
  height: 1.15em;
  width: auto;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
.method-engine-shots--three .method-engine-shot { gap: 0; }
.method-engine-shots--three .method-engine-shot-caption { margin-top: 2px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.method-engine-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.method-engine-shot-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 32px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.method-engine-shot-image--portrait { aspect-ratio: 1440 / 920; object-fit: cover; object-position: top center; }
.method-engine-shot-image--landscape { aspect-ratio: 1440 / 920; object-fit: cover; object-position: top center; }
.method-engine-shot-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* Subtle background tint to separate page 3 from page 2 in the snap stack */
.section--method-engine { background: rgba(226, 220, 201, 0.18); }

@media (max-width: 900px) {
  .method-engine-shots {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .method-engine-shots--three { grid-template-columns: 1fr; }
}

/* Page 1 — the cb-report on the "theirs" side needs ~460px of horizontal
   room to render its 2-col grid without clipping the right column. Below
   ~1100px viewport the 42.5/57.5 split starves it, so we stack the two
   comparison columns vertically once the canvas can't accommodate both. */
@media (max-width: 1100px) {
  .method-canvas--map {
    height: auto;
    min-height: clamp(500px, 76vh, 820px);
  }
  .method-canvas-cols {
    flex-direction: column;
  }
  .method-canvas-cols .method-canvas-col,
  .method-canvas-cols [data-side="mine"],
  .method-canvas-cols [data-side="theirs"],
  .method-canvas-cols.is-split [data-side="mine"],
  .method-canvas-cols.is-split [data-side="theirs"] {
    width: 100%;
  }
  .method-canvas-cols::before,
  .method-canvas-cols.is-split::before {
    top: 50%;
    bottom: auto;
    left: 14%;
    right: 14%;
    width: auto;
    height: 1px;
  }
}

/* Page 1 — on very narrow viewports the cb-report's 2-col grid (which needs
   ~460px to render its row labels without clipping) can no longer fit even
   in a stacked layout. Collapse to a single column so every row is fully
   readable on phones. */
@media (max-width: 560px) {
  .cb-report-cols {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .cb-report-cols::before { display: none; }
  .cb-report { padding: 18px 18px 20px; }
  .method-canvas-col-body--populated { min-height: 0; }
}

@media (max-width: 760px) {
  .method-page-inner--split {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .method-page-inner--split .method-page-headline,
  .method-page-inner--split .method-page-caption {
    text-align: center;
  }
  .method-page-inner--split .method-page-caption { max-width: none; }
  /* On mobile, drop the reverse — text first, visual second (source order) */
  .method-page-inner--split-reverse .method-page-text { order: 0; }
  .method-page-inner--split-reverse .method-canvas { order: 0; }

  /* Page 1 — stack the two comparison columns on mobile */
  .method-canvas--map {
    height: clamp(420px, 70vh, 720px);
  }
  .method-canvas-cols {
    flex-direction: column;
  }
  .method-canvas-cols .method-canvas-col,
  .method-canvas-cols.is-split [data-side="mine"],
  .method-canvas-cols.is-split [data-side="theirs"] {
    width: 100%;
  }
  .method-canvas-cols::before,
  .method-canvas-cols.is-split::before {
    top: 50%;
    bottom: auto;
    left: 14%;
    right: 14%;
    width: auto;
    height: 1px;
  }
}


/* ============ RESPONSIVE ============ */

@media (max-width: 1200px) {
  :root { --section-px: 48px; }
  .hero-card { width: 580px; padding: 44px; }
  .hero-stage { height: 720px; }
  /* Method now scales fluidly via clamp() — no overrides needed at this breakpoint */
  .results-headline { font-size: 46px; }
  .faq-headline { font-size: 50px; }
  .book-headline { font-size: 48px; }
  .book-grid { gap: 32px; }
  .book-letter { padding: 40px 44px; }
  .nav-links { gap: 20px; }
}

@media (max-width: 960px) {
  /* Disable scroll-snap on smaller viewports — natural scroll feels better */
  html, body { scroll-snap-type: none; }
  .snap-section {
    min-height: auto;
    scroll-snap-align: none;
    padding: 56px 32px;
  }
  .section--hero { padding: 24px 32px 0; }

  :root { --section-px: 32px; }

  /* Hero stacks: portrait on top, content card below */
  .hero-stage {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
  }
  .hero-portrait-bleed {
    position: static;
    width: 100%;
    height: 360px;
  }
  .hero-portrait-fade { display: none; }
  .hero-card {
    position: static;
    width: 100%;
    padding: 36px;
  }

  /* Nav: collapse links into hamburger menu */
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 12px;
    z-index: 50;
  }
  .nav-links.is-open li { width: 100%; }
  .nav-links.is-open a {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    width: 100%;
  }
  .nav-links.is-open a:hover { background: var(--card-2); }
  .nav-hamburger { display: inline-flex; }

  /* Method keeps 1×4 layout and scales fluidly — no layout switch */

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .results-sub { text-align: left; max-width: none; }
  .results-headline { font-size: 38px; }

  .faq-inner { grid-template-columns: 1fr; gap: 28px; }
  .faq-headline { font-size: 42px; }
  .faq-side { margin-top: 20px; }

  .book-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-letter { padding: 36px; }
  .book-headline { font-size: 42px; }

  .t-card { width: 320px; }
}

@media (max-width: 640px) {
  .snap-section { padding: 40px 20px; }
  .section--hero { padding: 20px 20px 0; }

  .nav-wordmark-name { font-size: 20px; }
  .nav-wordmark-sub { font-size: 9px; }

  .hero-card { padding: 28px; }
  .hero-stats { gap: 8px; }
  .hero-stat-num { font-size: 28px; }
  .hero-portrait-bleed { height: 280px; }

  /* Method headline + grid scale fluidly via clamp() / flex */

  .results-headline { font-size: 30px; }
  .chart-card { padding: 16px 12px 8px; }

  .faq-headline { font-size: 32px; }
  .faq-q { font-size: 17px; }
  .faq-trigger { gap: 14px; }
  .faq-num { width: 28px; font-size: 10px; }

  .book-headline { font-size: 32px; }
  .book-letter { padding: 28px; }
  .book-letter-body { font-size: 17px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }

  .t-card { width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .testimonials-track { transition: none; }
}

/* ===================== Live tweak panel (constellation editor) =====================
   Floating panel pinned to the bottom of the viewport. Same controls as
   whole-map.html but outside the card so they don't crowd the widget.
   Hidden in print and on small screens where dragging isn't practical. */
.live-tweak-panel {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px;
  background: #faf6ec;
  border: 1px solid rgba(12, 35, 64, 0.18);
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(12, 35, 64, 0.12);
  font-family: 'JetBrains Mono', monospace;
  pointer-events: auto;
  max-width: calc(100vw - 32px);
}
.ltp-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ltp-row--buttons { gap: 10px; }
.ltp-slider {
  display: grid;
  grid-template-columns: 86px 140px 44px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #0c2340;
}
.ltp-label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ltp-slider input[type="range"] {
  width: 100%;
  accent-color: #0c2340;
}
.ltp-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #7a8499;
}
.live-tweak-panel button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(12, 35, 64, 0.18);
  background: #fff;
  color: #0c2340;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live-tweak-panel button:hover { background: #0c2340; color: #faf6ec; }
.live-tweak-panel button.ltp-primary {
  background: #0c2340;
  color: #faf6ec;
  border-color: #0c2340;
}
.live-tweak-panel button.ltp-primary:hover {
  background: #1f3a5c;
  border-color: #1f3a5c;
}
.ltp-status {
  font-size: 10.5px;
  color: #7a8499;
  margin-left: auto;
}
@media print { .live-tweak-panel { display: none; } }
@media (max-width: 720px) {
  .live-tweak-panel { display: none; }
}
