/* Shared page shell: the same paper, ink, red and editorial type throughout. */
.site-page { background-color: var(--paper-warm); }
.site-page .site-nav { background: rgba(250,250,250,.96); border-bottom: 1px solid var(--grey-line); }
.site-page .site-nav .nav-wordmark { white-space: nowrap; }
.site-page .nav-wordmark { opacity: 1; transform: none; }
.site-page .site-footer { min-height: auto; padding: 32px 0; }
.site-page .page-break > .container { opacity: 1; transform: none; }
.site-page .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cta-short { display: none; }
.nav-actions > .nav-cta { color: white; background: var(--ink); border-radius: var(--radius-pill); padding: 12px 20px; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-menu { display: none; position: relative; }
.page-menu summary { cursor: pointer; font-size: 12px; font-weight: 600; padding: 12px 4px; }
.page-menu nav { position: absolute; right: 0; top: calc(100% + 12px); width: 230px; padding: 12px; border: 1px solid var(--grey-line); border-radius: 16px; background: var(--paper); box-shadow: 0 12px 30px #0001; }
.page-menu nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: 14px; }
.page-menu nav a[aria-current="page"] { color: var(--accent); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-page main { padding-top: 72px; }
.home-page main { padding-top: 0; }
.home-page .hero { height: 175svh; }
.home-page .hero-sticky { position: sticky; top: 0; }
.home-page .hero .scroll-cue { color: var(--ink-soft); text-decoration: none; font-size: 11px; letter-spacing: .12em; }
.site-page .page-break, .site-page .reveal, .site-page .vortex-reveal { opacity: 1 !important; visibility: visible !important; transform: none !important; filter: none !important; }
.site-page .section-scroll-guide { display: none; }
.page-kicker { color: var(--accent); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; }
.home-intro { width: var(--mosaic-width); max-width: 1320px; margin: 0 auto 20px; padding: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-shrink: 0; }
.home-intro h2 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; margin: 10px 0 0; }
.home-intro h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--accent); }
.home-intro__line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.home-intro__line > * { display: block; transform-origin: left bottom; }
.home-intro__description { font-size: 14px; color: var(--ink-soft); line-height: 1.6; padding-bottom: 6px; }
.home-page .converging-grid { background: transparent; }
.home-page .converging-grid__stage { --mosaic-height: clamp(500px, calc(100svh - 270px), 760px); min-height: auto; padding: 88px 40px 24px; background: none; overflow: visible; }
.home-page .converging-grid.is-animated .converging-grid__stage { min-height: 100svh; padding: 88px 40px 24px; justify-content: flex-start; overflow: clip; }
.home-page .converging-grid.is-animated .converging-grid__mosaic { overflow: clip; }
.home-page .converging-tile { border: 1px solid rgba(10,10,10,.08); }
.home-page .converging-tile__heading { font-weight: 500; }
.home-page .converging-tile__statistic { font-weight: 500; }
@media (min-width: 1100px) and (min-height: 640px) {
  .home-page .converging-tile { padding: 20px; }
  .home-page .converging-tile--wrote { padding: 18px 22px; }
  .home-page .converging-tile--tutors { padding-right: 30%; }
  .home-page .converging-tile--tutors .converging-tile__heading { font-size: 30px; }
  .home-page .converging-tile__text { font-size: 13px; }
  .home-page .converging-tile--wrote .converging-tile__text { font-size: 11px; }
  .home-page .converging-tile--enquire .converging-tile__graphic { width: 180px; margin: 4px 0; }
}
@media (min-width: 1100px) and (min-height: 640px) and (max-height: 850px) {
  .home-intro { margin-bottom: 16px; }
  .home-intro h2 { font-size: 36px; margin: 9px 0; }
}
.home-more { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; padding: 24px; }
.home-more a, .page-intro-links a { color: var(--ink-soft); font-size: 12px; text-underline-offset: 5px; }
.page-intro { padding-top: 48px; padding-bottom: 40px; }
.page-intro h1 { font-size: clamp(44px, 6vw, 78px); line-height: 1; font-weight: 500; letter-spacing: -.06em; margin: 18px 0; }
.page-intro > p:last-of-type { color: var(--ink-soft); font-size: 16px; }
.page-intro-links { display: flex; gap: 24px; margin-top: 24px; }
.page-enquire { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.page-enquire h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.05em; margin: 12px 0; line-height: 1; }
.page-enquire p:last-child { color: var(--ink-soft); font-size: 14px; }
.page-enquire__link { flex-shrink: 0; color: white; background: var(--ink); border-radius: var(--radius-pill); padding: 18px 28px; text-decoration: none; font-size: 14px; }
.page-enquire__link span { margin-left: 24px; }
.page-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.page-footer nav a { color: var(--ink-soft); font-size: 12px; text-decoration: none; }
.page-footer nav a:hover, .home-more a:hover { color: var(--accent); }
.site-page #results.results-leaflets { background: transparent; color: var(--ink); }
.site-page #results .results-opening { min-height: auto; padding: 48px 7vw; }
.site-page #results .results-opening h1 { font-size: clamp(60px, 8vw, 110px); font-weight: 500; line-height: .88; letter-spacing: -.06em; margin: 28px 0; }
.site-page #results .results-opening h1 em { font-family: Georgia,serif; font-weight: 400; color: var(--accent); }
.site-page #results .results-opening-bottom p { color: var(--ink-soft); }
.site-page #results .results-books { display: none; }
.site-page #results .results-leaflet-nav { background: transparent; padding-top: 0; }
.site-page #results .results-leaflet-nav a { color: var(--ink); border-color: #1113; }
.site-page #results .results-leaflet { border-bottom: 6px solid var(--paper-warm); }
.site-page #results .results-leaflet-heading h2 { font-size: clamp(32px,4.3vw,65px); line-height: 1; letter-spacing: -.055em; font-weight: 500; margin: 12px 0 0; }
.site-page .results-leaflet-scroll { height: auto; }
.site-page #tutors.tutor-story-section { padding-top: 48px; padding-bottom: 40px; }
.site-page #tutors .tutor-story-intro { display: block; }
.site-page #tutors .tutor-story { height: auto !important; }
.site-page #tutors .tutor-story__stage { position: relative; top: auto; left: auto; height: auto; width: min(1260px, calc(100% - 48px)); margin: 0 auto; transform: none; box-shadow: none; }
.site-page #tutors .tutor-story__pages { position: relative; inset: auto; }
.site-page #tutors .tutor-story__page:first-child { position: relative; inset: auto; clip-path: none; visibility: visible; }
.site-page #tutors .tutor-story__page-inner { height: auto; padding: 48px; transform: none; }
.site-page #tutors .tutor-story__layout { height: auto; min-height: 540px; grid-template-columns: minmax(0,1fr) minmax(240px,360px) minmax(0,1fr); gap: 28px; }
.site-page #tutors .tutor-story__stat strong { font-size: clamp(23px, 2.6vw, 36px); }
.site-page #tutors .tutor-story__nav { display: none; }
.site-page .section { padding-top: 48px; padding-bottom: 48px; }
.site-page .section > .container { min-width: 0; }
.site-page .enquiry-layout, .site-page .enquiry-form, .site-page .field { min-width: 0; }
.site-page .enquiry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-page .field input, .site-page .field select, .site-page .field textarea { width: 100%; min-width: 0; }
.site-page #classes .class-grid, .site-page #classes .class-grid * { user-select: text; }
@media (max-width: 1099px), (max-height: 639px) {
  .home-page .converging-grid__stage { padding: 32px 24px 12px; }
  .home-page .converging-grid__mosaic { height: auto; }
}
@media (max-width: 1050px) {
  .site-page .nav-links { display: none; }
  .page-menu { display: block; }
}
@media (max-width: 950px) {
  .site-page #tutors .tutor-story__layout { min-height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "identity identity" "portrait portrait" "stat-left stat-top" "stat-mid stat-bottom" "quote quote"; }
  .site-page #tutors .tutor-story__identity { align-self: auto; }
  .site-page #tutors .tutor-story__portrait { width: min(100%, 360px); }
}
@media (max-width: 600px) {
  .site-page .site-nav { padding-left: 18px; padding-right: 18px; }
  .site-page .nav-wordmark { font-size: 10px; letter-spacing: .12em; }
  .nav-actions { gap: 10px; }
  .nav-actions > .nav-cta { min-width: 0; padding: 10px 13px; font-size: 10px; }
  .page-menu nav { position: fixed; top: 76px; left: 18px; right: 18px; width: auto; max-height: calc(100svh - 100px); overflow-y: auto; }
  .site-page .enquiry-layout, .site-page .enquiry-form { grid-template-columns: minmax(0, 1fr); }
  .home-intro { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .home-intro h2 { font-size: clamp(30px,8.6vw,40px); }
  .home-page .converging-grid__stage { padding: 28px 18px 12px; }
  .home-more { justify-content: flex-start; gap: 18px; padding: 24px 18px; }
  .page-enquire { align-items: flex-start; flex-direction: column; padding-top: 40px; padding-bottom: 40px; }
  .site-page #tutors .tutor-story__page-inner { padding: 30px 22px; }
  .site-page #tutors .tutor-story__stage { width: calc(100% - 36px); }
  .page-footer { align-items: flex-start; flex-direction: column; }
  .page-footer nav { gap: 14px 22px; }
}
@media (max-width: 400px) {
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero { height: 100svh; }
  .home-page .hero-sticky { position: relative; }
}

/* A permanent outer viewport prevents document-navigation white flashes. */
.page-view { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 9000; background: #050505; }
body.has-page-view { overflow: hidden; }
body.has-page-view > :not(.page-view):not(.page-transition):not(.page-load-message) { display: none !important; }
.page-load-message { position: fixed; z-index: 10001; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 16px 24px; background: #111; color: #fff; border-radius: 12px; }
