/* Round 5 review: shared typography, contact hierarchy and footer. */
h1,h2,h3,h4 { text-wrap:balance; }
p,li,dd,summary { text-wrap:pretty; }
.nx-nowrap { white-space:nowrap; }
#contact h2 { line-height:1.08 !important; }
#contact h2 i { background-position:0 97%; background-size:100% .035em; text-underline-offset:.1em; }
#home .sci { width:100%; margin:0; }
#home .sci summary { display:flex; justify-content:space-between; align-items:center; gap:32px; margin:0; padding:28px 32px; border:1px solid #e6dcd6; border-radius:24px; background:#fffef5; list-style:none; }
#home .sci summary::-webkit-details-marker { display:none; }
.science-copy { display:flex; flex-direction:column; gap:10px; }
.science-copy strong { font-size:23px; color:#2a1219; font-family:'Instrument Serif',Georgia,serif; font-weight:400; }
.science-copy > span { color:#5a4148; font-size:16px; line-height:1.5; font-weight:400; }
.science-action { display:inline-flex; align-items:center; justify-content:center; gap:14px; flex:none; border-radius:999px; background:#2a1219; color:#fffef5; padding:18px 24px; font-size:15px; line-height:1.3; transition:transform .2s; }
.sci summary:hover .science-action { transform:translateY(-3px); }
.sci summary:focus-visible { outline:3px solid #6b022b; outline-offset:5px; }
.sci .science-action svg { transition:transform .2s; }
.sci[open] .science-action svg { transform:rotate(90deg); }
#home .knowledge-offer { grid-template-columns:minmax(0,1fr); gap:40px; }
#home .knowledge-offer > div:first-child { max-width:780px; }
#home .knowledge-offer .real-intro { margin-top:16px; }
#home .knowledge-offer .real { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
#home .knowledge-offer .pj { width:100%; max-width:800px; margin:8px auto 0; box-sizing:border-box; }
#app > .hero:has(.strip) { padding-bottom:100px !important; }
#app .strip { padding-bottom:36px; }
.nx-fbar { display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; padding:52px 0 32px; font:400 14px/1.6 'DM Sans',Arial,sans-serif; color:#f3d9dc; }
.nx-fbar p { margin:0; }
.nx-fbar nav { display:flex; gap:22px; flex-wrap:wrap; }
.nx-fbar a { position:relative; color:#f3d9dc; text-decoration:none; }
.nx-fbar a:hover,.nx-fbar a:focus-visible { color:#e2fb84; }
.nx-fbar a::after { content:''; position:absolute; left:50%; bottom:-12px; width:9px; height:9px; background:#e2fb84; clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); transform:translateX(-50%) scale(0); transition:transform .2s; }
.nx-fbar a:hover::after,.nx-fbar a:focus-visible::after { transform:translateX(-50%) scale(1); }
.nx-fbar a:focus-visible { outline:2px solid #e2fb84; outline-offset:5px; }
.nx-footer-wordmark { display:flex; justify-content:center; align-items:baseline; font-size:clamp(120px,34vw,500px); color:#9b1a4b; margin:36px 0 -.3em !important; user-select:none; line-height:.8; }
.nx-footer-wordmark .st { display:inline-block; width:.64em; height:.64em; margin:0 .01em; transform:translateY(.05em); }
.nx-footer-wordmark .st svg { display:block; width:100%; height:100%; fill:#e2fb84; }
/* Earlier pointed master star restored at Sophie’s request. */
.wm.logo .st svg,.site-header .wm .st svg,.nx-bar .wm .st svg,.nx-footer-wordmark .st svg { animation:none !important; transform:none !important; }
.foot { padding-top:12px; }
#home .ps.ps-reduced .ps-step { opacity:1; }
#home .ps.ps-reduced .ps-ball { display:none; }
.signup-message { color:#e2fb84; font-size:15px; line-height:1.5; margin-top:16px !important; }
.ff .hero h1 { white-space:nowrap; font-size:clamp(52px,6.6vw,96px); }
.ff .hero { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
.ff .env-wrap { min-width:0; }
.ff .env { max-width:100%; }
.ff .menu { max-height:none; z-index:200; }
.ff .menu .mfoot { padding-bottom:20px; }
.ff .ws .st { cursor:pointer; font:inherit; text-align:left; color:inherit; }
.ff .ws .st:focus-visible { outline:3px solid #6b022b; outline-offset:4px; }
@media(max-width:1100px) {
 .ff .hero { grid-template-columns:minmax(0,1fr); gap:20px; }
 .ff .env-wrap { order:-1; }
 .ff .hero h1 { font-size:clamp(52px,8.5vw,80px); }
 .ff .ws .grid { grid-template-columns:minmax(0,1fr); gap:36px; }
 .ff .ws .stage { width:100%; max-width:440px; margin:auto; }
}
@media(max-width:900px) {
 #home .knowledge-offer .real { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #home .sci summary { align-items:flex-start; flex-direction:column; gap:24px; }
}
@media(max-width:700px) {
 #home .knowledge-offer .real { grid-template-columns:minmax(0,1fr); }
 #home .sci summary { padding:24px; }
 .science-action { width:100%; box-sizing:border-box; white-space:normal; }
 .nx-fbar { align-items:flex-start; flex-direction:column; gap:24px; padding:36px 0 26px; }
 .nx-fbar nav { gap:16px 22px; }
 #app > .hero:has(.strip) { padding-bottom:60px !important; }
 .ff .hero h1 { font-size:clamp(40px,11vw,56px); }
 .ff .env-wrap { height:330px; }
 .ff .env { width:min(320px,100%); }
 .ff .env-flap { width:100%; }
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
 .copy-burst,.burst,.tburst { display:none !important; }
}
/* Latest steering: retain the previous grouped footer and wordmark. */
#app .nx-school-opening { padding-bottom:100px !important; }
.ff .small a { color:#f3d9dc; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:700px){ #app .nx-school-opening { padding-bottom:60px !important; } }
.privacy-heading { padding-top:64px; }
.privacy-heading h1 { font-size:clamp(52px,8vw,96px); margin-top:22px; line-height:1; }
.privacy-copy { padding-top:72px; padding-bottom:96px; max-width:900px; }
.privacy-copy h2 { font-family:'Instrument Serif',Georgia,serif; font-weight:400; font-size:36px; line-height:1.1; margin:40px 0 16px; }
.privacy-copy p { font-size:17px; line-height:1.65; margin:16px 0; }
.privacy-copy a { color:#6b022b; text-underline-offset:4px; }
.privacy-copy .privacy-date { color:#5a4148; font-size:14px; margin-top:40px; }
/* Approved principles mock-up, with one playable block per idea. */
#home-end #principles.nx-pr { container-type:inline-size; background:linear-gradient(180deg,#ffffff 0%,#fdf0ed 22%); padding:0 !important; }
.nx-pr .pr-wrap { position:relative; max-width:1200px; margin:auto; padding:120px 48px 128px; box-sizing:border-box; }
.nx-pr h2,.nx-pr h3,.nx-pr p { margin:0; }
.nx-pr #principles-title { font-size:64px; line-height:.98; padding-right:120px; }
.nx-pr .pr-deco { position:absolute; right:64px; top:92px; width:96px; height:auto; pointer-events:none; animation:nx-pr-roll 7s ease-in-out infinite; }
@keyframes nx-pr-roll { 50% { transform:translateX(var(--roll,-46px)) rotate(-150deg); } }
.nx-pr .pr-list { list-style:none; margin:48px 0 0; padding:0; border-top:1px solid #f0d6d0; }
.nx-pr .pr-row { display:grid; grid-template-columns:150px minmax(0,1fr) minmax(0,1.25fr); gap:40px; align-items:center; padding:34px 0; border-bottom:1px solid #f0d6d0; }
.nx-pr .pr-block { all:unset; box-sizing:border-box; cursor:pointer; position:relative; display:grid; place-items:center; width:150px; height:130px; margin:-26px 0; }
.nx-pr .pr-block:focus-visible { outline:3px solid #6b022b; outline-offset:4px; border-radius:24px; }
.nx-pr .pr-shadow { position:absolute; left:50%; bottom:8px; width:96px; height:14px; margin-left:-48px; border-radius:50%; background:radial-gradient(closest-side,#6b022b2e,transparent); transition:transform .45s,opacity .3s; }
.nx-pr .pr-block img { position:relative; display:block; width:var(--w); height:auto; transform:rotate(var(--r)); animation:nx-pr-bob 3.6s ease-in-out infinite; animation-delay:var(--d); transition:transform .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes nx-pr-bob { 50% { translate:0 -8px; } }
.nx-pr .pr-row:hover .pr-block img { transform:rotate(calc(var(--r) - 12deg)) scale(1.1) translateY(-8px); }
.nx-pr .pr-row:hover .pr-shadow { transform:scale(.8); opacity:.7; }
.nx-pr .pr-block.hop-a img { animation:nx-pr-hop-a .7s cubic-bezier(.3,1.4,.5,1),nx-pr-bob 3.6s ease-in-out .7s infinite; }
.nx-pr .pr-block.hop-b img { animation:nx-pr-hop-b .7s cubic-bezier(.3,1.4,.5,1),nx-pr-bob 3.6s ease-in-out .7s infinite; }
@keyframes nx-pr-hop-a { 0%,100% { translate:0 0; } 40% { translate:0 -46px; rotate:-200deg; } 75% { translate:0 4px; rotate:-360deg; } }
@keyframes nx-pr-hop-b { 0%,100% { translate:0 0; } 40% { translate:0 -46px; rotate:200deg; } 75% { translate:0 4px; rotate:360deg; } }
.nx-pr .pr-title { font-size:46px; line-height:1; transition:transform .35s; }
.nx-pr .pr-title i { color:#6b022b; }
.nx-pr .pr-row:hover .pr-title { transform:translateX(6px); }
.nx-pr .pr-copy { font-size:17px; line-height:1.6; color:#4a3a40; max-width:520px; }
@container(max-width:860px) {
 .nx-pr .pr-wrap { padding:80px 24px 88px; }
 .nx-pr #principles-title { font-size:42px; padding-right:50px; }
 .nx-pr .pr-list { margin-top:32px; }
 .nx-pr .pr-row { grid-template-columns:84px minmax(0,1fr); grid-template-areas:'b t' 'x x'; gap:14px 16px; padding:26px 0; }
 .nx-pr .pr-block { grid-area:b; width:84px; height:84px; margin:0; }
 .nx-pr .pr-shadow { width:60px; margin-left:-30px; bottom:2px; }
 .nx-pr .pr-block img { width:calc(var(--w)*.58); }
 .nx-pr .pr-title { grid-area:t; font-size:34px; }
 .nx-pr .pr-copy { grid-area:x; font-size:16px; }
 .nx-pr .pr-deco { right:16px; top:64px; width:54px; --roll:-14px; }
}
/* A quiet unboxed interaction between the About mission and team. */
.about-page #mission { padding-bottom:48px !important; }
.about-page #about { padding-top:64px !important; }
.nx-about-play { background:linear-gradient(#fdf0ed,#f7f3ef); }
.nx-about-play .tray { position:relative; height:230px; overflow:hidden; touch-action:pan-y; }
.nx-about-play .toy { all:unset; position:absolute; display:block; width:110px; cursor:grab; touch-action:pan-y; z-index:1; }
.nx-about-play .toy.held { cursor:grabbing; z-index:2; }
.nx-about-play .toy img { display:block; width:100%; height:auto; pointer-events:none; animation:nx-about-float 4.5s ease-in-out infinite; animation-delay:var(--delay); }
.nx-about-play .toy:hover img { scale:1.08; }
.nx-about-play .toy.held img { animation:none; scale:1.08; }
.nx-about-play .toy:focus-visible { outline:3px solid #6b022b; outline-offset:5px; border-radius:18px; }
.nx-about-play .about-play-hint { position:absolute; right:0; bottom:8px; font-size:12px; color:#75666b; margin:0; }
@keyframes nx-about-float { 50% { transform:translateY(-10px) rotate(5deg); } }
/* Preserve the old footer layout, standardising its wordmark treatment. */
#home-end #contact .bigstar,#contact .bigstar { font-size:clamp(120px,34vw,500px) !important; color:#9b1a4b !important; height:.56em; line-height:.8; margin:0 !important; overflow:hidden; display:flex; justify-content:center; align-items:baseline; user-select:none; }
#contact .bigstar .shadow-word { display:inline-flex; align-items:baseline; gap:.04em; letter-spacing:0; transform:none; }
#contact .bigstar .shadow-left { letter-spacing:-.045em; }
#contact .bigstar .shadow-right { letter-spacing:0; }
#contact .bigstar .st { display:inline-block; width:.64em; height:.64em; margin:0; flex:none; transform:translateY(.05em); }
#contact .bigstar .st svg { width:100%; height:100%; fill:#e2fb84 !important; }
/* Every master logo star is upright, in all states. */
.wm .st svg,#contact .wm .st svg,.foot-big .st svg,.wm:hover .st svg { animation:none !important; transform:none !important; rotate:none; }
@media(max-width:700px) {
 #contact h2 { line-height:1.2 !important; }
 #contact h2 i { background-position:0 92%; background-size:100% .03em !important; }
 .nx-about-play .tray { height:180px; }
 .nx-about-play .toy { width:70px; }
}
@media(prefers-reduced-motion:reduce) {
 .nx-pr .pr-block img,.nx-pr .pr-deco,.nx-about-play .toy img { animation:none !important; }
 .nx-pr .pr-row:hover .pr-block img { transform:rotate(var(--r)); }
 .nx-pr .pr-row:hover .pr-title { transform:none; }
}
/* Real portraits keep the existing shapes and coloured frame. */
.av.has-photo { box-sizing:border-box; padding:4px; }
.av .portrait-frame { display:block; width:100%; height:100%; border-radius:inherit; overflow:hidden; }
.av .portrait-frame img { display:block; width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.02); }
.av.portrait-sophie img { object-position:50% 20%; transform:scale(1.2); transform-origin:50% 22%; }
.av.portrait-joshua img { transform:scale(2.2); transform-origin:55% 4%; }
.av.portrait-laura img { object-position:50% 20%; }
.av.portrait-phoebe img { object-position:50% 15%; transform:scale(1.18); transform-origin:50% 20%; }
.team-photo-credit { font-size:11px; line-height:1.6; color:#75666b; margin-top:-16px; }
.team-photo-credit a { color:inherit; text-underline-offset:3px; }

/* The restored grouped footer uses the same spacing on standalone pages. */
#contact .ft-bottom { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:64px; align-items:end; padding:52px 0 40px; }
#contact .ft-links { display:grid; grid-column:1; grid-row:1; grid-template-columns:200px 250px; gap:56px; column-gap:clamp(48px,7vw,100px); justify-self:start; }
#contact .ft-links > div { gap:12px; }
#contact .ft-links a { color:#fffef5; font-size:16px; line-height:1.35; min-height:28px; display:flex; align-items:center; }
#contact .ft-links .eyebrow { color:#d7a4b4; font-size:11px; margin:0 0 5px; }
#contact .ft-co { grid-column:2; grid-row:1; align-self:end; text-align:right; max-width:280px; color:#ba8d9d; font-size:13px; line-height:1.6; }
@media(max-width:900px) {
 #contact .ft-bottom { grid-template-columns:minmax(0,1fr); gap:28px; padding:40px 0 28px; }
 #contact .ft-links { width:100%; grid-template-columns:1fr 1fr; column-gap:24px; }
 #contact .ft-links a { font-size:14px; min-height:32px; }
 #contact .ft-links .footer-email { font-size:clamp(10px,3vw,13px); overflow-wrap:anywhere; }
 #contact .ft-co { grid-column:1; grid-row:2; justify-self:end; max-width:none; width:100%; box-sizing:border-box; border-top:1px solid #fffef526; padding-top:20px; font-size:12px; }
}

/* Restore the earlier star shape and spacing; one full turn returns to its original position. */
.wm > .st, #home .wm > .st, .shadow-word > .st, #home-end .shadow-word > .st { position:relative; left:.012em; }
.wm .st svg { transform-origin:50% 50%; }
.wm.nx-logo-turn .st svg, #contact .wm.nx-logo-turn .st svg { animation:nx-logo-settle 1.35s cubic-bezier(.2,.75,.25,1) both !important; }
@keyframes nx-logo-settle { from { rotate:0deg; } to { rotate:360deg; } }
/* Portraits supplied in the team's deck; retain the current coloured frames. */
.av.portrait-sophie .portrait-frame img { object-position:54% 20%; transform:scale(1.85); transform-origin:54% 23%; }
.av.portrait-joshua .portrait-frame img { object-position:50% 12%; transform:scale(2.1); transform-origin:48% 8%; }
.av.portrait-laura .portrait-frame img,.av.portrait-mica .portrait-frame img,.av.portrait-ben .portrait-frame img,.av.portrait-mel .portrait-frame img,.av.portrait-ali .portrait-frame img { object-position:50% 35%; transform:none; }
/* Always-readable steps accompany the automatic tower. */
.ff .ws .steps .st { cursor:default; }
.ff .ws .steps .st:hover .idx { transform:none; }
.ff .ws .steps .st .p { display:block; opacity:1; }
.ff footer#contact { background:radial-gradient(120% 90% at 25% 0%,#8a0d3c 0%,#5a0624 48%,#2a0410 100%); }
@media(prefers-reduced-motion:reduce) {
 .wm.nx-logo-turn .st svg, #contact .wm.nx-logo-turn .st svg { animation:none !important; transform:none !important; }
}

.av.portrait-mel .portrait-frame img { transform:scale(1.85); transform-origin:50% 58%; }
.av.portrait-ben .portrait-frame img { transform:scale(1.55); transform-origin:53% 25%; }
.av.portrait-mica .portrait-frame img { transform:scale(1.45); transform-origin:50% 24%; }

.ff .faq a { color:#6b022b; text-decoration:underline; text-underline-offset:3px; }
#real-curriculum { scroll-margin-top:104px; }
