/* Selected feedback mock-ups, kept local for review. */
.nx-bar, .nx-menu { font-family: 'DM Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.nx-bar { background: #4a0620; z-index: 100; }
.nx-bar.is-solid { background: #4a0620; box-shadow: 0 10px 24px -18px #000; }
.nx-bar .wm { font-family: 'Fraunces', Georgia, serif; font-weight: 850; font-variation-settings: 'SOFT' 100, 'opsz' 144, 'WONK' 0; letter-spacing: -.045em; line-height: .8; display: inline-flex; align-items: baseline; }
.nx-bar .st { display: inline-block; width: .64em; height: .64em; margin: 0 .01em; transform: translateY(.05em); }
.nx-bar .st svg { width: 100%; height: 100%; display: block; }
.nx-arrow { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.1em; }
.nx-burger { box-shadow: none; border-radius: 0; width: 48px; }
.nx-burger i { left: 8px; width: 30px; height: 1.5px; }
.nx-burger i:nth-child(1) { top: 16px; }
.nx-burger i:nth-child(2) { top: 27px; }
.nx-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nx-burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }
.nx-menu { z-index: 99; padding-top: max(84px, calc(env(safe-area-inset-top) + 80px)); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.nx-menu p { margin: 0; }
.nx-menu .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nx-menu .blk { filter: none; bottom: 100px !important; opacity: .9; }
.nx-menu .blk + .blk { bottom: 24px !important; }
.nx-menu .foot { position: relative; z-index: 1; }
.nx-menu nav a { font-size: clamp(36px, 6vw, 60px); padding: 14px 0; }
.nx-menu .cta { margin-bottom: 36px; }
/* Keep the existing desktop navigation, with a distinct floating mobile bar. */
@media (max-width: 1023px) {
  .site-header { visibility: hidden; min-height: 64px; padding: 20px 24px !important; }
  .skynav { position: relative !important; }
}
@media (min-width: 1024px) { .site-header > nav[aria-label="Main"], .site-header > .header-cta { display: flex !important; } }
@media (max-height: 720px) { .nx-menu .blk { display: none; } .nx-menu nav a { padding: 10px 0; } .nx-menu .cta { margin: 20px 0 24px; } }
/* Same project treatment, with a silver marble that nudges the coloured bumpers. */
#home #project-learning { background: #f7f3ef !important; }
#home #approach { background: linear-gradient(180deg, #f7f3ef 0, #f7f3ef 100%) !important; }
#home .ps { width: 100%; }
#home .ps .eyebrow { color: #6b022b; margin-bottom: 6px; }
#home .ps-head h2 { font-size: clamp(42px, 6vw, 72px); }
#home .ps-head h2 i { background: none; }
#home .ps .ps-lead { font-size: 17px; line-height: 1.5; }
#home .ps-lane { z-index: auto; }
#home .ps-lane > svg { z-index: 0; }
#home .ps-ball { z-index: 3; filter: none; box-shadow: none; }
#home .learning-wrap { gap: 72px; }
/* Quote and a full-width play tray, then a separate principles heading. */
#home-end #founder-quote { padding-bottom: 0 !important; }
#home-end #founder-quote > .wrap > svg { display: none; }
#home-end #founder-quote blockquote { margin-top: 0 !important; font-size: clamp(32px, 4.4vw, 56px) !important; }
#home-end #playground { padding: 56px 0 0 !important; background: linear-gradient(180deg, #fff 0%, #fff 55%, #fdf0ed 100%); }
#home-end #playground .tray { height: clamp(310px, 34vw, 420px); }
#home-end #playground .toy img { filter: none; }
#home-end #playground .tray-cap { margin: 0; max-width: calc(100% - 64px); font-size: 13px; }
#home-end #principles { background: #fdf0ed; padding-top: 96px !important; }
#home-end #principles .inp { background: #fff; }
#home-end #about { background: linear-gradient(180deg, #fdf0ed, #f7f3ef 180px) !important; }
/* Grouped footer in two calm columns, with a muted legal line and the old cropped shadow. */
#contact .ft-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; padding: 52px 0 40px; }
#contact .ft-links { display: grid; grid-template-columns: auto auto; gap: 56px; }
#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 { color: #ba8d9d; font-size: 13px; line-height: 1.6; }
#contact .footer-email { font-size: 14px; }
#contact .rlink .ca { flex: none; }
#contact .bigstar { background: transparent; color: rgba(0,0,0,.24) !important; }
#contact { background: radial-gradient(120% 90% at 25% 0%, #8a0d3c 0%, #5a0624 48%, #2a0410 100%) !important; }
@media (max-width: 700px) {
  #contact .ft-bottom { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0 28px; }
  #contact .ft-links { grid-row: 1; grid-template-columns: 1fr 1fr; 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 { border-top: 1px solid #fffef526; padding-top: 20px; font-size: 12px; }
  #home-end #principles { padding-top: 64px !important; }
}
/* Default school day stays dark. Phones retain the centred, narrower cards. */
#day.sd { padding-bottom: 60px !important; background: linear-gradient(180deg, #2a0410 0%, #4a0620 45%, #3a0418 80%, #2a0410 100%) !important; }
#day .sd-stage { margin-top: 80px; }
#day .sd-node { cursor: pointer; font-family: inherit; }
#day .sd-node:focus-visible, #day .sd-home:focus-visible { outline: 3px solid #fffef5; outline-offset: 6px; }
#day .sd-home { all: unset; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 190px; margin: 60px auto 0; padding-bottom: 60px; cursor: pointer; }
#day .sd-home svg { width: 170px; height: 162px; }
#day .sd-lane { z-index: auto; }
#day .sd-lane > svg { z-index: 0; }
#day .sd-head { z-index: 3; }
#day .sd-stop { isolation: isolate; }
#day .sd-tx .when { font-size: 12px; color: #6b022b; }
#day .sd-stop.is-here .sd-node { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 20%, transparent); }
@container (max-width: 900px) {
  #day .sd-stage { width: min(calc(100% - 88px), 360px); padding: 0; margin-top: 56px; }
  #day .sd-stop { display: flex; flex-direction: column; align-items: center; margin: 0 0 36px; }
  #day .sd-node, #day .sd-r .sd-node { position: relative; left: auto; right: auto; top: auto; margin: 0 0 28px; flex: none; width: 46px; height: 46px; }
  #day .sd-card, #day .sd-r .sd-card { width: 100%; margin: 0; border-radius: 24px; }
  #day .sd-card img { aspect-ratio: 16 / 10; }
  #day .sd-tx { padding: 18px 20px 22px; }
  #day .sd-tx h3 { font-size: clamp(28px, 8vw, 34px); }
  #day .sd-tx p { font-size: 15px; }
  #day .sd-home { margin-top: 24px; }
  /* The leading star pauses visually at the top of each card instead of covering text. */
}
@media (prefers-reduced-motion: reduce) { .nx-menu.is-open, .nx-menu.is-open nav a { animation: none; } }

/* Carry forward the agreed homepage copy, hierarchy and feedback examples. */
#home .inside-title { margin-bottom: -64px; max-width: 920px; }
#home .inside-title h2 { font-size: clamp(52px, 6vw, 80px); line-height: 1; }
#home .inside-title p { font-size: 20px; line-height: 1.5; max-width: 760px; margin-top: 24px; color: #5a4148; }
#home .feedback-card { display: flex; flex-direction: column; gap: 24px; }
#home .feedback-card > h3 { font-size: clamp(34px, 3.3vw, 44px); line-height: 1.06; }
#home .feedback-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
#home .feedback-tabs .chip { padding: 0 16px; font-size: 14px; }
#home .feedback-view { background: #f7f3ef; border-radius: 22px; padding: 24px; min-height: 230px; }
#home .feedback-view .mini { color: #6b022b; margin-bottom: 14px; }
#home .feedback-view h4 { font-size: 34px; line-height: 1.08; margin: 0 0 16px; }
#home .feedback-view > p:last-child { font-size: 16px; line-height: 1.55; color: #5a4148; }
#home .feedback-cycle { font-size: 13px; line-height: 1.6; font-weight: 600; color: #6b022b; }
#home .feedback-cycle span { padding: 0 4px; }
#home .feedback-note { font-size: 13px; color: #7a6a70; line-height: 1.5; }
#home .event-illustration { position: relative; overflow: hidden; background: #2a0410; }
#home .event-illustration svg { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Compact project choices sit directly beneath the heading. */
#home .ps-top { flex-direction: column; align-items: flex-start; gap: 24px; }
#home .ps-chips { margin: 0; gap: 8px; }
#home .ps-chip { font-size: 13px; min-height: 36px; padding: 0 15px; }
#home .ps-steps { margin-top: 44px; }
/* REAL stays together as a small word, using the shapes and colours of the cards below. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#home .real-mini { display: inline-flex; vertical-align: .02em; gap: .025em; align-items: center; white-space: nowrap; margin: 0 .04em; }
#home .real-mini > span:not(.sr-only) { display: inline-grid; place-items: center; width: .76em; height: .76em; box-sizing: border-box; font-family: 'DM Sans', Arial, sans-serif; font-style: normal; font-weight: 700; line-height: 1; font-size: 1em; }
#home .real-mini b { font-size: .48em; font-weight: 700; }
#home .real-mini .mini-r { background: #6b022b; color: #fffef5; border-radius: 50%; }
#home .real-mini .mini-e { background: #f55747; color: #2a1219; border-radius: .14em; }
#home .real-mini .mini-a { background: #e2fb84; color: #2a1219; clip-path: polygon(50% 0,100% 100%,0 100%); padding-top: .16em; }
#home .real-mini .mini-l { background: #fbbdb7; color: #2a1219; border-radius: .42em .42em .08em .08em; }
/* Spacing between the quote, its attribution and the play tray. */
#home-end { --quote-gap: 56px; }
#home-end #founder-quote { padding-top: var(--quote-gap) !important; }
#home-end #playground { padding-top: var(--quote-gap) !important; }
/* Shift the star a fraction towards the a, including the cropped footer shadow. */
.wm > .st, .shadow-word > .st { position: relative; left: .012em; }
#home .wm > .st, #home-end .shadow-word > .st { left: .012em; }
/* The complete call to action lifts; its arrow stays part of it. */
#home .hero .stackbtns > a, .header-cta, .nx-menu .cta > a { display: inline-flex; align-items: center; transition: transform .25s ease, box-shadow .25s ease; }
.nx-menu .cta > .quiet { padding-left: 24px; }
#home .hero .stackbtns > a:hover .arw, .header-cta:hover .arw { transform: none; }
@media (hover: hover) {
  #home .hero .stackbtns > a:hover, .header-cta:hover, .nx-menu .cta > a:hover { transform: translateY(-4px); }
}
#home .hero .stackbtns > a:focus-visible, .header-cta:focus-visible, .nx-menu .cta > a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
/* Team arrows keep the existing multilingual hello and lead to the saved LinkedIn profiles. */
.person { position: relative; }
.person > div { min-width: 0; }
.person .person-link { margin-left: auto; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #d9c7cd; border-radius: 50%; color: #6b022b; align-self: flex-start; transition: background .2s ease, transform .2s ease; }
.person-link svg { display: block; width: 16px; height: 16px; }
.person .person-link:hover { background: #e2fb84; transform: translateY(-3px); }
.person .person-link:focus-visible { outline: 3px solid #6b022b; outline-offset: 4px; }
.blueprint-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #6b022b; text-decoration: underline; text-underline-offset: 4px; cursor: default; font-weight: 600; font-size: 16px; }
.blueprint-link svg { width: 16px; height: 16px; }
.blueprint-link:focus-visible { outline: 2px solid #6b022b; outline-offset: 5px; }
/* The colour line alone leads through the day. */
#day .sd-stop.is-ahead .sd-card { opacity: .48; }
#day .sd-card { transition: opacity .45s ease, box-shadow .4s ease; }
#day .smoke { display: none; }
@media (max-width: 900px) {
  #home .inside-title { margin-bottom: -72px; }
  #home .feedback-view { min-height: 0; }
}
@media (max-width: 700px) {
  #home-end { --quote-gap: 40px; }
  #home .inside-title h2 { font-size: 48px; }
  #home .inside-title p { font-size: 18px; }
  #home .ps-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  #home .ps-chip { justify-content: center; text-align: center; font-size: 11px; min-height: 36px; padding: 4px 7px; }
  #home .real-intro h2 { line-height: 1.25; }
  #home .feedback-tabs .chip { font-size: 13px; min-height: 40px; padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #home .hero .stackbtns > a, .header-cta, .nx-menu .cta > a, .person .person-link, #day .sd-card { transition: none; }
  #home .hero .stackbtns > a:hover, .header-cta:hover, .nx-menu .cta > a:hover, .person .person-link:hover { transform: none; }
}

@media (max-width: 700px) { #home .inside-title { margin-bottom: 0; } }
@media (max-width: 360px) {
  .person { gap: 12px; padding: 18px; }
  .person .av { width: 48px; height: 48px; font-size: 16px; }
  .person b { font-size: 17px; }
  .person .person-link { width: 32px; height: 32px; }
}
@container (max-width: 900px) {
  #day .sd-stop.is-ahead .sd-card { opacity: 1; filter: brightness(.66) saturate(.7); }
  #day .sd-card { transition: filter .45s ease, box-shadow .4s ease; }
}
@media (prefers-reduced-motion: reduce) { #day .sd-card { transition: none; } }

@media (max-width: 360px) { .nx-menu .blk { display: none; } }

/* Latest feedback: match the hero gaps, simplify the choices and rebalance the footer. */
#home .hero .stackbtns { margin-top: 64px !important; }
#home [aria-label="Explore a project idea"] { gap: 8px !important; }
#home [aria-label="Explore a project idea"] .chip { font-size: 13px; min-height: 36px; padding: 0 12px; }
#home-end #founder-quote { padding-top: 96px !important; }
#contact .ft-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; }
#contact .ft-links { grid-column: 1; grid-row: 1; grid-template-columns: 200px 250px; column-gap: clamp(48px, 7vw, 100px); justify-self: start; }
#contact .ft-co { grid-column: 2; grid-row: 1; align-self: end; text-align: right; max-width: 280px; }
.person .person-link { background: #f7f3ef; border-color: #e4d8d2; }
.person .person-link:hover, .person .person-link:focus-visible { background: #fbbdb7; }
@media (max-width: 900px) {
  #contact .ft-bottom { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #contact .ft-links { width: 100%; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  #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; }
}
@media (max-width: 700px) {
  #home .hero .stackbtns { margin-top: 48px !important; }
  #home .ps-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home [aria-label="Explore a project idea"] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home [aria-label="Explore a project idea"] .chip { justify-content: center; padding: 4px 8px; font-size: 12px; }
  #home-end #founder-quote { padding-top: 72px !important; }
}

/* Final review: equal hero gaps and small, discoverable details. */
#home .hero-copy { --hero-gap: 72px; }
#home .hero .hero-copy > .wm { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
#home .hero .hero-copy .heroh1, #home .hero .hero-copy .stackbtns { margin-top: var(--hero-gap) !important; }
#home .real summary { position: relative; }
#home .real-toggle { position: absolute; right: 0; top: 3px; display: block; width: 16px; height: 16px; color: #b8aaa4; transition: transform .2s ease, color .2s ease; }
#home .real-toggle svg { width: 100%; height: 100%; display: block; }
#home .real details[open] .real-toggle { transform: rotate(45deg); color: #6b022b; }
#home .real details:hover .real-toggle { color: #7f6e75; }
#home .ps-ball { filter: none !important; box-shadow: none !important; }
#home-end #founder-quote { padding-top: 112px !important; }
#home-end #playground { padding-top: 72px !important; }
#home-end .team-intro { font-size: 19px; line-height: 1.5; max-width: 600px; color: #5a4148; }
.person .person-link { background: #fff; }
.person .person-link:hover, .person .person-link:focus-visible { background: #f7f3ef; }
@media (max-width: 700px) {
  #home .hero-copy { --hero-gap: 56px; }
  #home-end #founder-quote { padding-top: 88px !important; }
  #home-end #playground { padding-top: 56px !important; }
  #home-end .team-intro { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { #home .real-toggle { transition: none; } }
