/* Waridi Cottage — one stylesheet for the public site and the family/staff workspace.
   Fonts are self-hosted under the SIL Open Font License (see static/fonts). */

@font-face {
  font-family: "Lora";
  src: url("fonts/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #1d2455;
  --navy-deep: #131a42;
  --ink: #1c2556;
  --blue: #396fa7;
  --pale: #edf2f9;
  --paper: #faf8f2;
  --ivory: #f3eee2;
  --gold: #bd9654;
  --gold-soft: #e6d3a8;
  --muted: #56617a;
  --line: #dde2ec;
  --error: #a13e35;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --wide: none;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 18px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 18px;
}
h1 { font-size: clamp(40px, 5vw, 68px); }
h2 { font-size: clamp(32px, 3.6vw, 52px); }
h3 { font-size: 23px; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
main:focus { outline: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 20px; top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px;
}
.skip-link:focus { top: 15px; }
.icon { flex-shrink: 0; vertical-align: -4px; }
.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.muted { color: var(--muted); font-size: 15px; }
.section { max-width: var(--wide); margin-inline: auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section-intro { max-width: 680px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-intro > p { color: var(--muted); font-size: 18px; }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid var(--navy);
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.button:hover { background: #2c3878; border-color: #2c3878; }
.button .icon { transition: transform .3s var(--ease); }
.button:hover .icon-arrow { transform: translateX(3px); }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px -12px #bd965499; }
.button.gold:hover { background: #cfac6e; border-color: #cfac6e; }
.button.secondary { background: transparent; color: var(--navy); border-color: #b5bfd3; }
.button.secondary:hover { background: var(--pale); }
.button.small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.button.full { width: 100%; }
.button span { display: inline-block; transition: transform .2s; }
.text-link, .quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover .icon-arrow { transform: translateX(3px); }
.text-link .icon { transition: transform .3s var(--ease); }
.quiet-link { border-color: transparent; color: var(--muted); }
.quiet-link:hover { color: var(--ink); border-color: var(--gold); }
.text-button { border: 0; background: none; color: var(--blue); padding: 16px 0 0; font-size: 15px; text-decoration: underline; }
.back { display: inline-block; margin-bottom: 28px; font-size: 15px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px clamp(12px, 2vw, 24px) 0; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
  margin: auto;
  min-height: 74px;
  padding: 8px 10px 8px 18px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: rgba(250, 248, 242, .9);
  box-shadow: 0 14px 34px -26px #1d245599;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled .nav-inner { background: rgba(250, 248, 242, .97); box-shadow: 0 16px 40px -22px #1d245566; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 26px/1 var(--display);
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand .cottage-mark { width: 56px; height: auto; }
.brand small {
  display: block;
  margin-top: 6px;
  font: 600 10px/1 var(--sans);
  letter-spacing: .24em;
  color: var(--blue);
}
.desktop-nav { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.desktop-nav a:not(.button), .nav-button {
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  text-decoration: none;
  transition: background .2s;
}
.desktop-nav a:not(.button):hover, .nav-button:hover { background: var(--pale); }
.desktop-nav form { margin: 0; }
.desktop-nav .button { margin-left: 10px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.menu-lines, .menu-lines::before { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-lines { position: relative; transform: translateY(-3px); }
.menu-lines::before { content: ""; position: absolute; top: 6px; }
.mobile-menu[open] .menu-lines { transform: translateY(0) rotate(45deg); }
.mobile-menu[open] .menu-lines::before { transform: translateY(-6px) rotate(-90deg); }
.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(300px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 50px -20px #1d245555;
}
.mobile-menu nav a:not(.button), .mobile-menu .nav-button { padding: 12px 14px; border-radius: 12px; text-decoration: none; text-align: left; width: 100%; font-size: 18px; }
.mobile-menu nav a:not(.button):hover { background: var(--pale); }
.mobile-menu form { margin: 0; }
.mobile-menu .button { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; background: var(--ivory); color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; max-width: var(--wide); margin: auto; }
.footer-identity .brand { font-size: 28px; }
.footer-identity p { margin: 14px 0 0; font: italic 400 20px/1.4 var(--display); color: var(--blue); }
.footer-column { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer-column h2 { margin: 0 0 6px; font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-column a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; width: fit-content; }
.footer-column a:hover { color: var(--blue); }
.footer-column p { display: flex; gap: 10px; margin: 0; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--wide);
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid #d9d2bf;
  font-size: 14px;
  color: var(--muted);
}
.motion-toggle { border: 0; background: none; padding: 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:disabled { cursor: default; text-decoration: none; }

/* ---------- Messages ---------- */
.messages { max-width: 1100px; margin: 20px auto; padding: 0 20px; }
.notice { padding: 15px 20px; margin-bottom: 15px; border: 1px solid #d2dcec; border-radius: 12px; background: var(--pale); font-size: 16px; }
.notice.error { background: #fff0eb; border-color: #e9c5b9; }

/* =========================================================
   Public homepage
   ========================================================= */

/* Hero: the cottage window */
.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: none;
  margin: auto;
  padding: clamp(24px, 3.5vw, 56px) var(--gutter) clamp(24px, 3vw, 48px);
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(52px, 6.6vw, 104px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--navy);
}
.hero h1 .word { display: inline-block; }
.hero-lead { max-width: 560px; font-size: clamp(18px, 1.5vw, 21px); color: #3b4566; }
.hero .button.gold { min-height: 58px; padding: 15px 28px; font-size: 18px; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: clamp(28px, 3.5vw, 48px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-facts strong { display: block; font: 400 20px/1.25 var(--display); color: var(--navy); }
.hero-facts span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.hero-facts a { color: inherit; }
.hero-window { position: relative; margin: 0; }
.window-frame {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  background: var(--pale);
  box-shadow: 0 40px 80px -48px #1d2455aa;
}
.window-frame::after {
  /* An inner frame line: the cottage window. */
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #fffc;
  border-radius: 999px 999px 18px 18px;
  pointer-events: none;
}
.window-frame picture, .window-frame img { display: block; width: 100%; height: 100%; }
.window-frame img { object-fit: cover; object-position: 62% 50%; }
.hero-seal {
  position: absolute;
  left: -46px;
  top: 18%;
  width: 136px;
  height: 136px;
  padding: 6px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 18px 36px -18px #1d2455cc;
  fill: var(--gold-soft);
  font: 600 10px var(--sans);
  text-transform: uppercase;
}
.seal-cottage { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-note {
  position: absolute;
  right: -18px;
  bottom: 34px;
  display: flex;
  gap: 12px;
  max-width: 270px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 22px 44px -26px #1d2455aa;
  font-size: 15px;
  line-height: 1.45;
}
.hero-note .icon { color: var(--gold); width: 24px; height: 24px; }

/* Approach: statement with marker highlights */
.approach { padding-top: clamp(56px, 7vw, 96px); }
.approach-statement { max-width: 1120px; }
.statement {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 450;
  line-height: 1.22;
  letter-spacing: -.02em;
}
.statement mark {
  color: inherit;
  background: linear-gradient(transparent 62%, var(--gold-soft) 62%, var(--gold-soft) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  transition: background-size 1.1s var(--ease);
}
.motion-enabled .statement mark { background-size: 0% 100%; }
.motion-enabled .statement mark.is-marked { background-size: 100% 100%; }
.approach-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 6vw, 80px); }
.approach-photo { margin: 0; position: sticky; top: 120px; }
.approach-photo img { display: block; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); }
.pillars { margin: 0; padding: 0; list-style: none; counter-reset: pillar; }
.pillars li { position: relative; padding: 22px 0 22px 64px; border-top: 1px solid var(--line); counter-increment: pillar; }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars li::before {
  content: counter(pillar, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font: italic 400 24px/1.2 var(--display);
  color: var(--gold);
}
.pillars h3 { margin-bottom: 6px; font-size: 26px; }
.pillars p { margin: 0; color: var(--muted); }

/* Programmes: navy explorer with fee planner */
.programmes {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, #2f3d86 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 110%, #2a356f 0%, transparent 60%),
    var(--navy);
  color: #e9ecf5;
}
.section-inner { max-width: var(--wide); margin: auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.programmes .eyebrow { color: var(--gold-soft); }
.programmes h2, .programmes h3 { color: #fbf8f0; }
.programmes h2 em { color: var(--gold-soft); }
.programmes .section-intro > p { color: #c3cae0; }
.programme-explorer.is-tabbed { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.programme-tabs { display: flex; flex-direction: column; gap: 6px; }
.programme-tabs[hidden] { display: none; }
.programme-tabs button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  background: #ffffff08;
  color: #e9ecf5;
  text-align: left;
  transition: background .25s, border-color .25s, color .25s;
}
.programme-tabs button:hover { background: #ffffff14; }
.programme-tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.tab-number { font: italic 400 20px var(--display); color: var(--gold); }
.tab-name { font: 400 23px/1.15 var(--display); }
.tab-name small { display: block; margin-top: 4px; font: 500 14px var(--sans); opacity: .75; }
.programme-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 36px 0; border-top: 1px solid #ffffff26; }
.programme-explorer.is-tabbed .programme-panel { padding: clamp(28px, 3vw, 40px); border: 1px solid #ffffff1f; border-radius: 26px; background: #ffffff0a; }
.programme-panel[hidden] { display: none; }
.panel-number { font: italic 400 24px var(--display); color: var(--gold); }
.panel-copy h3 { margin: 8px 0 10px; font-size: clamp(34px, 3.4vw, 48px); }
.panel-copy p { color: #c9d0e3; }
.age-range { font-weight: 600; color: var(--gold-soft) !important; }
.panel-copy .text-link { color: #fff; margin-top: 8px; }
.planner { align-self: center; padding: 26px; border-radius: 20px; background: #0d133566; border: 1px solid #ffffff1a; }
.planner-figures { display: grid; gap: 10px; margin: 0 0 24px; }
.planner-figures > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #ffffff1a; }
.planner-figures dt { font-size: 15px; color: #b8c1da; }
.planner-figures dd { margin: 0; font: 400 clamp(26px, 2.2vw, 32px)/1.1 var(--display); color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.planner-figures small { font: 600 13px var(--sans); letter-spacing: .08em; color: var(--gold-soft); }
.planner-terms { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.planner-terms li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; font-size: 15px; }
.term-label { color: #b8c1da; }
.term-amount { font-variant-numeric: tabular-nums; color: #fff; }
.term-bar { display: flex; height: 10px; border-radius: 999px; background: #ffffff14; overflow: hidden; }
.tuition-bar { width: calc(100% - var(--registration-share, 0%)); background: linear-gradient(90deg, #6f95cf, #a9c1e6); border-radius: 999px; transform-origin: left; }
.registration-bar { width: var(--registration-share, 0%); background: var(--gold); transform-origin: left; }
.motion-enabled .programme-panel:not(.is-shown) .term-bar > span { transform: scaleX(0); }
.motion-enabled .programme-panel.is-shown .term-bar > span { transform: scaleX(1); transition: transform .9s var(--ease); }
.motion-enabled .programme-panel.is-shown li:nth-child(2) .term-bar > span { transition-delay: .12s; }
.motion-enabled .programme-panel.is-shown li:nth-child(3) .term-bar > span { transition-delay: .24s; }
.planner-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -6px 0 16px; font-size: 14px; color: #b8c1da; }
.planner-legend span { display: inline-block; width: 18px; height: 8px; border-radius: 999px; }
.planner-legend span + * , .key-registration { margin-left: 8px; }
.key-tuition { background: #8daedd; }
.key-registration { background: var(--gold); }
.planner-total { margin: 0; padding-top: 16px; border-top: 1px solid #ffffff1f; font-size: 15px; color: #c9d0e3; }
.planner-total strong { color: var(--gold-soft); font-weight: 600; }

/* Fee schedule */
.fees-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.fees-head h2 { margin: 0; }
.fees-head > p { margin: 0; color: var(--muted); }
.fee-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.fee-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table thead th { padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--pale); font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.fee-table thead th:first-child, .fee-table tbody th { text-align: left; }
.fee-table tbody th { padding: 20px 24px; font: 400 23px/1.2 var(--display); }
.fee-table tbody th small { display: block; margin-top: 4px; font: 500 14px var(--sans); color: var(--muted); }
.fee-table td { padding: 20px 24px; text-align: right; font-size: 18px; white-space: nowrap; }
.fee-table td:last-child { font-weight: 700; color: var(--navy); }
.fee-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.fee-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.fee-notes > div { padding: 26px; border-radius: var(--radius); background: var(--ivory); }
.fee-notes h3 { font-size: 24px; margin-bottom: 10px; }
.fee-notes p { margin: 0; color: #474f66; font-size: 16px; }

/* A week at Waridi (shown once admin fills it in) */
.week { border-top: 1px solid var(--line); }
.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.week-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.week-card > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--pale); color: var(--blue); margin-bottom: 16px; }
.week-card h3 { margin-bottom: 8px; }
.week-card p { margin: 0 0 6px; }
.day-plan { margin-top: 40px; }
.day-plan ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--gold); }
.day-plan li { position: relative; padding: 22px 18px 0 0; }
.day-plan li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }

/* Nature: full-bleed photograph that opens as you scroll */
.nature { background: var(--pale); overflow: clip; }
.nature-intro { text-align: center; padding-bottom: clamp(32px, 4vw, 56px); }
.nature-intro h2 { font-size: clamp(40px, 5.4vw, 80px); max-width: 900px; margin-inline: auto; }
.nature-frame {
  position: relative;
  height: clamp(420px, 80vh, 780px);
  margin: 0;
  overflow: hidden;
  clip-path: inset(0 var(--gutter) round 28px);
  background: #233c45;
}
.motion-enabled .nature-frame { clip-path: inset(0 var(--inset, var(--gutter)) round var(--frame-radius, 28px)); }
.nature-photo { display: block; width: 100%; height: 112%; object-fit: cover; transform: translateY(var(--drift, -4%)); filter: saturate(.9); }
.nature-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #101943d9, transparent 55%); pointer-events: none; }
.nature-word { position: absolute; z-index: 2; left: max(var(--gutter), 6vw); bottom: clamp(32px, 6vw, 72px); color: #fbf8f0; font: italic 500 clamp(44px, 7vw, 108px)/1.05 var(--display); letter-spacing: -.02em; }
.nature-frame figcaption { position: absolute; z-index: 2; right: max(var(--gutter), 6vw); bottom: 24px; color: #fff; font-size: 14px; }
.nature-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.nature-video.is-playing { opacity: 1; }
.media-toggle { position: absolute; z-index: 3; right: max(var(--gutter), 6vw); top: 24px; padding: 10px 16px; border: 1px solid #ffffffaa; border-radius: 999px; background: #132549c9; color: #fff; font-size: 14px; }
.media-toggle[hidden] { display: none; }
.nature-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.nature-notes p { font: 400 clamp(22px, 2vw, 28px)/1.4 var(--display); margin: 0; }
.nature-notes strong { font-weight: 500; color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid #cfdaeb; font-size: 15px; }

/* Curriculum pathways */
.pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pathway { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.pathway h3 { font-size: 25px; }
.pathway ul { margin: 0; padding: 0; list-style: none; }
.pathway li { position: relative; padding: 7px 0 7px 18px; border-top: 1px solid #eef0f5; font-size: 16px; color: #3f4862; }
.pathway li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.exam-note { display: flex; gap: 20px; align-items: flex-start; margin-top: 28px; padding: 26px 28px; border-radius: var(--radius); background: var(--pale); }
.exam-note > .icon { width: 40px; height: 40px; color: var(--blue); }
.exam-note h3 { margin-bottom: 6px; font-size: 24px; }
.exam-note p { margin: 0; color: #474f66; }

/* Admissions journey: a garden path */
.journey { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.journey-intro { position: sticky; top: 130px; }
.journey-intro p { color: var(--muted); max-width: 440px; }
.path { position: relative; }
.path-line { position: absolute; left: 0; top: 18px; bottom: 18px; width: 40px; height: calc(100% - 36px); overflow: visible; }
.path-line path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.path-track { stroke: #d5dbe8; stroke-width: 2; stroke-dasharray: 2 8; }
.path-ink { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion-enabled .path-ink { stroke-dashoffset: calc(1 - var(--progress, 0)); }
.path-steps { margin: 0; padding: 0; list-style: none; }
.path-steps li { position: relative; display: flex; padding: 0 0 clamp(28px, 3.4vw, 44px) 76px; }
.path-steps li:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute;
  left: 2px;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--paper);
  font: italic 500 17px var(--display);
  color: var(--navy);
  transition: background .4s, color .4s;
}
.path-steps li.is-reached .step-dot, html:not(.motion-enabled) .step-dot { background: var(--gold); color: var(--navy-deep); }
.path-steps h3 { margin: 2px 0 6px; font-size: clamp(23px, 2vw, 28px); }
.path-steps p { margin: 0; color: var(--muted); }

/* Questions */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; border-top: 1px solid var(--line); }
.faq-aside { position: sticky; top: 130px; }
.contact-card { margin-top: 28px; padding: 26px; border-radius: var(--radius); background: var(--pale); }
.contact-card h3 { margin-bottom: 6px; font-size: 24px; }
.contact-card p { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .button { min-height: 46px; padding: 10px 16px; font-size: 15px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font: 400 clamp(21px, 1.8vw, 25px)/1.3 var(--display);
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--gold);
  transition: transform .3s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-answer { padding: 0 48px 22px 0; color: #474f66; }
.faq-answer p:last-child { margin: 0; }

/* Closing */
.closing {
  background:
    radial-gradient(700px 420px at 90% 120%, #bd96543d, transparent 65%),
    radial-gradient(800px 500px at 0% -20%, #2f3d86, transparent 60%),
    var(--navy-deep);
  color: #e9ecf5;
}
.closing-inner { display: grid; grid-template-columns: 1.7fr .7fr; align-items: end; gap: 40px; max-width: var(--wide); margin: auto; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.closing h2 { margin: 0; font-size: clamp(48px, 7vw, 108px); font-weight: 450; line-height: 1; letter-spacing: -.02em; color: #fbf8f0; }
.closing h2 em { display: block; color: var(--gold-soft); }
.closing-actions { display: grid; gap: 22px; }
.closing .button.gold { min-height: 58px; font-size: 18px; }
.contact-options { display: grid; gap: 10px; }
.contact-options a { display: inline-flex; gap: 10px; align-items: center; color: #d6dcec; text-decoration: none; }
.contact-options a:hover { color: #fff; }

/* Mobile action bar */
.mobile-actions { display: none; }

/* =========================================================
   Consultation page
   ========================================================= */
.consult-hero { max-width: var(--wide); margin: auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 32px; }
.consult-hero h1 { font-size: clamp(44px, 6vw, 84px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 18px; }
.consult-hero > p { max-width: 760px; font-size: 19px; color: #3b4566; }
.consult-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 8vw, 110px); }
.consult-side { display: grid; gap: 24px; }
.enquiry-panel { padding: clamp(24px, 3vw, 40px); }
.enquiry-panel h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
.choice-field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.choice-field legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; margin: 0; font-weight: 500; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { padding: 10px 18px; border: 1px solid #c3cbdc; border-radius: 999px; background: #fff; transition: background .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-sent { padding: 20px 0; }
.sent-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); }
.sent-mark .icon { width: 28px; height: 28px; }
.talk-links { display: grid; gap: 10px; }
.talk-links a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .2s, background .2s; }
.talk-links a:hover { border-color: var(--blue); background: var(--pale); }
.talk-links .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--pale); color: var(--blue); }
.talk-links strong { display: block; font-size: 15px; }
.talk-links span { font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.consultation-slots { margin: 18px 0 22px; }
.consultation-slots article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.consultation-slots article div > span { display: block; font-size: 15px; color: var(--muted); }
.consultation-empty { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--pale); font-size: 16px; }
.tick-list { margin: 0 0 18px; padding: 0; list-style: none; }
.tick-list li { position: relative; padding: 8px 0 8px 30px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* =========================================================
   Forms, panels and the family / staff workspace
   ========================================================= */
.panel, .auth-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel h2 { font-size: clamp(26px, 2.4vw, 32px); }
.panel p { color: var(--muted); }
.warm { background: var(--ivory); border-color: #e6dfcc; }
.field { margin-bottom: 20px; }
label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 600; }
.field label { display: inline-block; }
.required { margin-left: 3px; color: #a8743f; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c3cbdc;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid #d7e3f3; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); }
.input-wrap { position: relative; }
.input-wrap input[type=password] { padding-right: 72px; }
.password-toggle { position: absolute; right: 12px; top: 13px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--blue); }
.help, .helptext { display: block; margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.help ul { padding-left: 18px; }
.checkbox-field { margin-top: 8px; }
.checkbox-field label, .consent-row { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 400; line-height: 1.55; }
.consent-row input { flex-shrink: 0; margin-top: 3px; }
.errorlist { margin: 0; padding: 8px 0 0 18px; color: var(--error); font-size: 15px; }
.errorlist.nonfield { margin-bottom: 18px; padding: 12px 22px; border-radius: 12px; background: #fff0eb; }
.auth-bottom { margin: 22px 0 0; text-align: center; font-size: 15px; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 85px); align-items: start; max-width: 1100px; margin: clamp(32px, 5vw, 65px) auto clamp(48px, 7vw, 90px); padding: 0 var(--gutter); }
.auth-layout aside { padding-top: 32px; }
.auth-layout aside h1 { font-size: clamp(40px, 4.6vw, 62px); font-weight: 500; letter-spacing: -.02em; }
.auth-layout aside p { max-width: 360px; color: var(--muted); }
.auth-layout aside small { font-size: 15px; }
.auth-card h2 { font-size: 32px; margin-bottom: 10px; }
.auth-card form { margin-top: 24px; }
.center-card { max-width: 560px; margin: clamp(32px, 5vw, 75px) auto clamp(48px, 7vw, 100px); padding: clamp(24px, 3vw, 36px); text-align: center; }
.center-card h1 { font-size: clamp(34px, 4vw, 44px); }
.center-card p { color: var(--muted); }
.center-card form { text-align: left; }
.center-card label { margin-top: 18px; }
.center-card .button { margin-top: 18px; }
.round-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: #fff; font-size: 22px; color: var(--blue); }
.center-card .round-icon { margin: 0 auto 26px; background: var(--pale); }
.form-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; max-width: 1100px; margin: clamp(32px, 5vw, 60px) auto clamp(48px, 7vw, 90px); padding: 0 var(--gutter); }
.form-layout h1 { font-size: clamp(34px, 4vw, 48px); }
.form-layout > div > p { color: var(--muted); }
.form-layout form p { margin-bottom: 22px; }
.form-note { display: flex; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-note > span { font-size: 32px; color: var(--gold); }
.form-note p { font-size: 15px; color: var(--muted); }
.workspace { max-width: none; margin: clamp(32px, 5vw, 55px) auto clamp(48px, 7vw, 90px); padding: 0 var(--gutter); }
.workspace h1 { font-size: clamp(34px, 4vw, 48px); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { margin-bottom: 0; color: var(--muted); }
.section-heading.compact { margin: 32px 0 20px; }
.compact h2, .compact h3 { margin: 0; }
.badge { display: inline-block; padding: 6px 12px; border: 1px solid #d3ddec; border-radius: 999px; background: #e7edf8; color: #233c72; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dashboard-summary { display: flex; align-items: center; gap: 20px; padding: 24px; border: 1px solid #d2dcec; border-radius: 16px; background: var(--pale); }
.dashboard-summary h3 { margin-bottom: 4px; font-size: 20px; }
.dashboard-summary p { margin: 0; font-size: 15px; color: var(--muted); }
.dashboard-summary > .badge { margin-left: auto; }
.family-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.family-totals > div { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.family-totals span { display: block; font-size: 14px; color: var(--muted); }
.family-totals strong { font: 400 26px var(--display); }
.children-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.child-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.child-card:hover { border-color: #9fb2d3; box-shadow: 0 18px 40px -30px #1d245599; }
.child-card > .badge { position: absolute; top: 28px; right: 24px; }
.child-card h2 { margin-bottom: 6px; font-size: 28px; }
.child-card p { font-size: 15px; color: var(--muted); }
.avatar { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: var(--ivory); font: italic 24px var(--display); }
.card-bottom { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; border: 1px dashed #c3cbdc; border-radius: var(--radius); text-align: center; }
.empty-state h2 { margin-top: 22px; font-size: 30px; }
.empty-state p { color: var(--muted); }
.progress-track { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 32px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.progress-track .done { color: var(--navy); font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; }
.detail-grid h2, .payment-row, .review-item h3 { overflow-wrap: anywhere; }
.flower { font-size: 44px; line-height: 1; color: var(--gold); }
.line-item { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; font-size: 15px; }
.total { margin-top: 18px; padding-top: 16px; border-top: 1px solid #d9d2bf; font-size: 17px; }
.payment-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; padding: 20px; border-radius: 14px; background: var(--pale); }
.payment-details span { font-size: 14px; color: var(--muted); }
.payment-details strong { display: block; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.payment-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 16px; }
.space-top { margin-top: 24px; }
.learner-summary { margin-top: 24px; padding: 20px; border-radius: 14px; background: var(--pale); }
.learner-summary h3 { font-size: 21px; }
.learner-summary p { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.pipeline-summary { margin-bottom: 32px; }
.pipeline-summary h2 { font-size: 30px; }
.pipeline-summary .eyebrow { margin-bottom: 12px; }
.pipeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pipeline-grid > div { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--pale); }
.pipeline-grid strong { font: 400 38px/1.15 var(--display); }
.pipeline-grid span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.review-item { padding: 22px 0; border-top: 1px solid var(--line); }
.review-item form { margin-top: 16px; }
.review-item h3 { font-size: 21px; }
.review-item a { font-size: 15px; }
.review-item .section-heading { margin-top: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; }
.table-scroll { overflow-x: auto; }
.table-scroll th, .table-scroll td { padding: 14px; border-bottom: 1px solid var(--line); }
.table-scroll th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table-scroll td { font-size: 15px; }
.policy { max-width: 900px; margin: clamp(32px, 5vw, 65px) auto clamp(48px, 7vw, 100px); padding: 0 var(--gutter); }
.policy h1 { font-size: clamp(36px, 4.4vw, 54px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .desktop-nav a:not(.button) { padding-inline: 10px; }
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .programme-panel { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-window { order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
  .window-frame { aspect-ratio: 4 / 3.4; }
  .hero-seal { left: -12px; top: auto; bottom: -34px; width: 108px; height: 108px; }
  .hero-note { right: 12px; bottom: -26px; }
  .hero-copy { padding-top: 24px; }
  .approach-detail, .journey, .faq, .nature-notes, .consult-grid, .detail-grid { grid-template-columns: 1fr; }
  .approach-photo, .journey-intro, .faq-aside { position: static; }
  .programme-explorer.is-tabbed { grid-template-columns: minmax(0, 1fr); }
  .programme-explorer > * { min-width: 0; }
  .programme-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .programme-tabs::-webkit-scrollbar { display: none; }
  .programme-tabs button { flex: 0 0 auto; width: auto; scroll-snap-align: start; padding: 12px 16px; }
  .tab-name { font-size: 19px; white-space: nowrap; }
  .closing-inner { grid-template-columns: 1fr; }
  .auth-layout, .form-layout { grid-template-columns: 1fr; }
  .auth-layout aside { padding-top: 0; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .site-header { padding: 8px 8px 0; }
  .nav-inner { min-height: 64px; padding: 6px 6px 6px 12px; border-radius: 18px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand .cottage-mark { width: 42px; }
  .brand small { font-size: 9px; letter-spacing: .2em; }
  .hero { padding-top: 16px; gap: 20px; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .button.gold { width: 100%; justify-content: space-between; }
  .quiet-link { justify-content: center; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .hero-facts span { margin: 0; text-align: right; }
  .hero-seal { display: none; }
  .hero-note { position: static; max-width: none; margin-top: 14px; box-shadow: none; background: var(--ivory); }
  .window-frame { aspect-ratio: 4 / 3.2; border-radius: 200px 200px 22px 22px; }
  .pillars li { padding-left: 52px; }
  .pillars h3 { font-size: 23px; }
  .planner { padding: 20px; }
  .planner-figures > div { flex-wrap: wrap; row-gap: 2px; }
  .planner-terms li { grid-template-columns: 56px 1fr; }
  .term-amount { grid-column: 2; font-size: 14px; margin-top: -6px; }
  .fee-table { border: 0; background: none; overflow: visible; }
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .fee-table table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; }
  .fee-table tbody tr { margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
  .fee-table tbody tr + tr > * { border-top: 0; }
  .fee-table tbody th { padding: 0 0 10px; }
  .fee-table td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #eef0f5 !important; font-size: 17px; }
  .fee-table td::before { content: attr(data-label); color: var(--muted); font-weight: 400; font-size: 15px; }
  .fee-notes { grid-template-columns: 1fr; }
  .nature-frame { height: 420px; clip-path: inset(0 12px round 20px); }
  .motion-enabled .nature-frame { clip-path: inset(0 var(--inset, 12px) round var(--frame-radius, 20px)); }
  .pathway-grid { grid-template-columns: 1fr; }
  .exam-note { flex-direction: column; gap: 12px; }
  .path-steps li { padding-left: 64px; }
  .faq-list summary { font-size: 21px; }
  .faq-answer { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .children-grid, .family-totals { grid-template-columns: 1fr; }
  .family-totals > div { display: flex; align-items: center; justify-content: space-between; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-details { grid-template-columns: 1fr; }
  .payment-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dashboard-summary { padding: 18px; gap: 14px; }
  .dashboard-summary > .badge { display: none; }
  .progress-track { overflow-x: auto; white-space: nowrap; gap: 24px; }
  .home .mobile-actions {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid #fff;
    border-radius: 20px;
    background: rgba(250, 248, 242, .94);
    box-shadow: 0 18px 40px -16px #1d245577;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .4s var(--ease), opacity .4s;
  }
  .home .mobile-actions .button { min-height: 48px; padding: 10px 12px; font-size: 16px; }
  .home .mobile-actions.is-tucked { transform: translateY(130%); opacity: 0; }
  .home .site-footer { padding-bottom: 104px; }
}

/* Motion: decorative only; content never depends on it. */
@media (prefers-reduced-motion: no-preference) {
  .motion-enabled .hero-seal { animation: seal-turn 28s linear infinite; }
}
@keyframes seal-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
