:root {
    --ink: #17312f;
    --forest: #174c43;
    --forest-dark: #103a34;
    --paper: #f5f0e5;
    --surface: #fffdf7;
    --muted: #6e7974;
    --line: #d8d5ca;
    --lime: #d9f45b;
    --yellow: #f6d765;
    --mint: #b9e2d2;
    --blue: #acd9ed;
    --coral: #f69b78;
    --shadow: 0 28px 70px rgba(23, 49, 47, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.school-header,
.school-footer,
.school-hero,
.school-facts,
.school-about,
.school-programs,
.school-diagnostics,
.school-choice {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.school-header {
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid rgba(23, 49, 47, .15);
}
.school-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.school-brand__mark {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 13px;
    background: var(--forest);
}
.school-brand__mark i {
    position: absolute;
    top: 12px;
    width: 15px;
    height: 20px;
    border-radius: 2px 7px 3px 2px;
    background: var(--lime);
}
.school-brand__mark i:first-child { left: 6px; transform: rotate(-5deg); }
.school-brand__mark i:last-child { right: 6px; transform: rotate(5deg); background: #fffaf0; }
.school-brand > span:last-child { display: grid; gap: 1px; }
.school-brand strong { font-size: 18px; font-weight: 900; letter-spacing: -.04em; }
.school-brand small { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.school-nav { display: flex; align-items: center; gap: 30px; }
.school-nav a {
    position: relative;
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
    text-decoration: none;
}
.school-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    border-radius: 5px;
    background: var(--forest);
    transition: right 180ms ease;
}
.school-nav a:hover::after { right: 0; }
.header-action {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 17px;
    color: var(--forest);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}
.header-action span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(23, 76, 67, .25);
    border-radius: 50%;
}

.school-hero {
    min-height: 670px;
    padding: 76px 0 90px;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    align-items: center;
    gap: 72px;
}
.eyebrow {
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--forest);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 21px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 6px;
    background: var(--lime);
}
.eyebrow--light { color: #e3f0ea; }
.school-hero h1,
.section-heading h2,
.school-about h2,
.approach-heading h2,
.diagnostics-intro h2,
.school-choice h2,
.school-contact h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -.055em;
}
.school-hero h1 {
    max-width: 700px;
    font-size: clamp(58px, 6.2vw, 88px);
    line-height: .94;
}
.school-hero h1 em { color: var(--forest); font-weight: 400; }
.school-hero__lead {
    max-width: 630px;
    margin: 31px 0 35px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}
.school-hero__actions { display: flex; align-items: center; gap: 25px; }
.school-button {
    min-height: 52px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease;
}
.school-button:hover { transform: translateY(-2px); }
.school-button--primary { color: white; background: var(--forest); box-shadow: 0 16px 30px rgba(23, 76, 67, .2); }
.school-button--primary:hover { background: var(--forest-dark); }
.school-button--text { min-height: auto; padding: 8px 0; border-radius: 0; color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }
.school-button--accent { color: var(--forest-dark); background: var(--lime); }

.hero-studio {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 46% 46% 30px 30px;
    background: var(--forest);
    isolation: isolate;
}
.hero-studio::before,
.hero-studio::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}
.hero-studio::before { width: 260px; height: 260px; top: -95px; right: -45px; background: rgba(217, 244, 91, .18); }
.hero-studio::after { width: 230px; height: 230px; left: -80px; bottom: -65px; background: rgba(172, 217, 237, .14); }
.hero-studio__orbit {
    position: absolute;
    inset: 62px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
}
.hero-studio__orbit::before,
.hero-studio__orbit::after { content: ""; position: absolute; border: inherit; border-radius: inherit; }
.hero-studio__orbit::before { inset: 45px; }
.hero-studio__orbit::after { inset: 95px; }
.studio-card { position: absolute; padding: 21px 23px; border-radius: 18px; box-shadow: 0 22px 45px rgba(8, 38, 34, .26); }
.studio-card small { display: block; margin-bottom: 12px; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.studio-card strong { display: block; font-family: Georgia, serif; font-size: 26px; font-weight: 400; letter-spacing: -.035em; }
.studio-card--english {
    width: 275px;
    min-height: 140px;
    top: 70px;
    left: 65px;
    color: var(--forest);
    background: var(--yellow);
    transform: rotate(-6deg);
}
.studio-card--english span { display: block; margin-top: 19px; color: rgba(23, 76, 67, .68); font-size: 11px; font-weight: 750; }
.studio-card--math {
    width: 280px;
    min-height: 160px;
    z-index: 2;
    right: 52px;
    top: 190px;
    color: var(--ink);
    background: var(--surface);
    transform: rotate(5deg);
}
.studio-card--math strong { margin-top: 20px; font-size: 34px; }
.studio-card--math mark { padding: 3px 8px; border-radius: 8px; color: inherit; background: var(--lime); }
.studio-card--math span { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; }
.studio-card--reading {
    width: 235px;
    min-height: 145px;
    left: 50px;
    bottom: 42px;
    color: var(--forest);
    background: var(--mint);
    transform: rotate(3deg);
}
.studio-card--reading strong { margin-bottom: 13px; font-size: 23px; }
.studio-card--reading span { width: 100%; height: 5px; margin: 7px 0; display: block; border-radius: 5px; background: rgba(23, 76, 67, .2); }
.studio-card--reading span:last-child { width: 62%; }
.studio-badge { position: absolute; z-index: 3; padding: 9px 13px; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.studio-badge--one { top: 48px; right: 40px; color: var(--forest); background: var(--lime); transform: rotate(5deg); }
.studio-badge--two { right: 35px; bottom: 44px; color: var(--forest); background: var(--blue); transform: rotate(-4deg); }

.school-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 253, 247, .7);
}
.school-facts div { min-height: 115px; padding: 25px 27px; display: grid; align-content: center; gap: 7px; border-right: 1px solid var(--line); }
.school-facts div:last-child { border-right: 0; }
.school-facts strong { font-family: Georgia, serif; font-size: 27px; font-weight: 400; letter-spacing: -.04em; }
.school-facts span { color: var(--muted); font-size: 11px; line-height: 1.45; }

.school-about {
    padding: 130px 0;
    display: grid;
    grid-template-columns: 1.05fr .8fr .65fr;
    gap: 65px;
    align-items: start;
}
.school-about h2,
.section-heading h2,
.diagnostics-intro h2,
.school-choice h2 { font-size: clamp(43px, 4.5vw, 62px); line-height: 1.02; }
.school-about__text { padding-top: 34px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.school-about__text p { margin: 0 0 18px; }
.school-about__note { padding: 29px; border-radius: 22px; background: var(--yellow); transform: rotate(2deg); }
.school-about__note span { color: var(--forest); font-family: Georgia, serif; font-size: 50px; line-height: .6; }
.school-about__note p { margin: 18px 0 0; font-family: Georgia, serif; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }

.school-programs { padding: 20px 0 135px; }
.section-heading { margin-bottom: 48px; display: grid; grid-template-columns: 1fr 390px; align-items: end; gap: 70px; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.program-card {
    min-height: 430px;
    padding: 33px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(23, 49, 47, .13);
    border-radius: 26px;
    transition: transform 190ms ease, box-shadow 190ms ease;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.program-card--yellow { background: var(--yellow); }
.program-card--blue { background: var(--blue); }
.program-card--mint { background: var(--mint); }
.program-card--coral { background: var(--coral); }
.program-card__top { display: flex; justify-content: space-between; align-items: center; }
.program-card__top span { font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.program-card__top i { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(23, 49, 47, .24); border-radius: 50%; font-style: normal; }
.program-card > p { margin: 78px 0 10px; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.program-card h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 3.3vw, 44px); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.program-card__description { max-width: 470px; margin: 24px 0 26px; font-size: 14px; line-height: 1.65; }
.program-card > small { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(23, 49, 47, .18); font-size: 10px; font-weight: 850; text-transform: uppercase; }

.school-approach {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto 130px;
    padding: 85px max(60px, calc((100% - 1120px) / 2)) 68px;
    color: #f8f3e9;
    border-radius: 34px;
    background: var(--forest);
}
.approach-heading { max-width: 780px; }
.approach-heading h2 { font-size: clamp(49px, 5.3vw, 72px); line-height: .98; }
.approach-heading > p:last-child { max-width: 650px; margin: 26px 0 0; color: rgba(248, 243, 233, .68); font-size: 16px; line-height: 1.7; }
.lesson-route { margin: 65px 0 55px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid rgba(255, 255, 255, .18); }
.lesson-route li { min-height: 245px; padding: 25px 24px 15px 0; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255, 255, 255, .18); }
.lesson-route li:not(:first-child) { padding-left: 24px; }
.lesson-route li:last-child { border-right: 0; }
.lesson-route > li > span { color: var(--lime); font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.lesson-route h3 { margin: 0 0 10px; font-size: 16px; }
.lesson-route p { margin: 0; color: rgba(248, 243, 233, .62); font-size: 12px; line-height: 1.6; }
.approach-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.approach-principles article { padding: 25px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(255, 255, 255, .055); }
.approach-principles span { color: var(--lime); font-size: 25px; }
.approach-principles h3 { margin: 28px 0 10px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.approach-principles p { margin: 0; color: rgba(248, 243, 233, .62); font-size: 12px; line-height: 1.6; }

.school-diagnostics { padding: 30px 0 135px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.diagnostics-intro { position: sticky; top: 30px; }
.diagnostics-intro > p:nth-of-type(2) { margin: 27px 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.diagnostics-note { padding: 17px 0; display: grid; grid-template-columns: 70px 1fr; gap: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnostics-note strong { color: var(--forest); font-size: 11px; text-transform: uppercase; }
.diagnostics-note span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.diagnostic-grid { display: grid; gap: 14px; }
.diagnostic-card {
    position: relative;
    min-height: 185px;
    padding: 28px 75px 28px 28px;
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    border: 1px solid rgba(23, 49, 47, .14);
    border-radius: 24px;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.diagnostic-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.diagnostic-card--mint { background: var(--mint); }
.diagnostic-card--yellow { background: var(--yellow); }
.diagnostic-card--blue { background: var(--blue); }
.diagnostic-card__mark { width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid rgba(23, 49, 47, .18); border-radius: 50%; font-family: Georgia, serif; font-size: 35px; font-style: italic; }
.diagnostic-card small { font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.diagnostic-card h3 { margin: 9px 0 8px; font-family: Georgia, serif; font-size: clamp(27px, 2.7vw, 36px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.diagnostic-card p { margin: 0; font-size: 12px; line-height: 1.5; }
.diagnostic-card__arrow { position: absolute; right: 27px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); }

.school-choice { padding: 75px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.choice-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.choice-steps article { padding-top: 8px; }
.choice-steps span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-family: Georgia, serif; font-size: 15px; }
.choice-steps h3 { margin: 45px 0 10px; font-size: 14px; }
.choice-steps p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.school-contact {
    position: relative;
    width: min(1320px, calc(100% - 40px));
    min-height: 480px;
    margin: 130px auto 0;
    padding: 75px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    border-radius: 34px 34px 0 0;
    background: var(--forest);
}
.school-contact::before,
.school-contact::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; }
.school-contact::before { width: 640px; height: 640px; }
.school-contact::after { width: 450px; height: 450px; }
.school-contact > * { position: relative; z-index: 1; }
.school-contact h2 { max-width: 900px; font-size: clamp(43px, 5vw, 68px); line-height: 1; }
.school-contact > p:nth-of-type(2) { max-width: 660px; margin: 23px 0 28px; color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.65; }
.contact-spark { position: absolute; z-index: 1; color: var(--lime); font-size: 30px; }
.contact-spark--left { left: 12%; top: 25%; }
.contact-spark--right { right: 12%; bottom: 25%; font-size: 20px; }

.school-footer { min-height: 125px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: var(--muted); }
.school-brand--footer .school-brand__mark { background: var(--ink); }
.school-footer > p { font-size: 11px; }
.school-footer > a:last-child { justify-self: end; color: var(--forest); font-size: 11px; font-weight: 850; text-underline-offset: 4px; }

.school-button:focus-visible,
.school-brand:focus-visible,
.school-nav a:focus-visible,
.header-action:focus-visible,
.diagnostic-card:focus-visible,
.school-footer a:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

@media (max-width: 1050px) {
    .school-nav { display: none; }
    .school-header { grid-template-columns: 1fr auto; }
    .school-hero { grid-template-columns: 1fr .85fr; gap: 35px; }
    .hero-studio { min-height: 450px; }
    .studio-card--english { left: 25px; }
    .studio-card--math { right: 20px; }
    .school-about { grid-template-columns: 1fr 1fr; }
    .school-about__note { grid-column: 2; }
    .school-diagnostics { gap: 45px; }
    .school-choice { padding: 55px 45px; grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .school-header,
    .school-footer,
    .school-hero,
    .school-facts,
    .school-about,
    .school-programs,
    .school-diagnostics,
    .school-choice { width: min(100% - 28px, 640px); }
    .school-header { min-height: 78px; }
    .header-action { font-size: 0; gap: 0; }
    .header-action span { font-size: 13px; }
    .school-hero { min-height: 0; padding: 57px 0 70px; grid-template-columns: 1fr; gap: 50px; }
    .school-hero h1 { font-size: clamp(48px, 14vw, 68px); }
    .school-hero__lead { margin: 25px 0 30px; font-size: 16px; }
    .hero-studio { min-height: 470px; }
    .school-facts { grid-template-columns: repeat(2, 1fr); }
    .school-facts div:nth-child(2) { border-right: 0; }
    .school-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .school-about { padding: 95px 0; grid-template-columns: 1fr; gap: 32px; }
    .school-about__text { padding-top: 0; }
    .school-about__note { grid-column: auto; max-width: 380px; }
    .section-heading { grid-template-columns: 1fr; gap: 22px; }
    .section-heading > p { max-width: 530px; }
    .program-grid { grid-template-columns: 1fr; }
    .program-card { min-height: 390px; }
    .school-approach { width: calc(100% - 20px); margin-bottom: 95px; padding: 65px 28px 35px; border-radius: 26px; }
    .lesson-route { grid-template-columns: repeat(2, 1fr); }
    .lesson-route li:nth-child(2) { border-right: 0; }
    .lesson-route li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .18); }
    .lesson-route li:nth-child(3) { padding-left: 0; }
    .approach-principles { grid-template-columns: 1fr; }
    .school-diagnostics { padding-bottom: 95px; grid-template-columns: 1fr; gap: 45px; }
    .diagnostics-intro { position: static; }
    .school-choice { padding: 45px 30px; }
    .choice-steps { gap: 16px; }
    .school-contact { width: calc(100% - 20px); margin-top: 95px; border-radius: 26px 26px 0 0; }
    .school-footer { min-height: 180px; padding: 30px 0; grid-template-columns: 1fr; gap: 15px; }
    .school-footer > p { margin: 0; }
    .school-footer > a:last-child { justify-self: start; }
}

@media (max-width: 520px) {
    .school-brand small { display: none; }
    .school-brand strong { font-size: 17px; }
    .school-hero__actions { align-items: flex-start; flex-direction: column; gap: 16px; }
    .school-button--text { padding-left: 4px; }
    .hero-studio { min-height: 410px; border-radius: 34% 34% 24px 24px; }
    .hero-studio__orbit { inset: 45px; }
    .studio-card { padding: 17px; }
    .studio-card--english { width: 215px; min-height: 120px; top: 57px; left: 20px; }
    .studio-card--math { width: 225px; min-height: 140px; top: 165px; right: 15px; }
    .studio-card--math strong { font-size: 28px; }
    .studio-card--reading { width: 190px; min-height: 125px; left: 18px; bottom: 25px; }
    .studio-card--reading strong { font-size: 20px; }
    .studio-badge--one { right: 15px; top: 32px; }
    .studio-badge--two { right: 16px; bottom: 25px; }
    .school-facts div { min-height: 105px; padding: 19px; }
    .school-about h2,
    .section-heading h2,
    .diagnostics-intro h2,
    .school-choice h2 { font-size: 42px; }
    .school-programs { padding-bottom: 95px; }
    .program-card { min-height: 410px; padding: 25px; }
    .program-card > p { margin-top: 65px; }
    .lesson-route { grid-template-columns: 1fr; }
    .lesson-route li,
    .lesson-route li:not(:first-child),
    .lesson-route li:nth-child(3) { min-height: 195px; padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
    .lesson-route li:last-child { border-bottom: 0; }
    .diagnostic-card { min-height: 210px; padding: 24px 54px 24px 21px; grid-template-columns: 72px 1fr; gap: 15px; }
    .diagnostic-card__mark { width: 68px; height: 68px; font-size: 27px; }
    .diagnostic-card__arrow { right: 15px; width: 32px; height: 32px; }
    .diagnostic-card h3 { font-size: 27px; }
    .choice-steps { grid-template-columns: 1fr; }
    .choice-steps article { padding: 18px 0; display: grid; grid-template-columns: 35px 1fr; column-gap: 13px; border-bottom: 1px solid var(--line); }
    .choice-steps article:last-child { border-bottom: 0; }
    .choice-steps h3 { margin: 6px 0 8px; }
    .choice-steps p { grid-column: 2; }
    .school-contact { min-height: 520px; padding-inline: 20px; }
    .school-contact h2 { font-size: 42px; }
    .contact-spark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
