:root {
    --blue: #2883bf; --blue-dark: #17699f; --ink: #172a35;
    --muted: #56646d; --paper: #f7f6f1; --line: #d5dbd8;
    --cream: #efede3; --yellow: #f3d77e; --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 108px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 17px/1.75 Montserrat, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.04em; font-weight: 650; }
h1 { font-size: clamp(46px, 5.2vw, 82px); font-weight: 700; }
h2 { font-size: clamp(34px, 3.65vw, 54px); }
h3 { font-size: 30px; }
p { max-width: 65ch; }
small { font-size: 13px; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.wrap { width: calc(100% - 96px); max-width: 1320px; margin-inline: auto; }
.section { padding-block: 88px; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 15px 24px; border-radius: 100px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 650; line-height: 1.45; text-align: center; transition: background .15s; }
.button:hover { background: var(--blue-dark); }
.button-small { min-height: 48px; padding: 12px 20px; font-size: 15px; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #fff; }
.text-link { display: inline-block; min-height: 44px; padding: 10px 0 7px; border-bottom: 1px solid currentColor; font-size: 16px; font-weight: 650; line-height: 1.65; text-align: left; }
.text-link:hover { color: var(--blue-dark); }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px 16px; background: white; z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { height: 90px; width: calc(100% - 64px); max-width: 1560px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { width: 220px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; gap: 22px; align-items: center; }
.nav-link { font-size: 15px; font-weight: 600; min-height: 44px; padding-block: 10px; white-space: nowrap; }
.nav-link:hover { color: var(--blue-dark); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.languages { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.languages a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px; color: var(--muted); }
.languages a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }
#mobile-nav { padding: 18px 24px 26px; border-top: 1px solid var(--line); max-height: calc(100dvh - 78px); overflow: auto; }
#mobile-nav:not([hidden]) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-block: 44px 50px; }
.hero.wrap { max-width: 1560px; }
.hero h1 span { color: var(--blue); }
.hero-intro { color: var(--muted); font-size: 19px; line-height: 1.8; max-width: 530px; margin-block: 26px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-top: 34px; }
.tiny-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--yellow); border-radius: 50%; color: var(--ink); font-size: 21px; font-weight: 700; }
.hero-media { position: relative; height: clamp(530px, 40vw, 650px); padding-right: 58px; padding-bottom: 36px; }
.hero-main { position: relative; height: 100%; border-radius: 170px 170px 18px 18px; overflow: hidden; background: #dedbd3; }
.hero-main img { width: 100%; height: 100%; object-position: 50% 46%; }
.hero-main:after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #0009); }
.hero-main figcaption { position: absolute; z-index: 1; bottom: 30px; left: 30px; max-width: 275px; color: white; font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.hero-small { position: absolute; right: 0; bottom: 0; width: 210px; border: 6px solid var(--paper); border-radius: 16px; background: var(--paper); overflow: hidden; box-shadow: 0 10px 25px #172a3510; }
.hero-small img { width: 100%; height: 220px; object-position: 50% 46%; }
.hero-small figcaption { text-align: center; font-size: 15px; font-weight: 650; padding: 10px 4px 4px; }
.hero-stamp { position: absolute; right: 0; top: 8px; width: 102px; height: 102px; display: grid; place-content: center; border-radius: 50%; background: var(--yellow); border: 1px solid #d6b95c; font-size: 29px; line-height: .9; font-weight: 700; text-align: center; transform: rotate(9deg); }
.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px 36px; border-top: 1px solid var(--line); }
.proof-strip>div { padding-left: 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.proof-strip>div:first-child { padding-left: 0; border: 0; }
.proof-strip strong { font-size: 20px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.proof-strip span { font-size: 14px; line-height: 1.6; color: var(--muted); }
.section-heading { margin-bottom: 38px; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.heading-row>p { max-width: 390px; color: var(--muted); font-size: 17px; padding-bottom: 4px; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.course-card { display: flex; flex-direction: column; align-items: flex-start; border-radius: var(--radius); padding: 36px; }
.course-blue { background: var(--blue); color: white; }
.course-cream { background: var(--cream); }
.course-top { width: 100%; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 32px; font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.course-top>span:first-child { font-size: 17px; }
.course-card h3 { font-size: 32px; margin-bottom: 18px; }
.course-card>p { font-size: 18px; line-height: 1.8; }
.course-card .course-format { font-size: 15px; font-weight: 600; margin-top: 20px; }
.course-card ul { list-style: none; padding: 0; margin: 20px 0 28px; font-size: 16px; }
.course-card li { position: relative; padding-left: 25px; margin-block: 8px; }
.course-card li:before { content: '✓'; position: absolute; left: 0; }
.course-link { display: block; width: 100%; padding: 18px 0 4px; margin-top: auto; border-top: 1px solid #ffffff80; font-size: 16px; font-weight: 650; }
.course-cream .course-link { border-color: #172a3530; }

.pricing { margin-block: 56px; }
.price-heading { margin-bottom: 28px; max-width: 780px; }
.price-heading h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; margin-bottom: 12px; }
.price-heading p { font-size: 17px; color: var(--muted); line-height: 1.6; }
.price-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.price-card { min-width: 0; display: flex; flex-direction: column; padding: 28px 22px 24px; background: #fffefa; border: 1px solid var(--line); border-radius: 22px; }
.price-kind { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); min-height: 38px; }
.price-kind .ui-icon { width: 20px; height: 20px; }
.price-card h4 { font-size: 21px; line-height: 1.45; margin-top: 20px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.price-card-top { min-height: 165px; }
.price-card-amount { margin-top: auto; padding-block: 24px 28px; }
.previous-price { font-size: 19px; line-height: 1.4; color: #65737b; margin-bottom: 6px; }
.previous-price del { text-decoration-thickness: 1.5px; }
.current-price strong { font-size: clamp(40px, 3.4vw, 48px); line-height: 1.15; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.current-price .currency { font-size: .58em; letter-spacing: 0; }
.price-period { font-size: 16px; line-height: 1.5; margin-top: 9px; color: var(--muted); }
.price-card>.button { width: 100%; padding-inline: 12px; font-size: 15px; min-height: 52px; }
.price-card-ielts { background: #297caf; border-color: #297caf; color: #fff; }
.price-card-ielts .price-kind, .price-card-ielts .previous-price, .price-card-ielts .price-period { color: #e2f0f9; }
.price-card-ielts .button:focus-visible { outline-color: var(--yellow); }
.price-bonus { max-width: none; display: flex; align-items: center; gap: 12px; padding: 20px 22px; margin-top: 16px; background: #e7f1f8; border-radius: 14px; font-size: 16px; line-height: 1.6; }
.price-bonus .ui-icon { color: var(--blue); }
.price-formats-title { margin: 32px 0 16px; font-size: 23px; }
.price-formats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.price-format { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: 18px; }
.price-format h4 { font-size: 23px; }
.format-amount { margin-top: 16px; font-size: 34px; font-weight: 650; line-height: 1.3; }
.format-amount span { display: block; margin-top: 5px; font-size: 16px; color: var(--muted); font-weight: 400; }
.format-total { margin: 14px 0 24px; font-size: 16px; font-weight: 600; }
.price-format>.text-link { margin-top: auto; font-size: 16px; }
.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; }
@media (max-width: 1099px) { .price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 639px) {
    .price-grid, .price-formats { grid-template-columns: 1fr; }
    .price-card { padding: 24px; }
    .price-card-top { min-height: 0; }
    .price-card h4 { margin-top: 16px; }
    .price-kind { min-height: 0; }
    .current-price strong { font-size: 44px; }
    .price-bonus { align-items: flex-start; padding: 18px; }
    .price-bonus .ui-icon { margin-top: 3px; }
    .price-format { padding: 24px; }
}

.course-list { margin-top: 24px; border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.course-row { border-bottom: 1px solid var(--line); }
.course-row summary { display: flex; align-items: center; gap: 28px; padding: 25px 8px; }
.row-number { font-size: 15px; color: var(--muted); }
.course-row small { display: block; font-size: 13px; color: var(--muted); letter-spacing: .06em; margin-bottom: 7px; }
.course-row h3 { font-size: 25px; letter-spacing: -.025em; }
.plus { margin-left: auto; flex-shrink: 0; font-size: 26px; font-weight: 400; line-height: 1; }
details[open]>summary .plus { transform: rotate(45deg); }
.course-detail { padding: 0 55px 26px; max-width: 850px; }
.course-detail p { font-size: 17px; color: var(--muted); margin-bottom: 12px; }
.levels { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; border-top: 1px solid var(--line); padding-top: 38px; margin-top: 45px; }
.levels h3 { font-size: 27px; }
.levels .eyebrow { margin-bottom: 14px; }
.level-tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.level-tabs button { min-width: 58px; min-height: 46px; padding: 10px 17px; border-radius: 30px; background: var(--cream); font-size: 16px; font-weight: 650; }
.level-tabs button[aria-selected=true] { background: var(--ink); color: white; }
#level-panel { min-height: 120px; }
#level-panel h4 { font-size: 21px; margin-bottom: 10px; }
#level-panel p { font-size: 17px; color: var(--muted); }
.finder { position: relative; overflow: hidden; isolation: isolate; background: #e9eff0; padding-bottom: 175px; }
.finder-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.finder-grid>div>p:not(.eyebrow) { max-width: 440px; font-size: 18px; color: var(--muted); margin-top: 24px; }
.finder-hint { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 26px; }
.finder-hint small { color: var(--muted); font-size: 15px; }
.finder-logo { position: absolute; width: 145px; height: 145px; right: 24px; bottom: 15px; opacity: .1; pointer-events: none; }
.finder-logo img { width: 100%; height: 100%; object-fit: contain; animation: finder-badge-spin 22s linear infinite; animation-play-state: paused; }
.finder-logo.is-moving img { animation-play-state: running; }
@keyframes finder-badge-spin { to { transform: rotate(360deg); } }
.quiz { padding: 32px; min-height: 380px; border: 1px solid #cfdadc; border-radius: var(--radius); background: var(--paper); }
.quiz-progress { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; }
.quiz-dots { display: flex; gap: 5px; }
.quiz-dots i { display: block; width: 26px; height: 4px; background: var(--line); border-radius: 4px; }
.quiz-dots .active { background: var(--blue); }
.quiz h3 { font-size: 27px; margin-bottom: 24px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; min-height: 54px; background: white; border: 1px solid var(--line); border-radius: 9px; text-align: left; font-size: 17px; font-weight: 600; }
.quiz-options button:hover { background: #eaf4fa; border-color: var(--blue); }
.quiz-back { min-height: 44px; padding: 10px 0; margin-top: 16px; color: var(--muted); font-size: 15px; font-weight: 600; }
.quiz-result p { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.quiz-summary { margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.quiz-summary>div { display: grid; grid-template-columns: 95px 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: 15px; }
.quiz-summary dt { color: var(--muted); }
.quiz-summary dd { margin: 0; font-weight: 600; }
.quiz-result .next-note { font-size: 14px; margin: 14px 0 0; }
.trial-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trial-steps li { padding-top: 25px; border-top: 1px solid var(--line); }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); font-size: 17px; font-weight: 650; margin-bottom: 22px; }
.trial-steps h3 { font-size: 25px; margin-bottom: 16px; }
.trial-steps p { font-size: 17px; color: var(--muted); }
.trial-footer { display: flex; align-items: center; gap: 32px; margin-top: 36px; }
.trial-footer>.button { flex-shrink: 0; }
.trial-footer p { font-size: 15px; max-width: 660px; color: var(--muted); }
.life { background: #e7f1f8; }
.club { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--blue); color: white; }
.club-photo { position: relative; min-height: 520px; }
.club-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 35%; }
.club-copy { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.calendar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.calendar strong { display: grid; place-items: center; width: 44px; height: 48px; border: 1px solid #ffffff90; border-top: 5px solid var(--yellow); border-radius: 5px; font-size: 15px; }
.calendar span { font-size: 13px; font-weight: 650; letter-spacing: .06em; }
.club h3 { font-size: 38px; }
.club p { font-size: 18px; line-height: 1.8; margin: 22px 0 26px; }
.club small { margin-top: 16px; font-size: 14px; }
.films-intro { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin: 48px 0 28px; }
.films-intro h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; max-width: 720px; }
.films-intro p { font-size: 17px; color: var(--muted); max-width: 560px; }
.film-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.film { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; padding: 0; text-align: left; }
.film-image { display: block; position: relative; width: 100%; aspect-ratio: 9/12; border-radius: 14px; overflow: hidden; background: #d4d8d5; }
.film-image img { width: 100%; height: 100%; }
.film-image:after { content: ''; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, #0005); }
.play { position: absolute; z-index: 1; bottom: 16px; left: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 16px; }
.film:hover .play { background: var(--yellow); }
.film-title { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 17px; line-height: 1.5; font-weight: 650; }
.film-title>span { flex-shrink: 0; }
.film-caption { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.stories-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.story-photo { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: #deded6; }
.story-photo img { width: 100%; height: 100%; object-position: 50% 80%; }
.story-card:nth-child(2) .story-photo img { object-position: 50% 90%; }
.story-stat { position: absolute; bottom: 22px; left: 22px; padding: 13px 20px; border-radius: 12px; background: var(--paper); font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.story-stat span { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; margin-top: 7px; }
.story-card .eyebrow { margin: 24px 0 14px; }
.story-card h3 { font-size: 31px; margin-bottom: 16px; }
.story-card>p:last-child { font-size: 18px; color: var(--muted); }
.harvard { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border-top: 1px solid var(--line); padding-top: 50px; margin-top: 50px; }
.harvard-image { aspect-ratio: 1.25; overflow: hidden; border-radius: var(--radius); }
.harvard-image img { width: 100%; height: 100%; }
.harvard h3 { font-size: 34px; }
.harvard p:not(.eyebrow) { font-size: 17px; color: var(--muted); margin-block: 22px; }
.person-name { display: block; font-size: 15px; margin-bottom: 12px; }
.student-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 55px; }
.certificate-card .film-image { background: var(--cream); }
.certificate-card .film-image img { object-fit: contain; }
.certificate-card .film-image:after { display: none; }
.branches { background: #eeede7; }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.branch-open { display: block; width: 100%; padding: 0; text-align: left; }
.branch-photo { position: relative; display: block; height: 400px; border-radius: var(--radius); overflow: hidden; }
.branch-photo img { width: 100%; height: 100%; }
.photo-label { position: absolute; top: 18px; left: 18px; max-width: calc(100% - 36px); background: var(--paper); font-size: 13px; font-weight: 700; line-height: 1.5; padding: 8px 12px; border-radius: 18px; }
.photo-arrow { position: absolute; bottom: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-size: 25px; }
.branch-open:hover .photo-arrow { background: var(--yellow); }
.branch-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 20px 0 8px; }
.branch-heading strong { font-size: 29px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.branch-heading>span { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.online { display: flex; align-items: center; gap: 24px; padding-top: 34px; margin-top: 46px; border-top: 1px solid #cbd1ca; }
.online-icon { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: #d9e6ec; color: var(--blue); font-size: 30px; }
.online h3 { font-size: 26px; }
.online p { font-size: 17px; color: var(--muted); margin-top: 12px; }
.online>.text-link { flex-shrink: 0; margin-left: auto; }
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; }
.faq h2 { font-size: 40px; }
.faq-row { border-bottom: 1px solid var(--line); }
.faq-row:first-child { border-top: 1px solid var(--line); }
.faq-row summary { display: flex; justify-content: space-between; gap: 25px; padding-block: 23px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.faq-row p { font-size: 17px; color: var(--muted); padding: 0 24px 24px 0; }
.mobile-booking { display: none; }
dialog { border: 0; border-radius: 16px; padding: 0; background: var(--paper); color: var(--ink); max-width: min(900px, calc(100vw - 30px)); max-height: 92dvh; width: max-content; overflow: auto; }
dialog::backdrop { background: #0b1c29d9; }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; background: var(--paper); }
.dialog-header h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; }
.dialog-header button { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); font-size: 30px; line-height: 1; }
#media-content { display: flex; justify-content: center; background: #111; }
#media-content video { display: block; margin: auto; max-height: 68dvh; width: auto; max-width: 100%; aspect-ratio: 9/16; }
#media-content img { max-height: 78dvh; width: auto; max-width: 100%; object-fit: contain; }
body:has(dialog[open]) { overflow: hidden; }
.video-player { min-width: min(280px, calc(100vw - 30px)); max-width: 100%; }
.video-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 18px 18px; color: white; }
.video-footer .text-link { font-size: 14px; color: #e4e9ed; }
.video-status { font-size: 15px; text-align: center; max-width: 350px; }
.video-retry { font-size: 15px; padding: 10px 20px; min-height: 44px; }
.branch-dialog { width: 960px; max-width: calc(100vw - 32px); }
.branch-dialog #media-content { display: block; background: var(--paper); }
.branch-panel { display: grid; grid-template-columns: .9fr 1.1fr; }
.branch-dialog #media-content .branch-panel>img { width: 100%; height: 100%; min-height: 430px; max-height: 650px; object-fit: cover; background: var(--cream); }
.branch-panel-copy { padding: 34px; align-self: center; }
.branch-panel-copy .eyebrow { margin-bottom: 16px; }
.branch-panel-copy h3 { font-size: 36px; }
.branch-description { font-size: 18px; line-height: 1.8; margin-block: 22px 26px; }
.branch-panel-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (max-width: 1240px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .hero { gap: 36px; }
    .hero-media { height: 540px; padding-right: 48px; }
    .hero-small { width: 185px; }
    .hero-small img { height: 190px; }
    .hero-main figcaption { font-size: 22px; max-width: 190px; }
    .finder-grid { gap: 40px; }
    .club-copy { padding: 32px; }
    .club h3 { font-size: 32px; }
}
@media (max-width: 960px) {
    .wrap { width: calc(100% - 64px); }
    .header-inner { height: 78px; width: calc(100% - 48px); gap: 18px; }
    .brand { width: 185px; }
    .header-actions { gap: 12px; }
    .section { padding-block: 70px; }
    .hero { gap: 28px; }
    .hero h1 { font-size: 49px; }
    .hero-intro { font-size: 17px; }
    .hero-media { height: 500px; padding-right: 30px; }
    .hero-small { width: 155px; }
    .hero-small img { height: 170px; }
    .hero-stamp { width: 82px; height: 82px; font-size: 25px; }
    .hero-main figcaption { max-width: 150px; font-size: 19px; left: 22px; }
    .proof-strip { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
    .proof-strip>div { border: 0; padding: 0; }
    .heading-row { gap: 34px; }
    .heading-row>p { max-width: 310px; }
    .course-card { padding: 28px; }
    .course-card h3 { font-size: 29px; }
    .course-top { flex-wrap: wrap; gap: 12px; }
    .levels { grid-template-columns: 1fr 1.4fr; gap: 30px; }
    .finder { padding-bottom: 170px; }
    .finder-grid { gap: 30px; }
    .finder h2 { font-size: 36px; }
    .quiz { padding: 26px; }
    .quiz h3 { font-size: 25px; }
    .trial-steps { gap: 24px; }
    .trial-steps h3 { font-size: 24px; }
    .club { grid-template-columns: 1fr; }
    .club-photo { height: 350px; min-height: 0; }
    .club-photo img { object-position: 50% 40%; }
    .club-copy { padding: 36px; }
    .club p { max-width: 600px; }
    .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
    .harvard { gap: 30px; }
    .harvard h3 { font-size: 28px; }
    .branch-photo { height: 320px; }
    .branch-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .online { flex-wrap: wrap; }
    .online>div { flex: 1; }
    .online>.text-link { margin-left: 88px; }
    .faq { grid-template-columns: 1fr 1.3fr; gap: 40px; }
    .faq h2 { font-size: 34px; }
}
@media (max-width: 700px) {
    html { scroll-padding-top: 84px; }
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .wrap { width: calc(100% - 40px); }
    .header-inner { height: 70px; width: calc(100% - 24px); gap: 8px; }
    .brand { width: 150px; }
    .header-actions { gap: 4px; }
    .header-actions>.button { display: none; }
    .languages { gap: 2px; font-size: 15px; }
    .languages a { padding-inline: 5px; }
    .menu-toggle { min-width: 42px; padding: 9px; }
    .section { padding-block: 56px; }
    h2 { font-size: clamp(32px, 8.6vw, 40px); }
    .eyebrow { font-size: 13px; margin-bottom: 18px; }
    .hero { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-block: 34px 30px; }
    .hero h1 { font-size: clamp(34px, 8.6vw, 56px); }
    .hero-intro { margin-block: 22px; }
    .hero-actions { gap: 10px 20px; }
    .hero-note { display: none; }
    .hero-media { align-self: center; width: 100%; max-width: 500px; height: 420px; padding: 0 60px 34px 0; }
    .hero-main { border-radius: 130px 130px 16px 16px; }
    .hero-main img { object-position: 50% 48%; }
    .hero-main figcaption { font-size: 18px; max-width: 150px; left: 20px; bottom: 24px; }
    .hero-small { width: 155px; border-width: 5px; }
    .hero-small img { height: 170px; }
    .hero-small figcaption { font-size: 13px; }
    .hero-stamp { width: 76px; height: 76px; font-size: 23px; right: 4px; }
    .proof-strip { padding-block: 25px 30px; gap: 24px 20px; }
    .proof-strip strong { font-size: 18px; }
    .proof-strip span { font-size: 13px; }
    .heading-row { display: block; }
    .heading-row>p { max-width: none; margin-top: 20px; }
    .section-heading { margin-bottom: 28px; }
    .course-grid { grid-template-columns: 1fr; gap: 20px; }
    .course-card { padding: 26px; }
    .course-card>p { font-size: 17px; }
    .course-card h3 { font-size: 30px; }
    .course-top { margin-bottom: 25px; }
    .course-row summary { gap: 18px; padding: 23px 0; }
    .course-row h3 { font-size: 23px; }
    .course-detail { padding: 0 0 25px 34px; }
    .levels { grid-template-columns: 1fr; gap: 24px; margin-top: 34px; padding-top: 30px; }
    .level-tabs { gap: 6px; justify-content: space-between; }
    .level-tabs button { min-width: 0; flex: 1; padding-inline: 8px; }
    #level-panel { min-height: 130px; }
    .finder { padding-bottom: 132px; }
    .finder-grid { grid-template-columns: 1fr; gap: 30px; }
    .finder h2 { font-size: 35px; }
    .finder-grid>div>p:not(.eyebrow) { font-size: 17px; margin-top: 20px; }
    .finder-hint { margin-top: 20px; }
    .finder-logo { width: 110px; height: 110px; bottom: 10px; right: 16px; }
    .quiz { padding: 24px; min-height: 340px; }
    .quiz h3 { font-size: 25px; }
    .quiz-options button { padding-inline: 14px; }
    .quiz-summary>div { grid-template-columns: 78px 1fr; gap: 12px; }
    .trial-steps { grid-template-columns: 1fr; gap: 28px; }
    .trial-steps li { padding-top: 22px; }
    .step-number { margin-bottom: 16px; }
    .trial-steps h3 { font-size: 25px; margin-bottom: 12px; }
    .trial-footer { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; }
    .club-photo { height: 280px; }
    .club-copy { padding: 28px; }
    .club h3 { font-size: 33px; }
    .club p { font-size: 17px; }
    .club .button { padding-inline: 20px; }
    .films-intro { display: block; margin-top: 36px; }
    .films-intro h3 { font-size: clamp(30px, 7.5vw, 42px); }
    .films-intro p { margin-top: 16px; }
    .film-grid { gap: 28px 16px; }
    .film-title { font-size: 16px; }
    .film-caption { font-size: 13px; }
    .play { left: 12px; bottom: 12px; }
    .stories-grid { grid-template-columns: 1fr; gap: 38px; }
    .story-stat { bottom: 18px; left: 18px; font-size: 34px; padding: 12px 16px; }
    .story-card h3 { font-size: 29px; }
    .story-card>p:last-child { font-size: 17px; }
    .harvard { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; margin-top: 40px; }
    .harvard-image { aspect-ratio: 1; }
    .harvard h3 { font-size: 30px; }
    .student-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; margin-top: 40px; }
    .branch-grid { grid-template-columns: 1fr; gap: 34px; }
    .branch-photo { height: 350px; }
    .branch-heading { flex-direction: row; align-items: center; gap: 12px; }
    .branch-heading strong { font-size: 27px; }
    .photo-label { font-size: 13px; left: 14px; top: 14px; }
    .online { align-items: flex-start; gap: 18px; margin-top: 34px; padding-top: 28px; }
    .online-icon { width: 46px; height: 46px; font-size: 25px; }
    .online h3 { font-size: 25px; }
    .online>.text-link { margin-left: 64px; }
    .faq { grid-template-columns: 1fr; gap: 28px; }
    .faq h2 { font-size: 35px; }
    .faq-row summary { font-size: 17px; padding-block: 22px; }
    .faq-row p { padding-right: 0; }
    .mobile-booking { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: block; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
    .mobile-booking .button { width: 100%; }
    .dialog-header { padding: 10px 12px; gap: 14px; }
    .dialog-header h2 { font-size: 16px; }
    #media-content video { max-height: 63dvh; }
    .video-footer { padding: 10px 14px 14px; }
    .branch-panel { grid-template-columns: 1fr; }
    .branch-dialog #media-content .branch-panel>img { min-height: 0; height: 235px; max-height: none; }
    .branch-panel-copy { padding: 26px 22px; }
    .branch-panel-copy h3 { font-size: 30px; }
    .branch-description { font-size: 17px; margin-block: 18px 22px; }
}
@media (max-width: 360px) {
    .brand { width: 130px; }
    .hero-main figcaption { max-width: 108px; font-size: 17px; left: 16px; }
    .hero-small { width: 138px; }
    .hero-small img { height: 155px; }
    .hero-media { height: 385px; padding-right: 46px; }
    .quiz { padding: 20px; }
    .quiz-progress { gap: 12px; }
    .quiz-dots i { width: 20px; }
    .course-card { padding: 24px; }
    .branch-heading { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* School stories lead the page; photos remain the focus. */
.achievements { padding-top: 50px; }
.achievements h1 { font-size: clamp(42px, 4.4vw, 68px); }
.achievement-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: -8px 0 36px; }
.achievements .story-photo { aspect-ratio: 1.5; }
.achievements .story-photo img { object-position: 50% 84%; }
.achievements .story-card:nth-child(2) .story-photo img { object-position: 50% 92%; }
.club-free { display: block; color: var(--ink); background: var(--yellow); border-radius: 9px; padding: 12px 16px; font-size: 15px; line-height: 1.5; letter-spacing: .025em; margin-bottom: 26px; }
.event-names { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0 0 30px; }
.event-names li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; font-size: 16px; font-weight: 600; }
.tedx-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 38px; align-items: center; margin-bottom: 42px; }
.tedx-photo { border-radius: var(--radius); overflow: hidden; }
.tedx-photo img { width: 100%; height: auto; }
.tedx-copy p:not(.eyebrow) { color: var(--muted); margin: 20px 0; }
.tedx-copy .text-link { display: table; margin-top: 14px; }
.student-video-heading { margin-top: 55px; }
.student-video-heading + .student-videos { margin-top: 26px; }
.branch-open { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); transition: border-color .15s; }
.branch-open:hover { border-color: var(--blue); }
.branch-number { color: var(--blue); font-size: 15px; font-weight: 700; }
.branch-label { display: block; font-size: 13px; color: var(--muted); letter-spacing: .05em; margin-bottom: 18px; }
.branch-heading { margin-top: 14px; }
.world { background: #102e43; color: var(--paper); }
.world .eyebrow { color: #a9cfdf; }
.world .heading-row>p, .world-hint { color: #c4d6df; }
.world-hint { font-size: 15px; margin-bottom: 14px; }
.world-destinations { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.world-destinations button { border: 1px solid #ffffff38; border-radius: 30px; padding: 10px 16px; min-height: 44px; font-size: 15px; color: white; }
.world-destinations button[aria-pressed=true] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
/* Globe and story occupy stable, equal-height columns. */
.globe-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 24px; align-items: stretch; }
.globe-stage { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: center; border: 1px solid #ffffff20; border-radius: 24px; background: radial-gradient(ellipse at 40% 45%, #183e57, #0a2335 75%); overflow: hidden; }
.globe-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 28px 0; font-size: 13px; color: #b5d1df; }
.globe-caption .eyebrow { font-size: 12px; margin: 0; }
#alumni-globe { display: block; width: min(100%,600px); margin-inline: auto; aspect-ratio: 1; height: auto; cursor: grab; touch-action: pan-y; }
#alumni-globe:active { cursor: grabbing; }
#alumni-globe:focus-visible { outline: 2px solid var(--yellow); outline-offset: -5px; border-radius: 22px; }
.globe-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 24px 24px; margin-top: auto; }
.globe-controls button { border: 1px solid #ffffff40; border-radius: 24px; color: white; min-height: 44px; padding: 8px 15px; font-size: 14px; }
.globe-controls button[aria-pressed=true] { background: #ffffff12; }
.globe-controls span { margin-left: auto; font-size: 13px; color: #b5d1df; }
.world-detail { min-width: 0; padding: 28px; background: #ffffff06; border: 1px solid #ffffff20; border-radius: 24px; display: flex; flex-direction: column; }
.world-detail>.eyebrow { color: var(--yellow); margin-bottom: 20px; }
.alumni-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 360px; background: #0b2538; border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.globe-story .alumni-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; border-radius: 0; }
.destination-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; padding: 0 5px; margin-left: 5px; border-radius: 20px; background: #ffffff20; font-size: 13px; font-weight: 700; }
.world-destinations button[aria-pressed=true] .destination-count { background: #102e431c; }
.globe-country-label { display: none; }
.globe-story h3 { font-size: clamp(24px,2.3vw,34px); line-height: 1.15; margin: 9px 0 16px; }
.globe-story .person-place { font-size: 14px; color: var(--yellow); }
.globe-story .person-story { font-size: 17px; line-height: 1.65; color: #c4d6df; }
.student-controls { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 24px; }
.student-controls>span { margin-right: auto; color: #c4d6df; font-size: 15px; font-variant-numeric: tabular-nums; }
.student-controls button { width: 46px; height: 46px; border: 1px solid #ffffff45; border-radius: 50%; color: white; font-size: 23px; }
.student-controls button:disabled { opacity: .25; cursor: default; }
.student-controls button:not(:disabled):hover, .globe-controls button:hover { background: #ffffff1c; }
.alumni-scores { margin-top: 36px; border-top: 1px solid #ffffff25; padding-top: 24px; }
.alumni-scores summary { cursor: pointer; font-size: 25px; font-weight: 700; }
.alumni-scores summary span { float: right; color: var(--yellow); font-size: 19px; }
.alumni-scores>p { color: #c4d6df; margin-top: 16px; }
.alumni-scores ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; gap: 12px; padding: 24px 0 0; }
.alumni-scores li { border: 1px solid #ffffff25; border-radius: 16px; padding: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
.alumni-scores strong { font-size: 36px; color: var(--yellow); grid-row: span 2; }
.alumni-scores span { font-size: 16px; align-self: center; }
.alumni-scores small { font-size: 13px; color: #aac6d6; }
@media (max-width: 960px) {
    .globe-layout { grid-template-columns: 1fr; }
    .globe-stage { max-width: 660px; width: 100%; margin-inline: auto; }
    .alumni-photo { float: left; width: 36%; height: 300px; margin: 0 24px 16px 0; }
    .globe-story::after { content: ''; display: block; clear: both; }
    .alumni-scores ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
    .world-destinations { display: none; }
    .globe-country-label { display: grid; gap: 8px; font-size: 15px; color: #c4d6df; margin: 20px 0; }
    #globe-country { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #ffffff50; border-radius: 10px; color: white; background: #102e43; font: inherit; }
    .globe-layout { gap: 16px; }
    .globe-caption { padding: 20px 18px 0; }
    .globe-controls { padding: 0 14px 18px; }
    .globe-controls span { display: none; }
    .world-detail { padding: 20px; }
    .alumni-photo { float: none; width: 100%; height: 340px; margin: 0 0 20px; }
    .globe-story .person-story { font-size: 16px; }
    .alumni-scores ul { grid-template-columns: 1fr; }
    .alumni-scores summary { font-size: 21px; }
}
@media (max-width: 960px) {
    .world-people { grid-template-columns: 1fr; }
    .tedx-feature { gap: 28px; }
    .achievements .heading-row { align-items: flex-start; }
}
@media (max-width: 700px) {
    .achievements { padding-top: 32px; }
    .achievements h1 { font-size: clamp(34px, 8.3vw, 48px); }
    .achievements .story-photo { aspect-ratio: 1.15; }
    .achievement-actions { gap: 16px; margin-top: 0; }
    .tedx-feature { grid-template-columns: 1fr; }
    .student-video-heading { font-size: 26px; overflow-wrap: anywhere; }
    .world-destinations { gap: 6px; }
    .world-destinations button { font-size: 14px; padding-inline: 12px; }
    .world-detail { padding: 22px 18px; }
    .world-person { gap: 16px; }
    .world-person img { width: 72px; height: 104px; }
    .world-person h4 { font-size: 19px; }
    .world-person p { font-size: 15px; }
    .branch-open { padding: 24px; }
}

/* Full alumni list opens from the bottom of the globe section. */
.alumni-list-action { display: flex; justify-content: center; margin-top: 28px; }
.alumni-list-dialog { width: 1180px; max-width: calc(100vw - 32px); }
.alumni-list-dialog #media-content { display: block; background: var(--paper); padding: 8px 24px 28px; }
.alumni-full-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.alumni-full-list li { min-width: 0; }
.alumni-full-list article { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.alumni-list-photo { height: 250px; display: flex; align-items: center; justify-content: center; background: #e9edf0; }
.alumni-list-dialog #media-content .alumni-list-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.alumni-list-copy { padding: 22px; }
.alumni-list-copy h3 { font-size: 23px; line-height: 1.25; margin: 10px 0 14px; }
.alumni-list-copy p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.alumni-list-copy .alumni-list-place { font-size: 13px; font-weight: 600; color: var(--blue); }
@media (max-width: 900px) { .alumni-full-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
    .alumni-list-dialog { max-width: calc(100vw - 20px); }
    .alumni-list-dialog #media-content { padding: 8px 12px 20px; }
    .alumni-full-list { grid-template-columns: 1fr; gap: 16px; }
    .alumni-list-copy { padding: 18px; }
}

/* A restrained motion and brand layer; native scrolling remains in control. */
:root { --ease-soft: cubic-bezier(.2,.7,.2,1); }
.ui-icon { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.button .ui-icon { width: 20px; height: 20px; }
.tiny-mark { width: 42px; height: 42px; flex-shrink: 0; }
.tiny-mark img { width: 28px; height: 27px; object-fit: contain; }
.proof-strip .proof-icon { display: flex; align-items: center; color: var(--blue); height: 30px; margin-bottom: 3px; }
.proof-icon .ui-icon { width: 27px; height: 27px; }
.course-number, .branch-number { display: inline-flex; gap: 10px; align-items: center; }
.course-number .ui-icon { width: 26px; height: 26px; }
.branch-number .ui-icon { width: 21px; height: 21px; }
.club-signature { display: inline-flex; border-radius: 8px; padding: 10px 14px; background: var(--paper); margin-bottom: 18px; }
.club-signature img { width: 160px; height: auto; }
.step-number { position: relative; width: 52px; height: 52px; }
.step-number .ui-icon { width: 25px; height: 25px; }
.step-order { position: absolute; right: -12px; top: -6px; background: var(--paper); padding: 1px 5px; border-radius: 9px; font-size: 12px; line-height: 1.4; }
.online-icon .ui-icon { width: 36px; height: 36px; }
.button, .branch-open, .student-controls button, .globe-controls button, .world-destinations button, .level-tabs button, .quiz-option { transition: background-color 200ms var(--ease-soft), border-color 200ms var(--ease-soft), color 200ms var(--ease-soft), box-shadow 220ms var(--ease-soft), transform 220ms var(--ease-soft); }
.text-link, .nav-link { transition: color 180ms var(--ease-soft), border-color 180ms var(--ease-soft); }
.plus { transition: transform 230ms var(--ease-soft); }
.hero-main img, .story-photo img, .film-image img { transition: transform 550ms var(--ease-soft); }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-soft); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px #102e4319; }
    .button:active { transform: translateY(0) scale(.985); box-shadow: none; }
    .branch-open:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #172a350a; }
    .story-card:hover .story-photo img, .film:hover .film-image img, .hero-main:hover img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    dialog[open] { animation: surface-enter 220ms var(--ease-soft); }
    dialog[open]::backdrop { animation: backdrop-enter 180ms ease-out; }
    #mobile-nav:not([hidden]), .faq-row[open]>p, .course-row[open]>.course-detail { animation: content-enter 240ms var(--ease-soft); }
}
@keyframes surface-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes content-enter { from { opacity: .25; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
    .button .ui-icon { width: 18px; height: 18px; }
    .proof-strip .proof-icon { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Keep Damir visible in the scholarship story at every card size. */
.achievements .story-card.scholarship-story .story-photo img { object-position: 50% 60%; }
.scholarship-story .story-stat { font-size: clamp(26px, 2.65vw, 38px); }

/* About the school: a short introduction with the IDP certificate alongside. */
.about { border-top: 1px solid var(--line); }
.about .section-heading { margin-bottom: 36px; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-copy { max-width: 760px; }
.about-intro { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.25; margin-bottom: 18px; }
.about-copy p, .about-partner p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.about-detail { margin-top: 28px; }
.about-detail h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 10px; }
.about-detail .ui-icon { color: var(--blue); }
.about-copy>.text-link { margin-top: 26px; }
.about-partner { background: #e9eff0; padding: 28px; border-radius: 22px; }
.about-certificate { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.about-certificate img { width: auto; max-width: 100%; height: 280px; object-fit: contain; }
.about-certificate .text-link { font-size: 15px; }
.about-partner h3 { font-size: 24px; line-height: 1.25; margin: 28px 0 12px; }
.about-partner p { font-size: 17px; }
.about-partner>.text-link { margin-top: 20px; font-size: 16px; }
@media(max-width: 760px) {
 .about-layout { grid-template-columns: 1fr; gap: 32px; }
 .about-partner { padding: 24px; }
 .about-copy p { font-size: 17px; }
 .about .section-heading { margin-bottom: 24px; }
 .about-certificate img { height: 260px; }
 .about-detail h3 { align-items: flex-start; font-size: 21px; }
 .about-detail .ui-icon { margin-top: 2px; }
}

/* Closing invitation and full-width brand signature. */
.contact { background: var(--blue); color: white; padding-block: 76px; overflow: clip; }
.contact>.wrap { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: center; gap: clamp(40px,6vw,90px); }
.contact .eyebrow { color: #fff; margin-bottom: 28px; }
.contact h2 { font-size: clamp(40px,4.4vw,66px); line-height: 1.08; letter-spacing: -.045em; }
.contact h2 span { color: var(--yellow); }
.contact-copy>p:not(.eyebrow) { font-size: 19px; line-height: 1.75; max-width: 540px; margin-block: 26px 32px; }
.contact-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; }
.contact-actions .button { min-height: 60px; padding-inline: 28px; font-size: 17px; }
.contact-channel { font-size: 14px; color: #fff; }
.contact-photo { position: relative; margin: 16px 0; padding: 10px 10px 0; background: var(--paper); color: var(--ink); border-radius: 24px; transform: rotate(2deg); }
.contact-photo>img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 85%; border-radius: 16px; }
.contact-photo figcaption { padding: 17px 12px 20px; text-align: center; font-size: 21px; font-weight: 650; letter-spacing: -.035em; }
.contact-seal { position: absolute; top: -25px; right: -8px; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); transform: rotate(-12deg); }
.contact-seal img { width: 54px; height: 50px; object-fit: contain; }
.contact a:focus-visible { outline-color: var(--yellow); }
.footer { padding-block: 40px 26px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 34px; }
.footer-top>p { max-width: 330px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.footer-top>div { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-top .text-link { border: 0; font-size: 16px; }
.footer-wordmark { display: block; width: 100%; padding-block: 20px 38px; }
.footer-vector { display: block; width: 100%; height: auto; overflow: visible; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; color: var(--muted); }
.footer-bottom .text-link { border: 0; font-size: 15px; }
@media (max-width: 960px) {
    .contact>.wrap { gap: 38px; }
    .contact h2 { font-size: 42px; }
    .contact-copy>p:not(.eyebrow) { font-size: 18px; }
    .footer-top { align-items: flex-start; }
    .footer-top>div { justify-content: flex-end; gap: 8px 20px; }
}
@media (max-width: 700px) {
    .contact { padding-block: 48px 42px; }
    .contact>.wrap { grid-template-columns: minmax(0,1fr); gap: 36px; }
    .contact h2 { font-size: clamp(32px,8.6vw,52px); }
    .contact .eyebrow { margin-bottom: 20px; }
    .contact-copy>p:not(.eyebrow) { font-size: 18px; margin-block: 22px 26px; }
    .contact-actions .button { width: 100%; padding-inline: 16px; font-size: 16px; }
    .contact-channel { font-size: 13px; align-self: center; }
    .contact-photo { width: min(100% - 18px,360px); justify-self: center; margin: 10px 0 0; }
    .contact-seal { width: 70px; height: 70px; right: -12px; top: -18px; }
    .contact-seal img { width: 43px; height: 40px; }
    .contact-photo figcaption { font-size: 19px; padding-block: 14px 16px; }
    .footer { padding-block: 30px 24px; }
    .footer-top { flex-direction: column; gap: 16px; padding-bottom: 20px; }
    .footer-top>p { font-size: 16px; max-width: 100%; }
    .footer-top>div { justify-content: flex-start; gap: 4px 22px; }
    .footer-top .text-link { font-size: 15px; }
    .footer-wordmark { padding-block: 18px 28px; }
    .footer-bottom { flex-wrap: wrap; gap: 12px 20px; padding-top: 20px; }
    .footer-bottom>span { width: 100%; }
}

/* Original logo paths: visible by default, animated only after intersection. */
.wordmark-fill { fill: #101010; transform-box: fill-box; transform-origin: center; }
.wordmark-school .wordmark-fill { opacity: .9; }
.wordmark-outline { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; }
.wordmark-outline path { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }

/* November photography: full-width school life and the founder's portrait. */
.photo-slider { position: relative; isolation: isolate; overflow: hidden; }
.photo-slides, .photo-slide { position: absolute; inset: 0; }
.photo-slide { opacity: 0; transition: opacity 900ms ease; }
.photo-slide.is-active { opacity: 1; z-index: 1; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-controls { display: none; align-items: center; gap: 6px; position: absolute; z-index: 4; bottom: 26px; right: 32px; padding: 4px; border: 1px solid #ffffff55; border-radius: 40px; background: #10222ee6; color: white; }
.is-ready .slider-controls { display: flex; }
.slider-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; line-height: 1; }
.slider-controls button:hover { background: #ffffff20; }
.slider-controls button:focus-visible { outline-color: var(--yellow); outline-offset: 2px; }
.slider-arrow { font-size: 23px; }
.slider-pause { font-size: 18px; border-left: 1px solid #ffffff35; }
.slider-dots { display: flex; }
.slider-dots button { width: 30px; }
.slider-dots span { width: 6px; height: 6px; border-radius: 50%; background: #ffffff70; transition: width 250ms ease, background 250ms ease; }
.slider-dots [aria-current=true] span { width: 20px; border-radius: 8px; background: var(--yellow); }
.hero.hero-background { display: block; position: relative; padding: 0; color: white; background: #10222e; isolation: isolate; }
.hero-background .hero-slider { position: absolute; inset: 0; }
.hero-slider::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, #0c1d2be8, #0c1d2b70 55%, #0c1d2b08), linear-gradient(0deg, #0c1d2bb3, transparent 65%); }
.hero-slider .photo-slide img { object-position: center 38%; }
.hero-content { position: relative; z-index: 3; min-height: clamp(620px, 47vw, 760px); display: flex; align-items: flex-end; padding-block: 80px; pointer-events: none; }
.hero-content .hero-copy { max-width: 790px; padding: 0; }
.hero-content a { pointer-events: auto; }
.hero-background h1 { font-size: clamp(48px, 4.7vw, 74px); }
.hero-background h1 span { color: #96d4fc; }
.hero-background .eyebrow { color: #fff; }
.hero-background .hero-intro { color: #f0f4f7; max-width: 590px; font-size: 18px; line-height: 1.7; margin-block: 24px 30px; }
.hero-background .text-link:hover { color: #b6e2ff; }
.founder-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder-slider { aspect-ratio: 4 / 5; width: 100%; max-width: 510px; border-radius: 24px; background: #e2eaf0; }
.founder-slider .photo-slide:first-child img { object-fit: cover; object-position: center bottom; }
.founder-slider .photo-slide:nth-child(2) img { object-position: center 32%; }
.founder-slider::after { content: ''; position: absolute; z-index: 2; inset: 45% 0 0; background: linear-gradient(transparent, #10222eeb); pointer-events: none; }
.founder-caption { position: absolute; z-index: 3; bottom: 100px; left: 28px; right: 28px; color: white; }
.founder-caption span { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.founder-caption strong { display: block; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.founder-slider .slider-controls { left: 24px; right: auto; bottom: 24px; }
.about-learning { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.about-learning>.about-detail { margin-top: 0; }
.about-learning>.about-detail p { font-size: 18px; line-height: 1.7; color: var(--muted); }
.about-learning .about-partner { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: center; }
.about-learning .about-certificate img { height: 180px; }
.about-learning .about-certificate .text-link { font-size: 13px; }
.about-learning .about-partner h3 { margin-top: 0; }
.about-learning .about-partner .text-link { margin-top: 12px; }
@media (max-width: 1000px) {
    .hero-content { min-height: 650px; padding-block: 70px 105px; }
    .hero-background h1 { font-size: 56px; }
    .hero-slider .slider-controls { bottom: 22px; right: 32px; }
    .founder-feature { gap: 30px; }
    .founder-feature .about-intro { font-size: 28px; }
    .founder-feature .about-copy p { font-size: 16px; }
    .about-learning { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 700px) {
    .hero.hero-background { gap: 0; }
    .hero-background .hero-slider { bottom: auto; height: 310px; width: 100%; }
    .hero-slider::after { background: linear-gradient(0deg, #10222e, transparent 45%); }
    .hero-slider .photo-slide img { object-position: center; }
    .hero-content { min-height: 0; padding-block: 325px 38px; }
    .hero-background h1 { font-size: clamp(34px, 8.6vw, 56px); }
    .hero-background .eyebrow { font-size: 12px; margin-bottom: 18px; }
    .hero-background .hero-intro { font-size: 16px; margin-block: 20px 24px; }
    .hero-background .hero-actions { gap: 12px 22px; }
    .hero-slider .slider-controls { right: 20px; bottom: 8px; }
    .founder-feature { grid-template-columns: 1fr; gap: 32px; }
    .founder-slider { max-width: 460px; justify-self: center; }
    .founder-feature .about-copy p { font-size: 17px; }
    .founder-caption { left: 24px; right: 24px; }
    .founder-caption strong { font-size: 30px; }
    .about-learning { margin-top: 34px; padding-top: 30px; }
    .about-learning .about-partner { grid-template-columns: 100px 1fr; padding: 20px; gap: 18px; }
    .about-learning .about-certificate img { height: 145px; }
    .about-learning .about-partner h3 { font-size: 22px; }
}
@media (max-width: 380px) {
    .hero-background .hero-slider { height: 270px; }
    .hero-content { padding-top: 285px; }
    .slider-controls { gap: 2px; }
    .about-learning .about-partner { grid-template-columns: 1fr; }
    .about-learning .about-certificate img { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
    .photo-slide, .slider-dots span { transition: none; }
}

/* Playful school motion: lively typography, photographic depth and tactile controls. */
:root { --ease-out: cubic-bezier(.16,1,.3,1); }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.header { transition: background-color 350ms, box-shadow 350ms; }
.header.is-scrolled { background: #f7f6f1f2; box-shadow: 0 8px 30px #172a350c; backdrop-filter: blur(14px); }
.header-actions { gap: 14px; }
.motion-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; transition: color 250ms, background-color 250ms; }
.motion-toggle:hover { color: var(--blue); background: #e5eef3; }
.motion-toggle[aria-pressed=true] { color: var(--muted); background: var(--cream); }
.motion-toggle[aria-pressed=true] svg { opacity: .55; }
.motion-toggle:disabled { cursor: default; }
.hero-background { overflow: clip; }
.hero-doodles { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hero-doodles>span { position: absolute; display: block; animation-play-state: paused; }
.doodle-hello { right: 8%; top: 14%; padding: 10px 25px 14px; border-radius: 26px 26px 5px 26px; color: var(--ink); background: var(--yellow); font-size: clamp(30px,3.4vw,52px); line-height: 1.15; font-weight: 650; letter-spacing: -.05em; rotate: -9deg; animation: speech-float 5s ease-in-out infinite; }
.doodle-hello span { font-size: .65em; margin-left: 10px; }
.doodle-salem { right: 5%; top: 37%; padding: 10px 22px; border: 1px solid #ffffffa0; border-radius: 25px 25px 25px 4px; background: #10222e85; color: white; font-size: 23px; font-weight: 600; rotate: 8deg; animation: speech-float 6s -2s ease-in-out infinite; }
.doodle-star { top: 14%; right: 29%; color: var(--yellow); font-size: 76px; line-height: 1; animation: star-turn 24s linear infinite; }
.doodle-orbit { position: absolute; top: 33%; right: 22%; width: 140px; color: #fff9; rotate: -12deg; }
.motion-ribbon { overflow: hidden; margin-block: 12px 0; padding-block: 20px; background: var(--yellow); color: var(--ink); user-select: none; }
.ribbon-track { display: flex; width: max-content; animation: ribbon-travel 32s linear infinite; animation-play-state: paused; }
.ribbon-copy { display: flex; align-items: center; flex-shrink: 0; gap: 40px; padding-right: 40px; }
.ribbon-copy>span { font-size: clamp(30px,3.7vw,56px); font-weight: 650; line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }
.ribbon-copy>span:nth-of-type(2) { color: var(--blue-dark); }
.ribbon-copy i { font-size: 32px; font-style: normal; }
.motion-ribbon:hover .ribbon-track { animation-play-state: paused; }
.hero-slider .photo-slide img { animation: photo-breathe 7s var(--ease-out) both; animation-play-state: paused; }
.hero-slider .photo-slide:not(.is-active) img { animation: none; }
.hero.motion-in-view .is-active img, .hero.motion-in-view .hero-doodles>span,
.motion-ribbon.motion-in-view:not(:hover) .ribbon-track { animation-play-state: running; }
.section-heading h2 { text-wrap: balance; }
.motion-photo { overflow: hidden; }
.motion-photo img { scale: 1.075; translate: 0 var(--media-drift,0px); transition: scale 700ms var(--ease-out); }
.photo-slider, .story-photo, .harvard-image, .film-image, .tedx-photo { transition: box-shadow 500ms var(--ease-out); }
.course-card, .price-card, .price-format, .about-partner, .branch-open { transition: box-shadow 450ms var(--ease-out), border-color 350ms, background-color 350ms, transform 450ms var(--ease-out); }
.button { position: relative; isolation: isolate; overflow: hidden; transition: background-color 250ms, box-shadow 350ms, transform 400ms var(--ease-out); }
.button::after { content: ''; position: absolute; inset: -90% -30%; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, #ffffff30 49%, transparent 63%); transform: translateX(-110%); transition: transform 700ms var(--ease-out); }
.text-link { background-image: linear-gradient(currentColor,currentColor); background-repeat: no-repeat; background-position: left calc(100% - 1px); background-size: 0 1px; transition: background-size 400ms var(--ease-out), color 250ms; }
.level-tabs button, .quiz-options button, .slider-controls button, .student-controls button, .globe-controls button, .world-destinations button { transition: background-color 250ms, color 250ms, box-shadow 300ms, transform 350ms var(--ease-out); }
.faq-row summary, .course-row summary { transition: color 250ms, padding-left 350ms var(--ease-out); }
.faq-row .plus, .course-row .plus { transition: transform 450ms var(--ease-out); }
.proof-strip .proof-icon { transform-origin: left center; transition: transform 500ms var(--ease-out); }
.club .calendar strong, .club .club-free { animation: club-bob 5s ease-in-out infinite; animation-play-state: paused; }
.club.motion-in-view .calendar strong, .club.motion-in-view .club-free { animation-play-state: running; }
.club .club-free { animation-delay: -2s; }
.contact-photo { animation: postcard-sway 7s ease-in-out infinite; animation-play-state: paused; }
.contact.motion-in-view .contact-photo { animation-play-state: running; }
.contact-seal { animation: seal-turn 24s linear infinite; animation-play-state: paused; }
.contact.motion-in-view .contact-seal { animation-play-state: running; }
.globe-stage { isolation: isolate; }
.globe-stage::before { content: ''; position: absolute; width: 67%; aspect-ratio: 1; border: 1px dashed #9fd4ef50; border-radius: 50%; top: 50%; left: 50%; translate: -50% -50%; pointer-events: none; animation: star-turn 60s linear infinite; animation-play-state: paused; z-index: -1; }
.world.motion-in-view .globe-stage::before { animation-play-state: running; }
@keyframes speech-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes star-turn { to { rotate: 360deg; } }
@keyframes ribbon-travel { to { transform: translateX(-50%); } }
@keyframes photo-breathe { from { transform: scale(1.025); } to { transform: scale(1.085); } }
@keyframes club-bob { 0%,100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -5px; rotate: 2deg; } }
@keyframes postcard-sway { 0%,100% { rotate: -.5deg; translate: 0 0; } 50% { rotate: 1deg; translate: 0 -9px; } }
@keyframes seal-turn { from { rotate: -12deg; } to { rotate: 348deg; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html:not([data-motion=paused]) .motion-depth:hover { transform: perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-5px); box-shadow: 0 18px 40px #172a3514; }
    html:not([data-motion=paused]) .price-format:hover, html:not([data-motion=paused]) .about-partner:hover { transform: translateY(-5px); box-shadow: 0 14px 35px #172a3510; }
    html:not([data-motion=paused]) .button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #102e4325; }
    html:not([data-motion=paused]) .button:hover::after { transform: translateX(110%); }
    .text-link:hover { background-size: 100% 1px; }
    html:not([data-motion=paused]) .motion-photo:hover img { scale: 1.11; }
    html:not([data-motion=paused]) .proof-strip>div:hover .proof-icon { transform: translateY(-4px) rotate(-8deg) scale(1.1); }
    html:not([data-motion=paused]) .film:hover .play { transform: scale(1.14) rotate(-5deg); }
    html:not([data-motion=paused]) .faq-row summary:hover, html:not([data-motion=paused]) .course-row summary:hover { padding-left: 10px; color: var(--blue-dark); }
    html:not([data-motion=paused]) .level-tabs button:hover, html:not([data-motion=paused]) .quiz-options button:hover { transform: translateY(-2px); }
}
.play { transition: background-color 250ms, transform 450ms var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
    .mobile-booking:not([hidden]) { animation: booking-in 600ms var(--ease-out); }
    .faq-row[open]>p, .course-row[open]>.course-detail { animation-duration: 450ms; }
}
@keyframes booking-in { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1150px) {
    .header-actions { gap: 10px; }
    .doodle-star { right: 24%; font-size: 58px; }
    .doodle-orbit { right: 18%; width: 110px; top: 42%; }
}
@media (max-width: 700px) {
    .header-actions { gap: 4px; }
    .motion-toggle { width: 36px; height: 44px; border: 0; }
    .header-inner { gap: 4px; }
    .header-inner .brand { width: clamp(124px,32vw,160px); }
    .languages { gap: 2px; }
    .hero-doodles { height: 310px; }
    .doodle-hello { top: 18px; right: 18px; font-size: 27px; padding: 7px 15px 9px; }
    .doodle-salem { display: none !important; }
    .doodle-star { top: 32px; left: 18px; right: auto; font-size: 40px; }
    .doodle-orbit { display: none; }
    .motion-ribbon { padding-block: 16px; margin-top: 0; }
    .ribbon-copy { gap: 26px; padding-right: 26px; }
    .ribbon-copy>span { font-size: 32px; }
    .ribbon-copy i { font-size: 25px; }
    .motion-photo img { translate: none; scale: 1; }
    .hero-slider .photo-slide img { animation-name: none; }
}
html[data-motion=paused] *, html[data-motion=paused] *::before, html[data-motion=paused] *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html[data-motion=paused] .motion-photo img { translate: none; scale: 1; }
html[data-motion=paused] .motion-depth { transform: none !important; }
html.motion-document-hidden *, html.motion-document-hidden *::before, html.motion-document-hidden *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .motion-photo img { translate: none; scale: 1; }
}
@media (min-width: 961px) and (max-width: 1360px) {
    .desktop-nav { gap: 16px; }
    .header-inner { gap: 18px; }
    .header-actions .button { white-space: nowrap; font-size: 13px; padding-inline: 17px; }
    .header-actions .languages { font-size: 14px; gap: 3px; }
}
.photo-slider[data-paused=true] .photo-slide img { animation-play-state: paused !important; }
