:root{--navy:#122e44;--navy-2:#193a4e;--ink:#173145;--blue:#347db9;--sky:#cee9f2;--cream:#f7f6f0;--warm:#f3efe4;--mint:#e5eee6;--sun:#ffcf55;--line:#d8dfdd;--muted:#536677;--white:#fff;--radius:15px;--font-head:'Bricolage Grotesque',sans-serif;--font-body:'DM Sans',sans-serif;--shell:1240px;--ease:cubic-bezier(.18,.82,.22,1)}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:95px}body{margin:0;font-family:var(--font-body);color:var(--ink);background:var(--cream);-webkit-font-smoothing:antialiased}body.lock-scroll{overflow:hidden}img{display:block;max-width:100%}figure,p,h1,h2,h3,h4{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}svg{width:19px;height:19px;vertical-align:middle}::selection{background:var(--sun);color:var(--ink)}:focus-visible{outline:3px solid #1a88d4;outline-offset:4px}h1,h2,h3{font-family:var(--font-head);letter-spacing:-.032em;font-weight:800;line-height:1.03}em{font-style:normal;color:var(--blue)}.shell{width:min(var(--shell),calc(100% - 88px));margin-inline:auto}.skip{position:absolute;z-index:10000;top:-70px;left:15px;background:#fff;padding:10px 20px;border-radius:8px}.skip:focus{top:10px}.topline{background:var(--navy);color:#dce7ef;font-size:11px;letter-spacing:.035em}.topline .shell{display:flex;justify-content:space-between;align-items:center;min-height:29px}.topline a:hover{text-decoration:underline;text-underline-offset:4px}.topline-sep{margin-inline:14px;opacity:.45}.site-header{position:sticky;top:0;background:rgba(250,250,247,.97);border-bottom:1px solid #e3e7e1;z-index:200;backdrop-filter:saturate(1.4) blur(12px)}.header-inner{min-height:83px;display:flex;align-items:center;gap:29px}.identity{display:flex;align-items:center;gap:12px;flex:none;min-width:246px}.identity img{width:53px;height:53px;object-fit:contain;border-radius:50%}.identity b{display:block;color:var(--ink);font-size:14px;line-height:1.11;letter-spacing:-.025em}.identity small{display:block;margin-top:5px;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#5c7480}.desktop-nav{display:flex;align-items:center;justify-content:center;gap:clamp(10px,1.32vw,21px);margin-left:auto}.desktop-nav a{font-size:12px;font-weight:700;color:#364c5a;white-space:nowrap;position:relative;padding:12px 0;transition:color .2s}.desktop-nav a:hover,.desktop-nav a[aria-current=page]{color:#0d76c0}.desktop-nav a[aria-current=page]:after{content:'';position:absolute;height:2px;background:var(--blue);left:0;right:0;bottom:4px}.header-actions{display:flex;align-items:center;gap:15px}.header-contact{height:42px;display:inline-flex;align-items:center;gap:11px;background:var(--navy);color:#fff;border-radius:5px;font-size:12px;font-weight:750;padding:0 16px;white-space:nowrap;transition:background .2s,transform .2s}.header-contact:hover{background:#24556d;transform:translateY(-1px)}.header-contact svg{width:15px}.menu-trigger{display:none}.mobile-nav{display:none}.section{padding:clamp(80px,9vw,142px) 0}.section-paper{background:#f9faf6}.small-cap{font-size:11px;text-transform:uppercase;letter-spacing:.15em;font-weight:800;color:var(--blue);margin-bottom:26px}p{line-height:1.72}h2{font-size:clamp(38px,5.1vw,68px)}h3{font-size:27px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:27px;min-height:54px;padding:13px 21px;font-size:13px;font-weight:800;border:1px solid transparent;border-radius:5px;transition:transform .28s var(--ease),background .22s,box-shadow .22s}.btn:hover{transform:translateY(-3px);box-shadow:0 12px 27px rgba(0,0,0,.11)}.btn svg{width:18px;flex:none;transition:transform .2s}.btn:hover svg,.text-link:hover svg{transform:translateX(5px)}.btn-sun{background:var(--sun);color:var(--ink)}.btn-outline{color:#fff;border-color:#6e8598}.btn-outline:hover{background:#fff;color:var(--navy)}.btn-ink{background:var(--navy);color:#fff}.btn-ink:hover{background:#24607a}.btn-secondary{background:#edf3f3;color:var(--ink);border-color:#cfdbdd}.btn.full{width:100%}.text-link{display:inline-flex;gap:22px;align-items:center;border-bottom:1px solid currentColor;padding-bottom:7px;font-size:13px;font-weight:800;transition:color .22s}.text-link:hover{color:var(--blue)}.text-link svg{width:16px;height:16px;transition:transform .22s}
/* FIRST IMPRESSION */
.home-hero{color:#fff;background:var(--navy);overflow:hidden}.hero-grid{min-height:660px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:clamp(40px,6vw,95px);padding:70px 0 65px}.hero-copy{position:relative;z-index:2}.hero-preface{font-size:13px;font-weight:700;letter-spacing:.03em;color:#bdd2e0;margin-bottom:29px}.hero-copy h1{font-size:clamp(55px,6.15vw,92px);line-height:.99;letter-spacing:-.04em}.hero-copy h1 em{color:#ffce52}.hero-copy h1 span{color:#a9d9ed}.hero-copy>p:not(.hero-preface){color:#c7d5dd;max-width:480px;font-size:16px;line-height:1.8;margin-top:34px}.hero-buttons{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:32px}.hero-small-note{margin-top:48px;display:flex;align-items:center;gap:15px;color:#afc4d0;font-size:12px}.note-dash{display:inline-block;width:29px;height:1px;background:var(--sun)}.hero-media{height:535px;position:relative;isolation:isolate}.hero-main-image{position:absolute;left:15%;right:0;top:0;bottom:30px;overflow:hidden;border-radius:15px;box-shadow:0 28px 70px rgba(0,0,0,.14)}.hero-main-image:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(4,36,45,.46));pointer-events:none}.hero-main-image img{width:100%;height:100%;object-fit:cover;object-position:50% 44%}.hero-main-image figcaption{position:absolute;bottom:20px;left:22px;font-size:13px;font-weight:700;z-index:2;color:#fff;max-width:230px}.hero-postcard{position:absolute;left:0;bottom:0;width:37%;height:48%;background:#fff;border:7px solid #fff;border-bottom-width:44px;border-radius:7px;box-shadow:0 16px 38px rgba(0,0,0,.23);transform:rotate(-6deg);z-index:4;transition:transform .5s var(--ease)}.hero-postcard:hover{transform:rotate(0deg) translateY(-7px)}.hero-postcard img{width:100%;height:100%;object-fit:cover;object-position:center 58%}.hero-postcard figcaption{position:absolute;bottom:-32px;left:1px;right:1px;text-align:center;font-size:9px;letter-spacing:.12em;font-weight:800;color:var(--navy)}.hero-stamp{position:absolute;right:-25px;top:-22px;border:1px solid var(--sun);width:84px;height:84px;border-radius:50%;background:var(--sun);color:var(--navy);display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(13deg);z-index:5;box-shadow:0 7px 18px #071e2733}.hero-stamp b{font-family:var(--font-head);font-size:25px;line-height:1}.hero-stamp span{font-size:9px;letter-spacing:.13em;font-weight:800}.hero-bottom{border-top:1px solid #395669}.hero-bottom .shell{height:52px;display:flex;align-items:center;justify-content:space-between;color:#a5c0cd;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:700}
/* HOME BODY */
.intro-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(50px,11vw,170px);align-items:start}.intro-split h2{margin-top:18px}.intro-split em,.section-header em,.values h2 em,.story-aside h2 em,.belief-grid h2 em,.partnership h2 em,.story-people h2 em,.learn-open h2 em,.learn-note h2 em,.life-feature h2 em,.life-last h2 em,.life-staff h2 em,.notfound em{color:var(--blue)}.section-mark{display:block;width:51px;height:7px;background:var(--sun);transform:rotate(-5deg)}.prose-lead{font-size:17px}.prose-lead p+p{margin-top:17px}.prose-lead .text-link{margin-top:28px}.home-routes{background:#dcebf0;overflow:hidden}.section-header{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:48px}.section-header p{max-width:320px;color:var(--muted);font-size:15px}.route-controls{display:flex;gap:11px}.round-control{width:52px;height:52px;border:1px solid #526f80;border-radius:50%;background:transparent;color:var(--navy);transition:background .25s,color .25s,transform .25s}.round-control:hover{background:var(--navy);color:#fff;transform:translateY(-2px)}[data-story-prev] svg{transform:rotate(180deg)}.story-scroll{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 max(44px,calc((100vw - var(--shell))/2)) 20px;scroll-behavior:smooth}.story-scroll::-webkit-scrollbar{display:none}.route-card{flex:0 0 clamp(265px,27vw,375px);min-height:340px;border-radius:12px;padding:34px 28px;display:flex;flex-direction:column;scroll-snap-align:center;transition:transform .32s var(--ease),box-shadow .3s}.route-card:hover{transform:translateY(-8px);box-shadow:0 17px 30px rgba(15,50,65,.11)}.route-card>span:nth-of-type(2){font-size:12px;font-weight:750}.route-card h3{font-size:clamp(31px,3.3vw,45px);line-height:1.04;margin-top:35px}.route-symbol{width:43px;height:43px;display:grid;place-items:center;font-size:26px;font-weight:500;border:1px solid currentColor;border-radius:50%;margin-bottom:24px}.route-cta{display:inline-flex;margin-top:auto;align-items:center;gap:8px;font-size:12px;font-weight:800}.route-cta svg{width:16px}.route-blue{background:#226397;color:#fff}.route-blue h3{color:#fff}.route-white{background:#fff}.route-mint{background:#c2ddcc}.route-cream{background:#f5edda}.values{background:#f9faf6}.values-grid{display:grid;grid-template-columns:.9fr 1fr;gap:clamp(50px,10vw,140px);align-items:center}.values-image{height:525px;position:relative}.values-image img{width:100%;height:100%;object-fit:cover;object-position:50% 63%;border-radius:17px}.values-caption{position:absolute;bottom:22px;right:-17px;background:var(--sun);padding:15px 18px;transform:rotate(-3deg);font-size:14px;font-weight:800;box-shadow:0 8px 18px #11273820}.values-copy p{max-width:535px;font-size:16px;color:var(--muted);margin-top:27px}.values-copy p+p{margin-top:12px}.values-copy .text-link{margin-top:30px}.home-contact{padding:65px 0;background:#dce9e4}.home-contact-inner{display:flex;align-items:center;justify-content:space-between;gap:36px}.home-contact h2{font-size:clamp(33px,4vw,54px)}.home-contact p{margin-top:10px;color:var(--muted)}
/* INTERNAL PAGES */
.intro-title{background:#e8f0e9;padding:87px 0 90px}.breadcrumbs{display:flex;gap:11px;color:#53707e;font-size:12px;font-weight:750;margin-bottom:29px}.breadcrumbs a{text-decoration:underline;text-underline-offset:5px}.intro-title h1{font-size:clamp(54px,6.65vw,96px);max-width:990px}.intro-title p{margin-top:29px;max-width:650px;color:var(--muted);font-size:17px}.page-learning .intro-title,.page-school-life .intro-title,.page-contact .intro-title{background:#e5edf1}.page-gallery .intro-title{background:var(--navy);color:white}.page-gallery .breadcrumbs,.page-gallery .intro-title p{color:#b5cbd6}.page-gallery .intro-title em{color:#ffcf55}.page-teachers .intro-title{background:#e9e6dc}.page-admissions .intro-title{background:#ecede5}
.story-hero{padding-top:100px;padding-bottom:100px}.story-hero-grid{display:grid;grid-template-columns:1.15fr .8fr;gap:90px;align-items:center}.story-portrait{position:relative}.story-portrait img{width:100%;height:615px;object-fit:cover;object-position:50% 82%;border-radius:13px}.story-portrait figcaption,.learn-open figcaption,.admissions-photo figcaption{font-size:11px;font-weight:700;margin-top:15px;color:#657682}.story-aside{position:relative}.story-aside p{margin-top:23px;color:var(--muted);font-size:16px}.vertical-word{display:inline-block;font-size:12px;letter-spacing:.15em;font-weight:800;color:var(--blue);margin-bottom:22px}.story-beliefs{background:var(--mint)}.belief-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:100px}.belief-list>div{padding:20px 0 24px;border-bottom:1px solid #b5cfc6}.belief-list>div:first-child{padding-top:0}.belief-list span{font-family:var(--font-head);font-size:23px;font-weight:750;letter-spacing:-.025em}.belief-list p{font-size:15px;color:#4a6261;max-width:530px;margin-top:7px}.partnership-grid,.story-people-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(50px,8vw,110px);align-items:center}.partnership-grid h2{max-width:630px}.partnership-grid p:not(.small-cap),.story-people p{margin-top:20px;font-size:16px;color:var(--muted);max-width:600px}.partnership-grid .text-link,.story-people .text-link{margin-top:26px}.partnership figure img{width:100%;height:440px;object-fit:cover;border-radius:12px;object-position:center 66%}.partnership figure figcaption{font-size:12px;color:#6a7d85;margin-top:12px}.story-people{background:#e6eff1}.story-people figure img{width:100%;height:470px;object-fit:cover;border-radius:14px;object-position:50% 62%}
.learn-open{background:#f8f8f3}.learn-open-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(50px,8vw,115px);align-items:center}.learn-open figure img{width:100%;height:590px;object-fit:cover;object-position:center 62%;border-radius:13px}.learn-open p,.learn-note p{margin-top:25px;font-size:16px;color:var(--muted)}.line-note{font-size:15px;font-weight:700;margin-top:43px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.learn-features{background:#dbe9ee}.learning-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.learning-entry{min-width:0}.learning-image{height:360px;overflow:hidden;border-radius:13px;background:#b2cad7}.learning-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}.learning-entry:hover img{transform:scale(1.035)}.entry-class img{object-position:center 62%}.entry-making img{object-position:center 50%}.entry-outdoors img{object-position:center 52%}.learning-entry>div:last-child{padding:24px 0}.learning-step{display:block;color:#2e76b5;text-transform:uppercase;letter-spacing:.12em;font-weight:800;font-size:11px;margin-bottom:12px}.learning-entry h3{font-size:29px}.learning-entry p{font-size:14px;color:var(--muted);margin-top:10px}.learn-note-grid{display:grid;grid-template-columns:1fr 1fr;gap:85px;align-items:center}.learn-note figure img{width:100%;height:450px;object-fit:cover;object-position:center 65%;border-radius:13px}
/* PEOPLE */
.principal{background:#f9faf7}.principal-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(55px,8vw,108px);align-items:center}.principal figure img{width:100%;height:540px;object-fit:cover;object-position:center 50%;border-radius:13px}.principal figcaption{font-size:12px;font-weight:700;color:#637786;margin-top:14px}.principal-copy h2{font-size:clamp(34px,4.7vw,61px)}.principal-copy>p:not(.small-cap){margin-top:20px;color:var(--muted);font-size:16px}.principal-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:17px}.principal-meta strong{color:var(--ink)}.principal-meta span{font-size:12px}.note{font-size:12px!important;color:#627582!important}.principal-copy .text-link{margin-top:24px}.people-team{background:#e4eff0}.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.person{border:0;padding:0;text-align:left;background:transparent;color:var(--ink);min-width:0}.person-frame{display:block;height:390px;overflow:hidden;position:relative;border-radius:12px 12px 0 0;background:#e7e5dd}.person-frame img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;transition:transform .55s var(--ease),filter .4s}.person:hover .person-frame img{transform:scale(1.04);filter:saturate(1.08)}.person-data{display:flex;flex-direction:column;background:#f9faf7;min-height:132px;padding:19px 22px 21px;border-radius:0 0 12px 12px}.person-data strong{font-family:var(--font-head);font-size:23px;letter-spacing:-.025em}.person-data small{font-size:13px;color:#677784;font-weight:650;margin-top:3px}.person-more{font-size:12px;font-weight:800;margin-top:auto;padding-top:15px;display:flex;align-items:center;gap:10px}.person-more svg{width:16px}.team-photo-section{background:#f9faf7}.team-photo-grid{display:grid;grid-template-columns:.7fr 1.3fr;gap:80px;align-items:center}.team-photo-grid p{margin-top:25px;font-size:17px;color:var(--muted)}.team-photo-grid figure img{height:500px;width:100%;object-fit:cover;object-position:center 35%;border-radius:13px}
/* LIFE */
.life-intro{background:#f9faf7}.life-feature{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:clamp(55px,9vw,130px)}.life-feature figure img{width:100%;height:520px;object-fit:cover;object-position:50% 68%;border-radius:13px}.life-feature p,.life-last p,.life-staff p{font-size:16px;color:var(--muted);margin-top:25px;max-width:510px}.life-gallery{background:#e3edf0}.life-mosaic{display:grid;grid-template-columns:1.15fr 1fr 1fr;grid-template-rows:360px 360px;gap:18px}.life-item{position:relative;overflow:hidden;border-radius:12px;min-width:0}.life-item img{height:100%;width:100%;object-fit:cover;transition:transform .6s var(--ease)}.life-item:hover img{transform:scale(1.04)}.life-item:after{position:absolute;content:'';inset:50% 0 0;background:linear-gradient(transparent,rgba(6,35,49,.66))}.life-item figcaption{position:absolute;left:23px;bottom:20px;font-size:17px;font-weight:800;color:#fff;z-index:1}.life-item.large{grid-row:span 2}.life-item.wide{grid-column:span 2}.life-item.large img{object-position:48% 62%}.life-item.short img{object-position:50% 58%}.life-item.wide img{object-position:50% 62%}.life-last-grid,.life-staff-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(50px,9vw,125px);align-items:center}.life-last-grid figure img{height:460px;width:100%;object-fit:cover;border-radius:13px;object-position:50% 58%}.life-last .text-link{margin-top:30px}.life-staff{background:#e7efea}.life-staff figure img{height:430px;width:100%;object-fit:cover;object-position:50% 53%;border-radius:13px}.life-staff .text-link{margin-top:26px}
/* PHOTO JOURNAL */
.journal{background:#f8f8f5}.journal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px;border-bottom:1px solid var(--line);padding-bottom:16px;gap:20px;font-size:14px}.journal-head span{font-size:11px;color:var(--muted)}.journal-grid{columns:3;column-gap:17px}.journal-item{border:0;display:block;position:relative;width:100%;height:auto;margin:0 0 17px;padding:0;break-inside:avoid;overflow:hidden;border-radius:10px;background:#dbe8e4;color:white}.journal-item img{display:block;width:100%;height:auto;transition:transform .65s var(--ease),filter .35s}.journal-item:hover img{transform:scale(1.03);filter:saturate(1.07)}.journal-item:after{content:'';position:absolute;inset:60% 0 0;background:linear-gradient(transparent,rgba(8,32,47,.8));pointer-events:none}.journal-caption{position:absolute;left:16px;bottom:16px;right:16px;display:flex;justify-content:space-between;gap:12px;align-items:center;z-index:1;font-size:13px;font-weight:800;text-align:left}.journal-caption>span{font-size:21px;font-weight:400}
/* ADMISSIONS & CONTACT */
.admissions{background:#f9faf7}.admissions-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(55px,9vw,120px);align-items:center}.admissions-main h2,.contact-details h2{font-size:clamp(45px,5vw,67px)}.admissions-main>p{color:var(--muted);font-size:16px;margin-top:25px;max-width:575px}.admission-steps{margin-top:35px}.admission-steps>div{display:grid;grid-template-columns:48px 1fr;border-top:1px solid var(--line);padding:21px 0}.admission-steps>div span{font-family:var(--font-head);font-size:13px;color:#3c8db2;font-weight:800;grid-row:span 2}.admission-steps h3{font-size:23px}.admission-steps p{font-size:14px;color:var(--muted);margin-top:6px}.admissions-photo img{height:535px;width:100%;object-fit:cover;object-position:50% 54%;border-radius:12px}.admissions-photo figcaption{margin-top:14px}.admissions-action{background:#e5eef1;text-align:center}.admissions-action h2{font-size:clamp(35px,5vw,60px)}.admissions-action p{max-width:660px;margin:22px auto 0;color:var(--muted)}.contact-action-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:29px}.contact-content{background:#f9faf7}.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(65px,11vw,160px);align-items:start}.contact-details h2{margin-bottom:51px}.contact-detail{padding:20px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;align-items:start;gap:6px}.detail-name{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#59809b;margin-bottom:8px}.contact-detail a{font-size:17px;font-weight:700;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}.contact-detail a:hover{color:var(--blue)}.contact-detail p{font-size:15px}.contact-detail .contact-note{font-size:13px;color:var(--muted);margin-top:9px}.contact-form{background:#e5eef0;padding:clamp(24px,4vw,51px);border-radius:13px;scroll-margin-top:110px}.form-heading h2{font-size:39px}.form-heading p{font-size:14px;color:var(--muted);margin:11px 0 30px}.contact-form label:not(.form-agree label){display:flex;flex-direction:column;gap:9px;margin-bottom:19px}.contact-form label>span{font-size:12px;font-weight:800;color:#273e4d}.contact-form label b{color:#327caf}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.contact-form input:not([type=checkbox]),.contact-form select,.contact-form textarea{appearance:none;display:block;width:100%;border:1px solid #b8cbd2;background:#fff;color:var(--ink);border-radius:6px;min-height:48px;padding:12px 14px;font-size:14px;outline:0;transition:border-color .22s,box-shadow .22s}.contact-form input:focus,.contact-form textarea:focus,.contact-form select:focus{border-color:#2e79ac;box-shadow:0 0 0 3px #397cb128}.contact-form textarea{resize:vertical;min-height:128px}.contact-form input::placeholder,.contact-form textarea::placeholder{color:#86939b}.form-agree{display:flex;align-items:start;gap:10px;margin-bottom:23px}.form-agree input{margin-top:4px;accent-color:var(--navy)}.form-agree label{font-size:12px;line-height:1.6;color:#475f6d}.form-response{font-size:13px;color:#2b6570;margin:14px 0 0}.form-footnote{font-size:12px;color:#5e737e;margin-top:14px}.reading-page{max-width:810px}.reading-page h2{font-size:34px;margin-top:35px}.reading-page h2:first-child{margin-top:0}.reading-page p{font-size:16px;color:var(--muted);margin-top:15px}.reading-page a{color:#2278ab;text-decoration:underline}.notfound{min-height:64vh;display:grid;align-items:center}.notfound p{margin-bottom:20px}.notfound h1{font-size:clamp(52px,7vw,92px)}.notfound .btn{margin-top:32px}
/* MODALS */
.modal[hidden],.lightbox[hidden]{display:none!important}.modal,.lightbox{position:fixed;inset:0;z-index:900;display:grid;place-items:center;padding:24px}.modal-shade,.lightbox-shade{position:absolute;inset:0;background:#0b2536d9}.modal-panel{position:relative;background:#f9faf7;width:min(850px,100%);max-height:calc(100vh - 48px);overflow-y:auto;border-radius:14px;box-shadow:0 20px 75px #06182555}.teacher-panel{display:grid;grid-template-columns:340px 1fr}.teacher-modal-photo{background:#dde8e2;overflow:hidden}.teacher-modal-photo img{width:100%;height:100%;min-height:490px;object-fit:cover;object-position:50% 22%}.teacher-modal-copy{padding:57px 46px 45px}.teacher-modal-copy h2{font-size:47px}.teacher-modal-copy>p:not(.small-cap){margin-top:20px;color:var(--muted)}.modal-close{position:absolute;top:14px;right:17px;z-index:3;background:#fff;color:var(--ink);border:0;border-radius:50%;width:38px;height:38px;font-size:26px;display:grid;place-items:center;line-height:1}.modal-close:hover{background:var(--sun)}.lightbox{background:#0b2536ed;color:white;grid-template-columns:55px minmax(0,1fr) 55px;gap:15px}.lightbox-shade{background:transparent}.lightbox>figure{position:relative;z-index:2;text-align:center;max-height:calc(100vh - 140px);display:flex;flex-direction:column;align-items:center;gap:14px}.lightbox figure img{max-height:calc(100vh - 200px);max-width:min(1050px,100%);height:auto;width:auto;object-fit:contain;border-radius:6px}.lightbox figcaption{font-size:13px;color:#d6e6eb}.lightbox-arrow{z-index:3;border:1px solid #9caebd;color:white;background:#133348c9;width:45px;height:45px;border-radius:50%;font-size:23px}.lightbox-prev{grid-column:1}.lightbox-arrow:hover{background:#316d99}.lightbox-controls{position:absolute;top:22px;right:30px;left:30px;z-index:4;display:flex;justify-content:space-between;flex-direction:row-reverse;gap:25px;align-items:center}.lightbox-controls button{background:transparent;color:white;border:1px solid #94aaba;padding:8px 15px;border-radius:30px;font-weight:700}.lightbox-controls span{font-size:12px;color:#bdced6}
/* FOOTER */
.footer{background:#0e2737;color:#e7eef0;padding-top:93px}.footer-main{display:grid;grid-template-columns:1.7fr .75fr .85fr 1.25fr;gap:clamp(30px,4.2vw,70px);padding-bottom:85px}.footer .identity{min-width:0}.footer .identity img{width:68px;height:68px}.footer .identity b{font-size:18px;color:#fff}.footer .identity small{color:#a7c1cd;font-size:10px}.footer-brand p{margin:24px 0 20px;max-width:330px;color:#a8bfca;font-size:15px}.footer-social{display:flex;gap:18px;flex-wrap:wrap}.footer-social a{font-size:12px;font-weight:800;color:#e4eef2;border-bottom:1px solid #637f8d;padding-bottom:5px}.footer-social a:hover{color:var(--sun)}.footer-col{display:flex;flex-direction:column;align-items:start;gap:15px}.footer-col h2{font-family:var(--font-body);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#88acc0;margin-bottom:14px}.footer-col>a{font-size:14px;font-weight:550;line-height:1.4;color:#e9f0f1;overflow-wrap:anywhere}.footer-col>a:hover{text-decoration:underline;text-underline-offset:4px;color:var(--sun)}.footer-contact p{font-size:13px;color:#a8bfca}.footer-contact .partner-link{font-size:12px;color:#a8bfca;margin-top:8px}.footer-bottom{border-top:1px solid #365265;display:flex;justify-content:space-between;align-items:center;gap:30px;padding:26px 0 30px;color:#a6becb;font-size:12px}.footer-bottom a{font-weight:700;color:#fff}
/* MOTION: content visible by default; subtle reveal only when enhanced */
.js-motion [data-reveal]{opacity:1;transform:translateY(0)}.js-motion.has-observer [data-reveal]{opacity:1;transform:none}.js-motion.has-observer [data-reveal].entered{animation:quiet-arrival .55s var(--ease) both}@keyframes quiet-arrival{from{opacity:.72;transform:translateY(13px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1250px){.shell{width:min(var(--shell),calc(100% - 64px))}.identity{min-width:213px}.desktop-nav{gap:11px}.desktop-nav a{font-size:11px}.header-inner{gap:15px}.header-contact{padding:0 12px;font-size:11px}.hero-grid{gap:50px}.hero-copy h1{font-size:clamp(51px,5.9vw,78px)}.life-mosaic{grid-template-rows:310px 310px}}
@media(max-width:1060px){.desktop-nav,.header-contact{display:none}.menu-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:transparent;border:1px solid #c3d0d0;border-radius:6px;width:43px;height:43px}.menu-trigger span{height:2px;width:20px;background:var(--navy);transition:transform .25s,opacity .25s}.menu-trigger[aria-expanded=true] span:first-child{transform:translateY(8px) rotate(45deg)}.menu-trigger[aria-expanded=true] span:nth-child(2){opacity:0}.menu-trigger[aria-expanded=true] span:last-child{transform:translateY(-8px) rotate(-45deg)}.header-inner{justify-content:space-between}.mobile-nav:not([hidden]){display:grid;grid-template-columns:1fr 1fr;background:#f9faf7;gap:0 20px;padding:20px 32px 35px;border-top:1px solid var(--line)}.mobile-nav>a{border-bottom:1px solid var(--line);padding:17px 6px;font-family:var(--font-head);font-weight:750;font-size:23px}.mobile-nav>a[aria-current=page]{color:var(--blue)}.mobile-menu-bottom{grid-column:span 2;padding-top:27px;display:flex;gap:20px;font-size:13px;font-weight:700}.hero-grid{grid-template-columns:1fr 1fr}.hero-main-image{left:9%}.hero-media{height:475px}.hero-postcard{width:40%}.footer-main{grid-template-columns:1.35fr .8fr .85fr;gap:45px}.footer-contact{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px 27px}.footer-contact h2{width:100%;margin:0}.footer-contact p{max-width:200px}.team-photo-grid{gap:45px}.people-grid{gap:16px}.person-frame{height:330px}}
@media(max-width:780px){.shell{width:calc(100% - 38px)}.topline .shell{min-height:27px}.topline{font-size:10px}.topline .shell>span:last-child{display:none}.header-inner{min-height:70px}.identity{min-width:0;gap:10px}.identity img{width:44px;height:44px}.identity b{font-size:12px}.identity small{font-size:8px}.mobile-nav:not([hidden]){padding:16px 19px 28px}.mobile-nav>a{font-size:19px;padding:14px 3px}.section{padding:77px 0}.hero-grid{grid-template-columns:1fr;gap:35px;padding-top:58px;padding-bottom:75px}.hero-copy h1{font-size:clamp(52px,12.7vw,86px)}.hero-preface{margin-bottom:24px}.hero-copy>p:not(.hero-preface){margin-top:24px;font-size:15px;max-width:530px}.hero-buttons{margin-top:25px}.hero-small-note{margin-top:30px}.hero-media{height:470px;max-width:650px;width:100%;margin-inline:auto}.hero-main-image{left:12%;top:0;bottom:25px}.hero-postcard{width:34%;height:49%;border-width:5px;border-bottom-width:34px}.hero-postcard figcaption{bottom:-25px;font-size:8px}.hero-stamp{right:0;top:-12px}.hero-bottom .shell{height:47px;font-size:9px}.intro-split,.values-grid,.story-hero-grid,.belief-grid,.partnership-grid,.story-people-grid,.learn-open-grid,.learn-note-grid,.principal-grid,.team-photo-grid,.life-feature,.life-last-grid,.life-staff-grid,.admissions-grid,.contact-grid{grid-template-columns:1fr;gap:40px}.intro-split{gap:25px}.prose-lead{font-size:16px}.section-header{align-items:start;gap:22px}.section-header p{max-width:250px}.story-scroll{padding:0 19px 18px}.route-card{flex-basis:300px;min-height:310px}.values-image{height:410px}.values-image img{object-position:center 56%}.home-contact-inner{align-items:start;flex-direction:column;gap:23px}.intro-title{padding:65px 0 68px}.intro-title h1{font-size:clamp(48px,9vw,79px)}.intro-title p{font-size:15px;margin-top:20px}.story-portrait img{height:570px;object-position:center 75%}.story-aside{padding-top:15px}.belief-grid{gap:34px}.partnership figure{grid-row:1}.partnership figure img{height:380px}.story-people figure img{height:400px}.learn-open figure img{height:520px}.learning-grid{grid-template-columns:1fr 1fr;gap:23px}.learning-grid .learning-entry:last-child{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center}.learning-grid .learning-entry:last-child .learning-image{height:390px}.learning-image{height:330px}.principal figure img{height:450px}.people-grid{grid-template-columns:1fr 1fr;gap:18px}.person-frame{height:330px}.team-photo-grid figure img{height:430px}.life-feature figure img{height:425px}.life-feature-copy{max-width:600px}.life-mosaic{grid-template-columns:1fr 1fr;grid-template-rows:300px 300px 300px}.life-item.large{grid-row:span 2}.life-item.wide{grid-column:span 2}.life-last-grid figure img,.life-staff-grid figure img{height:400px}.journal-grid{columns:2}.admissions-photo{grid-row:1}.admissions-photo img{height:450px}.contact-details h2{margin-bottom:25px}.contact-grid{gap:38px}.contact-details{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.contact-details h2{grid-column:span 2}.contact-detail{padding:18px 0}.footer-main{grid-template-columns:1fr 1fr;gap:45px 30px;padding-bottom:58px}.footer-brand{grid-column:span 2}.footer-contact{grid-column:1/-1;display:flex}.footer-bottom{flex-wrap:wrap;gap:15px}.lightbox{grid-template-columns:35px 1fr 35px;gap:6px}.lightbox-arrow{width:34px;height:34px}}
@media(max-width:520px){.shell{width:calc(100% - 34px)}.topline{font-size:9px}.hero-grid{padding-top:47px;padding-bottom:47px}.hero-copy h1{font-size:clamp(47px,13.1vw,69px)}.hero-media{height:405px}.hero-main-image{left:8%;bottom:36px}.hero-postcard{width:43%;height:49%;bottom:0}.hero-stamp{width:69px;height:69px;right:-5px;top:-14px}.hero-stamp b{font-size:22px}.hero-bottom .shell span:first-child{display:none}.hero-bottom .shell{justify-content:center}.hero-buttons{gap:11px}.hero-buttons .btn{width:100%;justify-content:space-between}.section{padding:68px 0}.intro-split h2,h2{font-size:clamp(36px,10vw,51px)}.section-header{align-items:start}.section-header p{display:none}.route-controls{gap:8px}.round-control{height:42px;width:42px}.story-scroll{padding-inline:17px;gap:12px}.route-card{flex:0 0 78vw;min-height:300px;padding:27px 25px}.route-card h3{font-size:38px}.values-image{height:340px}.values-caption{right:0;font-size:11px}.home-contact-inner h2{font-size:40px}.intro-title{padding:49px 0 57px}.intro-title h1{font-size:clamp(43px,11.4vw,58px)}.intro-title p{font-size:14px}.story-portrait img{height:465px}.story-hero,.story-beliefs{padding-top:70px;padding-bottom:70px}.partnership figure img,.story-people figure img{height:300px}.learn-open figure img{height:470px}.learning-grid,.learning-grid .learning-entry:last-child{display:grid;grid-template-columns:1fr}.learning-grid .learning-entry:last-child{grid-column:1}.learning-image,.learning-grid .learning-entry:last-child .learning-image{height:300px}.learning-entry>div:last-child{padding:18px 0 12px}.learning-entry h3{font-size:30px}.learn-note figure img{height:355px}.principal figure img{height:320px;object-position:center 38%}.principal-grid{gap:29px}.principal-meta{display:block}.principal-meta span{display:block;margin-top:7px}.people-grid{grid-template-columns:1fr 1fr;gap:13px}.person-frame{height:225px}.person-frame img{object-position:center 25%}.person-data{padding:15px 12px;min-height:122px}.person-data strong{font-size:19px}.person-data small{font-size:11px;line-height:1.5}.person-more{font-size:11px}.team-photo-grid figure img{height:350px}.life-feature figure img{height:310px}.life-mosaic{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:240px 240px 235px;gap:10px}.life-item figcaption{left:13px;bottom:13px;font-size:13px}.life-last-grid figure img,.life-staff-grid figure img{height:310px}.journal-grid{columns:1}.journal-item{margin-bottom:14px}.journal-item img{max-height:620px;object-fit:cover}.journal-caption{font-size:14px}.admissions-photo img{height:285px}.admission-steps>div{grid-template-columns:42px 1fr}.admission-steps h3{font-size:22px}.contact-details{grid-template-columns:1fr}.contact-details h2{grid-column:1}.contact-form{padding:24px 19px}.field-row{grid-template-columns:1fr;gap:0}.form-heading h2{font-size:36px}.teacher-panel{grid-template-columns:1fr;max-height:calc(100dvh - 30px);overflow:auto}.teacher-modal-photo img{height:300px;min-height:0;object-position:50% 21%}.teacher-modal-copy{padding:26px 23px 31px}.teacher-modal-copy h2{font-size:37px}.modal{padding:15px}.lightbox{padding:7px;grid-template-columns:32px 1fr 32px}.lightbox-controls{left:14px;right:14px;top:15px}.lightbox-arrow{width:32px;height:32px;font-size:18px}.lightbox figure img{max-height:75vh}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}.js-motion.has-observer [data-reveal]{opacity:1;transform:none}}

/* --- October refresh: navigation, carousel, gallery, people and motion polish --- */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.identity img{border-radius:0;background:transparent;box-shadow:none;padding:0}
.footer-social.icon-social{display:flex;gap:12px;margin-top:18px}
.footer-social.icon-social a{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.04);transition:transform .25s var(--ease),background .25s,border-color .25s;color:#fff}
.footer-social.icon-social a:hover{transform:translateY(-2px);background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.34)}
.footer-social.icon-social svg{width:18px;height:18px}
.footer-brand p{max-width:380px}
.footer-bottom{align-items:center}

.activity-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(290px,31%);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:10px}
.activity-carousel::-webkit-scrollbar{display:none}
.activity-slide{display:flex;flex-direction:column;min-height:100%;background:#fff;border-radius:20px;overflow:hidden;scroll-snap-align:start;box-shadow:0 18px 42px rgba(15,50,65,.08);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.activity-slide:hover,.activity-slide:focus-visible{transform:translateY(-6px);box-shadow:0 22px 55px rgba(15,50,65,.12)}
.activity-media{aspect-ratio:4/3;overflow:hidden;background:#cddfe6}
.activity-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.activity-slide:hover .activity-media img{transform:scale(1.04)}
.activity-copy{display:flex;flex-direction:column;gap:12px;padding:20px 20px 22px;color:var(--ink)}
.activity-kicker,.learning-step{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:var(--blue)}
.activity-copy h3{font-size:31px;line-height:1.04}
.activity-copy .route-cta{margin-top:auto;padding-top:10px;color:var(--navy)}
.home-carousel-head{align-items:end}
.home-motion{padding-top:25px}
.motion-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.motion-card{background:#fff;border:1px solid #e2e7e2;border-radius:24px;overflow:hidden;box-shadow:0 16px 35px rgba(16,47,63,.06);transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.motion-card:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(16,47,63,.09)}
.motion-media{aspect-ratio:16/10;background:#c9dbe0}
.motion-media video{width:100%;height:100%;object-fit:cover;display:block}
.motion-copy{padding:22px 22px 25px}
.motion-copy h3{margin:10px 0 10px;font-size:30px}
.motion-copy p{color:var(--muted)}

.uniform-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;columns:initial!important}
.uniform-grid .journal-item{margin:0!important;display:flex;flex-direction:column;overflow:hidden;border-radius:18px;aspect-ratio:4/5;background:#e7efea;border:1px solid #e0e6e2;box-shadow:0 14px 30px rgba(16,47,63,.05);transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.uniform-grid .journal-item:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(16,47,63,.09)}
.uniform-grid .journal-item img{width:100%;height:100%;object-fit:cover;flex:1;max-height:none}
.uniform-grid .journal-caption{position:absolute;left:16px;right:16px;bottom:16px;padding:12px 14px;border-radius:14px;background:linear-gradient(180deg,rgba(18,46,68,.08),rgba(18,46,68,.88));backdrop-filter:blur(4px);color:#fff;display:flex;justify-content:space-between;gap:12px;align-items:flex-end;font-weight:700;font-size:14px}
.uniform-grid .journal-item{position:relative}
.journal-head p{max-width:580px}

.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.person{display:flex;flex-direction:column;height:100%;border-radius:22px;overflow:hidden;background:#fff;border:1px solid #e1e7e4;box-shadow:0 16px 34px rgba(18,46,68,.07);transition:transform .3s var(--ease),box-shadow .3s var(--ease);text-align:left}
.person:hover{transform:translateY(-5px);box-shadow:0 22px 48px rgba(18,46,68,.11)}
.person-frame{height:360px;background:linear-gradient(180deg,#f7fbff 0%,#dfeef6 100%);position:relative;display:flex;align-items:flex-end;justify-content:center;padding:18px 18px 0;overflow:hidden}
.person-frame::before{content:'';position:absolute;inset:auto 10% 12px;height:34px;background:radial-gradient(ellipse at center,rgba(18,46,68,.18),rgba(18,46,68,0) 70%);filter:blur(10px)}
.person-frame img{width:100%;height:100%;object-fit:contain;object-position:center bottom;position:relative;z-index:1}
.person-data{min-height:155px;display:flex;flex-direction:column;gap:8px;padding:18px 18px 20px}
.person-data strong{font-size:29px;line-height:1.02}
.person-data small{font-size:13px;color:var(--muted);line-height:1.5}
.person-more{margin-top:auto;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:var(--navy)}
.teacher-modal-photo{background:linear-gradient(180deg,#f7fbff 0%,#dfeef6 100%);display:flex;align-items:flex-end;justify-content:center}
.teacher-modal-photo img{object-fit:contain!important;object-position:center bottom!important;padding:18px 18px 0}

.learning-grid{align-items:stretch;gap:20px}
.learning-entry{height:100%;display:flex;flex-direction:column;justify-content:stretch;border-radius:18px;background:#fff;box-shadow:0 14px 32px rgba(16,47,63,.05);padding-bottom:14px}
.learning-entry>div:last-child{display:flex;flex-direction:column;flex:1}
.learning-entry h3{font-size:clamp(26px,2vw,34px);min-height:70px}
.learn-note-grid{gap:60px}
.learn-note-grid h2{max-width:10ch}
.learn-open-grid,.admissions-grid{gap:56px}

.admissions-main h2{max-width:10ch}
.contact-details h2{max-width:8ch}
.contact-form{box-shadow:0 18px 38px rgba(18,46,68,.07)}
.form-footnote{color:var(--muted)}

.round-control,.btn,.journal-item,.person,.motion-card,.learning-entry,.contact-form,.contact-detail{will-change:transform}
.has-observer [data-reveal]{opacity:0;transform:translateY(18px) scale(.985);transition:opacity .55s ease,transform .55s var(--ease)}
.has-observer [data-reveal].entered{opacity:1;transform:translateY(0) scale(1)}

@keyframes mobileNavEnter {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileItemCascade {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:1060px){
  .desktop-nav, .header-contact { display: none !important; }
  .menu-trigger {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid #c9d5d5;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    transition: background 0.22s, border-color 0.22s;
  }
  .menu-trigger span {
    display: block;
    height: 2px;
    width: 20px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }
  .menu-trigger[aria-expanded="true"] {
    background: rgba(18, 46, 68, 0.07);
    border-color: #a8bcbd;
  }
  .menu-trigger[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-trigger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-trigger[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden !important;
  }
  body.menu-open .site-header {
    box-shadow: 0 4px 25px rgba(18, 46, 68, 0.08);
  }

  .mobile-nav:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--header-h, 80px);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100dvh - var(--header-h, 80px));
    max-height: calc(100dvh - var(--header-h, 80px));
    width: 100vw;
    background: rgba(250, 250, 247, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(18, 46, 68, 0.09);
    padding: 16px 22px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    box-shadow: 0 30px 60px rgba(18, 46, 68, 0.12);
    z-index: 199;
    animation: mobileNavEnter 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mobile-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .mobile-nav-grid a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid rgba(22, 63, 91, 0.09) !important;
    border-radius: 14px !important;
    padding: 15px 14px !important;
    color: var(--navy) !important;
    text-decoration: none !important;
    font-family: var(--font-head) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 14px rgba(15, 50, 65, 0.04) !important;
    transition: transform 0.18s var(--ease), background 0.18s, box-shadow 0.18s, border-color 0.18s !important;
    opacity: 0;
    animation: mobileItemCascade 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .mobile-nav-grid a:active {
    transform: scale(0.97) !important;
    background: #f1f6f8 !important;
  }

  .mobile-nav-grid a[aria-current="page"] {
    background: #eaf3f8 !important;
    border-color: #2779ad !important;
    color: #12547b !important;
    box-shadow: 0 6px 18px rgba(39, 121, 173, 0.12) !important;
  }
  .mobile-nav-grid a[aria-current="page"]::after {
    content: '' !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: var(--sun) !important;
    box-shadow: 0 0 0 3px rgba(255, 206, 82, 0.35) !important;
    flex: none !important;
  }
  .mobile-nav-grid a:not([aria-current="page"])::after {
    content: '→' !important;
    font-size: 14px !important;
    color: #9cb1bc !important;
    font-weight: 600 !important;
    transition: transform 0.18s, color 0.18s !important;
    flex: none !important;
  }
  .mobile-nav-grid a:not([aria-current="page"]):hover::after,
  .mobile-nav-grid a:not([aria-current="page"]):active::after {
    transform: translateX(3px) !important;
    color: var(--blue) !important;
  }

  .mobile-nav-grid a:nth-child(1) { animation-delay: 0.02s; }
  .mobile-nav-grid a:nth-child(2) { animation-delay: 0.04s; }
  .mobile-nav-grid a:nth-child(3) { animation-delay: 0.06s; }
  .mobile-nav-grid a:nth-child(4) { animation-delay: 0.08s; }
  .mobile-nav-grid a:nth-child(5) { animation-delay: 0.10s; }
  .mobile-nav-grid a:nth-child(6) { animation-delay: 0.12s; }
  .mobile-nav-grid a:nth-child(7) { animation-delay: 0.14s; }
  .mobile-nav-grid a:nth-child(8) { animation-delay: 0.16s; }

  .mobile-menu-bottom {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(22, 63, 91, 0.08) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    opacity: 0;
    animation: mobileItemCascade 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.20s;
  }

  .mobile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 12px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s !important;
  }
  .mobile-btn svg {
    width: 16px !important;
    height: 16px !important;
    flex: none !important;
  }
  .mobile-btn:active {
    transform: scale(0.97) !important;
  }
  .mobile-btn-call {
    background: var(--navy) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(18, 46, 68, 0.16) !important;
  }
  .mobile-btn-call svg {
    color: var(--sun) !important;
  }
  .mobile-btn-mail {
    background: #fff !important;
    color: var(--navy) !important;
    border: 1px solid #d0ddda !important;
    box-shadow: 0 2px 8px rgba(18, 46, 68, 0.05) !important;
  }
  .mobile-btn-mail svg {
    color: #0d76c0 !important;
  }
}
@media(max-width:780px){
  .activity-copy h3,.motion-copy h3{font-size:27px}
  .motion-grid{grid-template-columns:1fr}
  .uniform-grid{grid-template-columns:1fr 1fr}
  .people-grid{grid-template-columns:1fr 1fr}
  .learn-open-grid,.admissions-grid{gap:36px}
  .learning-grid{gap:16px}
}
@media(max-width:520px){
  .home-carousel-head{margin-bottom:26px}
  .route-controls{margin-left:auto}
  .activity-carousel{grid-auto-columns:100% !important;gap:14px !important}
  .activity-copy{padding:17px 16px 19px}
  .activity-copy h3,.motion-copy h3{font-size:24px}
  .uniform-grid{grid-template-columns:1fr}
  .uniform-grid .journal-item{aspect-ratio:4/4.8}
  .people-grid{grid-template-columns:1fr 1fr;gap:14px}
  .person-frame{height:250px;padding:12px 12px 0}
  .person-data{padding:14px 13px 17px;min-height:128px}
  .person-data strong{font-size:22px}
  .person-data small{font-size:11px}
  .learning-entry h3{min-height:0}
  .mobile-nav:not([hidden]) { padding: 14px 16px 24px; }
  .mobile-nav-grid a { font-size: 14px; padding: 13px 10px; }
  .mobile-menu-bottom { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .mobile-btn { padding: 12px 6px; font-size: 11.5px; }
}


/* October layout and editorial revision: shared spacing rhythm */
:root{--section-gap:clamp(52px,5.6vw,82px);--section-gap-phone:clamp(38px,8vw,54px)}
.section{padding:var(--section-gap) 0}
.intro-title{padding:clamp(43px,5vw,67px) 0 clamp(44px,5.2vw,68px)}
.intro-title .breadcrumbs{margin-bottom:18px}
.intro-title p{margin-top:17px;line-height:1.6}
.section-header{margin-bottom:30px}
.section-header p{max-width:460px}
.story-hero{padding-top:var(--section-gap);padding-bottom:var(--section-gap)}
.story-hero-grid{gap:clamp(35px,5vw,74px)}
.story-portrait img{height:clamp(370px,36vw,510px);object-position:50% 90%}
.story-aside p{margin-top:16px;line-height:1.65}
.story-beliefs .belief-grid{gap:clamp(38px,6vw,80px);align-items:center}
.story-beliefs .belief-list{display:grid;gap:0}
.belief-list>div{padding:17px 0 19px}
.belief-list>div:first-child{padding-top:0}
.belief-list p{max-width:43ch;min-height:2.8em;line-height:1.55;margin-top:7px}
.partnership-grid,.story-people-grid,.learn-open-grid,.learn-note-grid,.principal-grid{gap:clamp(32px,5vw,76px)}
.partnership figure img{height:clamp(310px,32vw,430px);object-position:center 57%}
.story-people figure img{height:clamp(340px,34vw,460px)}
.learn-open figure img{height:clamp(330px,38vw,485px);object-position:center 66%}
.learn-open figcaption{margin-top:9px}
.learn-open p,.learn-note p{margin-top:16px;line-height:1.6}
.learn-features .section-header{align-items:end}
.learning-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.learning-entry{height:100%;padding:0;display:flex;flex-direction:column;overflow:hidden;border-radius:14px;box-shadow:0 8px 27px rgba(16,47,63,.06)}
.learning-image{height:auto;aspect-ratio:1.27;flex:none;border-radius:0;overflow:hidden}
.learning-image img{height:100%;width:100%;object-fit:cover}
.learning-entry>div:last-child{display:flex;flex-direction:column;flex:1;padding:19px 20px 22px}
.learning-step{margin-bottom:8px;line-height:1.4}
.learning-entry h3{font-size:clamp(24px,2vw,30px);line-height:1.18;min-height:2.45em;letter-spacing:-.025em}
.learning-entry p{font-size:14px;line-height:1.6;margin-top:10px;min-height:3.15em}
.learn-note figure img{height:clamp(270px,30vw,400px)}
.values-grid{gap:clamp(35px,6vw,85px);grid-template-columns:1fr 1fr}
.values-image{height:clamp(345px,39vw,470px)}
.values-copy h2{font-size:clamp(34px,4.2vw,56px);line-height:1.04}
.values-copy h2 em{white-space:nowrap}
.values-copy p{margin-top:19px;line-height:1.65}
.values-copy .text-link{margin-top:22px}
.principal figure img{height:clamp(340px,39vw,490px);object-position:center 53%}
.principal-copy h2{font-size:clamp(35px,4vw,53px)}
.principal-copy>p:not(.small-cap){line-height:1.65;margin-top:14px}
.principal-copy .small-cap{margin-bottom:16px}
.principal-meta{gap:10px}
.team-photo-grid{gap:clamp(30px,5vw,70px)}
.team-photo-grid figure img{height:clamp(340px,31vw,440px);object-position:center 46%}
.home-intro .intro-split{gap:clamp(30px,5vw,80px)}
.home-contact .home-contact-inner{gap:24px}
.footer{padding-top:56px}
.footer-main{grid-template-columns:minmax(250px,1.6fr) minmax(130px,.7fr) minmax(130px,.8fr) minmax(235px,1.1fr);gap:clamp(28px,3.7vw,60px);padding-bottom:49px;align-items:start}
.footer-brand p{line-height:1.6;margin:18px 0 0;max-width:360px}
.footer-col{gap:12px}
.footer-col h2{margin-bottom:8px}
.footer-contact{gap:12px}
.footer-bottom{padding:20px 0 24px}
.footer .identity img{width:54px;height:54px}
.footer .identity small{font-size:10px}
.footer-social.icon-social{margin-top:19px}
.footer-social.icon-social a{width:43px;height:43px}
.site-header .identity b{line-height:1.1}
.site-header .identity{gap:11px}
/* Reduce exaggerated section spacing at tablet and mobile widths */
@media(max-width:1060px){
 .footer-main{grid-template-columns:minmax(230px,1.2fr) 1fr 1fr;gap:34px;padding-bottom:36px}
 .footer-contact{grid-column:2 / 4;display:flex;flex-direction:column;align-items:flex-start;gap:11px}
 .footer-contact h2{width:auto}
 .learning-grid{gap:14px}
 .learning-entry>div:last-child{padding:16px}
 .learning-entry h3{font-size:25px}
}
@media(max-width:780px){
 .section{padding:var(--section-gap-phone) 0}
 .intro-title{padding:42px 0 44px}
 .intro-title .breadcrumbs{margin-bottom:14px}
 .intro-title h1{font-size:clamp(43px,9vw,69px)}
 .story-hero{padding-top:var(--section-gap-phone);padding-bottom:var(--section-gap-phone)}
 .story-hero-grid,.learn-open-grid,.learn-note-grid,.principal-grid,.story-people-grid,.partnership-grid{gap:26px}
 .story-portrait img{height:380px;object-position:center 92%}
 .story-aside{padding-top:0}
 .belief-list p{min-height:auto;max-width:48ch}
 .learn-open figure img{height:395px}
 .learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .learning-entry h3{min-height:2.5em}
 .learn-note-grid{gap:24px}
 .values-grid{grid-template-columns:1fr;gap:26px}
 .values-image{height:360px}
 .values-copy h2 em{white-space:normal}
 .principal figure img{height:395px}
 .team-photo-grid figure img{height:340px}
 .footer{padding-top:44px}
 .footer-main{grid-template-columns:1fr 1fr;gap:28px 22px;padding-bottom:30px}
 .footer-brand{grid-column:1 / -1}
 .footer-brand p{max-width:570px;margin:15px 0 0}
 .footer-contact{grid-column:1 / -1;border-top:1px solid #2c4758;padding-top:25px}
 .footer-col h2{margin-bottom:7px}
 .footer-bottom{flex-wrap:wrap;gap:10px 16px}
}
@media(max-width:520px){
 .section{padding:42px 0}
 .intro-title{padding:38px 0 40px}
 .intro-title h1{font-size:clamp(39px,11vw,57px)}
 .intro-title p{margin-top:14px}
 .story-portrait img{height:300px;object-position:center 95%}
 .story-hero-grid{gap:19px}
 .story-aside p{margin-top:12px}
 .belief-list>div{padding:15px 0 17px}
 .partnership figure img{height:275px}
 .story-people figure img{height:315px}
 .learn-open figure img{height:360px}
 .learn-open figcaption{font-size:11px}
 .learn-open-grid{gap:22px}
 .section-header{margin-bottom:24px}
 .learning-grid{grid-template-columns:1fr;gap:18px}
 .learning-image{aspect-ratio:1.5}
 .learning-entry>div:last-child{padding:17px 19px 20px}
 .learning-entry h3{font-size:27px;min-height:auto}
 .learning-entry p{min-height:auto;max-width:43ch}
 .learn-note figure img{height:275px}
 .values-image{height:315px}
 .values-copy h2{font-size:clamp(33px,8vw,42px)}
 .principal figure img{height:320px}
 .principal-copy h2{font-size:clamp(31px,8vw,40px)}
 .team-photo-grid figure img{height:275px}
}
@media(prefers-reduced-motion:reduce){.learning-entry img,.person-frame img,.activity-slide img{transition:none!important}}
/* Fixed media tracks prevent portrait photographs stretching one learning card. */
.learning-image{height:clamp(200px,18vw,248px)!important;aspect-ratio:auto!important;min-height:0;flex:0 0 auto}
.learning-image img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:780px){.learning-image{height:218px!important}}
@media(max-width:520px){.learning-image{height:220px!important}}
@media(max-width:780px){
 .learning-grid .learning-entry:last-child{display:flex;flex-direction:column;grid-column:auto;grid-template-columns:none;gap:0;align-items:stretch}
}

/* Faculty portrait presentation */
.person-frame {
  background: #f0eee9;
  padding: 0;
  isolation: isolate;
}
.person-frame::before { content: none; }
.person-frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center 17%;
  filter: none;
  transition: transform .48s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  .person:hover .person-frame img { transform: scale(1.035); filter: none; }
}
.person:active .person-frame img { transform: scale(1.015); }
.teacher-modal-photo { background: #f0eee9; }
.teacher-modal-photo img {
  width: 100%;
  height: 100%;
  min-height: 490px;
  padding: 0;
  object-fit: cover !important;
  object-position: center 14% !important;
}
@media (max-width: 520px) {
  .person-frame { height: clamp(200px,55vw,250px); padding: 0; }
  .person-frame img { object-position: center 12%; }
  .teacher-modal-photo img { height: 300px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .person-frame img { transition: none !important; }
}


/* October final: restrained masthead, reliable media and carefully scaled faculty */
html{scroll-padding-top:82px}
.site-header{top:0}
.header-inner{min-height:80px}
.identity{min-width:265px;gap:13px}
.identity img{width:60px;height:60px;object-fit:contain}
.identity b{font-size:17px;line-height:1.06;letter-spacing:-.035em}
.footer-brand .identity b{font-size:20px;line-height:1.05}
.footer-brand .identity img{width:64px;height:64px}
.footer-brand .identity small{display:none}
.section-header p{line-height:1.5}

/* No second heading where the page title already identifies the contact section. */
.contact-content{padding-top:clamp(36px,4vw,58px)}
.contact-grid{align-items:start}
.contact-details{padding-top:0}
.contact-details .contact-detail:first-of-type{padding-top:5px}
.admissions-action{padding:clamp(44px,5vw,68px) 0}
.admissions-main h2{max-width:13ch}
.admissions-photo figcaption{display:none}

/* Video frame always has a visible poster, even when autoplay is restricted. */
.home-motion{padding-top:clamp(22px,3vw,42px);padding-bottom:clamp(48px,5vw,76px)}
.motion-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}
.motion-card{overflow:hidden;border-radius:17px;background:#fff}
.motion-media{aspect-ratio:16/10;position:relative;overflow:hidden;background:#dce7e3;isolation:isolate}
.motion-media video{width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:#dce7e3}
.motion-media::after{content:none!important;display:none!important}
.motion-copy{padding:18px 22px 23px}
.motion-copy h3{font-size:clamp(21px,2.2vw,29px);margin:0 0 9px}
.motion-copy p{font-size:14px;line-height:1.55}
.video-toggle{position:absolute;z-index:5;right:14px;bottom:14px;width:44px;height:44px;border:1px solid #e3ebeb;background:rgba(255,255,255,.96);color:#17364e;box-shadow:0 5px 18px #152e3d38;display:grid;place-items:center;border-radius:50%;transition:transform .25s,background .25s}
.video-toggle:hover{transform:scale(1.06);background:#fff}
.video-toggle span{font-size:14px}

/* The portrait plates share a fixed composition across desktop and mobile. */
.people-team .section-header{margin-bottom:26px}
.people-grid{gap:19px}
.person-frame{height:305px;background:#f0eee9}
.person-frame img{width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .4s ease}
.person-data{min-height:128px;padding:17px 19px 18px;gap:5px}
.person-data strong{font-size:clamp(20px,2vw,27px)}
.person-data small{font-size:12px}
.person-more{margin-top:auto}
.teacher-modal-photo{background:#f0eee9}
.teacher-modal-photo img{object-fit:cover!important;object-position:center 11%!important;padding:0!important;min-height:0}
.team-photo-grid figure{overflow:hidden;border-radius:16px}
.team-photo-grid figure img{object-fit:contain;object-position:center;background:#e9ede7;width:100%;height:360px}
.team-photo-grid{align-items:center;gap:45px}

/* Each photo has exactly the same card height. Wide groups are letterboxed rather
   than cutting classmates from the sides, and open full-size on click. */
.uniform-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px}
.uniform-grid .journal-item{aspect-ratio:4/4.4;background:#e9eee9;border-radius:14px}
.uniform-grid .journal-item img{object-fit:cover;object-position:50% 47%;height:100%;width:100%}
.uniform-grid .journal-item.journal-wide img{object-fit:contain;object-position:center}
.uniform-grid .journal-caption{background:linear-gradient(180deg,transparent,rgba(12,34,46,.88));backdrop-filter:none;left:0;right:0;bottom:0;padding:34px 13px 12px;border-radius:0;font-size:14px;min-height:67px;align-items:flex-end}
.uniform-grid .journal-item[data-file="journal-football"] img{object-fit:contain}
.uniform-grid .journal-item[data-file="journal-independence"] img{object-fit:contain}
.uniform-grid .journal-item[data-file="journal-holi-colours"] img{object-fit:cover;object-position:center 40%}
.uniform-grid .journal-item[data-file="journal-class-video-still"] img{object-fit:contain}

@media(max-width:1060px){.identity{min-width:0}}
@media(max-width:780px){
 .header-inner{min-height:67px}
 .identity img{width:49px;height:49px}
 .identity b{font-size:15px}
 .mobile-nav:not([hidden]){top:var(--header-h,67px);height:calc(100dvh - var(--header-h,67px))}
 .motion-grid{grid-template-columns:1fr 1fr;gap:13px}
 .motion-media{aspect-ratio:4/5}
 .team-photo-grid figure img{height:300px}
 .uniform-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .uniform-grid .journal-item{aspect-ratio:4/5}
 .person-frame{height:265px}
}
@media(max-width:520px){
 .header-inner{min-height:66px}
 .identity img{width:46px;height:46px}
 .identity b{font-size:14px}
 .mobile-nav:not([hidden]){top:var(--header-h,66px);height:calc(100dvh - var(--header-h,66px))}
 .footer .identity{align-items:center}
 .footer-brand .identity b{font-size:19px}
 .footer-brand .identity img{width:56px;height:56px}
 .footer-main{gap:24px 15px}
 .footer-col{gap:10px}
 .footer-contact{gap:10px}
 .intro-title{padding:32px 0 33px}
 .intro-title .breadcrumbs{margin-bottom:15px}
 .intro-title h1{font-size:clamp(36px,9.3vw,48px);max-width:16ch}
 .intro-title p{margin-top:11px}
 .contact-content{padding-top:31px}
 .contact-grid{gap:25px}
 .admissions-grid{gap:25px}
 .admissions-main h2{font-size:clamp(33px,8.3vw,44px);max-width:16ch}
 .motion-grid{grid-template-columns:1fr;gap:16px}
 .motion-media{aspect-ratio:4/4}
 .motion-copy h3{font-size:25px}
 .people-grid{gap:10px}
 .person-frame{height:193px}
 .person-data{padding:11px 10px 12px;min-height:113px}
 .person-data strong{font-size:18px}
 .person-data small{font-size:10px;min-height:18px}
 .person-more{font-size:10px}
 .people-team .section-header{margin-bottom:19px}
 .team-photo-grid figure img{height:auto;max-height:260px}
 .uniform-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .uniform-grid .journal-item{aspect-ratio:4/5.2}
 .uniform-grid .journal-caption{font-size:11px;padding:25px 9px 8px;min-height:45px}
 .journal{padding-top:38px}
}
@media (prefers-reduced-motion:reduce){.person-frame img,.video-toggle{transition:none}}

/* Final visual review: photographs fill consistent tiles without blank bands. */
.uniform-grid .journal-item img,
.uniform-grid .journal-item.journal-wide img,
.uniform-grid .journal-item[data-file="journal-football"] img,
.uniform-grid .journal-item[data-file="journal-independence"] img,
.uniform-grid .journal-item[data-file="journal-class-video-still"] img {
  object-fit: cover;
}
.uniform-grid .journal-item[data-file="journal-garden"] img {object-position:50% 61%}
.uniform-grid .journal-item[data-file="journal-football"] img {object-position:50% 47%}
.uniform-grid .journal-item[data-file="journal-school-trip"] img {object-position:50% 50%}
.uniform-grid .journal-item[data-file="journal-community"] img {object-position:50% 68%}
.uniform-grid .journal-item[data-file="journal-independence"] img {object-position:50% 43%}
/* Frame portrait and landscape clips in their natural orientations. */
.motion-grid {grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);align-items:start}
.motion-card:first-child .motion-media{aspect-ratio:4/5;}
.motion-card:nth-child(2) .motion-media{aspect-ratio:16/10;}
.motion-card:first-child .motion-media video{object-fit:contain}
.motion-card:nth-child(2) .motion-media video{object-fit:cover}
@media(max-width:780px){
  .motion-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .motion-card:first-child .motion-media{aspect-ratio:4/5}
  .motion-card:nth-child(2) .motion-media{aspect-ratio:4/5}
}
@media(max-width:520px){
  .motion-grid{grid-template-columns:1fr}
  .motion-card:first-child .motion-media{aspect-ratio:4/5}
  .motion-card:nth-child(2) .motion-media{aspect-ratio:16/10}
}


/* Keep the selected video still visible until a browser has a decodable frame. */
.motion-media{position:relative;background:#e8ece9}
.motion-media .motion-poster{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center;z-index:0}
.motion-card:first-child .motion-media .motion-poster{object-fit:contain;background:#e8ece9}
.motion-media video{position:relative;z-index:1;opacity:0;transition:opacity .3s ease;background:transparent}
.motion-media.is-playing video{opacity:1}
.motion-media .video-toggle{z-index:3}
@media(prefers-reduced-motion:reduce){.motion-media video{transition:none}}

/* Important photographs and video stills render immediately; motion is reserved
   for scrolling, hovering, tapping and the active video itself. */
.has-observer .motion-card[data-reveal],
.has-observer .journal-item[data-reveal],
.has-observer .life-item[data-reveal]{opacity:1;transform:none;animation:none;transition:transform .3s var(--ease),box-shadow .3s var(--ease)}


/* === October 2026 QA refinements === */
.contact-action-buttons .btn{min-width:220px;justify-content:space-between}
.contact-action-buttons .btn svg{flex:none}
.contact-content{background:linear-gradient(180deg,#f9faf7 0%,#f4f7f6 100%)}
.contact-grid{align-items:stretch}
.contact-details{background:#fff;border:1px solid #dfe7e4;border-radius:24px;padding:26px 24px 20px;box-shadow:0 14px 34px rgba(15,50,65,.05)}
.contact-details-copy h2{font-size:clamp(34px,4vw,54px);max-width:9ch;margin:0}
.contact-details-copy p{margin:12px 0 8px;color:var(--muted);max-width:34ch}
.contact-detail:first-of-type{border-top:0;padding-top:10px}
.contact-detail{padding-inline:0}
.contact-form{box-shadow:0 18px 42px rgba(15,50,65,.08)}

.uniform-grid .journal-football-focus img{object-position:38% center!important}
.uniform-grid .journal-reading-feature img{object-position:center 46%!important}

.principal-copy h2{max-width:12ch}
.intro-title h1{max-width:10.5ch}
.page-teachers .intro-title p,.page-learning .learn-note p{max-width:34ch}
.page-teachers .principal-copy .text-link{margin-top:28px}

.learning-entry h3{font-size:clamp(25px,2vw,30px);line-height:1.08}
.learning-entry p{max-width:27ch;min-height:3.6em}
.entry-class h3,.entry-making h3,.entry-outdoors h3{max-width:none}
.entry-outdoors img{object-position:52% 46%!important}
.learn-open figure{overflow:hidden;border-radius:14px}
.learn-open figure img{border-radius:14px}
.learn-open figure figcaption{display:none}
.learn-note h2{max-width:11ch}

.belief-list > div{padding-right:14px}
.belief-list p{max-width:38ch;min-height:3.6em}

.home-carousel-head h2{max-width:8.8ch}
.home-routes .route-controls{display:none!important}
.activity-carousel{scroll-behavior:smooth}
.activity-slide.is-clone{pointer-events:none}

.motion-grid{gap:28px}
.motion-card{transform-origin:center bottom}
.motion-media{position:relative;overflow:hidden}
.motion-media video,.motion-media .motion-poster{width:100%;height:100%;object-fit:cover;display:block}
.motion-classroom .motion-media video,.motion-classroom .motion-media .motion-poster{object-position:center 16%}
.motion-play .motion-media video,.motion-play .motion-media .motion-poster{object-position:center 44%;filter:saturate(1.02) contrast(1.03)}
.motion-copy p{max-width:30ch}

.has-observer [data-reveal]{opacity:0;transform:translateY(26px) scale(.985);transition:opacity .6s ease,transform .7s var(--ease);transition-delay:var(--reveal-delay,0ms)}
.has-observer [data-reveal].entered{opacity:1;transform:translateY(0) scale(1)}

@media(max-width:900px){
  .contact-details{padding:24px 20px 18px}
  .contact-details-copy h2{max-width:10ch}
}
@media(max-width:780px){
  .contact-action-buttons .btn{width:min(100%,260px)}
  .home-carousel-head h2{max-width:9.2ch}
  .motion-grid{grid-template-columns:1fr}
  .motion-classroom .motion-media video,.motion-classroom .motion-media .motion-poster{object-position:center 12%}
}
@media(max-width:520px){
  .contact-details{padding:18px 16px 14px;border-radius:18px}
  .contact-details-copy h2{font-size:35px;max-width:8ch}
  .contact-details-copy p{margin-top:10px;max-width:100%}
  .contact-detail:first-of-type{padding-top:4px}
  .page-teachers .intro-title h1{max-width:9.2ch}
  .page-teachers .intro-title p{max-width:24ch}
  .learning-entry p{min-height:0;max-width:100%}
  .learn-note h2{max-width:8ch}
  .home-carousel-head h2{max-width:7.8ch}
  .motion-copy h3{font-size:26px}
}


/* Design revisions — October 14: shared mobile/desktop typography and spacing */
/* ==========================================================================
   GLOBAL UNIFORM TYPOGRAPHY & LAYOUT SYSTEM
   Enforces uniform font sizes across ALL pages without arbitrary reductions.
   ========================================================================== */
:root {
  --section-gap: clamp(40px, 4.4vw, 68px);
  --section-gap-phone: clamp(30px, 6vw, 44px);
}
.section { padding-block: var(--section-gap); }
.intro-title { padding-block: clamp(32px, 3.8vw, 52px); }

/* LEVEL 1: ALL H1 HEADINGS */
h1,
.intro-title h1,
.home-hero .hero-copy h1,
.notfound h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 4.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 800;
  max-width: none !important;
}
.intro-title h1 .line-two { display: inline; }
.intro-title h1 .line-two em { color: var(--blue); }

/* LEVEL 2: ALL H2 HEADINGS */
h2,
.section-header h2,
.home-carousel-head h2,
.home-motion .section-header h2,
.intro-split h2,
.values-copy h2,
.principal-copy h2,
.team-photo-grid h2,
.life-feature h2,
.life-last-grid h2,
.life-staff-grid h2,
.learn-open h2,
.learn-note h2,
.admissions-main h2,
.admissions-action h2,
.contact-details h2,
.contact-form .form-heading h2,
.reading-page h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 800;
  max-width: none !important;
}

/* LEVEL 3: ALL H3 HEADINGS */
h3,
.activity-copy h3,
.motion-copy h3,
.learning-entry h3,
.admission-steps h3,
.route-card h3 {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* BODY PARAGRAPHS */
p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
}
.intro-title p,
.prose-lead p {
  font-size: 16px;
  line-height: 1.65;
}

/* Hero & Section Specific Layouts */
.home-hero .hero-grid { min-height: 520px; padding-top: 50px; padding-bottom: 50px; }
.home-hero .hero-copy h1 em { white-space: nowrap; }

/* Carousel Section: Equal Left & Right Padding */
.home-routes { overflow: hidden; }
.home-carousel-head {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  margin-inline: auto;
  margin-bottom: 32px;
}
.home-carousel-head h2 .line-two { display: inline; }
.home-carousel-head h2 .line-two:before { content: ' '; }
.home-routes .route-controls { display: none !important; }

.carousel-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(22, 63, 91, 0.16);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 46, 68, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-arrow:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 46, 68, 0.15);
}
.carousel-arrow:active {
  transform: translateY(0) scale(0.95);
}
.carousel-arrow svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 780px) {
  .carousel-nav-buttons { display: none !important; }
}

.activity-carousel {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 6px 14px;
  padding-inline: 0;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.activity-carousel.is-dragging {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
}
.activity-carousel.is-dragging .activity-slide {
  pointer-events: none;
}
.activity-carousel::-webkit-scrollbar { display: none; }
.activity-slide {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 18px 42px rgba(15, 50, 65, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .activity-slide:hover,
  .activity-slide:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(15, 50, 65, 0.12);
  }
}

/* "A Little More of School Life" break */
.mobile-break-school { display: inline; }

/* Motion Cards */
.home-motion .motion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
.home-motion .motion-card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.home-motion .motion-media,
.home-motion .motion-card:first-child .motion-media,
.home-motion .motion-card:nth-child(2) .motion-media {
  aspect-ratio: 16/9;
  height: auto;
  flex: none;
}
.home-motion .motion-media video,
.home-motion .motion-media .motion-poster {
  object-fit: cover;
  background: #e6ebea;
}
.home-motion .motion-classroom .motion-media video,
.home-motion .motion-classroom .motion-media .motion-poster { object-position: 50% 60%; }
.home-motion .motion-play .motion-media video,
.home-motion .motion-play .motion-media .motion-poster { object-position: 50% 43%; }
.home-motion .motion-copy { padding: 18px 20px 22px; flex: 1; }
.home-motion .motion-copy p { max-width: none; font-size: 14.5px; line-height: 1.5; }
.home-motion .motion-card .motion-poster { filter: none; }

/* School Life: Days we'll remember strictly 2 lines */
.life-staff-grid figure,
.life-staff-grid > div { min-width: 0; }
.life-staff-grid > div { order: 0; }
.life-staff-grid figure { order: 1; }
.life-last-grid p { line-height: 1.65; }
.days-lead { margin-top: 20px; }
.days-lead .lead-line { display: block; }

/* Teachers: Team photo */
.team-photo-grid figure img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 13px;
}

/* Contact Page Layout */
.contact-content { padding: 24px 0 45px; background: #f9faf7; }
.contact-grid { align-items: start; gap: 24px; }
.contact-details { padding: 10px 27px 23px; background: #fff; border-color: #e3e9e9; }
.contact-details .contact-detail:first-of-type { border: 0; padding-top: 13px; margin-top: 0; }
.contact-form { padding: 28px 26px; }
.contact-form .form-heading h2 { margin: 0 0 18px; }
.contact-form .form-footnote { font-size: 12px; line-height: 1.55; color: #516878; margin-top: 13px; }
.contact-map { margin-top: 14px; overflow: hidden; border-radius: 12px; background: #e7eeea; border: 1px solid #dae5e1; }
.contact-map iframe { width: 100%; height: 220px; display: block; border: 0; filter: saturate(0.88); }
.map-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: #163f5b; font-weight: 800; font-size: 12px; background: #f3f8f7; border-top: 1px solid #d7e4e1; }
.map-link:hover { background: #e4f0eb; }
.map-link svg { height: 17px; width: 17px; }
.contact-details .contact-detail:has(.contact-map) { grid-column: 1 / -1; }
.has-observer .contact-details [data-reveal],
.has-observer .contact-form[data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.identity b { font-size: clamp(15px, 1.5vw, 19px); }
.footer-brand .identity b { font-size: clamp(19px, 1.8vw, 24px); }

/* TABLET BREAKPOINT (max-width: 1060px) */
@media (max-width: 1060px) {
  .identity b { font-size: 16px; }
  .activity-carousel {
    grid-auto-columns: calc((100% - 18px) / 2);
    gap: 18px;
  }
}

/* PHONES & SMALL SCREENS (max-width: 780px) */
@media (max-width: 780px) {
  .section { padding-block: var(--section-gap-phone); }
  .intro-title { padding: 32px 0 36px; }

  /* UNIFORM H1 FOR MOBILE */
  h1,
  .intro-title h1,
  .home-hero .hero-copy h1,
  .notfound h1 {
    font-size: clamp(32px, 7.6vw, 42px);
    line-height: 1.08;
  }
  .intro-title h1 .line-two { display: inline; }

  /* UNIFORM H2 FOR MOBILE */
  h2,
  .section-header h2,
  .home-carousel-head h2,
  .home-motion .section-header h2,
  .intro-split h2,
  .values-copy h2,
  .principal-copy h2,
  .team-photo-grid h2,
  .life-feature h2,
  .life-last-grid h2,
  .life-staff-grid h2,
  .learn-open h2,
  .learn-note h2,
  .admissions-main h2,
  .admissions-action h2,
  .contact-details h2,
  .contact-form .form-heading h2,
  .reading-page h2 {
    font-size: clamp(27px, 6.8vw, 34px);
    line-height: 1.1;
  }

  /* UNIFORM H3 FOR MOBILE */
  h3,
  .activity-copy h3,
  .motion-copy h3,
  .learning-entry h3,
  .admission-steps h3,
  .route-card h3 {
    font-size: clamp(20px, 4.8vw, 23px);
    line-height: 1.18;
  }

  p {
    font-size: 15px;
    line-height: 1.62;
  }

  /* Break school on next line only on mobile */
  .mobile-break-school { display: block; }

  .home-motion .motion-grid { grid-template-columns: 1fr; }
  .home-motion .motion-media,
  .home-motion .motion-card:first-child .motion-media,
  .home-motion .motion-card:nth-child(2) .motion-media { aspect-ratio: 16/10; }
  .home-motion .motion-copy p { white-space: normal; }

  .contact-grid { gap: 24px; }
  .contact-content { padding: 20px 0 35px; }
  .life-staff-grid > div { order: 0; }
  .life-staff-grid figure { order: 1; }
  .team-photo-grid figure img { height: 380px; object-position: center 20%; }
}

/* COMPACT PHONES (max-width: 520px) */
@media (max-width: 520px) {
  .shell { width: calc(100% - 34px); }

  /* UNIFORM H1 FOR COMPACT PHONES */
  h1,
  .intro-title h1,
  .home-hero .hero-copy h1,
  .notfound h1 {
    font-size: clamp(30px, 8.2vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  /* UNIFORM H2 FOR COMPACT PHONES */
  h2,
  .section-header h2,
  .home-carousel-head h2,
  .home-motion .section-header h2,
  .intro-split h2,
  .values-copy h2,
  .principal-copy h2,
  .team-photo-grid h2,
  .life-feature h2,
  .life-last-grid h2,
  .life-staff-grid h2,
  .learn-open h2,
  .learn-note h2,
  .admissions-main h2,
  .admissions-action h2,
  .contact-details h2,
  .contact-form .form-heading h2,
  .reading-page h2 {
    font-size: clamp(26px, 7vw, 31px);
    line-height: 1.12;
  }

  /* UNIFORM H3 FOR COMPACT PHONES */
  h3,
  .activity-copy h3,
  .motion-copy h3,
  .learning-entry h3,
  .admission-steps h3,
  .route-card h3 {
    font-size: clamp(19px, 5vw, 22px);
    line-height: 1.2;
  }

  p {
    font-size: 14.5px;
    line-height: 1.6;
  }

  .home-hero .hero-grid { padding-block: 37px; gap: 20px; }
  .home-routes .section-header { margin-bottom: 23px; }
  .home-carousel-head h2 .line-two { display: block; }
  .home-carousel-head h2 .line-two:before { content: none; }
  .home-routes .shell {
    width: calc(100% - 34px);
    margin-inline: auto;
    padding-inline: 0;
  }
  
  .activity-carousel {
    grid-auto-columns: 100% !important;
    gap: 16px !important;
    padding-inline: 0 !important;
    scroll-padding-inline: 0 !important;
  }

  .home-motion .motion-media,
  .home-motion .motion-card:first-child .motion-media,
  .home-motion .motion-card:nth-child(2) .motion-media { aspect-ratio: 16/10; }
  .home-motion .motion-copy { padding: 15px 17px 17px; }
  .home-motion .motion-copy p { font-size: 13.5px; white-space: normal; }

  .contact-content { padding-top: 12px; }
  .contact-details { padding: 3px 15px 14px; }
  .contact-form { padding: 22px 16px; }
  .contact-map iframe { height: 192px; }
  .identity b { font-size: 15px; }
  .footer-brand .identity b { font-size: 21px; }
  .team-photo-grid figure img { height: 330px; object-position: center 20%; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-carousel { scroll-behavior: auto; }
  .home-motion .motion-media video { transition: none; }
}


/* Final screenshot fixes: show original video across the entire frame, without letterboxing. */
.home-motion .motion-media .motion-poster,
.home-motion .motion-card:first-child .motion-media .motion-poster{object-fit:cover!important;object-position:center center!important;background-color:#e9efec;}
.home-motion .motion-media video,
.home-motion .motion-card:first-child .motion-media video{object-fit:cover!important;object-position:center center!important;}
.home-motion .motion-card:nth-child(2) .motion-media video,
.home-motion .motion-card:nth-child(2) .motion-media .motion-poster{object-position:center 44%!important;}
@media (min-width:781px){
 .life-staff-grid h2{max-width:19ch;line-height:1.06}
 .life-feature h2{max-width:18ch;}
}
@media (max-width:520px){
 .home-motion .motion-media .motion-poster,
 .home-motion .motion-card:first-child .motion-media .motion-poster{object-position:center center!important}
 .home-motion .motion-media video,
 .home-motion .motion-card:first-child .motion-media video{object-position:center center!important}
}


/* ==========================================================================
   October 2026 Impeccable Design Enhancements
   - Unified Contact Container & Micro-animations
   - Strict Two-Line Rule across all devices
   - Admissions Image Full Uncropped Aspect Ratio
   - Admissions Action Buttons Single Line Guarantee
   - Motion Cards Zero-Distance Tightening
   ========================================================================== */

/* Status Pulse Animation */
@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* --- 1. Contact Page Container Perfection --- */
.contact-content {
  padding: clamp(36px, 4vw, 56px) 0 clamp(50px, 6vw, 84px) !important;
  background: linear-gradient(180deg, #f7faf8 0%, #edf3f0 100%) !important;
}

.contact-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
  gap: clamp(24px, 3.2vw, 36px) !important;
  align-items: start !important;
}

.contact-details,
.contact-form {
  background: #ffffff !important;
  border: 1px solid rgba(22, 63, 91, 0.09) !important;
  border-radius: 24px !important;
  padding: clamp(26px, 3.4vw, 38px) !important;
  box-shadow: 0 16px 40px -12px rgba(15, 50, 65, 0.08), 0 3px 8px rgba(15, 50, 65, 0.02) !important;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease) !important;
}

.contact-details:hover,
.contact-form:hover {
  box-shadow: 0 22px 50px -12px rgba(15, 50, 65, 0.12), 0 6px 14px rgba(15, 50, 65, 0.04) !important;
}

.contact-details-header {
  grid-column: 1 / -1;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5edea;
}

.contact-details-header .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #728795;
  margin-bottom: 12px;
}

.contact-details-header .breadcrumbs a {
  color: #728795;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-details-header .breadcrumbs a:hover {
  color: var(--navy);
}

.contact-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 121, 172, 0.08);
  color: #1a567a;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.contact-status-badge.form-badge {
  background: #f1f6f8;
  color: #27475d;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: statusPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.contact-details-header h1 {
  font-size: clamp(34px, 4vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em !important;
  color: var(--navy) !important;
  margin: 0 0 10px !important;
}

.contact-details-header h1 em {
  color: var(--blue);
  font-style: italic;
}

.contact-details-header p {
  font-size: clamp(14px, 1.25vw, 15px) !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  max-width: 38ch !important;
}

.contact-form .form-heading {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5edea;
}

.contact-form .form-heading h2 {
  font-size: clamp(30px, 3.6vw, 42px) !important;
  margin: 0 0 8px !important;
  color: var(--navy) !important;
}

.contact-form .form-subheading {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.contact-detail {
  padding: 16px 0 !important;
  border-top: 1px solid #eef3f1 !important;
  transition: transform 0.25s var(--ease), padding-left 0.25s var(--ease) !important;
}

.contact-detail:first-of-type {
  border-top: 0 !important;
  padding-top: 2px !important;
}

.contact-detail .detail-name {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #557182 !important;
  margin-bottom: 6px !important;
}

.contact-detail a {
  font-size: clamp(16px, 1.35vw, 18px) !important;
  color: var(--navy) !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.contact-detail a:hover {
  color: var(--blue) !important;
}

.contact-map {
  margin-top: 14px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #dce6e2 !important;
  box-shadow: 0 4px 14px rgba(15, 50, 65, 0.05) !important;
}

.contact-map iframe {
  width: 100% !important;
  height: 200px !important;
  border: 0 !important;
  display: block !important;
}

/* --- 2. Action Buttons Single Line Guarantee --- */
.contact-action-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 26px auto 0 !important;
}

.contact-action-buttons .btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  white-space: nowrap !important;
  padding: 13px 18px !important;
  font-size: clamp(12px, 2.9vw, 15px) !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center !important;
}

.contact-action-buttons .btn svg {
  width: 15px !important;
  height: 15px !important;
  flex: none !important;
}

/* --- 3. Admissions Page Strict Two-Line Formatting --- */
.two-lines {
  display: block !important;
  margin: 6px 0 0 !important;
}

.two-lines .line {
  display: block !important;
}

@media (max-width: 520px) {
  .intro-title .two-lines .line {
    white-space: nowrap !important;
    font-size: clamp(12px, 3.4vw, 14px) !important;
    line-height: 1.45 !important;
  }
  .admission-steps .two-lines .line {
    white-space: nowrap !important;
    font-size: clamp(11.5px, 2.95vw, 13.5px) !important;
    line-height: 1.4 !important;
  }
  .admission-steps > div {
    grid-template-columns: 36px 1fr !important;
    gap: 12px !important;
    padding: 16px 0 !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .contact-details,
  .contact-form {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }
  .contact-action-buttons {
    gap: 8px !important;
  }
  .contact-action-buttons .btn {
    padding: 11px 12px !important;
    font-size: clamp(11.5px, 3.2vw, 13px) !important;
  }
}

/* --- 4. Admissions Student Photo Full Uncropped Display on Desktop & Mobile --- */
.admissions-photo {
  align-self: center !important;
}

.admissions-photo img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1280 / 576 !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 36px rgba(15, 50, 65, 0.08) !important;
}

@media (max-width: 780px) {
  .admissions-photo img {
    height: auto !important;
    aspect-ratio: 1280 / 576 !important;
  }
}

@media (max-width: 520px) {
  .admissions-photo img {
    height: auto !important;
    aspect-ratio: 1280 / 576 !important;
  }
}

/* --- 5. Homepage Motion Cards Zero-Distance Tightening --- */
.home-motion .motion-copy {
  padding-top: 14px !important;
  padding-bottom: 20px !important;
}

.home-motion .motion-copy h3 {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}


/* --- Photo Journal Enhancements: 18-photo Grid & Responsive Header Subtitle --- */
.gallery-lead {
  max-width: none !important;
  white-space: nowrap !important;
  margin-top: 14px !important;
}
.gallery-lead-line {
  display: inline;
}
.gallery-lead-line:first-child::after {
  content: " ";
}

@media (max-width: 780px) {
  .gallery-lead {
    white-space: normal !important;
    max-width: 36ch !important;
    margin-inline: auto !important;
  }
  .gallery-lead-line {
    display: block !important;
    white-space: nowrap !important;
  }
  .gallery-lead-line:first-child::after {
    content: none;
  }
}

@media (max-width: 520px) {
  .gallery-lead-line {
    font-size: clamp(12.5px, 3.4vw, 14.5px) !important;
    line-height: 1.45 !important;
  }
}

/* Journal items framing & focal points */
.uniform-grid .journal-item[data-file="journal-football"] img,
.uniform-grid .journal-football-focus img {
  object-fit: cover !important;
  object-position: center center !important;
}
.uniform-grid .journal-item[data-file="journal-backpacks-friends"] img {
  object-fit: cover !important;
  object-position: center 60% !important;
}
.uniform-grid .journal-item[data-file="journal-at-our-desks"] img {
  object-fit: cover !important;
  object-position: center 80% !important;
}
.uniform-grid .journal-item[data-file="journal-courtyard-games"] img {
  object-fit: cover !important;
  object-position: center center !important;
}
.uniform-grid .journal-item[data-file="journal-blue-belts"] img {
  object-fit: cover !important;
  object-position: center 60% !important;
}

/* ==========================================================================
   STREAMLINED FOOTER SYSTEM (DESKTOP & MOBILE)
   Compact layout, zero empty gaps, bottom-bar social media icons.
   ========================================================================== */
.footer {
  background: #0e2737;
  color: #e7eef0;
  padding-top: clamp(48px, 5.5vw, 68px) !important;
}
.footer-main {
  display: grid !important;
  grid-template-columns: minmax(300px, 1.35fr) minmax(320px, 1fr) !important;
  gap: clamp(36px, 5vw, 80px) !important;
  padding-bottom: clamp(32px, 4vw, 48px) !important;
  align-items: start !important;
}
.footer .identity {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.footer .identity img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
}
.footer .identity b {
  font-size: 17px !important;
  color: #fff !important;
  line-height: 1.15 !important;
}
.footer-brand p {
  margin: 16px 0 0 !important;
  max-width: 440px !important;
  color: #a8bfca !important;
  font-size: 14.5px !important;
  line-height: 1.62 !important;
}

/* 2-column nav container: Discover (4) & Connect (4) */
.footer-nav {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(24px, 4vw, 48px) !important;
}
.footer-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 11px !important;
}
.footer-col h2 {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #88acc0 !important;
  margin: 0 0 5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
.footer-col > a {
  font-size: 14px !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
  color: #e9f0f1 !important;
  text-decoration: none !important;
  transition: color 0.2s, transform 0.2s !important;
}
.footer-col > a:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  color: var(--sun) !important;
  transform: translateX(2px) !important;
}

/* Bottom Bar: Copyright on Left, Social Icons on Right */
.footer-bottom {
  border-top: 1px solid #204155 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 20px 0 24px !important;
  color: #9cb4c2 !important;
  font-size: 12px !important;
  flex-direction: row !important;
}
.footer-bottom .copyright-text {
  font-size: 12px !important;
  color: #9cb4c2 !important;
}
.footer-social {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
.footer-social a {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2ecf0 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s !important;
}
.footer-social a:hover {
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--sun) !important;
}
.footer-social svg {
  width: 16px !important;
  height: 16px !important;
  fill: currentColor !important;
  display: block !important;
}

/* Tablet footer */
@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-bottom: 28px !important;
  }
  .footer-brand p {
    max-width: 520px !important;
  }
}

/* Mobile footer: ultra-compact, zero empty space */
@media (max-width: 580px) {
  .footer {
    padding-top: 36px !important;
  }
  .footer-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding-bottom: 20px !important;
  }
  .footer-brand p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin-top: 10px !important;
    max-width: 100% !important;
  }
  .footer-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 16px !important;
  }
  .footer-col h2 {
    font-size: 10.5px !important;
    margin-bottom: 4px !important;
  }
  .footer-col > a {
    font-size: 13.5px !important;
  }
  .footer-bottom {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 0 20px !important;
    width: 100% !important;
  }
  .footer-bottom .copyright-text {
    font-size: 11px !important;
    color: #829aa8 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    line-height: 1.4 !important;
  }
  .footer-social {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .footer-social a {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }
}
