@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&family=Nunito+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #235879;
  --muted: #647781;
  --royal: #1456c4;
  --orange: #e56b15;
  --blue-gradient: linear-gradient(155deg,#1c3bb6 0%,#1456c4 52%,#3e7bdf 100%);
  --orange-soft: #f5a362;
  --yellow: #e6e241;
  --blue: #acd6e9;
  --peach: #ffe2c9;
  --green: #e6e241;
  --line: #dde6eb;
  --container: 2280px;
  --page-gutter: clamp(28px, 4.166667vw, 60px);
  --text-measure: 60ch;
  --radius-panel: 28px;
  --radius-card: 20px;
  --radius-field: 12px;
  --radius-button: 999px;
  --type-section: clamp(36px, 2.8vw, 56px);
  --type-card: clamp(26px, 1.8vw, 32px);
  --header-height: 94px;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 'Nunito Sans', 'Avenir Next', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container, .container-wide { width: min(calc(100% - 2 * var(--page-gutter)), var(--container)); margin-inline: auto; padding-inline: 0; }
.text-container { width: 100%; max-width: var(--text-measure); }
.text-container > p { max-width: var(--text-measure); }
@media (min-width: 1440px) { :root { --page-gutter: calc(1.923077vw + 32.307692px); } }
@media (min-width: 1648px) { :root { --page-gutter: calc(5.882353vw - 32.941176px); } }
@media (min-width: 1920px) { :root { --page-gutter: 4.166667vw; } }
@media (max-width: 760px) { :root { --page-gutter: 20px; } }
.section-pad { padding-block: 80px; }
.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; }
:focus-visible { outline: 3px solid #ffae69; outline-offset: 5px; }

/* Header and shared controls */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-height); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.brand-logo { border-radius: 12px; background: white; display: block; width: 76px; height: 76px; object-fit: contain; }
.brand-wordmark { font-size: 18px; font-weight: 900; letter-spacing: -.6px; line-height: 1.1; }
.brand-wordmark small { display: block; margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a, .header-phone { font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .text-link:hover, .footer-nav a:hover { opacity: .65; }
.header-phone { margin-left: 4px; }
.menu-toggle { display: none; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 20px; padding: 0 25px; background: transparent; border: 1px solid transparent; border-radius: 999px; font-weight: 800; font-size: 14px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .25s ease, background .25s, box-shadow .25s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 9px 24px rgba(26,70,115,.13); }
.button span { transition: transform .25s; }
.button:hover span { transform: translate(2px,-2px); }
.button-small { min-height: 44px; padding-inline: 20px; font-size: 12px; }
.button-primary { background: var(--orange); color: #ffffff; }
.header-cta { color: #ffffff; }
.button-primary:hover { background: #ff8a2e; }
.button-outline { color: white; border-color: rgba(255,255,255,.5); }
.button-outline:hover { background: rgba(255,255,255,.1); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; text-decoration: none; }
.text-link span { font-size: 18px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 21px; font-size: 10px; line-height: 1.4; font-weight: 800; text-transform: uppercase; letter-spacing: 1.8px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #bdd22b; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--serif); font-weight: 400; }
.hero h1, .section-heading h2, .school h2, .about h2, .faq h2, .contact-copy h2 { font-weight: 400; line-height: 1.04; letter-spacing: -2.2px; }
.highlight { position: relative; z-index: 0; white-space: nowrap; }
.highlight::after { content: ''; position: absolute; height: .22em; left: -.01em; right: -.01em; bottom: .01em; border-radius: var(--radius-card); z-index: -1; opacity: .6; }
.highlight-yellow::after { background: #e6e241; }
.highlight-peach::after { background: var(--peach); }
.highlight-orange::after { background: var(--orange-soft); }
.highlight-blue::after { background: var(--blue); }
.section-heading { margin-bottom: 42px; }
.section-heading h2 { font-size: clamp(34px,3.7vw,52px); }
.section-heading > p:not(.eyebrow) { margin: 21px 0 0; color: var(--muted); }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.heading-aside { margin: 0; font-size: 14px; color: var(--muted); }

/* Centered hero, highlighted local address, and children at the bottom. */
.hero { position: relative; height: 90vh; overflow: hidden; border-radius: 0 0 40px 40px; padding: clamp(24px,4vh,40px) 0 0; color: white; background: var(--blue-gradient); }
.hero-content { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-address { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 12px; max-width: 100%; padding: 12px 25px; border-radius: 999px; background: #E6E241; color: #174dbf; font-size: 16px; line-height: 1.3; font-style: normal; font-weight: 700; margin-bottom: clamp(18px,3vh,31px); }
.hero-address svg { width: 22px; height: 22px; flex: none; }
.hero-copy { position: relative; z-index: 2; flex: none; max-width: 840px; margin-inline: auto; }
.hero h1 { font-size: clamp(42px,min(4.5vw,7vh),65px); line-height: 1.03; letter-spacing: -2px; }
.hero-accent { color: #ffba80; }
.hero-lede { max-width: 620px; margin: 24px auto 0; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 13px; margin-top: 27px; }

/* The center's story directly follows the first screen. */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(35px,6vw,90px); }
.about h2 { font-size: clamp(38px,4vw,54px); }
.about-copy > p { max-width: 560px; margin: 20px 0 0; color: var(--muted); }
.about-copy > .about-intro { font-size: 20px; color: var(--ink); }
.about-copy .text-link { margin-top: 28px; color: var(--royal); }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.about-photo figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
@keyframes child-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Goals and programs */
/* School preparation uses the site's blue banner style. */
.school { background: white; }
.school-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 45px; align-items: center; padding: 48px clamp(28px,5.56vw,80px); border-radius: var(--radius-panel); background: var(--blue-gradient); color: white; }
.school h2 { font-size: clamp(38px,4vw,56px); }
.school-copy > p { max-width: 430px; margin: 25px 0 29px; color: rgba(255,255,255,.88); }
.school-visual { display: flex; justify-content: center; align-items: center; height: 430px; }
.school-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.programs .section-heading { max-width: 720px; }
.program-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.program-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 430px; padding: 26px; background: #F5F6F6; border: 1px solid #e4eaf1; border-radius: var(--radius-card); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(31,76,105,.08); }
.program-art { width: 100%; height: 194px; margin-bottom: 22px; }
.program-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.program-card h3 { font-size: 27px; letter-spacing: -.8px; line-height: 1.1; margin: 0 0 12px; }
.program-card p { font-size: 13px; line-height: 1.5; margin: 0 0 20px; color: #5d7584; }
.program-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.program-meta span { padding: 7px 12px; border-radius: 999px; background: #ffffff; font-size: 14px; font-weight: 700; }
.program-link { display: inline-flex; gap: 9px; margin-top: auto; padding-bottom: 3px; border-bottom: 1px solid #b8c9d1; font-size: 12px; font-weight: 800; text-decoration: none; }

/* Experience: ascending columns and the confirmed 12 years. */
.experience { padding-top: 48px; padding-bottom: 80px; }
.experience .eyebrow { margin-bottom: 47px; color: var(--royal); }
.experience-chart { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) minmax(0,2.3fr); align-items: end; gap: 20px; min-height: 560px; padding: 0 0 26px; border-bottom: 2px solid var(--royal); color: var(--royal); }
.experience-bar { display: flex; flex-direction: column; justify-content: space-between; padding: 17px 14px; background: #fff1e4; }
.experience-bar h3 { font: 400 clamp(23px,2.1vw,30px)/1.02 var(--serif); letter-spacing: -1.2px; }
.experience-bar p { margin: 24px 0 0; font-size: 12px; line-height: 1.35; color: var(--ink); }
.bar-one { min-height: 164px; }
.bar-two { min-height: 285px; background: #e9f0fb; }
.bar-three { min-height: 405px; }
.bar-four { min-height: 535px; background: #e9f0fb; }
.experience-years { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding-left: 16px; }
.experience-years h2 { font-size: clamp(32px,3.4vw,51px); line-height: .98; font-weight: 400; text-transform: none; letter-spacing: -1.8px; padding-top: 8px; }
.experience-number { position: relative; font-weight: 900; font-size: clamp(230px,27vw,400px); line-height: .75; letter-spacing: -.095em; margin-top: 50px; margin-left: -14px; }

/* Reference composition: serif heading on the left, four divided rows on the right */
.how { background: #fff; padding-top: 36px; }
.editorial-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.editorial-heading { padding-top: 25px; }
.editorial-heading h2 { font: 400 clamp(37px,4vw,55px)/1.02 var(--serif); letter-spacing: -2.2px; }
.editorial-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.editorial-row { display: block; padding: 29px 0 32px; border-bottom: 1px solid var(--line); }
.editorial-row:hover .editorial-icon svg { transform: rotate(40deg); }
.icon-lime { color: var(--royal); }
.icon-orange { color: #e56b15; }
.editorial-row h3 { font: 400 clamp(26px,2.3vw,33px)/1.02 var(--serif); letter-spacing: -1.1px; }
.editorial-row p { margin: 15px 0 0; font-size: 13px; line-height: 1.45; max-width: 440px; }

/* Center, questions, and form */
/* Free trial invitation */
.trial-banner-section { padding-block: 44px; }
.trial-banner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 45px; align-items: center; padding: 48px 58px; border-radius: var(--radius-panel); background: var(--blue-gradient); color: white; overflow: hidden; }
.trial-banner-copy { position: relative; z-index: 1; }
.trial-banner h2 { font-size: clamp(43px,4.3vw,62px); line-height: 1.02; letter-spacing: -1.8px; }
.trial-banner-copy > p:not(.trial-badge) { max-width: 450px; font-size: 15px; color: rgba(255,255,255,.86); margin: 25px 0 28px; }

.faq { padding-top: 48px; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq h2 { font-size: 47px; }
.faq-heading p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 22px 0; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { font-family: var(--serif); display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-weight: 400; font-size: 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { font-size: 25px; font-weight: 400; transition: transform .3s; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { max-width: 560px; color: var(--muted); font-size: 13px; margin: 15px 35px 0 0; animation: answer-in .3s ease; }
.contact-section { background: white; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: start; padding: 48px clamp(28px,5.56vw,80px); border-radius: var(--radius-panel); background: var(--blue-gradient); color: white; }
.contact-copy h2 { font-size: clamp(39px,4.3vw,59px); }
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.88); max-width: 410px; margin: 25px 0; }
.contact-direct { display: flex; flex-direction: column; width: max-content; gap: 3px; padding-bottom: 6px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.35); text-decoration: none; }
.contact-direct span { font-size: 11px; }
.contact-direct strong { font-size: 21px; font-weight: 800; }
.contact-direct-secondary strong { font-size: 18px; }
.contact-form { display: grid; gap: 20px; padding: 32px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 18px 45px rgba(11,35,105,.18); }
.contact-form h3 { font-size: 29px; line-height: 1.1; margin-bottom: 4px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 14px; font-weight: 700; }
.form-field label > span { color: var(--royal); }
.form-field .optional { font-size: 10px; font-weight: 400; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 15px; background: #F5F6F6; border: 1px solid #d8e1e6; border-radius: var(--radius-field); color: var(--ink); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--royal); outline-offset: 2px; background: white; }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field small { font-size: 12px; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: start; font-size: 12px; line-height: 1.5; color: var(--muted); }
.consent input { accent-color: var(--royal); margin: 2px 0 0; flex: none; }
.policy-unavailable { display: block; }
.form-submit { width: 100%; }
.form-submit:disabled { opacity: .5; cursor: wait; transform: none; }
.form-status { margin: 0; font-size: 12px; color: var(--muted); }

/* Footer composition from the reference */
.site-footer { margin: 22px 22px 0; padding: 87px 0 29px; border-radius: 74px 74px 0 0; background: var(--blue-gradient); color: white; overflow: hidden; }
.site-footer .container { width: min(calc(100% - 2 * var(--page-gutter)), var(--container)); padding-inline: 0; }
.footer-invitation { text-align: center; }
.footer-invitation h2 { max-width: 820px; margin: 0 auto; font-size: clamp(34px,4.1vw,58px); font-weight: 400; letter-spacing: -1.6px; line-height: 1.08; text-transform: none; }
.footer-invitation > p { font-size: 14px; line-height: 1.4; margin: 28px 0; opacity: .85; }
.footer-invitation .button { font-size: 14px; min-height: 52px; }
.footer-contact-details { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 22px 0 28px; }
.footer-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; opacity: .65; }
.footer-contact-details address { font-style: normal; font-size: 14px; }
.footer-contact-details address span { font-size: 12px; opacity: .7; }
.footer-phones { display: flex; flex-direction: column; gap: 7px; }
.footer-phones a { font-size: 17px; font-weight: 700; text-decoration: none; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 35px; align-items: center; border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; }
.footer-bottom > small { font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.6; opacity: .8; }
.footer-brand .brand-logo { width: 55px; height: 55px; background: transparent; }
.footer-brand .brand-wordmark { font-size: 20px; }
.footer-brand .brand-wordmark small { font-size: 8px; }
.footer-nav { display: flex; justify-content: end; flex-wrap: wrap; gap: 17px; }
.footer-nav a { font-size: 14px; text-decoration: none; }

/* Photographs of classes and special events */
.gallery { background: #ffffff; }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.gallery-heading > p { font-size: 14px; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.gallery-filter { padding: 10px 17px; background: white; color: var(--ink); border: 1px solid #ccdbeb; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.gallery-filter[aria-pressed='true'] { color: #ffffff; background: var(--orange); border-color: var(--orange); }
.gallery-controls { display: flex; gap: 8px; }
.gallery-arrow { display: inline-grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid #b6cade; border-radius: 50%; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; flex: none; }
.gallery-arrow:hover:not(:disabled) { background: white; }
.gallery-arrow:disabled { opacity: .3; cursor: default; }
.photo-track { display: flex; gap: 20px; overflow-x: auto; padding: 4px 0 17px; scroll-snap-type: x mandatory; scroll-padding-inline: 1px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--orange) #e2ecf7; }
.gallery-card { position: relative; flex: 0 0 calc((100% - 40px)/3); min-width: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 0; border-radius: 17px; background: white; color: var(--ink); cursor: pointer; scroll-snap-align: start; text-align: left; }
.gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery-card.portrait img { object-position: center 35%; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-caption { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px; background: white; font: 400 20px/1.2 var(--serif); }
.gallery-zoom { font: 18px/1 sans-serif; color: #d76511; }
.gallery-status { margin: 15px 0 0; font-size: 11px; color: var(--muted); }
.photo-dialog { width: min(1100px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 17px; background: #09213e; color: white; }
.photo-dialog::backdrop { background: rgba(4,20,40,.85); backdrop-filter: blur(6px); }
.photo-dialog-inner { padding: 48px 22px 20px; }
.photo-close { position: absolute; right: 12px; top: 8px; width: 38px; height: 38px; border: 0; background: transparent; color: white; font: 30px/1 sans-serif; cursor: pointer; }
.photo-dialog figure { margin: 0; }
.photo-dialog figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: 73dvh; object-fit: contain; margin: 0 auto; border-radius: 5px; }
.photo-dialog figcaption { margin-top: 17px; text-align: center; font: 400 23px/1.2 var(--serif); }
.photo-dialog-controls { display: flex; gap: 25px; align-items: center; justify-content: center; margin-top: 18px; }
.photo-dialog-controls > span { font-size: 12px; }
.photo-dialog .gallery-arrow { color: white; border-color: rgba(255,255,255,.35); }
.photo-dialog .gallery-arrow:hover { background: rgba(255,255,255,.12); }
body.photo-open { overflow: hidden; }
@media (max-width: 1100px) { .gallery-card { flex-basis: calc((100% - 20px)/2); } }
@media (max-width: 760px) {
  .gallery-heading { display: block; }
  .gallery-toolbar { flex-wrap: wrap; gap: 16px; }
  .gallery-controls { margin-left: auto; }
  .gallery-filter { padding: 9px 13px; font-size: 11px; }
  .gallery-card { flex-basis: 85%; }
  .photo-track { gap: 14px; }
  .gallery-caption { font-size: 21px; }
  .photo-dialog-inner { padding: 45px 12px 16px; }
}

/* Motion is enabled only after an observer is available. */
.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .program-card.is-visible:hover { transform: translateY(-5px); }
.motion-ready .experience-chart .experience-bar { clip-path: inset(100% 0 0); transition: clip-path 1.3s cubic-bezier(.22,1,.36,1); }
.motion-ready .experience-chart.is-visible .experience-bar { clip-path: inset(0 0 0); }
.experience-bar:nth-of-type(2) { transition-delay: .1s; }
.experience-bar:nth-of-type(3) { transition-delay: .2s; }
.experience-bar:nth-of-type(4) { transition-delay: .3s; }
@keyframes cap-sway { 0%,100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-6px); } }
@keyframes family-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .main-nav { gap: 16px; }
  .brand-wordmark { font-size: 15px; }
  .brand-logo { width: 65px; height: 65px; }
  .header-phone { display: none; }
  .editorial-layout { gap: 55px; }
  .experience-chart { gap: 13px; padding-left: 0; min-height: 505px; }
  .experience-bar { padding: 15px 11px; }
  .experience-bar p { font-size: 11px; }
  .bar-four { min-height: 480px; }
  .experience-years { padding-left: 6px; }
  .experience-number { font-size: 26vw; }
  .experience-years h2 { font-size: 3.8vw; }
  .footer-bottom { gap: 20px; }
  .footer-nav { gap: 10px; }
}
@media (max-width: 900px) {
  .experience-chart { grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: 0; min-height: 0; }
  .experience-years { grid-column: 1/-1; grid-row: 1; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 40px 35px 0; }
  .experience-years h2 { font-size: 38px; }
  .experience-number { font-size: 180px; margin: 0; }
  .bar-four { min-height: 385px; }
  .bar-three { min-height: 320px; }
  .bar-two { min-height: 255px; }
  .bar-one { min-height: 190px; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-brand { justify-self: end; }
  .footer-nav { grid-column: 1/-1; justify-content: center; }
}
@media (max-width: 760px) {
  :root { --header-height: 78px; }

  .section-pad { padding-block: 56px; }
  .header-inner { gap: 12px; }
  .brand-logo { width: 61px; height: 61px; }
  .brand-wordmark { font-size: 15px; }
  .brand-wordmark small { font-size: 7px; letter-spacing: 1px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { width: 15px; height: 1px; background: var(--ink); }
  .main-nav { display: none; position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; padding: 16px 20px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 30px rgba(18,65,91,.08); }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 12px 0; font-size: 15px; }
  .header-cta { min-height: 39px; padding-inline: 15px; font-size: 11px; }
  .hero { padding: 28px 0 0; border-radius: 0 0 28px 28px; }
  .hero h1 { font-size: clamp(38px,8.9vw,58px); letter-spacing: -1.4px; }
  .hero-lede { font-size: 17px; }
  .hero-actions { gap: 10px; }
  .hero-address { font-size: 16px; padding: 10px 15px; gap: 8px; margin-bottom: 27px; }
  .hero-address svg { width: 18px; height: 18px; }
  .hero-actions .button { padding-inline: 20px; font-size: 14px; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about h2 { font-size: 40px; }
  .about-copy > .about-intro { font-size: 18px; }
  .about-photo img { border-radius: var(--radius-card); }
  .trial-banner { grid-template-columns: 1fr; gap: 24px; padding: 31px 25px 20px; border-radius: var(--radius-panel); }
  .trial-banner h2 { font-size: 44px; }
  .program-art { height: 184px; }
  .section-heading h2 { font-size: 37px; letter-spacing: -1.5px; }
  .heading-row { display: block; }
  .heading-aside { margin-top: 20px; }
  .school-panel { grid-template-columns: 1fr; gap: 28px; }
  .school h2 { font-size: 42px; }
  .school-panel, .contact-layout { padding: 30px 24px; border-radius: var(--radius-panel); }
  .school-visual { height: 300px; }
  .program-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .program-card { min-height: 420px; padding: 22px; border-radius: var(--radius-card); }
  .program-card h3 { font-size: 21px; }
  .program-card p { font-size: 12px; }
  .program-meta span { padding-inline: 10px; }
  .experience .eyebrow { margin-bottom: 30px; }
  .experience-chart { padding-left: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .experience-years { padding: 0 20px 35px 0; }
  .experience-years h2 { font-size: 32px; }
  .experience-number { font-size: 155px; }
  .experience-bar { padding: 19px 17px; min-height: 210px; }
  .experience-bar h3 { font-size: 29px; }
  .experience-bar p { font-size: 12px; }
  .bar-two, .bar-four { min-height: 250px; }
  .editorial-layout { grid-template-columns: 1fr; gap: 32px; }
  .editorial-heading { padding-top: 0; }
  .editorial-heading h2 { font-size: 43px; letter-spacing: -1.8px; }
  .editorial-row { padding: 26px 0; }
  .editorial-row h3 { font-size: 29px; }
  .editorial-row p { font-size: 13px; }
  .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 35px; }
  .faq h2 { font-size: 40px; }
  .contact-copy h2 { font-size: 44px; }
  .contact-form { padding: 25px; }
  .site-footer { margin: 12px 10px 0; padding-top: 61px; border-radius: 42px 42px 0 0; }
  .footer-invitation h2 { font-size: 34px; letter-spacing: -1px; }
  .footer-invitation > p { font-size: 13px; }
  .footer-invitation .button { font-size: 14px; min-height: 52px; }
  .footer-contact-details { flex-direction: column; align-items: start; gap: 21px; }
  .footer-phones a { font-size: 17px; }
  .footer-bottom { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; }
  .footer-brand { order: -1; }
  .footer-bottom > small { margin-left: auto; }
  .footer-nav { width: 100%; justify-content: start; gap: 20px; }
  .footer-brand .brand-wordmark { font-size: 17px; }
  .footer-brand .brand-logo { width: 48px; height: 48px; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 420px; padding: 26px; }
  .program-card h3 { font-size: 25px; }
  .program-card p { font-size: 14px; }
  .experience-years h2 { font-size: 27px; }
  .experience-number { font-size: 137px; }
  .experience-bar h3 { font-size: 27px; }
  .experience-bar p { font-size: 11px; }
  .footer-invitation h2 { font-size: 29px; }
  .footer-bottom > small { width: 100%; margin-left: 0; }
}
/* Short viewports need room for wrapped text and the trial buttons. */
@media (max-height: 600px) {
  .hero { height: auto; min-height: 90vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .motion-ready .experience-chart .experience-bar { clip-path: none; }
}

/* Additional pages share the landing page's type, palette and spacing. */
.main-nav a[aria-current='page'] { color: var(--royal); text-decoration: underline; text-underline-offset: 6px; }
.page-hero { background: var(--blue-gradient); color: white; border-radius: 0 0 48px 48px; text-align: center; padding: 65px 0; }
.page-hero h1 { font-size: clamp(42px,5vw,68px); line-height: 1.06; letter-spacing: -2px; }
.page-hero p { margin: 22px auto 0; font-size: 17px; color: rgba(255,255,255,.88); }
.page-hero .page-eyebrow { display: inline-block; margin: 0 0 25px; padding: 9px 18px; border-radius: 999px; color: #174dbf; background: var(--yellow); font-size: 14px; font-weight: 700; }
.team-page-hero { padding-top: 30px; }
.team-intro { display: flex; justify-content: space-between; align-items: start; gap: 40px; margin-bottom: 35px; }
.team-intro h2, .team-callout h2, .reviews h2, .visit-panel h2 { font-size: clamp(34px,3.5vw,48px); line-height: 1.08; letter-spacing: -1.5px; }
.team-intro > p { max-width: 540px; margin: 0; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.team-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 27px 27px 0; border-radius: var(--radius-card); background: #F5F6F6; border: 1px solid var(--line); }
.team-tag { align-self: start; padding: 7px 12px; border-radius: 999px; background: #e1ebfb; color: var(--royal); font-size: 13px; font-weight: 700; margin-bottom: 24px; }
.team-card h3 { font-size: 30px; line-height: 1.08; letter-spacing: -.8px; }
.team-card > p { margin: 18px 0; font-size: 14px; color: var(--muted); }
.team-card img { width: 100%; height: 280px; margin-top: auto; object-fit: contain; object-position: bottom; }
.team-card-link { position: relative; align-self: start; margin: 17px 0 24px; padding: 10px 15px; background: white; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 800; }
.team-card-link span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 8px; background: var(--royal); color: white; border-radius: 50%; }
.team-callout { margin-top: 55px; padding: 40px; text-align: center; background: var(--blue-gradient); color: white; border-radius: var(--radius-panel); }
.team-callout p { margin: 20px auto 25px; max-width: 620px; color: rgba(255,255,255,.88); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { padding: 35px; border-radius: var(--radius-card); background: #F5F6F6; border: 1px solid var(--line); }
.info-symbol { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 23px; border-radius: 50%; background: var(--yellow); color: var(--royal); font-size: 28px; }
.info-card h2 { font-size: 34px; line-height: 1.1; margin-bottom: 24px; }
.page-phone { display: block; width: fit-content; margin: 12px 0; font-size: clamp(19px,2vw,27px); font-weight: 800; text-decoration: none; }
.info-card address { font-size: 19px; font-style: normal; }
.info-card p { color: var(--muted); margin: 20px 0; }
.visit-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; margin-top: 55px; }
.visit-panel p { color: var(--muted); }
.visit-panel img { width: 100%; height: auto; border-radius: var(--radius-card); }
.visit-panel .button { margin-top: 12px; }
.compact-footer { padding-top: 40px; }
.reviews-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; align-items: start; }
.reviews-heading p { color: var(--muted); max-width: 310px; margin-top: 23px; }
.reviews-empty { padding: 32px 40px 38px; border-radius: var(--radius-card); background: #F5F6F6; }
.review-quote { display: block; height: 62px; color: var(--orange); font: 100px/1 var(--serif); }
.reviews-empty h3 { font-size: 30px; line-height: 1.12; margin-top: 20px; }
.reviews-empty p { max-width: 480px; color: var(--muted); margin: 20px 0 25px; }
@media (min-width: 761px) and (max-width: 1250px) {
  .header-phone { display: none; }
  .main-nav { gap: 16px; }
}
@media (max-width: 900px) {
  .team-card { padding: 22px 22px 0; }
  .team-card h3 { font-size: 26px; }
  .team-card img { height: 220px; }
  .team-card-link { font-size: 11px; padding: 8px 10px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 45px 0; border-radius: 0 0 28px 28px; }
  .page-hero h1 { font-size: 40px; letter-spacing: -1.2px; }
  .page-hero p { font-size: 15px; }
  .team-page-hero { padding-top: 20px; }
  .team-intro { display: block; }
  .team-intro > p { margin-top: 20px; }
  .team-grid, .contact-cards, .visit-panel, .reviews-layout { grid-template-columns: 1fr; gap: 25px; }
  .team-card { padding: 25px 25px 0; }
  .team-card h3 { font-size: 30px; }
  .team-card img { height: 290px; }
  .team-card-link { font-size: 13px; }
  .team-callout { padding: 30px 24px; margin-top: 35px; }
  .info-card { padding: 28px; }
  .visit-panel { margin-top: 35px; }
  .reviews-empty { padding: 28px; }
}
/* Gentle, brief entrance and interaction motion; no scroll-linked effects. */
.motion-ready .reveal { transform: translateY(14px); transition-duration: .55s; }
.motion-ready .reveal.is-visible { transform: translateY(0); }
.motion-ready .team-card:nth-child(2), .motion-ready .contact-cards .info-card:nth-child(2) { transition-delay: .06s; }
.motion-ready .team-card:nth-child(3) { transition-delay: .12s; }
.team-card-link, .page-phone { transition: transform .2s ease; }
.team-card-link:hover, .page-phone:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal { opacity: 1; transform: none; }
}

/* Temporary staff cards clearly distinguish confirmed and sample content. */
.team-demo, .team-real { display: block; margin: -10px 0 18px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.team-demo { color: #984109; }
.team-real { color: var(--royal); }
.team-avatar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 220px; margin-top: auto; border-radius: 110px 110px 20px 20px; background: #e1ebfb; color: var(--royal); }
.team-avatar > span { display: grid; place-items: center; width: 130px; height: 130px; border-radius: 50%; background: #fff; font: 52px/1 var(--serif); }
.team-avatar small { font-size: 12px; }
.avatar-director { background: var(--blue-gradient); color: white; }
.avatar-director > span { background: var(--yellow); color: #174dbf; }
@media (max-width: 1100px) and (min-width: 761px) { .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }

/* Art direction: real moments, shared grid, and controlled line lengths. */
.hero { border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
.hero-gallery { display: grid; grid-template-columns: .85fr 1.3fr .85fr; flex: 1; min-height: 0; width: 100%; max-width: 1360px; gap: 20px; margin: 26px auto 28px; }
.hero-gallery figure { margin: 0; height: 100%; min-height: 0; overflow: hidden; border-radius: var(--radius-card); }
.hero-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-gallery-main img { object-position: center 45%; }
.school-panel, .contact-layout { padding: clamp(28px,3.5vw,64px); gap: clamp(30px,4vw,80px); }
.school-visual { height: 430px; }
.school-visual img { object-fit: contain; object-position: center; }
.trial-banner { padding: 0; gap: 0; grid-template-columns: 1fr 1fr; border-radius: var(--radius-panel); }
.trial-banner-copy { padding: clamp(28px,3.5vw,64px); max-width: none; }
.trial-banner-copy > p { max-width: var(--text-measure); }
.trial-banner-photo { height: 450px; }
.trial-banner-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.site-footer { margin: 0; border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
.team-photo-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin: 0 auto 40px; max-width: 1440px; height: 340px; }
.team-photo-strip img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius-card); }
.team-photo-strip img:first-child { object-position: center 55%; }
.editorial-layout, .faq-layout, .reviews-layout { grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(35px,5vw,100px); }
.editorial-row p, .faq-item p, .team-intro > p, .visit-panel p, .info-card p, .reviews-empty p { max-width: var(--text-measure); font-size: 16px; line-height: 1.6; }
.about-layout { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
.about-photo img { max-height: 640px; object-fit: cover; }
.about-copy > p { max-width: var(--text-measure); }
.program-card p, .team-card p { max-width: 46ch; font-size: 15px; line-height: 1.55; }
.program-card { padding: 28px; }
.program-art { height: 160px; margin-bottom: 24px; }
.section-heading h2, .about h2, .school h2, .editorial-heading h2, .trial-banner h2, .faq h2, .contact-copy h2, .footer-invitation h2, .reviews h2, .team-intro h2, .team-callout h2, .visit-panel h2 { font: 400 var(--type-section)/1.1 var(--serif); letter-spacing: -.04em; }
.program-card h3, .team-card h3, .editorial-row h3, .reviews-empty h3, .contact-form h3, .info-card h2 { font: 400 var(--type-card)/1.12 var(--serif); letter-spacing: -.025em; }
.button { border-radius: var(--radius-button); font-size: 14px; gap: 12px; }
.button-small { font-size: 13px; }
.button:hover { transform: translateY(-2px); box-shadow: none; }
.info-card, .reviews-empty, .team-card, .program-card, .contact-form { border-radius: var(--radius-card); }
.contact-form { box-shadow: none; }
.page-hero { border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
.experience-bar { border-radius: var(--radius-field) var(--radius-field) 0 0; }
@media (min-width: 1800px) { .program-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; } }
@media (max-width: 760px) {
  .hero-gallery { grid-template-columns: 1fr; gap: 0; margin: 22px auto 20px; }
  .hero-gallery figure:not(.hero-gallery-main) { display: none; }
  .hero-gallery-main img { object-position: center 40%; }
  .about-layout, .editorial-layout, .faq-layout, .reviews-layout { grid-template-columns: 1fr; gap: 30px; }
  .school-panel, .contact-layout { padding: 28px 24px; gap: 28px; }
  .school-visual { height: 300px; }
  .trial-banner { grid-template-columns: 1fr; }
  .trial-banner-copy { padding: 30px 24px; }
  .trial-banner-photo { height: 320px; }
  .team-photo-strip { grid-template-columns: 1fr; height: 260px; margin-bottom: 30px; }
  .team-photo-strip img:last-child { display: none; }
  .program-art { height: 145px; }
  .program-card { padding: 24px; }
  .program-card h3 { font-size: 25px; }
  .program-card p { font-size: 14px; }
  .about-photo img { max-height: none; }
}
@media (max-height: 600px) { .hero-gallery { flex: none; height: 240px; } }
/* Shared hero typography. */
.school-copy { position: relative; z-index: 1; max-width: 620px; }
.hero h1, .page-hero h1 { font: 400 clamp(42px,4.5vw,68px)/1.06 var(--serif); letter-spacing: -.04em; }
@media (max-width: 760px) {
  .hero h1, .page-hero h1 { font-size: clamp(36px,8.5vw,48px); }
}

/* Restored illustrations, using the existing spacing and design tokens. */
.editorial-row { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 28px; }
.editorial-icon { display: block; width: 38px; height: 38px; margin-top: 2px; }
.editorial-icon svg { display: block; width: 100%; height: 100%; transition: transform .5s ease; }
.footer-illustration { display: block; width: min(100%,360px); height: auto; margin: 40px auto 36px; animation: family-drift 7s ease-in-out infinite; }
@media (max-width: 760px) {
  .editorial-row { grid-template-columns: 32px minmax(0,1fr); gap: 18px; }
  .editorial-icon { width: 30px; height: 30px; }
  .footer-illustration { width: min(100%,280px); margin: 30px auto; }
}
@media (prefers-reduced-motion: reduce) { .footer-illustration { animation: none; } }

/* The header floats over the first screen, then gains a readable surface. */
.overlay-header { position: fixed; inset: 0 0 auto; background: transparent; color: white; border-bottom-color: transparent; backdrop-filter: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.overlay-header.is-scrolled, .overlay-header.menu-open { background: rgba(255,255,255,.97); color: var(--ink); border-bottom-color: var(--line); backdrop-filter: blur(14px); }
.overlay-header:not(.is-scrolled):not(.menu-open) .main-nav a[aria-current='page'] { color: white; }
.overlay-header:not(.is-scrolled):not(.menu-open) .menu-toggle { border-color: rgba(255,255,255,.45); }
.overlay-header:not(.is-scrolled):not(.menu-open) .menu-toggle > span:not(.sr-only) { background: white; }
.main-nav.is-open { color: var(--ink); }
.hero { padding-top: calc(var(--header-height) + clamp(24px,4vh,40px)); }
.page-hero { padding-top: calc(var(--header-height) + 55px); }
.team-page-hero { padding-top: calc(var(--header-height) + 30px); }

/* One native button covers the whole card and supports keyboard activation. */
.program-art { height: 240px; }
.program-link { position: static; width: fit-content; padding: 0 0 3px; background: transparent; color: inherit; border: 0; border-bottom: 1px solid #b8c9d1; text-align: left; cursor: pointer; }
.program-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-card); }
.program-link:focus-visible { outline: none; }
.program-link:focus-visible::after { outline: 3px solid var(--royal); outline-offset: -5px; }
.program-card { cursor: pointer; }
.program-dialog { width: min(900px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 42px; overflow: auto; border: 0; border-radius: var(--radius-panel); color: var(--ink); background: white; }
.program-dialog::backdrop { background: rgba(8,24,53,.65); backdrop-filter: blur(4px); }
.program-dialog[open] { animation: program-in .2s ease; }
.program-dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 27px; line-height: 1; cursor: pointer; }
.program-dialog-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; }
.program-dialog-art { padding: 20px; background: #F5F6F6; border-radius: var(--radius-card); }
.program-dialog-art img { display: block; width: 100%; height: 300px; object-fit: contain; }
.program-dialog-copy h2 { font: 400 clamp(30px,3vw,42px)/1.1 var(--serif); letter-spacing: -.025em; }
.program-dialog-copy > p { line-height: 1.55; }
.program-dialog-facts { display: grid; gap: 16px; margin: 24px 0; }
.program-dialog-facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.program-dialog-facts dt { margin-bottom: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.program-dialog-facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
.program-dialog-note { font-size: 13px; color: var(--muted); }
.program-dialog-copy .button { margin-top: 10px; }
body.program-open { overflow: hidden; }
@keyframes program-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Small educational motifs complement the existing child illustration. */
.school-visual { position: relative; }
.school-visual > img { width: 82%; height: 100%; }
.school-letters, .school-numbers { position: absolute; z-index: 1; display: inline-block; padding: 10px 15px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-field); font-weight: 800; letter-spacing: .1em; font-size: 23px; line-height: 1; }
.school-letters { top: 8%; left: 1%; color: white; transform: rotate(-9deg); }
.school-numbers { bottom: 10%; right: 0; color: var(--yellow); transform: rotate(8deg); }
.school-brush { position: absolute; left: 0; bottom: 8%; width: 66px; height: 132px; }
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--header-height) + 24px); }
  .page-hero { padding-top: calc(var(--header-height) + 35px); }
  .team-page-hero { padding-top: calc(var(--header-height) + 20px); }
  .program-art { height: 200px; }
  .program-dialog { padding: 50px 24px 28px; }
  .program-dialog-layout { grid-template-columns: 1fr; gap: 24px; }
  .program-dialog-art { padding: 10px; }
  .program-dialog-art img { height: 180px; }
  .program-dialog-copy .button { width: 100%; }
  .school-letters, .school-numbers { font-size: 18px; padding: 8px 10px; }
  .school-brush { width: 48px; height: 100px; }
}
@media (max-width: 420px) { .program-art { height: 250px; } }

/* A balanced educational still life around the footer's existing character. */
.footer-art-stage { position: relative; isolation: isolate; width: min(100%,1000px); height: 380px; margin: 40px auto 36px; }
.footer-art-stage .footer-illustration { position: relative; z-index: 1; width: 360px; height: 100%; margin: 0 auto; object-fit: contain; }
.footer-alphabet { position: absolute; left: 4%; top: 12%; display: flex; gap: 8px; transform: rotate(-9deg); }
.footer-alphabet button { display: grid; place-items: center; width: 64px; height: 74px; border-radius: var(--radius-field); background: #fff2df; color: var(--royal); font: 38px/1 var(--serif); }
.footer-alphabet button:nth-child(2) { background: var(--orange-soft); color: #12213b; transform: translateY(12px) rotate(8deg); }
.footer-alphabet button:nth-child(3) { background: var(--yellow); transform: rotate(7deg); }
.footer-brushes { position: absolute; left: 12%; bottom: 2%; width: 125px; height: 180px; transform: rotate(-8deg); }
.footer-times-table { position: absolute; right: 6%; top: 8%; display: grid; gap: 7px; width: 155px; padding: 15px 20px 20px; border-radius: var(--radius-field); background: #fff2df; color: var(--royal); font: 20px/1.2 var(--serif); transform: rotate(9deg); }
.times-table-title { font-size: 35px; color: var(--orange); border-bottom: 1px solid #e5d9ca; padding-bottom: 4px; }
.footer-pencil { position: absolute; right: 9%; bottom: 10%; width: 165px; height: 65px; transform: rotate(-17deg); }
@media (max-width: 900px) {
  .footer-alphabet { left: 0; }
  .footer-alphabet button { width: 47px; height: 57px; font-size: 29px; }
  .footer-times-table { right: 0; width: 130px; padding: 12px 16px 16px; font-size: 17px; }
  .footer-brushes { left: 4%; width: 95px; height: 150px; }
  .footer-pencil { right: 1%; width: 125px; }
}
@media (max-width: 760px) {
  .footer-art-stage { height: 330px; margin: 30px auto; }
  .footer-art-stage .footer-illustration { width: 230px; height: 250px; top: 80px; }
  .footer-alphabet { top: 0; left: 2%; gap: 4px; }
  .footer-alphabet button { width: 30px; height: 38px; font-size: 22px; }
  .footer-times-table { top: 0; right: 2%; width: 98px; padding: 8px 10px 12px; gap: 4px; font-size: 13px; }
  .times-table-title { font-size: 23px; }
  .footer-brushes { left: 1%; bottom: 25%; width: 48px; height: 95px; }
  .footer-pencil { right: 0; bottom: 7%; width: 70px; height: 35px; }
}

/* The footer decorations become a small, keyboard-accessible learning game. */
.footer-alphabet { z-index: 3; }
.footer-alphabet button { border: 0; padding: 0; cursor: grab; touch-action: none; user-select: none; }
.footer-alphabet button[aria-pressed='true'] { outline: 3px solid white; outline-offset: 5px; }
.footer-alphabet button.is-dragging { opacity: .35; }
.footer-times-table { z-index: 3; width: 220px; gap: 10px; padding: 16px 20px; transform: rotate(5deg); text-align: left; }
.math-row { display: grid; grid-template-columns: 1fr 42px 18px; align-items: center; gap: 4px; font: 19px/1.3 var(--serif); }
.math-row input { min-width: 0; width: 42px; min-height: 34px; padding: 2px; border: 0; border-bottom: 2px solid #8ba6cc; border-radius: 0; background: transparent; color: var(--royal); font: italic 24px/1 var(--serif); text-align: center; }
.math-mark { font: 700 20px/1 system-ui,sans-serif; }
.math-row.is-correct .math-mark { color: #177840; }
.math-row.is-wrong .math-mark { color: #b83228; }
.math-row.is-correct input { border-color: #177840; }
.math-row.is-wrong input { border-color: #b83228; }
.math-check, .math-reset { min-height: 32px; border-radius: 999px; padding: 5px 10px; font: 700 12px/1.3 'Nunito Sans',system-ui,sans-serif; cursor: pointer; }
.math-check { border: 0; background: var(--royal); color: white; }
.math-reset { border: 1px solid #c5d2e4; background: transparent; color: var(--royal); }
.footer-pencil-tool { position: absolute; z-index: 4; right: 9%; bottom: 0; width: 170px; padding: 0; border: 0; background: transparent; color: white; cursor: grab; touch-action: none; user-select: none; }
.footer-pencil-tool .footer-pencil { position: static; display: block; width: 100%; height: 65px; }
.footer-pencil-tool > span { display: block; font-size: 12px; margin-top: 5px; }
.footer-pencil-tool[aria-pressed='true'] { color: var(--yellow); }
.footer-pencil-tool.is-dragging { opacity: .35; }
.footer-game-hint, .footer-game-status { max-width: 60ch; margin: 10px auto 20px; font-size: 14px; line-height: 1.5; }
.footer-game-status { min-height: 1.5em; font-weight: 800; }
.footer-drag-ghost { position: fixed; z-index: 100; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 12px; background: #fff2df; color: var(--royal); font: 38px/1 var(--serif); pointer-events: none; opacity: .95; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.footer-drag-ghost:has(svg) { background: transparent; box-shadow: none; }
.footer-drag-ghost svg { position: static; width: 100%; height: 100%; transform: none; }
.footer-drag-ghost > span { display: none; }
@media (max-width: 900px) {
  .footer-art-stage .footer-illustration { width: 280px; }
  .footer-times-table { right: 0; width: 190px; padding: 14px; }
  .footer-pencil-tool { right: 1%; width: 130px; }
  .math-row { font-size: 17px; }
}
@media (max-width: 760px) {
  .footer-art-stage { height: 650px; }
  .footer-art-stage .footer-illustration { width: 230px; height: 250px; top: 65px; }
  .footer-alphabet button { width: 44px; height: 48px; font-size: 26px; }
  .footer-alphabet { top: 4px; left: 2%; gap: 7px; }
  .footer-times-table { top: 345px; right: auto; left: 50%; transform: translateX(-50%) rotate(3deg); width: 230px; padding: 18px; gap: 10px; }
  .times-table-title { font-size: 30px; }
  .math-row { font-size: 20px; }
  .math-row input { min-height: 36px; }
  .footer-pencil-tool { top: 275px; bottom: auto; right: 0; width: 100px; }
  .footer-pencil-tool .footer-pencil { height: 45px; }
  .footer-brushes { top: 155px; bottom: auto; }
  .footer-game-hint, .footer-game-status { font-size: 13px; }
}

/* Drawing covers the invitation, while controls remain above the ink layer. */
.footer-invitation { position: relative; isolation: isolate; }
.footer-drawing-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.drawing-active .footer-drawing-canvas { pointer-events: auto; touch-action: none; cursor: none; }
.footer-invitation > .button { position: relative; z-index: 5; }
.footer-art-stage { isolation: auto; pointer-events: none; }
.footer-alphabet, .footer-times-table, .footer-pencil-tool, .footer-brush-tool { z-index: 5; pointer-events: auto; }
.footer-brush-tool { position: absolute; left: 12%; bottom: 2%; width: 125px; padding: 0; border: 0; background: transparent; color: white; cursor: grab; touch-action: none; user-select: none; }
.footer-brush-tool .footer-brushes { position: static; display: block; width: 100%; height: 180px; }
.footer-brush-tool > span { display: block; margin-top: 5px; font-size: 12px; }
.footer-brush-tool[aria-pressed='true'] { color: var(--yellow); }
.footer-brush-tool.is-dragging { opacity: .35; }
.footer-pencil-tool { right: 5%; bottom: -38px; }
.footer-drawing-controls { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 30px auto 20px; }
.footer-drawing-controls > button { min-height: 38px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: white; font-size: 13px; cursor: pointer; }
.footer-drawing-controls > button:hover { background: rgba(255,255,255,.18); }
.drawing-colors { display: flex; gap: 9px; padding: 6px 10px; }
.drawing-colors button { width: 28px; height: 28px; padding: 0; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; }
.drawing-colors button[aria-pressed='true'] { outline: 2px solid white; outline-offset: 3px; }
.footer-tool-cursor { position: fixed; z-index: 100; width: 70px; height: 70px; transform: translate(-12px,-54px) rotate(-25deg); pointer-events: none; }
.footer-tool-cursor[hidden] { display: none; }
.footer-tool-cursor svg { display: block; width: 100%; height: 100%; }
.footer-tool-cursor[data-tool='brush'] { width: 46px; height: 86px; transform: translate(-23px,-14px) rotate(180deg); }
@media (max-width: 900px) { .footer-brush-tool { left: 4%; width: 95px; } .footer-brush-tool .footer-brushes { height: 150px; } }
@media (max-width: 760px) {
  .footer-brush-tool { left: 1%; top: 155px; bottom: auto; width: 55px; }
  .footer-brush-tool .footer-brushes { height: 100px; }
  .footer-pencil-tool { top: 275px; bottom: auto; right: 0; }
  .footer-drawing-controls { gap: 8px; }
  .footer-drawing-controls > button { font-size: 12px; }
}
.footer-tool-cursor[data-tool='pencil'] { width: 90px; height: 34px; transform: translate(-85px,-11px); }
.footer-tool-cursor[data-tool='brush'] { width: 46px; height: 86px; transform: translate(-1px,-5px); }
.footer-invitation > .footer-game-hint, .footer-invitation > .footer-game-status { margin: 16px auto 20px; max-width: 60ch; text-align: center; }
.footer-brush-tool { width: 70px; }
.footer-brush-1 { left: 10%; transform: rotate(-15deg); }
.footer-brush-2 { left: 19%; transform: rotate(10deg); }
.footer-brush-tool .footer-brushes { width: 100%; height: 170px; transform: none; }
.footer-brush-tool > span { font-size: 11px; line-height: 1.3; }
@media (max-width: 900px) {
  .footer-brush-tool { width: 55px; }
  .footer-brush-1 { left: 2%; }
  .footer-brush-2 { left: 11%; }
  .footer-brush-tool .footer-brushes { height: 140px; }
}
@media (max-width: 760px) {
  .footer-brush-tool { width: 40px; }
  .footer-brush-1 { left: 0; top: 155px; }
  .footer-brush-2 { left: 12%; top: 185px; }
  .footer-brush-tool .footer-brushes { height: 100px; }
}
.footer-tool-cursor[data-tool='brush'] { width: 34px; height: 86px; transform: translate(-17px,-2px); }

/* Team hero: an illustrated frame around a quiet, centered headline. */
.team-page-hero { position: relative; display: grid; place-items: center; height: 80vh; padding: 0; overflow: hidden; isolation: isolate; }
.team-hero-art { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; object-fit: contain; }
.team-hero-content { width: min(44%,560px); padding: 0; text-align: center; transform: translateY(-4vh); }
.team-hero-content h1 { font-size: clamp(38px,3.7vw,62px); }
.team-hero-content p { max-width: 36ch; margin: 22px auto 0; font-size: 17px; }
.team-card { padding: 28px 28px 0; }
.team-placeholder-photo { width: calc(100% + 56px); margin: auto -28px 0; padding-top: 18px; }
.staff-portrait { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #e1e6ed; }
.staff-portrait img { position: absolute; display: block; max-width: none; width: 200%; height: 200%; object-fit: fill; left: 0; top: 0; }
.portrait-2 img { left: -100%; }
.portrait-3 img { top: -100%; }
.portrait-4 img { left: -100%; top: -100%; }
.team-placeholder-photo figcaption { padding: 10px 12px; background: #F5F6F6; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.4; }
@media (max-width: 760px) {
  .team-hero-art { width: 760px; max-width: none; left: 50%; transform: translateX(-50%); object-fit: cover; opacity: .65; }
  .team-hero-content { width: calc(100% - 48px); max-width: 400px; transform: translateY(-2vh); }
  .team-hero-content h1 { font-size: clamp(36px,8vw,48px); }
  .team-hero-content p { max-width: 30ch; font-size: 15px; }
}
@media (max-height: 600px) {
  .team-hero-content { transform: translateY(10px); }
  .team-hero-content h1 { font-size: 34px; }
  .team-hero-content p { margin-top: 14px; font-size: 14px; }
}
