/* Coreshift Mentoring and Coaching Services
   Design direction: warm, steady, rooted in community.
   World: the after-school homework club and the family kitchen table. Paper, ink and the logo's butter yellow.
   Built with principles from unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Warm paper ramp */
  --bg: #fcfaf4;
  --surface: #ffffff;
  --raised: #f5f0e3;
  --ink: #1e1b16;          /* primary text, 16.4:1 on bg */
  --ink-2: #574f43;        /* secondary text, 7.7:1 on bg */
  --ink-3: #6e6557;        /* muted meta, 5.5:1 on bg */
  --line: rgba(30, 27, 22, 0.1);
  --line-strong: rgba(30, 27, 22, 0.18);

  /* Brand: the butter yellow sampled from the logo, #F3E3AA */
  --butter: #f3e3aa;
  --butter-deep: #e8cf7f;
  --butter-soft: #f9efcc;
  --butter-pale: #fdf8e8;
  --gold: #c9a842;         /* decoration only, never text */
  --gold-ink: #7a5f12;     /* gold as text, 5.8:1 on bg */

  /* On ink */
  --on-ink: #fcfaf4;
  --on-ink-2: #b9b1a3;     /* 8.1:1 on ink */

  --error: #a33a2a;        /* 6.6:1 on white */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 64px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --enter: 480ms;

  --shadow-sm: 0 1px 2px rgba(30, 27, 22, 0.05);
  --shadow-md: 0 8px 24px rgba(30, 27, 22, 0.06);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; } /* 18px for long reading on desktop */
}

[hidden] { display: none !important; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }

::selection { background: var(--butter); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-sm);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 18px; height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.35;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
}
@media (min-width: 960px) { .lead { font-size: 1.25rem; } }

.meta {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-3);
}

.prose p + p { margin-top: 1em; }
.prose { color: var(--ink-2); max-width: 40rem; }
.prose strong { color: var(--ink); font-weight: 500; }

/* Signature: the core mark, a dot inside a ring */
.core-list { list-style: none; display: grid; gap: 12px; }
.core-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
}
.core-list li::before,
.core-list li::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.core-list li::before {
  left: 0; top: calc(0.8em - 8px);
  width: 16px; height: 16px;
  border: 1.5px solid var(--gold);
}
.core-list li::after {
  left: 5px; top: calc(0.8em - 3px);
  width: 6px; height: 6px;
  background: var(--ink);
}
.core-list.cols-2 { gap: 12px 32px; }
@media (min-width: 720px) {
  .core-list.cols-2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: #35302a; }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--raised); border-color: var(--line-strong); }

.btn-butter { background: var(--butter); color: var(--ink); }
.btn-butter:hover { background: #f7ebbf; }

.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--fast) var(--ease);
}
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow .icon { transition: transform var(--fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* Logo lockup: the logo's construction, ink type running across the butter CS */
.brand {
  display: inline-grid;
  place-items: center;
  height: 56px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand > * { grid-area: 1 / 1; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--butter);
  user-select: none;
}
.brand-name {
  display: grid;
  justify-items: center;
  gap: 4px;
  white-space: nowrap;
}
.brand-name b {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-name small {
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.06em;
}
@media (min-width: 720px) {
  .brand { height: 64px; }
  .brand-mark { font-size: 72px; }
  .brand-name b { font-size: 1.1875rem; }
}

.nav { display: none; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  /* the core mark, small, under the current page */
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  margin-right: -12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--raised); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  padding: 16px var(--gutter) 40px;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease),
    visibility 0s linear 200ms;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.mobile-menu ul { list-style: none; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.mobile-menu a[aria-current="page"] { color: var(--gold-ink); }
.mobile-menu .btn { width: 100%; margin-top: 24px; }
.mobile-menu .meta { margin-top: 24px; }
.mobile-menu .meta a { font-weight: 500; color: var(--ink); }
@media (min-width: 1100px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 960px) { .section { padding-block: 112px; } }
.section-raised { background: var(--raised); }
.section:not(.section-raised) + .section:not(.section-raised) { padding-top: 0; }
.section-tight { padding-top: 0; }

.section-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 44rem; }
@media (min-width: 960px) { .section-head { margin-bottom: 56px; } }

.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
  .split-even { grid-template-columns: 1fr 1fr; }
}

/* ---------- Home hero ---------- */
.hero { padding-block: 40px 64px; }
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-copy { display: grid; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 559px) { .hero-actions .btn { flex: 1 1 100%; } }
/* Photo frames: one radius family, a warm surface behind while loading */
.hero-photo, .page-hero-photo, .program-photo, .banner, .row-media {
  margin: 0;
  overflow: hidden;
  background: var(--raised);
}
.hero-photo img, .page-hero-photo img, .program-photo img, .banner img, .row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-xl); }
@media (max-width: 559px) { .hero-photo { aspect-ratio: 1 / 1; } .hero-photo img { object-position: 50% 30%; } }

@media (min-width: 960px) {
  .hero { padding-block: 32px 80px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    min-height: min(calc(100svh - var(--header-h) - 112px), 720px);
  }
  .hero-photo { max-width: 540px; justify-self: end; }
}

/* Approach: words and principles beside the village */
.approach-grid { display: grid; gap: 48px; }
.village-figure { margin: 0; width: 100%; max-width: 440px; justify-self: center; }
.village-figure figcaption { margin-top: 16px; text-align: center; }
@media (min-width: 960px) {
  .approach-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: center; }
  .village-figure { max-width: 520px; justify-self: end; }
}

/* The village: rings around a person */
.village { width: 100%; height: auto; overflow: visible; }
.village .ring { stroke: rgba(30, 27, 22, 0.12); stroke-width: 1; }
.village .label { font-family: var(--sans); font-size: 15px; font-weight: 500; fill: var(--ink); }
.village .label-core { font-family: var(--serif); font-size: 34px; font-weight: 500; fill: var(--butter); }
.village .label-core-sub { font-family: var(--sans); font-size: 14px; fill: var(--on-ink-2); }
.village .person { fill: var(--ink); }
.village .person.gold { fill: var(--gold-ink); }
.village .service { fill: none; stroke: var(--gold-ink); stroke-width: 1.5; }
/* Keep ring labels at 11px or more when the figure is phone sized */
@media (max-width: 959px) {
  .village .label { font-size: 21px; }
  .village .label-core { font-size: 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: fade-in var(--enter) var(--ease) both; }
  .hero-copy > * { animation: rise-in var(--enter) var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 50ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 100ms; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Row list (audiences, services) ---------- */
.row-list { list-style: none; border-top: 1px solid var(--line); }
.row-list > li { border-bottom: 1px solid var(--line); }

.row {
  display: grid;
  gap: 12px;
  padding: 28px 0;
  color: inherit;
  text-decoration: none;
}
a.row { cursor: pointer; }
.row-media { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); margin-bottom: 8px; }
.row-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.15;
}
.row-desc { color: var(--ink-2); }
.row-items { list-style: none; display: grid; gap: 4px; font-size: 0.9375rem; color: var(--ink-3); }
.row-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
a.row:hover .row-arrow { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
a.row:hover .row-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

@media (min-width: 960px) {
  .row {
    grid-template-columns: 200px minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) 44px;
    gap: 32px;
    padding: 32px 0;
    align-items: start;
  }
  .row-media { aspect-ratio: 4 / 3; margin-bottom: 0; }
  .row-title { font-size: 2rem; }
}

/* Service rows: title, format, description, action */
.service-row {
  display: grid;
  gap: 8px;
  padding: 28px 0;
}
.service-row h2, .service-row h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.2;
}
.service-row .tag { justify-self: start; }
.service-row p { color: var(--ink-2); max-width: 36rem; }
.service-row .link-arrow { margin-top: 8px; justify-self: start; }
@media (min-width: 960px) {
  .service-row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr);
    gap: 40px;
    padding: 40px 0;
    align-items: baseline;
  }
  .service-row .service-body { display: grid; gap: 12px; }
  .service-row .link-arrow { margin-top: 0; }
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--butter-soft);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Principles ---------- */
.principles { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.principles li {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 20px;
  row-gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}
.principles .core {
  grid-row: span 2;
  position: relative;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}
.principles .core::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.principles p { color: var(--ink-2); }

/* ---------- Sectors ---------- */
.sectors { margin-top: 8px; }
.sectors-label { margin-bottom: 16px; }

/* ---------- Founder moment ---------- */
.founder-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .founder-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; }
}

/* Mirrors the logo: small ink type running across giant butter letters */
.monogram {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 280px;
}
.monogram-letters {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(13rem, 36vw, 24rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--butter);
  user-select: none;
}
.monogram-quote {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding-inline: 16px;
}
.monogram-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.monogram-quote figcaption {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.founder-copy { display: grid; gap: 24px; }

.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.figure-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.figure-label { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }

/* Founder portrait slot, ready for a real photo */
.portrait {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--raised);
  aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 840px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold-ink);
  font-variant-numeric: lining-nums;
}
.steps p { color: var(--ink-2); }

/* ---------- Closing band ---------- */
.band {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-xl);
  padding: 48px 24px;
  display: grid;
  gap: 24px;
}
.band p { color: var(--on-ink-2); max-width: 36rem; }
.band .meta { color: var(--on-ink-2); }
.band :focus-visible { outline-color: var(--butter); }
@media (min-width: 960px) {
  .band {
    padding: 72px 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
  }
  .band-actions { justify-self: end; text-align: right; }
}
.band-actions { display: grid; gap: 16px; justify-items: start; }
@media (min-width: 960px) { .band-actions { justify-items: end; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: 40px 56px; }
@media (min-width: 960px) { .page-hero { padding-block: 64px 96px; } }
.page-hero-grid { display: grid; gap: 40px; }
.page-hero-grid.has-photo { grid-template-areas: "copy" "photo" "glance"; }
.page-hero-grid.has-photo .page-hero-copy { grid-area: copy; }
.page-hero-grid.has-photo .page-hero-photo { grid-area: photo; }
.page-hero-grid.has-photo .glance { grid-area: glance; }
.page-hero-photo { aspect-ratio: 4 / 3; border-radius: var(--r-xl); }
@media (min-width: 960px) {
  .page-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: end; }
  .page-hero-grid.has-photo {
    grid-template-areas: "copy photo" "glance photo";
    grid-template-rows: auto 1fr;
    align-items: start;
    row-gap: 40px;
  }
  .page-hero-photo { aspect-ratio: 1 / 1; align-self: center; }
}
.page-hero-copy { display: grid; gap: 20px; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* At a glance: the program index */
.glance {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 20px;
  box-shadow: var(--shadow-sm);
}
.glance-title { padding: 16px 0 8px; }
.glance ol { list-style: none; }
.glance li + li { border-top: 1px solid var(--line); }
.glance a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.glance a span:last-child { font-weight: 400; font-size: 0.875rem; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.glance a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Program sections ---------- */
.programs { border-top: 1px solid var(--line); }
.program {
  display: grid;
  gap: 24px;
  padding-block: 56px;
  border-bottom: 1px solid var(--line);
}
.program-meta { display: grid; gap: 16px; align-content: start; }
.program-meta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.program-meta .tag { justify-self: start; }
.program-summary { font-size: 1.125rem; color: var(--ink); line-height: 1.5; }
.program-meta .btn { justify-self: start; margin-top: 8px; }
.program-body { display: grid; gap: 32px; align-content: start; }
.program-photo { aspect-ratio: 3 / 2; border-radius: var(--r-lg); }

.banner-wrap { padding-bottom: 64px; }
@media (min-width: 960px) { .banner-wrap { padding-bottom: 112px; } }
.banner { aspect-ratio: 4 / 3; border-radius: var(--r-xl); }
@media (min-width: 720px) { .banner { aspect-ratio: 21 / 9; } }
.program-body h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 16px; }

@media (min-width: 960px) {
  .program {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    padding-block: 80px;
  }
  .program-meta { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Package card (postnatal) */
.package {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .package { padding: 32px; } }
.package h3 { margin-bottom: 20px; }
.package .core-list li { color: var(--ink); }

/* Callout card */
.callout {
  display: grid;
  gap: 16px;
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: var(--butter-pale);
  border: 1px solid rgba(201, 168, 66, 0.35);
}
@media (min-width: 960px) {
  .callout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 40px; }
}
.callout p { color: var(--ink-2); max-width: 40rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 200ms var(--ease); color: var(--ink-3); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--ink-2); max-width: 44rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .form-card { padding: 40px; } }

.form { display: grid; gap: 24px; }
.form-row { display: grid; gap: 24px; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 500; font-size: 1rem; color: var(--ink); padding: 0; }
.field .hint { font-size: 0.875rem; color: var(--ink-3); margin-top: -4px; }
.field .optional { font-weight: 400; color: var(--ink-3); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.textarea { min-height: 144px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236e6557' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(30, 27, 22, 0.32); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(243, 227, 170, 0.9);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 0.875rem; color: var(--error); font-weight: 500; }
.field-error:empty { display: none; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: grid; gap: 8px; margin-top: 4px; }
@media (min-width: 720px) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.choice:hover { background: var(--bg); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--butter-pale); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions .meta { max-width: 24rem; }

.form-status {
  padding: 16px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
}
.form-status[hidden] { display: none; }
.form-status.is-error { background: #fbeeeb; color: #7d2b1f; border: 1px solid rgba(163, 58, 42, 0.25); }

.form-success { display: grid; gap: 16px; padding: 8px 0; }
.form-success[hidden] { display: none; }

.aside-block { padding-block: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.aside-block:first-child { border-top: 0; padding-top: 0; }
.aside-block h2 { font-size: 1.0625rem; font-weight: 600; }
.aside-block p, .aside-block li { color: var(--ink-2); font-size: 0.9375rem; }
.aside-block a { font-weight: 500; }

.contact-links { list-style: none; display: grid; gap: 8px; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--ink);
  text-decoration: none;
}
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-links .icon { color: var(--ink-3); }

/* ---------- Urgent help ---------- */
.urgent {
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 20px;
  display: grid;
  gap: 12px;
}
.urgent h2, .urgent h3 { font-size: 1rem; font-weight: 600; }
.urgent p { font-size: 0.9375rem; color: var(--ink-2); }
.urgent ul { list-style: none; display: grid; gap: 4px; font-size: 0.9375rem; }
.urgent li { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.urgent a { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--raised);
  padding-block: 64px 32px;
  font-size: 0.9375rem;
}
@media (min-width: 960px) { .site-footer { padding-block: 80px 40px; } }

.footer-grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr); gap: 48px; } }

.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 200px; }
.footer-brand p { color: var(--ink-2); max-width: 22rem; }

.footer-col h2 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.footer-ack {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 16px;
}
@media (min-width: 960px) { .footer-ack { grid-template-columns: 1fr 1fr; gap: 48px; } }
.footer-ack p { color: var(--ink-2); max-width: 36rem; }

.footer-base {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.stack-16 { display: grid; gap: 16px; }
.stack-24 { display: grid; gap: 24px; }
.max-prose { max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .mobile-menu, .band { display: none; }
  body { background: #fff; }
}
