/* Shape Early v2.1 — movement and wayfinding refinements */
:root { --journey-colour: var(--coral); --journey-progress: 0; }
body { overflow-x: hidden; }
.site-header { position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 50; }
.site-header::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); transform: scaleX(var(--header-line, 0)); transform-origin: left; transition: transform .25s ease; }
body.scrolled { --header-line: 1; }
.brand img { background: transparent !important; mix-blend-mode: normal; filter: drop-shadow(0 3px 3px rgb(32 61 57 / .12)); }
.brand > span { text-transform: uppercase; letter-spacing: -.075em; }
.nav-donate { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-donate:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.nav-overlay { background: var(--ink); }
.nav-overlay::backdrop { background: rgb(32 61 57 / .74); backdrop-filter: blur(7px); }
.nav-overlay-top { border-bottom-color: rgb(255 250 244 / .22); }
.nav-close { appearance: none; border: 0; border-radius: 0; background: transparent; color: var(--paper); min-height: 0; padding: 8px 0; font: 800 11px/1 var(--body); text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid var(--yellow); }
.nav-close span { font: 400 21px/0 var(--body); vertical-align: -2px; margin-left: 5px; }
.nav-close:hover { background: transparent; color: var(--yellow); }
.nav-overlay-foot { border-top-color: rgb(255 250 244 / .22); }
.nav-orbit { box-shadow: inset 0 0 0 1px rgb(255 250 244 / .25), 0 20px 80px rgb(0 0 0 / .18); }

/* Thin travelling navigation thread */
.scroll-journey { position: fixed; z-index: 70; left: 14px; top: 0; height: 100vh; width: 2px; background: rgb(32 61 57 / .13); pointer-events: none; }
.scroll-journey i { display: block; position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--journey-progress) * 100%); min-height: 0; background: var(--journey-colour); border-radius: 2px; box-shadow: 0 0 14px color-mix(in srgb, var(--journey-colour) 66%, transparent); }
.scroll-journey b { position: absolute; width: 8px; height: 8px; left: -3px; top: calc(var(--journey-progress) * 100%); border-radius: 50%; background: var(--journey-colour); box-shadow: 0 0 0 4px color-mix(in srgb, var(--journey-colour) 18%, transparent); transform: translateY(-50%); }

/* Quiet, sculptural blocks that move with the reader rather than hijacking the scroll */
.kinetic-blocks { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.kinetic-blocks i,.kinetic-blocks b,.kinetic-blocks span { position: absolute; display: block; will-change: transform; }
.kinetic-blocks i { width: 28px; height: 28px; border-radius: 8px 15px 9px 16px; background: var(--yellow); top: 23vh; right: 5.5vw; transform: translateY(calc(var(--scroll-y, 0) * -.035px)) rotate(calc(var(--scroll-y, 0) * .035deg)); box-shadow: 0 7px 0 rgb(164 55 36 / .12); }
.kinetic-blocks b { width: 16px; height: 54px; border-radius: 10px; background: var(--violet); left: 6vw; top: 68vh; transform: translateY(calc(var(--scroll-y, 0) * .045px)) rotate(calc(-10deg + var(--scroll-y, 0) * -.015deg)); }
.kinetic-blocks span { width: 17px; height: 17px; border-radius: 50%; background: var(--coral); right: 15vw; top: 74vh; transform: translateY(calc(var(--scroll-y, 0) * -.055px)); box-shadow: 9px -13px 0 -4px var(--blue), -13px -6px 0 -4px var(--green); }
main, .site-footer { position: relative; z-index: 5; }
.playground-hero, .human-chapter, .begin-banner { isolation: isolate; }
.playground-hero::before, .human-chapter::after { content: ''; position: absolute; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(1px); }
.playground-hero::before { width: 130px; height: 130px; right: -35px; bottom: 16%; background: radial-gradient(circle at 40% 40%, var(--coral) 0 15%, var(--yellow) 16% 31%, var(--blue) 32% 52%, transparent 53%); transform: rotate(18deg); }
.human-chapter::after { width: 150px; height: 80px; left: -45px; bottom: 8%; background: var(--violet); border-radius: 48% 52% 40% 60% / 60% 42% 58% 40%; opacity: .6; }

/* Supporting notes should be read, not merely discovered. */
.art-caption { font-size: 14px; line-height: 1.35; font-weight: 800; letter-spacing: .01em; color: var(--ink); background: rgb(255 250 244 / .92); padding: 7px 10px; border-radius: 0 12px 0 12px; box-shadow: 0 5px 16px rgb(32 61 57 / .10); }
.compass-bottom p { font-size: 14px; line-height: 1.5; font-weight: 700; color: var(--ink-2); max-width: 440px; }
@media (max-width: 850px) { .scroll-journey { left: 7px; width: 1px; } .scroll-journey b { left: -3px; } .kinetic-blocks i { right: 3vw; width: 19px; height: 19px; } .kinetic-blocks b { display: none; } .kinetic-blocks span { right: 7vw; } .sculpture-stage .art-caption { display: block; right: 12px; bottom: 10px; max-width: 220px; font-size: 12px; } .compass-bottom p { font-size: 14px; } }
/* Brand contrast, a single smooth menu surface, and a no-overflow mobile treatment. */
.brand > span { color: var(--ink); }
.brand > span b { color: var(--coral-dark); }
.brand-overlay > span { color: var(--paper); }
.brand-overlay > span b { color: var(--yellow); }
.footer-brand { margin-top: 54px; display: inline-flex; align-items: center; gap: 16px; color: var(--paper); font: 700 clamp(35px, 4vw, 58px)/.78 var(--display); letter-spacing: -.075em; text-transform: uppercase; }
.footer-brand img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .18)); }
.footer-brand b { color: var(--yellow); }
.site-header, .nav-overlay { max-width: 100%; }
.nav-overlay { inset: 0; width: 100dvw; height: 100dvh; max-height: 100dvh; min-width: 0; overflow: hidden; overscroll-behavior: none; }
.nav-overlay-inner { width: min(1320px, calc(100dvw - 96px)); max-width: none; min-width: 0; height: 100dvh; overflow: hidden; }
.nav-overlay-grid, .overlay-main, .overlay-aside, .overlay-links { min-width: 0; }
.overlay-social { justify-content: center; border-top-color: rgb(255 250 244 / .22); }
.overlay-social > div { display: flex; gap: 12px; }
.nav-trigger { transition: color .2s ease, transform .2s ease; }
.nav-trigger:hover { color: var(--coral-dark); transform: translateY(-1px); }
.nav-trigger:hover i { background: var(--coral); }
@media (max-width: 850px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .site-header { height: 82px; }
  .nav-wrap { min-width: 0; }
  .brand { gap: 5px; min-width: 0; }
  .brand img { width: 47px; height: 47px; }
  .brand > span { font-size: 20px; }
  .nav-donate { margin-left: auto; }
  .nav-trigger { padding-left: 4px; }
  .nav-trigger > span { display: none; }
  .nav-overlay-inner { width: calc(100dvw - 44px); padding: 16px 0 13px; }
  .nav-overlay-top { padding-bottom: 13px; }
  .nav-overlay-grid { display: flex; flex: 1; min-height: 0; padding: 19px 0 10px; gap: 0; }
  .overlay-main { width: 100%; display: flex; flex-direction: column; justify-content: center; }
  .overlay-main > .eyebrow { display: none; }
  .overlay-links { border-top: 0; }
  .overlay-links a { grid-template-columns: 28px minmax(0, 1fr) 20px; padding: 8px 0 9px; font-size: clamp(31px, 9vw, 46px); line-height: .94; }
  .overlay-links a span { font-size: 8px; }
  .overlay-links a b { font-size: 21px; text-align: right; }
  .overlay-aside { position: absolute; left: 0; right: 0; bottom: 54px; padding: 0; background: transparent; color: var(--paper); overflow: visible; }
  .nav-orbit, .overlay-aside > p { display: none; }
  .overlay-ctas { justify-content: flex-start; gap: 8px; }
  .overlay-ctas .button { min-height: 39px; padding: 8px 11px; font-size: 10px; gap: 10px; }
  .overlay-social { position: absolute; right: 0; bottom: 0; margin: 0; padding: 0; border: 0; }
  .overlay-social a { width: 28px; height: 28px; }
  .nav-overlay-foot { padding-top: 10px; font-size: 8px; align-items: center; }
  .nav-overlay-foot > span:first-child, .nav-overlay-foot a { display: none; }
  .nav-foot-smile { display: block !important; font-size: 11px; }
  .footer-brand { margin-top: 42px; gap: 11px; font-size: 38px; }
  .footer-brand img { width: 66px; height: 66px; }
}
/* Shichida-inspired clarity: a calm, persistent desktop bar; one compact mobile menu. */
.nav-trigger { display: none; }
@media (max-width: 850px) {
  .nav-trigger { display: flex; }
  .nav-overlay { position: fixed; top: 82px; bottom: 0; inset-inline: 0; width: 100dvw; height: calc(100dvh - 82px); max-height: calc(100dvh - 82px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  .nav-overlay-inner { width: calc(100dvw - 44px); height: auto; min-height: 100%; overflow: visible; padding: 20px 0 24px; }
  .nav-overlay-top { display: none; }
  .nav-overlay-grid { display: block; min-height: auto; padding: 0; }
  .overlay-main { display: block; }
  .overlay-main > .eyebrow { display: block; margin: 0 0 12px; font-size: 9px; }
  .overlay-links { border-top: 1px solid rgb(255 250 244 / .22); }
  .overlay-links a { grid-template-columns: 34px minmax(0,1fr) 22px; padding: 12px 0; font-size: clamp(35px, 10vw, 50px); line-height: .94; }
  .overlay-links a span { font-size: 8px; }
  .overlay-links a b { font-size: 23px; }
  .overlay-aside { position: static; display: block; margin-top: 26px; padding: 22px 0 0; background: transparent; color: var(--paper); border-top: 1px solid rgb(255 250 244 / .22); }
  .nav-orbit { display: none; }
  .overlay-aside > p { display: block; max-width: 275px; margin: 0 0 18px; color: var(--paper); font-size: 22px; text-align: left; }
  .overlay-ctas { justify-content: flex-start; }
  .overlay-social { position: static; justify-content: flex-start; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgb(255 250 244 / .22); }
  .nav-overlay-foot { display: flex; flex-wrap: wrap; padding-top: 18px; margin-top: 22px; }
  .nav-overlay-foot > span:first-child, .nav-overlay-foot a { display: inline; }
  .nav-foot-smile { width: 100%; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .kinetic-blocks { display:none; } .scroll-journey i { transition:none; } }
