@font-face {
  font-family: 'Mnr Head';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/chonburi-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: 'Mnr Head';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/chonburi-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: 'Mnr Body';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/kodchasan-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: 'Mnr Body';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/kodchasan-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: 'Mnr Body';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/kodchasan-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: 'Mnr Body';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/figtree-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: 'Mnr Body';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/figtree-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: 'Mnr Body';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/figtree-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;
}

/* Maneerut Kindergarten demo. Art direction: the school uniform as the pattern system. Type: Chonburi headings, Kodchasan Thai body, Figtree Latin body.
   Cream shirt (page), red collar and red tartan shorts (actions, bands), pink gingham dresses (photo mats, nursery),
   yellow PE shirt with red piping (kindergarten, the visit band), lawn green (grounds). The red crayon M is their logo.
   Flat: no drop shadows, small radii, hairlines. Light only. */

:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #2b211e;
  --ink-2: #3f312c;
  --muted: #66534b;
  --red: #c8202a;
  --red-d: #a3161f;
  --red-dd: #6f0f17;
  --yellow: #ffcf3d;
  --yellow-w: #fff3c9;
  --pink: #ee6f90;
  --pink-w: #fde9ef;
  --green: #2e7d46;
  --green-d: #1c4a2f;
  --green-w: #eaf3e4;
  --gold: #f2bd2c;
  --line: #ead9c4;
  --line-2: #d6c0a5;
  --line-green: #06c755;
  --line-ink: #052a13;
  --f-head: "Mnr Head", "Mnr Body", system-ui, sans-serif;
  --f-body: "Mnr Body", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 3px;
  --sec: clamp(64px, 9vw, 112px);
  --gut: clamp(16px, 4.5vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .8, .25, 1);
  color-scheme: light only;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.72 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="en"] body { line-height: 1.62; }
@media (min-width: 760px) { body { font-size: 1.125rem; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-d); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red-dd); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.95rem); line-height: 1.35; letter-spacing: 0; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.4; }
html[lang="en"] h2 { line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
figcaption { font-size: 1rem; line-height: 1.5; color: var(--muted); margin-top: 8px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.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; }
html[data-lang="th"] [lang="en"]:not(.keep), html[data-lang="en"] [lang="th"]:not(.keep) { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.i { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- Patterns from the uniform ---------- */
.tartan, .hero::after {
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 214, 92, .55) 9px 10px, transparent 10px 24px, rgba(60, 4, 10, .32) 24px 31px, transparent 31px 40px),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 214, 92, .45) 9px 10px, transparent 10px 24px, rgba(60, 4, 10, .32) 24px 31px, transparent 31px 40px),
    var(--red);
}
.gingham {
  background:
    linear-gradient(90deg, rgba(238, 111, 144, .55) 50%, transparent 50%) 0 0 / 14px 14px,
    linear-gradient(rgba(238, 111, 144, .55) 50%, transparent 50%) 0 0 / 14px 14px,
    #fff;
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 2px solid var(--red); border-radius: var(--r); background: var(--red); color: #fff; font: 600 1rem/1.25 var(--f-body); text-decoration: none; text-align: center; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); color: #fff; }
.btn-lg { min-height: 54px; padding: 12px 24px; font-size: 1.06rem; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: var(--line-ink); }
.btn-line:hover { background: #05b44c; border-color: #05b44c; color: var(--line-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-cream { background: var(--cream); border-color: var(--cream); color: var(--red-dd); }
.btn-cream:hover { background: #fff; border-color: #fff; color: var(--red-dd); }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-tartan { height: 6px; }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: calc(var(--nav-h) - 6px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 48px; }
.brand-m { width: 54px; height: auto; }
.brand-t { display: grid; line-height: 1.15; }
.brand-n { font: 400 1.1rem/1.2 var(--f-head); color: var(--red-d); }
.brand-s { font-size: .8rem; color: var(--muted); }
.nav-main { display: none; }
.nav-main ul { display: flex; gap: 2px; }
.nav-main a { display: flex; align-items: center; min-height: 44px; padding: 4px 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--r); }
.nav-main a:hover { background: var(--yellow-w); color: var(--ink); }
.nav-main a.on { color: var(--red-d); box-shadow: inset 0 -2px 0 var(--red); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.lang button { min-height: 44px; min-width: 44px; padding: 4px 10px; border: 0; background: transparent; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.nav-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--line-2); background: var(--paper); border-radius: var(--r); cursor: pointer; }
.burger { display: grid; gap: 5px; width: 20px; }
.burger i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* The menu is a sibling of the header (never inside a filtered or transformed parent), so its height is the viewport's. */
.menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 39; background: var(--cream); padding: 12px var(--gut) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .15s, visibility 0s .15s; }
.menu.open { visibility: visible; opacity: 1; transition: opacity .18s; }
.menu ul { display: grid; }
.menu li a { display: flex; align-items: center; min-height: 56px; font: 600 1.3rem/1.3 var(--f-body); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-foot { display: grid; gap: 10px; margin-top: 20px; }
.menu-foot .lang { justify-self: start; }
@media (max-width: 380px) { .brand-s { display: none; } .brand-m { width: 46px; } .lang button { padding-inline: 8px; } }
/* The narrowest phones: the language switch lives in the menu, so the name keeps its line. */
@media (max-width: 359px) { .nav-tools > .lang { display: none; } }
@media (min-width: 1080px) {
  :root { --nav-h: 78px; }
  .nav-main { display: block; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .menu { display: none; }
  .brand-m { width: 88px; }
  .brand-n { font-size: 1.35rem; }
}
@media (min-width: 1080px) and (max-width: 1239px) { .nav-main a { padding-inline: 8px; font-size: 1rem; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(20px, 3.4vw, 48px); }
.hero::after { content: ""; display: block; height: 28px; margin-top: clamp(36px, 5vw, 60px); }
.hero-in { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-h { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.3; letter-spacing: 0; padding-top: .08em; }
html[lang="en"] .hero-h { line-height: 1.08; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.hero-l1, .hero-l2 { display: block; }
.hero-l2 { color: var(--red); }
.lead { margin-top: clamp(14px, 2vw, 24px); font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.7; color: var(--ink-2); max-width: 36ch; }
html[lang="en"] .lead { max-width: 40ch; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 2.4vw, 30px); }
@media (max-width: 559px) { .hero-cta { display: grid; } .hero-cta .btn { width: 100%; } }
.rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; }
.rating .i { color: var(--gold); fill: var(--gold); stroke: #b78310; }
.rating:hover span { text-decoration: underline; }
.hero-fig { position: relative; }
.hero-fig { margin-right: calc(-1 * var(--gut)); }
.gingham-mat { padding: clamp(10px, 1.4vw, 16px); padding-right: 0; border-radius: var(--r) 0 0 var(--r);
  background:
    linear-gradient(90deg, rgba(238, 111, 144, .62) 50%, transparent 50%) 0 0 / 16px 16px,
    linear-gradient(rgba(238, 111, 144, .62) 50%, transparent 50%) 0 0 / 16px 16px,
    #fff; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px 0 0 2px; }
.hero-art { position: absolute; width: clamp(92px, 15vw, 170px); right: 14px; top: -26px; transform: rotate(5deg); background: #fff; padding: 7px; border: 1px solid var(--line); border-radius: 2px; }
.hero-art img { width: 100%; aspect-ratio: 1092 / 1130; object-fit: cover; }
.hero-fig figcaption { padding-inline: 4px; }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .hero-fig { margin-right: calc(-1 * (max(0px, (100vw - 1240px) / 2) + var(--gut))); }
  .hero-img { aspect-ratio: auto; height: min(70vh, 660px); min-height: 440px; }
  .hero-art { right: auto; left: -58px; top: auto; bottom: 46px; transform: rotate(-6deg); }
}

/* ---------- Section heads ---------- */
.sec h2 .ph:last-child { color: var(--red); }
.learn-intro > p, .grounds-copy > p, .art-head p, .silk-head p, .story-head p { margin-top: 18px; max-width: 54ch; color: var(--ink-2); }

/* ---------- How children learn ---------- */
.learn { background: var(--paper); border-top: 1px solid var(--line); }
.learn-in { display: grid; gap: clamp(40px, 6vw, 80px); }
.learn-topics-l { margin-top: 26px; font-weight: 600; font-size: .98rem; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.topics li { padding: 6px 12px; border-radius: var(--r); background: var(--yellow-w); border: 1px solid #f1d98a; font-size: .95rem; line-height: 1.4; }
.video { display: grid; gap: 12px; margin-top: 30px; max-width: 420px; text-decoration: none; color: var(--ink); }
.video-thumb { position: relative; display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; transition: background .2s; }
.video-play .i { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video:hover .video-play { background: var(--red-dd); }
.video-t { font-weight: 600; line-height: 1.45; }
.video-len { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.steps { border-top: 2px solid var(--ink); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.step-n { font: 400 2.9rem/1 var(--f-head); color: var(--red); padding-top: 2px; }
.step h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.step-body p { margin-top: 8px; color: var(--ink-2); }
.step-pic { grid-column: 2; margin-top: 16px; }
.step-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.step-wall .step-pic img { aspect-ratio: 16 / 10; }
@media (min-width: 640px) {
  .step { grid-template-columns: 64px minmax(0, 1fr) minmax(0, .9fr); }
  .step-pic { grid-column: 3; grid-row: 1; margin-top: 4px; }
  .step:not(.has-pic) .step-body { grid-column: 2 / 4; }
}
@media (min-width: 1000px) {
  .learn-in { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; }
  .learn-intro { position: sticky; top: calc(var(--nav-h) + 28px); }
}

/* ---------- Signature: the silk thread ---------- */
.silk { background: var(--green-d); color: var(--cream); position: relative; overflow: hidden; }
.silk h2 { color: var(--cream); }
.silk h2 .ph:last-child { color: var(--gold); }
.silk-head p { color: #e9e1d2; }
.silk-head { max-width: 760px; }
.silk-strip { position: relative; display: grid; gap: 36px; margin-top: clamp(36px, 5vw, 64px); padding-left: 44px; }
.thread { position: absolute; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.thread-h { display: none; }
.thread-v { left: 0; top: 0; width: 44px; height: 100%; }
html.js .thread path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); }
html.js .silk-strip.drawn .thread path, html.rm .thread path { stroke-dashoffset: 0; }
.silk-f { position: relative; z-index: 1; }
.silk-strip.built .thread-v { display: none; }
.silk-strip.built .thread-h { display: block; inset: 0; width: 100%; height: 100%; z-index: 0; }
.silk-f img { width: 100%; border-radius: var(--r); border: 6px solid var(--cream); }
.silk-f1 img, .silk-f2 img, .silk-f4 img { aspect-ratio: 4 / 5; object-fit: cover; }
.silk-f3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.silk-f figcaption { display: flex; align-items: baseline; gap: 10px; color: var(--cream); font-size: 1rem; margin-top: 10px; }
.silk-k { font: 400 1.5rem/1 var(--f-head); color: var(--gold); }
@media (min-width: 640px) and (max-width: 999px) {
  .silk-strip { grid-template-columns: 1fr 1fr; padding-left: 0; }
  .thread-v { display: none; }
}
@media (min-width: 1000px) {
  .silk-strip { grid-template-columns: 1fr 1fr 1.32fr 1fr; gap: clamp(28px, 3.4vw, 52px); align-items: start; padding-left: 0; padding-block: 8px; }
  .thread-v { display: none; }
  .thread-h { display: block; left: 0; top: 0; width: 100%; height: 190px; }
  .silk-f2 { margin-top: 84px; }
  .silk-f3 { margin-top: 24px; }
  .silk-f4 { margin-top: 116px; }
}

/* ---------- Grounds ---------- */
.grounds { background: var(--green-w); }
.grounds-in { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.grounds-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.pm { display: flex; gap: 14px; margin-top: 24px; padding: 16px 18px; background: var(--paper); border-left: 4px solid var(--green); border-radius: var(--r); }
.pm .i { color: var(--green); margin-top: 5px; }
.pm p { font-size: 1.0625rem; color: var(--ink-2); }
.pm strong { color: var(--ink); }
.grounds-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.grounds-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
@media (min-width: 1000px) {
  .grounds-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .grounds-main img { aspect-ratio: 5 / 6; }
}

/* ---------- Classes ---------- */
.classes { background: var(--cream); }
.classes-h { max-width: 18ch; }
.cls-grid { display: grid; gap: 56px; margin-top: clamp(32px, 5vw, 56px); }
.cls { display: flex; flex-direction: column; gap: 14px; }
.cls-band { height: 18px; border-radius: 2px; }
.cls-pink .cls-band {
  background:
    linear-gradient(90deg, rgba(238, 111, 144, .62) 50%, transparent 50%) 0 0 / 12px 12px,
    linear-gradient(rgba(238, 111, 144, .62) 50%, transparent 50%) 0 0 / 12px 12px,
    #fff;
}
.cls-yellow .cls-band { background: linear-gradient(var(--red) 0 3px, var(--yellow) 3px calc(100% - 3px), var(--red) calc(100% - 3px)); }
.cls h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-top: 6px; }
.cls-age { font: 600 1.15rem/1.5 var(--f-body); color: var(--red-d); }
.cls > p:not(.cls-age) { color: var(--ink-2); }
.ticks { display: grid; gap: 8px; margin-top: 4px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--green); margin-top: 6px; }
.cls-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.cls-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); padding: 8px; }
.cls-pink .cls-pics img { background: linear-gradient(90deg, rgba(238, 111, 144, .62) 50%, transparent 50%) 0 0 / 12px 12px, linear-gradient(rgba(238, 111, 144, .62) 50%, transparent 50%) 0 0 / 12px 12px, #fff; }
.cls-yellow .cls-pics img { background: var(--yellow); outline: 3px solid var(--red); outline-offset: -3px; }
.cls .btn { align-self: flex-start; margin-top: auto; }
.cls .cls-pics { margin-bottom: 8px; }
@media (min-width: 900px) {
  .cls-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .cls:first-child { padding-right: clamp(28px, 4vw, 56px); border-right: 1px solid var(--line-2); }
  .cls:last-child { padding-left: clamp(28px, 4vw, 56px); }
}

/* ---------- Children's work ---------- */
.art { background: linear-gradient(90deg, rgba(238, 111, 144, .09) 50%, transparent 50%) 0 0 / 28px 28px, linear-gradient(rgba(238, 111, 144, .09) 50%, transparent 50%) 0 0 / 28px 28px, var(--pink-w); }
.art-head { display: grid; gap: 4px; }
.art-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 16px; margin-top: clamp(36px, 5vw, 64px); position: relative; }
.art-i figure { position: relative; padding-top: 16px; }
.art-i figure::before { content: ""; position: absolute; left: -16px; right: -16px; top: 8px; height: 2px; background: #c9a98a; }
.art-i:nth-child(2n) figure::before { left: 0; }
.peg { position: absolute; z-index: 2; left: 50%; top: 0; width: 12px; height: 26px; margin-left: -6px; background: #d7a65f; border: 1px solid #a8773a; border-radius: 2px; }
.art-paper { background: #fff; padding: 8px; border: 1px solid #f0d3dc; border-radius: 2px; transform: rotate(-1.6deg); transform-origin: 50% 0; }
.art-i:nth-child(2n) .art-paper { transform: rotate(1.4deg); }
.art-i:nth-child(3n) .art-paper { transform: rotate(-.6deg); }
.art-paper img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.art-i figcaption { text-align: center; color: var(--ink-2); margin-top: 12px; }
@media (min-width: 760px) {
  .art-wall { grid-template-columns: repeat(3, 1fr); gap: 48px clamp(20px, 3vw, 40px); }
  .art-i:nth-child(2n) figure::before { left: -16px; }
  .art-i:nth-child(3n + 1) figure::before { left: 0; }
}


/* ---------- Care ---------- */
.care { background: var(--paper); }
.care-in { display: grid; gap: clamp(36px, 5vw, 64px); }
.care-head figure { margin-top: 28px; }
.care-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.care-cols { display: grid; gap: 40px; }
.care-cols h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.care-list li { display: flex; gap: 14px; padding-block: 12px; }
.care-list { padding-top: 6px; }
.care-list .i { color: var(--red); margin-top: 5px; width: 22px; height: 22px; }
.care-list p { color: var(--ink-2); }
@media (min-width: 1000px) {
  .care-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .care-cols { gap: 36px; }
}

/* ---------- Since 2531 ---------- */
.story { background: var(--cream); border-top: 1px solid var(--line); }
.story-in { display: grid; gap: clamp(40px, 5vw, 64px); }
.story-seal { justify-self: center; align-self: center; width: min(320px, 72vw); text-align: center; }
.story-seal img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 6px solid #fff; outline: 2px solid var(--red); }
.story-seal figcaption { margin-top: 12px; }
.story .rating { margin-top: 14px; }
.story-head .story-year { font: 400 clamp(4.4rem, 11vw, 8rem)/1.05 var(--f-head); color: var(--red); letter-spacing: 0; }
.story-head h2 { margin-top: 14px; }
.story-now { font-size: 1.0625rem; }
.timeline { display: grid; gap: 18px; border-left: 2px solid var(--red); padding-left: 20px; }
.timeline li { position: relative; display: grid; gap: 2px; align-content: start; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: .55em; width: 12px; height: 12px; background: var(--cream); border: 2px solid var(--red); border-radius: 50%; }
.tl-y { font: 400 1.6rem/1.3 var(--f-head); color: var(--red-d); }
.timeline p { color: var(--ink-2); font-size: 1.0625rem; }
@media (min-width: 1000px) {
  .story-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .story-seal { width: min(340px, 100%); }
  .timeline { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; border-left: 0; padding: 0; }
  .timeline li { border-top: 2px solid var(--red); padding-top: 18px; }
  .timeline li::before { left: 0; top: -8px; }
}

/* ---------- Fees (on the tartan) ---------- */
.fees { position: relative; color: var(--cream); }
.fees-bg { position: absolute; inset: 0; z-index: 0; }
.fees-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); }
.fees-panel { background: var(--cream); color: var(--ink); border-radius: var(--r); padding: clamp(22px, 3.4vw, 44px); }
.fees-panel h2 { color: var(--ink); }
.fees-year { font: 600 1.15rem/1.5 var(--f-body); color: var(--red-d); margin-top: 4px; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.fee-table tr { border-bottom: 1px solid var(--line); }
.fee-table th, .fee-table td { text-align: left; vertical-align: top; padding-block: 16px; }
.fee-table th { font-weight: 400; padding-right: 12px; }
.fee-t { display: block; font-weight: 600; }
.fee-n { display: block; font-size: 1rem; color: var(--muted); }
.fee-table td { text-align: right; }
.fee-amt { white-space: nowrap; }
.fee-amt { font: 400 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 var(--f-head); color: var(--red-d); }
.fee-per { display: block; font-size: .9rem; color: var(--muted); }
.fee-yr { display: block; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.fees-notes { display: grid; gap: 8px; margin-top: 18px; }
.fees-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.0625rem; }
.fees-notes .i { color: var(--green); margin-top: 5px; }
.minus-m { flex: none; width: 15px; height: 2.5px; background: var(--red); margin: 13px 2px 0; border-radius: 2px; }
.fees-note { margin-top: 12px; font-size: .95rem; color: var(--muted); }
.fees-panel .btn { margin-top: 20px; }
.adm { align-self: center; }
.adm-h { color: var(--cream); }
.adm-list { margin: 18px 0 26px; }
.adm-list div { padding-block: 14px; border-bottom: 1px solid rgba(255, 248, 236, .4); }
.adm-list dt { font: 600 1.15rem/1.5 var(--f-body); color: #ffe39a; }
.adm-list dd { margin: 4px 0 0; color: var(--cream); }
.adm { background: rgba(80, 6, 14, .82); padding: clamp(22px, 3vw, 36px); border-radius: var(--r); }
@media (min-width: 1000px) {
  .fees-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
}

/* ---------- FAQ ---------- */
.faq-sec { background: var(--paper); }
.faq-in { display: grid; gap: clamp(24px, 3vw, 40px); max-width: 880px; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 14px; cursor: pointer; list-style: none; font: 600 1.2rem/1.5 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq-i { color: var(--red); width: 26px; height: 26px; transition: transform .2s var(--ease); }
.faq details[open] .faq-i { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }


/* ---------- Visit (the PE shirt: yellow with red piping) ---------- */
.visit { background: var(--yellow-w); border-top: 5px solid var(--red); box-shadow: inset 0 5px 0 var(--yellow); }
.visit-in { display: grid; gap: clamp(40px, 5vw, 72px); }
.visit-when { display: flex; gap: 10px; margin-top: 16px; color: var(--ink-2); }
.visit-when .i { color: var(--red); margin-top: 5px; }
.form { display: grid; gap: 16px; margin-top: 26px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .98rem; }
.field input, .field select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 1rem; }
.field select { padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%232b211e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 20px 20px; }
.field input[type="date"] { display: flex; align-items: center; }
.field input:focus, .field select:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.field .err { display: none; font-size: .9rem; color: var(--red-d); }
.field.bad input, .field.bad select { border-color: var(--red); }
.field.bad .err { display: block; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form > .btn { justify-self: start; }
.sent { display: none; margin-top: 6px; padding: 18px; border: 2px solid var(--green); border-radius: var(--r); background: var(--paper); }
.sent.show { display: block; }
.sent:focus { outline: none; }
.sent-h { font-weight: 600; }
.sent-msg { margin: 12px 0 16px; padding: 12px; white-space: pre-wrap; font: .95rem/1.6 var(--f-body); background: var(--cream); border-radius: var(--r); border: 1px dashed var(--line-2); }
.sent-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.visit-info { display: grid; gap: 14px; align-content: start; }
.map { position: relative; display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.map img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.map-open { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: var(--paper); color: var(--ink); border-radius: var(--r); font-weight: 600; border: 1px solid var(--line-2); }
.map:hover .map-open { background: #fff; }
.map-credit { font-size: .8rem; color: var(--muted); margin-top: -6px; }
.addr { font-weight: 500; }
.addr-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.addr-copied { font-size: .95rem; color: var(--green-d); }
.reach { display: grid; margin-top: 8px; border-top: 1px solid var(--line-2); }
.reach a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding-block: 8px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.reach a:hover b { text-decoration: underline; }
.reach .i { color: var(--red); }
.reach span { color: var(--muted); }
.reach b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 1000px) {
  .visit-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* ---------- Footer ---------- */
.foot { background: #3b1418; color: #f1e6d6; }
.foot-tartan { height: 14px; }
.foot-in { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 64px) 28px; }
.foot-brand { display: grid; gap: 10px; justify-items: start; }
.foot-m { width: 92px; background: var(--cream); padding: 8px 10px; border-radius: var(--r); }
.foot-name { font: 400 1.45rem/1.4 var(--f-head); color: #fff; }
.foot-motto { color: #ffe39a; font-family: var(--f-head); font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: 1.45; max-width: 18ch; }
.foot-col p + p { margin-top: 12px; }
.foot a { color: #fff; }
.foot-col a { display: inline-block; padding-block: 6px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(241, 230, 214, .35); border-radius: var(--r); text-decoration: none; }
.foot-social a:hover { background: rgba(255, 255, 255, .08); }
.foot-demo { padding-bottom: calc(28px + 76px); }
.demo-note { padding-top: 18px; border-top: 1px solid rgba(241, 230, 214, .22); font-size: .88rem; color: #d9c8b4; }
@media (min-width: 760px) { .foot-demo { padding-bottom: 32px; } }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.1fr 1fr auto; } }

/* ---------- Phone dock ---------- */
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line-2); transition: transform .25s var(--ease); }
.dock-i { display: inline-flex; align-items: center; justify-content: center; width: 50px; min-height: 50px; flex: none; border: 1.5px solid var(--line-2); border-radius: var(--r); color: var(--ink); background: var(--paper); }
.dock-line { background: var(--line-green); border-color: var(--line-green); color: var(--line-ink); }
.dock-cta { flex: 1; min-height: 50px; padding-inline: 12px; }
.dock.away { transform: translateY(115%); }
@media (min-width: 760px) { .dock { display: none; } }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); translate: -50% 0; width: min(92vw, 440px); padding: 14px 18px; background: var(--ink); color: var(--cream); border-radius: var(--r); font-size: .98rem; line-height: 1.5; }
@media (min-width: 760px) { .toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .nav, .dock, .menu, .toast { display: none !important; } }

/* ---------- Thai leading floor (checked by tools/thai-leading.js): stacked marks need room ---------- */
html[lang="th"] h3 { line-height: 1.45; }
html[lang="th"] .btn { line-height: 1.5; }
html[lang="th"] :is(.topics li, .chip, .faq summary, .cls-age, .fees-year, .adm-list dt, .brand-t, .brand-n, .brand-s, .tl-y, .video-t, .foot-name, .menu li a, .rating, .hero-facts, .map-open, .fee-per, .fee-yr, .fee-n, .fee-t, .lang button, .field label) { line-height: 1.5; }
