@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/mali-500-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/mali-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/mali-600-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/mali-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/mali-700-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/mali-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai-looped-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai-looped-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai-looped-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai-looped-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai-looped-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai-looped-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai-looped-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai-looped-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Baanwadfun Kindergarten. "The drawn house": the school's own logo (a tiled roof, a round cross window, a cloud)
   drawn as one ink line. Colours come from the school, not a template: brick from the logo roof (every action),
   uniform blue from the children's gingham and the logo cloud (section tints, the visit band), slate ink for text.
   Real photos only. Light only (color-scheme: light only), as on the earlier kindergarten demo.
   Shape rule: interactive 12 to 14px, cards and photos 16px, panels 26px; circles only for the window motif. */

:root {
  --paper: #fbfcfd;
  --paper-2: #eef4f9;
  --paper-3: #e2ebf3;
  --card: #ffffff;
  --ink: #1f2b38;
  --ink-2: #3e4a58;
  --muted: #5b6674;
  --line: #dbe4ec;
  --line-2: #c3d0dc;
  --line-strong: #7f91a3;
  --sketch: #b3c1ce;
  --roof: #b4432a;
  --roof-ink: #8f3320;
  --roof-soft: #f9e2d8;
  --sky: #2b5f8e;
  --cloud: #e4eef8;
  --cloud-line: #8db4d8;
  --yolk: #efae36;
  --yolk-soft: #fff1d2;
  --leaf: #4b7a40;
  --leaf-soft: #e4efdf;
  --night: #1c2733;
  --on-night: #f2f5f8;
  --on-night-2: #b9c4cf;
  --f-head: "Mali", "Noto Sans Thai Looped", ui-rounded, system-ui, sans-serif;
  --f-body: "Noto Sans Thai Looped", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 12px;
  --r: 16px;
  --r-l: 26px;
  --nav-h: 64px;
  --gut: clamp(16px, 4.6vw, 44px);
  --sec: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --shadow: 0 1px 0 rgba(31, 43, 56, .05), 0 22px 44px -30px rgba(31, 43, 56, .35);
  color-scheme: light only;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.78 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--roof-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--roof); }
p, ul, ol, dl, figure, h1, h2, h3, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yolk-soft); color: var(--ink); }
input, select, textarea { caret-color: var(--roof); accent-color: var(--roof); }
html { scrollbar-color: var(--line-strong) var(--paper-2); }

h1, h2, h3 { font-family: var(--f-head); font-weight: 700; color: var(--ink); text-wrap: balance; letter-spacing: 0; }
h1 { font-size: clamp(2.35rem, 1.45rem + 4vw, 4.5rem); line-height: 1.24; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.5vw, 3.25rem); line-height: 1.28; }
h3 { font-size: clamp(1.25rem, 1.15rem + .35vw, 1.4rem); line-height: 1.42; font-weight: 600; }
html[lang="en"] h1, html[lang="en"] h2 { line-height: 1.12; }
.lead { font-size: clamp(1.06rem, 1rem + .32vw, 1.24rem); line-height: 1.75; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.ph { display: inline-block; max-width: 100%; }
.nw { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* language switch: Thai first, English on request */
html[data-lang="th"] [lang="en"]:not(.keep), html[data-lang="en"] [lang="th"]:not(.keep) { display: none !important; }

.wrap { width: min(100% - 2 * var(--gut), 1180px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 14px;
  background: var(--roof); color: #fff; border: 2px solid var(--roof);
  box-shadow: 0 1px 1px rgba(143, 51, 32, .25), 0 8px 18px -10px rgba(143, 51, 32, .6);
  font: 600 1.02rem/1.25 var(--f-body); text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--roof-ink); border-color: var(--roof-ink); color: #fff; }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: 0 1px 1px rgba(143, 51, 32, .3); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn-ghost:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; border-radius: var(--r-s); }
.more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--roof-ink);
  text-decoration: none; border-bottom: 2px solid var(--roof-soft); padding-bottom: 2px;
}
.more::after { content: ""; width: 14px; height: 10px; background: currentColor; clip-path: polygon(0 40%, 64% 40%, 64% 0, 100% 50%, 64% 100%, 64% 60%, 0 60%); transition: transform .2s; }
.more:hover { color: var(--roof); border-color: var(--roof); }
.more:hover::after { transform: translateX(3px); }

/* the round cross window from the logo, used as the list mark */
.ticks li, .facts-list li { position: relative; padding-left: 30px; }
.ticks li::before, .facts-list li::before, .pw {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    var(--cloud);
}

/* ---------------------------------------------------------------- header */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -22px rgba(31, 43, 56, .45); }
.nav-in { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand:hover { color: var(--ink); }
.mark { width: 44px; height: 44px; flex: none; overflow: visible; }
.mk-cloud { fill: var(--cloud); stroke: var(--cloud-line); stroke-width: 1.6; }
.mk-roof { fill: var(--roof); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.mk-wall { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.mk-win { fill: var(--cloud); stroke: var(--ink); stroke-width: 2; }
.mk-cross { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.brand-name { display: flex; flex-direction: column; }
.bn-th { font: 700 1.3rem/1.15 var(--f-head); white-space: nowrap; }
/* the smallest phones keep the language switch in the menu only, so the name stays on one line */
@media (max-width: 359px) { .nav-tools > .lang { display: none; } }
.bn-en { font-size: .74rem; line-height: 1.2; color: var(--muted); letter-spacing: .01em; }
.nav-main { display: none; }
.nav-main ul { display: flex; gap: 2px; }
.nav-main a { display: flex; align-items: center; min-height: 44px; padding: 6px 11px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav-main a:hover { background: var(--paper-2); color: var(--ink); }
.nav-main a[aria-current="page"] { background: var(--roof-soft); color: var(--roof-ink); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r-s); padding: 2px; background: var(--card); }
.lang button { min-height: 44px; min-width: 44px; padding: 2px 10px; border: 0; background: transparent; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nav-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--line-2); background: var(--card); border-radius: var(--r-s); }
.burger { width: 20px; display: grid; gap: 6px; }
.burger i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] .burger i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49; max-height: calc(100dvh - var(--nav-h)); overflow: auto;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(31, 43, 56, .4);
  padding: 8px var(--gut) calc(20px + env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.menu.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.menu ul { display: grid; }
.menu li a { display: flex; align-items: center; min-height: 54px; font: 600 1.2rem/1.3 var(--f-head); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu li a[aria-current="page"] { color: var(--roof); }
.menu-foot { display: grid; gap: 10px; margin-top: 18px; }
.menu-foot .lang { justify-self: start; }
.menu-foot .lang button { min-height: 44px; padding: 4px 14px; }
@media (min-width: 760px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1180px) {
  :root { --nav-h: 76px; }
  .nav-main { display: block; margin-right: auto; }
  .menu-btn, .menu { display: none; }
  .brand { margin-right: 8px; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(14px, 3vw, 44px) 0 clamp(56px, 8vw, 112px); overflow: clip; }
.hero-in { display: grid; gap: clamp(18px, 3vw, 56px); grid-template-areas: "art" "text"; align-items: center; }
.hero-art { grid-area: art; }
.hero-text { grid-area: text; }
.hero h1 { margin-bottom: clamp(12px, 2vw, 22px); }
.hero .lead { margin-bottom: clamp(20px, 3vw, 34px); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* phones: as tall as the first screen allows, and never so wide that the cloud beside the roof runs off the edge */
.hh { --cloud-w: 150px; position: relative; aspect-ratio: 5 / 6;
  height: min(clamp(176px, calc(100vh - 430px), 300px), calc((100vw - var(--gut) - 8px - var(--cloud-w)) * 1.3));
  height: min(clamp(176px, calc(100svh - 430px), 300px), calc((100vw - var(--gut) - 8px - var(--cloud-w)) * 1.3)); }
.hh-photo { position: absolute; left: 8%; top: 34.4%; width: 84%; height: 63.4%; overflow: hidden; border-radius: 3px; background: var(--paper-3); }
.hh-photo img { width: 100%; height: 100%; object-fit: cover; }
.hh-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hh-roof { fill: var(--roof); }
.hh-chimney { fill: var(--roof-ink); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.hh-tiles { fill: none; stroke: rgba(251, 252, 253, .32); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 16 12; }
.hh-win { fill: var(--paper); stroke: var(--ink); stroke-width: 7; }
.hh-cross { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.hh-draw { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.hh-smoke { fill: none; stroke: var(--cloud-line); stroke-width: 6; stroke-linecap: round; }
.hh-cloud { position: absolute; left: 92%; top: 1%; width: var(--cloud-w); }
.hh-cloud svg { width: 100%; overflow: visible; }
.hh-cloud path { fill: var(--cloud); stroke: var(--cloud-line); stroke-width: 4; }
.hh-cloud p { position: absolute; inset: 14% 8% 10% 12%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; }
.hh-cloud strong { font: 700 1.5rem/1.1 var(--f-head); color: var(--sky); }
.hh-cloud p > span { font-size: .72rem; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 380px) { .hh { --cloud-w: 128px; } .hh-cloud strong { font-size: 1.3rem; } }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "text art"; }
  .hh { height: auto; width: min(100%, 500px); margin-left: auto; }
  .hh-cloud { left: -16%; top: 3%; width: 42%; }
  .hh-cloud strong { font-size: clamp(1.6rem, 1rem + 1.2vw, 2.3rem); }
  .hh-cloud p > span { font-size: .86rem; }
  .hero { padding-top: clamp(28px, 4vw, 64px); }
}

/* hero drawing: the ink line draws itself, the round window and the cloud follow (the photo is never hidden: it is the LCP) */
.js .hh .hh-draw, .js .hh .hh-cross, .js .hh .hh-smoke { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); }
.js .hh .hh-cloud { opacity: 0; transform: translateY(10px) scale(.96); }
.hh.go .hh-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease) .1s; }
.hh.go .hh-cross { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease) 1.1s; }
.hh.go .hh-smoke { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) 1.3s; }
.hh.go .hh-cloud { opacity: 1; transform: none; transition: opacity .7s var(--ease) 1s, transform .9s var(--ease) 1s; }

/* ---------------------------------------------------------------- section rhythm */
main > section { position: relative; }
.sec-h { margin-bottom: clamp(28px, 4vw, 52px); }

/* since 2549: a street of houses that grow (timeline family) */
.since { padding: var(--sec) 0; background: var(--paper-2); }
.since-text { max-width: 44em; margin-bottom: clamp(36px, 5vw, 64px); }
.since-text h2 { margin-bottom: 18px; }
.since-text p { color: var(--ink-2); margin-bottom: 18px; }
.grow { display: grid; gap: 28px; }
.grow-step { display: grid; grid-template-columns: 112px 1fr; gap: 0 18px; align-items: start; }
.grow-art { grid-row: span 3; display: flex; align-items: flex-end; height: 104px; border-bottom: 3px solid var(--ink); }
.grow-art .gh { width: auto; height: auto; max-width: 100%; max-height: 100px; }
.grow-y { font-size: .88rem; line-height: 1.4; font-weight: 600; color: var(--roof-ink); margin-bottom: 4px; }
.grow-step h3 { font-size: 1.25rem; }
.grow-step p:last-child { color: var(--ink-2); font-size: .98rem; line-height: 1.7; }
.gh-roof { fill: var(--roof); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.gh-wall { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.gh-win rect { fill: var(--cloud); stroke: var(--ink); stroke-width: 2; }
.gh-door { fill: var(--paper-3); stroke: var(--ink); stroke-width: 2.5; }
.gh-cloud { fill: var(--cloud); stroke: var(--cloud-line); stroke-width: 12; }
@media (min-width: 760px) {
  .grow { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; }
  .grow-step { grid-template-columns: 1fr; align-content: start; padding-right: clamp(20px, 3vw, 44px); }
  .grow-art { grid-row: auto; height: 150px; margin-bottom: 18px; padding-left: 6px; }
  .grow-art .gh { max-height: 140px; }
}
.since-about { background: var(--paper); }

/* one room, three ages (image-led, photo first) */
.mixed { padding: var(--sec) 0; }
.mixed-in { display: grid; gap: clamp(32px, 4vw, 64px); grid-template-areas: "body" "photo"; }
.mixed-proof { grid-area: photo; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--shadow); align-self: start; }
.mixed-proof img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mixed-proof figcaption { padding: 14px 18px 16px; font-size: .92rem; line-height: 1.65; color: var(--ink-2); }
.mixed-body { grid-area: body; }
.mixed-body h2, .mixed-head h2 { margin-bottom: 16px; }
.mixed-body .lead { margin-bottom: clamp(26px, 3vw, 40px); }
.ages { display: grid; gap: 22px; }
.ages li { display: grid; grid-template-columns: 72px 1fr; gap: 0 18px; align-items: start; }
.age-art { grid-row: span 3; display: flex; align-items: flex-end; justify-content: center; height: 104px; border-bottom: 3px solid var(--ink); }
.kid { width: auto; height: auto; }
.kid circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.kid path { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.ages li:nth-child(1) .kid path { fill: var(--cloud-line); }
.ages li:nth-child(2) .kid path { fill: var(--yolk); }
.ages li:nth-child(3) .kid path { fill: var(--roof); }
.age-y { font-size: .88rem; line-height: 1.4; font-weight: 600; color: var(--roof-ink); margin-bottom: 4px; }
.ages li > p:last-child { color: var(--ink-2); font-size: .98rem; line-height: 1.7; }
.mixed-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(30px, 4vw, 44px); }
.mixed-nums div { border-top: 3px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.mixed-nums dt { font-size: .85rem; line-height: 1.45; color: var(--muted); }
.mixed-nums dd { margin: 0 0 4px; font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem)/1.15 var(--f-head); color: var(--ink); }
@media (min-width: 900px) {
  .mixed-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "photo body"; align-items: start; column-gap: clamp(40px, 6vw, 88px); }
  .mixed-proof { position: sticky; top: calc(var(--nav-h) + 28px); }
}
/* the learning page shows the three years side by side */
.mixed-learn .mixed-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 48em; }
@media (min-width: 640px) {
  .mixed-learn .ages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .mixed-learn .ages li { grid-template-columns: 1fr; }
  .mixed-learn .age-art { grid-row: auto; justify-content: flex-start; padding-left: 6px; margin-bottom: 14px; }
}

/* one story, six corners (bento: the story tile is two cells wide, eight cells exactly) */
.story { padding: var(--sec) 0; background: var(--paper-2); }
.story-head { max-width: 44em; margin-bottom: clamp(30px, 4vw, 52px); }
.story-head h2 { margin-bottom: 14px; }
.story-head p { color: var(--ink-2); }
.story-head p + p { margin-top: 12px; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.book-card { grid-column: span 2; background: var(--yolk-soft); border-radius: var(--r); overflow: hidden; display: grid; align-content: start; }
.book-card figure { overflow: hidden; }
.book-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 28%; }
.book-card p { padding: 14px 18px 18px; font: 600 1rem/1.6 var(--f-head); color: var(--ink); }
.corner figure { border-radius: var(--r); overflow: hidden; background: var(--paper-3); margin-bottom: 12px; }
.corner img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.corner:hover img { transform: scale(1.03); }
.corner h3 { margin-bottom: 4px; }
.corner p { font-size: .95rem; line-height: 1.68; color: var(--ink-2); }
@media (min-width: 760px) {
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
  .book-card { grid-column: span 3; grid-template-columns: 1.4fr 1fr; align-items: center; }
  .book-card img { aspect-ratio: 16 / 10; height: 100%; }
  .book-card p { padding: 24px 28px; font-size: 1.15rem; }
}
@media (min-width: 1100px) {
  .story-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .book-card { grid-column: span 2; grid-template-columns: 1fr; align-items: start; }
  .book-card img { aspect-ratio: 2 / 1; height: auto; }
  .book-card p { padding: 16px 20px 20px; font-size: 1.05rem; }
}

/* ---------------------------------------------------------------- the day in the house (signature) */
.day { padding: var(--sec) 0; background: var(--paper); }
.day-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 56px); }
.day-head h2 { margin-bottom: 14px; }
.day-head p { color: var(--ink-2); }
/* block below 960px: a sticky item in its own grid row could not stick past that row */
.day-grid { display: block; }
.day-house { position: sticky; top: var(--nav-h); z-index: 4; background: var(--paper); margin-inline: calc(-1 * var(--gut)); padding: 8px var(--gut) 10px; border-bottom: 1px solid var(--line); }
.dh-frame { position: relative; max-width: 360px; margin-inline: auto; background: var(--card); border-radius: 18px; padding: 4px 6px; box-shadow: 0 1px 0 var(--line); }
.dh { width: 100%; height: auto; }
.dh-cap { position: absolute; left: 12px; top: 8px; display: grid; gap: 0; font: 600 .82rem/1.3 var(--f-head); color: var(--ink-2); max-width: 32%; }
.dh-cap time { font: 700 1.3rem/1.05 var(--f-head); color: var(--roof); font-variant-numeric: tabular-nums; }

.dh .room { fill: transparent; transition: fill .45s var(--ease); }
.dh[data-on="story"] .room[data-room="story"], .dh[data-on="living"] .room[data-room="living"], .dh[data-on="door"] .room[data-room="door"],
.dh[data-on="bath"] .room[data-room="bath"], .dh[data-on="bed"] .room[data-room="bed"] { fill: var(--cloud); }
.dh[data-on="play"] .room[data-room="play"], .dh[data-on="kitchen"] .room[data-room="kitchen"] { fill: var(--yolk-soft); }
.dh[data-on="garden"] .room[data-room="garden"] { fill: var(--leaf-soft); }
.dh-roof { fill: var(--roof); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.dh-walls, .dh-ground, .dh-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dh-chimney { fill: var(--roof-ink); stroke: var(--ink); stroke-width: 3; }
.dh-win { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.dh-sun { fill: var(--yolk-soft); stroke: var(--yolk); stroke-width: 3; }
.dh-smoke { fill: none; stroke: var(--cloud-line); stroke-width: 3; stroke-linecap: round; }
.dh .f { fill: none; stroke: var(--sketch); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s var(--ease); }
.dh .f .moon { fill: var(--yolk-soft); }
.dh .f .canopy { fill: var(--leaf-soft); stroke: var(--leaf); }
.dh .f .flag rect { stroke: none; }
.dh .f .fr { fill: #e6b5ab; } .dh .f .fw { fill: #fff; } .dh .f .fb { fill: #b9c3d6; }
.dh[data-on="story"] .f[data-room="story"], .dh[data-on="play"] .f[data-room="play"], .dh[data-on="bath"] .f[data-room="bath"],
.dh[data-on="bed"] .f[data-room="bed"], .dh[data-on="kitchen"] .f[data-room="kitchen"], .dh[data-on="living"] .f[data-room="living"],
.dh[data-on="door"] .f[data-room="door"], .dh[data-on="garden"] .f[data-room="garden"] { stroke: var(--ink); }
.dh[data-on="living"] .f .fr { fill: #c8102e; } .dh[data-on="living"] .f .fb { fill: #2d2a4a; }
.kid-walk { transition: transform .55s var(--ease), opacity .2s; }
.kid-walk.hop { opacity: 0; }
.kid-body { fill: var(--roof); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.kid-head { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }

.steps { padding-top: 6px; }
.step { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0 14px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-t time { display: block; font: 700 1.55rem/1.1 var(--f-head); color: var(--ink); font-variant-numeric: tabular-nums; transition: color .3s; }
.step.now .step-t time { color: var(--roof); }
.step-b h3 { margin-bottom: 2px; }
.step-where { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.step-where::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--line-2); clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); transition: background-color .3s; }
.step.now .step-where::before { background: var(--roof); }
.step-b > p:not(.step-where) { color: var(--ink-2); font-size: 1rem; line-height: 1.72; }
.step-photo { margin-top: 14px; border-radius: var(--r); overflow: hidden; max-width: 340px; background: var(--paper-3); }
.step-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-height: 620px) and (max-width: 959px) { .dh-frame { max-width: 290px; } }
@media (min-width: 960px) {
  .day-grid { display: grid; gap: 0 56px; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .day-house { top: calc(var(--nav-h) + 28px); align-self: start; margin: 0; padding: 0; border: 0; background: none; }
  .dh-frame { max-width: none; padding: 18px 20px 14px; border-radius: var(--r-l); box-shadow: var(--shadow); }
  .dh-cap { left: 32px; top: 28px; font-size: 1.1rem; gap: 2px; }
  .dh-cap time { font-size: 2.2rem; }
  .step { grid-template-columns: 96px minmax(0, 1fr); padding: 34px 0; }
  .step-t time { font-size: 2rem; }
}

/* ---------------------------------------------------------------- hands-on: cooking */
.hands { padding: var(--sec) 0; background: var(--yolk-soft); }
.hands-in { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hands-text h2 { margin-bottom: 16px; }
.hands-text > p { color: var(--ink-2); max-width: 34em; }
.cook-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; counter-reset: c; }
.cook-steps li { counter-increment: c; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--r-s); background: var(--card); border: 1.5px solid #ecd49c; font-weight: 600; font-size: .95rem; }
.cook-steps li::before { content: counter(c); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 .8rem/1 var(--f-head); }
.hands-photos { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: end; }
.hp { border-radius: var(--r); overflow: hidden; background: var(--paper-3); }
.hp img { width: 100%; height: 100%; object-fit: cover; }
.hp-a { grid-row: span 2; aspect-ratio: 3 / 4; }
.hp-b, .hp-c { aspect-ratio: 1; }
.hp-c { border-radius: 50%; border: 6px solid var(--card); }
@media (min-width: 900px) { .hands-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* outside: a full-bleed photo with the list laid over its edge */
.outside { padding: 0 0 var(--sec); background: var(--paper); }
.out-bg { height: clamp(260px, 52vw, 620px); overflow: hidden; background: var(--paper-3); }
.out-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.out-in { position: relative; margin-top: clamp(-120px, -9vw, -56px); }
.out-card { position: relative; background: var(--card); border-radius: var(--r-l); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); max-width: 640px; }
.out-card h2 { margin-bottom: 18px; }
.ticks { display: grid; gap: 12px; }
.ticks li { color: var(--ink-2); line-height: 1.65; }
.out-snap { display: none; }
@media (min-width: 900px) {
  .out-snap { display: block; position: absolute; right: 0; top: clamp(-200px, -14vw, -150px); width: clamp(180px, 20vw, 250px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--paper); box-shadow: var(--shadow); background: var(--paper-3); }
  .out-snap img { width: 100%; height: 100%; object-fit: cover; }
}

/* parents (home: photo first; learning: list grid) */
.together { padding: var(--sec) 0; background: var(--paper-2); }
.together-in { display: grid; gap: clamp(32px, 4vw, 64px); grid-template-areas: "body" "photo"; }
.together-photo { grid-area: photo; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--shadow); align-self: start; }
.together-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.together-photo figcaption { padding: 12px 18px 14px; font-size: .9rem; color: var(--ink-2); }
.together-body { grid-area: body; }
.together-body h2, .together-head h2 { margin-bottom: 14px; }
.together-body > p, .together-head p { color: var(--ink-2); max-width: 34em; margin-bottom: 24px; }
.together-body .more { margin-top: 22px; }
.parents { display: grid; gap: 22px; }
.parents li { position: relative; padding-left: 38px; }
.parents .pw { top: .3em; width: 24px; height: 24px; }
.parents h3 { margin-bottom: 4px; }
.parents p { color: var(--ink-2); font-size: .98rem; line-height: 1.7; }
@media (min-width: 900px) {
  .together-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "photo body"; align-items: center; column-gap: clamp(40px, 6vw, 88px); }
}
.together-learn .together-head { margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 760px) { .together-learn .parents { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; } }
@media (min-width: 1000px) { .together-learn .parents { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* latest: one large story and two smaller */
.latest { padding: var(--sec) 0; }
.latest-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(26px, 3vw, 40px); }
.recent { display: grid; gap: 28px; }
.rc a { display: block; color: inherit; text-decoration: none; }
.rc figure { border-radius: var(--r); overflow: hidden; margin-bottom: 14px; background: var(--paper-3); }
.rc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.rc a:hover img { transform: scale(1.03); }
.rc-date { font-size: .85rem; color: var(--roof-ink); font-weight: 600; margin: 2px 0 6px; }
.rc h3 { margin-bottom: 0; }
.rc a:hover h3 { color: var(--roof-ink); }
.rc p:last-child { color: var(--ink-2); font-size: .97rem; line-height: 1.68; }
@media (min-width: 760px) {
  .recent { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px 40px; }
  .rc:first-child { grid-row: span 2; }
  .rc:first-child img { aspect-ratio: 5 / 4; }
  .rc:first-child h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
  .rc:not(:first-child) a { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 20px; align-items: start; }
  .rc:not(:first-child) figure { grid-row: span 3; margin-bottom: 0; }
  .rc:not(:first-child) img { aspect-ratio: 1; }
}

/* visit band: the school's blue gingham uniform */
.visit-band {
  padding: clamp(56px, 8vw, 112px) 0;
  background-color: #f3f8fc;
  background-image:
    linear-gradient(90deg, rgba(120, 168, 214, .3) 50%, transparent 50%),
    linear-gradient(rgba(120, 168, 214, .3) 50%, transparent 50%);
  background-size: 28px 28px;
}
.vb-in { display: grid; gap: 24px; background: var(--paper); border-radius: var(--r-l); padding: clamp(26px, 5vw, 56px); box-shadow: 0 2px 0 rgba(43, 95, 142, .16), 0 30px 60px -36px rgba(43, 95, 142, .45); }
.vb-text h2 { margin-bottom: 12px; }
.vb-text p { color: var(--ink-2); max-width: 34em; }
.vb-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) { .vb-in { grid-template-columns: minmax(0, 1.3fr) auto; align-items: center; gap: 48px; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--night); color: var(--on-night); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); }
.foot a { color: var(--on-night); text-decoration-color: rgba(242, 245, 248, .4); }
.foot a:hover { color: #fff; text-decoration-color: #fff; }
.foot-in { display: grid; gap: 34px; }
.foot .mark { width: 56px; height: 56px; margin-bottom: 14px; }
.foot .mk-wall { fill: var(--on-night); }
.foot .mk-roof, .foot .mk-wall, .foot .mk-win, .foot .mk-cross { stroke: var(--night); }
.foot-name { font: 700 1.35rem/1.35 var(--f-head); display: grid; }
.foot-en { font: 400 .9rem/1.5 var(--f-body); color: var(--on-night-2); }
.foot-since { margin-top: 10px; color: var(--on-night-2); font-size: .95rem; }
.foot-h { font: 600 1.1rem/1.4 var(--f-head); color: var(--on-night); margin-bottom: 10px; }
.foot-col p, .foot-list li { color: var(--on-night-2); font-size: .97rem; line-height: 1.75; }
.foot-col p + p { margin-top: 8px; }
.foot-list a { display: inline-block; padding: 3px 0; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(242, 245, 248, .16); display: grid; gap: 6px; font-size: .86rem; color: var(--on-night-2); }
@media (min-width: 760px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot-in { grid-template-columns: 1.3fr 1fr 1.2fr .8fr; gap: 40px; } }

/* phone dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 252, 253, .98);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -24px rgba(31, 43, 56, .45);
  transform: translateY(0); transition: transform .3s var(--ease);
}
.dock .btn { min-height: 48px; padding-inline: 14px; font-size: .97rem; }
@media (max-width: 359px) { .dock-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .dock .btn { padding-inline: 12px; } }
.dock.away { transform: translateY(115%); }
@media (min-width: 760px) { .dock { display: none; } }
@media (max-width: 759px) { .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------------------------------------------------------------- inner page heads */
.page-head { padding: clamp(28px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.ph-in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.page-head h1 { margin-bottom: 16px; }
.page-head .lead { margin-bottom: 8px; }
.name-note { margin-top: 18px; display: inline-block; font: 600 1.05rem/1.5 var(--f-head); color: var(--sky); background: var(--cloud); padding: 10px 16px; border-radius: 14px; }
.ph-photo { max-width: min(80vw, 300px); margin-inline: 6% 0; }
/* the house frame: a brick roof with the round window on a grid row of its own, the photo as the walls */
.house-frame { position: relative; display: grid; }
.house-frame::before {
  content: ""; position: relative; z-index: 1; width: 112%; margin: 0 0 -5px -6%; aspect-ratio: 112 / 31; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 31'%3E%3Cpath d='M2 30 56 1.5 110 30z' fill='%23b4432a' stroke='%231f2b38' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M40 11h32M26 19h60M12 27h88' stroke='%23fbfcfd' stroke-opacity='.32' stroke-width='1.2' stroke-linecap='round' stroke-dasharray='4 3'/%3E%3Ccircle cx='56' cy='17.5' r='5.6' fill='%23fbfcfd' stroke='%231f2b38' stroke-width='1.5'/%3E%3Cpath d='M56 11.9v11.2M50.4 17.5h11.2' stroke='%231f2b38' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.house-frame img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 6px 6px; background: var(--paper-3); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; }
.jump a:hover { border-color: var(--ink); }
@media (min-width: 900px) {
  .ph-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .ph-photo { max-width: 400px; justify-self: end; width: 100%; margin-inline: 0 4%; }
}
.page-head-slim { padding-bottom: clamp(24px, 3vw, 40px); }
.page-head-slim .lead { max-width: 40em; }

/* about */
.founder { padding: var(--sec) 0; background: var(--paper-2); }
.founder-in { display: grid; gap: clamp(32px, 4vw, 64px); }
.founder-text h2 { margin-bottom: 18px; }
.founder-text p { color: var(--ink-2); max-width: 36em; }
.founder-text p + p { margin-top: 14px; }
.team { display: grid; gap: 14px; align-content: start; }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; align-items: center; background: var(--card); border-radius: var(--r); padding: 16px 18px; }
.avatar { grid-row: span 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cloud); border: 2px solid var(--cloud-line); font: 700 1.15rem/1 var(--f-head); color: var(--sky); }
.team-all .avatar { background: var(--yolk-soft); border-color: var(--yolk); color: var(--roof-ink); }
.person p { color: var(--ink-2); font-size: .94rem; line-height: 1.6; }
@media (min-width: 1000px) { .founder-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.belief { padding: var(--sec) 0; }
.belief-in { display: grid; gap: 22px; }
.belief-h { font-size: clamp(2.4rem, 1.4rem + 4.5vw, 5rem); line-height: 1.2; color: var(--roof); }
.belief-p { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 36em; }
.belief-cols { display: grid; gap: 32px; margin-top: 24px; }
.belief-cols h3 { margin-bottom: 14px; }
.identity { font: 600 clamp(1.15rem, 1.05rem + .5vw, 1.45rem)/1.6 var(--f-head); color: var(--ink); background: var(--cloud); border-radius: var(--r); padding: 22px 24px; }
@media (min-width: 760px) { .belief-cols { grid-template-columns: 1fr 1fr; gap: 48px; } .belief-cols .ticks { grid-template-columns: 1fr 1fr; } }
.official { padding: 0 0 var(--sec); }
.official-in { border-top: 3px solid var(--ink); padding-top: clamp(28px, 4vw, 44px); display: grid; gap: 18px; }
.facts-list { display: grid; gap: 12px; max-width: 52em; }
.facts-list li { color: var(--ink-2); }

/* learning */
.project { padding: var(--sec) 0; }
.project-in { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.project-photo { max-width: min(80vw, 340px); margin-inline: 6%; }
.project-text h2 { margin-bottom: 16px; }
.project-text p { color: var(--ink-2); max-width: 36em; }
.project-text p + p { margin-top: 14px; }
@media (min-width: 900px) { .project-in { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); } }
.little { padding: var(--sec) 0; background: var(--paper-2); }
/* six projects as tinted tiles (six cells exactly: 1, 2 or 3 columns) */
.projects { display: grid; gap: 14px; }
.projects li { border-radius: var(--r); padding: 22px 22px 24px; display: grid; gap: 6px; align-content: start; background: var(--card); }
.projects li:nth-child(6n + 1) { background: var(--yolk-soft); }
.projects li:nth-child(6n + 2) { background: var(--card); }
.projects li:nth-child(6n + 3) { background: var(--leaf-soft); }
.projects li:nth-child(6n + 4) { background: var(--roof-soft); }
.projects li:nth-child(6n + 5) { background: var(--cloud); }
.projects li:nth-child(6n + 6) { background: var(--card); }
.projects p { color: var(--ink-2); font-size: .98rem; line-height: 1.7; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.move { padding: var(--sec) 0; }
.move-in { display: grid; gap: 40px; }
.move-card figure { border-radius: var(--r); overflow: hidden; margin-bottom: 20px; background: var(--paper-3); }
.move-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.move-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 12px; }
.move-card p { color: var(--ink-2); }
@media (min-width: 900px) { .move-in { grid-template-columns: 1fr 1fr; gap: 56px; } .move-garden { margin-top: 96px; } }
.langs { padding: var(--sec) 0; background: var(--cloud); }
.langs-in { display: grid; gap: 36px; align-items: center; }
.langs-text h2 { margin-bottom: 16px; }
.langs-text p { color: var(--ink-2); max-width: 36em; }
.langs-text p + p { margin-top: 14px; }
.langs-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: end; }
.langs-photos figure { border-radius: var(--r); overflow: hidden; background: var(--paper-3); }
.langs-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.langs-photos figure:first-child img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .langs-in { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* admissions */
.cls-sec { padding: var(--sec) 0; background: var(--paper-2); }
.cls-head { display: grid; gap: 4px; margin-bottom: clamp(28px, 4vw, 48px); }
.cls-head .sec-h { margin-bottom: 12px; }
.cls-head p { color: var(--ink-2); max-width: 44em; }
.classes { display: grid; gap: 20px; }
.cls { display: grid; }
.cls-roof { height: 44px; margin: 0 -10px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--roof); }
.cls-0 .cls-roof { background: var(--cloud-line); }
.cls-1 .cls-roof { background: var(--leaf); }
.cls-2 .cls-roof { background: var(--yolk); }
.cls-body { background: var(--card); border-radius: 0 0 var(--r) var(--r); padding: 22px 22px 24px; height: 100%; }
.cls-body h3 { font-size: 1.35rem; }
.cls-age { font: 700 1rem/1.5 var(--f-head); color: var(--roof-ink); margin-bottom: 8px; }
.cls-body p:last-child { color: var(--ink-2); font-size: .97rem; line-height: 1.7; }
@media (min-width: 640px) { .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .classes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; } }
.year { padding: var(--sec) 0; }
.terms { display: grid; gap: 14px; }
.term { border-radius: var(--r); padding: 20px 22px; background: var(--card); border: 2px solid var(--ink); }
.term.camp { border-style: dashed; border-color: var(--line-strong); background: var(--paper); }
.term h3 { font-size: 1.25rem; }
.term-when { font-size: .9rem; color: var(--roof-ink); font-weight: 600; margin-top: 2px; }
.term p:last-child:not(.term-when) { color: var(--ink-2); font-size: .95rem; line-height: 1.65; margin-top: 4px; }
@media (min-width: 760px) { .terms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dayline { margin-top: clamp(32px, 4vw, 52px); display: grid; gap: 10px; max-width: 46em; }
.dayline-t { display: flex; align-items: center; gap: 14px; font: 700 clamp(1.8rem, 1.3rem + 2vw, 2.8rem)/1 var(--f-head); }
.dayline-t i { flex: 1; height: 4px; border-radius: 4px; background: var(--roof); }
.dayline > p:not(.dayline-t) { color: var(--ink-2); }
.fees { padding: 0 0 var(--sec); }
.fees-in { display: grid; gap: 22px; border-top: 3px solid var(--ink); padding-top: clamp(28px, 4vw, 48px); }
.fees-text h2 { margin-bottom: 12px; }
.fees-text p { color: var(--ink-2); max-width: 34em; }
.fee-table { border-collapse: collapse; width: 100%; max-width: 560px; }
.fee-table th, .fee-table td { text-align: left; padding: 16px 0; vertical-align: baseline; }
.fee-table tr + tr th, .fee-table tr + tr td { border-top: 1px solid var(--line-2); }
.fee-table th { font-weight: 600; padding-right: 16px; }
.fee-table td { color: var(--ink-2); }
.fee-table b { font: 700 1.6rem/1 var(--f-head); color: var(--ink); margin-right: 6px; }
.fee-year { justify-self: start; font-size: .85rem; font-weight: 600; color: var(--roof-ink); background: var(--roof-soft); border-radius: 8px; padding: 4px 10px; }
@media (min-width: 900px) { .fees-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } .fee-year { grid-column: 2; } }
.steps-sec { padding: var(--sec) 0; background: var(--paper-2); }
/* joining steps: big numerals on a shared rule, no boxes */
.join { display: grid; gap: 26px; counter-reset: j; margin-bottom: 36px; }
.join li { counter-increment: j; position: relative; padding-left: 64px; }
.join li::before { content: counter(j); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 1.25rem/1 var(--f-head); }
.join h3 { margin-bottom: 2px; padding-top: 8px; }
.join p { color: var(--ink-2); font-size: .97rem; line-height: 1.65; }
@media (min-width: 900px) {
  .join { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 3px solid var(--ink); padding-top: 30px; }
  .join li { padding-left: 0; padding-top: 62px; }
  .join h3 { padding-top: 0; }
}
.faq-sec { padding: var(--sec) 0; }
.faq-in { display: grid; gap: 8px; }
.faq { border-top: 3px solid var(--ink); max-width: 860px; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 1.1rem/1.5 var(--f-head); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa[open] summary i { background: var(--yolk-soft); }
.qa-a { padding: 0 48px 22px 0; color: var(--ink-2); }
@media (min-width: 1000px) { .faq-in { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; } }

/* gallery */
.album-nav { margin-top: 22px; }
.album-nav ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
.album-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; padding: 6px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; }
.album-nav a:hover { border-color: var(--ink); }
@media (min-width: 900px) { .album-nav ul { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.albums { padding-bottom: var(--sec); }
.album { padding: clamp(36px, 5vw, 64px) 0 0; }
.album-head { display: grid; gap: 4px; margin-bottom: 18px; max-width: 44em; }
.album-head h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.3rem); }
.album-date { font-size: .9rem; font-weight: 600; color: var(--roof-ink); }
.album-head p:last-child { color: var(--ink-2); }
.ph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ph-item.big { grid-column: span 2; }
.ph-open { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-3); border-radius: var(--r-s); overflow: hidden; cursor: zoom-in; }
.ph-open img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.ph-item.big .ph-open img { aspect-ratio: 4 / 3; }
.ph-open:hover img { transform: scale(1.03); }
.ph-grid.n1 { grid-template-columns: minmax(0, 720px); }
.ph-grid.n1 .ph-open img { aspect-ratio: auto; }
@media (min-width: 760px) {
  .ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .ph-item.big { grid-row: span 2; }
  .ph-item.big .ph-open { aspect-ratio: 1; }
  .ph-item.big .ph-open img { height: 100%; aspect-ratio: auto; }
  .ph-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lightbox { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(20, 28, 37, .96); color: var(--on-night); margin: 0; }
.lightbox::backdrop { background: rgba(20, 28, 37, .8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; gap: 12px; justify-items: center; padding: 64px 16px 88px; max-height: 100dvh; }
.lightbox img { max-width: min(100%, 1100px); max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { font-size: .95rem; color: var(--on-night-2); text-align: center; max-width: 40em; }
.lb-btn, .lb-close { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(242, 245, 248, .4); background: rgba(20, 28, 37, .6); color: var(--on-night); }
.lb-btn::before { content: ""; width: 12px; height: 12px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; }
.lb-prev { left: 14px; bottom: 18px; } .lb-prev::before { transform: translateX(2px) rotate(45deg); }
.lb-next { right: 14px; bottom: 18px; } .lb-next::before { transform: translateX(-2px) rotate(-135deg); }
.lb-close { right: 14px; top: 14px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; width: 20px; height: 2.5px; background: currentColor; transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
@media (min-width: 900px) { .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); } .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* contact */
.visit { padding: clamp(8px, 2vw, 24px) 0 var(--sec); }
.visit-in { display: grid; gap: clamp(28px, 4vw, 56px); }
.visit-rules h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 18px; }
.rules { display: grid; gap: 14px; }
.rules li { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r); background: var(--cloud); }
.rules b { font: 700 1.1rem/1.4 var(--f-head); }
.rules span { color: var(--ink-2); font-size: .97rem; line-height: 1.65; }
.visit-form { background: var(--card); border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
@media (min-width: 960px) { .visit-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.vform { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .97rem; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 10px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line-strong); background: var(--card);
  font-size: 1.05rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(43, 95, 142, .18); }
.err { display: none; font-size: .9rem; color: var(--roof-ink); }
.field.bad input, .field.bad select { border-color: var(--roof); }
.field.bad .err { display: block; }
.form-note { font-size: .92rem; color: var(--ink-2); line-height: 1.65; }
.vform > .btn { justify-self: start; }
.sent { display: none; margin-top: 4px; padding: 20px; border-radius: var(--r); background: var(--paper-2); }
.sent.show { display: grid; gap: 14px; }
.sent h3 { font-size: 1.3rem; }
.sent pre { margin: 0; white-space: pre-wrap; font: 400 .95rem/1.65 var(--f-body); background: var(--card); padding: 14px 16px; border-radius: var(--r-s); border: 1px dashed var(--line-strong); }
.sent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.copied { font-size: .92rem; color: var(--leaf); font-weight: 600; }
/* contact details: plain columns on a shared rule, no boxes */
.reach { padding: var(--sec) 0; background: var(--paper-2); }
.reach-list { display: grid; gap: 30px; border-top: 3px solid var(--ink); padding-top: 28px; }
.reach-item { display: grid; gap: 6px; align-content: start; }
.reach-item h3 { font-size: 1.25rem; margin-bottom: 4px; }
.big-link { font: 700 1.6rem/1.3 var(--f-head); text-decoration: none; }
.reach-item a { overflow-wrap: anywhere; }
.addr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (min-width: 760px) { .reach-list { grid-template-columns: 1fr 1fr; gap: 36px 48px; } }
@media (min-width: 1100px) { .reach-list { grid-template-columns: 1fr 1fr 1.4fr 1fr; } }

/* ---------------------------------------------------------------- reduced motion: drawn already, nothing travels;
   colour and state changes (the lit room, the open menu, focus) still happen, just without movement */
.rm .hh .hh-cloud { opacity: 1 !important; transform: none !important; transition: none !important; }
.rm .hh .hh-draw, .rm .hh .hh-cross, .rm .hh .hh-smoke { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; transition: none !important; }
.rm .kid-walk, .rm .dock, .rm .burger i, .rm .more::after { transition: none !important; }
.rm .menu { transform: none !important; transition: opacity .15s, visibility 0s !important; }
.rm .corner img, .rm .rc img, .rm .ph-open img { transition: none !important; transform: none !important; }
.rm .btn:active { transform: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media print {
  .nav, .menu, .dock, .visit-band, .lightbox { display: none !important; }
}
