/* The home page. Colours are the app's own (system/palette.json): midnight ground for the
   story, paper inside the phone, the seven light-mode tints for rhymes, amber for the one
   interlude. No remote assets: the display face is served from this site (SIL OFL 1.1,
   media/fonts/OFL-BricolageGrotesque.txt). */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:800;font-display:swap;
  src:url(media/fonts/BricolageGrotesque-ExtraBold-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.home{
  --night:#161A21;--night-ink:#EDE9E0;--night-soft:#A5ABB6;--paper:#F7F4EE;--paper-ink:#1F1D1A;
  --t0:#AFA8F8;--t1:#D0FBEC;--t2:#EAD7A7;--t3:#B3D0EC;--t4:#D2929D;--t5:#D7775C;--t6:#FAE077;
  --flood:#E4AE55;--flood-ink:#1A1408;
  --display:"Bricolage Grotesque","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --lyric:"New York",ui-serif,"Newsreader",Georgia,serif;
  background:var(--night);color:var(--night-ink)
}
.home .site-header{--ink:var(--night-ink);--soft:var(--night-soft);position:relative;z-index:3}
.home .site-footer{--ink:var(--paper-ink);--soft:#6B655C;background:var(--paper);color:var(--paper-ink);width:100%;padding:1.4rem max(1rem,calc((100% - 70rem)/2))}
.home a:focus-visible,.home button:focus-visible{outline-color:var(--t0)}
.display{font-family:var(--display);font-weight:800;letter-spacing:-.045em;line-height:.95}
.kicker{margin:0;font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.75}
.home h2{font-family:var(--display);font-weight:800;letter-spacing:-.04em;font-size:clamp(2.2rem,4.6vw,3.8rem);line-height:1;max-width:14ch;margin-top:.6rem}
.home .step p:not(.kicker){font-size:1.2rem;line-height:1.5;max-width:30rem;color:var(--night-soft)}

/* the story: copy on the left, the phone on the right */
.story{position:relative}
.stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,22rem);gap:clamp(2rem,6vw,6rem);align-items:center;width:min(100% - 2rem,70rem);margin-inline:auto;padding-block:2rem 4rem}
.intro .display{font-size:clamp(4rem,10vw,7.4rem)}
.pitch{font-size:clamp(1.25rem,2vw,1.5rem);line-height:1.4;max-width:28rem;margin-top:1.2rem;color:var(--night-ink)!important}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:1.5rem 0 0;max-width:30rem}
.chips li{padding:.45rem .9rem;border-radius:999px;background:var(--c);color:var(--paper-ink);font-size:.9rem;font-weight:600}
.stores{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.8rem}
.store{display:inline-flex;flex-direction:column;padding:.65rem 1.1rem;border-radius:14px;background:var(--night-ink);color:var(--paper-ink);font-weight:700;font-size:1rem;line-height:1.15}
.store small{font-weight:500;font-size:.72rem;opacity:.75}
.scroll-hint{margin-top:2.4rem!important;font-size:.95rem!important;letter-spacing:.06em}
.scroll-hint::after{content:"";display:block;width:1px;height:2.2rem;margin-top:.6rem;background:currentColor;opacity:.5}

/* the fly-outs: the pieces that leave the phone */
.fly{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-top:1.6rem}
.fly .word{font-family:var(--display);font-weight:800;letter-spacing:-.04em;font-size:clamp(2rem,4vw,3.2rem);line-height:1;padding:.08em .3em;border-radius:.25em;color:var(--paper-ink)}
.fly .dash{display:block;height:.7rem;width:3.6rem;border-radius:99px;background:currentColor}
.fly .dash.weak{height:.35rem;width:1.8rem;opacity:.35}
.fly .dash.half{opacity:.6}
.fly-counts{font-family:var(--display);font-weight:800;letter-spacing:-.05em;font-size:clamp(4rem,9vw,7rem);line-height:1;gap:.35em;font-variant-numeric:tabular-nums}
.fly .pill{padding:.45em .9em;border-radius:999px;background:var(--night-ink);color:var(--paper-ink);font-family:var(--lyric);font-size:1.6rem}

/* the phone: the app in light mode, drawn from the engine's reading */
.phone{margin:0;position:relative;aspect-ratio:9/17.5;border-radius:2.8rem;background:var(--paper);color:var(--paper-ink);box-shadow:0 0 0 .55rem #2A303B,0 2.5rem 7rem -1rem #000c}
.screen{position:absolute;inset:0;padding:3.4rem 1.2rem 1.2rem;overflow:hidden}
.song-title{margin:0 0 1rem;font-family:var(--lyric);font-weight:600;font-size:1.3rem}
.song .line{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.7rem}
.song .words{flex:1;display:flex;flex-wrap:wrap;column-gap:.3rem;row-gap:.15rem;font-family:var(--lyric);font-size:1.06rem;line-height:1.25}
.song .w{display:inline-flex;flex-direction:column;gap:.18rem;transition:opacity .25s}
.song .w b{font-weight:400;padding:0 .12rem;border-radius:.25rem;transition:box-shadow .3s}
.song .w.lit b{box-shadow:0 0 0 2px var(--paper-ink)}
.song .bars{display:flex;gap:2px;height:4px;align-items:center;padding-left:.15rem}
.song .bars i{display:block;height:1.5px;width:5px;border-radius:1px;background:var(--paper-ink);opacity:.25;transition:transform .3s}
.song .bars i.s{height:2.5px;width:9px;opacity:.75}
.song.loud .bars i{transform:scaleY(1.8)}
.song .count{width:1rem;font-size:.78rem;color:#8A8378;font-variant-numeric:tabular-nums;padding-top:.2rem;transition:color .3s,transform .3s}
.song.loud-counts .count{color:var(--paper-ink);transform:scale(1.25)}
.strip{position:absolute;left:.9rem;right:.9rem;bottom:1rem;display:flex;gap:.9rem;align-items:center;padding-top:.6rem;border-top:1px solid #1F1D1A1f;font-family:var(--lyric);font-size:.95rem;opacity:0;transition:opacity .4s}
.strip.on{opacity:1}
.strip .edit{font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:.8rem;padding:.2rem .65rem;border-radius:99px;background:#1F1D1A14}

/* scroll-driven mode (desktop, motion allowed): the stage pins and the steps take turns */
.scrub .story{height:520vh}
.scrub .stage{position:sticky;top:0;height:100vh;padding-block:5rem 2rem}
.scrub .copy{position:relative;height:30rem}
.scrub .step{position:absolute;inset:0 0 auto 0;opacity:0}
.scrub .step.intro{opacity:1}
.scrub .phone{max-height:calc(100vh - 8rem)}
.scrub .fly{will-change:transform,opacity}

/* static mode (phones, reduced motion): everything stacks and fades in once */
.static .stage{grid-template-columns:1fr}
.static .phone{width:min(100%,20rem);margin-inline:auto;order:-1}
.static .intro{order:-2}
.static .copy{display:contents}
.static .step:not(.intro){padding-top:3rem}
.static .scroll-hint{display:none}
.static .reveal{opacity:0;transform:translateY(1.2rem);transition:opacity .6s ease,transform .6s ease}
.static .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.static .reveal{opacity:1;transform:none;transition:none}}

/* the one interlude: the page floods amber and one verse folds in */
.interlude{background:var(--flood);color:var(--flood-ink)}
.scrub .interlude{height:240vh}
.interlude-stage{padding-block:clamp(4rem,10vw,8rem)}
.scrub .interlude-stage{position:sticky;top:0;min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding-block:4rem}
.verse{display:flex;flex-direction:column;gap:.5rem;perspective:1400px}
.verse .vl{font-family:var(--display);font-weight:800;letter-spacing:-.04em;font-size:clamp(1.9rem,4.6vw,3.7rem);line-height:1.02;display:flex;flex-wrap:wrap;column-gap:.3em;align-items:flex-start;transform-origin:50% 0}
.verse .vw{display:inline-flex;flex-direction:column;gap:.35rem}
.verse .vw b{font-weight:800;padding:0 .15em;border-radius:.2em}
.verse .vbars{display:flex;gap:.3rem;height:.5rem;align-items:center;padding-left:.15em}
.verse .vbars i{display:block;height:.22rem;width:.9rem;border-radius:99px;background:currentColor;opacity:.3}
.verse .vbars i.s{height:.42rem;width:1.7rem;opacity:.85}
.verse .vcount{font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:1.1rem;font-weight:700;letter-spacing:0;align-self:center;margin-left:.4rem;opacity:.7}
.note{margin-top:2rem!important;font-size:1.15rem;font-weight:600;max-width:34rem}

/* the film */
.film-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,22rem);gap:clamp(2rem,6vw,6rem);align-items:center;padding-block:clamp(4rem,10vw,8rem)}
.film-copy p:not(.kicker){font-size:1.2rem;color:var(--night-soft);max-width:28rem}
.film{margin:0;position:relative}
.film video{width:100%;border-radius:2.4rem;box-shadow:0 0 0 .5rem #2A303B,0 2.5rem 7rem -1rem #000c;background:#000}
.film figcaption{margin-top:1.4rem;font-size:.9rem;color:var(--night-soft);text-align:center}
.sound{position:absolute;right:1rem;bottom:4.2rem;display:grid;place-items:center;width:2.75rem;height:2.75rem;padding:0;border:0;border-radius:50%;color:var(--paper-ink);background:#F7F4EEe6;cursor:pointer;box-shadow:0 4px 16px #0004}

/* the close, on paper */
.close{background:var(--paper);color:var(--paper-ink);padding-block:clamp(4rem,10vw,8rem)}
.close .display{font-size:clamp(2.8rem,7vw,5.6rem);max-width:13ch}
.no-list{display:flex;flex-wrap:wrap;gap:.5rem 1.6rem;list-style:none;padding:0;margin:2rem 0 0;font-size:1.2rem;font-weight:600}
.no-list li::before{content:"";display:inline-block;width:.55rem;height:.55rem;border-radius:50%;background:var(--t5);margin-right:.55rem;vertical-align:.12em}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem;margin-top:3rem}
.facts article{background:#FFFFFF;border:1px solid #E2DCD0;border-radius:1.2rem;padding:1.4rem}
.facts h3{font-family:var(--display);font-weight:800;letter-spacing:-.03em;font-size:1.35rem;margin:0}
.facts p{color:#5E584F;font-size:1rem}
.close .store{background:var(--paper-ink);color:var(--paper)}

@media (max-width:52rem){
  .film-section{grid-template-columns:1fr}
  .film{width:min(100%,20rem);margin-inline:auto}
  .home h2{font-size:clamp(2rem,9vw,2.8rem)}
}
