:root {
  color-scheme: light dark;
  --warm: #f4f4f2;
  --graphite: #2b2f33;
  --sage: #8aae92;
  --olive: #4e5f53;
  --space: #080b0d;
  --progress: 0;
}

* { box-sizing: border-box; }
html { background: var(--warm); scroll-behavior: smooth; }
body { margin: 0; color: var(--graphite); background: var(--warm); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .65rem 1rem; color: white; background: var(--graphite); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.story { position: relative; display: none; height: 610vh; }
.js-ready .story { display: block; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--warm); isolation: isolate; transition: background-color .5s ease; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 55%, #26332e 0, #111718 33%, var(--space) 72%); opacity: clamp(0, calc((var(--progress) - .28) * 8), 1); }
.brand-scene { position: absolute; inset: 0; display: grid; place-items: center; }
.brand-symbol, .brand-wordmark { position: absolute; display: block; object-fit: contain; mix-blend-mode: darken; transition: opacity .1s linear; }
.particle-story .brand-scene { display: none; }
.particle-story .final-copy .eyebrow { display: none; }
.brand-symbol { width: min(45vw, 34rem); height: min(45vw, 34rem); opacity: var(--symbol-opacity, 1); transform: scale(calc(1 + var(--progress) * .25)); }
.brand-wordmark { width: min(72vw, 52rem); height: min(48vw, 34rem); opacity: var(--word-opacity, 0); transform: scale(calc(.94 + var(--progress) * .12)); }
#scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 48%, rgb(0 0 0 / 22%) 100%); opacity: clamp(0, calc((var(--progress) - .48) * 5), .65); }
.scroll-hint { position: sticky; z-index: 6; top: calc(100svh - 2.25rem); width: max-content; margin: -2.25rem auto 0; color: var(--olive); font-size: .72rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; opacity: clamp(0, calc(1 - var(--progress) * 45), .78); pointer-events: none; }

.copy-layer { position: sticky; z-index: 4; top: 0; height: 100svh; margin-top: -100svh; pointer-events: none; }
.copy { position: absolute; left: 50%; bottom: clamp(3rem, 9vh, 7rem); width: min(86vw, 34rem); margin: 0; color: var(--graphite); font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.3; letter-spacing: -.02em; text-align: center; opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s ease, transform .25s ease; }
.copy.active { opacity: .9; transform: translate(-50%, 0); }
.copy-make, .copy-world { color: #e8ece9; }
.beat { position: absolute; z-index: 5; left: 0; width: 100%; min-height: 100vh; display: grid; pointer-events: none; }
.beat-finale { top: 500vh; align-items: start; justify-items: center; text-align: center; color: #f4f4f2; }
.final-copy { width: 100%; margin-top: 65svh; padding: 0 2rem; }
.final-copy .eyebrow { margin: 0 0 1rem; color: var(--sage); font-size: .78rem; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; }
.final-copy h2 { max-width: 15ch; margin: 0 auto .65rem; font-size: clamp(2.15rem, 5vw, 4.75rem); line-height: .96; letter-spacing: -.055em; }
.final-copy p { margin-inline: auto; font-size: clamp(1rem, 2vw, 1.3rem); }
.final-copy strong { display: block; margin-top: 1.5rem; color: var(--sage); font-size: clamp(1.2rem, 2vw, 1.65rem); }
.fallback { display: grid; min-height: 100svh; padding: 2rem; place-content: center; gap: .75rem; text-align: center; background: var(--warm); }
.js-ready .fallback { display: none; }
.fallback img { width: min(78vw, 34rem); height: auto; margin: 0 auto; mix-blend-mode: darken; }
.fallback p { margin: 0; font-size: 1.25rem; }
.fallback h2 { margin: .5rem 0 0; font-size: clamp(2.5rem, 9vw, 5rem); }
.site-footer { position: relative; z-index: 7; display: grid; min-height: 4.5rem; padding: 1.25rem 1.5rem max(1.25rem, env(safe-area-inset-bottom)); place-items: center; color: #dce4de; background: var(--space); text-align: center; }
.site-footer nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a, .site-footer button { color: inherit; font-family: inherit; font-size: .875rem; line-height: 1.5; text-underline-offset: .25em; text-decoration-thickness: .08em; }
.site-footer button { padding: .5rem; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.site-footer a:hover, .site-footer button:hover { color: white; }
.site-footer a:focus-visible, .site-footer button:focus-visible { border-radius: .2rem; outline: .16rem solid var(--sage); outline-offset: .3rem; }

.consent-panel { position: fixed; z-index: 30; right: 1.5rem; bottom: 1.5rem; left: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(calc(100% - 3rem), 62rem); margin-inline: auto; padding: 1.5rem; color: #edf3ef; background: #111718; border: 1px solid #43554b; border-radius: 1rem; box-shadow: 0 1.25rem 3.5rem rgb(0 0 0 / 35%); }
.consent-panel[hidden] { display: none; }
.consent-panel h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.consent-panel p { max-width: 64ch; margin: 0; line-height: 1.5; }
.consent-actions { display: flex; flex: 0 0 auto; gap: .75rem; }
.consent-actions button { min-height: 2.75rem; padding: .65rem 1rem; color: #101512; background: var(--sage); border: 2px solid var(--sage); border-radius: 999px; cursor: pointer; font-weight: 750; }
.consent-actions button.secondary { padding-inline: .35rem; color: #fff; background: transparent; border-color: transparent; border-bottom-color: #43554b; border-radius: 0; }
.consent-actions button:focus-visible { outline: .18rem solid white; outline-offset: .2rem; }

.legal-page { color-scheme: light; background: var(--warm); }
.legal-content { width: min(calc(100% - 3rem), 48rem); min-height: calc(100vh - 6rem); margin-inline: auto; padding: clamp(4rem, 10vw, 7rem) 0; line-height: 1.7; }
.legal-content h1 { margin: 1.5rem 0 .25rem; font-size: clamp(2.25rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.legal-content h2 { margin: 2.25rem 0 .35rem; font-size: 1.15rem; }
.legal-content p { margin: 0; }
.legal-content a { color: var(--olive); font-weight: 700; }
.updated { color: #66716b; }
.back-link { display: inline-block; min-height: 2.75rem; }

@media (max-width: 600px) {
  .story { height: 600vh; }
  .brand-symbol { width: 66vw; height: 66vw; }
  .brand-wordmark { width: 92vw; height: 62vw; }
  .beat-finale { align-items: start; padding-bottom: 0; }
  .final-copy { margin-top: 64svh; padding-inline: 1.25rem; }
  .final-copy h2 { font-size: clamp(2rem, 10vw, 3.35rem); }
  .copy { bottom: max(2.25rem, env(safe-area-inset-bottom)); font-size: 1.05rem; }
  .consent-panel { right: .75rem; bottom: .75rem; left: .75rem; display: block; width: calc(100% - 1.5rem); padding: 1.2rem; }
  .consent-actions { margin-top: 1rem; flex-direction: column; }
  .consent-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .story { display: none; }
  .js-ready .fallback { display: grid; }
}

.no-canvas .story, .no-js .story { display: none; }
.no-canvas .fallback, .no-js .fallback { display: grid; }
.no-js .scroll-hint, .no-canvas .scroll-hint { display: none; }
