/* Hallmark · theme: custom · idea: a playable theatre set changes according to who is holding the controls · hero: guided play in a moving river scene · posture: stage · type: Commissioner · axes: dark/grotesk-heavy/chromatic-violet · v2.0.0 */
/* Critique: every route needs a distinct play task and a way to test it. Art supports the three views of play and each action opens its matching real tool. */
/* Heading changes: “Play takes centre stage.” becomes “The stage for guided play.”, “Where shall we play?” becomes “The first four worlds”, and “Good to know.” becomes “Before your first session”. */
@import url("tokens.css");

html, body { overflow-x: clip; }
h1, h2 { min-width: 0; overflow-wrap: break-word; }
[hidden] { display: none !important; }
body:has(dialog[open]) { overflow-y: hidden; }
.skip:not(:focus) { clip-path: inset(50%); }
.eyebrow { font-size: .875rem; letter-spacing: 0; text-transform: none; }
.world-dialog-skill { font-weight: 700; }
.static-guides { display: grid; gap: 12px; padding-block: 22px; color: var(--paper); }
html:not(.js-ready) .story-pin { position: static; }

#overview { scroll-margin-top: 0; }
.hero-picture img { object-position: 70% 52%; }
.hero-motion { position: absolute; z-index: -2; pointer-events: none; }
.hero::after { background: linear-gradient(90deg, var(--stage-shadow) 1%, var(--stage-shadow-medium) 43%, var(--stage-clear) 70%), linear-gradient(0deg,var(--stage-shadow-medium),var(--stage-clear) 23%); }
.hero-copy { width: min(100%, 720px); }
.hero h1 { margin: 0 0 24px; font-size: clamp(4.35rem, 7.4vw, 8.9rem); line-height: .94; letter-spacing: -.05em; }
h1, h2 { font-variation-settings: "FLAR" 28; }
.brand sup { color: inherit; }
.hero-description { max-width: 420px; }
.motion-toggle { position: absolute; bottom: 31px; left: 0; z-index: 2; min-height: 42px; padding: 8px 13px; font: 650 .8125rem/1.2 var(--body); border: 1px solid var(--stage-underline); border-radius: 7px; color: var(--paper); background: var(--stage-shadow-medium); cursor: pointer; }
.motion-toggle:hover { border-color: var(--lavender); }

.audience-index { position: relative; color: var(--paper); background: var(--stage-band); border-top: 1px solid var(--stage-rule); }
.audience-index-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience-index a { position: relative; display: flex; align-items: baseline; gap: 10px 16px; min-height: 74px; padding: 19px clamp(10px, 2.5vw, 35px); border-right: 1px solid var(--stage-rule); text-decoration: none; transition: color .2s, background .2s; }
.audience-index a:first-child { padding-left: 0; }
.audience-index a:last-child { border-right: 0; }
.audience-index a:hover { color: var(--lavender); }
.audience-index a:focus-visible { outline-color: var(--stage-focus); outline-offset: -5px; }
.audience-index strong { font: 720 1.15rem/1.3 var(--display); letter-spacing: -.015em; }
.audience-index a span { color: var(--stage-copy); font-size: .875rem; }
.section-intro h2, .family-copy h2, .details-layout h2 { margin-top: 0; }
.worlds-intro h2 { max-width: 780px; }
.details-layout h2 { max-width: 450px; font-size: clamp(3.1rem, 5vw, 5rem); }
.faq details:not([open]) > :not(summary) { display: none; }

.audience-page { --route-accent: var(--practitioner-accent); --route-base: var(--practitioner-base); --route-paper: var(--practitioner-paper); background: var(--route-paper); }
.audience-page[data-story-page="professionals"] { --route-accent: var(--school-accent); --route-base: var(--school-base); --route-paper: var(--school-paper); }
.audience-page[data-story-page="families"] { --route-accent: var(--family-accent); --route-base: var(--family-base); --route-paper: var(--family-paper); }
.story-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(565px, 50vw, 750px); color: var(--paper); background: var(--route-base); }
.story-hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 51%; }
.story-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,var(--route-base) 0%,color-mix(in srgb,var(--route-base),transparent 12%) 27%,color-mix(in srgb,var(--route-base),transparent 76%) 60%,var(--stage-clear) 80%); pointer-events: none; }
.story-hero-inner { padding-block: 76px; }
.story-hero h1 { max-width: 710px; font-size: clamp(4.6rem, 7.6vw, 8.4rem); line-height: .94; letter-spacing: -.043em; text-wrap: balance; }
.story-hero h1:focus, .story-beat h2:focus, #hero-title:focus { outline: none; }
.story-hero p { max-width: 430px; margin-top: 24px; color: var(--stage-copy-light); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.story-hero .actions { margin-top: 24px; }
.story-hero .button-lavender { background: var(--route-accent); }
.story-hero .button-lavender:hover { background: var(--paper); }
.story-hero :focus-visible { outline-color: var(--stage-focus); }

.story-journey { padding-block: clamp(50px, 7vw, 100px); }
.story-journey-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: clamp(25px, 8vw, 115px); }
.story-pin { position: sticky; top: max(calc(var(--site-wayfinding-height, 0px) + 12px), calc((100svh - min(64svh, 600px) - 64px) * .43)); }
.story-visual { position: relative; isolation: isolate; overflow: hidden; margin: 0; height: min(64svh, 600px); min-height: 300px; border-radius: 14px; color: var(--paper); background: var(--route-base); box-shadow: 0 21px 43px var(--stage-shadow-faint); }
.story-visual::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(0deg,var(--stage-shadow-medium),var(--stage-clear) 35%); pointer-events: none; }
.story-plate { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .55s var(--stage-ease); }
.story-plate.is-active { z-index: 1; opacity: 1; }
.story-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 52%; transform: scale(1.065); transition: transform 1s var(--stage-ease); }
.story-plate.is-active img { transform: scale(1); }
.story-visual::after { z-index: 2; }
.story-glyph { position: absolute; z-index: 3; inset: auto 17px 15px auto; display: grid; place-items: center; width: clamp(49px, 7.5vw, 90px); aspect-ratio: 1; color: var(--route-accent); border: 1px solid var(--stage-underline); border-radius: 13px; background: var(--stage-shadow-medium); backdrop-filter: blur(8px); transform: translateY(20%) rotate(-10deg) scale(.87); transition: transform .7s var(--stage-ease); }
.story-plate.is-active .story-glyph { transform: none; }
.story-glyph svg { width: 57%; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.story-visual figcaption { position: absolute; z-index: 4; inset: auto 90px 22px 20px; font-size: .92rem; font-weight: 650; }
.story-progress { overflow: clip; height: 3px; margin-block: 14px 0; background: var(--story-hairline); }
.story-progress span { display: block; width: 100%; height: 100%; background: var(--route-base); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
.story-chapter-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; }
.story-chapter-links a { display: flex; align-items: center; min-height: 35px; color: var(--ink-soft); font-size: .825rem; text-decoration: none; }
.story-chapter-links a:hover, .story-chapter-links a[aria-current="step"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.story-chapter-links a[aria-current="step"] { font-weight: 700; }

.story-beat { display: flex; justify-content: center; flex-direction: column; align-items: flex-start; min-height: clamp(395px, 69svh, 720px); padding-block: 54px; border-bottom: 1px solid var(--story-hairline); }
.story-beat:last-child { border-bottom: 0; }
.story-beat h2, .story-film h2, .story-closing h2 { font-size: clamp(3rem, 5.4vw, 5.5rem); line-height: .97; text-wrap: balance; }
.story-beat p, .story-film p, .story-closing p { max-width: 455px; margin-top: 21px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.26rem); line-height: 1.55; }
.story-beat .text-link, .story-film .text-link { margin-top: 17px; }
.story-film { padding-block: clamp(45px, 8vw, 113px); background: var(--family-film-ground); }
.story-film-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 7vw, 98px); align-items: center; }
.story-film video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--family-base); }
.story-closing { padding-block: clamp(65px, 9vw, 130px); background: var(--route-accent); color: var(--ink); }
.story-closing-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 25px 50px; }
.story-closing h2 { max-width: 700px; }
.story-last-links { display: grid; gap: 15px; justify-items: start; }
.story-next { background: var(--route-base); color: var(--paper); }
.story-next a { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--paper); font-size: 1rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.story-next a:hover { color: var(--route-accent); }
.story-next a:focus-visible { outline-offset: -4px; outline-color: var(--route-accent); }
.story-next a span { font: 400 1.5rem/1 var(--body); }

html[data-story-transition] .hero-picture, html[data-story-transition] .story-hero-art { view-transition-name: story-set; }
html[data-story-transition] .hero h1, html[data-story-transition] .story-hero h1 { view-transition-name: story-heading; }
html[data-story-transition]::view-transition-group(root) { animation-duration: .64s; animation-timing-function: var(--stage-ease); }
html[data-story-transition]::view-transition-group(story-set), html[data-story-transition]::view-transition-group(story-heading) { animation-duration: .64s; animation-timing-function: var(--stage-ease); }
html[data-story-transition]::view-transition-old(root) { animation: set-exit .64s var(--stage-ease) both; }
html[data-story-transition]::view-transition-new(root) { animation: set-enter .64s var(--stage-ease) both; }
@keyframes set-exit { to { opacity: 0; transform: translateY(-7%) scale(.982); } }
@keyframes set-enter { from { opacity: 0; transform: translateY(11%) scale(1.018); } }

@media (max-width: 1000px) {
  .hero::after { background: linear-gradient(90deg,var(--stage-shadow) 0%,var(--stage-shadow-strong) 38%,var(--stage-shadow-medium) 58%,var(--stage-clear) 86%); }
  .audience-index a { flex-wrap: wrap; align-content: center; row-gap: 1px; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.75rem, 11.7vw, 6.2rem); }
  .story-journey-grid, .story-film-layout, .story-closing-layout { grid-template-columns: minmax(0, 1fr); }
  .story-journey-grid { gap: 0; }
  .story-pin { top: var(--site-wayfinding-height, 0px); z-index: 1; padding-top: 9px; background: var(--route-paper); }
  .story-visual { height: clamp(165px, 30svh, 320px); min-height: 0; border-radius: 10px; }
  .story-visual figcaption { bottom: 13px; }
  .story-glyph { bottom: 9px; right: 10px; }
  .story-progress { margin-top: 8px; }
  .story-chapter-links { margin-top: 1px; padding-bottom: 6px; }
  .story-beat { min-height: 51svh; padding-block: 32px 47px; }
  .story-beat h2, .story-film h2, .story-closing h2 { font-size: clamp(2.65rem, 8.5vw, 4.9rem); }
}

@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg,var(--stage-shadow) 0%,var(--stage-shadow) 30%,var(--stage-shadow-strong) 49%,var(--stage-clear) 70%,var(--stage-shadow-faint) 100%); }
  .motion-toggle { bottom: 44px; }
  .audience-index strong { font-size: 1rem; }
  .audience-index a span { font-size: .78rem; }
  .story-hero { min-height: clamp(530px, 90svh, 680px); align-items: start; }
  .story-hero-inner { padding-block: 48px 230px; }
  .story-hero h1 { max-width: 620px; font-size: clamp(3.45rem, 11.8vw, 6.55rem); }
  .story-hero p { margin-top: 17px; }
  .story-hero .actions { margin-top: 16px; }
  .story-hero-art { top: 160px; height: calc(100% - 160px); object-position: 75% 51%; }
  .story-hero::after { background: linear-gradient(180deg,var(--route-base) 0%,var(--route-base) 19%,color-mix(in srgb,var(--route-base),transparent 13%) 43%,var(--stage-clear) 80%); }
}

@media (max-width: 425px) {
  .art-label { padding: 6px 11px 6px 7px; }
  .art-label-icon { width: 29px; height: 29px; }
  .art-label small { font-size: .67rem; }
  .art-label strong { font-size: .82rem; }
  .motion-toggle { min-height: 40px; font-size: .75rem; }
  .audience-index a { gap: 3px; padding-inline: 7px; }
  .audience-index strong { font-size: .9rem; }
  .audience-index a span { font-size: .75rem; }
  .story-chapter-links { gap: 0 7px; }
  .story-chapter-links a { font-size: .75rem; }
}

@media (max-width: 760px) and (max-height: 650px) {
  .story-visual { min-height: 119px; height: 28svh; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-story-transition]::view-transition-group(*), html[data-story-transition]::view-transition-new(*), html[data-story-transition]::view-transition-old(*) { animation: none; }
  .story-plate, .story-plate img, .story-glyph { transition: none; }
}
