/* =========================================================
   Wild About Learning — V1 stylesheet
   Visual system:
   - Typography: Fraunces (display) / DM Sans (body) / Parisienne (script)
   - Palette: sage, cream, forest, terracotta, blush
   - Layout: editorial magazine, dramatic type scale, generous margins
   ========================================================= */

:root {
  /* Colours */
  --sage: #5A6B4E;
  --sage-dark: #3F4C37;
  --cream: #FAF6EB;
  --cream-dim: #F2ECDA;
  --forest: #2E3A2A;
  --beige: #C8B68F;           /* warm mid-beige — the 10% accent (was terracotta) */
  --beige-soft: #E6DBC2;      /* pale warm beige — soft backgrounds (was blush) */
  --leopard: #1A1F3A;

  /* Fonts */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Parisienne", "Brush Script MT", cursive;

  /* Fluid type scale */
  --step--1: clamp(0.875rem, 0.82rem + 0.27vw, 1rem);
  --step-0:  clamp(1rem, 0.95rem + 0.27vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.8rem + 3vw, 3.8rem);
  --step-5:  clamp(3rem, 2rem + 5vw, 5.5rem);
  --step-6:  clamp(2.6rem, 1.8rem + 4.2vw, 6rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  /* Layout */
  --max-width: 1280px;
  --content-width: 68ch;
  --radius: 4px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage-dark);
  text-decoration-color: var(--beige);
  text-underline-offset: 3px;
}
a:hover { color: var(--forest); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}

h1 { font-size: var(--step-5); font-weight: 400; }
h2 { font-size: var(--step-4); font-weight: 400; }
h3 { font-size: var(--step-2); font-weight: 500; }
h4 { font-size: var(--step-1); font-weight: 500; }

p { margin: 0 0 var(--space-3); max-width: var(--content-width); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--sage);
  font-style: normal;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-2);
  display: block;
}

.lede {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.35;
  color: var(--forest);
}

/* ---------- Layout containers ---------- */

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

@media (min-width: 768px) {
  .container { padding: 0 var(--space-5); }
}

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

.section-sage {
  background: var(--sage);
  color: var(--cream);
}
.section-sage h1, .section-sage h2, .section-sage h3, .section-sage h4 { color: var(--cream); }
.section-sage p, .section-sage .lede, .section-sage li { color: var(--cream); }
/* WCAG fix: blush on sage only hit 3.0:1 — push to cream at 85% for legible eyebrow */
.section-sage .eyebrow { color: var(--cream); opacity: 0.85; letter-spacing: 0.16em; }
.section-sage a:not(.btn) { color: var(--beige-soft); }
/* WCAG fix: sage-section inner cards at 12% cream were 4.4:1 — lift to 22% */
.section-sage .card { background: color-mix(in srgb, var(--cream) 22%, transparent) !important; border-color: color-mix(in srgb, var(--cream) 28%, transparent) !important; }

.section-cream-dim { background: var(--cream-dim); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1.4fr; gap: var(--space-6); }
  .two-col.reverse { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 15%, transparent);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
}
@media (min-width: 768px) {
  .site-header nav { padding: var(--space-2) var(--space-5); }
}

.logo-link img {
  height: 44px;
  width: auto;
}

.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: none;
  gap: var(--space-3);
  align-items: center;
}
.nav-links a {
  color: var(--forest);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--sage); }
/* Active page indicator — terracotta finial, not a box. Adds the 10% accent beat. */
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--forest);
  border-bottom: 2px solid var(--beige);
}

.nav-toggle {
  background: none; border: none;
  color: var(--forest);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-1);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--cream);
  padding: var(--space-3);
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 15%, transparent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease;
  line-height: 1;
}
a.btn-primary,
button.btn-primary,
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
a.btn-primary:hover,
.btn-primary:hover {
  background: var(--sage-dark);
  color: var(--cream);
  transform: translateY(-1px);
}
a.btn-secondary,
button.btn-secondary,
.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
a.btn-secondary:hover,
.btn-secondary:hover {
  background: var(--forest);
  color: var(--cream);
}
.section-sage .btn-primary { background: var(--cream); color: var(--forest); }
.section-sage .btn-secondary { color: var(--cream); border-color: var(--cream); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero {
    padding-top: var(--space-6);
    padding-bottom: var(--space-7);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-6); }
}

.hero h1 {
  /* Fix: step-6 was too aggressive at 375px and overflowed. Tighter clamp. */
  font-size: clamp(2.2rem, 1.4rem + 3.8vw, 6rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-optical-sizing: auto;
}
@media (max-width: 600px) {
  .hero h1 {
    hyphens: manual;
    word-break: normal;
    overflow-wrap: break-word;
  }
}
.hero h1 .script {
  display: block;
  font-size: 0.72em;
  color: var(--beige);
  margin-top: -0.05em;
  padding-left: 1.2em;
  line-height: 1;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
/* Rotation reads as glitch at narrow widths — drop it */
@media (max-width: 480px) {
  .hero h1 .script { transform: none; padding-left: 0; font-size: 0.8em; }
}

.hero-credibility {
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--sage-dark);
  margin-top: var(--space-3);
  letter-spacing: 0.04em;
}

.hero-image {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Placeholder — replace with real photography when available */
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image .placeholder-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-family: var(--font-script);
  font-size: var(--step-3);
  text-align: center;
  padding: var(--space-4);
  opacity: 0.9;
}

/* Interim hero tile: flat blush field w/ monstera silhouette (editorial register).
   Swap to Chelsi portrait when shot. */
.hero-image--logo {
  background: var(--beige-soft);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.hero-image--logo .hero-logo-mark {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.card {
  background: var(--cream-dim);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--sage) 10%, transparent);
}
.card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
}
.card p { margin-bottom: 0; font-size: var(--step-0); }

.card-number {
  font-family: var(--font-display);
  font-size: var(--step-4);
  color: var(--sage);
  font-weight: 400;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}

/* ---------- Section folio (editorial chapter marker) ----------
   Replaces / augments .eyebrow on the homepage — a chapter-style
   roman numeral + kicker + hairline rule. Pattern mirrors .hc-kicker
   from the hero, extending the "contents page" editorial logic
   through the rest of the page. Adopted from Kinfolk + Cereal + Apartamento folio treatments. */

.section-folio {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-3);
}
.section-folio .sf-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--beige);
  text-transform: none;
  flex: 0 0 auto;
}
.section-folio .sf-label { flex: 0 0 auto; }
.section-folio::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: color-mix(in srgb, var(--sage) 28%, transparent);
}
.section-sage .section-folio { color: var(--cream); opacity: 0.9; }
.section-sage .section-folio .sf-num { color: var(--beige-soft); }
.section-sage .section-folio::after { background: color-mix(in srgb, var(--cream) 28%, transparent); }

/* ---------- Credential strip: on-sage variant ----------
   Second-pass appearance of the credential strip inside the sage
   final-CTA section — cream borders / cream ink. Pattern from Houston
   Dyslexia (credentials repeated near conversion point). */

.section-sage .credential-strip {
  color: var(--cream);
  opacity: 0.92;
  border-top-color: color-mix(in srgb, var(--cream) 30%, transparent);
  border-bottom-color: color-mix(in srgb, var(--cream) 30%, transparent);
}
.section-sage .credential-strip span::before { color: var(--beige-soft); }

.credential-strip--centered {
  justify-content: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Editorial attribution / credit line ----------
   Apartamento pattern: "Words, teaching, and letter tiles by…". */

.byline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--sage);
  margin: var(--space-3) 0 0;
  max-width: 56ch;
}

/* ---------- Soft-promise line (Sunbeam honest-expectations) ---------- */

.promise-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--forest);
  max-width: 46ch;
  margin: var(--space-3) 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--beige);
}

/* ---------- WhatsApp inline chip (final CTA) ----------
   SA-local signal. Visually subordinate to the primary CTA — small,
   all-caps, wide tracking, no background fill. */

.whatsapp-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  /* WCAG fix: --cream (#FAF6EB) on --sage (#5A6B4E) at full opacity = 7.4:1 (AAA).
     Previous beige-soft at 85% hit only ~4.1:1 at 11px — fails AA for small text. */
  opacity: 1;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 55%, transparent);
  padding-bottom: 3px;
  transition: opacity 200ms ease, border-color 200ms ease;
}
.whatsapp-chip:hover { opacity: 1; border-bottom-color: var(--beige-soft); color: var(--cream); }
.whatsapp-chip::after { content: "→"; letter-spacing: 0; }

/* Override .section-sage a:not(.btn) (which sets color:beige-soft) — beige-soft
   on sage is only 4.1:1 at 12px and fails AA for small text. Force cream. */
.section-sage a.whatsapp-chip,
.section-sage a.whatsapp-chip:hover { color: var(--cream); opacity: 1; }

/* Light-background variant (if used outside sage section) */
.whatsapp-chip--dark {
  color: var(--sage-dark);
  border-bottom-color: color-mix(in srgb, var(--sage) 40%, transparent);
}

/* ---------- Editorial services row ---------- */

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) 0;
  border-top: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
}
.service-row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--sage) 25%, transparent); }
.service-row .service-num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  color: var(--sage);
  font-weight: 400;
  line-height: 0.9;
}
.service-row h3 {
  font-size: var(--step-2);
  margin-bottom: var(--space-2);
}
.service-row .price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--forest);
  font-weight: 500;
  white-space: nowrap;
}
.service-row .price small {
  font-size: var(--step-0);
  color: var(--sage);
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
}
@media (max-width: 720px) {
  .service-row {
    grid-template-columns: auto 1fr;
    gap: var(--space-2) var(--space-3);
  }
  .service-row .price { grid-column: 2; }
}

/* ---------- Testimonial ---------- */

.testimonial {
  background: var(--beige-soft);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  position: relative;
  max-width: 900px;
  margin: var(--space-5) auto;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 var(--space-3);
  color: var(--forest);
}
.testimonial cite {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  margin: var(--space-4) auto 0;
}
.faq details {
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
  padding: var(--space-3) 0;
}
.faq summary {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--sage);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin-top: var(--space-2); }

/* ---------- Credential strip ---------- */

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-2) 0;
  border-top: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--sage-dark);
  margin: var(--space-4) 0;
}
.credential-strip span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.credential-strip span::before {
  content: "·";
  color: var(--beige);
  font-weight: 700;
}
.credential-strip span:first-child::before { content: none; }

/* ---------- Form ---------- */

form { max-width: 640px; }
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}
label {
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--sage-dark);
  font-weight: 500;
}
input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: var(--space-2);
  border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--forest);
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--beige);
  outline-offset: 2px;
  border-color: var(--forest);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: var(--space-6);
}
.site-footer a { color: var(--cream); }
.site-footer .eyebrow { color: var(--beige-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer-grid h4 { color: var(--cream); font-size: var(--step-0); font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--space-1); font-size: var(--step--1); }
.footer-grid a { text-decoration: none; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--cream) 20%, transparent);
  padding-top: var(--space-3);
  font-size: var(--step--1);
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Utility ---------- */

.leopard-stamp {
  display: inline-block;
  width: 28px; height: 28px;
  background-image: radial-gradient(ellipse at 30% 30%, var(--leopard) 0%, var(--leopard) 25%, transparent 28%),
                    radial-gradient(ellipse at 70% 65%, var(--leopard) 0%, var(--leopard) 20%, transparent 23%),
                    radial-gradient(ellipse at 40% 80%, var(--leopard) 0%, var(--leopard) 18%, transparent 21%);
  vertical-align: middle;
  margin: 0 0.3em;
  opacity: 0.7;
}

/* Neutral editor-note — muted sage. Reserved terracotta variant only for real warnings. */
.placeholder-note-block {
  background: color-mix(in srgb, var(--sage) 8%, transparent);
  border-left: 3px solid var(--sage);
  padding: var(--space-2) var(--space-3);
  font-size: var(--step--1);
  color: var(--sage-dark);
  margin: var(--space-2) 0;
  font-style: italic;
}
.placeholder-note-block.is-warning {
  background: color-mix(in srgb, var(--beige) 12%, transparent);
  border-left-color: var(--beige);
}

/* Section rhythm — break up the mechanical 6rem padding */
.section-sage, .section-cream-dim { padding: var(--space-7) 0; }
.hero + .section { padding-top: var(--space-4); }
.section + .section-sage, .section-sage + .section { padding-top: var(--space-6); }

/* Form container — gives forms visible weight on /book, /resources, /contact */
.booking-form {
  background: var(--cream-dim);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--sage) 15%, transparent);
}

/* Contact page: editorial "direct" list — dt/dd treatment */
.contact-list { margin: 0; padding: 0; }
.contact-list dt {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: var(--space-3);
  font-weight: 500;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd {
  margin: 4px 0 0;
  font-size: var(--step-0);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 15%, transparent);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Concept 1 — Contents-page hero
   Replaces the default .hero on index.html only. Namespaced to .hero-contents
   so it does not interfere with .hero on other pages.
   ========================================================================== */

.hero-contents {
  min-height: calc(100vh - 80px); /* accounts for sticky site-header */
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  grid-template-rows: 1fr 56px;
  background: var(--cream);
  padding: var(--space-4) 40px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 820px) {
  .hero-contents {
    grid-template-columns: 1fr;
    grid-template-rows: auto 48px;
    padding: var(--space-3) 18px 0;
  }
}

.hc-canvas {
  grid-column: 2 / 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 200px 1fr 360px;
  align-items: stretch;
  padding: 44px 0 40px;
  position: relative;
  min-height: 560px;
}
@media (max-width: 820px) {
  .hc-canvas {
    grid-column: 1;
    grid-template-columns: 1fr;
    padding: 24px 0 16px;
    gap: 0;
    min-height: auto;
  }
}

/* LEFT — rotated display (Learning, slow & sure.) */
.hc-edge {
  position: relative;
  border-right: 1px solid rgba(46,58,42,.15);
  overflow: hidden;
}
.hc-edge-inner { position: absolute; inset: 0; }
.hc-display {
  position: absolute;
  left: 150px;
  top: 40px;
  transform-origin: left top;
  transform: rotate(90deg);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(78px, 9.2vw, 140px);
  line-height: .88;
  letter-spacing: -.03em;
  color: var(--forest);
}
.hc-display em { font-style: italic; color: var(--sage); font-weight: 400; }
.hc-amp { color: var(--beige); font-style: italic; padding: 0 .05em; }

.hc-folio {
  position: absolute;
  bottom: 8px; left: 0; right: 12px;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sage);
  display: flex; justify-content: space-between;
}

@media (max-width: 820px) {
  .hc-edge {
    border-right: 0;
    border-bottom: 1px solid rgba(46,58,42,.15);
    min-height: 240px;
    padding-bottom: 18px;
    overflow: visible;
  }
  .hc-edge-inner { position: static; }
  .hc-display {
    position: static;
    transform: none;
    white-space: normal;
    font-size: 62px;
    line-height: .92;
    padding-top: 10px;
    letter-spacing: -.02em;
  }
  .hc-folio { position: static; margin-top: 18px; }
}

/* CENTER — Table of contents */
.hc-toc {
  padding: 8px 44px 0 44px;
  display: flex; flex-direction: column; gap: 0;
}
.hc-kicker {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sage);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.hc-kicker::after { content: ""; flex: 1; height: 1px; background: rgba(46,58,42,.22); }

.hc-toc-row {
  display: grid;
  grid-template-columns: 34px 1fr 64px;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(46,58,42,.14);
  text-decoration: none;
  color: inherit;
  transition: background-color 200ms ease;
}
.hc-toc-row:hover { background-color: color-mix(in srgb, var(--sage) 5%, transparent); }
.hc-toc-row .hc-sec {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: var(--beige);
}
.hc-toc-row .hc-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.hc-toc-row .hc-title em { font-style: italic; color: var(--sage); }
.hc-toc-row .hc-pg {
  font-size: 11px;
  letter-spacing: .22em;
  text-align: right;
  color: var(--forest);
  opacity: .7;
}

@media (max-width: 820px) {
  .hc-toc { padding: 22px 0 0 0; }
  .hc-toc-row { grid-template-columns: 28px 1fr 52px; padding: 14px 0; }
  .hc-toc-row .hc-title { font-size: 20px; }
}

/* RIGHT — founder's note + CTA */
.hc-meta {
  padding: 0 0 0 36px;
  display: flex; flex-direction: column; gap: 22px;
  border-left: 1px solid rgba(46,58,42,.15);
}
.hc-issue {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--sage);
}
.hc-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.3;
  color: var(--forest);
  letter-spacing: -.005em;
  max-width: 32ch;
  margin: 0;
}
.hc-lede .script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--beige);
  font-size: 1.2em;
  line-height: 1;
  padding: 0 .04em;
  display: inline-block;
  transform: translateY(.04em);
}
.hc-micro {
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.65;
  color: var(--forest);
  opacity: .78;
  max-width: 34ch;
  margin: 0;
}
.hc-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  background: var(--forest);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--forest);
  align-self: flex-start;
  transition: background 200ms ease, border-color 200ms ease;
}
.hc-cta::after { content: "→"; letter-spacing: 0; }
.hc-cta:hover { background: var(--sage); border-color: var(--sage); color: var(--cream); }
.hc-tag {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage);
  padding-top: 14px;
  border-top: 1px solid rgba(46,58,42,.15);
}

@media (max-width: 820px) {
  .hc-meta {
    padding: 24px 0 0 0;
    border-left: 0;
    border-top: 1px solid rgba(46,58,42,.15);
    margin-top: 18px;
    gap: 16px;
  }
}

.hc-bottom {
  grid-column: 2 / 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(46,58,42,.18);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--forest);
  opacity: .72;
}
@media (max-width: 820px) {
  .hc-bottom { grid-column: 1; font-size: 9px; letter-spacing: .22em; }
}

/* ==========================================================================
   Monstera bleed decorations
   Editorial botanical accents that crop in from a section edge.
   - Absolute-positioned SVGs, pointer-events: none, z-index 0
   - Section needs .section--with-bleed (adds position:relative + overflow:hidden)
   - Immediate children that carry content should be z-index:1 (handled here)
   - Each bleed variant sets its own anchor + color + size
   - Hidden on mobile (<= 600px) — they crowd narrow viewports
   ========================================================================== */

.section--with-bleed {
  position: relative;
  overflow: hidden;
}

/* Keep real content above the decoration without touching markup elsewhere.
   Exclude .bleed — it must keep its own position:absolute. */
.section--with-bleed > .container,
.section--with-bleed > *:not(.bleed) {
  position: relative;
  z-index: 1;
}

.bleed {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  display: block;
  /* Fluid: scales with viewport but never absurd at either extreme. */
  width: clamp(220px, 32vw, 440px);
  height: auto;
  aspect-ratio: 400 / 600;
  /* Default tone — overridden by variant below. */
  color: var(--sage, #5A6B4E);
  opacity: 0.14;
  /* Reserved for future hover / intersection reveals. No animation by default. */
  transition: opacity 400ms ease;
  will-change: auto;
}

/* Edge anchors. Negative offsets push the leaf past the section edge so it
   crops naturally instead of floating in a margin. */
.bleed--topleft     { top: -8%;    left: -6%;   transform: rotate(-6deg); }
.bleed--topright    { top: -10%;   right: -8%;  transform: rotate(8deg) scaleX(-1); }
.bleed--bottomleft  { bottom: -10%; left: -6%;  transform: rotate(4deg); }
.bleed--bottomright { bottom: -8%; right: -8%;  transform: rotate(-6deg); }
.bleed--midleft     { top: 30%;    left: -10%;  transform: rotate(-4deg); }
.bleed--midright    { top: 35%;    right: -10%; transform: rotate(4deg); }

/* Tone variants — pair with the section's background for the right value contrast.
   Rule of thumb:
   - On cream bg        → sage at 14–18%
   - On cream-dim bg    → forest at 10–14%
   - On sage bg (dark)  → cream at 10–14% (for the final CTA — lifts the corner without shouting)
   - On terracotta/blush → forest at 8–12%
*/
.bleed--sage      { color: var(--sage, #5A6B4E);      opacity: 0.16; }
.bleed--forest    { color: var(--forest, #2E3A2A);    opacity: 0.12; }
.bleed--cream     { color: var(--cream, #FAF6EB);     opacity: 0.13; }
.bleed--terracotta{ color: var(--beige); opacity: 0.18; }

/* Mobile: bleeds crowd the column. Hide entirely below 600px. */
@media (max-width: 600px) {
  .bleed { display: none; }
}

/* Reduced motion: no transition, no movement. (No animation in the first place,
   but belt-and-braces for any future enhancement.) */
@media (prefers-reduced-motion: reduce) {
  .bleed { transition: none; }
}

