/* Feedback refinements shared by the four pages. */
#home .toy img, #home-end .toy img { filter: none; }
.real-word { white-space: nowrap; }
#home .section-title { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.06; max-width: 820px; }
#home .steps { row-gap: 32px; }
#home .real-intro { margin-top: 24px; margin-bottom: -24px; }
.ignite-logo { position: relative; display: block; width: 210px; height: 76px; border-radius: 20px; overflow: hidden; background: #fff; }
.ignite-logo img { position: absolute; width: 450px; height: auto; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.av[data-hi]:focus-visible { outline: 3px solid #6b022b; outline-offset: 5px; }
.person:focus-within .av[data-hi]::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
.av[data-hi]::after { font-family: 'DM Sans', Arial, sans-serif; }
.home .house-wall, .home .house-roof, .home .house-door { transition: fill .8s ease; }
.home.lit .house-wall { fill: #361322; }
.home.lit .house-roof { fill: #210d17; }
.home.lit .house-door { fill: #58243a; }
.home.lit .win { fill: #ffe6a0; filter: drop-shadow(0 0 7px #ffd36b) drop-shadow(0 0 16px rgba(255, 211, 107, .6)); }
.home .win { transition: fill .8s ease, filter .8s ease; }
.about-last-line { display: inline-block; white-space: nowrap; }
@media (max-width: 700px) {
  #home .hero { padding-bottom: 104px !important; }
  #home .hero .heroh1 { margin-top: 48px !important; }
  #home .hero-description { margin-top: 32px !important; }
  #home .hero .stackbtns { margin-top: 40px !important; gap: 20px !important; }
  #home .real-word { font-size: .92em; }
  #home .section-title { font-size: 36px; }
  #home .real-intro { margin-top: 8px; }
  .about-last-line { font-size: .92em; }
}
@media (prefers-reduced-motion: reduce) {
  .home .house-wall, .home .house-roof, .home .house-door, .home .win { transition: none; }
}

@media (min-width: 901px) { #home .hero-line { display: block; white-space: nowrap; } }

/* Show the site immediately; retain only interaction-driven motion. */
#home .pgwake, #home-end .pgwake, .pgwake, #home .ph, #home-end .ph, .ph,
#home .dcard.fromL, #home .dcard.fromR, #home-end .dcard.fromL, #home-end .dcard.fromR,
.dcard.fromL, .dcard.fromR { animation: none !important; opacity: 1; translate: none; }
#home .pg h1 i, #home .pg h2 i, #home-end .pg h2 i, .pg h1 i, .pg h2 i, .pg blockquote i,
#home-end .pg blockquote i { animation: none !important; background-size: 100% .055em; }
#home .learning-wrap { display: flex; flex-direction: column; gap: 48px; }
#home #project-learning .real-intro { margin-top: 16px; margin-bottom: -16px; }
#home-end #contact .bigstar, #contact .bigstar { margin-top: 0 !important; }
#home-end #contact nav[aria-label="Footer"], #contact nav[aria-label="Footer"] { position: relative; z-index: 2; }
.luminate-logo { width: 210px; height: 76px; padding: 0 28px !important; box-sizing: border-box; justify-content: center; flex-shrink: 0; }
.luminate-logo svg { width: 145px !important; height: auto !important; max-width: 100%; }
/* Reveal only the upper half of the footer wordmark, at every screen size. */
#home-end #contact .bigstar, #contact .bigstar {
  height: .4em;
  line-height: .8;
  overflow: hidden;
  align-items: baseline;
  margin-bottom: 0 !important;
}

.bigstar .shadow-word { display: inline-flex; align-items: baseline; flex: none; transform: translateY(-.24em); }

/* Local review: continuous colour changes and clearer section hierarchy. */
#home #world > .wrap > .split:first-child { align-items: start !important; }
#home #project-learning {
  background: linear-gradient(180deg, #f7f3ef 0, #fdf0ed 220px) !important;
}
#home #project-learning-title {
  font-size: clamp(52px, 5.8vw, 80px);
  line-height: 1.02;
  max-width: 100%;
  margin-bottom: 12px;
}
/* Equal space either side of the footer star. */
.bigstar .shadow-word { column-gap: .04em; letter-spacing: 0; }
.bigstar .shadow-left { letter-spacing: -.045em; }
.bigstar .shadow-right { letter-spacing: 0; }
.bigstar .shadow-word > .st { margin-left: 0 !important; margin-right: 0 !important; flex: none; }
@media (max-width: 700px) {
  #home #project-learning-title { font-size: clamp(42px, 12vw, 56px); }
}

/* The colour transitions sit above the next heading, within the preceding section. */
#home #approach {
  background: linear-gradient(180deg, #f7f3ef 0, #f7f3ef calc(100% - 140px), #fdf0ed 100%) !important;
}
#home #project-learning { background: #fdf0ed !important; }
.about-page #mission {
  background: linear-gradient(180deg, #fdf0ed 0, #fdf0ed calc(100% - 140px), #f7f3ef 100%) !important;
}
@media (max-width: 700px) {
  .about-page .about-title-break { display: none; }
  .about-page .about-last-line { display: inline; white-space: normal; font-size: inherit; }
}

/* Approved question ticker and extra breathing room above partner marks. */
#home-end .qbar .marq { font-size: 32px !important; animation-duration: 80s; }
#partners { padding-top: 16px; }
@media (max-width: 700px) {
  #home-end .qbar .marq { font-size: 24px !important; }
}

/* A discreet mobile menu; full desktop navigation stays in place. */
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .site-header { position: relative; z-index: 20 !important; padding-top: 20px !important; padding-bottom: 20px !important; padding-left: 24px !important; padding-right: 24px !important; }
  .site-header > nav[aria-label="Main"], .site-header > .header-cta { display: none !important; }
  .site-header > .mobile-menu { display: block; margin-left: auto; border: 0 !important; padding: 0; color: inherit; }
  .mobile-menu > summary { display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; min-height: 44px; padding: 0 !important; border: 1px solid currentColor; border-radius: 50%; opacity: .8; cursor: pointer; list-style: none; color: inherit; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
  .menu-bars { display: grid; gap: 6px; width: 18px; }
  .menu-bars > span { display: block; height: 1.5px; background: currentColor; transition: transform .2s ease; }
  .mobile-menu[open] .menu-bars > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .mobile-menu[open] .menu-bars > span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu nav { position: absolute; top: calc(100% + 4px); right: 24px; width: min(280px, calc(100vw - 48px)); box-sizing: border-box; display: flex; flex-direction: column; gap: 0; padding: 12px; border: 1px solid #e4d6cf; border-radius: 20px; background: #fffef5; color: #2a1219; box-shadow: 0 18px 40px rgba(42, 4, 16, .2); z-index: 30; }
  .mobile-menu nav a { display: block; padding: 13px 16px; color: #2a1219 !important; text-decoration: none; font-size: 16px; font-weight: 500; border-radius: 10px; }
  .mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { background: #f7f3ef; outline: none; }
  .menu-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Cards interrupt the centre line; the numbered stops sit in the gaps. */
  #day .stage { width: min(calc(100% - 104px), 360px) !important; margin: 56px auto 0 !important; padding: 0 0 16px !important; height: auto !important; }
  #day .stage::before { left: 50% !important; top: 22px !important; bottom: 200px !important; width: 4px !important; transform: translateX(-50%); background: linear-gradient(#f55747 0 var(--lit, 0%), rgba(251, 189, 183, .3) var(--lit, 0%)) !important; }
  #day .sw { display: flex !important; flex-direction: column; align-items: center; position: relative; margin: 0 0 36px !important; }
  #day .node, #day .node.here { position: relative !important; left: auto !important; top: auto !important; transform: none !important; flex: none; width: 46px; height: 46px; margin: 0 0 28px; z-index: 3; }
  #day .dcard { position: relative !important; left: auto !important; top: auto !important; width: 100% !important; margin: 0; border-radius: 24px; }
  #day .dcard img { aspect-ratio: 16 / 10; }
  #day .dtx { padding: 18px 20px 22px; }
  #day .dtx h3 { font-size: clamp(28px, 8vw, 34px); }
  #day .dtx p { font-size: 15px; }
  #day .home { position: relative !important; left: auto !important; top: auto !important; transform: none !important; width: 164px; margin: 24px auto 0 !important; }
  #day .home svg { width: 164px; height: 156px; }
  #day .home .hl { font-size: 28px; }
  /* Three overlapping photos, with room for their rotated lower corners. */
  #app .strip { width: calc(100% - 40px); max-width: 420px; margin: 44px auto 0; gap: 0; justify-content: center; align-items: center; padding: 12px 0 44px; box-sizing: content-box; }
  #app .strip img { width: 36% !important; flex: 0 0 36%; aspect-ratio: 3 / 4; border-width: 5px; border-radius: 18px; }
  #app .strip img + img { margin-left: -6%; }
  #app .strip img:first-child { transform: rotate(-6deg) translateY(12px) !important; }
  #app .strip img:nth-child(2) { position: relative; z-index: 2; transform: none !important; }
  #app .strip img:last-child { transform: rotate(6deg) translateY(12px) !important; }
  /* A balanced three-link row followed by a centred pair. */
  #contact .site-footer, #home-end #contact .site-footer { flex-direction: column; align-items: center; gap: 16px !important; text-align: center; padding: 28px 0 12px !important; }
  .site-footer nav[aria-label="Footer"] { order: -1; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px 8px !important; width: min(100%, 340px); }
  .site-footer nav a { grid-column: span 2; display: flex; align-items: center; justify-content: center; min-height: 40px; font-size: 13px; white-space: nowrap; }
  .site-footer nav a:nth-child(4) { grid-column: 2 / span 2; }
  .site-footer nav a:nth-child(5) { grid-column: 4 / span 2; }
  #contact .site-footer .legal { font-size: 12px; line-height: 1.6; color: #ba8d9d; }
  .site-footer .registration { display: block; }
  .site-footer .legal-break { display: none; }
}
@media (prefers-reduced-motion: reduce) { .menu-bars > span { transition: none; } }

/* Local review: play and principles are separate, consecutive sections. */
#home-end #playground { background: linear-gradient(180deg, #fff 0, #fff calc(100% - 100px), #f7f3ef 100%); padding: 0 0 72px; }
#home-end .play-layout { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: 64px; align-items: center; }
#home-end #playground-title { font-size: 38px; line-height: 1.06; color: #6b022b; }
#home-end .play-caption p { font-size: 16px; line-height: 1.5; color: #6c5960; margin-top: 14px; }
#home-end #playground .pfield { width: 100%; max-width: 600px; height: 360px !important; justify-self: end; }
#home-end #principles { background: #f7f3ef; padding: 72px 0 88px; }
#home-end #principles-title { font-size: clamp(54px, 5.6vw, 76px); line-height: 1; color: #2a1219; margin-bottom: 48px; }
#home-end #principles .principle-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; padding: 36px 0; border-color: #ded1ca; }
#home-end .principle-title { font-size: 50px; line-height: 1.02; }
#home-end #principles .principle-copy > .lead { font-size: 19px; line-height: 1.55; margin-top: 0; }
#home-end #principles .inp { background: #fffef5; }
#home-end #principles .principle-row:first-of-type { padding-top: 36px; }
@media (max-width: 900px) {
  #home-end .play-layout { grid-template-columns: 1fr; gap: 24px; }
  #home-end #playground .pfield { max-width: 600px; margin: 0 auto; }
  #home-end .play-caption { max-width: 600px; width: 100%; margin: 0 auto; }
  #home-end #principles .principle-row { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 700px) {
  #home-end #founder-quote { padding-bottom: 40px !important; }
  #home-end #playground { padding-top: 0 !important; padding-bottom: 56px !important; }
  #home-end #playground-title { font-size: 32px; }
  #home-end #playground .pfield { height: 310px !important; border-radius: 24px; }
  #home-end #principles { padding-top: 48px !important; padding-bottom: 56px !important; }
  #home-end #principles-title { font-size: 48px; margin-bottom: 32px; }
  #home-end .principle-title { font-size: 38px; }
  #home-end #principles .principle-copy > .lead { font-size: 18px; }
  #home-end #principles .principle-row { padding: 30px 0; gap: 16px; }
}


/* Partner support has its own heading row and consistent logo-to-copy spacing. */
#partners.partner-support { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); column-gap: clamp(48px, 6vw, 80px); row-gap: 36px; align-items: start; padding-top: 32px; }
#partners.partner-support > .kick { grid-column: 1 / -1; margin: 0; }
.about-page #partners.partner-support { margin-top: 28px; }
#partners .partner-credential { width: 100%; max-width: 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
#partners .partner-caption { width: 100%; max-width: 260px; margin: 0; color: #5d414b; font-size: 14px; line-height: 1.65; }
@media (max-width: 700px) {
  #partners.partner-support { grid-template-columns: minmax(0, 1fr); row-gap: 44px; padding-top: 32px; }
}

/* The email remains on one line at every card width. */
.contact-email-card { min-width: 0; container-type: inline-size; background: #fdf0ed; border-radius: 32px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 24px; }
.contact-email-address { display: block; max-width: 100%; white-space: nowrap; font-size: clamp(22px, 13cqi, 44px); line-height: 1.15; color: #2a1219; text-decoration: none; letter-spacing: -.025em; }
#partners .partner-credential { min-width: 0; }
#partners .luminate-logo, #partners .ignite-logo { box-sizing: border-box; max-width: 100%; }
#partners .partner-caption { text-wrap: pretty; }
#home-end #playground .play-hint { position: absolute; right: 24px; bottom: 20px; z-index: 2; margin: 0; color: #6c5960; font-size: 12px; line-height: 1.4; font-weight: 400; letter-spacing: .02em; pointer-events: none; }
@media (max-width: 700px) {
  .contact-email-card { border-radius: 28px; }
  #home-end #playground .play-hint { right: 18px; bottom: 16px; }
}
