/* New Hill Integral School, October 2026 relaunch.
   Light theme for the whole public site. Every class starts with v4- so the
   older Tailwind layer (tw-used.css, styles.css) cannot clash with it. */

:root {
    --v4-navy: #002060;
    --v4-navy-2: #12306E;
    --v4-ink: #13264B;
    --v4-text: #43516B;
    --v4-muted: #6A7690;
    --v4-gold: #F0C000;
    --v4-gold-2: #E2B400;
    --v4-gold-soft: #FFF6D2;
    --v4-gold-text: #7A5C00;
    --v4-sky: #F3F7FD;
    --v4-sky-2: #E6EEFA;
    --v4-line: #DFE6F2;
    --v4-green: #0E9F6E;
    --v4-wa: #1FAF55;
    --v4-white: #FFFFFF;
    --v4-radius: 22px;
    --v4-radius-sm: 14px;
    --v4-shadow: 0 18px 44px -18px rgba(0, 32, 96, .28);
    --v4-shadow-sm: 0 6px 18px -8px rgba(0, 32, 96, .22);
    --v4-head: 'Baloo 2', 'Hind', system-ui, sans-serif;
    --v4-body: 'Hind', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --v4-hand: 'Kalam', 'Comic Sans MS', cursive;
}

body.v4 {
    background: #fff;
    color: var(--v4-text);
    font-family: var(--v4-body);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}
.v4 *, .v4 *::before, .v4 *::after { box-sizing: border-box; }
.v4 img, .v4 video { max-width: 100%; height: auto; display: block; }
.v4 a { color: inherit; }
.v4 h1, .v4 h2, .v4 h3, .v4 h4 { font-family: var(--v4-head); color: var(--v4-ink); margin: 0; letter-spacing: -0.015em; line-height: 1.12; }
.v4 p { margin: 0; }
.v4 ul, .v4 ol { margin: 0; padding: 0; }

.v4-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.v4-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--v4-navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.v4-skip:focus { left: 8px; }
.v4 :focus-visible { outline: 3px solid var(--v4-gold); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.v4-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--v4-body); font-weight: 700; font-size: 16px; line-height: 1.1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.v4-btn:hover { transform: translateY(-1px); }
.v4-btn-gold { background: var(--v4-gold); color: var(--v4-navy) !important; box-shadow: 0 8px 20px -10px rgba(176, 132, 0, .9); }
.v4-btn-gold:hover { background: var(--v4-gold-2); }
.v4-btn-navy { background: var(--v4-navy); color: #fff !important; }
.v4-btn-navy:hover { background: var(--v4-navy-2); }
.v4-btn-ghost { background: #fff; color: var(--v4-navy) !important; border-color: var(--v4-line); }
.v4-btn-ghost:hover { border-color: var(--v4-navy); }
.v4-btn-wa { background: var(--v4-wa); color: #fff !important; }
.v4 .v4-link { color: var(--v4-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--v4-gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Notice and header */
.v4-notice { background: var(--v4-gold-soft); color: var(--v4-navy); font-size: 14px; font-weight: 600; padding: 8px 0; text-align: center; border-bottom: 1px solid #F3E3A0; }
.v4-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--v4-line); }
.v4-header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.v4-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.v4-brand img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.v4-brand-badge { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--v4-navy); color: var(--v4-gold); display: grid; place-items: center; font-family: var(--v4-head); font-weight: 800; font-size: 15px; }
.v4-brand-text { display: flex; flex-direction: column; min-width: 0; }
.v4-brand-name { font-family: var(--v4-head); font-weight: 800; color: var(--v4-navy); font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v4-brand-tag { font-size: 12.5px; color: var(--v4-muted); font-weight: 600; white-space: nowrap; }
.v4-nav { display: none; margin-left: auto; gap: 4px; }
.v4-nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--v4-ink); white-space: nowrap; }
.v4-nav a:hover { background: var(--v4-sky); }
.v4-nav a.is-current { color: var(--v4-navy); box-shadow: inset 0 -3px 0 var(--v4-gold); border-radius: 0; }
.v4-header-cta { display: none; min-height: 46px; padding: 0 20px; }
.v4-menu-btn { margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--v4-line); background: #fff; color: var(--v4-navy); display: grid; place-items: center; cursor: pointer; }
.v4-mobile { border-top: 1px solid var(--v4-line); background: #fff; padding: 10px 20px 20px; display: grid; gap: 4px; }
.v4-mobile.hidden { display: none; }
.v4-mobile > a:not(.v4-btn) { padding: 13px 4px; font-weight: 600; color: var(--v4-ink); text-decoration: none; border-bottom: 1px solid var(--v4-sky-2); }
.v4-mobile .v4-btn { margin-top: 10px; }
@media (min-width: 1180px) {
    .v4-nav { display: flex; }
    .v4-header-cta { display: inline-flex; }
    .v4-menu-btn, .v4-mobile { display: none !important; }
}

/* Sections */
.v4-sec { padding: 64px 0; }
.v4-sec.is-sky { background: var(--v4-sky); }
.v4-sec.is-tight { padding: 44px 0; }
.v4-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--v4-gold-text); margin-bottom: 12px; }
.v4-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--v4-gold); }
.v4-h1 { font-size: clamp(38px, 6.4vw, 66px); font-weight: 800; color: var(--v4-navy) !important; }
.v4-h2 { font-size: clamp(29px, 3.8vw, 44px); font-weight: 800; color: var(--v4-navy) !important; }
.v4-mark { white-space: nowrap; background: linear-gradient(transparent 64%, #FFE58A 64%, #FFE58A 92%, transparent 92%); padding: 0 .06em; }
.v4-lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--v4-text); margin-top: 20px; max-width: 640px; }
.v4-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 34px; }
.v4-head > div { max-width: 720px; }
.v4-center { text-align: center; }
.v4-center .v4-lead { margin-left: auto; margin-right: auto; }
.v4-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.v4-center .v4-cta-row { justify-content: center; }
.v4-small { font-size: 14.5px; color: var(--v4-muted); }

/* Hero */
.v4-hero { position: relative; overflow: hidden; background:
    radial-gradient(900px 480px at 85% 0%, #E3ECFB 0%, rgba(227, 236, 251, 0) 70%),
    radial-gradient(600px 400px at 0% 100%, #FFF4C9 0%, rgba(255, 244, 201, 0) 70%),
    #FBFCFF; }
.v4-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 32, 96, .07) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.v4-hero-in { position: relative; display: grid; gap: 40px; padding-top: 44px; padding-bottom: 96px; align-items: center; }
.v4-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--v4-line); box-shadow: var(--v4-shadow-sm); font-weight: 700; font-size: 14px; color: var(--v4-navy); margin-bottom: 22px; }
.v4-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--v4-green); box-shadow: 0 0 0 4px rgba(14, 159, 110, .18); }
.v4-proof { list-style: none; display: grid; gap: 10px; margin-top: 24px !important; }
.v4-proof li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--v4-ink); }
.v4-proof li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--v4-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002060' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.v4-hero-media { position: relative; width: min(100%, 470px); margin: 0 auto; }
.v4-hero-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: var(--v4-sky-2); box-shadow: 0 40px 80px -36px rgba(0, 32, 96, .5); border: 6px solid #fff; }
.v4-hero-frame video, .v4-hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.v4-hero-tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 700; color: var(--v4-navy); }
.v4-hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.v4-float { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--v4-shadow); padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.v4-float b { display: block; font-family: var(--v4-head); color: var(--v4-navy); font-size: 22px; line-height: 1; }
.v4-float span { font-size: 13px; font-weight: 600; color: var(--v4-muted); line-height: 1.25; }
.v4-float.is-a { left: -18px; top: 26%; }
.v4-float.is-b { right: -16px; bottom: 16%; padding: 8px; flex-direction: column; gap: 6px; width: 132px; }
.v4-float.is-b img { width: 116px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.v4-float.is-b span { text-align: center; color: var(--v4-ink); }
@media (max-width: 520px) {
    .v4-float.is-a { left: -6px; top: 18px; }
    .v4-float.is-b { right: -6px; width: 104px; }
    .v4-float.is-b img { width: 88px; }
}
@media (min-width: 960px) {
    .v4-hero-in { grid-template-columns: 1.12fr .88fr; gap: 56px; padding-top: 64px; padding-bottom: 120px; }
}

/* Page hero for inner pages */
.v4-phero { position: relative; overflow: hidden; background:
    radial-gradient(800px 420px at 90% 0%, #E3ECFB 0%, rgba(227, 236, 251, 0) 70%),
    radial-gradient(520px 360px at 0% 100%, #FFF4C9 0%, rgba(255, 244, 201, 0) 70%), #FBFCFF; }
.v4-phero-in { position: relative; padding-top: 52px; padding-bottom: 56px; }
.v4-phero.has-form .v4-phero-in { display: grid; gap: 34px; align-items: start; padding-bottom: 64px; }
@media (min-width: 960px) {
    .v4-phero.has-form .v4-phero-in { grid-template-columns: 1fr 460px; gap: 56px; padding-top: 64px; }
}
.v4-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.v4-chips a, .v4-chips button { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--v4-line); color: var(--v4-navy); font: 700 15px var(--v4-body); text-decoration: none; cursor: pointer; }
.v4-chips a:hover, .v4-chips button:hover { border-color: var(--v4-navy); }
.v4-chips .is-on { background: var(--v4-navy); color: #fff; border-color: var(--v4-navy); }

/* Forms */
.v4-form { background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); box-shadow: var(--v4-shadow); padding: 26px 22px; scroll-margin-top: 96px; }
.v4-form-head h2 { font-size: 25px; font-weight: 800; color: var(--v4-navy) !important; }
.v4-form-head p { margin-top: 6px; color: var(--v4-muted); font-size: 15.5px; }
.v4-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 18px; }
.v4-field { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v4-field label { font-size: 14px; font-weight: 700; color: var(--v4-ink); }
.v4-field label span { font-weight: 500; color: var(--v4-muted); }
.v4-field input, .v4-field select { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #CDD7E8; background: #fff; color: var(--v4-ink); font: 500 16px var(--v4-body); appearance: none; -webkit-appearance: none; }
.v4-field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002060' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 38px; }
.v4-field input:focus, .v4-field select:focus { outline: none; border-color: var(--v4-navy); box-shadow: 0 0 0 4px rgba(0, 32, 96, .1); }
.v4-submit { grid-column: span 2; width: 100%; min-height: 54px; font-size: 17px; margin-top: 4px; }
.v4-form-alt { margin-top: 14px !important; text-align: center; font-size: 15px; color: var(--v4-muted); }
.v4-form-alt a { color: var(--v4-navy); font-weight: 700; }
.v4-form-done { background: #E7F7EF; border: 1px solid #B5E6CD; color: #0B5E3E; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-size: 15.5px; }
.v4-form-done b { display: block; margin-bottom: 2px; }
@media (min-width: 560px) {
    .v4-field { grid-column: span 1; }
    .v4-field-full { grid-column: span 2; }
}

/* Form band below the home hero */
.v4-band { position: relative; z-index: 2; margin-top: -64px; }
.v4-form.is-band { padding: 26px 24px; }
@media (min-width: 1000px) {
    .v4-form.is-band { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: center; padding: 26px 30px; }
    .v4-form.is-band .v4-form-done { grid-column: 1 / -1; margin-bottom: 0; }
    .v4-form.is-band .v4-form-grid { grid-template-columns: 1.1fr 1.1fr 1.1fr 1fr auto; align-items: end; margin-top: 0; }
    .v4-form.is-band .v4-field, .v4-form.is-band .v4-submit { grid-column: span 1; }
    .v4-form.is-band .v4-submit { margin-top: 0; padding: 0 22px; }
    .v4-form.is-band .v4-form-alt { grid-column: 2; margin-top: -10px !important; text-align: left; }
}

/* Facts strip */
.v4-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px !important; }
.v4-facts li { background: var(--v4-sky); border: 1px solid var(--v4-sky-2); border-radius: 16px; padding: 14px 16px; font-size: 14.5px; color: var(--v4-muted); line-height: 1.35; }
.v4-facts b { display: block; color: var(--v4-navy); font-family: var(--v4-head); font-size: 18px; margin-bottom: 3px; }
@media (min-width: 900px) { .v4-facts { grid-template-columns: repeat(4, 1fr); } }

/* Cards: why parents choose */
.v4-why { display: grid; gap: 18px; grid-template-columns: 1fr; }
.v4-why article { background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.v4-why article:hover { box-shadow: var(--v4-shadow); transform: translateY(-2px); }
.v4-why img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.v4-why div { padding: 20px 22px 24px; }
.v4-why h3 { font-size: 21px; font-weight: 700; }
.v4-why p { margin-top: 8px; font-size: 16px; }
@media (min-width: 640px) { .v4-why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .v4-why { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* Portrait photo rail and grids */
.v4-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; margin: 0 -20px; scrollbar-width: thin; }
.v4-rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .v4-rail { grid-auto-columns: 40%; } }
@media (min-width: 1000px) { .v4-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 20px; } }
.v4-photo { margin: 0; }
.v4-photo .v4-ph { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--v4-sky-2); }
.v4-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.v4-photo:hover img { transform: scale(1.03); }
.v4-photo figcaption { padding: 12px 4px 0; }
.v4-photo figcaption b { display: block; color: var(--v4-ink); font-family: var(--v4-head); font-size: 18px; line-height: 1.2; }
.v4-photo figcaption span { display: block; font-size: 14.5px; color: var(--v4-muted); margin-top: 3px; }
.v4-tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--v4-navy); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }

/* Events mosaic */
.v4-events { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.v4-events .v4-photo.is-big { grid-column: span 2; }
@media (min-width: 900px) {
    .v4-events { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .v4-events .v4-photo.is-big { grid-column: span 2; grid-row: span 2; }
    .v4-events .v4-photo.is-big .v4-ph { aspect-ratio: auto; height: calc(100% - 64px); min-height: 520px; }
}
.v4-events .v4-photo figcaption b { font-size: 17px; }

/* Split layout */
.v4-split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .v4-split { grid-template-columns: 1fr 1fr; gap: 64px; } .v4-split.is-flip > :first-child { order: 2; } }
.v4-ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px !important; }
.v4-ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--v4-ink); font-weight: 500; }
.v4-ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--v4-sky-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002060' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.v4-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v4-duo .v4-ph { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; }
.v4-duo .v4-ph img { width: 100%; height: 100%; object-fit: cover; }
.v4-duo .v4-ph:nth-child(2) { margin-top: 40px; }

/* Principal */
.v4-principal { background: linear-gradient(180deg, #fff 0%, var(--v4-sky) 100%); }
.v4-principal-photo { position: relative; max-width: 420px; margin: 0 auto; isolation: isolate; }
.v4-principal-photo .v4-ph { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; border: 6px solid #fff; box-shadow: var(--v4-shadow); }
.v4-principal-photo .v4-ph img { width: 100%; height: 100%; object-fit: cover; }
.v4-principal-photo::before { content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: 30px; background: var(--v4-gold-soft); z-index: -1; }
.v4-quote { font-family: var(--v4-head); font-weight: 700; color: var(--v4-navy); font-size: clamp(27px, 3.4vw, 40px); line-height: 1.2; margin: 6px 0 0; letter-spacing: -0.015em; }
.v4-quote::before { content: "\201C"; display: block; font-family: Georgia, "Times New Roman", serif; font-size: 96px; line-height: .7; height: 44px; color: var(--v4-gold); margin-bottom: 6px; }
.v4-quote-by { margin-top: 18px !important; font-weight: 700; color: var(--v4-ink); }
.v4-quote-by span { display: block; font-weight: 500; color: var(--v4-muted); font-size: 15px; }

/* Offer cards: scholarship and summer camp */
.v4-offers { display: grid; gap: 20px; }
@media (min-width: 860px) { .v4-offers { grid-template-columns: 1fr 1fr; gap: 24px; } }
.v4-offer { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); padding: 16px; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.v4-offer:hover { box-shadow: var(--v4-shadow); transform: translateY(-2px); }
.v4-offer img { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.v4-offer h3 { font-size: 22px; font-weight: 800; color: var(--v4-navy) !important; }
.v4-offer p { margin-top: 6px; font-size: 15.5px; }
.v4-offer .v4-go { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--v4-navy); }
.v4-offer .v4-go::after { content: " \2192"; }
.v4-badge { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--v4-gold-soft); color: var(--v4-gold-text); font-size: 12.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
@media (min-width: 560px) { .v4-offer { grid-template-columns: 170px 1fr; padding: 18px; gap: 24px; } .v4-offer img { width: 170px; } }

/* Bus band */
.v4-bus { display: grid; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); padding: 26px 24px; box-shadow: var(--v4-shadow-sm); }
.v4-bus-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--v4-gold); display: grid; place-items: center; color: var(--v4-navy); }
.v4-bus h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 800; color: var(--v4-navy) !important; }
.v4-bus p { margin-top: 6px; }
.v4-bus .v4-cta-row { margin-top: 0; }
@media (min-width: 900px) { .v4-bus { grid-template-columns: auto 1fr auto; gap: 28px; padding: 28px 32px; } }

/* Parent quotes */
.v4-quotes { display: grid; gap: 18px; }
@media (min-width: 900px) { .v4-quotes { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.v4-pq { margin: 0; background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.v4-pq blockquote { margin: 0; color: var(--v4-ink); font-size: 17px; line-height: 1.6; }
.v4-pq blockquote::before { content: "\2605\2605\2605\2605\2605"; display: block; color: var(--v4-gold); letter-spacing: 3px; margin-bottom: 12px; font-size: 16px; }
.v4-pq figcaption { font-size: 14.5px; color: var(--v4-muted); }
.v4-pq figcaption b { display: block; color: var(--v4-ink); font-size: 16px; }

/* Steps */
.v4-steps { list-style: none; display: grid; gap: 16px; counter-reset: v4step; }
@media (min-width: 700px) { .v4-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .v4-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.v4-steps li { counter-increment: v4step; background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); padding: 24px 22px; }
.v4-steps li::before { content: counter(v4step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--v4-navy); color: var(--v4-gold); font: 800 18px var(--v4-head); margin-bottom: 14px; }
.v4-steps h3 { font-size: 19px; }
.v4-steps p { margin-top: 6px; font-size: 15.5px; }

/* Info boxes, table, documents */
.v4-boxes { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 860px) { .v4-boxes { grid-template-columns: 1fr 1fr; gap: 22px; } }
.v4-box { background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); padding: 24px 22px; }
.v4-box h3 { font-size: 21px; margin-bottom: 14px; }
.v4-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.v4-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--v4-muted); padding: 8px 6px; border-bottom: 2px solid var(--v4-line); }
.v4-table td { padding: 11px 6px; border-bottom: 1px solid var(--v4-sky-2); color: var(--v4-ink); }
.v4-docs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v4-docs li { background: var(--v4-sky); border-radius: 12px; padding: 11px 12px; font-weight: 600; color: var(--v4-ink); font-size: 15px; }
.v4-box .v4-small { margin-top: 14px !important; }

/* FAQ */
.v4-faq { display: grid; gap: 12px; max-width: 860px; }
.v4-center .v4-faq, .v4-faq.is-center { margin: 0 auto; }
.v4-faq details { background: #fff; border: 1px solid var(--v4-line); border-radius: 16px; padding: 0 20px; }
.v4-faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative; font-weight: 700; color: var(--v4-ink); font-size: 17px; }
.v4-faq summary::-webkit-details-marker { display: none; }
.v4-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--v4-sky); color: var(--v4-navy); display: grid; place-items: center; font-weight: 800; }
.v4-faq details[open] summary::after { content: "\2212"; background: var(--v4-gold); }
.v4-faq details p { padding: 0 0 18px; }
.v4-faq a { color: var(--v4-navy); font-weight: 700; }

/* Final call to action */
.v4-final { background: linear-gradient(135deg, #FFF8DA 0%, #FFFDF4 50%, #EAF1FC 100%); border-top: 1px solid #F3E7B8; }

/* Map */
.v4-map { border-radius: var(--v4-radius); overflow: hidden; border: 1px solid var(--v4-line); }
.v4-map iframe { display: block; width: 100%; min-height: 360px; border: 0; }

/* Curriculum stages */
.v4-stage { display: grid; gap: 28px; align-items: center; padding: 34px 0; border-top: 1px solid var(--v4-line); scroll-margin-top: 96px; }
.v4-stage:first-child { border-top: 0; }
@media (min-width: 900px) { .v4-stage { grid-template-columns: 440px 1fr; gap: 56px; } .v4-stage.is-flip { grid-template-columns: 1fr 440px; } .v4-stage.is-flip > .v4-duo, .v4-stage.is-flip > .v4-stage-img { order: 2; } }
.v4-stage-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 380px; }
.v4-stage-img img { width: 100%; height: 100%; object-fit: cover; }
.v4-stage h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--v4-navy) !important; }
.v4-stage .v4-lead { margin-top: 10px; }
.v4-cols { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 640px) { .v4-cols { grid-template-columns: 1fr 1fr; } }
.v4-cols h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--v4-gold-text); margin-bottom: 10px; font-family: var(--v4-body); font-weight: 800; }
.v4-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.v4-pills li { padding: 7px 12px; border-radius: 999px; background: var(--v4-sky); border: 1px solid var(--v4-sky-2); font-size: 14.5px; font-weight: 600; color: var(--v4-ink); }

/* Beyond the classroom tiles */
.v4-tiles { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .v4-tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.v4-tile { background: #fff; border: 1px solid var(--v4-line); border-radius: 20px; overflow: hidden; }
.v4-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.v4-tile div { padding: 14px 16px 18px; }
.v4-tile h3 { font-size: 18px; }
.v4-tile p { font-size: 14.5px; margin-top: 4px; color: var(--v4-muted); }

/* Campus life gallery */
.v4-gallery { columns: 2 140px; column-gap: 12px; }
@media (min-width: 900px) { .v4-gallery { columns: 4 220px; column-gap: 18px; } }
.v4-gallery .v4-photo { break-inside: avoid; margin-bottom: 18px; }
.v4-gallery .v4-photo[hidden] { display: none; }
.v4-gallery button.v4-ph { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.v4-gallery .v4-photo figcaption b { font-size: 16px; }
.v4-reels { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .v4-reels { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
.v4-reel { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 14; text-decoration: none; background: var(--v4-sky-2); }
.v4-reel img { width: 100%; height: 100%; object-fit: cover; }
.v4-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 16, 48, .72) 100%); }
.v4-reel span { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; font-weight: 700; line-height: 1.25; }
.v4-reel i { position: absolute; z-index: 1; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.v4-reel i::before { content: ""; margin-left: 3px; border-left: 12px solid var(--v4-navy); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.v4-lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(8, 18, 40, .9); display: none; align-items: center; justify-content: center; padding: 20px; }
.v4-lightbox.is-open { display: flex; }
.v4-lightbox img { max-height: 86vh; max-width: min(92vw, 720px); border-radius: 16px; }
.v4-lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.v4-lightbox button { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--v4-navy); font-size: 26px; cursor: pointer; }

/* Contact cards */
.v4-contact { display: grid; gap: 16px; }
@media (min-width: 640px) { .v4-contact { grid-template-columns: 1fr 1fr; } }
.v4-ccard { background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); padding: 22px; }
.v4-ccard h3 { font-size: 19px; margin-bottom: 6px; }
.v4-ccard p, .v4-ccard a { font-size: 16px; }
.v4-ccard a { color: var(--v4-navy); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; }
.v4-ccard .v4-btn { margin-top: 12px; color: inherit; }
.v4-cform textarea { width: 100%; min-height: 130px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #CDD7E8; font: 500 16px var(--v4-body); color: var(--v4-ink); resize: vertical; }
.v4-cform textarea:focus { outline: none; border-color: var(--v4-navy); box-shadow: 0 0 0 4px rgba(0, 32, 96, .1); }

/* Footer */
.v4-footer { background: var(--v4-sky); border-top: 1px solid var(--v4-line); padding: 44px 0 110px; color: var(--v4-text); }
.v4-foot-cta { display: grid; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-radius); padding: 26px 24px; box-shadow: var(--v4-shadow-sm); }
.v4-foot-cta h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--v4-navy) !important; }
.v4-foot-cta p { margin-top: 6px; }
.v4-foot-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .v4-foot-cta { grid-template-columns: 1fr auto; padding: 30px 34px; } }
.v4-foot-grid { display: grid; gap: 30px; margin-top: 40px; }
@media (min-width: 700px) { .v4-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .v4-foot-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; gap: 36px; } }
.v4-footer h3 { font-family: var(--v4-body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--v4-gold-text); font-weight: 800; margin-bottom: 14px; }
.v4-foot-brand p { margin-top: 14px; font-size: 15.5px; max-width: 360px; }
.v4-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.v4-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--v4-line); color: var(--v4-navy); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.v4-social a:hover { border-color: var(--v4-navy); }
.v4-foot-links { list-style: none; display: grid; gap: 10px; }
.v4-foot-links a, .v4-foot-line a { text-decoration: none; color: var(--v4-ink); font-weight: 600; }
.v4-foot-links a:hover, .v4-foot-line a:hover { color: var(--v4-navy); text-decoration: underline; }
.v4-foot-addr { font-size: 15.5px; }
.v4 .v4-foot-link { display: inline-block; margin-top: 8px; color: var(--v4-navy); font-weight: 800; text-decoration: none; }
.v4-foot-link::after { content: " \2192"; }
.v4-foot-line { margin-top: 10px !important; }
.v4-foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--v4-line); font-size: 14px; color: var(--v4-muted); }
@media (min-width: 900px) { .v4-footer { padding-bottom: 44px; } }

/* WhatsApp float (desktop) and sticky action bar (phones) */
.v4-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: none; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--v4-wa); color: #fff !important; text-decoration: none; font-weight: 700; box-shadow: 0 12px 28px -10px rgba(10, 90, 40, .6); }
.v4-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--v4-line); box-shadow: 0 -10px 30px -18px rgba(0, 32, 96, .45); }
.v4-sticky a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 15px; color: var(--v4-navy); background: var(--v4-sky); }
.v4-sticky a.is-wa { background: #E6F7EC; color: #0E7A3B; }
.v4-sticky a.is-go { background: var(--v4-gold); color: var(--v4-navy); }
@media (min-width: 900px) {
    .v4-sticky { display: none; }
    .v4-wa-float { display: inline-flex; }
}
/* The older pages' own floating WhatsApp button is replaced by the bar. */
body.v4 a.fixed[href^="https://wa.me"] { display: none !important; }

@media (max-width: 640px) {
    body.v4 { font-size: 16.5px; }
    .v4-sec { padding: 52px 0; }
    .v4-head { margin-bottom: 26px; }
    .v4-brand-name { font-size: 16px; }
    .v4-brand-tag { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .v4 * { transition: none !important; scroll-behavior: auto !important; }
}

/* Phones: the six reasons as compact rows so the page stays short. */
@media (max-width: 639px) {
    .v4-why { gap: 12px; }
    .v4-why article { flex-direction: row; align-items: stretch; }
    .v4-why img { width: 112px; flex: none; aspect-ratio: auto; height: auto; min-height: 140px; }
    .v4-why div { padding: 14px 16px; }
    .v4-why h3 { font-size: 18px; }
    .v4-why p { font-size: 15px; margin-top: 4px; }
    .v4-offer { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
    .v4-offer img { width: 96px; }
    .v4-offer h3 { font-size: 19px; }
}
@media (max-width: 699px) {
    .v4-steps { gap: 10px; }
    .v4-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
    .v4-steps li::before { grid-row: span 2; width: 40px; height: 40px; margin-bottom: 0; font-size: 16px; }
    .v4-steps h3 { font-size: 17.5px; align-self: center; }
    .v4-steps p { margin-top: 2px; font-size: 15px; }
}

/* Moments with families: one large photo and four smaller ones. */
.v4-moments { background: linear-gradient(180deg, #FFF9E8 0%, #FFFFFF 100%); }
.v4-moment-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.v4-moment-grid .v4-photo.is-big { grid-column: span 2; }
@media (min-width: 900px) {
    .v4-moment-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
    .v4-moment-grid .v4-photo.is-big { grid-column: auto; grid-row: span 2; }
    .v4-moment-grid .v4-photo.is-big .v4-ph { aspect-ratio: auto; height: calc(100% - 64px); min-height: 560px; }
}


/* October 24 refresh (family feedback): bolder serif headings, a softer
   rounded body font, the whole school first, a welcome note, clearer
   separation between sections and a teachers section. */
.v4 h1, .v4 h2, .v4 h3 { font-weight: 800; letter-spacing: -0.01em; font-optical-sizing: auto; }
.v4-h2 { font-size: clamp(31px, 4.2vw, 48px); line-height: 1.08; }
.v4-why h3, .v4-steps h3, .v4-photo figcaption b { font-weight: 700; }
.v4-eyebrow { font-size: 14px; letter-spacing: .1em; }
.v4-lead { font-size: clamp(17.5px, 1.7vw, 20px); line-height: 1.6; }
.v4-brand-name { font-size: 20px; font-weight: 900; letter-spacing: -0.005em; }
.v4-brand-tag { font-size: 13px; font-weight: 700; color: var(--v4-gold-text); }
.v4-sec { padding: 76px 0; }
.v5-sec-sky { background: var(--v4-sky); }
.v5-sec-cream { background: #FFF8E8; }
.v4-sec + .v4-sec:not(.is-sky):not(.v5-sec-sky):not(.v5-sec-cream) { border-top: 1px solid var(--v4-line); }

/* Hero: full width photo of the school, name card overlapping it */
.v5-hero { position: relative; background: #FBFCFF; }
.v5-hero-img { position: relative; height: clamp(300px, 62vw, 640px); overflow: hidden; }
.v5-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.v5-hero-card { position: relative; z-index: 2; margin-top: -120px; max-width: 760px; background: #fff; border-radius: 26px; padding: 30px 30px 28px; box-shadow: 0 30px 70px -30px rgba(0, 32, 96, .45); border: 1px solid var(--v4-line); }
.v5-adm { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--v4-gold); color: var(--v4-navy); font-weight: 900; font-size: 16px; letter-spacing: .01em; }
.v5-adm i { width: 10px; height: 10px; border-radius: 50%; background: var(--v4-green); box-shadow: 0 0 0 4px rgba(255, 255, 255, .7); }
.v5-name { margin-top: 16px !important; font-size: clamp(36px, 6vw, 68px) !important; line-height: 1.02 !important; color: var(--v4-navy) !important; font-weight: 900 !important; }
.v5-tagline { margin-top: 10px !important; font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: var(--v4-gold-text); }
.v5-btn-lg { min-height: 56px; font-size: 17px; padding: 0 28px; }
@media (max-width: 640px) {
    .v5-hero-card { margin-top: -48px; padding: 22px 20px; border-radius: 22px; }
    .v5-hero-card .v4-btn { width: 100%; }
}

/* Welcome note with the campus film */
.v5-welcome { background: linear-gradient(180deg, #FBFCFF 0%, #FFF8E8 100%); }
.v5-welcome-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .v5-welcome-in { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.v5-preface { margin-top: 18px !important; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.65; color: var(--v4-ink); }
.v5-pull { margin: 26px 0 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--v4-gold); font-family: var(--v4-head); font-size: clamp(21px, 2.3vw, 26px); font-weight: 700; font-style: italic; color: var(--v4-navy); line-height: 1.35; }
.v5-sign { margin-top: 14px !important; font-weight: 800; color: var(--v4-gold-text); letter-spacing: .04em; }
.v5-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); box-shadow: var(--v4-shadow); cursor: pointer; z-index: 2; }
.v5-play span { display: block; margin-left: 32px; width: 0; height: 0; border-left: 26px solid var(--v4-navy); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.v5-play[hidden] { display: none; }
.v4-band { margin-top: 0; padding: 12px 0 64px; }

/* Teachers */
.v5-staff { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--v4-shadow); background: #fff; }
.v5-staff img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 640px) { .v5-staff img { aspect-ratio: 4 / 3; } }
.v5-staff-points { list-style: none; display: grid; gap: 14px; margin-top: 22px !important; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .v5-staff-points { grid-template-columns: repeat(4, 1fr); } }
.v5-staff-points li { background: #fff; border: 1px solid var(--v4-line); border-radius: 18px; padding: 16px 18px; font-size: 15px; color: var(--v4-muted); line-height: 1.4; }
.v5-staff-points b { display: block; font-family: var(--v4-head); font-size: 19px; color: var(--v4-navy); margin-bottom: 4px; }

/* Parents as partners: one tall photo and four smaller ones */
.v5-partners { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.v5-partners .v4-photo.is-big { grid-column: span 2; }
@media (min-width: 900px) {
    .v5-partners { grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
    .v5-partners .v4-photo.is-big { grid-column: auto; grid-row: span 2; }
    .v5-partners .v4-photo.is-big .v4-ph { aspect-ratio: auto; height: calc(100% - 64px); min-height: 560px; }
}

/* v6: numbered chapters so the homepage reads as one story */
.v5-ch { font-family: var(--v4-head); font-size: 15px; font-weight: 800; letter-spacing: 0; color: #fff; background: var(--v4-navy); border-radius: 999px; min-width: 32px; height: 26px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; }
.v4-eyebrow:has(.v5-ch)::before { display: none; }
.v5-quotes { margin-top: 40px; }
/* hero: keep the school sign in view, card sits just below the photo */
.v5-hero-img img { object-position: 50% 100%; }
.v5-hero-card { margin-top: -28px; }
@media (max-width: 720px) { .v5-hero-card { margin-top: -16px; } .v5-hero-img { height: auto; aspect-ratio: 16 / 10; } }

/* ==========================================================================
   v7: the notebook. Ruled school paper, a blue NHIS notebook whose name
   label is the visit form, and real photos tucked into it.
   ========================================================================== */
.v4 {
    --nb-ink: #16245A;
    --nb-cover: #2148B1;
    --nb-cover-dark: #183A93;
    --nb-marigold: #F4B400;
    --nb-paper: #F7F9FD;
    --nb-rule: #DCE5F3;
    --nb-margin: rgba(226, 112, 122, .5);
    --nb-pen: #1D44A8;
}

/* Section labels read like a teacher's handwriting, not a template tag */
.v4 .v4-eyebrow { font-family: var(--v4-hand); font-size: 21px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--nb-pen); margin-bottom: 4px; }
.v4 .v4-eyebrow::before { display: none; }
.v4 h1, .v4 h2, .v4 h3 { letter-spacing: -0.01em; }
.v4 .v4-h2 { font-weight: 800; line-height: 1.08; }

.nb-hero {
    position: relative; overflow: hidden; padding: 64px 0 0;
    background-color: var(--nb-paper);
    background-image:
        linear-gradient(90deg, transparent 0 64px, var(--nb-margin) 64px 66px, transparent 66px),
        repeating-linear-gradient(180deg, transparent 0 37px, var(--nb-rule) 37px 38px);
}
.nb-hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1180px) { .nb-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; } }

.nb-stamp {
    display: inline-block; margin: 0 0 18px; padding: 4px 16px 2px;
    font-family: var(--v4-hand); font-weight: 700; font-size: 21px; color: var(--nb-pen);
    border: 2.5px solid currentColor; border-radius: 10px; box-shadow: inset 0 0 0 3px var(--nb-paper), inset 0 0 0 4.5px rgba(29, 68, 168, .45);
    transform: rotate(-2.5deg); background: rgba(255, 255, 255, .6);
}
.nb-h1 { font-family: var(--v4-head); font-weight: 800; font-size: clamp(46px, 6.4vw, 82px); line-height: .98; color: var(--nb-ink); letter-spacing: -0.02em; margin: 0; }
#nb-who.is-named { font-family: var(--v4-hand); font-weight: 700; color: var(--nb-pen); letter-spacing: 0; }
.nb-sub { margin: 22px 0 0; max-width: 46ch; font-size: 19px; line-height: 1.6; color: #3B4867; }
.nb-alt { margin: 16px 0 0; font-size: 16px; color: #56627F; }
.nb-alt a { color: var(--nb-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--nb-marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* The notebook and the photos tucked into it */
.nb-book { position: relative; width: 100%; max-width: 500px; margin: 0 auto; padding: 0; }
@media (min-width: 1180px) { .nb-book { margin: 18px 40px 30px auto; } }
.nb-cover {
    position: relative; z-index: 2; padding: 26px 26px 28px 62px; border-radius: 8px 20px 20px 8px;
    background-color: var(--nb-cover);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 7px);
    box-shadow: 0 34px 60px -28px rgba(22, 36, 90, .65), 0 2px 0 rgba(255, 255, 255, .12) inset;
    transform: rotate(1.5deg);
}
.nb-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38px; border-radius: 8px 0 0 8px; background: var(--nb-cover-dark); box-shadow: inset -3px 0 6px rgba(0, 0, 0, .18); }
.nb-cover::after { content: ""; position: absolute; left: 47px; top: 14px; bottom: 14px; border-left: 2px dashed rgba(255, 255, 255, .28); }
.nb-cover-top { display: flex; align-items: center; gap: 14px; color: #fff; }
.nb-cover-top img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #fff; padding: 3px; flex: none; }
.nb-cover-top span { display: block; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .8); }
.nb-cover-top b { display: block; font-family: var(--v4-head); font-weight: 800; font-size: 22px; line-height: 1.1; color: #fff; }

/* The name label, the visit form */
.nb-label {
    position: relative; margin: 22px 0 0; padding: 22px 22px 18px; background: #fff; border-radius: 18px;
    box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 8px var(--nb-marigold), 0 10px 22px -12px rgba(0, 0, 0, .4);
}
.nb-label-title { margin: 0 0 6px; text-align: center; font-family: var(--v4-head); font-weight: 800; font-size: 19px; color: var(--nb-ink); }
.nb-row { display: grid; grid-template-columns: 72px 1fr; align-items: end; gap: 10px; padding: 7px 4px 0; }
.nb-row label, .nb-key { font-family: var(--v4-head); font-weight: 700; font-size: 16px; color: #56627F; padding-bottom: 7px; }
.nb-row input, .nb-row select, .nb-ink {
    width: 100%; min-height: 42px; padding: 6px 2px 2px; border: 0; border-bottom: 2px dotted #A9BCDF; border-radius: 0;
    background: transparent; font-family: var(--v4-hand); font-size: 22px; color: var(--nb-pen); line-height: 1.3;
    appearance: none; -webkit-appearance: none;
}
.nb-row select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--nb-pen) 50%), linear-gradient(135deg, var(--nb-pen) 50%, transparent 50%); background-position: right 10px center, right 4px center; background-size: 6px 6px; background-repeat: no-repeat; }
.nb-row select:invalid { color: #8E9BB8; }
.nb-row input::placeholder { color: #A3AFC8; opacity: 1; }
.nb-row input:focus, .nb-row select:focus { outline: none; border-bottom: 2px solid var(--nb-pen); background: #F4F7FD; }
.nb-ink { display: block; border-bottom-style: solid; border-bottom-color: #E3EAF6; }
.nb-btn {
    display: block; width: 100%; margin: 18px 0 0; min-height: 54px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--nb-marigold); color: var(--nb-ink); font-family: var(--v4-head); font-weight: 800; font-size: 19px;
    box-shadow: 0 4px 0 #C99300; transition: transform .12s ease, box-shadow .12s ease;
}
.nb-btn:hover { transform: translateY(-1px); }
.nb-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #C99300; }
.nb-btn:focus-visible { outline: 3px solid var(--nb-ink); outline-offset: 3px; }
.nb-note { margin: 12px 0 0; text-align: center; font-size: 14px; color: #6A7592; }
.nb-done { text-align: center; padding: 34px 26px; }
.nb-thanks { margin: 0 0 6px; font-family: var(--v4-hand); font-weight: 700; font-size: 34px; color: var(--nb-pen); }

/* Photos tucked into the notebook */
.nb-pol { position: absolute; z-index: 1; margin: 0; width: 176px; padding: 9px 9px 0; background: #fff; box-shadow: 0 16px 30px -14px rgba(22, 36, 90, .55); }
.nb-pol img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.nb-pol figcaption { padding: 6px 0 8px; text-align: center; font-family: var(--v4-hand); font-size: 19px; color: var(--nb-ink); }
.nb-pol::before { content: ""; position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; margin-left: -37px; background: rgba(244, 180, 0, .55); transform: rotate(-4deg); }
.nb-pol-1 { top: -34px; left: -128px; transform: rotate(-9deg); }
.nb-pol-2 { bottom: 4px; left: -150px; transform: rotate(6deg); z-index: 3; width: 168px; }
.nb-pol-3 { top: -52px; right: -60px; transform: rotate(10deg); }
.nb-pol-2::before { background: rgba(33, 72, 177, .35); }

@media (min-width: 1180px) {
    @media (prefers-reduced-motion: no-preference) {
        .nb-pol { animation: nb-tuck .9s cubic-bezier(.2, .8, .2, 1) both; }
        .nb-pol-1 { animation-delay: .15s; --nb-from: translate(90px, 40px) rotate(-2deg); }
        .nb-pol-2 { animation-delay: .3s; --nb-from: translate(110px, -30px) rotate(0deg); }
        .nb-pol-3 { animation-delay: .45s; --nb-from: translate(-80px, 50px) rotate(2deg); }
        @keyframes nb-tuck { from { opacity: 0; transform: var(--nb-from); } }
    }
}
@media (max-width: 1179px) {
    .nb-hero { padding-top: 34px; background-image: repeating-linear-gradient(180deg, transparent 0 37px, var(--nb-rule) 37px 38px); }
    .nb-book { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; padding-top: 14px; }
    .nb-pol { position: relative; inset: auto; width: auto; padding: 6px 6px 0; }
    .nb-pol figcaption { font-size: 16px; padding: 4px 0 5px; }
    .nb-pol-1 { transform: rotate(-5deg) translateY(6px); }
    .nb-pol-2 { transform: rotate(3deg); width: auto; z-index: 1; }
    .nb-pol-3 { transform: rotate(6deg) translateY(8px); }
    .nb-pol::before { width: 50px; margin-left: -25px; height: 16px; top: -8px; }
    .nb-cover { grid-column: 1 / -1; margin-top: -26px; transform: none; padding: 20px 16px 20px 46px; }
    .nb-cover::before { width: 28px; }
    .nb-cover::after { left: 35px; }
    .nb-cover-top img { width: 48px; height: 48px; }
    .nb-cover-top b { font-size: 19px; }
    .nb-label { padding: 18px 14px 14px; }
    .nb-row { grid-template-columns: 62px 1fr; }
}

.nb-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 56px auto 0; padding-top: 26px; padding-bottom: 34px; border-top: 2px solid var(--nb-rule); }
.nb-facts li { font-size: 15px; color: #56627F; line-height: 1.4; }
.nb-facts b { display: block; font-family: var(--v4-head); font-weight: 800; font-size: 19px; color: var(--nb-ink); }
@media (min-width: 900px) { .nb-facts { grid-template-columns: repeat(4, 1fr); } }

/* Teachers: one honest, uncropped group photo */
.v5-staff { margin: 0; }
.v5-staff img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px -30px rgba(22, 36, 90, .5); }
.v5-staff figcaption { margin-top: 12px; font-family: var(--v4-hand); font-size: 19px; color: var(--nb-pen); }

/* Campus tour tiles are landscape, so rooms are shown whole */
.nb-tour .v4-ph { aspect-ratio: 4 / 3; }
@media (min-width: 1000px) { .nb-tour { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 999px) { .nb-tour { grid-auto-columns: 82%; } }

/* Find us */
.nb-find-in { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1180px) { .nb-find-in { grid-template-columns: 1fr 1fr; gap: 48px; } }
.nb-sign { margin: 22px 0 22px; }
.nb-sign img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }
.nb-find .v4-map iframe { min-height: 520px; }
@media (min-width: 1180px) {
    .nb-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .nb-book { max-width: 450px; margin: 34px 56px 40px auto; }
    .nb-pol { width: 160px; }
    .nb-pol-1 { top: -40px; left: -112px; }
    .nb-pol-2 { bottom: -6px; left: -122px; width: 150px; }
    .nb-pol-3 { top: -58px; right: -66px; }
}
.nb-facts { margin: 56px 0 0; padding: 26px 0 34px; }
.nb-row select { padding-right: 24px; }
.nb-ink { font-size: 20px; }
@media (min-width: 1180px) {
    .nb-hero-in { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; }
    .nb-h1 { font-size: clamp(46px, 5.4vw, 76px); }
    .nb-book { max-width: 440px; margin: 40px 118px 44px auto; }
    .nb-pol-1 { top: -44px; left: -132px; }
    .nb-pol-2 { bottom: -14px; left: -102px; }
    .nb-pol-3 { top: -34px; right: -142px; }
}
@media (max-width: 1179px) {
    .nb-copy { max-width: 640px; }
    .nb-book { max-width: 520px; }
}
/* Teachers shown like a class photo pinned into the notebook */
.v4 .v5-staff { position: relative; max-width: 1060px; margin: 8px auto 0; padding: 14px 14px 0; background: #fff; border: 0; border-radius: 4px; box-shadow: 0 26px 50px -28px rgba(22, 36, 90, .55); transform: rotate(-.6deg); }
.v4 .v5-staff img { border-radius: 2px; box-shadow: none; aspect-ratio: 16 / 9; }
.v4 .v5-staff figcaption { margin: 0; padding: 12px 6px 16px; text-align: center; font-family: var(--v4-hand); font-size: 21px; color: var(--nb-ink); }
.v4 .v5-staff::before { content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 26px; margin-left: -60px; background: rgba(244, 180, 0, .55); transform: rotate(-2deg); }
.v5-staff-points { margin-top: 34px; }
.v4 .v4-footer h3, .v4 .v4-cols h4 { font-family: var(--v4-hand); font-size: 19px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--nb-pen); }

/* v8: admissions ticker, a popping stamp, and happy faces behind the ruled page */
.nb-ticker { display: block; position: relative; overflow: hidden; background: #2148B1; color: #fff; text-decoration: none; height: 42px; }
.nb-ticker-track { display: flex; width: max-content; height: 100%; animation: nb-tick 38s linear infinite; }
.nb-ticker-run { display: flex; align-items: center; flex: none; }
.nb-ticker-item { display: inline-flex; align-items: center; height: 42px; padding: 0 26px 0 0; font-family: var(--v4-head); font-weight: 700; font-size: 16px; letter-spacing: .01em; white-space: nowrap; }
.nb-ticker-item::before { content: "\2726"; margin-right: 26px; color: #F4B400; font-size: 14px; }
.nb-ticker-item.is-lead span, .nb-ticker-item.is-lead { color: #16245A; }
.nb-ticker-item.is-lead { background: #F4B400; padding: 0 18px; margin-right: 26px; height: 30px; border-radius: 999px; font-weight: 800; }
.nb-ticker-item.is-lead::before { content: none; }
.nb-ticker:hover .nb-ticker-track, .nb-ticker:focus-visible .nb-ticker-track { animation-play-state: paused; }
.nb-ticker:focus-visible { outline: 3px solid #F4B400; outline-offset: -3px; }
@keyframes nb-tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nb-ticker-track { animation: none; } }

/* The stamp pops in, then gives a little wiggle now and then */
.v4 .nb-stamp {
    font-size: clamp(22px, 2.4vw, 28px); padding: 6px 20px 3px; color: #16245A; background: #F4B400;
    border: 3px solid #16245A; border-radius: 12px; box-shadow: 5px 5px 0 #16245A; transform: rotate(-3deg); margin-bottom: 24px;
}
@media (prefers-reduced-motion: no-preference) {
    .v4 .nb-stamp { animation: nb-stamp .75s cubic-bezier(.2, 1.5, .4, 1) .25s both, nb-wiggle 6s ease-in-out 2.5s infinite; }
    @keyframes nb-stamp { from { opacity: 0; transform: scale(2.2) rotate(-14deg); } to { opacity: 1; transform: rotate(-3deg); } }
    @keyframes nb-wiggle { 0%, 88%, 100% { transform: rotate(-3deg); } 91% { transform: rotate(2deg) scale(1.07); } 94% { transform: rotate(-6deg) scale(1.04); } 97% { transform: rotate(-1deg); } }
}

/* Happy faces, changing behind the ruled paper */
.nb-hero { background-image: none; isolation: isolate; }
.nb-faces { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(4, 1fr); }
.nb-face-col { position: relative; overflow: hidden; }
.nb-face-col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.nb-face-col img:first-child { opacity: 1; }
.nb-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 64px, var(--nb-margin) 64px 66px, transparent 66px),
        repeating-linear-gradient(180deg, transparent 0 37px, rgba(170, 192, 228, .55) 37px 38px),
        linear-gradient(90deg, rgba(247, 249, 253, .9) 0%, rgba(247, 249, 253, .84) 42%, rgba(247, 249, 253, .58) 100%);
}
@media (prefers-reduced-motion: no-preference) {
    .nb-face-col img { animation: nb-face 15s ease-in-out infinite; animation-delay: calc(var(--i) * 5s - var(--c)); }
    .nb-face-col img:first-child { opacity: 0; }
    .nb-face-col img:nth-child(1) { --i: 0; } .nb-face-col img:nth-child(2) { --i: 1; } .nb-face-col img:nth-child(3) { --i: 2; }
    .nb-face-col:nth-child(1) { --c: 1.5s; } .nb-face-col:nth-child(2) { --c: 3s; } .nb-face-col:nth-child(3) { --c: 4.2s; } .nb-face-col:nth-child(4) { --c: 2.2s; }
    @keyframes nb-face {
        0% { opacity: 0; transform: scale(1.1); }
        7% { opacity: 1; }
        33% { opacity: 1; }
        41% { opacity: 0; transform: scale(1); }
        100% { opacity: 0; transform: scale(1); }
    }
}
@media (max-width: 1179px) {
    .nb-faces { grid-template-columns: repeat(2, 1fr); }
    .nb-face-col:nth-child(n+3) { display: none; }
    .nb-hero::after { background: repeating-linear-gradient(180deg, transparent 0 37px, rgba(170, 192, 228, .55) 37px 38px), rgba(247, 249, 253, .8); }
}
.v4 .nb-ticker, .v4 .nb-ticker:hover { color: #fff; text-decoration: none; }
.v4 .nb-ticker .nb-ticker-item.is-lead { color: #16245A; }
@media (min-width: 1180px) {
    .nb-hero::after {
        background:
            linear-gradient(90deg, transparent 0 64px, var(--nb-margin) 64px 66px, transparent 66px),
            repeating-linear-gradient(180deg, transparent 0 37px, rgba(170, 192, 228, .55) 37px 38px),
            linear-gradient(90deg, rgba(247, 249, 253, .96) 0%, rgba(247, 249, 253, .92) 36%, rgba(247, 249, 253, .55) 66%, rgba(247, 249, 253, .38) 100%);
    }
}
.nb-face-col img { filter: saturate(1.15); }
/* Phones: shorter intro so the notebook and faces reach the first screen */
.nb-short { display: none; }
@media (max-width: 1179px) {
    .nb-hero::after { background: repeating-linear-gradient(180deg, transparent 0 37px, rgba(170, 192, 228, .5) 37px 38px), linear-gradient(180deg, rgba(247, 249, 253, .82) 0%, rgba(247, 249, 253, .74) 40%, rgba(247, 249, 253, .5) 100%); }
    .nb-sub { color: #26324F; font-weight: 500; }
}
@media (max-width: 720px) {
    .nb-hero { padding-top: 22px; }
    .v4 .nb-stamp { font-size: 21px; margin-bottom: 14px; box-shadow: 4px 4px 0 #16245A; }
    .nb-h1 { font-size: 44px; }
    .nb-long, .nb-alt { display: none; }
    .nb-short { display: inline; }
    .nb-sub { font-size: 18px; margin-top: 12px; }
    .nb-hero-in { gap: 22px; }
    .nb-ink { font-size: 18px; }
}
@media (max-width: 1179px) { .nb-facts { background: rgba(255, 255, 255, .9); border: 0; border-radius: 18px; padding: 18px; margin-bottom: 26px; } }

/* v9: background scenes in a fixed order (joy, school, joy, values, joy, name and crest) */
.v4-staff-two, .v5-staff-points { max-width: 760px; }
@media (min-width: 900px) { .v5-staff-points { grid-template-columns: 1fr 1fr; } }
.nb-faces { display: block; }
.nb-scene { position: absolute; inset: 0; opacity: 0; }
.nb-scene:first-child { opacity: 1; }
.nb-scene.is-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.nb-scene img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.15); }
.nb-scene.is-building img { object-position: 50% 80%; }
.nb-scene.is-namewall img { object-position: 60% 50%; }
.nb-scene.is-sign img { object-position: 50% 45%; }
@media (prefers-reduced-motion: no-preference) {
    .nb-scene { animation: nb-scene 30s ease-in-out infinite; animation-delay: calc(var(--s) * 5s - .6s); }
    .nb-scene:first-child { opacity: 0; }
    .nb-scene:nth-child(1) { --s: 0; } .nb-scene:nth-child(2) { --s: 1; } .nb-scene:nth-child(3) { --s: 2; }
    .nb-scene:nth-child(4) { --s: 3; } .nb-scene:nth-child(5) { --s: 4; } .nb-scene:nth-child(6) { --s: 5; }
    @keyframes nb-scene {
        0% { opacity: 0; transform: scale(1.07); }
        3% { opacity: 1; }
        16.7% { opacity: 1; }
        20% { opacity: 0; transform: scale(1); }
        100% { opacity: 0; transform: scale(1); }
    }
}
/* Photos show strongly; the words sit on their own sheet of ruled paper */
.nb-hero::after, .v4 .nb-hero::after {
    background:
        repeating-linear-gradient(180deg, transparent 0 37px, rgba(160, 184, 224, .45) 37px 38px),
        rgba(247, 249, 253, .42);
}
@media (min-width: 1180px) {
    .nb-hero::after {
        background:
            repeating-linear-gradient(180deg, transparent 0 37px, rgba(160, 184, 224, .45) 37px 38px),
            linear-gradient(90deg, rgba(247, 249, 253, .55) 0%, rgba(247, 249, 253, .3) 100%);
    }
}
.nb-copy {
    position: relative; padding: 30px 30px 28px 46px; border-radius: 6px 22px 22px 6px;
    background-color: rgba(250, 251, 254, .9);
    background-image: linear-gradient(90deg, transparent 0 22px, rgba(226, 112, 122, .55) 22px 24px, transparent 24px), repeating-linear-gradient(180deg, transparent 0 37px, #DCE5F3 37px 38px);
    box-shadow: 0 26px 50px -30px rgba(22, 36, 90, .55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
@media (max-width: 720px) { .nb-copy { padding: 22px 18px 20px 34px; } .nb-copy { background-image: linear-gradient(90deg, transparent 0 16px, rgba(226, 112, 122, .55) 16px 18px, transparent 18px), repeating-linear-gradient(180deg, transparent 0 37px, #DCE5F3 37px 38px); } }
@media (max-width: 1179px) { .nb-scene.is-grid { grid-template-columns: 1fr 1fr; } .nb-scene.is-grid img:nth-child(n+3) { display: none; } }
/* Let the background scenes breathe on desktop */
@media (min-width: 1180px) {
    .nb-pol-1, .nb-pol-2 { display: none; }
    .nb-hero::after {
        background:
            repeating-linear-gradient(180deg, transparent 0 37px, rgba(160, 184, 224, .4) 37px 38px),
            linear-gradient(90deg, rgba(247, 249, 253, .4) 0%, rgba(247, 249, 253, .18) 100%);
    }
    .nb-copy { background-color: rgba(250, 251, 254, .84); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nb-hero-in { min-height: 640px; }
}
@media (min-width: 1180px) { .nb-copy { background-color: rgba(250, 251, 254, .9); } }
@media (max-width: 720px) { .v4 .nb-stamp { font-size: 18px; padding: 5px 12px 2px; white-space: nowrap; } .nb-h1 { font-size: 42px; } }

/* v10 phones and tablets: the scenes get their own clear window at the top of the page,
   and the ruled sheet with the headline overlaps its lower edge */
@media (max-width: 1179px) {
    .nb-hero { padding-top: 0; }
    .nb-faces { position: absolute; top: 0; left: 0; right: 0; bottom: auto; height: 330px; }
    .nb-hero::after, .v4 .nb-hero::after {
        background:
            repeating-linear-gradient(180deg, transparent 0 37px, rgba(160, 184, 224, .4) 37px 38px),
            linear-gradient(180deg, rgba(247, 249, 253, 0) 0, rgba(247, 249, 253, .05) 200px, rgba(247, 249, 253, 1) 330px);
    }
    .nb-hero-in { padding-top: 230px; }
    .nb-copy { box-shadow: 0 -10px 40px -18px rgba(22, 36, 90, .45); background-color: rgba(250, 251, 254, .97); }
    .nb-scene.is-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 721px) and (max-width: 1179px) {
    .nb-faces { height: 420px; }
    .nb-hero-in { padding-top: 320px; }
    .nb-hero::after, .v4 .nb-hero::after { background: repeating-linear-gradient(180deg, transparent 0 37px, rgba(160, 184, 224, .4) 37px 38px), linear-gradient(180deg, rgba(247, 249, 253, 0) 0, rgba(247, 249, 253, .05) 280px, rgba(247, 249, 253, 1) 420px); }
    .nb-scene.is-grid { grid-template-columns: repeat(4, 1fr); }
    .nb-scene.is-grid img:nth-child(n+3) { display: block; }
}
@media (max-width: 720px) {
    .nb-pol { display: none; }
    .nb-book { display: block; padding-top: 0; }
    .nb-cover { margin-top: 0; }
}
@media (max-width: 720px) { .nb-scene.is-building img { height: 232px; object-position: 50% 100%; } .nb-scene.is-building { background: #EEF2F9; } }
@media (min-width: 721px) and (max-width: 1179px) { .nb-scene.is-building img { height: 322px; object-position: 50% 100%; } .nb-scene.is-building { background: #EEF2F9; } }

/* v11 phones: the same faded look as desktop. Photos sit behind the ruled paper across
   the top of the page and show softly through the headline sheet. */
@media (max-width: 720px) {
    .nb-faces { inset: 0; height: auto; }
    .nb-scene.is-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px; align-content: start; }
    .nb-scene.is-grid img:nth-child(n+3) { display: block; }
    .nb-scene.is-full { background: transparent; }
    .nb-scene.is-full img, .nb-scene.is-building img { height: 520px; }
    .nb-scene.is-building img { object-position: 50% 100%; }
    .nb-hero::after, .v4 .nb-hero::after {
        background:
            repeating-linear-gradient(180deg, transparent 0 37px, rgba(160, 184, 224, .45) 37px 38px),
            linear-gradient(180deg, rgba(247, 249, 253, .32) 0, rgba(247, 249, 253, .42) 300px, rgba(247, 249, 253, .7) 520px, rgba(247, 249, 253, .96) 640px);
    }
    .nb-hero-in { padding-top: 190px; }
    .nb-copy { background-color: rgba(250, 251, 254, .84); box-shadow: 0 18px 40px -24px rgba(22, 36, 90, .5); }
}
@media (max-width: 720px) { .nb-scene.is-building img { height: 225px; } }

/* v12: explicit timings for each scene (some iPhone browsers ignore calc() inside animation-delay) */
@media (prefers-reduced-motion: no-preference) {
    .nb-scene { -webkit-animation: nb-scene 30s ease-in-out infinite; animation: nb-scene 30s ease-in-out infinite; }
    .nb-scene:nth-child(1) { -webkit-animation-delay: -0.6s; animation-delay: -0.6s; }
    .nb-scene:nth-child(2) { -webkit-animation-delay: 4.4s; animation-delay: 4.4s; }
    .nb-scene:nth-child(3) { -webkit-animation-delay: 9.4s; animation-delay: 9.4s; }
    .nb-scene:nth-child(4) { -webkit-animation-delay: 14.4s; animation-delay: 14.4s; }
    .nb-scene:nth-child(5) { -webkit-animation-delay: 19.4s; animation-delay: 19.4s; }
    .nb-scene:nth-child(6) { -webkit-animation-delay: 24.4s; animation-delay: 24.4s; }
}
.nb-faces { top: 0; right: 0; bottom: 0; left: 0; }
.nb-scene { top: 0; right: 0; bottom: 0; left: 0; }
@media (max-width: 720px) { .nb-faces { bottom: 0; height: auto; } }
@media (max-width: 720px) { .nb-scene.is-full img { height: 236px; } .nb-scene.is-namewall img { object-position: 62% 50%; } }
@media (min-width: 1180px) { .nb-pol-3 { right: -160px; } }

/* v13 desktop: the words sit on white highlighter strips instead of a solid sheet,
   so the background scenes and the branding show around every line */
.nb-hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 1180px) {
    .nb-copy { background: none !important; box-shadow: none !important; padding: 0 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nb-h1 { line-height: 1.16; }
    .nb-h1 .nb-hl { background: rgba(250, 251, 254, .93); padding: 0 .16em; border-radius: 8px; }
    .nb-sub .nb-hl, .nb-alt .nb-hl { background: rgba(250, 251, 254, .93); padding: .12em .4em; border-radius: 6px; line-height: 1.9; }
    .nb-sub { max-width: 40ch; }
    .nb-hero::after {
        background:
            repeating-linear-gradient(180deg, transparent 0 37px, rgba(160, 184, 224, .4) 37px 38px),
            rgba(247, 249, 253, .22);
    }
    .nb-scene.is-crest img { object-position: 0% 50%; }
}
.nb-scene.is-crest { background: #1B45AD; }
@media (max-width: 720px) { .nb-scene.is-crest img { height: 236px; object-position: 22% 50%; } }
/* Phones: keep the pinned Bathukamma photo, tucked at the top right of the page */
@media (max-width: 720px) {
    .nb-book { position: static; }
    .nb-pol.nb-pol-3 { display: block; position: absolute; top: 132px; right: 12px; left: auto; bottom: auto; width: 112px; padding: 6px 6px 0; z-index: 4; transform: rotate(6deg); }
    .nb-pol-3 figcaption { font-size: 14px; padding: 3px 0 5px; }
}
@media (max-width: 720px) { .nb-pol.nb-pol-3 { top: 26px; right: 14px; width: 98px; } }
.v4 .nb-family { margin-top: 48px; max-width: 980px; transform: rotate(.5deg); }
.v4 .nb-family img { aspect-ratio: 1080 / 806; }

/* v14: the crest seal replaces the pinned snapshot beside the notebook */
.nb-pol { display: none !important; }
.nb-seal { position: absolute; z-index: 4; margin: 0; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: #1B45AD; border: 6px solid #fff; box-shadow: 0 18px 34px -14px rgba(22, 36, 90, .6), 0 0 0 2px rgba(244, 180, 0, .9); top: -46px; right: -70px; transform: rotate(8deg); }
.nb-seal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
@media (min-width: 1180px) { .nb-seal { right: -96px; } }
@media (prefers-reduced-motion: no-preference) {
    .nb-seal { animation: nb-seal .8s cubic-bezier(.2, 1.4, .4, 1) .5s both; }
    @keyframes nb-seal { from { opacity: 0; transform: scale(1.6) rotate(-20deg); } to { opacity: 1; transform: rotate(8deg); } }
}
@media (max-width: 1179px) { .nb-book { padding-top: 0; } .nb-cover { margin-top: 0; } .nb-seal { top: -40px; right: -10px; width: 120px; height: 120px; } }
@media (max-width: 720px) { .nb-seal { position: absolute; top: 30px; right: 16px; width: 96px; height: 96px; border-width: 4px; } }

/* Teachers and the whole NHIS family, fading into each other in one class photo */
.nb-duo-ph { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; }
.v4 .nb-duo .nb-duo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.nb-duo figcaption { position: relative; height: 54px; }
.v4 .nb-duo figcaption span { position: absolute; left: 0; right: 0; top: 12px; }
.nb-duo .nb-duo-ph img:nth-child(2), .nb-duo figcaption span:nth-child(2) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
    .nb-duo .nb-duo-ph img:nth-child(2), .nb-duo figcaption span:nth-child(2) { animation: nb-duo 12s ease-in-out infinite; }
    .nb-duo .nb-duo-ph img:nth-child(1), .nb-duo figcaption span:nth-child(1) { animation: nb-duo-a 12s ease-in-out infinite; }
    @keyframes nb-duo { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
    @keyframes nb-duo-a { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
}
/* The NHIS family: a small snapshot, sized to the photo's real resolution */
.nb-snap { position: relative; margin: 30px 0 0; width: min(100%, 380px); padding: 10px 10px 0; background: #fff; box-shadow: 0 18px 36px -20px rgba(22, 36, 90, .55); transform: rotate(-2deg); }
.nb-snap img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 806; object-fit: cover; }
.nb-snap figcaption { padding: 8px 0 10px; text-align: center; font-family: var(--v4-hand); font-size: 19px; color: var(--nb-ink); }
.nb-snap::before { content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: rgba(244, 180, 0, .55); transform: rotate(3deg); }
/* Bathukamma 2026 snapshot pinned to the corner of the campus film */
.v4-hero-media { position: relative; }
.nb-vpin { position: absolute; z-index: 3; margin: 0; width: 150px; padding: 8px 8px 0; background: #fff; box-shadow: 0 16px 30px -14px rgba(22, 36, 90, .6); right: -34px; bottom: 46px; transform: rotate(7deg); }
.nb-vpin img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.nb-vpin figcaption { padding: 5px 0 7px; text-align: center; font-family: var(--v4-hand); font-size: 17px; line-height: 1.15; color: var(--nb-ink); }
.nb-vpin::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: rgba(244, 180, 0, .6); transform: rotate(-4deg); }
@media (max-width: 720px) { .nb-vpin { width: 112px; right: -4px; bottom: 34px; } .nb-vpin figcaption { font-size: 14px; } }
@media (min-width: 960px) { .nb-vpin { right: -84px; bottom: 26px; } }
/* smaller pinned Bathukamma snapshot */
.nb-vpin { width: 112px; padding: 6px 6px 0; }
.nb-vpin figcaption { font-size: 14px; padding: 4px 0 6px; }
.nb-vpin::before { width: 48px; height: 16px; margin-left: -24px; top: -8px; }
@media (min-width: 960px) { .nb-vpin { right: -58px; bottom: 30px; } }
@media (max-width: 720px) { .nb-vpin { width: 88px; right: -2px; bottom: 30px; } .nb-vpin figcaption { font-size: 12px; } }

/* v15: audit fixes */
.v4-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nb-err, .v4-form-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #8A1C1C; font-size: 15px; line-height: 1.4; }
.nb-next { margin-top: 16px; }
.nb-next .nb-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.nb-next a { color: var(--nb-ink); font-weight: 600; }
.v4-form-next { display: block; margin-top: 8px; font-weight: 500; }
.nb-row input::placeholder { color: #7E8BAA; }
.nb-row select:invalid { color: #7E8BAA; }
@media (max-width: 720px) { .nb-seal { display: none; } }
.v4-footer a.v4-foot-link, .v4-footer .v4-foot-line a, .v4-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
/* gallery: a real grid so photos keep their curated order */
.v4-gallery { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .v4-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.v4-gallery .v4-photo { margin: 0; }
.v4-gallery .v4-ph img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
/* parents: the wide meeting photo keeps everyone in frame on phones */
@media (max-width: 999px) { .v5-partners .v4-photo.is-big .v4-ph { aspect-ratio: 3 / 2; } }
/* desktop hero facts sit on paper so they stay readable over the photos */
@media (min-width: 1180px) { .nb-facts { background: rgba(255, 255, 255, .92); border: 0; border-radius: 18px; padding: 20px 26px; margin-bottom: 30px; } }
@media (max-width: 999px) { .v5-partners .v4-photo:last-child:nth-child(even) { grid-column: span 2; } .v5-partners .v4-photo:last-child:nth-child(even) .v4-ph { aspect-ratio: 3 / 2; } }

/* v16: hero personalisation lives in the subline */
.nb-who.is-named { font-family: var(--v4-hand); font-weight: 700; color: var(--nb-pen); letter-spacing: 0; }

/* v17: admissions banner, the school's own creative */
.v5-banner { padding: 8px 0 40px; }
.v5-banner-link { display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(22, 36, 90, .35); transition: transform .2s ease, box-shadow .2s ease; }
.v5-banner-link:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -18px rgba(22, 36, 90, .45); }
.v5-banner-link img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .v5-banner { padding: 0 0 28px; } .v5-banner-link { border-radius: 14px; } }

/* v17: parents grid on desktop, the meeting photo runs wide so the whole family and teacher stay in frame */
@media (min-width: 1000px) {
    .v5-partners { grid-template-columns: repeat(3, 1fr); }
    .v5-partners .v4-photo.is-big { grid-column: 1 / -1; grid-row: auto; }
    .v5-partners .v4-photo.is-big .v4-ph { aspect-ratio: 2 / 1; height: auto; min-height: 0; }
}

/* v17: wide gallery tiles for landscape photos; same row height as the portrait tiles beside them */
.v4-gallery { grid-auto-flow: dense; container-type: inline-size; }
.v4-gallery .v4-photo.is-wide { grid-column: span 2; }
.v4-gallery .v4-photo.is-wide .v4-ph img { aspect-ratio: 8 / 5; }
@supports (height: 1cqw) {
    .v4-gallery .v4-photo.is-wide .v4-ph img { aspect-ratio: auto; height: calc((100cqw - 12px) / 2 * 1.25); }
    @media (min-width: 900px) { .v4-gallery .v4-photo.is-wide .v4-ph img { height: calc((100cqw - 54px) / 4 * 1.25); } }
}
.v4-gallery .v4-photo.is-wide .v4-ph { aspect-ratio: auto; }

/* v18: five facts in the hero strip; on two column phones the last one spans the row */
@media (max-width: 899px) { .nb-facts li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 900px) { .nb-facts { grid-template-columns: repeat(5, 1fr); } }
.nb-hero > .v4-wrap:last-child { padding-bottom: 28px; }
@media (min-width: 900px) { .nb-hero .nb-facts { padding: 18px 26px; gap: 18px 28px; } }

/* v19: on phones the top bar tucks away while scrolling down and returns on scroll up */
@media (max-width: 899px) {
    .v4-header { transition: transform .28s ease, box-shadow .28s ease; will-change: transform; }
    .v4-header.is-tucked { transform: translateY(-105%); box-shadow: none; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { .v4-header { transition: none; } }

/* v20: narrow phones (360 to 389px wide) were cutting the school name to
   "New Hill Integral Sch...". Scale the name and tagline with the screen so the
   full name always fits; 390px and wider are unchanged. */
@media (max-width: 389px) {
    .v4-brand-name { font-size: min(20px, 4.45vw); }
    .v4-brand-tag { font-size: min(12.5px, 3.05vw); }
}
