@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #fbf6ea;
  --surface: #ffffff;
  --ink: #17263f;
  --ink-soft: #40506b;
  --butter: #ffd978;
  --sky: #cfe3f2;
  --peach: #f9d9be;
  --marigold: #e8a11c;
  --line: #d9d0bd;
  --error: #9c2a1a;
  --radius: 28px;
  --page: 1240px;
  --display: "Bricolage Grotesque", "Figtree", Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Figtree", Verdana, Arial, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  word-spacing: 0.06em;
}

h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; word-spacing: 0; }
h1 { font-size: clamp(3.1rem, 8.4vw, 6.6rem); line-height: 1; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.05; }
h3 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.15; }
p { margin: 0 0 1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 48px, var(--page)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 16px; background: var(--surface); z-index: 10; }
.skip:focus { left: 16px; }
.lead { font-size: clamp(1.25rem, 2.1vw, 1.5rem); line-height: 1.45; }

/* Header */
.site-header { background: var(--cream); }
.site-header.on-butter { background: var(--butter); }
.site-header.on-sky { background: var(--sky); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { flex: none; width: 44px; height: 33px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.site-nav a:not(.btn) { padding-block: 8px; font-weight: 700; text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 3px; }

/* Buttons */
.btn { display: inline-block; min-height: 56px; padding: 13px 30px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream); font: inherit; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-small { min-height: 44px; padding: 7px 20px; font-size: 1rem; }
.btn-light { border-color: var(--cream); background: var(--cream); color: var(--ink); }
.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Blocks */
section { padding-block: clamp(64px, 9vw, 128px); }
.is-butter { background: var(--butter); }
.is-sky { background: var(--sky); }
.is-peach { background: var(--peach); }
.is-ink { background: var(--ink); color: var(--cream); }
.section-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }

/* Hero */
.hero { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero .lead { max-width: 33em; margin-top: 28px; }
.hero-art { width: 100%; height: auto; }
.route { fill: none; stroke: var(--ink); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.route-straight { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 16; opacity: 0.6; }
.hero-art .route { stroke-dasharray: 1; animation: draw 2.4s 0.2s ease-in-out both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Credential band */
.credentials { padding-block: 0; background: var(--ink); color: var(--cream); }
.credentials ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.credentials li { padding: 26px 24px 26px 0; line-height: 1.3; }
.credentials li + li { padding-left: 24px; border-left: 1px solid rgba(251, 246, 234, 0.3); }
.credentials strong { display: block; font-size: 1.2rem; }

/* Statement */
.statement { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; word-spacing: 0; max-width: 21em; margin: 0; }

/* Pathways */
.pathways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pathway { display: flex; flex-direction: column; min-height: 380px; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius); }
.pathway h3 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; }
.pathway ul, .pathway p { margin-bottom: 24px; }
.pathway li { margin-bottom: 4px; }
.pathway .go { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-weight: 700; text-decoration: none; }
.pathway .go span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--cream); transition: transform 0.15s ease; }
.pathway .go:hover span { transform: translateX(4px); }
.pathway.is-ink .go span { background: var(--cream); color: var(--ink); }

/* Dyslexia */
.dyslexia .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 7vw, 96px); align-items: start; }
.points li { padding-block: 22px; border-top: 1px solid rgba(251, 246, 234, 0.3); }
.points li:last-child { border-bottom: 1px solid rgba(251, 246, 234, 0.3); }
.points strong { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.format { padding: clamp(28px, 3.5vw, 44px); border: 2px solid var(--ink); border-radius: var(--radius); }
.format svg { display: block; width: auto; height: 76px; margin-bottom: 24px; }

/* Journey */
.journey-line { display: block; width: 100%; height: 96px; margin-bottom: 20px; }
.journey-line path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 2s ease-in-out; }
.pre .journey-line path { stroke-dashoffset: 1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: var(--display); font-size: 1.5rem; font-weight: 700; }

/* Cheryl */
.cheryl { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 96px); align-items: stretch; }
.photo-slot { position: relative; height: 100%; min-height: 420px; overflow: hidden; border-radius: var(--radius); background: var(--peach); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.big-stat { margin-bottom: 0.8em; font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; word-spacing: 0; }
.ticks li { position: relative; margin-bottom: 12px; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.34em; width: 16px; height: 16px; border-radius: 50%; background: var(--marigold); }
.cheryl h3 { margin-top: 36px; }
.cheryl .ticks:last-child li:last-child { margin-bottom: 0; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.testimonial { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; margin: 0; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius); background: var(--surface); }
.testimonial blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; word-spacing: 0; }
.testimonial figcaption { font-weight: 700; }

/* Final call */
.finale h2 { font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: 1; max-width: 12em; }

/* Register */
.register-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.next-steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.next-steps li { position: relative; margin-bottom: 18px; padding-left: 52px; counter-increment: step; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--cream); font-weight: 700; }
.form { display: grid; gap: 26px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); }
.field, fieldset { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field[hidden], fieldset[hidden] { display: none; }
label, legend { padding: 0; font-weight: 700; }
.hint { font-weight: 400; }
.req { color: var(--error); font-weight: 700; }
.req-note { margin: 0; }
.keep-together { white-space: nowrap; }
.field-error { margin: 0; color: var(--error); font-weight: 700; }
.field-error[hidden] { display: none; }
input[type="email"][aria-invalid="true"] { border-color: var(--error); background: #fbe6df; }
input[type="email"][aria-invalid="true"]:focus-visible { border-color: var(--error); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid var(--ink-soft); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 14px; font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--butter); }
.choice input, .tick input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.tick { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer; }
.tick input { margin-top: 0.2em; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 18px; border-radius: 14px; background: var(--butter); }
.status[hidden] { display: none; }
.status.is-error { background: #fbe6df; color: var(--error); }

/* Privacy */
.prose h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; line-height: 1.2; }
.prose ul { max-width: 60ch; margin-bottom: 1em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { padding-block: 36px; background: var(--ink); color: var(--cream); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }

/* Private enquiries page */
.admin { padding-block: clamp(32px, 6vw, 64px); }
.admin h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.admin h2 { margin-top: 1.4em; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.admin-warning { padding: 14px 18px; border-radius: 14px; background: #fbe6df; color: var(--error); font-weight: 700; }
.enquiry-list { display: grid; gap: 20px; margin-top: 28px; }
.enquiry-card { padding: clamp(20px, 3vw, 32px); border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.enquiry-card.is-kept { border-color: var(--ink); }
.enquiry-card h3 { margin-bottom: 0.1em; overflow-wrap: anywhere; }
.enquiry-date, .enquiry-deletion { color: var(--ink-soft); }
.enquiry-card dl { display: grid; gap: 6px; margin: 16px 0; }
.enquiry-card dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
.enquiry-card dt { font-weight: 700; }
.enquiry-card dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.enquiry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 680px) { .enquiry-card dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Gentle reveal: only applied by site.js */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }

@media (max-width: 900px) {
  .hero .wrap, .dyslexia .wrap, .cheryl, .register-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 340px; }
  .credentials ul { grid-template-columns: repeat(2, 1fr); }
  .credentials li { padding: 20px 14px 20px 0; }
  .credentials li + li { padding-left: 0; border-left: 0; }
  .credentials li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(251, 246, 234, 0.3); }
  .credentials li:nth-child(n + 3) { border-top: 1px solid rgba(251, 246, 234, 0.3); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .journey-line { display: none; }
  .cheryl { align-items: start; }
  .photo-slot { max-width: 340px; height: auto; aspect-ratio: 4 / 5; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .pathways, .formats, .testimonials { grid-template-columns: minmax(0, 1fr); }
  .pathway { min-height: 0; }
  .actions .btn { width: 100%; }
  .site-nav { gap: 2px 18px; }
  .site-nav .btn { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .route { animation: none; }
  .btn, .reveal, .pathway .go span, .journey-line path { transition: none; }
}
