:root {
  --ink: #081629;
  --navy: #13294b;
  --blue: #4a77b5;
  --sky: #9db8dd;
  --paper: #f5f2eb;
  --paper-2: #ebe6da;
  --amber: #f0b34a;
  --text: #14233a;
  --muted: #5d6b7e;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1280px;
  --nav-h: 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.display { font-family: var(--display); font-optical-sizing: auto; font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
.display em { font-style: italic; font-weight: 300; color: var(--amber); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; }
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 58ch; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; background: rgba(8, 22, 41, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1.5rem; }
.brand img { height: 78px; width: auto; filter: brightness(0) invert(1); }
.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav a { white-space: nowrap; }
.primary-nav a:not(.pill) { color: #cfdbee; text-decoration: none; font-size: .94rem; font-weight: 500; position: relative; padding: .3rem 0; }
.primary-nav a:not(.pill)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav a:not(.pill):hover, .primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav a:not(.pill):hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-button { display: none; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-button .bars, .menu-button .bars::before { content: ""; position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; }
.menu-button .bars { top: 17px; }
.menu-button .bars::before { top: 8px; left: 0; right: 0; }

.pill { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .98rem; text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px; background: var(--amber); color: var(--ink); border: 0; cursor: pointer; transition: transform .25s var(--ease), background .2s; font-family: var(--sans); }
.pill:hover { background: #ffc65f; transform: translateY(-2px); }
.pill.small { padding: .55rem 1.1rem; font-size: .9rem; }
.pill.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.pill.ghost:hover { background: rgba(255,255,255,.1); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.dark:hover { background: var(--navy); }
.arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
a:hover > .arrow::after, .pill:hover .arrow::after { transform: translateX(4px); }

/* Dark sections */
.dark { background: var(--ink); color: #dbe5f4; position: relative; overflow: hidden; }
.dark .eyebrow { color: var(--sky); }

/* Hero */
.hero { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6.5rem)) 0 clamp(4rem, 9vw, 7rem); min-height: min(100svh, 920px); display: flex; align-items: center; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.numerals { position: absolute; right: -2vw; bottom: -.18em; font-family: var(--display); font-weight: 600; font-size: clamp(14rem, 34vw, 32rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(157,184,221,.28); letter-spacing: -.04em; pointer-events: none; user-select: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); color: #fff; margin-bottom: 1.75rem; }
.hero .lead { color: #b9c9e2; margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.25rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats div { max-width: 11rem; }
.hero-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: #fff; }
.hero-stats span { font-size: .85rem; color: #98abc9; line-height: 1.35; display: block; margin-top: .4rem; }
.book-stack { position: relative; aspect-ratio: 4 / 5; }
.book-stack .b { position: absolute; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; background: var(--navy); }
.book-stack .b img { width: 100%; height: 100%; object-fit: cover; }
.b1 { width: 82%; aspect-ratio: 1; left: 0; top: 8%; transform: rotate(-4deg); z-index: 2; }
.b2 { width: 54%; aspect-ratio: 1; right: 0; top: 0; transform: rotate(6deg); z-index: 1; }
.b3 { width: 54%; aspect-ratio: 1; right: 4%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.stamp { position: absolute; left: -1.2rem; bottom: 8%; z-index: 4; display: flex; align-items: center; gap: .6rem; background: var(--amber); color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: .6rem .95rem; border-radius: 999px; transform: rotate(-6deg); box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); }
.stamp i { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.stamp i::after { content: ""; width: .35rem; height: .6rem; border: solid var(--amber); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* Marquee */
.marquee { background: var(--amber); color: var(--ink); overflow: hidden; white-space: nowrap; border-block: 1px solid rgba(8,22,41,.2); }
.marquee .track { display: inline-flex; animation: slide 38s linear infinite; padding: 1.05rem 0; }
.marquee span { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -.01em; padding-right: 2.2rem; }
.marquee span::after { content: "\2726"; margin-left: 2.2rem; font-size: .6em; vertical-align: .25em; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.section h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
.section-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-top .lead { color: var(--muted); margin: 0; }
.dark .section-top .lead, .dark .lead { color: #a9bbd6; }

/* Process timeline */
.process { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.process-intro h2 { color: #fff; margin-bottom: 1.5rem; }
.legend { display: flex; flex-direction: column; gap: .6rem; margin-top: 2rem; font-size: .92rem; color: #a9bbd6; }
.legend span { display: flex; gap: .7rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; background: rgba(157,184,221,.14); color: var(--sky); white-space: nowrap; }
.chip.ok { background: var(--amber); color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 clamp(2.4rem, 5vw, 4rem); position: relative; }
.timeline::before, .timeline .line { content: ""; position: absolute; left: .6rem; top: .8rem; bottom: .8rem; width: 2px; background: rgba(157,184,221,.2); }
.timeline .line { background: var(--amber); bottom: auto; height: 0; transition: height .1s linear; }
.timeline li { position: relative; padding: 0 0 clamp(2rem, 4vw, 3.2rem); opacity: .42; transition: opacity .4s var(--ease); }
.timeline li.on { opacity: 1; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * clamp(2.4rem, 5vw, 4rem) + .6rem - 6px); top: .8rem; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(157,184,221,.4); transition: .4s var(--ease); }
.timeline li.on::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(240,179,74,.18); }
.timeline .n { font-family: var(--display); font-size: .95rem; color: var(--sky); letter-spacing: .08em; }
.timeline h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; letter-spacing: -.015em; margin: .15rem 0 .5rem; }
.timeline p { color: #a9bbd6; max-width: 46ch; margin-bottom: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.tile { position: relative; border-radius: 22px; padding: clamp(1.4rem, 2.4vw, 2.2rem); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; text-decoration: none; transition: transform .4s var(--ease); isolation: isolate; }
.tile:hover { transform: translateY(-5px); }
.tile .code { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.tile h3 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.02em; line-height: 1.05; margin-bottom: .55rem; }
.tile p { margin: 0; max-width: 34ch; font-size: .98rem; line-height: 1.5; opacity: .9; }
.tile .glyph { position: absolute; z-index: -1; right: -.05em; bottom: -.28em; font-family: var(--display); font-weight: 600; font-size: 13rem; line-height: 1; letter-spacing: -.05em; opacity: .13; }
.t-kids { grid-column: span 5; grid-row: span 2; background: var(--amber); color: var(--ink); }
.t-kids img { position: absolute; z-index: -1; right: -10%; bottom: -12%; width: 72%; border-radius: 10px; transform: rotate(7deg); box-shadow: 0 24px 40px -16px rgba(8,22,41,.5); transition: transform .5s var(--ease); }
.t-kids:hover img { transform: rotate(3deg) scale(1.04); }
.t-kids { justify-content: flex-start; gap: 1.2rem; }
.t-kids .top { min-height: 0; }
.t-story { grid-column: span 7; background: var(--blue); color: #fff; }
.t-learn { grid-column: span 3; background: var(--paper-2); color: var(--ink); }
.t-pro { grid-column: span 4; background: var(--navy); color: #fff; }
.t-tech { grid-column: span 12; min-height: 180px; background: var(--ink); color: #fff; background-image: linear-gradient(rgba(157,184,221,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(157,184,221,.1) 1px, transparent 1px); background-size: 34px 34px; flex-direction: row; align-items: flex-end; gap: 2rem; }
.t-tech p { max-width: 50ch; }

/* Routes */
.routes { border-top: 1px solid rgba(8,22,41,.2); }
.route { display: grid; grid-template-columns: 4rem 1.1fr 1.4fr auto; gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-bottom: 1px solid rgba(8,22,41,.2); position: relative; transition: padding .4s var(--ease); }
.route::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.route:hover::before { transform: scaleY(1); }
.route:hover { color: #fff; }
.route:hover .rkeep { color: var(--amber); }
.route .rn { font-family: var(--display); color: var(--blue); font-size: 1rem; }
.route h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.02em; line-height: 1.05; }
.route p { margin: 0; }
.rkeep { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); max-width: 15ch; text-align: right; }
.routes-wrap { position: relative; z-index: 0; }

/* Featured book */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.feature h2 { color: #fff; margin-bottom: 1.5rem; }
.feature .collage { position: relative; aspect-ratio: 1.05; }
.feature .collage img { position: absolute; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.feature .c1 { width: 62%; left: 0; top: 6%; transform: rotate(-5deg); z-index: 3; }
.feature .c2 { width: 46%; right: 2%; top: 0; transform: rotate(5deg); }
.feature .c3 { width: 46%; right: 8%; bottom: 0; transform: rotate(-2deg); z-index: 2; }
.facts { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 8rem 1fr; padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .98rem; }
.facts li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.facts b { font-weight: 600; color: var(--sky); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding-top: .15rem; }

/* Commitments */
.cm { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(8,22,41,.18); border: 1px solid rgba(8,22,41,.18); border-radius: 24px; overflow: hidden; }
.cm > div { background: var(--paper); padding: clamp(1.75rem, 4vw, 3.5rem); }
.cm > div:last-child { background: var(--ink); color: #dbe5f4; }
.cm h3 { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.cm > div:last-child h3 { color: var(--amber); font-style: italic; font-weight: 300; }
.cm ul { list-style: none; margin: 0; padding: 0; }
.cm li { padding: .85rem 0 .85rem 2rem; border-top: 1px solid rgba(8,22,41,.14); position: relative; }
.cm > div:last-child li { border-color: rgba(255,255,255,.14); }
.cm li::before { position: absolute; left: 0; top: .85rem; font-weight: 700; color: var(--blue); }
.cm > div:first-child li::before { content: "\2713"; }
.cm > div:last-child li::before { content: "\00d7"; color: var(--amber); font-size: 1.2rem; top: .6rem; }

/* CTA */
.cta { text-align: left; }
.cta h2 { font-size: clamp(3rem, 10vw, 9rem); color: #fff; max-width: 14ch; margin-bottom: 2.5rem; }
.cta .row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; }
.cta .row p { margin: 0; max-width: 40ch; color: #a9bbd6; }

/* Inner page hero */
.page-hero { padding: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem)) 0 clamp(3.5rem, 7vw, 6rem); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 7rem); color: #fff; max-width: 16ch; margin-bottom: 1.75rem; }
.page-hero .lead { color: #b9c9e2; }
.page-hero .numerals { font-size: clamp(10rem, 24vw, 22rem); }

/* Generic prose and lists on paper */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
.prose h3 { font-family: var(--display); font-size: 1.6rem; margin: 2rem 0 .5rem; letter-spacing: -.01em; }
.prose .lead { margin-bottom: 1.2rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0; }
.checks li { padding: .7rem 0 .7rem 2rem; border-top: 1px solid rgba(8,22,41,.15); position: relative; }
.checks li:last-child { border-bottom: 1px solid rgba(8,22,41,.15); }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.split2 { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split2 > :first-child { position: sticky; top: calc(var(--nav-h) + 40px); }
.split2 h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.stack > * + * { margin-top: clamp(3rem, 6vw, 5rem); }

.imp-row { display: grid; grid-template-columns: 5rem 1fr 1.2fr; gap: clamp(1rem, 3vw, 3rem); padding: 2.2rem 0; border-top: 1px solid rgba(8,22,41,.2); align-items: baseline; }
.imp-row:last-child { border-bottom: 1px solid rgba(8,22,41,.2); }
.imp-row .code { font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--blue); }
.imp-row h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.02em; line-height: 1; }
.imp-row p { margin: 0; }
.imp-row .big { font-size: 1.2rem; margin-bottom: .4rem; }
.imp-row .small { color: var(--muted); }

.faq details { border-top: 1px solid rgba(8,22,41,.2); }
.faq details:last-child { border-bottom: 1px solid rgba(8,22,41,.2); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.35rem; padding: 1.2rem 3rem 1.2rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .8rem; font-size: 2rem; font-weight: 300; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.4rem 0; margin: 0; color: var(--muted); }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.box { border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper-2); }
.box.navy { background: var(--navy); color: #dbe5f4; }
.box h3 { font-family: var(--display); font-size: 1.9rem; margin-bottom: 1rem; }
.box.navy h3 { color: #fff; }
.box ul { list-style: none; padding: 0; margin: 0; }
.box li { padding: .6rem 0; border-top: 1px solid rgba(8,22,41,.15); }
.box.navy li { border-color: rgba(255,255,255,.16); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 4rem 1fr; padding: 1.4rem 0; border-top: 1px solid rgba(8,22,41,.2); }
.steps li:last-child { border-bottom: 1px solid rgba(8,22,41,.2); }
.steps li::before { content: "0" counter(s); font-family: var(--display); color: var(--blue); }
.steps h3 { font-family: var(--display); font-size: 1.6rem; margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; }
.gallery figure { margin: 0; }
.gallery figure:nth-child(2) { margin-top: 3rem; }

/* Form */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.field { margin-bottom: 1.4rem; }
label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .45rem; color: var(--navy); }
input, select, textarea { width: 100%; font: inherit; padding: .9rem 0; border: 0; border-bottom: 1.5px solid rgba(8,22,41,.35); background: transparent; color: var(--text); border-radius: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-bottom-color: var(--blue); box-shadow: 0 2px 0 0 var(--blue); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #b3261e; }
.hint { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.status { margin-top: 1rem; font-weight: 600; color: var(--navy); }
.aside { background: var(--navy); color: #dbe5f4; border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.aside h2 { font-family: var(--display); font-size: 2rem; color: #fff; margin-bottom: 1rem; }
.aside ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.aside li { margin-bottom: .7rem; }

/* Footer */
.site-footer { background: var(--ink); color: #98abc9; padding: clamp(3.5rem, 7vw, 6rem) 0 1.5rem; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 3rem; position: relative; }
.footer-brand { width: min(491px, 100%); container-type: inline-size; }
.footer-logo { width: 100%; height: auto; display: block; filter: brightness(0) invert(1); margin-bottom: 0; }
.footer-tag { font-family: var(--display); font-size: min(1.5rem, 5.6cqw); white-space: nowrap; line-height: 1.2; color: #fff; padding-left: 31.4%; margin-top: 1.5rem; }
.site-footer h2 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); font-weight: 600; margin-bottom: 1rem; }
.site-footer nav a { display: block; text-decoration: none; padding: .25rem 0; color: #cfdbee; }
.site-footer nav a:hover { color: var(--amber); }
.footer-base { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; position: relative; }
.footer-base p { margin: 0; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-grid, .process, .feature, .split2, .contact-grid { grid-template-columns: 1fr; }
  .process-intro, .split2 > :first-child { position: static; }
  .book-stack { max-width: 420px; }
  .section-top { grid-template-columns: 1fr; }
  .route { grid-template-columns: 3rem 1fr; }
  .route p, .rkeep { grid-column: 2; text-align: left; max-width: none; }
  .t-kids { grid-column: span 12; grid-row: auto; min-height: 380px; }
  .t-story, .t-learn, .t-pro { grid-column: span 6; }
  .t-learn { grid-column: span 6; }
  .cm, .two-up { grid-template-columns: 1fr; }
  .imp-row { grid-template-columns: 1fr; gap: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1300px) {
  .menu-button { display: block; }
  .primary-nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: .5rem var(--pad) 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .primary-nav.open { display: flex; }
  .primary-nav a:not(.pill) { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1rem; }
  .primary-nav .pill { margin-top: 1rem; justify-content: center; }
}
@media (max-width: 600px) {
  .t-story, .t-learn, .t-pro { grid-column: span 12; }
  .t-tech { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(2) { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem 2rem; }
  .facts li { grid-template-columns: 1fr; gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

.two-up.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .two-up.three { grid-template-columns: 1fr; } }

@media (max-width: 820px) { :root { --nav-h: 90px; } .brand img { height: 63px; max-width: calc(100vw - 120px); object-fit: contain; object-position: left; } }

/* Legal pages */
.legal h3 { font-size: 1.5rem; margin: 2.2rem 0 .4rem; }
.legal p { margin-bottom: 1em; }
.legal .hint { margin-top: 0; }
.legal a { color: var(--blue); }
mark.todo { background: var(--amber); color: var(--ink); padding: .05em .4em; border-radius: 4px; font-weight: 600; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 2rem; }
.footer-legal { display: flex; gap: 1.5rem; order: 2; }
.footer-legal a { color: #cfdbee; text-decoration: none; }
.footer-legal a:hover { color: var(--amber); text-decoration: underline; }
