:root {
  --night: #1d181c;
  --ink: #211b1b;
  --cream: #fff9e9;
  --paper: #f5eedc;
  --gold: #f7bf2b;
  --bronze: #a56628;
  --line: #ccb98e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #b46c00; outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
.skip { position: absolute; top: -90px; left: 20px; z-index: 20; padding: 12px; background: var(--cream); color: var(--ink); }
.skip:focus { top: 10px; }
.site-header { height: 78px; padding: 0 clamp(24px, 5vw, 78px); display: flex; align-items: center; justify-content: space-between; background: var(--night); color: var(--cream); border-bottom: 1px solid #fff2; position: relative; z-index: 3; }
.wordmark { text-decoration: none; color: inherit; font-size: 15px; font-weight: 950; letter-spacing: -.07em; display: flex; align-items: center; gap: 4px; }
.wordmark strong, .wordmark i { color: var(--gold); }
.wordmark i { font-size: 18px; font-style: normal; margin-left: 3px; }
.concept-label { color: #d2c8b7; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }

.story { height: 300vh; position: relative; background: var(--night); color: var(--cream); }
.stage { height: calc(100vh - 78px); min-height: 650px; position: sticky; top: 0; overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: auto -20% -70% 18%; height: 100%; background: radial-gradient(circle, #75420c55 0, transparent 62%); pointer-events: none; }
.top-copy { position: absolute; z-index: 2; left: clamp(28px, 6vw, 100px); top: clamp(83px, 13vh, 160px); width: min(34vw, 460px); }
.eyebrow { font-size: 11px; font-weight: 850; letter-spacing: .18em; line-height: 1.45; color: var(--gold); }
.eyebrow-mark { display: inline-block; width: 9px; height: 9px; margin-right: 10px; background: var(--gold); transform: rotate(45deg); }
.top-copy h1 { font-size: clamp(68px, 6.4vw, 112px); line-height: .97; letter-spacing: -.055em; margin: 26px 0; font-weight: 900; }
.top-copy h1 em, .after h2 em { font-style: normal; color: var(--gold); }
.intro { max-width: 360px; color: #e3dace; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.55; }
.scroll-hint { font-size: 12px; color: #c9bca9; margin-top: 37px; display: flex; gap: 12px; align-items: center; }
.scroll-hint span { font-size: 22px; color: var(--gold); }

.scene { position: absolute; z-index: 1; right: 3.7%; top: 8%; width: min(61vw, 940px); height: 75%; max-height: 700px; min-height: 555px; }
.scene-grid { position: absolute; inset: 3%; opacity: .34; background-image: linear-gradient(#c9993920 1px, transparent 1px), linear-gradient(90deg, #c9993920 1px, transparent 1px); background-size: 74px 74px; mask-image: radial-gradient(ellipse at center, #000 15%, transparent 68%); }
.scene::before { content: ""; position: absolute; inset: 4% 3%; border: 1px solid #edbd5533; border-radius: 50%; transform: rotate(-18deg); }
.routes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; }
.routes path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 7 12; stroke-linecap: round; }
.merge-core { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%) scale(.8); opacity: .48; z-index: 1; }
.merge-core span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); }
.merge-core span:nth-child(2) { inset: -14px; border-color: #f7bf2b66; }
.merge-core span:nth-child(3) { inset: 10px; border: none; background: var(--gold); box-shadow: 0 0 25px #f7bf2b99; }
.person { position: absolute; width: 200px; height: 260px; text-align: center; z-index: 3; transform-origin: center center; }
.person-dj { left: 3%; top: 2%; }
.person-crowd { right: 3%; top: 2%; }
.person-bar { left: 3%; bottom: 2%; }
.person-door { right: 3%; bottom: 2%; }
.person img { width: 170px; height: 220px; object-fit: contain; display: block; margin: 0 auto -2px; filter: drop-shadow(0 11px 4px #0005); }
.person figcaption { display: grid; justify-items: center; line-height: 1.16; text-shadow: 0 2px 3px #000a; }
.person figcaption span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.person figcaption strong { color: var(--cream); font-size: 19px; font-weight: 900; letter-spacing: -.05em; margin-top: 4px; }
.person figcaption small { color: #ded1bc; font-size: 11px; margin-top: 2px; }
.event-halo { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%) scale(.7); opacity: 0; pointer-events: none; }
.event-halo span { position: absolute; inset: 0; border: 1px solid #f7bf2b88; border-radius: 50%; }
.event-halo span:nth-child(2) { inset: 27px; border-color: #f7bf2b44; }
.event { position: absolute; left: 50%; top: 50%; width: 250px; height: 292px; transform: translate(-50%, -50%) scale(.5); opacity: 0; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 12px 14px 0 #744913, 0 0 0 2px var(--gold); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 37px 15px 13px; z-index: 2; }
.event::before, .event::after { content: ""; position: absolute; top: 65px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); }
.event::before { left: -10px; } .event::after { right: -10px; }
.event-crown { position: absolute; top: -28px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.event-crown svg { width: 67px; height: 46px; fill: var(--cream); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.event-overline { font-size: 9px; font-weight: 950; letter-spacing: .18em; }
.event-date { font-size: 12px; font-weight: 950; letter-spacing: .12em; margin: 24px 0 5px; }
.event-name { font-size: 37px; line-height: .94; letter-spacing: -.07em; font-weight: 950; display: flex; flex-direction: column; align-items: center; }
.event-name-row { display: block; position: relative; width: max-content; max-width: 100%; white-space: nowrap; }
.event-name-text { display: block; }
.story--writing .event-name-text { clip-path: inset(0 calc(100% - var(--ink-reveal, 0%)) 0 0); }
.story--writing .event-name-row::after { content: "✦"; position: absolute; left: var(--ink-reveal, 0%); top: 43%; color: var(--cream); font-size: 17px; line-height: 1; letter-spacing: 0; text-shadow: 0 0 7px #fff, 0 0 13px #bd7623; transform: translate(-50%, -50%); opacity: var(--ink-spark, 0); pointer-events: none; }
.event-line { height: 2px; width: 75%; background: var(--ink); margin: 17px auto 10px; }
.event-sub { font-size: 11px; font-weight: 800; }
.event-seal { font-size: 8px; font-weight: 950; letter-spacing: .19em; position: absolute; bottom: 14px; }
.event-seal b { font-size: 12px; margin: 0 4px; }
.genie { position: absolute; z-index: 4; left: 68%; top: 32%; width: 155px; height: 240px; opacity: 0; transform: translate(40px, 20px) scale(.7); transform-origin: 50% 75%; pointer-events: none; }
.genie > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 8px #0007); }
.wand { position: absolute; left: -55px; top: 44px; width: 110px; height: 100px; overflow: visible; transform-origin: 80% 70%; }
.wand path:first-child { fill: none; stroke: #fff7dd; stroke-width: 10; stroke-linecap: round; }
.wand path:first-child { paint-order: stroke; filter: drop-shadow(0 2px 0 #4d2c12); }
.wand-flare { fill: var(--gold); stroke: #fff9e9; stroke-width: 3; stroke-linejoin: round; }
.sparkles { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 5; pointer-events: none; }
.sparkles i { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; background: #fff9e9; clip-path: polygon(50% 0%, 59% 38%, 100% 50%, 59% 60%, 50% 100%, 41% 60%, 0% 50%, 41% 38%); opacity: 0; transform: scale(0); }
.sparkles i:nth-child(even) { background: var(--gold); width: 13px; height: 13px; }

.story-caption { position: absolute; z-index: 6; left: clamp(28px, 6vw, 100px); bottom: 48px; display: flex; gap: 19px; align-items: start; width: 400px; }
.chapter { color: var(--gold); font-size: 11px; font-weight: 950; letter-spacing: .14em; white-space: nowrap; padding-top: 4px; }
.story-caption strong { font-size: 18px; letter-spacing: -.04em; }
.story-caption p { font-size: 12px; line-height: 1.45; color: #c9bca9; margin-top: 4px; }
.chapters { position: absolute; right: 4%; bottom: 50px; z-index: 6; display: flex; gap: 23px; padding-bottom: 14px; }
.chapters button { border: 0; background: none; color: #afa396; padding: 0; font-size: 11px; font-weight: 850; }
.chapters button span { font-size: 10px; color: var(--gold); margin-right: 5px; }
.chapters button[aria-current=step] { color: var(--cream); }
.chapter-track { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #ffffff29; }
.chapter-track i { display: block; height: 100%; width: var(--track, 0%); background: var(--gold); }

.after { padding: clamp(70px, 9vw, 125px) clamp(28px, 8vw, 120px) 85px; }
.after .eyebrow { color: #905812; }
.after h2 { font-size: clamp(53px, 6.3vw, 92px); font-weight: 950; line-height: .99; letter-spacing: -.055em; margin: 20px 0; }
.after h2 em { color: #ad7122; }
.after-description { font-size: 17px; line-height: 1.55; max-width: 600px; color: #615343; }
.example-note { margin-top: 38px; padding-top: 17px; border-top: 1px solid var(--line); color: #756756; font-size: 12px; }
.example-note strong { color: var(--ink); }

@media (max-width: 1100px) {
  .top-copy { width: 35vw; }
  .top-copy h1 { font-size: clamp(59px, 6.7vw, 84px); }
  .scene { right: 1%; width: 63vw; }
  .person { width: 162px; height: 212px; }
  .person img { width: 138px; height: 174px; }
  .person figcaption strong { font-size: 16px; }
  .genie { left: 69%; width: 132px; height: 208px; }
}
@media (max-width: 760px) {
  .story--writing .event-name-text { clip-path: none; }
  .story--writing .event-name-row::after { display: none; }
  .site-header { height: 64px; padding: 0 18px; }
  .concept-label { display: none; }
  .story { height: auto; }
  .stage { height: auto; min-height: 0; position: relative; padding-bottom: 25px; }
  .top-copy { position: relative; left: auto; top: auto; width: auto; padding: 60px 23px 10px; }
  .top-copy h1 { font-size: clamp(44px, 11vw, 64px); letter-spacing: -.045em; margin: 21px 0; }
  .intro { font-size: 16px; max-width: 500px; }
  .scroll-hint { display: none; }
  .scene { position: relative; right: auto; top: auto; width: 100%; height: auto; min-height: 0; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 40px 20px 42px; }
  .scene-grid, .scene::before, .routes, .merge-core, .sparkles { display: none; }
  .person, .event { position: relative; left: auto; right: auto; top: auto; bottom: auto; opacity: 1 !important; transform: none !important; }
  .person { width: auto; height: auto; min-height: 196px; order: 1; }
  .person img { width: min(100%, 145px); height: 190px; }
  .person figcaption span { font-size: 8px; }
  .person figcaption strong { font-size: 16px; }
  .person figcaption small { font-size: 10px; }
  .event { grid-column: 1 / -1; justify-self: center; order: 2; width: 230px; height: 255px; padding-top: 32px; margin: 30px 0 22px; box-shadow: 9px 10px 0 #744913; }
  .event-name { font-size: 33px; }
  .event-date { margin-top: 18px; }
  .event-line { margin: 14px auto 8px; }
  .person-bar, .person-door { order: 3; }
  .genie { position: absolute; left: auto; right: 2%; top: 330px; width: 100px; height: 152px; opacity: 1 !important; transform: none !important; }
  .genie .wand { left: -38px; top: 26px; width: 78px; height: 70px; }
  .event-halo { display: none; }
  .story-caption { position: relative; left: auto; bottom: auto; width: auto; margin: 0 23px; }
  .chapters { display: none; }
  .after { padding: 65px 23px 45px; }
  .after h2 { font-size: clamp(49px, 11vw, 70px); }
  .after-description { font-size: 15px; }
}
@media (max-width: 390px) {
  .person figcaption strong { font-size: 14px; }
  .person figcaption small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .person, .event, .genie { transition: none !important; }
  .story--writing .event-name-text { clip-path: none; }
  .story--writing .event-name-row::after { display: none; }
}
@media (min-width: 761px) {
  body.reduced .story { height: calc(100vh - 78px); }
  body.reduced .stage { position: relative; }
  body.reduced .person { opacity: 1 !important; transform: none !important; }
  body.reduced .person figcaption { opacity: 1 !important; }
  body.reduced .event, body.reduced .genie { opacity: 1 !important; }
  body.reduced .genie { transform: translate(0, 0) scale(1) !important; }
}
