/* =====================================================================
   Wren School — site stylesheet (mobile-first)
   All brand decisions live in the :root tokens below. Tweak them here.
   ===================================================================== */
:root {
  /* ---- Palette ---------------------------------------------------- */
  --white: #ffffff;              /* PRIMARY: page background */
  --oxford: #002147;             /* SECONDARY / brand: header, footer, headings, buttons, links */
  --oxford-hover: #0b2e5c;       /* hover / pressed */
  --oxford-tint: #e8edf4;        /* light panels */
  --oxford-tint-2: #f4f7fb;      /* very light panels, alt sections */
  --oxford-line: #d5dde8;        /* borders on blue-tinted areas */
  --gold: #c8a24a;               /* small warm accent: header CTA, highlights (backgrounds/decoration only, not text on white) */
  --gold-hover: #b38e3a;
  --text: #1f2937;               /* body text */
  --text-muted: #4b5563;         /* secondary text */
  --line: #e5e7eb;               /* neutral borders */
  --error: #b42318;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d3e1;

  /* ---- Typography ------------------------------------------------- */
  --font-headline: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif; /* big light headlines */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;                /* card titles, accents */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Modular scale, ratio 1.25 */
  --fs-xs: 0.875rem;   /* 14px */
  --fs-sm: 1rem;       /* 16px */
  --fs-body: 1.125rem; /* 18px body */
  --fs-md: 1.25rem;    /* 20px */
  --fs-lg: 1.5625rem;  /* 25px */
  --fs-xl: 1.9375rem;  /* 31px */
  --fs-2xl: 2.4375rem; /* 39px */
  --fs-3xl: 3.0625rem; /* 49px */
  --lh-body: 1.6;
  --lh-tight: 1.2;
  --measure: 68ch;

  /* ---- Spacing (4/8px scale) -------------------------------------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* ---- Shape ------------------------------------------------------ */
  --radius: 16px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(0, 33, 71, .04);
  --max: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--oxford); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--oxford-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---- Headings ------------------------------------------------------ */
h1, h2, h3, h4, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -.01em;
  color: var(--oxford);
  margin: 0 0 var(--sp-4);
}
h1, h2 {
  font-family: var(--font-headline);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3, .h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -.01em; }
h4 { font-size: var(--fs-body); }
@media (min-width: 720px) {
  h3, .h3 { font-size: var(--fs-lg); }
}
p { margin: 0 0 var(--sp-4); }
ul, ol { padding-left: 1.25em; margin: 0 0 var(--sp-4); }
li { margin: var(--sp-1) 0; }

.skip-link {
  position: absolute; left: -999px; top: var(--sp-2); z-index: 100;
  background: var(--gold); color: var(--oxford); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: var(--sp-2); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--sp-4); }
@media (min-width: 720px) { .container { padding: 0 var(--sp-6); } }
.narrow { max-width: 800px; }

/* ---- Header (Oxford Blue) ------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--oxford); color: var(--on-dark); transition: background-color .25s ease, box-shadow .25s ease; }
/* Homepage: header floats over the full-bleed hero, turns solid once you scroll */
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.is-overlay.is-solid, .site-header.is-overlay:has(.site-nav.is-open) { background: var(--oxford); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
@media (min-width: 960px) { .header-inner { min-height: 84px; } .site-nav ul { gap: var(--sp-6) !important; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand svg { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); letter-spacing: .01em; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3); font: inherit; font-size: var(--fs-sm); color: var(--on-dark); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--oxford); border-top: 1px solid rgba(255, 255, 255, .12); padding: var(--sp-2) var(--sp-4) var(--sp-5);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: var(--sp-3) var(--sp-1); text-decoration: none; color: var(--on-dark); font-weight: 500; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.site-nav a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.site-nav .btn { margin-top: var(--sp-2); text-align: center; }
.no-js .site-nav { display: block; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: var(--sp-5); }
  .site-nav a { padding: var(--sp-1) 0; }
  .site-nav .btn { margin: 0 0 0 var(--sp-2); }
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .08em; text-align: center;
  line-height: 1.2; padding: 20px 28px; border-radius: var(--radius-sm); border: 1.5px solid var(--oxford);
  background: var(--oxford); color: var(--on-dark); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--oxford-hover); border-color: var(--oxford-hover); color: var(--on-dark); text-decoration: none; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: var(--white); color: var(--oxford); }
.btn-ghost:hover { background: var(--oxford-tint); color: var(--oxford); border-color: var(--oxford); }
.btn-accent { background: var(--gold); border-color: var(--gold); color: var(--oxford); }
.btn-accent:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--oxford); text-decoration: none; }
/* White button for dark backgrounds (header, hero, CTA) */
.btn-light, .site-nav a.btn { background: var(--white); border-color: var(--white); color: var(--oxford); }
.btn-light:hover, .site-nav a.btn:hover { background: var(--oxford-tint); border-color: var(--oxford-tint); color: var(--oxford); text-decoration: none; }
.site-nav a.btn { padding: 16px 24px; letter-spacing: .08em; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.btn-row-center { justify-content: center; }

/* ---- Sections ------------------------------------------------------ */
.section { padding: var(--sp-8) 0; }
@media (min-width: 720px) { .section { padding: var(--sp-9) 0; } }
.section-alt { background: var(--oxford-tint-2); }
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4);
}
.lead { font-size: var(--fs-md); color: var(--text-muted); max-width: var(--measure); }
.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head .lead { margin-bottom: 0; }

/* ---- Hero ---------------------------------------------------------- */
.hero { padding: var(--sp-8) 0 var(--sp-7); }
@media (min-width: 720px) { .hero { padding: var(--sp-9) 0 var(--sp-8); } }
.hero-grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); } }
.hero h1 em { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; }
.trust-list { list-style: none; padding: 0; margin: var(--sp-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); color: var(--text-muted); font-size: var(--fs-sm); }
.trust-list li { display: flex; align-items: center; gap: var(--sp-2); margin: 0; }
.trust-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---- Image slots ----------------------------------------------------
   Real photos go in /public/images/ under the same file names
   (hero.jpg, about.jpg, program-*.jpg). Placeholders ship there now. */
.media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--oxford-tint); border: 1px solid var(--oxford-line); }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.card-media { margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-4); border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.card-media img { aspect-ratio: 16 / 10; }

/* ---- Cards & grids ------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-2 { gap: var(--sp-7); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-5); box-shadow: var(--shadow-soft); overflow: hidden;
}
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--text); transition: border-color .15s ease; }
a.card:hover { border-color: var(--oxford); color: var(--text); }
a.card p { color: var(--text-muted); }
.card-tint { background: var(--oxford-tint); border-color: var(--oxford-line); box-shadow: none; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--oxford); }
.card .price-hint { color: var(--oxford); font-weight: 600; font-size: var(--fs-sm); }

/* ---- Steps --------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }
.steps li { counter-increment: step; margin: 0; position: relative; padding-top: var(--sp-7); }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--oxford); color: var(--on-dark); font-weight: 600; font-size: var(--fs-sm);
}
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.steps p { color: var(--text-muted); }

/* ---- Pricing ------------------------------------------------------- */
.price-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price-card { display: flex; flex-direction: column; padding: var(--sp-6); }
.price-card.featured { border: 2px solid var(--oxford); }
.price-card .badge {
  align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold); color: var(--oxford); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); margin-bottom: var(--sp-4);
}
.price-from { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; margin: var(--sp-4) 0 var(--sp-1); }
.price { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; line-height: 1; color: var(--oxford); margin: 0 0 var(--sp-2); }
.price small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }
.price-card ul { list-style: none; padding: var(--sp-4) 0 0; margin: var(--sp-4) 0 var(--sp-6); border-top: 1px solid var(--line); }
.price-card li { padding-left: var(--sp-5); position: relative; font-size: var(--fs-sm); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--oxford); font-weight: 700; }
.price-card .btn { margin-top: auto; text-align: center; }
.fine-print { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-5); max-width: var(--measure); }

/* ---- Programs ------------------------------------------------------ */
.band { scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }
.band + .band { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--line); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-2); }
.band-head h2 { margin: 0; }
.band-head p { margin: 0; color: var(--text-muted); font-family: var(--font-display); font-style: italic; font-size: var(--fs-md); }
.subject-tag { display: block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--oxford); margin-bottom: var(--sp-2); }
.band .card p { font-size: var(--fs-sm); color: var(--text-muted); }
.jump { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.jump li { margin: 0; }
.jump a { display: inline-block; padding: var(--sp-2) var(--sp-4); border: 1px solid var(--oxford-line); border-radius: var(--radius-pill); background: var(--white); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.jump a:hover { background: var(--oxford-tint); }

/* ---- FAQ ----------------------------------------------------------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 var(--sp-5); }
.faq details + details { margin-top: var(--sp-3); }
.faq summary { cursor: pointer; padding: var(--sp-4) var(--sp-6) var(--sp-4) 0; font-weight: 600; color: var(--oxford); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: var(--fs-lg); color: var(--oxford); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: var(--sp-4); color: var(--text-muted); max-width: var(--measure); }

/* ---- CTA band ------------------------------------------------------ */
.cta-band { background: var(--oxford); color: var(--on-dark); border-radius: var(--radius); padding: var(--sp-8) var(--sp-5); text-align: center; }
@media (min-width: 720px) { .cta-band { padding: var(--sp-8); } }
.cta-band h2 { color: var(--on-dark); }
.cta-band .btn { background: var(--white); border-color: var(--white); color: var(--oxford); }
.cta-band .btn:hover { background: var(--oxford-tint); border-color: var(--oxford-tint); color: var(--oxford); }
.cta-band p { color: var(--on-dark-muted); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---- Forms --------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); }
@media (min-width: 720px) { .form-card { padding: var(--sp-7); } }
.field { display: grid; gap: var(--sp-2); }
.field-row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.optional { font-weight: 400; color: var(--text-muted); font-size: var(--fs-xs); }
.hint { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--text);
  background: var(--white); border: 1px solid #9ca3af; border-radius: var(--radius-sm); padding: var(--sp-3);
}
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--oxford); box-shadow: 0 0 0 3px rgba(0, 33, 71, .18); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: var(--sp-2); }
.choices { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block; padding: var(--sp-2) var(--sp-4); border: 1px solid #9ca3af; border-radius: var(--radius-pill);
  background: var(--white); cursor: pointer; font-weight: 500; font-size: var(--fs-sm); user-select: none;
}
.choice span:hover { border-color: var(--oxford); }
.choice input:checked + span { background: var(--oxford); border-color: var(--oxford); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: var(--sp-3); align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--oxford); flex: none; }
.field-error { color: var(--error); font-size: var(--fs-xs); font-weight: 600; margin: var(--sp-2) 0 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-layout { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.form-aside { display: grid; gap: var(--sp-5); }
.form-aside ol, .form-aside ul { font-size: var(--fs-sm); }

/* ---- Article / prose ----------------------------------------------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-6); }
.prose li { margin: var(--sp-2) 0; }
.prose table { border-collapse: collapse; width: 100%; margin: var(--sp-5) 0; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: var(--sp-2) var(--sp-3); text-align: left; vertical-align: top; }
.prose thead th { background: var(--oxford); color: var(--on-dark); }
.prose tbody th { background: var(--oxford-tint-2); color: var(--oxford); }
.table-wrap { overflow-x: auto; }
.post-meta { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-6); }
.post-list { display: grid; gap: var(--sp-5); }
.post-list .card { padding: var(--sp-6); }
.post-list .card h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.post-list .card h2 a { text-decoration: none; }
.post-list .card h2 a:hover { text-decoration: underline; }
.post-list .post-meta { margin-bottom: var(--sp-3); }
.breadcrumb { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-4); }
.notice { background: #fdf6e3; border: 1px solid #e9d8a6; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6); color: #4a3b12; }

/* ---- Footer (Oxford Blue) ------------------------------------------ */
.site-footer { background: var(--oxford); color: var(--on-dark-muted); padding: var(--sp-8) 0 var(--sp-6); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark); margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer .brand { color: var(--on-dark); }
.footer-blurb { margin-top: var(--sp-3); max-width: 36ch; }
.footer-bottom { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); justify-content: space-between; font-size: var(--fs-xs); }

/* ---- Utilities ----------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* =====================================================================
   Homepage (editorial, full-bleed)
   ===================================================================== */
.home main { overflow-x: clip; }

/* ---- Full-bleed hero ----------------------------------------------- */
.hero-full {
  position: relative; isolation: isolate;
  min-height: clamp(640px, 100svh, 1000px);
  display: grid; place-items: center; text-align: center;
  color: var(--on-dark);
  padding: calc(var(--header-h) + var(--sp-7)) 0 var(--sp-9);
  /* Fallback until the real hero photo is in place: deep Oxford Blue */
  background: radial-gradient(120% 90% at 50% 15%, #0d3a72 0%, #002147 55%, #00142c 100%);
}
.hero-full-media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-full-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,20,44,.55) 0%, rgba(0,33,71,.35) 40%, rgba(0,20,44,.75) 100%);
}
.hero-full h1 {
  color: var(--on-dark); margin: 0 auto var(--sp-6);
  font-size: clamp(3rem, 9vw, 7.5rem); line-height: .98; letter-spacing: -.055em;
  max-width: 11ch;
}
.hero-full .hero-sub { font-size: var(--fs-md); color: rgba(255,255,255,.88); max-width: 46ch; margin: 0 auto var(--sp-6); }
.hero-full .hero-note { font-size: var(--fs-sm); color: rgba(255,255,255,.72); margin: var(--sp-5) 0 0; }

/* ---- Centered section head ---------------------------------------- */
.head-center { text-align: center; max-width: 760px; margin: 0 auto var(--sp-8); }
.head-center p { color: var(--text-muted); font-size: var(--fs-md); margin: var(--sp-4) auto 0; max-width: 52ch; }

/* ---- Pill row ------------------------------------------------------ */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); list-style: none; padding: 0; margin: calc(-1 * var(--sp-6)) 0 var(--sp-7); }
.pills li { margin: 0; }
.pills a { display: inline-block; padding: 12px 22px; border-radius: var(--radius-pill); text-decoration: none; color: var(--text); font-size: var(--fs-sm); }
.pills a:hover, .pills a.is-active { background: var(--oxford-tint); color: var(--oxford); }

/* ---- Group-size panels (big numerals) ------------------------------ */
.sizes { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .sizes { grid-template-columns: repeat(3, 1fr); } }
.size {
  display: flex; flex-direction: column; min-height: 420px;
  border-radius: var(--radius); padding: var(--sp-6); text-decoration: none;
  background: var(--oxford-tint-2); color: var(--text); transition: transform .25s ease;
}
.size:hover { transform: translateY(-4px); color: var(--text); }
.size.is-dark { background: var(--oxford); color: var(--on-dark-muted); }
.size.is-dark:hover { color: var(--on-dark-muted); }
.size .size-num { font-family: var(--font-headline); font-weight: 300; font-size: clamp(7rem, 14vw, 11rem); line-height: .8; letter-spacing: -.06em; color: var(--oxford); margin: 0 0 auto; }
.size.is-dark .size-num, .size.is-dark h3 { color: var(--on-dark); }
.size h3 { font-family: var(--font-display); font-weight: 400; margin: var(--sp-6) 0 var(--sp-2); }
.size p { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); }
.size .size-price { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 0; }

/* ---- Subject image cards ------------------------------------------- */
.subjects { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .subjects { grid-template-columns: repeat(2, 1fr); } }
.subject {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-start;
  min-height: 460px; border-radius: var(--radius); overflow: hidden; padding: var(--sp-6);
  text-decoration: none; color: var(--on-dark);
  background: linear-gradient(160deg, #0d3a72, #002147);
}
.subject img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.subject::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,20,44,.72) 0%, rgba(0,20,44,.15) 55%, rgba(0,20,44,.35) 100%); }
.subject:hover { color: var(--on-dark); }
.subject:hover img { transform: scale(1.04); }
.subject h3 { font-family: var(--font-display); font-weight: 400; color: var(--on-dark); font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.02em; margin: 0 0 var(--sp-3); }
.subject p { max-width: 38ch; color: rgba(255,255,255,.9); margin: 0; }
.subject .more { margin-top: auto; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }

/* ---- Numbered steps (editorial) ----------------------------------- */
.steps-x { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-6); counter-reset: s; }
@media (min-width: 900px) { .steps-x { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }
.steps-x li { counter-increment: s; margin: 0; border-top: 1px solid var(--oxford); padding-top: var(--sp-5); }
.steps-x li::before { content: "0" counter(s); display: block; font-family: var(--font-headline); font-weight: 300; font-size: 3rem; letter-spacing: -.04em; line-height: 1; color: var(--oxford); margin-bottom: var(--sp-5); }
.steps-x h3 { font-family: var(--font-display); font-weight: 400; margin-bottom: var(--sp-2); }
.steps-x p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* ---- Story split --------------------------------------------------- */
.story { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: var(--sp-9); } }
.story-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--oxford-tint); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story blockquote { margin: 0 0 var(--sp-6); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; color: var(--oxford); }
.story .ticks { list-style: none; padding: 0; margin: var(--sp-6) 0; border-top: 1px solid var(--line); }
.story .ticks li { margin: 0; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }

/* ---- Closing full-bleed CTA ---------------------------------------- */
.closing { background: var(--oxford); color: var(--on-dark-muted); text-align: center; padding: var(--sp-9) 0; }
@media (min-width: 720px) { .closing { padding: 160px 0; } }
.closing h2 { color: var(--on-dark); font-size: clamp(2.5rem, 7vw, 5.5rem); letter-spacing: -.055em; max-width: 14ch; margin: 0 auto var(--sp-5); }
.closing p { max-width: 50ch; margin: 0 auto var(--sp-6); }

.fine-print.center { max-width: none; }

/* ---- Editorial refinements ----------------------------------------- */
h1, h2, .story blockquote { text-wrap: balance; }
.closing h2 { max-width: 12ch; }
.closing + .site-footer, .home .site-footer { border-top: 1px solid rgba(255,255,255,.12); }
.faq details { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 0; background: none; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq details + details { margin-top: 0; }
.faq summary { padding: var(--sp-5) var(--sp-7) var(--sp-5) 0; font-weight: 500; font-size: var(--fs-md); }
.faq summary::after { top: 22px; font-weight: 300; }
