@font-face {
  font-family: Road Rage;
  src: url("media/road-rage.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Barlow Condensed;
  src: url("media/barlow-bold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url("media/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #111224;
  --paper: #fcf7ff;
  --muted: #d0c8df;
  --purple: #1d1736;
  --yellow: #ffe719;
  --peach: #ff976e;
  --rule: #514463;
  --brush: "Road Rage", "Barlow Condensed", Impact, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.2rem, 5vw, 5.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.6 var(--body); }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
.frame { width: min(calc(100% - var(--gutter) * 2), 1472px); margin-inline: auto; }
.section-pad { padding-block: clamp(4.25rem, 8vw, 8.25rem); }
.skip-link { position: absolute; z-index: 3; top: .8rem; left: .8rem; padding: .6rem 1rem; background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 2; inset: 0 0 auto; background: linear-gradient(180deg, #090b19b3, transparent); }
.header-inner { width: min(calc(100% - var(--gutter) * 2), 1472px); min-height: 72px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.wordmark { display: block; justify-self: start; width: clamp(9rem, 17vw, 16rem); }
.wordmark img { width: 100%; height: auto; border-radius: .3rem; }
.nav-links, .footer-links, .header-socials { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.9rem, 2.4vw, 2.8rem); }
.nav-links a, .social-link { font-size: .94rem; font-weight: 700; text-decoration: none; text-shadow: 0 1px 5px #070711; }
.nav-links a:hover, .social-link:hover { color: var(--yellow); }
.header-socials { justify-self: end; gap: 1rem; }
.social-link { display: inline-flex; align-items: center; min-height: 44px; gap: .45rem; }
.ig-icon { position: relative; width: 1rem; aspect-ratio: 1; border: 1.5px solid; border-radius: .3rem; }
.ig-icon::before, .ig-icon::after { position: absolute; content: ""; border-radius: 50%; }
.ig-icon::before { inset: 3px; border: 1.3px solid; }
.ig-icon::after { top: 2px; right: 2px; width: 2px; height: 2px; background: currentColor; }
.youtube-icon { position: relative; width: 1.4rem; height: 1rem; border-radius: .3rem; background: currentColor; }
.youtube-icon::after { content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%); border-left: .34rem solid var(--ink); border-block: .21rem solid transparent; }
.tiktok-icon { width: 1rem; height: 1rem; flex: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: max(680px, 100svh);
  background: #211a38 url("media/neverland-portal.webp") center center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 41% 40% at 50% 53%, #090b22bd 0%, #090b2270 57%, transparent 100%); }
.hero-content { position: relative; text-align: center; padding-block: clamp(5.5rem, 11vw, 8.5rem) clamp(4.5rem, 10vw, 7rem); }
h1 { position: relative; width: fit-content; margin-inline: auto; transform: rotate(-5deg); font: 400 clamp(6.3rem, 17.5vw, 18.5rem)/.56 var(--brush); text-shadow: 0 .04em .075em #0a0a1baf; }
h1 > span:not(.hero-crown) { display: block; font-size: .49em; line-height: .61; }
h1 em { display: block; font-style: normal; }
.hero-crown, .lineage-crown, .roots-crown, .moves-crown, .history-crown { transform: rotate(-15deg); background: var(--yellow); clip-path: polygon(0 20%, 29% 44%, 46% 4%, 68% 45%, 100% 18%, 90% 95%, 10% 96%, 0 20%, 10% 33%, 19% 84%, 81% 83%, 88% 34%, 65% 61%, 45% 23%, 33% 61%, 10% 33%); }
.hero-crown { position: absolute; top: -5%; left: 14%; width: .44em; height: .33em; }
.hero-intro { margin-top: clamp(1.55rem, 3vw, 2.7rem); }
.hero-description { max-width: 44rem; margin-inline: auto; font-size: clamp(.94rem, 1.28vw, 1.13rem); font-weight: 700; line-height: 1.48; text-transform: uppercase; text-wrap: pretty; text-shadow: 0 2px 6px #070711; }
.hero-description mark { padding: .025em .27em; background: var(--yellow); color: #12111b; text-shadow: none; font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.4rem; margin-top: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .5rem 1.4rem; border: 2px solid currentColor; border-radius: 999px; text-decoration: none; font: 800 1.18rem/1.18 var(--display); text-transform: uppercase; }
.button-primary { background: var(--yellow); color: #10111d; border-color: var(--yellow); box-shadow: 0 0 22px #f9e61544; }
.button-primary:hover { background: #fff276; border-color: #fff276; }
.button-outline { background: #11122470; }
.button-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero-actions .button { min-width: 10rem; }

.lineage-bar { position: relative; z-index: 1; border-block: 1px solid #e887b378; background: linear-gradient(171deg, #6b3364 -8%, #211632 21%, #151326 64%, #52254e 118%); }
.lineage-inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem clamp(.5rem, 2vw, 1.7rem); padding-block: .75rem; color: var(--paper); font: 400 clamp(1.45rem, 2.7vw, 2.75rem)/.85 var(--brush); text-transform: uppercase; }
.lineage-inner i { width: 5px; height: 5px; background: var(--peach); transform: rotate(45deg); }
.lineage-crown { width: 1.35em; height: .95em; flex: none; }
.lineage-inner span:last-child { text-decoration: underline .065em var(--yellow); text-underline-offset: .19em; }

.story {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #19162b url("media/about-neverland.webp") center center / cover no-repeat;
}
.story::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #100f23ee 0%, #111023c0 37%, transparent 64%), linear-gradient(0deg, #17142b 0%, transparent 17%); }
.story-grid, .history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.story-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1rem, 3vw, 3rem); min-height: clamp(500px, 39vw, 650px); }
.story.section-pad { padding-block: clamp(3.25rem, 5vw, 5rem) clamp(2rem, 3vw, 3.5rem); }
.artist-bio { position: relative; z-index: 1; }
.artist-bio h2 { width: fit-content; font-size: clamp(4rem, 9vw, 10rem); transform: rotate(-3deg); }
.artist-bio h2 em { color: var(--yellow); }
.artist-bio h2::after { content: ""; display: block; width: 46%; height: .065em; margin: .06em 0 .12em 23%; background: var(--paper); clip-path: polygon(0 81%, 8% 27%, 38% 2%, 81% 19%, 100% 71%, 68% 55%, 38% 70%, 9% 93%); }
.artist-bio .story-copy { color: #f2ecf6; }
.artist-actions { display: flex; flex-wrap: wrap; gap: .65rem .8rem; margin-top: 1.55rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--yellow); font-size: .88rem; font-weight: 700; letter-spacing: .12em; line-height: 1.45; }
.eyebrow span { width: 1.25rem; height: 2px; background: currentColor; flex: none; }
h2 { margin-top: .65rem; font: 400 clamp(5.1rem, 9vw, 10.25rem)/.69 var(--brush); letter-spacing: 0; }
h2 em { color: var(--peach); font-style: normal; }
.story-copy { max-width: 36rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.story-copy strong { color: var(--paper); }
.artist-figure { position: relative; width: min(100%, 650px); aspect-ratio: 1.02; justify-self: center; overflow: hidden; mask-image: linear-gradient(#000 72%, transparent 99%); }
.artist-figure img {
  position: absolute;
  width: 91%;
  height: auto;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
}
.section-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1.2rem; margin-top: .65rem; color: var(--muted); font-size: .87rem; }

.roots {
  background: linear-gradient(180deg, #100e23b8, #19122925 30%, #1110245c 75%, #151126 100%),
    #1c1534 url("media/roots-scene.webp") center / cover no-repeat;
}
.roots.section-pad { padding-block: clamp(3.4rem, 6vw, 6rem) clamp(2.5rem, 4vw, 4.5rem); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .53fr); align-items: end; gap: 1.5rem clamp(1.5rem, 6vw, 6rem); margin-bottom: clamp(1.75rem, 4vw, 3.75rem); }
.section-intro > p { max-width: 31rem; color: var(--muted); font-size: 1.05rem; }
.roots .section-intro { align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 4rem); }
.roots .section-intro > p { border-left: 3px solid var(--yellow); padding-left: 1.2rem; color: var(--paper); text-shadow: 0 1px 8px #0c091b; }
.roots .section-intro strong { color: var(--yellow); }
.roots h2 { position: relative; margin: 0; transform: rotate(-3deg); font-size: clamp(4.1rem, 8.5vw, 9rem); text-shadow: 0 4px 15px #100c22; }
.roots h2 em { color: var(--yellow); }
.roots-crown { display: inline-block; width: .56em; height: .4em; margin-right: .14em; vertical-align: .08em; }
.roots h2::after { content: ""; display: block; width: 40%; height: .06em; margin: .05em 0 0 43%; background: var(--yellow); clip-path: polygon(0 76%, 13% 21%, 43% 0, 72% 7%, 100% 65%, 65% 41%, 32% 63%, 5% 100%); }

.roots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.15rem, 1vw, .85rem); }
.root-card {
  --panel-shape: polygon(11% 5%, 100% 0, 90% 95%, 0 100%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  clip-path: var(--panel-shape);
  background: linear-gradient(160deg, var(--paint), #ef637a 76%, var(--edge));
}
.root-chutney { --paint: #ffba2a; --edge: #ff8325; }
.root-soca { --paint: #ff7847; --edge: #19d1ca; transform: translateY(-.55rem); }
.root-calypso { --paint: #ffdf1f; --edge: #ffe238; }
.root-card::before { content: ""; position: absolute; z-index: -1; inset: 4px; clip-path: var(--panel-shape); background: #151126; }
.root-card img {
  width: calc(100% - 8px);
  height: auto;
  margin: 4px 4px 0;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
  object-position: center top;
  clip-path: polygon(11% 7%, 100% 0, 94% 100%, 3% 100%);
  mask-image: linear-gradient(#000 74%, transparent 100%);
}
.root-copy { position: relative; flex: 1; margin-top: -1.8rem; padding: 0 14% 3rem 12%; }
.root-copy h3 {
  display: inline-block;
  position: relative;
  isolation: isolate;
  padding: .05em .3em .11em;
  transform: rotate(-5deg);
  color: #141023;
  font: 400 clamp(3rem, 5.7vw, 6.15rem)/.65 var(--brush);
  text-transform: uppercase;
}
.root-copy h3::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -.11em;
  background: var(--paint);
  clip-path: polygon(4% 13%, 32% 3%, 98% 8%, 91% 23%, 100% 28%, 94% 37%, 97% 45%, 93% 55%, 96% 69%, 88% 90%, 4% 98%, 10% 84%, 0 86%, 7% 69%, 2% 61%, 8% 51%, 2% 44%, 9% 30%, 0 32%);
}
.root-copy p { margin-top: .85rem; color: var(--paper); line-height: 1.48; }
.root-copy::after { content: ""; display: block; width: 48%; height: 5px; margin: .9rem auto 0; background: var(--edge); transform: rotate(-4deg); clip-path: polygon(0 84%, 17% 20%, 49% 0, 87% 22%, 100% 74%, 77% 51%, 38% 80%, 4% 100%); }
.roots .section-footnote { border-top: 1px solid #ffffff37; padding-top: .75rem; }
.section-footnote a, .text-link, .timeline a, .footer-links a { color: #ffe692; text-underline-offset: .24em; font-weight: 700; }
.text-link { display: inline-block; margin-top: 1.2rem; }

.moves {
  --move-brush: polygon(2% 10%, 42% 4%, 98% 1%, 96% 20%, 100% 22%, 97% 35%, 99% 52%, 97% 89%, 67% 95%, 1% 100%, 4% 87%, 0 85%, 3% 68%, 0 66%, 4% 48%, 1% 45%, 4% 25%, 0 28%);
  --move-paint: linear-gradient(105deg, #fff01f, #fb764b 24%, #ed177b 48%, #09bddd 66%, #b731db 82%, #ff1985);
  background: linear-gradient(180deg, #10112726, #13112742 28%, #16122d18 78%, #171429ad),
    #19142f url("media/moves-neverland.webp") center / cover no-repeat;
}
.moves.section-pad { padding-block: clamp(3.7rem, 6.2vw, 6.3rem) clamp(3rem, 6vw, 6.3rem); }
.moves .section-intro { align-items: center; gap: 1.35rem clamp(1.6rem, 4vw, 4.5rem); margin-bottom: clamp(1.6rem, 3.5vw, 3rem); }
.moves .section-intro > p { max-width: 29rem; padding-left: 1.15rem; border-left: 3px solid var(--yellow); color: var(--paper); text-shadow: 0 2px 7px #0d0b22; }
.moves h2 { margin-top: .45rem; font-size: clamp(4.4rem, 9.5vw, 10rem); transform: rotate(-3deg); text-shadow: 0 3px 12px #110b25; }
.moves h2 em { position: relative; display: inline-block; color: var(--yellow); }
.moves-crown { position: absolute; top: -.27em; right: -.16em; width: .47em; height: .34em; transform: rotate(12deg); }
.moves h2 em::after, .move-copy h3::after { content: ""; display: block; position: absolute; inset: auto 7% -.075em 0; height: .075em; background: var(--yellow); clip-path: var(--move-brush); }
.move-tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-bottom: clamp(1.25rem, 2.8vw, 2.5rem); padding: 3px 9px; background: var(--move-paint); clip-path: var(--move-brush); }
.move-tabs button { position: relative; min-height: 54px; padding: .3em .22em; background: #1b1732; border: 0; font: 400 clamp(1.8rem, 3.4vw, 3.6rem)/.72 var(--brush); text-transform: uppercase; cursor: pointer; clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); }
.move-tabs button:hover { background: #3a2450; }
.move-tabs button[aria-selected="true"] { background: var(--yellow); color: var(--ink); }
.move-tabs button:focus-visible { outline: 2px dashed currentColor; outline-offset: -8px; }
.move-panel { display: grid; grid-template-columns: minmax(0, 1.59fr) minmax(0, .91fr); align-items: center; gap: clamp(1.2rem, 3.5vw, 3.75rem); }
.move-photo { padding: 6px; background: var(--move-paint); clip-path: polygon(7% 3%, 100% 0, 92% 97%, 0 100%); }
.move-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #211729; clip-path: polygon(7% 3%, 100% 0, 92% 97%, 0 100%); }
.move-copy h3 { position: relative; width: fit-content; margin: .45rem 0 1.45rem; transform: rotate(-3deg); font: 400 clamp(4.65rem, 8vw, 8.25rem)/.72 var(--brush); text-transform: uppercase; }
.move-copy h3::after { left: 29%; right: -2%; }
.move-copy > p:not(.eyebrow) { color: var(--paper); }
.move-copy #move-description { max-width: 32rem; font-size: clamp(1rem, 1.45vw, 1.18rem); }
.viewing-cue { position: relative; margin: 1.05rem 0 1.35rem; padding-left: 2.55rem; }
.viewing-cue::before { content: ""; position: absolute; top: .12rem; left: 0; width: 1.8rem; height: 1.8rem; background: var(--yellow); border-radius: 50%; }
.viewing-cue::after { content: ""; position: absolute; top: .58rem; left: .73rem; border-left: .54rem solid var(--ink); border-block: .43rem solid transparent; }
.viewing-cue strong { display: block; color: var(--yellow); font: 800 1.32rem/1.12 var(--display); text-transform: uppercase; }
#move-link { gap: .65rem; }
#move-link::before { content: ""; border-left: .65rem solid currentColor; border-block: .4rem solid transparent; }

.history {
  --history-paint: polygon(3% 11%, 96% 3%, 92% 17%, 100% 20%, 95% 29%, 98% 38%, 94% 51%, 100% 56%, 95% 70%, 98% 77%, 93% 94%, 3% 100%, 7% 88%, 0 86%, 4% 72%, 1% 62%, 6% 52%, 0 48%, 4% 34%, 1% 26%, 6% 23%);
  background: linear-gradient(180deg, #12102624, #14112630 32%, #14112620 82%, #100f20),
    #19142c url("media/brooklyn-scene.webp") center / cover no-repeat;
}
.history.section-pad { padding-block: clamp(5.5rem, 11vw, 11rem) clamp(3.75rem, 6.5vw, 7rem); }
.history-grid { grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.history-intro { text-shadow: 0 2px 12px #100c22; }
.history-intro h2 { position: relative; width: fit-content; transform: rotate(-5deg); font-size: clamp(5rem, 11vw, 12rem); }
.history-intro h2 em { color: var(--yellow); }
.history-crown { position: absolute; top: -.27em; right: -.07em; width: .53em; height: .4em; transform: rotate(-7deg); }
.history-intro h2::after { content: ""; display: block; width: 66%; height: .08em; margin: .1em 0 0 18%; background: var(--yellow); clip-path: var(--history-paint); }
.history-intro .story-copy { color: var(--paper); }
.history-intro .button { margin-top: 1.4rem; padding-inline: 1.65rem; border-radius: 0; clip-path: var(--history-paint); text-shadow: none; }
.history-intro .button:focus-visible { outline: 2px dashed var(--ink); outline-offset: -7px; }
.history-eras { --timeline-gutter: clamp(1.65rem, 2.6vw, 2.8rem); }
.timeline { position: relative; margin: 0; padding: 0 0 0 var(--timeline-gutter); list-style: none; }
.timeline::before { content: ""; position: absolute; inset: 1rem auto 1.2rem .48rem; width: 5px; background: var(--yellow); clip-path: polygon(16% 0, 80% 1%, 91% 24%, 68% 52%, 100% 72%, 52% 100%, 13% 97%, 26% 73%, 2% 48%, 22% 26%); }
.timeline li { --era-accent: #ff515c; position: relative; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(.9rem, 2.3vw, 2.5rem); margin-bottom: 1.6rem; }
.timeline li:nth-child(2) { --era-accent: #30dfd4; }
.timeline li:nth-child(3) { --era-accent: #e75afa; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--timeline-gutter)); top: 50%; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 4px solid var(--yellow); background: #18132b; transform: translateY(-50%); }
.timeline-photo {
  --paper-edge: polygon(1% 4%, 5% 2%, 9% 4%, 14% 1%, 20% 2%, 26% 0, 32% 3%, 38% 2%, 44% 4%, 51% 1%, 58% 3%, 65% 1%, 71% 2%, 77% 0, 83% 3%, 89% 2%, 97% 0, 99% 6%, 97% 13%, 100% 20%, 98% 28%, 100% 37%, 98% 46%, 100% 54%, 98% 63%, 100% 71%, 97% 80%, 100% 88%, 98% 98%, 91% 96%, 85% 100%, 78% 98%, 72% 100%, 63% 98%, 55% 100%, 47% 98%, 40% 100%, 32% 97%, 25% 100%, 18% 97%, 11% 100%, 5% 97%, 0 100%, 2% 92%, 0 84%, 2% 76%, 0 67%, 2% 59%, 0 51%, 2% 43%, 0 34%, 2% 26%, 0 17%);
  padding: 8px;
  background: #f7ecda;
  clip-path: var(--paper-edge);
  transform: rotate(-4deg);
}
.timeline li:nth-child(2) .timeline-photo { transform: rotate(3deg); }
.timeline li:nth-child(3) .timeline-photo { transform: rotate(-2deg); }
.timeline-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; clip-path: var(--paper-edge); }
.timeline-copy { text-shadow: 0 2px 8px #0c0b20; }
.timeline .era-date { display: inline-block; padding: .29em 1em; background: var(--yellow); clip-path: var(--history-paint); color: var(--ink); font: 400 1.85rem/.64 var(--brush); text-shadow: none; }
.timeline h3 { position: relative; width: fit-content; margin: .2rem 0 .75rem; font: 400 clamp(2.35rem, 4.45vw, 4.85rem)/.69 var(--brush); text-transform: uppercase; }
.timeline h3::after { content: ""; display: block; width: 66%; height: 4px; margin: .04em 0 0 31%; background: var(--era-accent); transform: rotate(-3deg); clip-path: var(--history-paint); }
.timeline p:not(.era-date) { color: var(--paper); line-height: 1.48; }
.timeline a { display: inline-block; margin-top: .45rem; }

.site-footer { padding-block: 2.15rem; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.35rem 2rem; }
.site-footer .wordmark { width: min(100%, 25rem); }
.site-footer h2 { margin: 0; font: 800 2rem/1 var(--display); }
.footer-links { gap: 1.1rem; margin-top: .75rem; }
.footer-links .social-link { color: var(--paper); }
.footer-links .social-link:hover { color: var(--yellow); }

.lesson-actions { display: flex; flex-wrap: wrap; gap: .65rem .8rem; margin-top: 1.15rem; }
.lesson-trigger, .lesson-submit { cursor: pointer; }
.history-intro .lesson-trigger { margin-top: 0; border-radius: 999px; clip-path: none; }
.history-intro .lesson-trigger:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }

html:has(.lesson-dialog[open]) { overflow: hidden; }
.lesson-dialog {
  width: min(calc(100% - 1.5rem), 74rem);
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  padding: clamp(3.6rem, 5vw, 5.5rem) clamp(1rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #b55d8b;
  border-radius: .75rem;
  background: linear-gradient(180deg, #0f0e2150, #0f0e21b8 24%, #0f0e2170), #17142c url("media/brooklyn-scene.webp") center top / cover no-repeat;
  color: var(--paper);
  box-shadow: 0 22px 90px #080511dc;
}
.lesson-dialog::backdrop { background: #080713cc; }
.lesson-close {
  position: absolute;
  inset: .65rem .75rem auto auto;
  width: 44px;
  height: 44px;
  border: 1px solid #d0c8dfaa;
  border-radius: 50%;
  background: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.lesson-close:hover { color: var(--yellow); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.lesson-intro { text-shadow: 0 2px 8px #080713; }
.lesson-intro h2 { width: fit-content; margin-block: .55rem 1.35rem; font-size: clamp(4rem, 7vw, 7.5rem); transform: rotate(-4deg); }
.lesson-intro h2 em { color: var(--yellow); }
.lesson-intro > p:last-child { max-width: 30rem; }
.lesson-form {
  padding: clamp(.85rem, 2.1vw, 1.75rem);
  border: 2px solid #fff0d9;
  border-top-color: var(--yellow);
  border-radius: .4rem;
  background: #121123f2;
  box-shadow: 3px 4px 0 #e85a8c60;
}
.lesson-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.lesson-fields > label, .lesson-type legend { font-weight: 700; font-size: .94rem; }
.lesson-required { color: var(--yellow); }
.lesson-fields :is(input:not([type="radio"]), select, textarea) {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: .2rem;
  padding: .55rem .65rem;
  border: 1px solid #e0d6e0;
  border-radius: .4rem;
  background: #222135;
  color: var(--paper);
  font: 1rem/1.35 var(--body);
}
.lesson-fields textarea { resize: vertical; }
.lesson-fields :is(input, select, textarea):focus-visible, .lesson-options label:focus-within { outline-offset: 2px; }
.lesson-wide { grid-column: 1 / -1; }
.lesson-type { min-width: 0; margin: 0; padding: 0; border: 0; }
.lesson-type legend { padding: 0; }
.lesson-options { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.lesson-options label { display: inline-flex; align-items: center; gap: .2rem; padding: .25rem .42rem; min-height: 44px; border: 1px solid #e0d6e0; border-radius: .35rem; font-size: .87rem; cursor: pointer; }
.lesson-options label:has(:checked) { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lesson-form :is([type="checkbox"], [type="radio"]) { margin: 0; accent-color: var(--yellow); }
.lesson-consent { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin-block: .45rem; cursor: pointer; }
.lesson-consent input { width: 1.1rem; height: 1.1rem; flex: none; }
.lesson-submit { width: 100%; gap: .55rem; border-radius: .35rem; }
#lesson-sharing, .lesson-status { margin-top: .65rem; color: var(--muted); font-size: .88rem; line-height: 1.4; }
#lesson-sharing a, .lesson-status { color: var(--yellow); }
.lesson-status:empty { display: none; }

@media (max-width: 920px) {
  .lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .lesson-dialog { background-position: 54% top; }
}

@media (max-width: 530px) {
  .lesson-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .site-header { position: relative; background: #101123; }
  .header-inner { grid-template-columns: 1fr auto; gap: .1rem .7rem; padding-top: .5rem; }
  .nav-links { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
  .nav-links a { display: grid; place-items: center; min-height: 44px; text-align: center; line-height: 1.2; }
  .nav-links a, .social-link { font-size: .87rem; }
  .hero { min-height: max(28rem, calc(100svh - 6.4rem)); }
  .hero::before { background: radial-gradient(ellipse 88% 49% at 50% 51%, #090b22e3, #090b2299 68%, transparent); }
  .hero-content { padding-block: 3.75rem 3.25rem; }
  h1 { font-size: clamp(4rem, 20vw, 9.5rem); }
  .hero-description { max-width: 31rem; }
  .hero-actions { gap: .55rem; }
  .hero-actions .button { min-width: 0; padding-inline: 1.03rem; }
  h2 { font-size: clamp(4.1rem, 14vw, 7rem); }
  .story-grid, .history-grid, .section-intro, .move-panel { grid-template-columns: minmax(0, 1fr); }
  .history { background-position: 68% top; }
  .history-intro h2 { font-size: clamp(5rem, 17vw, 8rem); }
  .history-eras { --timeline-gutter: 1.65rem; }
  .timeline li { margin-bottom: 1.45rem; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: .65rem; }
  .timeline li::before { width: 1rem; height: 1rem; border-width: 3px; }
  .timeline::before { left: .37rem; }
  .timeline-photo { padding: 5px; }
  .timeline p:not(.era-date), .timeline a { font-size: .94rem; }
  .story { background-position: 70% bottom; }
  .story::before { background: linear-gradient(180deg, #111023fa 0%, #111023cf 45%, transparent 77%, #17142b 100%); }
  .artist-bio h2 { font-size: clamp(4.2rem, 15vw, 7.5rem); }
  .artist-figure { width: min(100%, 470px); }
  .roots-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; width: min(100%, 510px); margin-inline: auto; }
  .roots h2 { font-size: clamp(3.65rem, 12.5vw, 7rem); }
  .roots .section-intro > p { padding-left: .8rem; }
  .root-soca { transform: none; }
  .moves .section-intro > p { padding-left: .8rem; }
  .moves h2 { font-size: clamp(3.6rem, 11.4vw, 6rem); }
  .move-tabs { padding-inline: 4px; clip-path: none; }
  .move-tabs button { font-size: clamp(1.3rem, 5.6vw, 2.4rem); line-height: .85; clip-path: none; }
  .move-photo { padding: 4px; }
}

@media (max-width: 530px) {
  .hero { background-image: url("media/neverland-portal-mobile.webp"); }
  .hero-actions { max-width: 24rem; margin-inline: auto; }
  .hero-actions .lesson-trigger { flex: 0 1 100%; }
  .root-card { --panel-shape: polygon(3% 2%, 100% 0, 97% 98%, 0 100%); }
  .root-card img { clip-path: polygon(3% 4%, 100% 0, 97% 100%, 0 100%); }
  .root-copy { padding-inline: 9%; }
  .move-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move-tabs button { min-height: 46px; font-size: clamp(1.65rem, 5.5vw, 2.35rem); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .timeline li::before { top: 1rem; }
  .timeline-photo { width: min(100%, 19rem); transform-origin: center; }
  .lesson-close { position: sticky; top: 0; z-index: 2; display: block; margin: 0 0 .65rem auto; }
  .lesson-dialog { padding-top: .65rem; }
}

@media (max-width: 365px) {
  .header-socials { gap: .5rem; }
  .header-socials .social-link { min-width: 44px; justify-content: center; }
  .header-socials .social-link > span:not([aria-hidden]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
