/* Lanternfield International School: concept build by Marketlube (27 Oct 2026). Fictional brand. */
:root {
  --cream: #FBF4E6;
  --paper: #FFFDF8;
  --ink: #14304D;
  --ink-2: #3A5370;
  --blue: #2B78B8;
  --blue-text: #1F5F96;
  --sky: #8CC4EC;
  --sun: #F4B731;
  --sand: #E9DCC3;
  --terra: #D9643A;
  --line: rgba(20, 48, 77, 0.16);
  --display: "Fredoka", "Figtree", ui-rounded, system-ui, sans-serif;
  --text: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Baloo Bhaijaan 2", "Geeza Pro", "Noto Sans Arabic", sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --r: 28px;
  --head-h: 76px;
  --sec: clamp(56px, 10vw, 136px);
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-b: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-l: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-h2s: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-h2xl: clamp(2.375rem, 1.6rem + 3.6vw, 4.75rem);
  --fs-h2xxl: clamp(2.625rem, 1.6rem + 4.8vw, 6rem);
  --fs-h1: clamp(2.625rem, 1.7rem + 4.2vw, 5.5rem);
}
html { scroll-padding-top: calc(var(--mlc-h) + var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--text); font-size: var(--fs-b); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-text); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.block-sky :focus-visible, .site-foot :focus-visible, .menu :focus-visible { outline-color: var(--ink); }
.site-foot :focus-visible { outline-color: var(--sun); }
.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 { position: absolute; left: 12px; top: calc(var(--mlc-h) + 8px); z-index: 60; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--sec) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.block-sky { background: var(--sky); }
.block-sand { background: var(--sand); }
.block-paper { background: var(--paper); }

/* Type helpers */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(12px, 1.6vw, 18px); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--ink) inset; }
.h2 { font-size: var(--fs-h2); max-width: 18ch; text-wrap: balance; }
.h2-sm { font-size: var(--fs-h2s); }
.h2-xl { font-size: var(--fs-h2xl); max-width: 14ch; }
.h2-xxl { font-size: var(--fs-h2xxl); max-width: 12ch; }
.h3 { font-size: var(--fs-h3); margin-bottom: 14px; text-wrap: balance; }
.h4 { font-size: var(--fs-h4); font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.big-p, .lede { font-size: var(--fs-l); line-height: 1.55; }
.small { font-size: var(--fs-s); color: var(--ink-2); }
.sec-head { margin-bottom: clamp(28px, 5vw, 64px); }
.sec-head-split { display: grid; gap: 20px 48px; align-items: end; }
.sec-intro { max-width: 46ch; font-size: var(--fs-l); line-height: 1.55; }
@media (min-width: 900px) { .sec-head-split { grid-template-columns: 1.25fr 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1F5F96; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0B1E33; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .hero .btn { padding: 0 18px; font-size: 0.9375rem; min-height: 50px; } }
.btn-text { background: none; border: 0; padding: 8px 0; font-weight: 600; color: var(--blue-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.btn-text:hover { color: var(--ink); }
.btn-text[disabled] { color: var(--ink-2); text-decoration: none; cursor: default; }

/* Header */
.site-head { position: sticky; top: var(--mlc-h); z-index: 40; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-words { display: grid; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }
.brand-ar { font-family: var(--arabic); font-weight: 600; font-size: 0.8125rem; line-height: 1.2; text-align: left; margin-top: 3px; color: var(--blue-text); }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: clamp(14px, 1.6vw, 26px); }
.nav a, .portal-link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9688rem; position: relative; padding: 6px 0; }
.nav a::after, .portal-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .portal-link:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.portal-link { display: none; }
.head-actions .btn-sm { display: none; }
.menu-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 600; cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--cream); }
@media (min-width: 560px) { .head-actions .btn-sm { display: inline-flex; } }
@media (min-width: 1200px) {
  .nav { display: block; }
  .head-actions { margin-left: 8px; }
  .portal-link { display: inline-block; }
  .menu-btn { display: none; }
}
@media (max-width: 380px) { .brand-sub { letter-spacing: 0.1em; } .brand-name { font-size: 1.25rem; } }

/* Mobile menu */
.menu { position: fixed; z-index: 39; left: 0; right: 0; top: calc(var(--mlc-h) + var(--head-h)); bottom: 0; background: var(--sky); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-inner { padding: 28px var(--gut) 40px; display: grid; gap: 28px; align-content: start; }
.menu ul { display: grid; gap: 2px; }
.menu li a { display: block; padding: 8px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 7vw, 2.5rem); color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(20, 48, 77, 0.2); }
.menu li a:hover { color: #0B1E33; text-decoration: underline; text-decoration-thickness: 3px; }
.menu .btn { justify-self: start; }
.menu-note { font-size: var(--fs-s); max-width: 34ch; }
body.menu-open { overflow: hidden; }

/* Arch frame */
.arch { margin: 0; overflow: hidden; border-radius: 999px 999px var(--r) var(--r); background: var(--sand); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { font-size: var(--fs-s); font-weight: 600; margin-bottom: 22px; display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.hero-title { font-size: var(--fs-h1); letter-spacing: -0.025em; line-height: 1.02; max-width: 13ch; margin-bottom: 26px; }
.lede { max-width: 40ch; margin-bottom: 32px; color: var(--ink); text-wrap: pretty; }
.hero-photo { aspect-ratio: 4 / 3; border-radius: 48vw 48vw var(--r) var(--r); }
.hero-photo img { object-position: 58% 50%; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .hero-photo { aspect-ratio: 1 / 1.02; border-radius: 999px 999px var(--r) var(--r); }
  .hero-photo img { object-position: 92% 50%; }
}
.facts { background: var(--sun); margin-top: clamp(40px, 6vw, 80px); }
.facts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.facts-row li { padding: 22px 0; display: grid; gap: 4px; border-bottom: 1px solid rgba(20, 48, 77, 0.22); }
.facts-row li:nth-child(odd) { padding-right: 12px; }
.facts-row li:last-child { grid-column: 1 / -1; border-bottom: 0; }
.facts-row strong { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); line-height: 1; letter-spacing: -0.02em; }
.facts-row span { font-size: var(--fs-s); font-weight: 500; }
@media (min-width: 900px) {
  .facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr; }
  .facts-row li { padding: 30px 20px; border-bottom: 0; border-left: 1px solid rgba(20, 48, 77, 0.22); }
  .facts-row li:first-child { border-left: 0; padding-left: 0; }
  .facts-row li:last-child { grid-column: auto; }
}

/* Principal */
.principal-grid { display: grid; gap: 32px 64px; }
.letter { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); font-size: var(--fs-b); line-height: 1.6; position: relative; }
.letter::before { content: ""; position: absolute; left: clamp(26px, 4vw, 48px); top: 0; width: 56px; height: 6px; background: var(--sun); border-radius: 0 0 6px 6px; }
.sign { display: grid; gap: 2px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.sign-name { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.sign-role { font-size: var(--fs-s); color: var(--ink-2); }
@media (min-width: 640px) { .letter { font-size: var(--fs-l); } }
@media (min-width: 960px) { .principal-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Principal: what this page answers (desktop only, the menu does this job on phones) */
.page-index { display: none; }
@media (min-width: 960px) {
  .page-index { display: block; margin-top: 48px; max-width: 440px; }
  .page-index ol { display: grid; border-top: 1px solid var(--line); }
  .page-index a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
  .page-index a::after { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-right: 6px; transition: transform .2s ease; }
  .page-index a:hover { color: var(--blue-text); }
  .page-index a:hover::after { transform: translateX(4px) rotate(45deg); }
  .page-index .pi-n { font-family: var(--display); font-weight: 600; font-size: 0.9375rem; color: var(--blue-text); }
}

/* Curriculum tabs */
.curriculum .kicker::before { background: var(--paper); }
.tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.tab { text-align: left; display: grid; gap: 2px; padding: 14px 18px; border-radius: 20px; border: 2px solid var(--ink); background: transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.tab:hover { background: rgba(255, 253, 248, 0.5); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.1; }
.tab-age { font-size: var(--fs-xs); font-weight: 500; }
@media (max-width: 759px) { .tablist { gap: 8px; } .tab { padding: 10px 14px; border-radius: 16px; min-height: 56px; } .tab-name { font-size: 1.0625rem; } }
@media (min-width: 760px) { .tablist { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.panel { background: var(--paper); border-radius: var(--r); padding: clamp(18px, 3vw, 40px); display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 4px; }
.panel-photo { aspect-ratio: 4 / 3; width: 100%; }
@media (min-width: 640px) { .panel-photo { aspect-ratio: 4 / 5; max-width: 420px; } }
.panel-meta { font-size: var(--fs-s); font-weight: 600; color: var(--blue-text); margin-bottom: 10px; }
.panel-copy > p { max-width: 54ch; }
.looks { margin-top: 22px; margin-bottom: 10px !important; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.points { display: grid; gap: 10px; }
.points li { position: relative; padding: 10px 16px 10px 48px; background: var(--cream); border-radius: 16px; font-weight: 500; }
.points li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 9px 9px 3px 3px; background: var(--sun); }
@media (min-width: 640px) { .panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); } }
.footnote { margin-top: 28px; font-size: var(--fs-s); max-width: 80ch; }

/* Wellbeing */
.well-grid { display: grid; gap: 28px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .well-grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.tiles { display: grid; gap: 14px; }
.tile { border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; }
.tile h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.1; margin: auto 0 12px; max-width: 16ch; }
.tile-n { font-family: var(--display); font-weight: 600; font-size: 1rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); margin-bottom: clamp(14px, 3vw, 28px); }
.tile-sun { background: var(--sun); }
.tile-sky { background: var(--sky); }
.tile-sand { background: var(--sand); }
@media (max-width: 759px) { .tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 16px; align-items: start; } .tile-n { grid-row: span 2; margin: 0; } .tile h3 { margin: 6px 0 4px; } }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tile { min-height: 300px; } }
.inclusion { margin-top: 14px; border-radius: var(--r); border: 2px solid var(--ink); padding: clamp(24px, 4vw, 48px); display: grid; gap: 12px 48px; }
.inclusion p { font-size: var(--fs-l); max-width: 62ch; }
@media (min-width: 900px) { .inclusion { grid-template-columns: 220px 1fr; } }

/* Admissions journey */
.journey { position: relative; }
.now-note { font-weight: 600; font-size: var(--fs-s); display: inline-flex; align-items: flex-start; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 18px; line-height: 1.45; background: var(--cream); margin-bottom: 26px; }
.now-note::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--terra); }
.steps-wrap { position: relative; }
.track { position: absolute; left: 21px; top: 0; bottom: 0; width: 4px; pointer-events: none; }
.track-line, .track-fill { position: absolute; inset: 0; border-radius: 4px; z-index: 0; }
.track-line { background: var(--sand); }
.track-fill { background: var(--blue); transform-origin: top; transform: scaleY(var(--prog, 0)); }
.now-mark { position: absolute; left: 2px; top: var(--pos, 0px); width: 0; height: 0; z-index: 3; }
.now-dot { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--terra); border: 4px solid var(--paper); }
.now-label { position: absolute; left: -14px; top: 18px; white-space: nowrap; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--paper); padding: 2px 6px; border-radius: 6px; display: none; }
.steps { display: grid; gap: 14px; position: relative; z-index: 1; }
.step { position: relative; padding: 22px 22px 24px 66px; border-radius: 22px; background: var(--cream); }
.step-n { position: absolute; left: 6px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); font-family: var(--display); font-weight: 600; z-index: 2; }
.step-when { font-size: var(--fs-s); font-weight: 600; color: var(--blue-text); margin-bottom: 6px; }
.step h3 { font-size: 1.375rem; margin-bottom: 8px; }
.step p:last-child { font-size: var(--fs-s); }
.step.is-past .step-n { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.is-current { background: var(--sun); }
.step.is-current .step-when { color: var(--ink); }
.step.is-next { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (min-width: 900px) {
  .track { left: 0; right: 0; top: 23px; bottom: auto; width: auto; height: 4px; }
  .track-fill { transform-origin: left; transform: scaleX(var(--prog, 0)); }
  .now-mark { left: var(--pos, 0px); top: 2px; }
  .now-label { display: block; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-top: 76px; }
  .step { padding: 28px 20px 24px; }
  .step-n { left: 20px; top: -68px; }
}
.docs { margin-top: 26px; border-radius: 22px; background: var(--cream); }
.docs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; border-radius: 22px; }
.docs summary::-webkit-details-marker { display: none; }
.docs summary:hover { background: var(--sand); }
.docs-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.docs-icon::before, .docs-icon::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 2px; background: var(--paper); transition: transform .2s ease; }
.docs-icon::after { transform: rotate(90deg); }
.docs[open] .docs-icon::after { transform: rotate(0deg); }
.docs ul { padding: 0 24px 24px; display: grid; gap: 8px; }
.docs li { padding-left: 22px; position: relative; }
.docs li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
@media (min-width: 760px) { .docs ul { grid-template-columns: 1fr 1fr; gap: 8px 32px; } }

/* Fees */
.fees-grid { display: grid; gap: 28px 48px; align-items: start; }
@media (min-width: 1040px) { .fees-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table caption { text-align: left; font-size: var(--fs-s); font-weight: 600; padding-bottom: 12px; color: var(--ink-2); }
.fee-table th, .fee-table td { text-align: left; padding: clamp(10px, 1.4vw, 14px) 8px clamp(10px, 1.4vw, 14px) 0; border-bottom: 1px solid var(--line); }
.fee-table thead th { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding-top: 0; }
.fee-table tbody th { font-family: var(--display); font-weight: 500; font-size: 1.1875rem; }
.fee-table td { font-weight: 600; white-space: nowrap; }
.fee-table td:last-child { color: var(--ink-2); font-weight: 500; }
.fee-table tbody tr:hover { background: var(--paper); }
.fee-lists { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 640px) { .fee-lists { grid-template-columns: 1fr 1fr; } }
.ticks li, .dashes li { position: relative; padding: 6px 0 6px 28px; font-size: var(--fs-s); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.dashes li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 2.5px; background: var(--terra); border-radius: 2px; }
.calc { background: var(--sun); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: grid; gap: 20px; position: relative; }
@media (min-width: 1040px) { .calc { position: sticky; top: calc(var(--mlc-h) + var(--head-h) + 20px); } }
.calc-title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend, .field label { display: block; font-size: var(--fs-s); font-weight: 600; margin-bottom: 8px; padding: 0; }
.child-rows { display: grid; gap: 8px; }
.child-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.child-n { font-family: var(--display); font-weight: 600; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--sun); font-size: 0.9375rem; }
.child-x { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; font-weight: 600; font-size: 1.125rem; line-height: 1; }
.child-x:hover { background: var(--ink); color: var(--sun); }
.child-x[hidden] { display: none; }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
}
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314304D' stroke-width='2'/%3E%3C/svg%3E"); background-position: calc(100% - 16px) 50%; background-size: 12px 8px; background-repeat: no-repeat; text-overflow: ellipsis; }
input::placeholder { color: #5C6F86; }
.toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle legend { width: 100%; }
.toggle label { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 600; font-size: var(--fs-s); transition: background-color .2s ease, color .2s ease; }
.toggle input:checked + span { background: var(--ink); color: var(--sun); }
.toggle input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.calc-out { background: var(--paper); border-radius: 20px; padding: 20px 22px; }
.calc-lines { margin: 0 0 14px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-s); }
.calc-lines dt { color: var(--ink-2); }
.calc-lines dd { margin: 0; font-weight: 600; }
.calc-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-top: 14px; border-top: 2px solid var(--ink); margin-bottom: 6px; font-weight: 600; }
.calc-total strong { font-family: var(--display); font-weight: 600; font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.625rem); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-alt { font-size: var(--fs-s); color: var(--ink-2); }
.calc-note { font-size: var(--fs-xs); font-weight: 500; }

/* Inspection slot */
.inspection { padding: 0; }
.inspect-box { background: var(--sand); border-radius: var(--r); padding: clamp(24px, 4vw, 52px); display: grid; gap: 28px 56px; }
.inspect-copy p { max-width: 58ch; margin-top: 14px; }
.inspect-copy .h2 { max-width: none; }
.slots { display: grid; gap: 12px; }
.slots li { border: 2px dashed rgba(20, 48, 77, 0.45); border-radius: 18px; padding: 16px 20px; display: grid; gap: 2px; background: var(--cream); }
.slot-label { font-weight: 600; }
.slot-val { font-size: var(--fs-s); color: var(--ink-2); }
@media (min-width: 960px) { .inspect-box { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* Campus */
.campus-lead { margin: 0 0 14px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; position: relative; background: var(--sand); }
.campus-lead img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .campus-lead { aspect-ratio: 21 / 9; } .campus-lead img { object-position: 50% 62%; } }
.curtain { position: absolute; inset: 0; background: var(--sand); transform-origin: top; display: none; pointer-events: none; }
.morning .curtain { background: var(--cream); }
.motion .curtain { display: block; }
.fac { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fac-photo { grid-column: 1 / -1; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); position: relative; }
.fac-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fac-photo:hover img { transform: scale(1.03); }
.fac-tile { border-radius: var(--r); padding: 18px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; transition: transform .25s ease; }
.fac-tile:hover { transform: translateY(-3px); }
.fac-tile strong { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem); line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.fac-tile span { font-size: var(--fs-s); font-weight: 500; line-height: 1.35; }
.t-sky { background: var(--sky); }
.t-sun { background: var(--sun); }
.t-sand { background: var(--sand); }
.t-paper { background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 960px) {
  .fac { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); }
  .fac-photo { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .fac-p2 { grid-column: 3 / span 2; grid-row: 3 / span 2; }
  .fac-tile { padding: 26px; }
}

/* Morning */
.morning .kicker::before { background: var(--paper); }
.morning-grid { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.morning-photo { aspect-ratio: 4 / 3; }
.morning-photo img { object-position: 50% 50%; }
.map-card { background: var(--cream); border-radius: var(--r); padding: clamp(14px, 2vw, 22px); display: grid; gap: 10px; align-content: center; }
.map { width: 100%; height: auto; border-radius: 18px; display: block; }
.map-note { font-size: var(--fs-xs); color: var(--ink-2); padding: 0 6px; }
@media (min-width: 960px) { .morning-grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; } .morning-photo { aspect-ratio: auto; min-height: 460px; } }
.morning-cols { display: grid; gap: 40px 64px; }
.morning-cols p { max-width: 54ch; }
@media (min-width: 900px) { .morning-cols { grid-template-columns: 1fr 1fr; } }
.zones { display: grid; gap: 8px; margin: 22px 0 16px; }
.zones li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; background: var(--cream); border-radius: 16px; padding: 12px 16px; }
.zone-tag { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 600; }
.zone-tag.zone-c { background: var(--ink); }
.zone-area { font-weight: 600; }
.zone-fee { font-size: var(--fs-s); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.swatches { display: flex; gap: 8px; margin-top: 18px; }
.sw { width: 44px; height: 44px; border-radius: 22px 22px 8px 8px; border: 1px solid var(--line); }
.sw-sky { background: var(--sky); } .sw-navy { background: var(--ink); } .sw-white { background: #fff; } .sw-sun { background: var(--sun); }

/* Events */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .chips { justify-content: flex-end; } }
@media (min-width: 1100px) { .ev-head { grid-template-columns: minmax(0, 1fr) auto; } }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 600; font-size: var(--fs-s); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.ev-list { display: grid; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev[hidden] { display: none; }
.ev-date { width: 56px; border-radius: 14px; overflow: hidden; text-align: center; background: var(--paper); border: 1px solid var(--line); align-self: start; }
.ev-date b { display: block; background: var(--terra); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1; padding: 8px 0 6px; }
.ev-date i { display: block; font-style: normal; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 0 6px; }
.ev-body h3 { font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); margin-bottom: 4px; font-weight: 500; }
.ev-body p { font-size: var(--fs-s); color: var(--ink-2); }
.ev-add { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(20, 48, 77, 0.4); background: transparent; color: var(--ink); font-weight: 600; font-size: var(--fs-s); cursor: pointer; position: relative; transition: background-color .2s ease, color .2s ease; }
.ev-add .ev-add-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev-add::before, .ev-add::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; }
.ev-add::after { transform: rotate(90deg); }
.ev-add:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.ev:hover .ev-body h3 { color: var(--blue-text); }
@media (min-width: 760px) {
  .ev { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 6px 20px; padding: 20px 0; }
  .ev-date { width: 68px; align-self: center; }
  .ev-add { width: auto; height: auto; padding: 10px 18px; border-radius: 999px; }
  .ev-add::before, .ev-add::after { display: none; }
  .ev-add .ev-add-t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (min-width: 1100px) { .ev-list { grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; } .ev:nth-child(-n+2) { border-top: 1px solid var(--line); } }
.ev-empty { padding: 24px 0; font-weight: 500; }

/* Portal */
.portal { border-top: 1px solid var(--line); }
.portal-grid { display: grid; gap: 28px 64px; align-items: center; }
.portal-grid p { max-width: 44ch; margin-top: 12px; }
.portal-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.portal-form .form-note { grid-column: 1 / -1; }
.portal-form .field { min-width: 0; }
.portal-form .btn { justify-self: start; }
.form-note { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
@media (min-width: 900px) { .portal-grid { grid-template-columns: 1fr 1fr; } .portal-form { grid-template-columns: 1fr 1fr; align-items: end; } .portal-form .form-note { grid-column: 1 / -1; } }

/* Tour */
.tour .kicker::before { background: var(--paper); }
.tour-grid { display: grid; gap: 36px 64px; align-items: start; }
.tour-copy .big-p { max-width: 40ch; margin-top: 24px; }
.tour-form { background: var(--paper); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.tour-form .btn { width: 100%; }
.tour-form .form-note { color: var(--ink-2); }
@media (min-width: 640px) { .tour-form { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .tour-grid { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-foot { background: var(--ink); color: #E8EEF5; padding: clamp(56px, 7vw, 96px) 0 32px; }
.site-foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-foot a:hover { color: var(--sun); text-decoration-color: var(--sun); }
.foot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.foot-mark { width: 54px; height: 54px; margin-bottom: 16px; }
.foot-name { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1; color: #fff; margin-bottom: 6px; }
.foot-name span { display: block; font-family: var(--text); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 6px; }
.foot-ar { font-family: var(--arabic); font-weight: 600; font-size: 1.125rem; color: var(--sky); text-align: left; margin-bottom: 14px; }
.foot-tag { font-family: var(--display); font-weight: 500; font-size: 1.375rem; color: var(--sun); }
.foot-h { font-family: var(--text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin: 0 0 14px; }
.foot-col ul { display: grid; gap: 8px; margin-bottom: 24px; }
.foot-col p, .foot-col li { font-size: var(--fs-s); overflow-wrap: anywhere; }
.foot-brand, .foot-col:nth-child(2) { grid-column: 1 / -1; }
@media (min-width: 720px) { .foot-brand, .foot-col:nth-child(2) { grid-column: auto; } }
@media (min-width: 1040px) { .foot-top { grid-template-columns: 1.4fr 1.3fr 0.8fr 0.8fr; } }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 26px; font-size: var(--fs-xs); }
.foot-base p { max-width: 80ch; }
.foot-base a { white-space: nowrap; }

/* Motion: initial states exist only when the head script found motion allowed */
.motion [data-reveal], .motion [data-stagger] > *, .motion [data-hero] { opacity: 0; transform: translateY(24px); }
.motion .hero-title, .motion [data-split] { visibility: hidden; }
.motion .hero-photo img { transform: scale(1.06); }
.motion.no-anim [data-reveal], .motion.no-anim [data-stagger] > *, .motion.no-anim [data-hero] { opacity: 1; transform: none; }
.motion.no-anim .hero-title, .motion.no-anim [data-split] { visibility: visible; }
.motion.no-anim .hero-photo img { transform: none; }
.motion.no-anim .curtain { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Phones: tighter rhythm so a parent scrolls less (c2 review) */
@media (max-width: 639px) {
  .curriculum .sec-intro { display: none; }
  .inclusion p, .well-copy .big-p { font-size: var(--fs-b); }
  .facts-row li { padding: 16px 0; }
  .tile { padding: 20px; }
  .sec-head { margin-bottom: 24px; }
  .morning-photo { aspect-ratio: 3 / 2; }
  .fee-lists { margin-top: 28px; gap: 20px; }
}
