/* ============================================================
   Whiteboard Chemistry — Redesigned Stylesheet
   "Quiet authority, examiner-led"
============================================================ */

:root {
  /* Palette — Ink & Oxide (default) */
  --paper:      oklch(0.975 0.005 80);
  --paper-2:    oklch(0.955 0.008 80);
  --paper-3:    oklch(0.92  0.01  80);
  --ink:        oklch(0.20  0.018 250);
  --ink-soft:   oklch(0.32  0.015 250);
  --muted:      oklch(0.50  0.012 250);
  --hairline:   oklch(0.88  0.01  250);
  --accent:     oklch(0.52  0.165 30);
  --accent-soft:oklch(0.62  0.14  30);
  --dark:       oklch(0.16  0.018 250);

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;

  --font-display: "Instrument Serif", "EB Garamond", Georgia, serif;
  --font-body:    "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ============================================================
   HEADER
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  color: var(--ink);
  background: transparent;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent); color: var(--paper) !important; }

/* ============================================================
   HERO
============================================================ */
.hero {
  padding: clamp(24px, 3.2vw, 48px) 0 clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top right, black 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
}
.display em.accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.lede {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s, color .15s, border-color .15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: var(--accent); color: var(--paper); }
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 40%, transparent);
}
.btn-ghost-light:hover { border-color: var(--paper); }
.btn-large { --btn-h: 60px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-arrow {
  font-size: 18px;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.micro-proof {
  display: block;
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  font-family: var(--font-mono);
}
.micro-proof + .micro-proof { margin-top: 8px; }
.micro-proof strong {
  color: var(--ink);
  font-weight: 500;
}
.micro-proof .dot {
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-3);
  box-shadow: 0 1px 0 var(--hairline), 0 30px 60px -20px color-mix(in srgb, var(--ink) 25%, transparent);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.95);
}
.photo-annotate {
  position: absolute;
  top: -8px;
  right: -100px;
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  display: none;
}
.annotate-line { width: 110px; height: 70px; display: block; margin-left: 8px; }
.annotate-text { display: block; margin-top: -8px; padding-left: 12px; }

.photo-badge {
  position: absolute;
  bottom: 20px;
  left: -28px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: 2px;
  box-shadow: 0 20px 40px -10px color-mix(in srgb, var(--ink) 30%, transparent);
  max-width: 220px;
}
.badge-label {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.1;
  font-style: italic;
}
.badge-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  margin-top: 6px;
}

/* ============================================================
   PROOF BAR (4 items)
============================================================ */
.proof-bar {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-2);
  padding: 28px 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.proof-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 4px;
  font-weight: 500;
}
.proof-label {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
}
.proof-detail {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

/* ============================================================
   SHARED SECTION BITS
============================================================ */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow-rule {
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-eyebrow-light {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}
.section-head {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .section-eyebrow { justify-content: center; }
.section-head-left { text-align: left; margin: 0 0 56px; max-width: none; }
.section-head-left .section-eyebrow { justify-content: flex-start; }
.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

/* ============================================================
   WHY EXAMINER (condensed)
============================================================ */
.differ {
  padding: clamp(72px, 10vw, 130px) 0;
}
.differ-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.differ-inner .section-eyebrow { justify-content: center; }
.pull {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 40px;
}
.pull em {
  color: var(--accent);
  font-style: italic;
}
.differ-cta {
  display: flex;
  justify-content: center;
}

/* ============================================================
   OFFER (What lessons look like) — preview
============================================================ */
.offer {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.offer-card {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-card:last-child { border-right: 0; }
.offer-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.offer-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.offer-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.offer-cta-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   TESTIMONIALS CAROUSEL
============================================================ */
.testimonials {
  padding: clamp(80px, 10vw, 140px) 0;
}
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 24px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.t-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-height: 320px;
  transition: opacity .25s ease, border-color .2s ease, transform .25s ease;
  opacity: 0.55;
  transform: scale(0.985);
}
.t-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--hairline));
  box-shadow: 0 24px 60px -32px color-mix(in srgb, var(--ink) 30%, transparent);
}
/* Single testimonial (placeholders hidden): center it and let it breathe
   instead of sitting in a one-third-width column with empty space beside it. */
.carousel-track:has(> .t-card:only-child) { justify-content: center; }
.t-card:only-child { flex: 0 0 min(100%, 620px); }
.t-card-placeholder {
  background: repeating-linear-gradient(
    135deg,
    var(--paper) 0 14px,
    color-mix(in srgb, var(--hairline) 40%, var(--paper)) 14px 15px
  );
}
.t-card-placeholder .t-quote { color: var(--muted); font-style: italic; }
.t-card-placeholder .t-author,
.t-card-placeholder .t-context { color: var(--muted); }
.t-mark {
  font-family: var(--font-display);
  font-size: 70px;
  color: var(--accent);
  line-height: 0.4;
  height: 22px;
  opacity: 0.7;
}
.t-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  flex-grow: 1;
}
.t-meta {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.t-author {
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
}
.t-context {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, color .15s;
}
.carousel-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--hairline);
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dot:hover { background: color-mix(in srgb, var(--ink) 35%, var(--hairline)); }
.carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ============================================================
   INSIGHTS PREVIEW
============================================================ */
.insights {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
/* Revision notes preview — white block so it alternates with the
   paper-2 Insights section directly below it */
.resource-preview { background: var(--paper); border-bottom: 0; }
.resource-preview-lede {
  max-width: 60ch;
  margin: -32px 0 40px;
  color: var(--ink-soft, #555);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.insight-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px 36px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background .15s ease;
  position: relative;
}
.insight-card:last-child { border-right: 0; }
.insight-card:hover { background: var(--paper-2); }
.insight-card:hover .insight-read { color: var(--accent); }
.insight-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.insight-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.insight-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}
.insight-excerpt {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex-grow: 1;
}
.insight-read {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: auto;
  transition: color .15s;
}

/* ============================================================
   FAQ
============================================================ */
.faq { padding: clamp(72px, 10vw, 140px) 0; }
/* When the FAQ sits directly below the testimonials (e.g. tuition page),
   collapse the doubled section padding so the gap matches the normal rhythm. */
.testimonials + .faq { padding-top: clamp(24px, 3vw, 40px); }
.faq-inner { max-width: 920px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-indicator {
  width: 28px; height: 28px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.faq-indicator::before,
.faq-indicator::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.faq-indicator::before { width: 10px; height: 1px; }
.faq-indicator::after  { width: 1px; height: 10px; }
.faq-item[open] .faq-indicator { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-indicator::before,
.faq-item[open] .faq-indicator::after { background: var(--paper); }
.faq-item[open] .faq-indicator::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-body {
  padding: 0 0 24px;
  max-width: 70ch;
}
.faq-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ============================================================
   FINAL CTA
============================================================ */
.final-cta {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--paper) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--paper) 4%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at bottom left, black 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.final-cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--paper);
}
.final-cta-title .accent-light {
  color: var(--accent-soft);
  font-style: italic;
}
.final-cta-lede {
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
  max-width: 50ch;
  margin: 0;
}
.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.reply-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
  margin: 8px 0 0;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--paper);
  padding: 56px 0 28px;
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}
.footer-blurb {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 36ch;
  margin: 16px 0 0;
  line-height: 1.55;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-cols a,
.footer-cols span.footer-meta {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11.5px !important;
  color: var(--muted) !important;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 36px; }
  .t-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .offer-card:last-child { border-bottom: 0; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card { border-right: 0; }
  .t-card { flex: 0 0 100%; min-height: 260px; }
  .final-cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .nav { gap: 10px; }
  /* Even out the Enquire / Menu pair on mobile: shrink Enquire so it
     matches the toggle's height/weight instead of towering over it
     (.nav a.nav-cta is needed to outrank `.nav a`, which forces 14.5px),
     and push the toggle off it with a margin. The margin is what creates
     the gap — the brand flexes to absorb it, whereas space-between alone
     leaves these two flush whenever the header runs out of slack. */
  .nav a.nav-cta {
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1;
    border: 1px solid transparent;
  }
  .menu-toggle { margin-left: 12px; }
  .brand-sub { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ============================================================
   MOBILE NAV DRAWER
============================================================ */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.menu-toggle:hover { border-color: var(--ink); }
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
}

/* Full-screen overlay behind the drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in panel */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;            /* keep the off-screen drawer out of the tab order / a11y tree when closed */
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .28s;
  box-shadow: -24px 0 56px -16px color-mix(in srgb, var(--ink) 14%, transparent);
  overflow-y: auto;
}
.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.drawer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.drawer-close {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.drawer-close:hover { border-color: var(--ink); background: var(--paper-2); }

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 32px;
  gap: 0;
  flex-grow: 1;
}
.mobile-drawer nav a {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  transition: color .15s;
}
.mobile-drawer nav a:last-of-type { border-bottom: 0; }
.mobile-drawer nav a:hover { color: var(--accent); }
.mobile-drawer nav a.drawer-cta {
  margin-top: 24px;
  border: none;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  display: block;
  transition: background .15s;
}
.mobile-drawer nav a.drawer-cta:hover { background: var(--accent); }

/* ============================================================
   STICKY BOTTOM CTA
============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--dark);
  padding: 12px clamp(16px, 3vw, 32px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  border-top: 1px solid color-mix(in srgb, var(--paper) 10%, transparent);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-text {
  font-size: 14.5px;
  font-weight: 500;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--paper);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.sticky-cta-btn:hover { background: var(--accent-soft); }
@media (max-width: 600px) {
  .sticky-cta-text { display: none; }
  .sticky-cta { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta-btn { flex-grow: 1; justify-content: center; font-size: 15px; }
  /* Reserve space so the fixed CTA bar never sits over the footer / last content */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   REDUCED MOTION — honour the user's OS "reduce motion" setting
   (carousel autoplay is additionally disabled in carousel.js)
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
