/* ==========================================================================
   YOUR COMPUTER SCIENCE TEACHER — with Miss Riya
   Editorial design system. Static CSS, no preprocessor, no build step.

   01 Tokens
   02 Reset & base
   03 Typography
   04 Buttons & links
   05 Motion
   06 Header
   07 Hero & credibility strip
   08 Value statement
   09 Curricula
   10 About
   11 Results
   12 Approach
   13 Testimonials (used only when the section is uncommented)
   14 Final CTA
   15 Contact & form
   16 Footer
   17 Mobile contact bar
   18 Responsive
   19 Reduced motion & print
   ========================================================================== */


/* 01 Tokens ============================================================== */
:root {
  --paper:      #F7F6F2;
  --ink:        #101820;
  --bronze:     #A4875C;
  --grey:       #697078;
  --white:      #FFFFFF;

  --ink-80:     rgba(16, 24, 32, 0.80);
  --rule:       rgba(16, 24, 32, 0.14);
  --rule-soft:  rgba(16, 24, 32, 0.08);
  --rule-light: rgba(247, 246, 242, 0.20);
  --paper-mute: rgba(247, 246, 242, 0.66);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-h1:    clamp(2.35rem, 4.1vw, 3.6rem);
  --fs-h2:    clamp(1.85rem, 2.9vw, 2.6rem);
  --fs-h3:    clamp(1.15rem, 1.5vw, 1.35rem);
  --fs-lead:  clamp(1.45rem, 2.3vw, 2.05rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  --shell:     1200px;
  --gutter:    clamp(1.35rem, 5vw, 3.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius:    4px;

  --ease: cubic-bezier(0.33, 0, 0.2, 1);
  --header-h: 76px;
}


/* 02 Reset & base ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
::selection { background: rgba(164, 135, 92, 0.25); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; font-size: var(--fs-small);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--ink   { background: var(--ink); color: var(--paper); }


/* 03 Typography ========================================================== */
.h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.012em;
  max-width: 19ch;
}
.h2--light { color: var(--paper); }

.section-label,
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}

.section-head {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.prose { margin-top: 1.75rem; }
.prose p { color: var(--grey); line-height: 1.8; max-width: 60ch; }


/* 04 Buttons & links ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 320ms var(--ease), color 320ms var(--ease),
              border-color 320ms var(--ease);
}
.btn--sm { padding: 0.62rem 1.05rem; font-size: 0.875rem; }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--ink:hover { background: #1c2833; border-color: #1c2833; }

.btn--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--paper:hover { background: var(--white); border-color: var(--white); }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}
.link-cta:hover { border-color: var(--bronze); color: var(--bronze); }
.link-cta--light { color: var(--paper); border-color: var(--rule-light); }
.link-cta--light:hover { color: var(--white); border-color: var(--bronze); }

.curriculum .link-quiet { margin-top: auto; align-self: flex-start; }

.link-quiet {
  font-size: var(--fs-small);
  color: var(--grey);
  border-bottom: 1px solid transparent;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
.link-quiet:hover { color: var(--bronze); border-color: var(--bronze); }


/* 05 Motion ============================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0ms);
}


/* 06 Header ============================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.site-header.is-stuck {
  background: rgba(247, 246, 242, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.wordmark { display: block; line-height: 1.2; }
.wordmark__main {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark__sub {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--grey);
  margin-top: 0.15rem;
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 1.9rem); }
.nav__link {
  font-size: var(--fs-small);
  color: var(--ink);
  white-space: nowrap;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 280ms var(--ease), border-color 280ms var(--ease);
}
.nav__link:hover,
.nav__link.is-current { color: var(--bronze); border-bottom-color: var(--bronze); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 96;
  width: 40px; height: 40px;
  padding: 12px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle__bar {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(16, 24, 32, 0.35);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.nav-scrim.is-open { opacity: 1; }


/* 07 Hero & credibility strip ============================================ */
.hero {
  background: var(--paper);
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: 0;
}

.hero__shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.018em;
  max-width: 17ch;
  margin-bottom: 1.75rem;
}

.hero__support {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--grey);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

.hero__author {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}
.hero__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.hero__role {
  display: block;
  font-size: var(--fs-small);
  color: var(--grey);
  margin-top: 0.15rem;
}

.hero__curricula {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.hero__curricula i { font-style: normal; color: var(--bronze); padding-inline: 0.5rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero__portrait { margin: 0; }
.hero__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 74vh;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius);
}

/* Fallback block if a photograph is ever missing */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--grey);
  font-size: var(--fs-small);
}

.credibility {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.credibility li {
  min-width: 0;
  padding: 1.45rem clamp(1rem, 2.6vw, 2.25rem);
  border-left: 1px solid var(--rule);
}
.credibility li:first-child {
  border-left: 0;
  padding-left: 0;
}
.credibility li:last-child { padding-right: 0; }
.credibility strong {
  display: block;
  margin-bottom: 0.38rem;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.credibility span {
  display: block;
  color: var(--grey);
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.45;
  text-transform: uppercase;
}


/* 08 Value statement ===================================================== */
.statement {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.statement__lead {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.012em;
  margin: 0;
}
.statement__body p {
  color: var(--grey);
  line-height: 1.85;
}
.statement__body p:last-child { margin-bottom: 0; }


/* 09 Curricula =========================================================== */
.curricula {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0;
  row-gap: 2.75rem;
}
.curriculum {
  display: flex;
  flex-direction: column;
  min-height: 16.5rem;
  padding: 2rem clamp(1.35rem, 2.5vw, 2.25rem) 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.curriculum:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}
.curriculum:nth-child(3n) { padding-right: 0; }
.curriculum__name {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.curriculum__list { margin-bottom: 2rem; }
.curriculum__list li {
  color: var(--grey);
  font-size: var(--fs-small);
  padding-block: 0.35rem;
  line-height: 1.55;
}
.curriculum .link-quiet { margin-top: auto; align-self: flex-start; }
.spec-code {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  color: var(--bronze);
  white-space: nowrap;
}


/* 10 About =============================================================== */
.about__shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.about__media { margin: 0; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  margin: 3rem 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}
.fact dt {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
}
.fact dd {
  margin: 0.35rem 0 0;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.quote {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--bronze);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.quote p::before { content: "\201C"; }
.quote p::after  { content: "\201D"; }


/* 11 Results ============================================================= */
.results-head { max-width: 58rem; }
.results-intro {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: var(--grey);
  font-size: var(--fs-small);
  line-height: 1.8;
}
.results-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.results-summary__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 8.5rem;
  padding: 1.5rem clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--rule);
}
.results-summary__item:first-child { border-left: 0; padding-left: 0; }
.results-summary__item strong {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5vw, 5.25rem);
  font-weight: 300;
  line-height: 1;
}
.results-summary__item span {
  color: var(--grey);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
}
.result-groups {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
}
.result-group {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.result-group__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.result-group__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--bronze);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.result-group__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 400;
}
.result-group__head > p {
  margin: 0;
  color: var(--grey);
  font-size: var(--fs-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.actual-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.actual-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 6.5rem;
  padding: 1.2rem 1.75rem 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}
.actual-result:nth-child(even) {
  padding-left: 1.75rem;
  padding-right: 0;
  border-left: 1px solid var(--rule);
}
.actual-result h4 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
}
.actual-result p {
  margin: 0;
  color: var(--grey);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.actual-result > strong {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
}
.actual-result--strong > strong { border-color: rgba(16, 24, 32, 0.28); }
.results__note {
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  max-width: 72ch;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--grey);
}


/* 12 Approach ============================================================ */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stage {
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--rule);
}
.stage:first-child { padding-left: 0; border-left: 0; }
.stage:last-child { padding-right: 0; }

.stage__num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--bronze);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.stage__title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.stage__text { color: var(--grey); margin: 0; max-width: 32ch; }


/* 13 Testimonials ======================================================== */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
}
.quote-item blockquote { margin: 0 0 1.5rem; }
.quote-item blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.5;
  margin: 0;
}
.quote-item__by { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.quote-item__name { display: block; font-weight: 500; font-size: var(--fs-small); }
.quote-item__meta {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.25rem;
}


/* 14 Final CTA =========================================================== */

.final .h2 { max-width: 16ch; }
.final__text {
  color: var(--paper-mute);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 54ch;
  margin: 1.75rem 0 2.5rem;
}
.final__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}


/* 15 Contact & form ====================================================== */
.contact__shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.contact__lede { color: var(--grey); max-width: 40ch; margin-top: 1.5rem; }

.contact__direct {
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.contact__direct dt {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact__direct dd {
  margin: 0.2rem 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-soft);
}
.contact__direct dd:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.contact__direct a { border-bottom: 1px solid transparent; transition: color 280ms var(--ease), border-color 280ms var(--ease); }
.contact__direct a:hover { color: var(--bronze); border-bottom-color: var(--bronze); }

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
}
.field { display: flex; flex-direction: column; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.55rem 0 0.65rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  font-size: 1rem;
  transition: border-color 280ms var(--ease);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%),
                    linear-gradient(135deg, var(--grey) 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}
.field textarea { resize: vertical; min-height: 3.5rem; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(105, 112, 120, 0.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field__error {
  margin: 0.4rem 0 0;
  min-height: 1.1em;
  font-size: 0.8125rem;
  color: #8C3A2B;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: #8C3A2B; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.form__status { margin: 0; font-size: var(--fs-small); color: var(--grey); }
.form__status.is-success { color: #3D6B52; }
.form__status.is-error { color: #8C3A2B; }
.form__privacy { margin: 0; font-size: 0.8125rem; color: var(--grey); }


/* 16 Footer ============================================================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer__shell {
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.65fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
}
.footer__wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  margin: 0;
}
.footer__sub { font-size: var(--fs-small); color: var(--paper-mute); margin: 0.35rem 0 1.5rem; }
.footer__curricula {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin: 0;
}
.footer__heading {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a {
  font-size: var(--fs-small);
  color: var(--paper-mute);
  transition: color 280ms var(--ease);
}
.footer__col a:hover { color: var(--paper); }

.footer__base {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule-light);
}
.footer__base p { margin: 0; font-size: 0.8125rem; color: var(--paper-mute); }


/* 17 Mobile contact bar ================================================== */
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  display: none;
  background: var(--ink);
  border-top: 1px solid var(--rule-light);
}
.mobile-bar__link {
  flex: 1;
  text-align: center;
  padding: 0.95rem 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--paper);
}
.mobile-bar__link--alt {
  color: var(--paper-mute);
  border-left: 1px solid var(--rule-light);
}


/* 18 Responsive ========================================================== */
@media (max-width: 1080px) {
  .curricula { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .curriculum:nth-child(3n + 1) { padding-left: clamp(1.35rem, 2.5vw, 2.25rem); border-left: 1px solid var(--rule); }
  .curriculum:nth-child(3n) { padding-right: clamp(1.35rem, 2.5vw, 2.25rem); }
  .curriculum:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .curriculum:nth-child(2n) { padding-right: 0; }
  .actual-results { grid-template-columns: 1fr; }
  .actual-result:nth-child(even) { padding-left: 0; padding-right: 1.75rem; border-left: 0; }
  .statement { grid-template-columns: 1fr; }
  .statement__lead { max-width: 24ch; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; flex: 0 0 auto; }
  .nav-shell { gap: 1rem; }
  .wordmark { max-width: 68vw; }
  .wordmark__main { white-space: normal; font-size: 0.92rem; line-height: 1.3; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 360px);
    z-index: 95;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: 4.5rem var(--gutter);
    background: var(--paper);
    border-left: 1px solid var(--rule);
    transform: translateX(100%);
    transition: transform 380ms var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .nav__link { font-family: var(--serif); font-size: 1.4rem; }
  .nav__cta { width: 100%; }

  .hero__shell { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero__portrait { order: -1; }
  .hero__portrait img { max-height: 38vh; object-position: 50% 24%; }
  .hero__title { max-width: 18ch; }

  .about__shell,
  .contact__shell { grid-template-columns: 1fr; }
  .about__media { max-width: 24rem; }

  .stages { grid-template-columns: 1fr; }
  .stage {
    padding: 2rem 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .stage:first-child { padding-top: 0; border-top: 0; }
  .stage:last-child { padding-bottom: 0; }
  .stage__num { margin-bottom: 0.75rem; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 3.4rem; }

  .footer__shell { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .curricula { grid-template-columns: 1fr; row-gap: 0; }
  .curriculum,
  .curriculum:nth-child(2n + 1),
  .curriculum:nth-child(2n),
  .curriculum:nth-child(3n + 1),
  .curriculum:nth-child(3n) {
    min-height: 0;
    padding: 1.75rem 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .results-summary { grid-template-columns: 1fr; }
  .results-summary__item,
  .results-summary__item:first-child {
    min-height: 0;
    padding: 1.25rem 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .results-summary__item:first-child { border-top: 0; }
  .curriculum:first-child { padding-top: 0; border-top: 0; }
  .result-group__head { align-items: start; flex-direction: column; gap: 0.5rem; }
  .actual-results { grid-template-columns: 1fr; }
  .actual-result:nth-child(even) { padding-left: 0; padding-right: 1.75rem; border-left: 0; }

  .credibility { grid-template-columns: 1fr 1fr; }
  .credibility li,
  .credibility li:first-child,
  .credibility li:last-child { padding: 1.15rem 1rem; }
  .credibility li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .credibility li:nth-child(n+3) { border-top: 1px solid var(--rule); }

  .facts { grid-template-columns: 1fr; gap: 1.75rem; }
  .form { grid-template-columns: 1fr; }
  .hero__actions, .final__actions { gap: 1.25rem; }
  .btn { width: 100%; }
  .footer__shell { grid-template-columns: 1fr; }
}


/* 19 Reduced motion & print ============================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-bar, .nav { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .section--ink, .footer { background: #fff !important; color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}


/* Production contact/privacy refinements */
.contact__note {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--grey);
  font-size: 0.8125rem;
}
.form__privacy a,
.privacy a {
  border-bottom: 1px solid currentColor;
}
.privacy__shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.privacy__intro {
  max-width: 34rem;
}
.privacy__intro .h2 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
}
.privacy__lead {
  margin: 0;
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.75;
}
.privacy-details {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.privacy-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.privacy-details summary::-webkit-details-marker { display: none; }
.privacy-details summary span {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 220ms var(--ease);
}
.privacy-details[open] summary span { transform: rotate(45deg); }
.privacy-details__body {
  padding: 0.25rem 0 1.6rem;
}
.privacy-details__item {
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule-soft);
}
.privacy-details__item:first-child { border-top: 0; }
.privacy-details__item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.privacy-details__item p {
  margin: 0;
  color: var(--grey);
  font-size: 0.94rem;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .privacy__shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .privacy__intro .h2 { max-width: none; }
}

/* 20 Parent consultation brief ========================================== */
[hidden] { display: none !important; }

.consultation-note {
  margin-top: 2.35rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--rule);
  max-width: 40ch;
}
.consultation-note__title {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.consultation-note ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.consultation-note li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.55;
}
.consultation-note li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronze);
}
.consultation-note__meta {
  margin: 1.1rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.consultation-form {
  border-top: 2px solid var(--ink);
  padding-top: 1.35rem;
  min-width: 0;
}
.consultation-form__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.consultation-form__kicker {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.3;
}
.form-progress {
  display: flex;
  gap: clamp(1rem, 2.6vw, 2rem);
  align-items: flex-start;
}
.form-progress__item {
  min-width: 4.75rem;
  color: rgba(105, 112, 120, 0.58);
  transition: color 220ms var(--ease);
}
.form-progress__item span,
.form-progress__item strong {
  display: block;
}
.form-progress__item span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.15rem;
}
.form-progress__item strong {
  font-size: 0.75rem;
  font-weight: 500;
}
.form-progress__item.is-current { color: var(--ink); }
.form-progress__item.is-complete { color: var(--bronze); }

.form-step {
  min-width: 0;
  margin: 0;
  padding: clamp(2rem, 4vw, 3.25rem) 0 0;
  border: 0;
}
.form-step legend {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: baseline;
  width: 100%;
  padding: 0;
  margin: 0 0 0.8rem;
}
.form-step__number {
  font-size: 0.72rem;
  color: var(--bronze);
  letter-spacing: 0.1em;
}
.form-step__title {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.form-step__intro {
  max-width: 54ch;
  margin: 0 0 2.2rem 2.2rem;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.65rem 2rem;
}
.form-step__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding-top: 2.15rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--rule-soft);
}
.form-step__actions--split { justify-content: space-between; }
.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.7rem 0;
  color: var(--grey);
  font-size: var(--fs-small);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.link-button:hover { color: var(--ink); border-bottom-color: var(--rule); }
.field__optional {
  margin-left: 0.35rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(105,112,120,.7);
}
.field__hint {
  margin: 0.55rem 0 0;
  color: var(--grey);
  font-size: 0.78rem;
  line-height: 1.5;
}
.form-reflection { margin-top: 2rem; }

.choice-field {
  margin-bottom: 2rem;
}
.choice-field__label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.choice-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 5.7rem;
  padding: 1.15rem 2.5rem 1.15rem 1.15rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}
.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-card span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-80);
}
.choice-card::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 1.18rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid rgba(16,24,32,.32);
  background: transparent;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}
.choice-card:has(input[type="radio"])::after { border-radius: 50%; }
.choice-card:hover { background: var(--paper); }
.choice-card.is-selected {
  background: #f1eee8;
}
.choice-card.is-selected::after {
  background: var(--bronze);
  border-color: var(--bronze);
  box-shadow: inset 0 0 0 3px #f1eee8;
}
.choice-card.is-selected span { color: var(--ink); }
.choice-card:focus-within {
  outline: 2px solid var(--bronze);
  outline-offset: -2px;
  z-index: 1;
}
.choice-card--compact {
  min-height: 4.6rem;
  align-items: center;
}
.choice-field.has-error .choice-grid { border-top-color: #8C3A2B; border-left-color: #8C3A2B; }
.choice-field.has-error .choice-card { border-right-color: rgba(140,58,43,.55); border-bottom-color: rgba(140,58,43,.55); }

.consultation-summary {
  margin-top: 2.2rem;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--bronze);
  background: var(--paper);
}
.consultation-summary__label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.consultation-summary__text {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
}
.consultation-form .form__status {
  margin-top: 1rem;
}
.consultation-form .form__privacy {
  margin-top: 1rem;
  max-width: 72ch;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .consultation-form__head {
    display: block;
  }
  .consultation-form__kicker { margin-bottom: 1rem; }
  .form-progress {
    justify-content: space-between;
    gap: 0.6rem;
  }
  .form-progress__item { min-width: 0; flex: 1; }
  .form-step legend { grid-template-columns: 1.8rem 1fr; }
  .form-step__intro { margin-left: 1.8rem; }
  .form-grid,
  .choice-grid,
  .choice-grid--three { grid-template-columns: 1fr; }
  .form-step__actions,
  .form-step__actions--split {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .form-step__actions .btn { width: 100%; }
  .link-button { align-self: flex-start; }
  .choice-card { min-height: auto; padding-block: 1rem; }
}
.consultation-form__status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
}


/* Budget range — parent-facing values stay in the selected currency. */
.budget-field {
  margin-top: 0.65rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-soft);
}
.budget-field__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.budget-field__head > label { margin-bottom: 0; }
.budget-field__note {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--bronze);
}
.budget-field__intro {
  margin: 0.55rem 0 1.35rem;
  max-width: 62ch;
}
.budget-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 0.85fr) repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}
.budget-field__status {
  min-height: 1.25em;
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--grey);
}
.budget-field__status.is-valid { color: #3D6B52; }
.budget-field__status.is-error { color: #8C3A2B; }
.budget-field__status.is-checking { color: var(--grey); }

@media (max-width: 760px) {
  .budget-field__head { display: block; }
  .budget-field__note { display: block; margin-top: 0.3rem; }
  .budget-grid { grid-template-columns: 1fr 1fr; }
  .budget-field__currency { grid-column: 1 / -1; }
}

.btn:disabled { opacity: 0.58; cursor: wait; }


/* 21 Analytics consent + mobile conversion polish ======================= */
.consent-banner {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 140;
  max-width: 980px;
  margin-inline: auto;
  padding: 1.2rem 1.3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 55px rgba(16,24,32,.14);
}
.consent-banner[hidden] { display: none !important; }
.consent-banner__eyebrow {
  margin: 0 0 .3rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze);
}
.consent-banner__title {
  margin: 0 0 .35rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
}
.consent-banner__text {
  margin: 0;
  max-width: 70ch;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--grey);
}
.consent-banner__actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.consent-banner__accept { white-space: nowrap; }
.consent-banner__decline {
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: .5rem 0;
  background: transparent;
  color: var(--ink);
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 640px) {
  :root {
    --gutter: 1.15rem;
    --section-y: clamp(3.75rem, 12vw, 5rem);
  }
  .hero__copy { order: 0; }
  .hero__portrait { order: 0; margin-top: .35rem; }
  .hero__shell { gap: 2rem; }
  .hero__portrait img {
    max-height: none;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 24%;
  }
  .hero__title {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 2.8rem);
    line-height: 1.06;
  }
  .hero__support { font-size: 1rem; line-height: 1.7; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: .9rem; }
  .hero__actions .link-cta { justify-content: center; }

  .consent-banner {
    bottom: 4.15rem;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .consent-banner__actions { flex-direction: column; align-items: stretch; }
  .consent-banner__actions .btn { width: 100%; }
  .consent-banner__decline { align-self: center; }
}
