/* Primus redesign concept (private pitch). Phone-first. No framework. */
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --ink: #15203a;
  --ink-2: #33405c;
  --muted: #5a6274;
  --line: #cfc6b4;
  --accent: #a8242c;
  --accent-ink: #fbf7f0;
  --navy: #15203a;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ui: Archivo, "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --gutter: max(20px, env(safe-area-inset-left));
  --max: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; font-family: var(--ui); font-size: 1.0625rem; line-height: 1.55; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 16px; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
button, input, select { font: inherit; color: inherit; }
input, select { font-size: max(16px, 1em); }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--paper); text-decoration: none; transform: translateY(-200%); }
.skip-link:focus, .skip-link:focus-visible { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.label { font-family: var(--ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-stretch: 110%; color: var(--muted); margin: 0 0 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

/* Header: in flow, solid paper. Never covers content. */
.site-header { position: relative; z-index: 20; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; line-height: 1.05; }
.wordmark b { font-family: var(--ui); font-weight: 700; font-stretch: 118%; letter-spacing: 0.22em; font-size: 1.05rem; }
.wordmark span { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: 0.9375rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.01em; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.header-cta { min-height: 44px; padding: 0 14px; font-size: 0.875rem; }
@media (min-width: 1000px) { .site-nav { display: flex; gap: 4px; } }

/* Mobile menu: native details element, no JS needed. */
.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); cursor: pointer; font-size: 0.875rem; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(86vw, 320px); background: var(--paper); border: 1px solid var(--ink); padding: 8px 0; z-index: 30; overscroll-behavior: contain; }
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 20px; text-decoration: none; }
.menu-panel a + a { border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .menu { display: none; } }
.header-right { display: flex; align-items: center; gap: 8px; }

/* Hero: steady, sharp still. Type sits on the sky; no overlay gradient. */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; background: #c9d6dc; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero picture img { object-position: 60% 50%; }
.hero-copy { position: relative; padding: 28px var(--gutter) 0; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero h1 { font-size: clamp(3rem, 1.4rem + 7vw, 7.5rem); color: var(--navy); margin-bottom: 12px; }
.hero h1 em { font-style: italic; }
.hero .hero-sub { font-size: 1.0625rem; color: var(--navy); max-width: 34ch; font-weight: 500; }
.hero-actions { position: relative; padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); max-width: var(--max); width: 100%; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; grid-row: 3; }
.hero-actions .btn--ghost { background: var(--paper); border-color: var(--paper); }
.hero-actions .btn--ghost:hover { background: var(--accent); border-color: var(--accent); }
.img-note { position: relative; grid-row: 3; justify-self: end; align-self: end; margin: 0 var(--gutter) 8px 0; font-size: 0.6875rem; color: var(--paper); background: rgb(21 32 58 / 0.78); padding: 2px 6px; display: none; }
@media (min-width: 700px) {
  .hero-copy { padding-top: 64px; }
  .img-note { display: block; }
}

/* Facts strip */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 16px; }
.fact b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0; padding: 28px 24px; border-right: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: 24px; }
  .fact:last-child { border-right: 0; }
}

/* Pathway: a ruled list, not cards. */
.path { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.path li { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.path .grades { font-family: var(--ui); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.path h3 { margin: 0; }
.path p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .path li { grid-template-columns: 180px 280px 1fr; align-items: baseline; } }

/* The school day: the one signature moment. */
.day-intro { margin-bottom: 32px; }
.day { display: grid; gap: 0; }
.day-stage { display: none; }
.day-step { padding: 0 0 40px; }
.day-step figure { margin: 0 0 16px; }
.day-step figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.day-step .time { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.day-step h3 { font-family: var(--ui); font-size: 1.0625rem; font-weight: 700; margin: 0 0 6px; }
.day-step p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .day { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
  .day-stage { display: block; position: sticky; top: 24px; height: calc(100svh - 48px); max-height: 760px; }
  .day-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease); }
  .day-stage img.is-on { opacity: 1; }
  .day-steps { padding: 18svh 0 22svh; }
  .day-step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; padding: 0; }
  .day-step figure { display: none; }
  .day-step .time { font-size: 4rem; }
}

/* Quote */
.quote { font-family: var(--display); font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); line-height: 1.12; max-width: 26ch; margin: 0 0 16px; }
.quote-by { font-size: 0.875rem; color: var(--muted); }

/* Houses */
.houses { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.houses li { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
.houses li b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.houses li i { font-size: 0.9375rem; color: var(--ink-2); }
.houses .swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 1px; }
@media (min-width: 900px) { .houses { grid-template-columns: repeat(4, 1fr); } }

/* Recognition */
.recog { list-style: none; padding: 0; margin: 0; }
.recog li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.recog li span { display: block; font-size: 0.8125rem; color: var(--muted); }

/* Split blocks */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Visit band */
.visit { background: var(--navy); color: var(--paper); }
.visit .label { color: #b9c0cf; }
.visit a:hover { color: #f0c9cb; }
.visit .btn { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.visit .btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.visit dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 4px 24px; }
.visit dt { font-size: 0.8125rem; color: #b9c0cf; margin-top: 12px; }
.visit dd { margin: 0; }

/* Page head (inner pages) */
.page-head { padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.5rem); margin: 0 0 12px; }
.page-head p { font-size: 1.125rem; color: var(--ink-2); }
.page-band img { width: 100%; height: 34svh; min-height: 220px; max-height: 460px; object-fit: cover; }

/* Steps list */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.steps li p { margin: 0; }
.steps li b { display: block; }

/* The enquiry flow: one question at a time. */
.flow { border: 1px solid var(--ink); background: var(--paper); padding: 20px; max-width: 640px; }
@media (min-width: 700px) { .flow { padding: 32px; } }
.flow-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 44px; }
.flow-progress { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow-back { min-height: 44px; min-width: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--line); font-size: 0.875rem; }
.flow-back[hidden] { display: none; }
.flow fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.flow legend, .flow .q { font-family: var(--display); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); line-height: 1.08; padding: 0; margin: 0 0 18px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choices--dates { grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .choices { grid-template-columns: repeat(5, 1fr); } .choices--dates { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px 4px; border: 1px solid var(--line); text-align: center; font-size: 0.9375rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.choice span small { font-size: 0.75rem; color: var(--muted); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:checked + span small { color: #c7cdd9; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.flow-hint { font-size: 0.875rem; color: var(--muted); margin: 12px 0 0; }
.phone-row { display: flex; align-items: stretch; border: 1px solid var(--ink); }
.phone-row span { display: flex; align-items: center; padding: 0 12px; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.phone-row input { flex: 1; min-width: 0; min-height: 52px; border: 0; padding: 0 12px; background: transparent; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.phone-row:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-error { color: var(--accent); font-size: 0.9375rem; margin: 10px 0 0; min-height: 1.5em; }
.flow-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.flow-done .q { margin-bottom: 12px; }
.summary { margin: 16px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.summary li span { color: var(--muted); }
.preview-note { font-size: 0.8125rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin: 16px 0 0; }

/* Tables (fees, disclosure) */
.table-wrap { overflow-x: auto; margin: 16px 0 0; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
caption { text-align: left; font-size: 0.875rem; color: var(--muted); padding: 10px 0; caption-side: bottom; }
th, td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
td.todo { color: var(--accent); font-style: italic; }
.disc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.disc-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); text-decoration: none; font-size: 0.875rem; }
.status { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.status--have { color: #2f6a3a; }
.status--todo { color: var(--accent); }
.callout { border: 1px solid var(--line); padding: 16px 20px; margin: 24px 0 0; background: var(--paper-2); }
.callout p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 48px var(--gutter) calc(48px + env(safe-area-inset-bottom)); font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { padding: 0; display: grid; gap: 20px; }
.site-footer p { margin: 0; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer .legal a { display: inline-flex; align-items: center; min-height: 44px; }
.concept-note { color: var(--ink-2); }

/* Sticky phone bar: one primary action on every page (phones only). */
.phone-bar { position: sticky; bottom: 0; z-index: 15; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.phone-bar a { display: flex; align-items: center; justify-content: center; min-height: 52px; background: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.phone-bar a.primary { background: var(--ink); color: var(--paper); }
@media (min-width: 900px) { .phone-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .day-stage img { transition: none; }
}

/* Desktop hero: copy sits on the open sky to the right of the trees. */
@media (min-width: 900px) {
  .hero-copy { padding-left: calc(var(--gutter) + 42%); max-width: none; }
  .hero h1 { font-size: clamp(4rem, 1rem + 5.4vw, 7.5rem); }
}
.visit dd a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .legal a { min-width: 44px; justify-content: center; }
.site-footer p a { display: inline-flex; align-items: center; min-height: 44px; }
/* Hero fixes after the first QA look: buttons clear the phone bar; desktop headline stays on one line over the sky. */
.hero { min-height: calc(100svh - var(--header-h) - 53px); }
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-copy { padding-left: calc(var(--gutter) + 40%); }
  .hero h1 { font-size: clamp(3.5rem, 0.5rem + 4.6vw, 6.5rem); white-space: nowrap; }
}
/* Stage matches the photographs' 16:9 so nothing is cropped and upscaled. */
@media (min-width: 900px) {
  .day { grid-template-columns: 1.6fr 1fr; }
  .day-stage { height: auto; max-height: none; aspect-ratio: 16 / 9; top: calc(50svh - 18vw); }
}
.block-link { display: inline-flex; align-items: center; min-height: 44px; }
/* Keep the sub line on the sky at laptop heights. */
@media (min-width: 900px) {
  .hero-copy { padding-top: 36px; }
  .hero .hero-sub { max-width: 60ch; }
}
