/* Landing page — intentionally composed for tablets and phones. */
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  body { width: 100%; overflow-x: hidden; }
  .hero { min-height: 820px; border-bottom-left-radius: 50% 34px; border-bottom-right-radius: 50% 34px; }
  .hero-inner { padding-top: 118px; padding-bottom: 105px; }
  .hero h1 { font-size: clamp(52px, 12vw, 78px); line-height: .98; }
  .hero-sub { max-width: 570px; }
  .stats { margin-top: -58px; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 178px; padding: 28px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .stat:nth-child(5) { grid-column: 1 / -1; min-height: 150px; }
  .legacy { padding-top: 100px; }
  .legacy-copy p { max-width: 650px; }
  .journey-head,.campus-head { margin-bottom: 45px; }
  .cta { padding: 85px 0; }
  .voices-grid,.enquiry-grid,.grow-inner { gap: 64px; }
  .tour-heading { gap: 25px; }
}

@media (max-width: 640px) {
  :root { --mobile-gutter: 20px; }
  .container { width: calc(100% - (var(--mobile-gutter) * 2)); }
  .section { padding: 68px 0; }
  .rv { transition-duration: .7s; }
  .btn { min-height: 52px; padding: 14px 18px; border-radius: 12px; font-size: 9px; letter-spacing: .14em; }
  .eyebrow { gap: 9px; margin-bottom: 15px; font-size: 8px; line-height: 1.5; letter-spacing: .2em; }
  .eyebrow:before { width: 24px; }
  h2.title { font-size: clamp(37px, 11vw, 48px); line-height: .98; letter-spacing: -.015em; }

  /* Navigation */
  .nav { padding: 12px 0; }
  .nav.scrolled { padding: 8px 0 !important; }
  .brand .brand-full { height: 52px; }
  .nav.scrolled .brand .brand-full { height: 44px !important; }
  .nav-inner:after { bottom: -8px; }
  .burger { width: 31px; height: 24px; }
  .burger span:nth-child(2) { top: 11px; }
  .burger span:nth-child(3) { top: 20px; }
  .mobile-menu-inner { width: calc(100% - 34px); padding-top: 83px; }

  /* Hero */
  .hero { min-height: max(690px, 92svh); justify-content: flex-start; border-bottom-left-radius: 50% 24px; border-bottom-right-radius: 50% 24px; }
  .hero-inner { padding-top: 138px; padding-bottom: 112px; }
  .hero h1 { max-width: 340px; font-size: clamp(45px, 13vw, 58px); line-height: .95; letter-spacing: -.025em; }
  .hero h1 .line + .line { margin-top: 7px; }
  .hero-sub { max-width: 330px; margin-top: 23px; font-size: 13.5px; line-height: 1.72; }
  .hero-ctas { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 28px; }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .hero-scroll { display: none; }

  /* The proof points are a compact dashboard, not five desktop columns. */
  .stats { margin-top: -46px; }
  .stats .container { width: calc(100% - 28px); }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 22px; box-shadow: 0 20px 55px rgba(8,20,13,.34); }
  .stat { min-height: 132px; padding: 19px 7px; border-top: 1px solid rgba(201,162,75,.15); }
  .stat:nth-child(1),.stat:nth-child(2) { border-top: 0; }
  .stat:nth-child(odd):not(:last-child) { border-right: 1px solid rgba(201,162,75,.15); }
  .stat:nth-child(5) { min-height: 112px; padding-block: 17px; border-right: 0; }
  .stat .ic { width: 27px; height: 27px; margin-bottom: 9px; }
  .stat:nth-child(5) .ic { margin-bottom: 7px; }
  .stat .num { font-size: 29px; }
  .stat .lbl { max-width: 130px; margin-top: 7px; font-size: 7px; line-height: 1.45; letter-spacing: .16em; }

  /* Legacy + interactive book */
  .legacy { padding: 78px 0 62px; }
  .legacy .legacy-grid { gap: 38px; }
  .legacy-copy { text-align: center; }
  .legacy-copy .eyebrow { justify-content: center; }
  .legacy-copy p { max-width: 520px; margin: 18px auto 0; font-size: 13.5px; line-height: 1.76; }
  .legacy-link { width: max-content; margin: 24px auto 0; font-size: 8.5px; letter-spacing: .14em; }
  .legacy-book-shell { padding: 19px 12px 15px; border: 1px solid rgba(25,65,43,.1); border-radius: 19px; background: rgba(255,255,255,.52); box-shadow: 0 16px 45px rgba(19,48,32,.08); }
  .legacy-book-heading { gap: 8px; margin: 0 0 4px; }
  .legacy-book-heading span { font-size: 6.5px; letter-spacing: .16em; }
  .legacy-book-heading strong { font-size: 13px; }
  .legacy-book-stage { min-height: 230px; }
  .legacy-book-wrap { width: 100%; max-width: 100%; }
  .legacy-book-nav { width: 34px; height: 34px; bottom: -3px; font-size: 15px; }
  .legacy-book-controls { gap: 7px; margin-top: 3px; font-size: 7px; }
  .legacy-book-progress { width: 74px; }
  .legacy-book-caption { font-size: 8px; }

  /* A real chronological timeline: compact, continuous and readable at a glance. */
  .legacy-timeline.timeline { display: block; width: 100%; margin: 3px 0 0; padding: 4px 0 3px; overflow: visible; }
  .legacy-timeline.timeline:before { display: block; top: 25px; bottom: 25px; left: 50%; right: auto; width: 1px; height: auto; background: linear-gradient(to bottom,rgba(201,162,75,.12),rgba(201,162,75,.75) 12%,rgba(201,162,75,.75) 88%,rgba(201,162,75,.12)); transform: translateX(-50%); }
  .legacy-timeline .t-item { min-height: 108px; padding: 7px 0; text-align: left; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .legacy-timeline .t-item + .t-item { margin-top: 11px; }
  .legacy-timeline .t-item:last-child { grid-column: auto; }
  .legacy-timeline .t-item .t-ic { position: absolute; z-index: 2; top: 0; left: 50%; width: 48px; height: 48px; margin: 0; padding: 11px; border: 1px solid rgba(24,67,44,.17); border-radius: 50%; color: var(--green-800); background: var(--cream); transform: translateX(-50%); }
  .legacy-timeline .t-item .dot { position: absolute; z-index: 3; top: 61px; left: 50%; width: 7px; height: 7px; margin: 0; box-shadow: 0 0 0 4px var(--cream),0 0 0 5px rgba(201,162,75,.35); transform: translateX(-50%); }
  .legacy-timeline .t-item .yr,.legacy-timeline .t-item .lb { width: calc(50% - 43px); }
  .legacy-timeline .t-item:nth-child(odd) .yr,.legacy-timeline .t-item:nth-child(odd) .lb { margin-left: calc(50% + 43px); text-align: left; }
  .legacy-timeline .t-item:nth-child(even) .yr,.legacy-timeline .t-item:nth-child(even) .lb { margin-left: 0; text-align: right; }
  .legacy-timeline .t-item .yr { padding-top: 4px; font-size: 25px; line-height: 1; }
  .legacy-timeline .t-item .lb { margin-top: 8px; font-size: 7.5px; line-height: 1.45; letter-spacing: .12em; }

  /* Learning stages */
  .journey { padding-bottom: 60px; }
  .journey-head { display: block; margin-bottom: 30px; }
  .journey-head p { margin-top: 18px; font-size: 13px; line-height: 1.72; }
  .j-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: 100%; padding: 0; overflow: visible; }
  .j-card { min-width: 0; min-height: 178px; padding: 18px 16px; border-radius: 15px; }
  .j-card:hover { transform: none; }
  .j-card .j-num { font-size: 8px; line-height: 1.45; letter-spacing: .07em; }
  .j-card h3 { margin: 37px 0 7px; font-size: 21px; line-height: 1.08; }
  .j-card .j-tag { max-width: 116px; padding-right: 4px; font-size: 8.5px; line-height: 1.45; }
  .j-card .j-arrow { right: 13px; bottom: 13px; width: 29px; height: 29px; font-size: 13px; }

  /* Campus facilities */
  .campus { padding-bottom: 58px; }
  .campus-head { display: block; margin-bottom: 29px; }
  .campus-head p { margin-top: 18px; font-size: 13px; line-height: 1.72; }
  .c-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 148px; gap: 10px; width: 100%; padding: 0; overflow: visible; }
  .c-tile,.c-tile:nth-child(1),.c-tile:nth-child(5) { min-width: 0; min-height: 0; padding: 16px; border-radius: 15px; }
  .c-tile:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .c-tile .c-ic { top: 16px; left: 16px; width: 30px; height: 30px; }
  .c-tile .c-label { max-width: 125px; gap: 7px; font-size: 7.5px; line-height: 1.4; letter-spacing: .1em; }
  .c-tile .c-label:before { width: 14px; }
  .c-tile .c-big { right: -5px; bottom: -12px; font-size: 72px; }

  /* Virtual tour */
  .virtual-tour { padding: 66px 0 70px; }
  .tour-heading { display: block; margin-bottom: 25px; }
  .tour-intro { margin-top: 18px; padding: 0; font-size: 13px; line-height: 1.7; }
  .tour-intro p { margin-bottom: 14px; }
  .tour-intro span { font-size: 6.5px; letter-spacing: .11em; }
  .tour-frame { padding: 4px; border-radius: 18px; box-shadow: 0 20px 50px rgba(11,42,27,.18); }
  .tour-video { aspect-ratio: 4 / 3; border-radius: 14px; }
  .tour-badge { left: 14px; bottom: 13px; }
  .tour-badge span { font-size: 6px; }
  .tour-badge strong { max-width: 105px; font-size: 14px; line-height: 1.05; }
  .tour-controls { right: 10px; bottom: 10px; gap: 5px; }
  .tour-control { width: 34px; height: 34px; }
  .tour-control:hover { transform: none; }
  .tour-control svg { width: 15px; height: 15px; }
  .tour-volume-wrap { width: 70px; height: 34px; padding-inline: 8px; }
  .tour-volume-wrap label { display: none; }
  .tour-progress { left: 12px; right: 12px; bottom: 55px; }
  .tour-time { margin-top: 4px; font-size: 7px; }

  /* Admissions */
  .cta { margin: 0 12px; padding: 58px 21px; border-radius: 24px; }
  .cta-inner { display: block; width: 100%; }
  .cta .kicker { margin-bottom: 14px; font-size: 7px; line-height: 1.6; letter-spacing: .18em; }
  .cta h2 { font-size: 40px; line-height: 1; }
  .cta p { max-width: 310px; margin-top: 17px; font-size: 13px; line-height: 1.7; }
  .cta-actions { display: grid; gap: 9px; margin-top: 29px; }

  /* Director and news are distinct mobile stories. */
  .voices { padding: 66px 0; }
  .voices-grid { gap: 25px; }
  .voices-grid > div:first-child { padding: 27px 22px 28px; border: 1px solid rgba(24,67,44,.1); border-radius: 20px; background: #faf7ef; }
  .quote-mark { height: 48px; font-size: 82px; }
  .d-quote { margin-top: 13px; font-size: 24px; line-height: 1.34; }
  .d-body { margin-top: 17px; font-size: 12.5px; line-height: 1.7; }
  .d-person { gap: 13px; margin-top: 24px; }
  .d-person img { width: 56px; height: 56px; }
  .d-person .nm { font-size: 17px; }
  .d-person .rl { font-size: 8px; }
  .voices-grid > div:last-child { padding-top: 22px; }
  .news-head { margin-bottom: 9px; }
  .news-head .nh { font-size: 8px; letter-spacing: .17em; }
  .news-head a { font-size: 7px; }
  .news-item { gap: 13px; padding: 17px 0; }
  .news-item:hover { padding-left: 0; }
  .news-item .n-date { min-width: 49px; padding: 8px 4px; border-radius: 10px; }
  .news-item .n-date .d { font-size: 20px; }
  .news-item .n-date .m { font-size: 7px; }
  .news-item h4 { font-size: 16px; }
  .news-item p { margin-top: 5px; font-size: 10.5px; line-height: 1.5; }

  /* Careers */
  .grow { padding: 65px 0; text-align: center; }
  .grow .eyebrow { justify-content: center; }
  .grow-inner { display: block; }
  .grow h2 { font-size: 39px; }
  .grow p { margin: 17px auto 0; font-size: 13px; line-height: 1.72; }
  .grow-points { display: flex; justify-content: center; gap: 9px; margin-top: 23px; }
  .grow-point { padding: 10px 12px; border: 1px solid rgba(201,162,75,.15); border-radius: 99px; font-size: 9px; background: rgba(244,241,233,.04); }
  .grow-point svg { width: 15px; height: 15px; }
  .grow-cta { gap: 9px; margin-top: 30px; }
  .grow-note { margin-top: 5px; font-size: 9px; }

  /* Awards */
  .awards { padding: 62px 0; }
  .awards-head { margin-bottom: 31px; padding-inline: 6px; }
  .awards-head .eyebrow { letter-spacing: .13em; }
  .awards-head .eyebrow:after { width: 24px; }
  .awards-head h2 { max-width: 330px; margin: 7px auto 0; font-size: 29px; }
  .marquee-track,.marquee-group { gap: 11px; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 5.5px)); } }
  .award-item { width: 128px; height: 88px; padding: 15px; border-radius: 12px; }

  /* Enquiry */
  .enquiry { padding: 66px 0 70px; }
  .enquiry-grid { gap: 34px; }
  .enquiry-copy h2 { font-size: 39px; }
  .enquiry-copy p { margin-top: 16px; font-size: 13px; line-height: 1.72; }
  .enquiry-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 26px; }
  .enquiry-contact a,.enquiry-contact .ec-row { min-width: 0; gap: 10px; padding: 14px 11px; border: 1px solid rgba(201,162,75,.14); border-radius: 13px; background: rgba(244,241,233,.035); }
  .enquiry-contact .ec-row { grid-column: 1 / -1; }
  .ec-ic { width: 32px; height: 32px; }
  .ec-ic svg { width: 14px; height: 14px; }
  .ec-label { font-size: 6.5px; letter-spacing: .14em; }
  .ec-val { font-size: 9.5px; line-height: 1.5; overflow-wrap: anywhere; }
  .enquiry-form { padding: 28px 18px 21px; border-radius: 21px; box-shadow: 0 24px 55px rgba(2,16,10,.42); }
  .enquiry-form:before { left: 22px; right: 22px; }
  .enquiry-form .ef-title { font-size: 26px; }
  .enquiry-form .ef-title:after { margin-top: 11px; }
  .enquiry-form .ef-sub { margin: 9px 0 22px; font-size: 10px; }
  .ef-row { grid-template-columns: 1fr; gap: 0; }
  .ef-field { margin-bottom: 13px; }
  .ef-field label { margin-bottom: 7px; font-size: 7.5px; }
  .ef-field input,.ef-field textarea { min-height: 49px; padding: 12px 13px; border-radius: 10px; font-size: 12px; }
  .ef-field textarea { min-height: 88px; }
  .enquiry-form .g-recaptcha { width: 125%; margin-bottom: -5px; transform: scale(.8); transform-origin: left top; }
  .ef-submit { min-height: 51px; border-radius: 10px; }

  /* The shared footer supplies its own mobile composition. */
  footer .f-grid { display: none; }
}

@media (max-width: 390px) {
  :root { --mobile-gutter: 17px; }
  .hero { min-height: max(650px, 90svh); }
  .hero-inner { padding-top: 126px; }
  .hero h1 { font-size: 43px; }
  .stat { min-height: 125px; }
  .stat .lbl { font-size: 6.5px; }
  .legacy-book-stage { min-height: 210px; }
  .legacy-timeline .t-item { min-height: 102px; }
  .legacy-timeline .t-item .yr,.legacy-timeline .t-item .lb { width: calc(50% - 38px); }
  .legacy-timeline .t-item:nth-child(odd) .yr,.legacy-timeline .t-item:nth-child(odd) .lb { margin-left: calc(50% + 38px); }
  .j-grid { gap: 8px; }
  .j-card { min-height: 170px; padding: 16px 13px; }
  .j-card h3 { font-size: 19px; }
  .j-card .j-tag { max-width: 105px; font-size: 8px; }
  .c-grid { grid-auto-rows: 140px; gap: 8px; }
  .c-tile,.c-tile:nth-child(1),.c-tile:nth-child(5) { padding: 14px; }
  .c-tile .c-ic { top: 14px; left: 14px; width: 28px; height: 28px; }
  .c-tile .c-label { font-size: 7px; }
  .tour-volume-wrap { display: none; }
  .tour-badge strong { max-width: 92px; font-size: 12px; }
  .cta { margin-inline: 9px; padding-inline: 18px; }
  .grow-point { padding-inline: 9px; font-size: 8px; }
  .enquiry-contact { grid-template-columns: 1fr; }
  .enquiry-contact .ec-row { grid-column: auto; }
}

@media (hover: none) and (pointer: coarse) {
  .j-card:hover,.c-tile:hover,.award-item:hover { transform: none; }
  .marquee:hover .marquee-track { animation-play-state: running; }
}
