:root {
  --paper: #f7f1e8;
  --paper-deep: #efe6d8;
  --ink: #1b2a4a;
  --accent: #c46b3a;
  --accent-deep: #a6552c;
  --text: #1a1a18;
  --muted: #5c564e;
  --line: #d9d1c4;
  --white: #fffdf8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Figtree, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--ink); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { max-width: 100%; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.wordmark img {
  display: block;
  height: 2.4rem;
  width: auto;
}

.wordmark-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.85rem;
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1;
}

.wordmark-meta {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark-meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.08em;
  width: 1px;
  background: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent-deep);
}

nav a[aria-current="page"] {
  color: var(--accent-deep);
}

.nav-enquire {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
}

.nav-enquire:hover {
  background: var(--accent-deep);
  color: var(--white) !important;
}

.hero {
  padding: 5.75rem 0 5rem;
}

.hero-grid {
  display: block;
}

.hero-copy {
  max-width: 40rem;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(2.25rem, 3.4vw, 3.35rem);
  line-height: 1.08;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  max-width: 14ch;
  margin: 0 0 1.35rem;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 1.04;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.lede {
  max-width: 36rem;
  margin: 0 0 2.15rem;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button-primary {
  background: var(--accent-deep);
  color: var(--white);
}

.button-primary:hover { background: #8e4824; }

.button-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--paper-deep);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-intro p,
.prose p {
  color: var(--muted);
}

.grid-3, .grid-2 {
  display: grid;
  gap: 1.15rem;
}

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

.card, .step, .faq {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.55rem 1.55rem;
}

.step {
  border-top: 3px solid var(--accent);
}

a.card { text-decoration: none; color: inherit; }

.card {
  border-top: 3px solid var(--ink);
}

.step-num {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.muted { color: var(--muted); }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }

.faq + .faq { margin-top: 0.85rem; }
.faq h3 { font-size: 1.15rem; }
.faq p { margin: 0; color: var(--muted); }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.cta-band p { margin: 0; max-width: 34rem; color: var(--muted); }

.section-cta {
  background: var(--ink);
  padding: 4.5rem 0;
}

.section-cta h2 {
  color: var(--paper);
}

.section-cta .cta-band p {
  color: #d5cfc3;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.email-link {
  color: var(--ink);
  font-weight: 600;
}


.level {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.week-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.week-list li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
  color: var(--muted);
}

.week-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
}

.ielts-panel {
  background: var(--ink);
  color: var(--paper);
  padding: 2.1rem 1.85rem;
}

.ielts-panel h2,
.ielts-panel h3 { color: var(--paper); }

.ielts-panel p { color: #d5cfc3; margin: 0 0 1rem; }

.ielts-panel .button { margin-top: 0.5rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

@media (max-width: 800px) {
  .cta-band, .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero { padding: 3.1rem 0 2.6rem; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }


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

  .section { padding: 3.4rem 0; }

  .section-cta { padding: 3.4rem 0; }
}

/* ---- Polish & restrained motion (Nov 2026) ---- */
:root { --ease: cubic-bezier(.2,.7,.2,1); --shadow: 0 1px 2px rgba(27,42,74,.06), 0 8px 24px -12px rgba(27,42,74,.18); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wordmark img { height: 3rem; transition: opacity .2s ease; }
.wordmark:hover img { opacity: .85; }
.site-header { transition: box-shadow .25s ease; }
nav a:not(.nav-enquire) { position: relative; padding: .25rem 0; transition: color .2s ease; }
nav a:not(.nav-enquire)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
nav a:not(.nav-enquire):hover::after, nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-enquire { transition: background .2s ease, transform .2s var(--ease); font-weight: 600; }
.nav-enquire:hover { transform: translateY(-1px); }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 1.5px; background: var(--accent); }
.hero { padding: 6.5rem 0 5.75rem; }
.hero-copy h1 { letter-spacing: -0.035em; }
.button { padding: .95rem 1.45rem; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { box-shadow: 0 6px 18px -8px rgba(196,107,58,.6); }
.button-primary:hover { box-shadow: 0 10px 22px -10px rgba(166,85,44,.7); }
.section-intro h2 { margin-bottom: .75rem; }
.section-intro p { font-size: 1.08rem; }
.grid-3, .grid-2 { gap: 1.35rem; }
.card, .step, .faq, .week-list li {
  border-radius: 6px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}
.card, .step { padding: 2rem 1.75rem 1.75rem; }
.card:hover, .step:hover, .week-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(27,42,74,.06), 0 18px 34px -16px rgba(27,42,74,.28);
}
a.card:hover h3 { color: var(--accent-deep); }
.card p:last-child, .step p:last-child { margin-bottom: 0; }
.step-num { font-size: 1.15rem; font-weight: 650; }
.ielts-panel { border-radius: 6px; }
.section-cta { position: relative; }
.section-cta h2 { margin-bottom: .6rem; }
.site-footer { padding: 2.2rem 0 2.6rem; background: var(--paper-deep); }
.site-footer-inner { align-items: center; }
.site-footer a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent),var(--accent)) 0 100%/0 1.5px no-repeat; transition: background-size .25s var(--ease), color .2s ease; }
.site-footer a:hover { background-size: 100% 1.5px; color: var(--accent-deep); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-social a {
  background: none;
  color: var(--ink);
  line-height: 0;
  border-radius: 0.3rem;
}
.footer-social a:hover {
  background: none;
  color: var(--accent-deep);
  opacity: 0.82;
}
.footer-social svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

/* subtle entrance: content fades up once on load */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .6s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.grid-3 > *, .grid-2 > * { animation: rise .6s var(--ease) both; }
.grid-3 > *:nth-child(2), .grid-2 > *:nth-child(2) { animation-delay: .08s; }
.grid-3 > *:nth-child(3) { animation-delay: .16s; }
@supports (animation-timeline: view()) {
  .grid-3 > *, .grid-2 > *, .section-intro {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
  }
}

@keyframes header-compact { to { padding-top: 0.3rem; padding-bottom: 0.3rem; } }
@keyframes logo-compact { to { height: 1.55rem; } }

.nav-toggle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  appearance: none !important;
  opacity: 0 !important;
  pointer-events: none;
}
.nav-toggle-label { display: none; }
.nav-toggle-label .nav-close { display: none; }
.nav-toggle-label .nav-close[hidden] { display: none; }

@media (max-width: 800px) {
  .hero { padding: 3.4rem 0 3rem; }
  .wordmark img { height: 2rem; }
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0.5rem 0;
  }
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 2.4rem;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
  }
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  .nav-toggle:checked + .nav-toggle-label {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .nav-toggle-label .nav-close { display: none; }
  .nav-toggle:checked + .nav-toggle-label .nav-open { display: none; }
  .nav-toggle:checked + .nav-toggle-label .nav-close { display: inline !important; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.35rem 1.25rem 1rem;
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .js .nav-is-open nav, .nav-is-open nav { display: flex; }
  nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  nav a:last-child { border-bottom: 0; }
  nav a:not(.nav-enquire)::after { display: none; }
  .nav-enquire {
    margin-top: 0.45rem;
    justify-content: center;
  }
  @supports (animation-timeline: scroll()) {
    .site-header-inner {
      animation: header-compact linear both;
      animation-timeline: scroll();
      animation-range: 0 160px;
    }
    .wordmark img {
      animation: logo-compact linear both;
      animation-timeline: scroll();
      animation-range: 0 160px;
    }
  }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .card:hover, .step:hover, .week-list li:hover, .button:hover, .nav-enquire:hover { transform: none; }
}

/* Private school access: shares the public site's paper, ink and typography. */
.auth-shell { max-width: 38rem; padding-block: 3rem 4rem; min-height: 65vh; }
.auth-shell h1, .account-shell h1 { max-width: none; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.auth-form { display: grid; gap: .6rem; }
.auth-form label { font-weight: 600; color: var(--ink); margin-top: .7rem; }
.auth-form input { width: 100%; min-height: 3rem; padding: .75rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--muted); border-radius: 4px; }
.auth-form input:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.auth-form .button { margin-top: 1rem; justify-self: start; }
button.button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.auth-error { border-left: 3px solid var(--accent-deep); padding: .8rem 1rem; background: var(--white); color: var(--ink); }
.auth-help { color: var(--muted); font-size: .95rem; margin: 0; }
.account-shell { padding-block: 3rem 4rem; min-height: 65vh; }
.account-shell .grid-2 { margin-block: 2rem; }
.account-details { overflow-wrap: anywhere; }
.account-details dt { font-weight: 600; color: var(--ink); }
.account-details dd { margin: 0 0 .8rem; }
.nav-logout { margin: 0; }
.nav-logout button { background: none; color: var(--ink); border: 0; padding: .25rem 0; font: inherit; font-size: .95rem; cursor: pointer; text-decoration: underline; text-underline-offset: .25rem; }
.auth-nav { flex-direction: row; flex-wrap: wrap; }

.account-preview { margin-block: 2.5rem; }
.account-preview h2 { margin-bottom: .4rem; }
.account-preview > .card { margin-top: 0; }
.account-shell .actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.dash-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
.dash-list li { line-height: 1.45; }
.account-preview .card h3 { margin-top: 0; }
.account-preview output { font-weight: 600; }

/* ---- Quality pass (Nov 2026) ---- */
.nav-toggle-btn { display: none; }
.nav-toggle-btn .nav-close { display: none; }
@media (max-width: 800px) {
  nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; background: none; border: 0; gap: .9rem; }
  .js nav { display: none; position: absolute; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: .35rem 1.25rem 1rem; background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: 1px solid var(--line); }
  .js .nav-is-open nav { display: flex; }
  .js .nav-toggle-btn { display: inline-flex; align-items: center; margin-left: auto; min-height: 2.4rem; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
  .nav-toggle-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .nav-toggle-btn[aria-expanded="true"] .nav-open { display: none; }
  .nav-toggle-btn[aria-expanded="true"] .nav-close { display: inline; }
}
.text-link { display: inline-block; margin-top: .9rem; color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: .25rem; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; counter-reset: j; }
.journey li { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 1.6rem 1.5rem 1.4rem; }
.journey li:not(:last-child)::after { content: "→"; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); color: var(--accent-deep); font-weight: 700; z-index: 1; }
.journey p { margin: 0; }
.beats-intro { margin: 1.5rem 0 0; }
.lesson-cards { align-items: stretch; }
.lesson-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.lesson-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(27,42,74,.10); }
.lesson-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-deep); }
.lesson-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lesson-card:hover .lesson-art img { transform: scale(1.03); }
.lesson-body { display: flex; flex-direction: column; padding: 1.35rem 1.4rem 1.5rem; flex: 1; }
.lesson-body .text-link { margin-top: auto; padding-top: .9rem; }
.actions-after { margin-top: 2rem; }
.lesson-beats { display: grid; gap: 1.15rem; }
.beat { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 1.1rem; }
.beat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.beat-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.beat-steps li { padding-left: .9rem; border-left: 3px solid var(--accent); color: var(--muted); }
.beat-steps strong { display: block; color: var(--ink); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.path { display: flex; flex-direction: column; }
.path .button { align-self: flex-start; margin-top: auto; }
.ticks { margin: .5rem 0 1.5rem; padding: 0; list-style: none; display: grid; gap: .55rem; color: var(--muted); }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.ticks strong { color: var(--ink); }
.evidence { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 2.5rem; align-items: center; }
.evidence .lesson-art { aspect-ratio: 1; }
.enquire-grid { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: 3rem; align-items: start; }
.enquiry-form { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 1.75rem 1.6rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .8rem; border: 1px solid #b9b0a2; background: var(--paper); color: var(--text); border-radius: 6px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
[aria-invalid="true"] { border-color: #a3341f !important; }
.hint { margin: 0; font-size: .88rem; color: var(--muted); font-weight: 400; }
.error { margin: 0; font-size: .88rem; color: #a3341f; font-weight: 600; }
.enquiry-form .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
@media (max-width: 800px) {
  .journey, .lesson-cards, .evidence, .enquire-grid { grid-template-columns: 1fr; }
  .journey li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -1.05rem; transform: translateX(-50%); }
  .beat { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lesson-card, .lesson-art img { transition: none; } .lesson-card:hover, .lesson-card:hover .lesson-art img { transform: none; } }
