/* KSJ 2027 — Illustrated-school editorial. Static CSS, authentic school imagery. */
@font-face { font-family: Manrope; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/manrope-400.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/manrope-500.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/manrope-600.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/manrope-700.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/manrope-800.ttf') format('truetype'); }
:root {
  --navy: #12355b; --deep: #0b2846; --ink: #18354f; --muted: #536775;
  --ivory: #f8f7f2; --sage: #e8eee8; --white: #fff; --gold: #ac8545;
  --gold-light: #e7c890; --line: #d6ddd9; --width: 1340px; --space: 112px;
  --ease: cubic-bezier(.22, .72, .23, 1); --sans: Manrope, 'Noto Sans Thai', 'Leelawadee UI', Thonburi, Tahoma, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--ivory); }
body { position: relative; isolation: isolate; overflow-x: clip; margin: 0; color: var(--ink); background: transparent; font: 400 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
.js body { padding-right: 56px; }
body::before { content: ''; position: fixed; inset: -10vw; z-index: -1; pointer-events: none; opacity: .82; background: radial-gradient(ellipse at 13% 14%, rgb(132 177 188 / 20%), transparent 34%), radial-gradient(ellipse at 86% 42%, rgb(231 200 144 / 19%), transparent 32%), radial-gradient(ellipse at 34% 90%, rgb(180 202 184 / 22%), transparent 36%), radial-gradient(rgb(18 53 91 / 3%) .65px, transparent .8px); background-size: 125% 125%, 125% 125%, 125% 125%, 24px 24px; }
@keyframes ambient-drift { to { transform: translate3d(1.2vw, -1vh, 0) scale(1.06); } }
html.motion-on body::before { animation: ambient-drift 32s ease-in-out infinite alternate; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
img { display: block; width: 100%; height: auto; }
svg { display: block; width: 18px; height: 18px; }
[hidden] { display: none !important; }
::selection { color: var(--white); background: var(--navy); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 500; padding: 12px 20px; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.shell { width: min(100%, var(--width)); padding-inline: 48px; margin-inline: auto; }
.section-space { position: relative; isolation: isolate; overflow: clip; padding-block: var(--space); }
.section-space > .shell, .site-footer > .shell { position: relative; z-index: 1; }
h1, h2, .quote, .footer-tagline { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 26px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; }
.eyebrow { font: 700 11px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.eyebrow::before { content: ''; display: inline-block; vertical-align: middle; width: 24px; height: 1px; background: var(--gold); margin-right: 12px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.section-intro h2 { max-width: 670px; }
.section-intro > .text-link { flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding-block: 9px; border-bottom: 1px solid var(--navy); font-size: 13px; font-weight: 600; line-height: 1.55; }
.text-link > span:last-child[aria-hidden] { font-size: 19px; transition: transform .3s var(--ease); }
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link:hover > span:last-child[aria-hidden] { transform: translate(3px, -3px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 52px; padding: 13px 25px; border: 1px solid transparent; border-radius: 100px; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background .25s, color .25s, transform .25s var(--ease); }
.button-navy { color: var(--white); background: var(--navy); }
.button-navy:hover { background: var(--deep); transform: translateY(-2px); }
.button > [aria-hidden] { font-size: 19px; }

/* Compact navigation keeps the language switch exposed on every screen. */
.site-header { position: relative; top: 0; z-index: 100; border-bottom: 1px solid rgb(172 133 69 / 28%); background: rgb(255 255 255 / 97%); }
.js .site-header { position: sticky; }
.site-header.is-scrolled { box-shadow: 0 5px 28px rgb(11 40 70 / 7%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.header-inner.shell { width: min(100%, 1680px); padding-inline: 24px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-wordmark { font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.brand small { display: block; margin-top: 7px; font-size: 7px; letter-spacing: .1em; font-weight: 600; line-height: 1.6; }
.primary-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.primary-nav > a, .nav-dropdown > summary { display: flex; align-items: center; gap: 7px; min-height: 48px; font-size: clamp(14px, calc(1.25vw - 2px), 16px); font-weight: 600; white-space: nowrap; cursor: pointer; }
.primary-nav > a { position: relative; }
.primary-nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.primary-nav > a:hover::after, .primary-nav > a.is-active::after { transform: scaleX(1); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary::after { content: ''; width: 5px; height: 5px; border-bottom: 1px solid; border-right: 1px solid; transform: rotate(45deg); margin-top: -3px; }
.nav-dropdown[open] > summary::after { transform: rotate(225deg); margin-top: 2px; }
.dropdown-links { position: absolute; left: -20px; top: calc(100% + 9px); z-index: 120; min-width: 220px; padding: 12px; max-height: 65dvh; overflow-y: auto; background: var(--white); box-shadow: 0 15px 50px rgb(11 40 70 / 14%); border: 1px solid var(--line); border-radius: 10px; }
.dropdown-links a { display: block; padding: 10px 11px; font-size: 14px; font-weight: 500; border-radius: 5px; }
.dropdown-links a:hover { background: var(--ivory); }
.curriculum-dropdown .dropdown-links { min-width: 200px; }
.curriculum-dropdown .dropdown-links a { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; }
.curriculum-dropdown > summary.is-active > span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }
.mobile-sections { display: none; }
.mobile-chapter-links a[aria-current='location'] { color: var(--navy); background: rgb(231 200 144 / 22%); font-weight: 700; }
.dropdown-label { padding: 8px 10px; font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.header-actions { display: flex; flex: 0 0 auto; gap: 16px; align-items: center; }
.header-apply { min-height: 48px; padding: 11px 22px; gap: 16px; font-size: 13px; }
.primary-nav > .header-apply::after { content: none; }
.primary-nav > .header-apply { color: var(--white); gap: 12px; }
.language-dock { display: none; width: 144px; padding-inline: 5px; border: 1px solid rgb(18 53 91 / 9%); border-radius: 10px; background: var(--ivory); color: var(--navy); }
.js .language-dock { display: block; }
.language-dock-heading { display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.language-dock-heading svg { width: 11px; height: 11px; margin-right: 3px; }
.language-switch { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 6px; min-height: 44px; padding: 5px 0; border: 0; background: transparent; font-size: 11px; font-weight: 700; }
.language-option { white-space: nowrap; color: var(--muted); }
.language-name-short { display: none; }
html[lang='en'] .language-option-en, html[lang='th'] .language-option-th { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.language-track { flex: 0 0 42px; width: 42px; height: 24px; padding: 3px; background: var(--navy); border-radius: 30px; }
.language-thumb { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transform: translateX(0); transition: transform .25s var(--ease); }
.language-switch[aria-checked='true'] .language-thumb { transform: translateX(18px); }
.menu-trigger { display: none; justify-content: center; align-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-lines { position: relative; width: 17px; height: 1px; background: var(--navy); }
.menu-lines::before, .menu-lines::after { position: absolute; content: ''; width: 17px; height: 1px; left: 0; background: var(--navy); transition: transform .25s, top .25s; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }
.menu-trigger[aria-expanded='true'] .menu-lines { background: transparent; }
.menu-trigger[aria-expanded='true'] .menu-lines::before { top: 0; transform: rotate(45deg); }
.menu-trigger[aria-expanded='true'] .menu-lines::after { top: 0; transform: rotate(-45deg); }
.reading-progress { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 3px; z-index: 101; pointer-events: none; overflow: hidden; background: rgb(18 53 91 / 10%); }
.js .reading-progress { display: block; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform-origin: top; transform: scaleY(0); }

/* The rail lives in the body's reserved 56px viewport gutter, never over the content shell. */
.journey-rail { display: none; }
.js .journey-rail { position: fixed; top: 50%; right: 6px; z-index: 85; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 44px; padding-block: 10px; border: 1px solid rgb(18 53 91 / 10%); border-radius: 30px; background: rgb(248 247 242 / 97%); transform: translateY(-50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s, visibility .35s; }
.js .journey-rail.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.journey-track { position: absolute; z-index: -1; top: 11px; bottom: 11px; left: 50%; width: 1px; transform: translateX(-50%); background: rgb(18 53 91 / 18%); }
.journey-fill { display: block; width: 1px; height: 100%; transform: scaleY(0); transform-origin: top; background: var(--gold); }
.journey-rail a { position: relative; display: grid; place-items: center; width: 42px; height: 44px; border-radius: 50%; }
.journey-dot { width: 7px; height: 7px; border: 1px solid var(--navy); border-radius: 50%; background: var(--ivory); transition: width .25s, height .25s, border .25s, background .25s; }
.journey-rail a[aria-current='location'] .journey-dot { width: 12px; height: 12px; border: 3px solid var(--white); background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.journey-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* The supplied KSJ welcome banner leads directly into the bilingual introduction. */
.hero { position: relative; isolation: isolate; background: radial-gradient(circle at 8% 85%, #e7cd9b 0, transparent 26%), linear-gradient(118deg, #f7f3e8 0%, #e3ece8 52%, #f4e8cf 100%); overflow: clip; }
.hero-banner { position: relative; width: min(calc(100% - 32px), 1568px); margin: 16px auto 0; padding: 10px; border: 1px solid rgb(172 133 69 / 45%); border-radius: 8px; background: var(--white); box-shadow: 0 14px 40px rgb(18 53 91 / 12%); overflow: hidden; }
.hero-banner::after { content: ''; position: absolute; inset: 5px; border: 1px solid rgb(172 133 69 / 35%); border-radius: 4px; pointer-events: none; }
.hero-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1845 / 702; object-fit: contain; }
.hero-banner-caption { padding: 10px 14px 0; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.hero-intro { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; padding-block: 74px 60px; }
.hero-title, .hero-copy { position: relative; min-width: 0; }
.hero-title { padding-bottom: 30px; }
.hero-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100px; height: 6px; background: var(--gold); box-shadow: 20px 10px 0 rgb(172 133 69 / 20%); }
.hero-title > .eyebrow { display: inline-block; padding: 8px 13px; border: 1px solid rgb(18 53 91 / 15%); border-radius: 100px; background: rgb(255 255 255 / 60%); }
.hero-copy { padding: 34px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 8px 30px 8px 8px; color: var(--white); background: linear-gradient(145deg, #12355b, #214b69); box-shadow: 9px 10px 0 rgb(172 133 69 / 24%), 0 22px 46px rgb(18 53 91 / 15%); }
.hero-copy::before { content: ''; position: absolute; top: 13px; right: 15px; width: 32px; height: 5px; background: radial-gradient(circle, var(--gold-light) 2px, transparent 2.5px) 0 0 / 11px 5px; }
.display-title { font-size: clamp(44px, 5.1vw, 72px); line-height: 1.04; letter-spacing: -.045em; max-width: 620px; text-wrap: balance; }
.hero-description { color: #edf2f5; font-size: 15px; line-height: 1.9; max-width: 610px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; margin-top: 25px; }
.hero-actions .text-link { color: #f2d7a5; border-color: #a5baca; font-size: 12px; }
.hero-actions .text-link:hover { color: var(--white); border-color: var(--white); }
.hero-actions .button-navy { color: var(--navy); background: var(--white); }
.hero-actions .button-navy:hover { background: var(--gold-light); }
.hero-tagline { margin-top: 21px; color: var(--gold-light); font: italic 16px/1.45 var(--serif); }
.hero-school-name { margin-top: 18px; padding-top: 15px; border-top: 1px solid rgb(255 255 255 / 20%); max-width: 420px; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #d7e2e8; text-transform: uppercase; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; border-top: 1px solid rgb(172 133 69 / 35%); background: linear-gradient(90deg, rgb(255 255 255 / 48%), transparent); }
.scroll-cue { display: inline-flex; gap: 30px; align-items: center; font-size: 11px; font-weight: 600; }
.scroll-cue > [aria-hidden] { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; }
.motion-toggle { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font-size: 10px; color: var(--muted); }
.motion-toggle:hover { color: var(--navy); }
.motion-symbol { font-size: 15px; }

/* Four learning levels are displayed together; this grid simply reflows on phones. */
.programme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 23px; margin-top: 25px; padding-bottom: 20px; }
.programme-card { --card-accent: #12355b; display: flex; position: relative; min-width: 0; flex-direction: column; padding: 10px; border: 1px solid rgb(18 53 91 / 13%); border-bottom: 4px solid var(--card-accent); border-radius: 22px 22px 8px 8px; background: var(--white); box-shadow: 0 12px 28px rgb(18 53 91 / 9%); transition: transform .4s var(--ease), box-shadow .4s; }
.programme-card:nth-child(2) { --card-accent: #937239; }
.programme-card:nth-child(3) { --card-accent: #3c766b; }
.programme-card:nth-child(4) { --card-accent: #496985; }
.programme-card:focus-within { box-shadow: 0 18px 40px rgb(18 53 91 / 17%); }
.programme-card:nth-child(even) { margin-top: 26px; }
.programme-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 1.14; border-radius: 14px 14px 4px 4px; background: var(--sage); }
.programme-card:nth-child(even) .programme-photo { border-radius: 14px 48px 4px 4px; }
.programme-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.programme-photo:hover img { transform: scale(1.035); }
.photo-index { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 46px; height: 46px; border: 3px double var(--gold-light); border-radius: 50%; background: var(--card-accent); font: 400 23px/1 var(--serif); color: var(--white); }
.programme-copy { display: flex; flex: 1; flex-direction: column; padding: 20px 10px 10px; }
.programme-copy .eyebrow { color: var(--muted); font-size: 9px; margin-bottom: 8px; }
.programme-copy .eyebrow::before { width: 16px; margin-right: 8px; }
.programme-copy h3 { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.body-copy { font-size: 12px; color: var(--muted); line-height: 1.82; margin-block: 13px 17px; }
.programme-copy .text-link { align-self: flex-start; margin-top: auto; min-height: 44px; font-size: 11px; gap: 15px; }
.programme-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 5px; }
.programme-pathway { display: inline-flex; flex: 1 1 105px; min-width: 0; min-height: 44px; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 9px; border: 1px solid #c5d4dc; border-radius: 7px; background: #f1f5f6; color: var(--navy); font-size: 10px; font-weight: 700; line-height: 1.5; transition: color .2s, background .2s, border-color .2s; }
.programme-pathway > span:first-child { min-width: 0; }
.programme-pathway > [aria-hidden] { flex: 0 0 auto; font-size: 15px; }
.programme-pathway--icep { border-color: #ddccab; background: #fbf4e7; }
.programme-pathway:hover, .programme-pathway:focus-visible { border-color: var(--navy); background: var(--navy); color: var(--white); }
@keyframes programme-in { from { opacity: .3; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* The welcome image lives at the top; these are the two separate student-life notices. */
.school-life { position: relative; isolation: isolate; overflow: clip; color: var(--white); background: radial-gradient(ellipse at 85% 20%, rgb(95 144 143 / 40%), transparent 38%), linear-gradient(125deg, #12355b, #244b62 62%, #102f4d); }
.school-life .eyebrow { color: #ecdbb8; }
.school-life .text-link { color: #edf2f5; border-color: #a0b4c4; }
.school-life .text-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.school-life::before, .school-life::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.school-life::before { top: 8%; left: -225px; width: 570px; height: 570px; border: 1px solid rgb(231 200 144 / 30%); box-shadow: 0 0 0 42px rgb(255 255 255 / 5%), 0 0 0 92px rgb(231 200 144 / 4%); }
.school-life::after { right: -135px; bottom: 8%; width: 410px; height: 410px; background: radial-gradient(circle, rgb(231 200 144 / 28%), rgb(132 177 188 / 8%) 54%, transparent 72%); }
.motion-on .school-life::before { animation: orbit-drift 34s ease-in-out infinite alternate; }
.motion-on .school-life::after { animation: ambient-drift 24s ease-in-out infinite alternate-reverse; }
@keyframes orbit-drift { to { transform: translate3d(28px, 18px, 0) rotate(8deg); } }
.school-life > .shell { position: relative; z-index: 1; }
.newsroom { width: 100%; }
.news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; border-bottom: 1px solid rgb(255 255 255 / 22%); padding-bottom: 14px; }
.news-edition { color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-result { color: #d7e2e9; font-size: 11px; white-space: nowrap; }
.news-filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.js .news-filters { display: flex; }
.news-filter { min-height: 44px; border: 1px solid rgb(255 255 255 / 26%); border-radius: 100px; padding: 8px 18px; color: #fff; background: transparent; font-size: 11px; transition: color .2s, background .2s; }
.news-filter:hover, .news-filter[aria-pressed='true'] { color: var(--deep); background: var(--gold-light); border-color: var(--gold-light); }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.news-card { min-width: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 15%); border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: 0 9px 28px rgb(0 0 0 / 13%); }
.news-link { display: flex; position: relative; flex-direction: column; height: 100%; min-height: 290px; }
.news-cover { display: block; position: relative; overflow: hidden; aspect-ratio: 2 / 1; background: #dee8e5; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.motion-on .news-cover img { transition: transform .7s var(--ease); }
.motion-on .news-link:hover .news-cover img { transform: scale(1.045); }
.news-content { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 18px; }
.news-category { align-self: flex-start; color: #7b5926; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.news-content h3 { font-family: var(--sans); font-size: clamp(16px, 1.45vw, 21px); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; text-wrap: balance; }
.news-summary { color: var(--muted); font-size: 11px; line-height: 1.6; }
.news-action { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 7px; margin-top: auto; color: var(--navy); font-size: 10px; font-weight: 700; }
.news-action > [aria-hidden] { font-size: 18px; }
.news-link:focus-visible { outline-offset: -5px; }
.news-card--feature { grid-column: span 2; grid-row: span 2; }
.news-card--feature .news-link { min-height: 610px; justify-content: flex-end; }
.news-card--feature .news-cover { position: absolute; inset: 0; aspect-ratio: auto; }
.news-card--feature .news-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 12%, rgb(8 29 48 / 12%) 38%, rgb(8 29 48 / 97%) 100%); }
.news-card--feature .news-content { position: relative; flex: 0 0 auto; padding: 30px; gap: 15px; }
.news-card--feature h3 { color: #fff; font-family: var(--serif); font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.035em; }
.news-card--feature .news-category { padding: 4px 10px; border-radius: 100px; color: var(--deep); background: var(--gold-light); }
.news-card--feature .news-summary, .news-card--feature .news-action { color: #e8f0f4; font-size: 12px; }
.news-card--film .news-cover::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 36px; text-shadow: 0 2px 12px rgb(0 0 0 / 70%); background: rgb(11 40 70 / 12%); }
.news-grid.is-filtered { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-grid.is-filtered .news-card--feature { grid-column: auto; grid-row: auto; }
.news-grid.is-filtered .news-card--feature .news-link { min-height: 380px; }
html[lang='th'] .news-content h3 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; line-height: 1.45; }
html[lang='th'] .news-card--feature h3 { font-size: clamp(28px, 2.7vw, 38px); }
.media-open { position: relative; display: block; overflow: hidden; background: #f0f3ef; border-radius: 5px; cursor: zoom-in; }
.media-open img { transition: opacity .25s; }
.media-open:hover img { opacity: .91; }
.expand-icon { position: absolute; display: grid; place-items: center; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--white); font-size: 20px; box-shadow: 0 2px 10px rgb(0 0 0 / 8%); }

/* Leadership is a typographic feature with a quiet signature portrait. */
.leadership-layout { display: flex; align-items: center; gap: 100px; }
.leadership-main { flex: 1; min-width: 0; }
.leadership h2 { max-width: 720px; font-size: clamp(36px, 4vw, 54px); }
.quote-region { position: relative; margin-top: 35px; padding: 32px; border: 1px solid rgb(172 133 69 / 24%); border-bottom: 4px solid var(--gold); border-radius: 5px 30px 5px 5px; background: #fffdf8; box-shadow: 8px 10px 0 #dfe8e4, 0 16px 38px rgb(18 53 91 / 6%); }
.quote-region::before { content: ''; position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); border-radius: 0 20px 0 0; pointer-events: none; }
.quote-mark { display: block; font: 80px/.8 var(--serif); color: var(--gold); }
.quote-stack { display: grid; align-items: start; margin-top: 5px; }
.quote { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.5; letter-spacing: -.018em; }
.quote + .quote { margin-top: 25px; }
.js .quote { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; margin: 0; }
.js .quote.active { visibility: visible; opacity: 1; pointer-events: auto; }
.motion-on .quote.active { animation: programme-in .5s var(--ease); }
.quote-controls { display: none; gap: 10px; align-items: center; margin-top: 28px; }
.js .quote-controls { display: flex; }
.quote-dot { width: 40px; min-height: 44px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: 11px; }
.quote-dot[aria-pressed='true'] { color: var(--navy); border-color: var(--gold); }
.quote-pause { margin-left: auto; padding: 8px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 100px; background: transparent; font-size: 11px; }
.leader-portrait { position: relative; flex: 0 0 245px; align-self: center; padding: 12px 12px 21px; border: 3px double rgb(172 133 69 / 55%); border-radius: 160px 160px 8px 8px; background: var(--white); box-shadow: 9px 10px 0 #dae5e5, 0 20px 40px rgb(18 53 91 / 8%); }
.leader-portrait img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 160px 160px 4px 4px; }
.leader-portrait figcaption { margin-top: 23px; text-align: center; }
.leader-portrait strong { display: block; font-size: 15px; font-weight: 600; }
.leader-portrait figcaption > span { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.leader-portrait figcaption > span { overflow-wrap: anywhere; }

/* A broad school film anchors the factual story. */
.school-story { background: var(--deep); color: var(--white); }
.school-story .eyebrow { color: #d0dce1; }
.story-caption { color: #cbd5de; font-size: 12px; max-width: 240px; }
.school-video { width: 100%; padding: 8px; border: 3px double rgb(231 200 144 / 50%); background: #081d32; aspect-ratio: 2 / 1; border-radius: 14px; box-shadow: 0 24px 54px rgb(0 0 0 / 23%); overflow: hidden; }
.school-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #081d32; }
.school-stats { display: flex; gap: 40px; margin-top: 50px; }
.school-stat { flex: 1; min-width: 0; padding: 24px; border: 1px solid rgb(255 255 255 / 18%); border-top: 3px solid var(--gold-light); border-radius: 4px 18px 4px 4px; background: rgb(255 255 255 / 6%); box-shadow: 0 10px 22px rgb(0 0 0 / 8%); }
.fact-value { display: block; color: var(--gold-light); font: 400 66px/1.1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.fact-value small { font-size: .55em; }
.school-stat p { color: #d8e1e6; font-size: 12px; line-height: 1.8; margin-top: 14px; }
.facts-note { margin-top: 28px; font-size: 10px; color: #c3cfd9; }

/* Swipeable editorial galleries, full posters remain available in the dialog. */
.editorial-index { font-size: 9px; letter-spacing: .15em; color: var(--muted); flex: 0 0 auto; }
.gallery-track { display: flex; align-items: flex-start; gap: 26px; overflow-x: auto; padding: 12px 3px 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b7c6bf transparent; overscroll-behavior-x: contain; }
.gallery-item { flex: 0 0 calc((100% - 52px) / 3); min-width: 0; padding: 10px; border: 1px solid rgb(18 53 91 / 14%); border-radius: 12px 12px 4px 4px; background: var(--white); box-shadow: 5px 7px 0 rgb(172 133 69 / 16%); scroll-snap-align: start; }
.gallery-item:nth-child(even) { margin-top: 28px; }
.gallery-item .media-open img { aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-caption { padding: 14px 4px 6px; font-size: 11px; color: var(--muted); }
.gallery-controls { display: none; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; }
.js .gallery-controls { display: flex; }
.gallery-position { color: var(--muted); font-size: 10px; }
.gallery-meter { flex: 1; max-width: 190px; height: 1px; background: var(--line); margin-left: auto; overflow: hidden; }
.gallery-meter span { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--navy); }
.gallery-buttons { display: flex; gap: 10px; }
.gallery-buttons button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 20px; transition: background .2s, color .2s; }
.gallery-buttons button:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.gallery-buttons button:disabled { opacity: .4; }
.sponsors { border-top: 1px solid var(--line); }
.sponsors .gallery-item { flex-basis: calc((100% - 78px) / 4); }
.sponsors .gallery-item:nth-child(even) { margin-top: 0; }
.sponsors .gallery-item .media-open img { aspect-ratio: 1.42; }

/* Layered school-color surfaces make the long editorial story feel connected. */
#programmes { background: radial-gradient(rgb(18 53 91 / 7%) 1px, transparent 1.5px) 0 0 / 22px 22px, linear-gradient(118deg, #f5f1e6, #e3ece6 62%, #f3ead6); }
#headmaster { background: radial-gradient(ellipse at 82% 25%, rgb(231 200 144 / 36%), transparent 34%), linear-gradient(116deg, #fbf6e9, #f6f6ef 56%, #dfeae8); }
.school-story { background: radial-gradient(ellipse at 91% 0%, rgb(231 200 144 / 17%), transparent 33%), linear-gradient(118deg, #0b2846 0%, #173c5b 54%, #102e4b 100%); }
#achievements { background: repeating-linear-gradient(-45deg, transparent 0 22px, rgb(18 53 91 / 3%) 22px 23px), linear-gradient(122deg, #e3ede7, #f9f4e9 48%, #dfe9ee); }

#questions { background: linear-gradient(118deg, #eff3eb, #e4ede9); }
.sponsors { background: radial-gradient(rgb(172 133 69 / 12%) 1px, transparent 1.5px) 0 0 / 24px 24px, linear-gradient(118deg, #f5f0e1, #f5f3e9 58%, #e4edef); }


/* Admissions and an open FAQ form one logical family-facing journey. */
.admissions { background: radial-gradient(ellipse at 4% 85%, rgb(172 133 69 / 26%), transparent 38%), linear-gradient(122deg, #f0dfb9, #f3ead3 55%, #d9e6df); }
.admission-layout { display: flex; gap: 65px; align-items: center; width: min(calc(100% - 96px), 1244px); padding: 48px; border: 1px solid rgb(255 255 255 / 95%); border-radius: 6px 38px 6px 6px; background: rgb(255 253 245 / 89%); box-shadow: 10px 12px 0 rgb(172 133 69 / 14%), 0 24px 58px rgb(18 53 91 / 9%); }
.admission-copy { flex: 1.1; }
.admission-copy h2 { max-width: 650px; font-size: clamp(46px, 5.6vw, 76px); }
.large-copy { margin-block: 27px 30px; color: var(--muted); font-size: 16px; max-width: 400px; }
.admission-note { margin-top: 24px; font-size: 10px; color: var(--muted); }
.open-day { flex: .85; min-width: 0; padding: 18px; border: 1px solid rgb(18 53 91 / 15%); border-radius: 22px 4px 22px 4px; background: var(--white); box-shadow: 6px 8px 0 #dbe6e1; }
.open-day-photo { overflow: hidden; border-radius: 14px 4px 48px 4px; margin-bottom: 25px; }
.open-day-photo img { aspect-ratio: 1.65; object-fit: cover; }
.open-day h3 { font: 400 32px/1.2 var(--serif); letter-spacing: -.025em; }
.open-day p { margin-block: 15px 20px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.35fr; gap: 100px; }
.faq-layout h2 { max-width: 400px; }
.faq-item { margin-bottom: 12px; border: 1px solid rgb(18 53 91 / 17%); border-radius: 12px; background: rgb(255 255 255 / 84%); }
.faq-item[open] { border-color: rgb(172 133 69 / 55%); box-shadow: 5px 7px 0 rgb(172 133 69 / 13%); }
.faq-item:last-child { margin-bottom: 0; }
.faq-item summary { display: flex; align-items: center; gap: 18px; min-height: 82px; padding: 19px 20px; font-size: 15px; font-weight: 600; cursor: pointer; }
.faq-number { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid rgb(172 133 69 / 40%); border-radius: 50%; color: var(--navy); background: #f4ead6; font-size: 10px; font-weight: 600; }
.faq-symbol { position: relative; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; margin-left: auto; }
.faq-symbol::before, .faq-symbol::after { content: ''; position: absolute; left: 7px; top: 11px; width: 9px; height: 1px; background: var(--navy); }
.faq-symbol::after { transform: rotate(90deg); }
.faq-item[open] .faq-symbol { background: var(--navy); border-color: var(--navy); }
.faq-item[open] .faq-symbol::before { background: var(--white); }
.faq-item[open] .faq-symbol::after { display: none; }
.faq-answer { padding: 0 28px 27px 66px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.motion-on .faq-item[open] .faq-answer { animation: programme-in .35s var(--ease); }

/* Contacts have their own clear destination; nothing is obscured by overlays. */
.site-footer { position: relative; isolation: isolate; overflow: clip; padding-top: 94px; padding-bottom: 26px; border-top: 6px solid var(--gold); color: var(--white); background: radial-gradient(ellipse at 92% 0%, rgb(67 108 133 / 42%), transparent 40%), linear-gradient(125deg, #0b2846, #12355b 64%, #0a243f); }
.contact-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 42px; border-bottom: 1px solid rgb(255 255 255 / 20%); }
.contact-heading .eyebrow { width: 100%; margin-bottom: 0; color: #c8d5dd; }
.contact-heading h2 { font-size: clamp(60px, 7vw, 104px); }
.light-link { border-color: #8fabbf; color: var(--white); }
.light-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.contact-layout { display: grid; grid-template-columns: 1fr .9fr 1.15fr; gap: 55px; padding-block: 45px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand img { width: 50px; height: 50px; object-fit: contain; }
.footer-brand strong { font-size: 29px; font-weight: 700; letter-spacing: -.04em; }
.footer-intro { color: #c9d7e0; font-size: 11px; line-height: 1.9; }
.footer-tagline { font-size: 26px; line-height: 1.2; margin-top: 26px; }
.footer-tagline em { color: var(--gold-light); font-weight: 400; }
.social-links { display: flex; gap: 10px; margin-top: 24px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; transition: color .2s, background .2s; }
.social-link:hover { color: var(--deep); background: var(--gold-light); }
.social-link svg { width: 14px; height: 14px; }
.contact-block { margin-bottom: 24px; }
.contact-block h3 { color: #b2c5d2; font: 500 10px/1.7 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.contact-block a, .contact-block address { font-size: 12px; font-style: normal; overflow-wrap: anywhere; }
.contact-block .text-link { font-size: 11px; gap: 10px; }
.contact-map { min-width: 0; padding: 8px; border: 1px solid rgb(231 200 144 / 45%); overflow: hidden; border-radius: 12px; background: rgb(255 255 255 / 7%); }
.contact-details { padding: 23px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 12px; background: rgb(255 255 255 / 5%); }
.contact-map iframe { border: 0; display: block; width: 100%; height: 100%; min-height: 330px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgb(255 255 255 / 20%); padding-top: 22px; font-size: 10px; color: #c0d0db; }
.footer-shortcuts { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-shortcuts a { display: inline-flex; min-height: 44px; align-items: center; }


/* Graphic chapter landmarks. Decoration is separate from content and hit targets. */
.section-heading-group { position: relative; padding-left: 78px; }
.chapter-medallion { display: grid; place-items: center; position: absolute; left: 0; top: 3px; width: 55px; height: 55px; border: 1px solid var(--navy); border-radius: 50%; background: #fbf8ee; color: var(--navy); box-shadow: 4px 5px 0 rgb(172 133 69 / 24%); font: 400 23px/1 var(--serif); }
.section-heading-group > .eyebrow { margin-bottom: 13px; }
.school-life .chapter-medallion, .school-story .chapter-medallion { background: rgb(255 255 255 / 7%); color: var(--gold-light); border-color: var(--gold-light); box-shadow: 4px 5px 0 rgb(231 200 144 / 12%); }
.section-decoration { --deco-color: #ac8545; position: absolute; z-index: 0; top: 30px; right: -30px; width: 190px; height: 190px; opacity: .4; pointer-events: none; user-select: none; }
.decoration-ring { position: absolute; inset: 25px; border: 1px solid var(--deco-color); border-radius: 50%; }
.decoration-ring::before { content: ''; position: absolute; inset: 10px; border: 1px dashed var(--deco-color); border-radius: 50%; }
.decoration-ring::after { content: ''; position: absolute; top: 20px; left: 10px; width: 12px; height: 12px; border: 3px solid #f5eddd; background: var(--deco-color); border-radius: 50%; }
.decoration-dots { position: absolute; right: -22px; top: 20px; width: 110px; height: 110px; background: radial-gradient(circle, var(--deco-color) 1.8px, transparent 2px) 0 0 / 14px 14px; transform: rotate(12deg); }
.decoration-spark { position: absolute; left: 12px; bottom: 12px; width: 45px; height: 45px; background: var(--deco-color); clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%); }
.school-life .section-decoration, .school-story .section-decoration, .site-footer .section-decoration { --deco-color: #e7c890; }
.hero-intro .section-decoration { top: auto; bottom: 10px; left: -80px; right: auto; opacity: .25; }
#programmes > .section-decoration { top: auto; bottom: 24px; left: -65px; right: auto; }
#headmaster > .section-decoration { top: 45px; right: 25px; opacity: .3; }
#achievements > .section-decoration, #sponsors > .section-decoration { top: -45px; right: 4%; }
#admissions > .section-decoration { top: auto; bottom: 8px; left: -20px; right: auto; }
#questions > .section-decoration { top: auto; bottom: 4px; right: -20px; }
.site-footer > .section-decoration { top: 25px; right: 9%; width: 240px; height: 240px; opacity: .24; }
@keyframes graphic-orbit { to { rotate: 360deg; } }
@keyframes graphic-breathe { to { scale: 1.12; rotate: 10deg; } }
.motion-on .decoration-ring { animation: graphic-orbit 48s linear infinite; }
.motion-on .decoration-spark { animation: graphic-breathe 9s ease-in-out infinite alternate; }
.motion-on .section-decoration .decoration-dots { animation: ambient-drift 26s ease-in-out infinite alternate; }
.js .journey-rail { box-shadow: 0 8px 30px rgb(18 53 91 / 12%); }
.journey-rail a { min-height: 36px; }
.journey-track { top: 23px; bottom: 23px; }
.journey-name { right: 43px; }
@media (hover: hover) and (pointer: fine) {
  .motion-on .programme-card:hover { transform: translateY(-7px) rotate(-.5deg); box-shadow: 0 24px 45px rgb(18 53 91 / 16%); }
  .motion-on .programme-card:nth-child(even):hover { transform: translateY(-7px) rotate(.5deg); }
}
@media (max-width: 900px) {
  .section-heading-group { padding-left: 64px; }
  .chapter-medallion { width: 45px; height: 45px; font-size: 20px; }
  .section-decoration { width: 145px; height: 145px; opacity: .25; }
}
@media (max-width: 600px) {
  .hero-banner { width: calc(100% - 16px); margin-top: 8px; padding: 5px; }
  .hero-banner::after { inset: 2px; }
  .hero-banner-caption { padding: 8px 6px 2px; font-size: 8px; }
  .hero-copy { padding: 27px 24px; }
  .hero-title { padding-bottom: 23px; }
  .section-heading-group { padding-left: 52px; }
  .chapter-medallion { width: 36px; height: 36px; font-size: 17px; }
  .section-heading-group > .eyebrow { margin-bottom: 12px; }
  .section-decoration { width: 125px; height: 125px; opacity: .22; }
  .decoration-dots { width: 80px; height: 80px; }
  #headmaster > .section-decoration { right: -35px; }
  .faq-layout .section-heading-group { padding-right: 0; }
  .school-video { padding: 4px; }
  .contact-details { padding: 22px; }
}
.motion-paused .programme-card:hover { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .motion-on .programme-card:hover { transform: none !important; }
}

/* Native modal and progressive motion. */
.image-dialog { max-width: 1050px; width: 92vw; max-height: 92dvh; border: 0; border-radius: 10px; padding: 45px 22px 20px; background: var(--white); color: var(--ink); }
.image-dialog::backdrop { background: rgb(5 23 40 / 87%); }
.image-dialog img { height: auto; max-height: 75dvh; width: auto; max-width: 100%; object-fit: contain; margin-inline: auto; }
.image-dialog figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }
.dialog-close { position: absolute; right: 9px; top: 7px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 25px; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; z-index: 80; width: 42px; height: 42px; border: 1px solid #869bad; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 20px; }
.reveal-ready [data-reveal] { transition: opacity .7s var(--ease), translate .8s var(--ease); }
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; translate: 0 28px; }
.reveal-ready [data-reveal].is-visible, .reveal-ready [data-reveal]:focus-within { opacity: 1; translate: 0 0; }
.motion-on [data-drift] img { transform: translateY(var(--drift, 0px)) scale(1.035); }
.motion-on .programme-photo:hover img { transform: translateY(var(--drift, 0px)) scale(1.055); }
html[lang='th'] { --serif: 'Noto Sans Thai', 'Leelawadee UI', Thonburi, Tahoma, sans-serif; }
html[lang='th'] h1, html[lang='th'] h2, html[lang='th'] .quote { line-height: 1.35; letter-spacing: -.02em; }
html[lang='th'] .eyebrow { letter-spacing: .02em; }
html[lang='th'] .display-title { font-size: clamp(42px, 4.3vw, 64px); }
html[lang='th'] .programme-copy h3 { font-size: clamp(20px, 1.7vw, 25px); }
html[lang='th'] .quote { font-size: clamp(24px, 2.3vw, 32px); }
html[lang='th'] .primary-nav { gap: 14px; }
.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused [data-reveal] { opacity: 1 !important; translate: none !important; }
.motion-paused [data-drift] img, .motion-paused .programme-photo:hover img { transform: none; }
.motion-paused .notice-link, .motion-paused .notice-link:hover, .motion-paused .notice-link:nth-child(even) { transform: none !important; translate: none !important; }
.motion-paused .button:hover, .motion-paused .text-link:hover > [aria-hidden] { transform: none; }

/* The layout is rebuilt around content fit, not a legacy column framework. */
@media (max-width: 1250px) {
  .header-inner { gap: 18px; }
  .primary-nav, html[lang='th'] .primary-nav { gap: 16px; }
  .primary-nav > a, .nav-dropdown > summary { font-size: 11px; }
  .header-actions { gap: 13px; }
  .header-apply { padding-inline: 16px; }
  .hero-intro { gap: 48px; }
  .programme-grid { gap: 18px; }
  .contact-layout { gap: 35px; }
}
@media (max-width: 1280px) {
  .js body { padding-right: 6px; }
  .header-inner { flex-wrap: wrap; min-height: 82px; gap: 0; padding-block: 10px; }
  .js .journey-rail { display: none; }
  .mobile-sections { display: block; }
  .header-actions { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-top: 15px; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: flex; max-height: calc(100dvh - 85px); overflow-y: auto; }
  .primary-nav > a, .nav-dropdown > summary { padding-block: 8px; min-height: 48px; font-size: 16px; border-top: 1px solid var(--line); }
  .dropdown-links { position: static; box-shadow: none; border: 0; max-height: none; background: var(--ivory); margin-bottom: 12px; }
  .nav-dropdown > summary { justify-content: space-between; }
  .js .menu-trigger { display: flex; }
  .primary-nav > .header-apply { align-self: flex-start; margin-block: 10px; border-top: 0; padding-inline: 22px; }
  .hero-intro { padding-block: 50px 44px; gap: 32px; }
  .hero-copy { padding: 26px; }
  .admission-layout { width: calc(100% - 64px); padding: 34px; }
  .display-title { font-size: 59px; }
  .leadership-layout { gap: 65px; }
  .leader-portrait { flex-basis: 215px; }
  .admission-layout { gap: 70px; }
  .faq-layout { gap: 65px; }
  .school-stats { gap: 26px; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .contact-map { grid-column: 1 / -1; }
  .contact-map iframe { min-height: 280px; }
}
@media (max-width: 900px) {
  :root { --space: 80px; }
  .shell { padding-inline: 32px; }
  .hero-intro { grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 44px 38px; }
  .display-title { max-width: 650px; font-size: 54px; }
  .hero-description { max-width: 620px; }
  .hero-actions { gap: 18px; }
  .programme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 25px; }
  .programme-card:nth-child(even) { margin-top: 0; }
  .programme-copy h3 { font-size: 32px; }
  .body-copy { font-size: 13px; }
  .news-grid, .news-grid.is-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card--feature { grid-row: auto; }
  .news-card--feature .news-link { min-height: 420px; }
  .news-content h3 { font-size: 20px; }
  .leader-portrait { flex-basis: 175px; }
  .leadership-layout { gap: 45px; }
  .leadership h2 { font-size: 43px; }
  .quote { font-size: 28px; }
  .admission-layout { gap: 45px; }
  .admission-copy h2 { font-size: 52px; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-layout h2 { max-width: none; }
  .school-video { aspect-ratio: 16 / 9; }
  .sponsors .gallery-item { flex-basis: calc((100% - 52px) / 3); }
}
@media (max-width: 600px) {
  :root { --space: 64px; }
  html { scroll-padding-top: 95px; }
  .shell { padding-inline: 22px; }
  h2 { font-size: 38px; }
  .eyebrow { font-size: 9px; margin-bottom: 17px; }
  .eyebrow::before { width: 18px; margin-right: 9px; }
  .header-inner { min-height: 78px; }
  .brand img { width: 35px; height: 35px; }
  .brand { gap: 7px; }
  .brand-wordmark { font-size: 25px; }
  .brand small { display: none; }
  .primary-nav > .header-apply { display: flex; }
  .header-actions { gap: 13px; }
  .language-dock { width: 108px; }
  .language-dock-heading { font-size: 8px; }
  .language-switch { font-size: 10px; gap: 5px; }
  .language-name-full { display: none; }
  .language-name-short { display: inline; }
  .hero-intro { grid-template-columns: 1fr; gap: 22px; padding-block: 34px 30px; }
  .display-title { font-size: 52px; line-height: 1.06; }
  .hero-description { font-size: 14px; margin-top: 0; line-height: 1.85; }
  .hero-actions { gap: 15px 23px; margin-top: 27px; }
  .hero-actions .button { padding-inline: 20px; gap: 22px; }
  .hero-actions .text-link { font-size: 11px; }
  .hero-school-name { font-size: 9px; margin-top: 16px; }
  .hero-bottom { padding-block: 13px; }
  .scroll-cue { font-size: 10px; gap: 13px; }
  .motion-toggle { font-size: 9px; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 30px; }
  .section-intro > .text-link { font-size: 12px; }
  .programme-grid { gap: 22px 14px; margin-top: 18px; }
  .programme-card { padding: 7px; border-radius: 15px 15px 5px 5px; }
  .programme-photo { aspect-ratio: 1.03; border-radius: 9px 9px 3px 3px; }
  .programme-card:nth-child(even) .programme-photo { border-radius: 9px 30px 3px 3px; }
  .programme-copy { padding: 14px 4px 5px; }
  .programme-copy .eyebrow { margin-bottom: 8px; font-size: 8px; }
  .programme-copy .eyebrow::before { width: 12px; margin-right: 5px; }
  .programme-copy h3 { font-size: clamp(21px, 5vw, 25px); }
  .body-copy { font-size: 11px; margin-block: 10px 12px; }
  .programme-copy .text-link { gap: 8px; font-size: 10px; }
  .photo-index { width: 34px; height: 34px; font-size: 17px; left: 8px; bottom: 8px; }
  .news-grid, .news-grid.is-filtered { gap: 12px; }
  .news-card { border-radius: 10px; }
  .news-card--feature .news-link { min-height: 360px; }
  .news-card--feature .news-content { padding: 23px; }
  .news-card--feature h3 { font-size: 36px; }
  .news-grid.is-filtered .news-card--feature .news-content { padding: 16px; }
  .news-grid.is-filtered .news-card--feature h3 { font-size: 26px; }
  .news-link { min-height: 270px; }
  .news-content { padding: 13px; gap: 9px; }
  .news-content h3 { font-size: 17px; }
  .news-summary { font-size: 10px; }
  .news-action { font-size: 9px; }
  .news-filter { padding: 8px 12px; font-size: 10px; }
  .news-edition { font-size: 10px; letter-spacing: .04em; }
  .news-grid.is-filtered .news-card--feature .news-link { min-height: 340px; }
  .leadership-layout { display: flex; flex-direction: column; align-items: stretch; gap: 38px; }
  .leadership h2 { font-size: 38px; }
  .quote { font-size: 29px; }
  .quote-mark { font-size: 65px; }
  .quote-region { margin-top: 27px; padding: 24px; }
  .leader-portrait { flex: none; align-self: stretch; display: flex; align-items: center; gap: 20px; padding: 14px; border-radius: 14px; }
  .leader-portrait img { width: 105px; aspect-ratio: 3 / 4; border-radius: 80px 80px 4px 4px; }
  .leader-portrait figcaption { text-align: left; margin: 0; }
  .leader-portrait strong { font-size: 13px; }
  .leader-portrait figcaption > span { font-size: 10px; }
  .story-caption { font-size: 11px; }
  .school-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 22px; margin-top: 30px; }
  .school-stat { padding: 18px 14px; }
  .fact-value { font-size: 53px; }
  .school-stat p { font-size: 11px; margin-top: 10px; }
  .facts-note { font-size: 9px; }
  .gallery-track { gap: 18px; }
  .gallery-item, .sponsors .gallery-item { flex-basis: 84%; }
  .gallery-item:nth-child(even) { margin-top: 0; }
  .gallery-controls { gap: 20px; }
  .gallery-meter { max-width: 110px; }
  .gallery-buttons button { width: 44px; height: 44px; }
  .editorial-index { display: none; }
  .admission-layout { display: flex; flex-direction: column; align-items: stretch; gap: 34px; width: calc(100% - 44px); padding: 26px 22px; }
  .admission-copy h2 { font-size: 52px; }
  .large-copy { font-size: 14px; }
  .admission-note { margin-top: 19px; }
  .open-day h3 { font-size: 31px; }
  .faq-item summary { font-size: 13px; gap: 12px; min-height: 76px; }
  .faq-item summary { padding-inline: 15px; }
  .faq-answer { padding: 0 18px 24px; font-size: 12px; }
  .site-footer { padding-top: 64px; }
  .contact-heading { gap: 23px; padding-bottom: 32px; }
  .contact-heading h2 { font-size: 75px; }
  .contact-heading .eyebrow { font-size: 9px; }
  .contact-heading .text-link { font-size: 11px; }
  .contact-layout { display: flex; flex-direction: column; gap: 38px; padding-block: 35px; }
  .footer-intro { font-size: 12px; }
  .footer-tagline { max-width: 290px; font-size: 30px; }
  .contact-details { display: grid; grid-template-columns: 1fr; }
  .contact-block { margin-bottom: 23px; }
  .contact-block h3 { font-size: 10px; }
  .contact-block a, .contact-block address { font-size: 13px; }
  .contact-map iframe { min-height: 250px; }
  .footer-bottom { align-items: flex-start; font-size: 9px; gap: 20px; }
  .footer-bottom > span { max-width: 200px; }
  .back-to-top { bottom: 15px; right: 15px; }
  html[lang='th'] .display-title { font-size: 43px; }
  html[lang='th'] .admission-copy h2 { font-size: 42px; }
  html[lang='th'] .quote { font-size: 26px; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 18px; }
  .header-actions { gap: 8px; }
  .language-dock { width: 100px; }
  .display-title { font-size: 46px; }
  .button { padding-inline: 20px; }
  .hero-actions { gap: 15px; }
  .hero-copy { padding: 23px 20px; }
  .admission-layout { width: calc(100% - 36px); padding: 22px 18px; }
  .hero-actions .text-link { gap: 12px; }
  .news-content h3 { font-size: 16px; }
  .news-summary { font-size: 10px; }
  .news-action { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
  .motion-on [data-drift] img { transform: none; }
  .programme-photo:hover img { transform: none; }
  .notice-link, .notice-link:nth-child(even), .notice-link:hover { transform: none !important; translate: none !important; }
  .button:hover, .text-link:hover > [aria-hidden] { transform: none; }
}

/* Curriculum At a Glance — shares KSJ's illustrated-school editorial system.
   All page-specific layouts are scoped so the homepage stays unchanged. */
.curriculum-page .curriculum-dropdown a[aria-current='page'] { background: #f5eddb; color: var(--navy); font-weight: 700; }
.curriculum-page .curriculum-hero { background: radial-gradient(ellipse at 91% 5%, rgb(231 200 144 / 52%), transparent 36%), linear-gradient(120deg, #f7f3e8, #e3ece8 58%, #f0e4ca); }
.curriculum-page .curriculum-hero > .section-decoration { top: auto; bottom: 50px; right: -25px; width: 260px; height: 260px; opacity: .22; }
.curriculum-page .curriculum-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; padding-block: 24px; color: var(--muted); font-size: 11px; }
.curriculum-page .curriculum-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; border-bottom: 1px solid #a4b6b7; color: var(--navy); }
.curriculum-page .curriculum-breadcrumb > [aria-hidden] { color: var(--gold); }
.curriculum-page .curriculum-hero-layout { position: relative; display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: clamp(45px, 6vw, 85px); padding-block: 20px 75px; }
.curriculum-page .curriculum-hero-copy { min-width: 0; }
.curriculum-page .curriculum-hero .display-title { max-width: 630px; font-size: clamp(50px, 5.8vw, 82px); }
.curriculum-page .curriculum-lead { max-width: 550px; margin-top: 25px; font-size: 15px; line-height: 1.9; color: #435d6d; }
.curriculum-page .curriculum-hero-actions { display: flex; flex-wrap: wrap; gap: 20px 27px; align-items: center; margin-top: 30px; }
.curriculum-page .curriculum-hero-photo { position: relative; min-width: 0; padding: 12px 12px 0; border: 1px solid rgb(172 133 69 / 45%); border-radius: 110px 12px 12px 12px; background: #fffdf7; box-shadow: 10px 13px 0 rgb(18 53 91 / 10%), 0 25px 55px rgb(18 53 91 / 12%); }
.curriculum-page .curriculum-hero-photo::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgb(172 133 69 / 28%); border-radius: 105px 7px 7px 7px; pointer-events: none; }
.curriculum-page .curriculum-photo-window { position: relative; overflow: hidden; border-radius: 99px 6px 6px 6px; }
.curriculum-page .curriculum-photo-window img { aspect-ratio: 1.14; width: 100%; height: auto; object-fit: cover; }
.curriculum-page .curriculum-hero-photo figcaption { position: relative; padding: 17px 10px 18px; max-width: calc(100% - 58px); font: italic 18px/1.5 var(--serif); color: var(--navy); }
.curriculum-page .curriculum-photo-seal { position: absolute; right: -20px; bottom: 23px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 95px; height: 95px; border: 4px double var(--gold-light); border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 10px 24px rgb(18 53 91 / 14%); font: 400 29px/1.2 var(--serif); }
.curriculum-page .curriculum-photo-seal small { margin-top: 6px; font: 600 6px/1.5 var(--sans); letter-spacing: .15em; }
.curriculum-page .curriculum-pathways { background: radial-gradient(rgb(172 133 69 / 13%) 1px, transparent 1.4px) 0 0 / 25px 25px, linear-gradient(117deg, #f5f1e6, #e6eeea); }
.curriculum-page .curriculum-pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; }
.curriculum-page .curriculum-pathway { display: flex; flex-direction: column; min-width: 0; padding: 34px 35px 29px; border: 1px solid #bcced4; border-top: 4px solid var(--navy); border-radius: 5px 28px 5px 5px; background: #fffdf9; box-shadow: 7px 9px 0 rgb(18 53 91 / 8%); transition: transform .4s var(--ease), box-shadow .4s; }
.curriculum-page .curriculum-pathway--icep { border-color: #d8c599; border-top-color: var(--gold); background: #fbf5e8; }
.curriculum-page .curriculum-pathway-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.curriculum-page .curriculum-programme-code { font: 400 43px/1 var(--serif); letter-spacing: -.04em; color: var(--navy); }
.curriculum-page .curriculum-pathway-number { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.curriculum-page .curriculum-pathway h3 { font: 400 27px/1.3 var(--serif); max-width: 430px; }
.curriculum-page .curriculum-pathway > p { margin-top: 17px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.curriculum-page .curriculum-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 25px 24px; }
.curriculum-page .curriculum-tags li { padding: 7px 11px; border: 1px solid #d1dddf; border-radius: 100px; background: #f0f4f2; font-size: 9px; font-weight: 600; line-height: 1.6; }
.curriculum-page .curriculum-pathway--icep .curriculum-tags li { border-color: #ded0af; background: #f7edd8; }
.curriculum-page .curriculum-pathway > .text-link { align-self: flex-start; margin-top: auto; }
.curriculum-page .curriculum-tep { background: radial-gradient(ellipse at 0 5%, rgb(193 214 211 / 32%), transparent 32%), linear-gradient(116deg, #faf7ed, #f4f5ed 72%, #e8eeea); }
.curriculum-page .curriculum-detail-layout { display: grid; grid-template-columns: 1fr 1.13fr; gap: clamp(55px, 7vw, 105px); align-items: start; }
.curriculum-page .curriculum-detail-title, .curriculum-page .curriculum-detail-copy { min-width: 0; }
.curriculum-page .curriculum-section-code { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; color: var(--gold); font: 400 57px/1 var(--serif); letter-spacing: -.035em; }
.curriculum-page .curriculum-section-code > span { font: 500 10px/1.5 var(--sans); color: var(--muted); letter-spacing: .06em; }
.curriculum-page .curriculum-detail-title > .eyebrow { font-size: 9px; line-height: 1.7; margin-bottom: 17px; }
.curriculum-page .curriculum-detail h2 { font-size: clamp(37px, 4.3vw, 60px); max-width: 580px; }
.curriculum-page .curriculum-detail-photo { margin-top: 38px; padding: 8px; border: 3px double #c8bd9e; border-radius: 10px 42px 10px 10px; background: var(--white); box-shadow: 7px 9px 0 rgb(172 133 69 / 13%); }
.curriculum-page .curriculum-detail-photo > div { overflow: hidden; border-radius: 4px 35px 4px 4px; }
.curriculum-page .curriculum-detail-photo img { aspect-ratio: 1.65; object-fit: cover; }
.curriculum-page .curriculum-detail-copy { padding-top: 17px; }
.curriculum-page .curriculum-body { font-size: 15px; line-height: 1.95; }
.curriculum-page .curriculum-body + .curriculum-body { margin-top: 23px; }
.curriculum-page .curriculum-focus-box { padding: 26px 28px; margin-block: 30px 21px; border: 1px solid #c9d8d4; border-left: 3px solid var(--gold); border-radius: 4px 20px 4px 4px; background: rgb(255 255 255 / 70%); }
.curriculum-page .curriculum-focus-box h3 { font-size: 17px; margin-bottom: 16px; line-height: 1.5; }
.curriculum-page .curriculum-feature-list li { position: relative; padding-left: 24px; font-size: 12px; line-height: 1.85; }
.curriculum-page .curriculum-feature-list li + li { margin-top: 11px; }
.curriculum-page .curriculum-feature-list li::before { position: absolute; left: 0; top: .7em; content: ''; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.curriculum-page .curriculum-identity { margin-top: 65px; padding-top: 32px; border-top: 1px solid #c8d3ca; }
.curriculum-page .curriculum-identity > .eyebrow { margin-bottom: 22px; }
.curriculum-page .curriculum-identity ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.curriculum-page .curriculum-identity li { min-width: 0; display: flex; align-items: flex-start; gap: 15px; font: 400 21px/1.45 var(--serif); }
.curriculum-page .curriculum-identity li > [aria-hidden] { flex-shrink: 0; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #b8c7c4; border-radius: 50%; font: 600 9px/1 var(--sans); background: #f9f7ee; }
.curriculum-page .curriculum-icep { color: var(--white); background: radial-gradient(ellipse at 84% 8%, rgb(73 122 134 / 45%), transparent 40%), linear-gradient(120deg, #0b2846, #214b63 70%, #102e49); }
.curriculum-page .curriculum-icep > .section-decoration { --deco-color: #e7c890; opacity: .2; top: auto; bottom: 10px; }
.curriculum-page .curriculum-icep .curriculum-section-code { color: var(--gold-light); }
.curriculum-page .curriculum-icep .curriculum-section-code > span, .curriculum-page .curriculum-icep .eyebrow { color: #d2dde5; }
.curriculum-page .curriculum-icep .curriculum-body { color: #e6edf1; }
.curriculum-page .curriculum-icep .curriculum-focus-box { border-color: rgb(231 200 144 / 35%); border-left-color: var(--gold-light); background: rgb(255 255 255 / 6%); }
.curriculum-page .curriculum-icep .curriculum-feature-list li::before { border-color: var(--gold-light); }
.curriculum-page .curriculum-icep .curriculum-detail-photo { box-shadow: 7px 9px 0 rgb(231 200 144 / 16%); }
.curriculum-page .curriculum-guide { background: repeating-linear-gradient(-45deg, transparent 0 24px, rgb(18 53 91 / 3%) 24px 25px), linear-gradient(112deg, #e3ece5, #faf5e8 57%, #e3edef); }
.curriculum-page .curriculum-guide-note { font-size: 13px; color: var(--muted); max-width: 720px; margin-bottom: 35px; }
.curriculum-page .curriculum-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; align-items: start; justify-items: center; max-width: 849px; margin-inline: auto; }
.curriculum-page .curriculum-guide-card { width: 100%; max-width: 849px; min-width: 0; margin-inline: auto; justify-self: center; padding: 12px 12px 0; border: 1px solid #cad4cd; border-radius: 9px 9px 4px 4px; background: #fffdf8; box-shadow: 8px 10px 0 rgb(172 133 69 / 15%), 0 16px 38px rgb(18 53 91 / 8%); }
.curriculum-page .curriculum-guide-card .media-open { width: 100%; margin-inline: auto; }
.curriculum-page .curriculum-guide-card:nth-child(even) { margin-top: 0; }
.curriculum-page .curriculum-guide-card .media-open img { display: block; width: 100%; max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
.curriculum-page .curriculum-guide-card figcaption { display: flex; align-items: flex-start; gap: 16px; padding: 20px 6px; font-size: 12px; line-height: 1.65; }
.curriculum-page .curriculum-guide-index { color: var(--gold); font-size: 10px; white-space: nowrap; margin-top: 2px; }
.curriculum-page .curriculum-enquiry-layout { display: grid; grid-template-columns: 1.4fr .65fr; align-items: center; gap: 75px; padding-block: 25px; }
.curriculum-page .curriculum-enquiry-layout { display: grid; grid-template-columns: 1.4fr .65fr; align-items: center; gap: 75px; padding-block: 25px; }
.curriculum-page .curriculum-enquiry-code { display: block; margin-bottom: 24px; font: 400 48px/1 var(--serif); color: #967338; }
.curriculum-page .curriculum-enquiry h2 { max-width: 680px; font-size: clamp(44px, 5.5vw, 76px); }
.curriculum-page .curriculum-enquiry .curriculum-lead { max-width: 600px; }
.curriculum-page .curriculum-enquiry-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 35px; border: 1px solid #d9c8a4; border-radius: 5px 30px 5px 5px; background: rgb(255 253 245 / 82%); box-shadow: 7px 9px 0 rgb(172 133 69 / 15%); }
.curriculum-page .curriculum-enquiry-actions .button { width: 100%; padding-inline: 20px; gap: 16px; }
.curriculum-page .curriculum-enquiry-actions .text-link { max-width: 100%; }
html[lang='th'] .curriculum-page .curriculum-hero .display-title { font-size: clamp(45px, 5.4vw, 74px); }
html[lang='th'] .curriculum-page .curriculum-pathway h3 { font-size: 24px; line-height: 1.5; }
html[lang='th'] .curriculum-page .curriculum-detail-title .eyebrow { letter-spacing: .02em; }
html[lang='th'] .curriculum-page .curriculum-identity li { font-size: 20px; }
@media (hover: hover) and (pointer: fine) {
  .motion-on .curriculum-page .curriculum-pathway:hover { transform: translateY(-5px); box-shadow: 7px 14px 0 rgb(18 53 91 / 8%); }
}
@media (max-width: 1100px) {
  .curriculum-page .curriculum-hero-layout { gap: 40px; }
  .curriculum-page .curriculum-hero .display-title { font-size: 65px; }
  .curriculum-page .curriculum-detail-layout { gap: 50px; }
  .curriculum-page .curriculum-enquiry-layout { gap: 40px; }
  .curriculum-page .curriculum-enquiry-actions { padding: 25px; }
}
@media (max-width: 900px) {
  .curriculum-page .curriculum-hero-layout { grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 15px 55px; }
  .curriculum-page .curriculum-hero .display-title { font-size: 54px; }
  .curriculum-page .curriculum-lead { font-size: 14px; }
  .curriculum-page .curriculum-hero-photo { border-top-left-radius: 70px; }
  .curriculum-page .curriculum-photo-window { border-top-left-radius: 59px; }
  .curriculum-page .curriculum-hero-photo::before { border-top-left-radius: 65px; }
  .curriculum-page .curriculum-photo-seal { width: 75px; height: 75px; right: -12px; font-size: 23px; }
  .curriculum-page .curriculum-hero-photo figcaption { font-size: 16px; }
  .curriculum-page .curriculum-pathway-grid { gap: 24px; }
  .curriculum-page .curriculum-pathway { padding: 25px; }
  .curriculum-page .curriculum-pathway h3 { font-size: 24px; }
  .curriculum-page .curriculum-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .curriculum-page .curriculum-detail-title { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 35px; align-items: start; }
  .curriculum-page .curriculum-detail-title .curriculum-section-code, .curriculum-page .curriculum-detail-title .eyebrow, .curriculum-page .curriculum-detail-title h2 { grid-column: 1; }
  .curriculum-page .curriculum-detail-title h2 { font-size: 41px; }
  .curriculum-page .curriculum-detail-photo { grid-column: 2; grid-row: 1 / 4; margin-top: 5px; align-self: center; }
  .curriculum-page .curriculum-detail-photo img { aspect-ratio: 1.18; }
  .curriculum-page .curriculum-detail-copy { padding-top: 0; }
  .curriculum-page .curriculum-identity { margin-top: 40px; }
  .curriculum-page .curriculum-identity ul { grid-template-columns: 1fr 1fr; gap: 23px; }
  .curriculum-page .curriculum-guide-grid { gap: 30px; }
  .curriculum-page .curriculum-enquiry-layout { grid-template-columns: 1.3fr .8fr; gap: 30px; }
  .curriculum-page .curriculum-enquiry h2 { font-size: 52px; }
}
@media (max-width: 600px) {
  .curriculum-page .curriculum-breadcrumb { padding-block: 14px; font-size: 10px; }
  .curriculum-page .curriculum-hero-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 12px 40px; }
  .curriculum-page .curriculum-hero .display-title { font-size: clamp(49px, 12vw, 64px); max-width: 420px; }
  html[lang='th'] .curriculum-page .curriculum-hero .display-title { font-size: 44px; }
  .curriculum-page .curriculum-lead { margin-top: 22px; font-size: 14px; }
  .curriculum-page .curriculum-hero-actions { gap: 15px 23px; margin-top: 25px; }
  .curriculum-page .curriculum-hero-actions .button { padding-inline: 22px; font-size: 12px; gap: 17px; }
  .curriculum-page .curriculum-hero-actions .text-link { font-size: 12px; }
  .curriculum-page .curriculum-hero-photo { margin-right: 10px; padding: 9px 9px 0; }
  .curriculum-page .curriculum-photo-window img { aspect-ratio: 1.6; }
  .curriculum-page .curriculum-hero-photo figcaption { padding: 14px 8px; max-width: calc(100% - 45px); }
  .curriculum-page .curriculum-photo-seal { right: -18px; bottom: 13px; }
  .curriculum-page .curriculum-pathway-grid { grid-template-columns: 1fr; gap: 25px; }
  .curriculum-page .curriculum-pathway { padding: 26px 24px 22px; }
  .curriculum-page .curriculum-pathway-top { margin-bottom: 20px; }
  .curriculum-page .curriculum-programme-code { font-size: 40px; }
  .curriculum-page .curriculum-pathway h3 { font-size: 27px; }
  .curriculum-page .curriculum-pathway > p { font-size: 13px; }
  .curriculum-page .curriculum-tags { margin-block: 21px; }
  .curriculum-page .curriculum-detail-title { display: block; }
  .curriculum-page .curriculum-section-code { font-size: 48px; }
  .curriculum-page .curriculum-detail-title > .eyebrow { font-size: 9px; }
  .curriculum-page .curriculum-detail-title h2 { font-size: 40px; }
  .curriculum-page .curriculum-detail-photo { margin-top: 28px; }
  .curriculum-page .curriculum-detail-photo img { aspect-ratio: 1.65; }
  .curriculum-page .curriculum-body { font-size: 14px; line-height: 1.95; }
  .curriculum-page .curriculum-focus-box { margin-block: 26px 17px; padding: 22px; }
  .curriculum-page .curriculum-focus-box h3 { font-size: 16px; }
  .curriculum-page .curriculum-feature-list li { font-size: 12px; }
  .curriculum-page .curriculum-identity { margin-top: 35px; padding-top: 27px; }
  .curriculum-page .curriculum-identity ul { gap: 20px; }
  .curriculum-page .curriculum-identity li { gap: 10px; font-size: 18px; }
  html[lang='th'] .curriculum-page .curriculum-identity li { font-size: 17px; }
  .curriculum-page .curriculum-identity li > [aria-hidden] { width: 23px; height: 23px; margin-top: 2px; }
  .curriculum-page .curriculum-guide-grid { grid-template-columns: 1fr; gap: 28px; }
  .curriculum-page .curriculum-guide-card { padding: 9px 9px 0; }
  .curriculum-page .curriculum-guide-card:nth-child(even) { margin-top: 0; }
  .curriculum-page .curriculum-guide-card figcaption { padding-block: 16px; font-size: 11px; }
  .curriculum-page .curriculum-guide-note { font-size: 12px; margin-bottom: 28px; }
  .curriculum-page .curriculum-enquiry-layout { grid-template-columns: 1fr; gap: 30px; padding-block: 0; }
  .curriculum-page .curriculum-enquiry h2 { font-size: 49px; }
  .curriculum-page .curriculum-enquiry-actions { align-items: stretch; }
  .curriculum-page .curriculum-enquiry-actions .text-link { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-on .curriculum-page .curriculum-pathway:hover { transform: none; }
}
