/* ==========================================================================
   Mira Eisen - Online Kotel Painting Course
   styles.css
   Block order: 1 @import  2 :root  3 reset  4 base type  5 layout utils
   6 buttons  7 header/nav  8 hero  9 sections  10 placeholder/cards
   11 footer  12 (no whatsapp float - none on this build)  13 @media mobile
   ========================================================================== */

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

/* 2. Root variables ----------------------------------------------------- */
:root {
  /* Colors (locked) */
  --color-primary: #1A1714;
  --color-primary-dark: #141210;
  --color-primary-light: #3A332B;
  --color-accent: #C9A24B;
  --color-accent-hover: #B8902F;
  --color-accent-dark: #8A6D24;
  --color-background: #FBF8F2;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F4EEE2;
  --color-text: #1A1714;
  --color-text-muted: #6B5F4E;
  --color-text-on-accent: #1A1714;
  --color-text-on-dark: #FBF8F2;
  --color-border: #E3DAC9;
  --color-success: #3F7A52;
  --color-error: #B23B3B;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Hoefler Text', Garamond, 'Times New Roman', serif;
  --font-body: 'Mulish', 'Segoe UI', Helvetica, sans-serif;
  --font-accent: 'Cormorant Garamond', Garamond, serif;
  --line-height-heading: 1.12;
  --line-height-subhead: 1.25;
  --line-height-body: 1.6;
  --letter-spacing-heading: -0.015em;
  --letter-spacing-eyebrow: 0.18em;
  --weight-heading: 600;
  --weight-heading-strong: 700;
  --weight-body: 400;
  --weight-emphasis: 600;

  /* Spacing scale (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --section-padding-desktop: 96px;
  --section-padding-mobile: 56px;
  --section-padding-tight: 64px;
  --container-max: 1180px;
  --container-narrow: 760px;
  --container-padding: 24px;
  --card-padding: 32px;
  --card-gap: 24px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 23, 20, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 23, 20, 0.10);
  --shadow-cta: 0 10px 30px rgba(138, 109, 36, 0.28);
}

/* 3. Reset / normalize -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: var(--weight-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 3px;
}

/* 4. Base typography ---------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  letter-spacing: var(--letter-spacing-heading);
  line-height: var(--line-height-heading);
  margin: 0 0 var(--space-4);
  color: var(--color-text);
  text-wrap: balance; /* no single orphaned word on a heading's last line */
}

h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.25rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.625rem;
  line-height: 1.25;
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-eyebrow);
  color: var(--color-accent-dark);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

.subhead {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

.body-lg {
  font-size: 1.1875rem;
  line-height: var(--line-height-body);
}

.small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.emphasis-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.625rem;
  line-height: 1.3;
  color: var(--color-primary);
  text-wrap: balance;
}

/* 5. Layout utilities --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
}

.section-alt {
  background-color: var(--color-surface-alt);
}

.section-surface {
  background-color: var(--color-surface);
}

.section-head {
  margin-bottom: var(--space-12);
}

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

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--card-gap);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split-hero {
  grid-template-columns: 52fr 48fr;
}

/* desktop-only column swap: media left / text right (alternating sections).
   On mobile (.split collapses to 1 column) the natural source order is kept,
   so the heading still reads first. */
@media (min-width: 1024px) {
  .split-reverse > :first-child { order: 2; }
  .split-reverse > :last-child { order: 1; }
}

/* Decorative divider with gold diamond */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background-color: var(--color-border);
}

.divider span {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background-color: var(--color-accent);
  flex: 0 0 auto;
}

/* 6. Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
  padding: 17px 38px;
  min-height: 52px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-accent-dark);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  color: var(--color-text-on-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-primary-light);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--color-surface-alt);
}

.text-link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-accent-dark);
}

.text-link:hover {
  text-decoration: underline;
}

.cta-wrap {
  margin-top: var(--space-8);
}

.cta-trust {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* 7. Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.main-nav a:hover {
  color: var(--color-accent-dark);
}

.main-nav .btn-primary {
  padding: 12px 26px;
  min-height: 44px;
  font-size: 0.9375rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-primary);
}

/* 8. Hero (full-bleed process video) ------------------------------------ */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  background-color: var(--color-primary);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Legibility scrim: the process video runs white -> colorful, so we anchor the
   left-aligned text on a dark, left-weighted gradient rather than tinting text. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Mira (2026-10-12): the painting must read clearly, not dark. The darkness is a
     band behind the copy only (the copy ends by ~78% of the width), the margins stay
     light, and the tight text-shadow halos below carry legibility at the letters */
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.45) 0%, rgba(20, 18, 16, 0.64) 16%, rgba(20, 18, 16, 0.6) 80%, rgba(20, 18, 16, 0.08) 92%, rgba(20, 18, 16, 0) 100%),
    linear-gradient(to top, rgba(20, 18, 16, 0.3), transparent 35%);
  pointer-events: none;
}

/* Below 1024px the copy spans (nearly) the full width, so the band becomes a balanced
   scrim; it is centred text on mobile, left-aligned on tablet */
@media (max-width: 1023px) {
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(20, 18, 16, 0.66) 0%, rgba(20, 18, 16, 0.48) 45%, rgba(20, 18, 16, 0.5) 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-inner h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.5rem);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-6);
  text-shadow: 0 0 2px rgba(20, 18, 16, 0.7), 0 0 6px rgba(20, 18, 16, 0.55), 0 2px 18px rgba(20, 18, 16, 0.45);
}

.hero-body {
  font-size: 1.125rem;
  color: var(--color-text-on-dark);
  text-shadow: 0 0 2px rgba(20, 18, 16, 0.8), 0 0 5px rgba(20, 18, 16, 0.6), 0 1px 12px rgba(20, 18, 16, 0.45);
}

.hero-meta {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  text-shadow: 0 0 2px rgba(20, 18, 16, 1), 0 0 2px rgba(20, 18, 16, 1), 0 0 4px rgba(20, 18, 16, 0.9), 0 0 10px rgba(20, 18, 16, 0.7);
}

.hero-inner .eyebrow {
  text-shadow: 0 0 2px rgba(20, 18, 16, 1), 0 0 2px rgba(20, 18, 16, 1), 0 0 4px rgba(20, 18, 16, 0.9), 0 0 10px rgba(20, 18, 16, 0.7);
}

.hero-trust {
  margin-top: var(--space-4);
}

/* Info lines wrap only between items: an item never splits, and a separator that
   lands on a wrap becomes a hidden forced break (.is-break, set in script.js) */
.meta-item {
  display: inline-block;
}

.meta-sep.is-break {
  display: block;
  height: 0;
  overflow: hidden;
}

.eyebrow-on-dark {
  color: var(--color-accent);
}

.btn-lg {
  padding: 19px 46px;
  min-height: 58px;
  font-size: 1.125rem;
}

/* 9. Content sections --------------------------------------------------- */
.lede {
  font-family: var(--font-body);
}

.alt-row {
  /* image/copy alternating already handled by .split source order */
}

/* checklist */
.checklist {
  display: grid;
  gap: var(--space-4);
  text-align: left;
}

.checklist li {
  position: relative;
  padding-left: 38px;
  font-size: 1.0625rem;
  line-height: var(--line-height-body);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-accent-dark);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--color-accent-dark);
  border-bottom: 2px solid var(--color-accent-dark);
  transform: rotate(45deg);
}

/* feature/why cards (3-item) */
.feature-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--color-text-muted);
}

/* palette swatches */
.swatches {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
  justify-content: center;
}

.swatch {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.swatch-black {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.swatch-white {
  background-color: var(--color-surface);
  color: var(--color-text-muted);
}

.swatch-gold {
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* gold-bordered reassurance callout */
.callout {
  margin-top: var(--space-8);
  background-color: var(--color-surface-alt);
  border: 1.5px solid var(--color-accent-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.callout p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--color-primary);
  margin: 0;
}

/* course-at-a-glance stat panel */
.stats-panel {
  margin-top: var(--space-12);
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--card-padding);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.05;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.frame-line {
  margin-top: var(--space-8);
  text-align: center;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

/* bonus ledger */
.ledger {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 20px var(--card-padding);
  border-bottom: 1px solid var(--color-border);
}

.ledger-item {
  font-weight: 600;
}

.ledger-value {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.ledger-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 22px var(--card-padding);
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
  border-bottom: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Bonus value stack (reuses .ledger) ----------------------------------- */
.bonus-stack {
  max-width: 760px;
  margin: 0 auto;
}

.bonus-lead {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.ledger-desc {
  display: block;
  font-weight: var(--weight-body);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* outcome 2x2 grid */
.outcome {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
}

.outcome .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-accent-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.outcome h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-2);
}

.outcome p {
  color: var(--color-text-muted);
  margin: 0;
}

/* placeholder slot */
.placeholder-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  background-color: var(--color-surface-alt);
  border: 1.5px dashed var(--color-accent-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  color: var(--color-text-muted);
}

.placeholder-slot .glyph {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent-dark);
  line-height: 1;
}

.placeholder-slot .ph-label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 32ch;
}

.placeholder-media {
  aspect-ratio: 4 / 3;
}

.placeholder-video {
  aspect-ratio: 16 / 11;
}

/* real artwork swapped into a media slot */
.media-figure {
  margin: 0;
}

.media-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.media-video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--color-primary);
}

.media-figure figcaption {
  margin-top: var(--space-3);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---- About: Mira promo video (portrait, custom on-brand controls) ---- */
.about-video {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.about-video__el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* mute / unmute - top-right, glassy circle */
.about-video__sound {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background-color: rgba(251, 248, 242, 0.94);
  color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(20, 18, 16, 0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-video__sound:hover {
  background-color: #fff;
  transform: translateY(-1px);
}

.about-video__sound:focus-visible,
.about-video__play:focus-visible,
.about-video__seek:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* bottom control bar - play/pause + seek over a soft scrim */
.about-video__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(to top, rgba(20, 18, 16, 0.6), rgba(20, 18, 16, 0));
}

.about-video__play {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-video__play:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.about-video__icon {
  width: 22px;
  height: 22px;
  display: block;
}

.about-video__play .about-video__icon {
  width: 18px;
  height: 18px;
}

/* icon swapping driven by state classes on the container */
.about-video__icon--sound,
.about-video__icon--pause {
  display: none;
}

.about-video.is-unmuted .about-video__icon--muted {
  display: none;
}

.about-video.is-unmuted .about-video__icon--sound {
  display: block;
}

.about-video.is-playing .about-video__icon--play {
  display: none;
}

.about-video.is-playing .about-video__icon--pause {
  display: block;
}

/* seek bar - gold fill via --seek (%) set in JS */
.about-video__seek {
  --seek: 0%;
  flex: 1 1 auto;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.about-video__seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to right,
    var(--color-accent) 0%,
    var(--color-accent) var(--seek),
    rgba(251, 248, 242, 0.35) var(--seek),
    rgba(251, 248, 242, 0.35) 100%
  );
}

.about-video__seek::-moz-range-track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(251, 248, 242, 0.35);
}

.about-video__seek::-moz-range-progress {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.about-video__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-accent);
  box-shadow: 0 1px 4px rgba(20, 18, 16, 0.3);
}

.about-video__seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-accent);
  box-shadow: 0 1px 4px rgba(20, 18, 16, 0.3);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: var(--card-gap);
}

.gallery-row .placeholder-slot {
  padding: var(--space-8) var(--space-4);
}

/* portfolio gallery (masonry) ------------------------------------------- */
/* filter tabs (All + each theme) */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.gallery-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-tab:hover {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}

.gallery-tab.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent-dark);
  color: var(--color-text-on-accent);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-masonry {
  column-count: 3;
  column-gap: var(--card-gap);
}

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 var(--card-gap);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* placeholder ratios (fallback only; unused in round 1) */
.gallery-item.placeholder-slot { cursor: default; }
.gallery-item.placeholder-tall   { aspect-ratio: 3 / 4; }
.gallery-item.placeholder-wide   { aspect-ratio: 4 / 3; }
.gallery-item.placeholder-square { aspect-ratio: 1 / 1; }

/* lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background-color: rgba(20, 18, 16, 0.92);
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.lightbox button {
  position: absolute;
  background-color: rgba(251, 248, 242, 0.12);
  color: var(--color-text-on-dark);
  border: 1px solid rgba(251, 248, 242, 0.3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lightbox button:hover {
  background-color: rgba(201, 162, 75, 0.9);
  color: var(--color-text-on-accent);
}

.lightbox-close {
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
}

.lightbox-prev { left: var(--space-6); }
.lightbox-next { right: var(--space-6); }

body.no-scroll { overflow: hidden; }

@media (max-width: 1023px) {
  .gallery-masonry { column-count: 2; }
}

@media (max-width: 767px) {
  .gallery-masonry { column-count: 1; }
  .lightbox-prev,
  .lightbox-next { width: 44px; height: 44px; font-size: 1.75rem; }
  .lightbox-prev { left: var(--space-3); }
  .lightbox-next { right: var(--space-3); }
}

/* pricing */
.price-card {
  position: relative;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--card-padding) var(--card-padding);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.price-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  line-height: 1.05;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}

/* FAQ accordion */
.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--color-text);
}

.faq-icon {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent-dark);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* visibility keeps a closed answer's links out of the tab order */
.faq-a {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.28s ease, visibility 0s linear 0.28s;
}

.faq-item.open .faq-a {
  visibility: visible;
  transition: max-height 0.28s ease;
}

.faq-a-inner {
  padding: 0 0 20px;
  color: var(--color-text-muted);
}

/* 11. Footer ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-on-dark);
  padding-top: var(--section-padding-tight);
  padding-bottom: var(--space-12);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

.footer-logo-chip {
  display: inline-flex;
}

.footer-logo-chip img {
  height: 52px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--color-text-on-dark);
  opacity: 0.9;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a,
.footer-links .footer-linklike {
  color: var(--color-text-on-dark);
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer-links a:hover,
.footer-links .footer-linklike:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--color-text-on-dark);
  opacity: 0.6;
  margin: 0;
}

/* "What you'll create" centered painting */
.create-media {
  max-width: 880px;
  margin-top: var(--space-12);
}

/* Final CTA band */
.final-cta {
  background-color: var(--color-primary);
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
}

.final-cta h2 {
  color: var(--color-text-on-dark);
}

.final-cta .subhead {
  color: var(--color-text-on-dark);
  opacity: 0.78;
}

/* 13. Mobile overrides (375px-first) ------------------------------------ */
@media (max-width: 1023px) {
  .split,
  .split-hero {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding-desktop: 56px;
    --section-padding-tight: 48px;
    --container-padding: 24px;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.25rem, 8.5vw, 2.85rem);
    line-height: 1.12;
  }

  h2 {
    font-size: 1.875rem;
    line-height: 1.18;
  }

  h3 {
    font-size: 1.4375rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  .subhead,
  .body-lg,
  .hero-body {
    font-size: 1.0625rem;
  }

  .small {
    font-size: 0.8125rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .section {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
  }

  /* hide inline nav, show toggle */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) var(--container-padding) var(--space-6);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.0625rem;
  }

  .main-nav .btn-primary {
    margin-top: var(--space-4);
    width: 100%;
    border-bottom: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 76vh;
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  /* Center ALL text on mobile (English, mobile-only). Desktop alignment is
     untouched - this lives entirely inside the max-width:767px breakpoint. */
  .container,
  .container-narrow,
  .hero-inner {
    text-align: center;
  }

  .hero-inner {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* bonus rows stack (item over value) so a long value never overflows */
  .ledger-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: 16px var(--space-6);
  }

  .callout {
    padding: var(--space-6);
  }

  .callout p {
    font-size: 1.25rem;
  }

  .stats-panel {
    padding: var(--space-8) var(--space-6);
  }

  .btn-primary {
    width: 100%;
  }

  .hero-cta .btn-primary {
    width: auto;
  }
}

@media (max-width: 479px) {
  .swatch {
    width: 60px;
    height: 60px;
  }

  .footer-links {
    gap: var(--space-4);
  }
}

/* 14. 2026-06-24 content batch (Mira) ----------------------------------- */

/* Per-painting Read more under a student's full testimonial (script.js adds
   it). A text that already fits gets [hidden] instead. */
.quote-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  /* centred on phones; desktop puts it back under the quote (min-width, so it
     can't out-cascade the mobile rules that live earlier in the file) */
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-eyebrow);
  color: var(--color-accent-dark);
}

@media (min-width: 768px) {
  .quote-toggle {
    align-self: flex-start;
  }
}

.quote-toggle:hover {
  color: var(--color-accent-hover);
}

.quote-toggle[hidden] {
  display: none;
}

.quote-toggle::after {
  content: "";
  width: 0.46em;
  height: 0.46em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.3s ease;
}

/* "Imagine this moment" - a narrative broken into movements so it reads as a
   journey, not a wall of text. The guest "dialogue" is the signature moment.
   Uses the cream background so it alternates with the light FAQ section
   above it. */
.section-imagine {
  background-color: var(--color-surface-alt);
}

.imagine {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* opening hook */
.imagine-lead {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.25rem);
  line-height: 1.25;
  color: var(--color-primary);
  margin: 0 0 var(--space-8);
}

.imagine-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

.imagine-body:last-child {
  margin-bottom: 0;
}

/* the guest scene - framed with hairline rules to set it apart */
.imagine-scene {
  margin: var(--space-12) 0;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.imagine-cue {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

.imagine-quote {
  margin: 0 0 var(--space-6);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 3vw, 2.85rem);
  line-height: 1.15;
  color: var(--color-accent-dark);
}

.imagine-reply {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-primary);
}

/* the turn into the closing reflection */
.imagine-turn {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--color-primary);
  margin: 0 0 var(--space-4);
}

.imagine-close {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 1.75rem);
  line-height: 1.35;
  color: var(--color-primary);
  margin: 0;
}

/* Footer link that behaves like the sibling <a>s but opens the modal. */
.footer-linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Refund-policy modal -------------------------------------------------- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 18, 16, 0.6);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(20, 18, 16, 0.28);
  padding: var(--space-12) var(--space-8) var(--space-8);
  text-align: center;
  animation: modal-rise 0.22s ease;
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.modal-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .modal-dialog { animation: none; }
}

/* 15. 2026-09-14 full-page restructure (Mira's 17 sections) ------------- */

/* Narrative copy: one source line per paragraph */
.story {
  margin: 0 0 var(--space-6);
}

.story:last-child {
  margin-bottom: 0;
}

.story p {
  color: var(--color-text-muted);
}

.story p.story-strong,
.story-strong {
  font-weight: var(--weight-emphasis);
  color: var(--color-text);
}

/* short run of stand-alone lines, set between hairline rules */
.statement {
  margin: var(--space-8) 0;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.statement p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.statement p:last-child {
  margin-bottom: 0;
}

.story-close {
  margin-top: var(--space-8);
}

/* "What you'll create": the question and the answer */
.dialogue-line {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.125rem);
  line-height: 1.2;
  color: var(--color-accent-dark);
  margin: var(--space-4) 0;
}

.dialogue-reply {
  color: var(--color-primary);
}

.dialogue-cue {
  color: var(--color-text-muted);
  margin: 0;
}

/* Card rows (method steps, what's included): centred so a short last row sits in the middle */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
  margin-top: var(--space-12);
}

.section-head + .card-grid {
  margin-top: 0;
}

.card-grid > .feature-card {
  flex: 0 1 calc((100% - 2 * var(--card-gap)) / 3);
}

/* Student gallery: real student paintings, each with its painter's name and,
   where she gave one, her own words (README.md). A painting with words spans
   the row, painting beside words, alternating sides; the others pair up two
   across. Paintings keep their own shape - never cropped by CSS. */
.student-gallery-title {
  text-align: center;
  margin: var(--space-12) 0 var(--space-8);
}

.student-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16) var(--space-12);
  align-items: start;
}

.student-work {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.student-work img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background-color: var(--color-surface-alt);
}

.student-work--words {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-12);
  align-items: center;
}

/* words first, painting second; Rivki's painting is square and ~660px, so its
   column is narrower to keep it at (not above) its real size */
.student-work--flip {
  grid-template-columns: 5fr 6fr;
}

.student-work--flip > img {
  grid-column: 2;
  grid-row: 1;
}

.student-work--flip > .student-work__caption {
  grid-column: 1;
  grid-row: 1;
}

.student-work__caption,
.student-work__quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.student-work__quote {
  margin: 0;
}

.student-work__headline {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: var(--line-height-subhead);
  color: var(--color-text);
  text-wrap: balance;
}

.student-work__full {
  margin: 0;
  font-size: 1rem;
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
}

/* script.js adds .has-more (and the Read more button) - without JS the full
   text simply shows */
.student-work.has-more .student-work__full {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.student-work.is-open .student-work__full {
  display: block;
  -webkit-line-clamp: none;
  line-clamp: none;
  overflow: visible;
}

.student-work.is-open .quote-toggle::after {
  transform: translateY(15%) rotate(-135deg);
}

.student-work__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-accent-dark);
}

/* Lists (what you'll learn, is this for you) */
.list-lead {
  font-weight: var(--weight-emphasis);
  margin-bottom: var(--space-6);
}

.list-close {
  margin-top: var(--space-8);
}

.fit-subhead {
  margin: var(--space-12) 0 var(--space-6);
}

/* "May not be for you": a muted dash in place of the check */
.checklist-not li {
  color: var(--color-text-muted);
}

.checklist-not li::before {
  border-color: var(--color-border);
}

.checklist-not li::after {
  left: 7px;
  top: 13px;
  width: 10px;
  height: 0;
  border-right: 0;
  border-bottom: 2px solid var(--color-text-muted);
  transform: none;
}

/* Bonus collection */
.ledger-value-gift {
  font-style: italic;
}

.bonus-foot {
  text-align: center;
  margin-top: var(--space-6);
  color: var(--color-text-muted);
}

/* Pricing: one early-enrollment card */
.price-card-single {
  max-width: 560px;
  margin: 0 auto;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}

.price-regular {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.price-includes-title {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.price-list {
  width: 100%;
  max-width: 400px;
  margin: 0 auto var(--space-6);
}

.price-summary {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-weight: var(--weight-emphasis);
  color: var(--color-text);
  margin-bottom: 0;
}

.price-cta {
  margin-top: var(--space-6);
}

.price-access {
  margin: var(--space-4) 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* FAQ answer link that opens the refund modal */
.inline-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.inline-link:hover {
  color: var(--color-accent-hover);
}

/* Meet your teacher: the portrait video stays beside the long story while it is read */
@media (min-width: 1024px) {
  .split-sticky {
    align-items: stretch;
  }

  .split-sticky .about-video {
    position: sticky;
    top: calc(72px + var(--space-8));
  }
}

/* Final CTA extras on the dark band */
.final-meta {
  margin-top: var(--space-4);
}

.final-cta .emphasis-quote {
  margin-top: var(--space-8);
  color: var(--color-text-on-dark);
}

/* the header button label is longer now: tighten the inline nav on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-nav {
    gap: var(--space-4);
  }
}

@media (max-width: 1023px) {
  .card-grid > .feature-card {
    flex-basis: calc((100% - var(--card-gap)) / 2);
  }
}

@media (max-width: 767px) {
  .hero-inner h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-body {
    font-size: 1.0625rem;
  }

  .card-grid > .feature-card {
    flex-basis: 100%;
  }

  /* one painting per row; a painting with words stacks the words under it */
  .student-gallery {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .student-work--words {
    display: flex;
    gap: var(--space-4);
  }

  .statement p {
    font-size: 1.3125rem;
  }

  .price-card-single {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  /* keep "Reserve My Early Access" on one line inside the narrow card */
  .price-card-single .btn-lg {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

}
