/* Fonts: self-hosted Latin and Latin Extended subsets of the Google Fonts variable files (SIL OFL 1.1, see fonts/*-OFL.txt).
   Fraunces stands in for Facues. Glyphs outside these ranges (♯ ♭ ⌘ ●) fall back to system fonts, as in the prototype. */
@font-face{font-family:Fraunces;font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/fraunces-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}
@font-face{font-family:Fraunces;font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/fraunces-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/inter-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}
@font-face{font-family:Inter;font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* VOICE: musician to musician; warm, plain, a little playful. Few words, real music language.
   IDEA: a song being written as you scroll: the turn draws itself, then scraps of a song gather into one document.
   PICTURE: the splash (turn draws, midnight closes into the icon), then a live lead sheet for each feature.
   COLOUR and TYPE: brand midnight #1F2A44 and parchment #F3EBDD in alternating full-width bands; record red only for recording. Fraunces stands in for Facues; Inter for text and chords.
   LAYOUT: pinned full-screen scenes scrubbed by scroll, copy beside one object; stacks below 820px. */
:root{--mid:#1F2A44;--mid2:#27334F;--cream:#F3EBDD;--paper:#FFFAF1;--soft:#5B6378;--softd:#AEB3C2;--line:#DAD3C6;--red:#E5484D;color-scheme:light}
*{box-sizing:border-box;min-width:0}
html{-webkit-text-size-adjust:100%;touch-action:pan-x pan-y}
body{margin:0;background:var(--cream);color:var(--mid);font:17px/1.6 Inter,system-ui,-apple-system,sans-serif;overflow-x:clip;-webkit-font-smoothing:antialiased}
h1,h2{font-family:Fraunces,Georgia,serif;font-weight:500;letter-spacing:-.01em;line-height:1.05;text-wrap:balance;margin:0}
h2{font-size:clamp(32px,4.4vw,52px)}
p{margin:0}
a{color:inherit}
.dark{background:var(--mid);color:var(--cream)}
.dark .lede{color:var(--softd)}
.lede{color:var(--soft);margin-top:18px;max-width:32em}
.aside{font-size:14px;margin-top:16px;opacity:.75}

/* nav */
nav{position:fixed;inset:0 0 auto;z-index:20;height:60px;display:flex;align-items:center;gap:22px;padding:0 max(5vw,16px);color:var(--mid);transition:color .3s,background .3s,opacity .8s .2s}
html:not(.ready) nav{opacity:0;pointer-events:none}
nav.onDark{color:var(--cream)}
nav.solid{background:color-mix(in srgb,var(--cream) 82%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
nav.solid.onDark{background:color-mix(in srgb,var(--mid) 82%,transparent)}
.brand{display:flex;align-items:center;gap:9px;font:500 20px Fraunces,serif;text-decoration:none;margin-right:auto}
.brand svg{width:26px;height:26px}
nav .lk{font-size:15px;text-decoration:none;opacity:.8}
nav .lk:hover{opacity:1}
.pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 20px;border-radius:22px;font:600 15px Inter,sans-serif;text-decoration:none;background:currentColor;border:0;cursor:pointer}
.pill span{color:var(--cream)}
nav.onDark .pill span{color:var(--mid)}
a:focus-visible,button:focus-visible{outline:3px solid #8EA2DB;outline-offset:3px;border-radius:8px}

/* scenes */
.scene{position:relative}
.stick{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(24px,4vw,64px);padding:84px max(5vw,16px) 36px;max-width:1320px;margin:0 auto}
.fig{position:relative;height:min(74svh,640px)}
.fit{position:absolute;inset:0}
.box{position:absolute;left:0;top:0;transform-origin:0 0}

/* hero */
#open .stick{display:block;max-width:none;padding:0}
#frame{position:absolute;background:var(--mid);will-change:transform}
#turn{position:absolute;overflow:visible}
#heroText{position:absolute;left:0;right:0;text-align:center;color:var(--cream);padding:0 20px;opacity:var(--ht,1)}
#heroText>*{opacity:0;transition:opacity .9s ease}#open.ready #heroText>*{opacity:1}
#heroText>h1{transition-delay:.35s}#heroText>p{transition-delay:.6s}
#heroText h1{font-size:clamp(40px,7vw,84px)}
#heroText p{margin:18px auto 0;max-width:30em;color:var(--softd)}
#heroText .soon{margin-top:22px;font-size:14px;letter-spacing:.02em;color:#C9C6C4}
#cue{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);color:var(--cream);font-size:13px;opacity:var(--ht,1);text-align:center}
#cue>*{opacity:0;transition:opacity .9s .6s}#open.ready #cue>*{opacity:1}
#cue span{display:block}#cue i{display:block;width:1px;height:34px;margin:8px auto 0;background:currentColor;animation:cue 2s infinite}
@keyframes cue{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
#word{position:absolute;left:0;right:0;text-align:center;opacity:0}
#word b{display:block;font:500 clamp(34px,4vw,44px) Fraunces,serif}
#word span{display:block;margin-top:6px;color:var(--soft)}

/* fragments */
.frag{position:absolute;left:0;top:0;background:var(--paper);border-radius:14px;padding:10px 16px 12px;box-shadow:0 1px 0 rgba(31,42,68,.06),0 14px 30px -18px rgba(31,42,68,.45);will-change:transform}
.lab{font:600 12px Inter,sans-serif;color:var(--soft);display:flex;align-items:center;gap:8px}
.doc{position:absolute;left:40px;top:14px;width:440px;height:572px;border-radius:20px;background:color-mix(in srgb,var(--paper) 55%,transparent);border:1.5px solid var(--line)}
.doc b{position:absolute;left:24px;top:20px;font:500 26px Fraunces,serif}
.doc small{position:absolute;left:24px;top:56px;font-size:13px;color:var(--soft)}

/* lyric lines with chords */
.ly{line-height:2.9;white-space:normal}
.w{white-space:nowrap;display:inline-block}
.s{position:relative}
.ch{position:absolute;left:0;bottom:1.42em;font-weight:700;font-size:.82em;line-height:1;white-space:nowrap}
.frag .ly{font-size:15px}
/* chords: the sheet inside an iMac that turns into an iPhone (sizes set in rChords) */
#chordBox{display:flex;align-items:center;justify-content:center}
#rig{display:flex;flex-direction:column;align-items:center}
#device{background:linear-gradient(#E6E8EC,#C3C7CF);overflow:hidden;box-shadow:0 34px 60px -30px rgba(0,0,0,.75)}
#bezel{background:#0B0F1A}
#sheet{position:relative;background:var(--mid2)}
#sheet .ly{font-size:1em}
#island{position:absolute;left:50%;top:12px;width:78px;height:23px;margin-left:-39px;border-radius:12px;background:#0B0F1A;opacity:0}
#stand{overflow:hidden;height:70px}
#stand svg{display:block}
#sheet .ch{color:#F7D9A8}
.shead{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--softd);margin-bottom:2px}
.kbd{display:inline-block;border:1px solid #4A5675;border-radius:6px;padding:0 7px;font-size:12px;line-height:20px;margin:0 2px}

/* rhymes */
#rhyme{background:var(--mid2);border-radius:20px;padding:24px 26px;max-width:520px;margin:0 auto}
.rline{font:500 clamp(24px,2.6vw,32px) Fraunces,serif;margin-bottom:20px}
.rline{position:relative}
.rline u{text-decoration-color:rgba(247,217,168,var(--ul,1));text-underline-offset:6px;text-decoration-thickness:2px}
.rg{font-size:13px;color:var(--softd);margin:14px 0 8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.rline .tc{visibility:hidden}.rline .tc.on{visibility:visible}
.rline .cur{position:relative}.rline .cur::after{content:"";position:absolute;right:-3px;top:.12em;bottom:.08em;width:2px;background:#F7D9A8;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.chip{padding:6px 14px;border-radius:999px;background:#33405F;font-size:16px;opacity:0}

/* key */
#keyfig{display:flex;flex-direction:column;justify-content:center;gap:28px}
#keyLab{font-size:15px;color:var(--softd);min-height:1.6em;text-align:center}
.reels{display:flex;justify-content:center;gap:clamp(14px,3vw,36px);font:600 clamp(26px,3.4vw,44px)/1 Inter,sans-serif}
.slot{height:1.25em;overflow:hidden}
.reel{display:flex;flex-direction:column;will-change:transform}
.reel span{height:1.25em;line-height:1.25em;text-align:center}
#neck{width:100%;max-width:620px;margin:0 auto;display:block}
/* trial: each scene's copy centred, like the promises heading (remove this block to go back) */
.scene .stick>div:first-child{text-align:center}
.scene .stick>div:first-child .lede{margin-left:auto;margin-right:auto}
.scene .stick>div:first-child .exports{justify-content:center}
.kst,.ph{display:none}
#rhyme .cut{display:none!important}

/* devices + promises */
.exports{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.exports span{border:1px solid var(--line);border-radius:999px;padding:5px 13px;font-size:14px;background:var(--paper)}
.band{padding:clamp(64px,9vw,120px) max(5vw,16px)}
.wrap{max-width:1180px;margin:0 auto}
#promise .wrap>h2,#promise .wrap>.lede{text-align:center;margin-left:auto;margin-right:auto}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:44px}
.card{background:var(--mid2);border-radius:18px;padding:22px}
.card svg{width:34px;height:34px;color:#F7D9A8}
.card b{display:block;margin:14px 0 6px;font:500 21px Fraunces,serif}
.card p{color:var(--softd);font-size:15.5px}
#cta{text-align:center}
#cta svg.m{width:96px;height:96px;border-radius:21px;box-shadow:0 14px 28px -12px rgba(31,42,68,.5)}
#cta h2{margin-top:26px;font-size:clamp(40px,6vw,72px)}
#cta .lede{margin:16px auto 0}
#beta{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:600px;margin:28px auto 0}
#beta input{flex:1 1 160px;min-width:0;min-height:48px;padding:0 18px;border:0;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--line);color:var(--mid);font:16px Inter,sans-serif}   /* 16px stops iPhone zooming in on focus */
#beta input::placeholder{color:var(--soft)}
#beta input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--mid)}
#beta button{min-height:48px;padding:0 24px;border:0;border-radius:999px;background:var(--mid);color:var(--cream);font:600 16px Inter,sans-serif;cursor:pointer}
#beta button[disabled]{opacity:.6;cursor:default}
#cta .note{margin-top:12px;font-size:13px;color:var(--soft)}
#cta .note a{color:inherit}
#betaDone{margin-top:28px;font:500 24px Fraunces,serif;color:var(--mid)}
.store{display:inline-flex;align-items:center;gap:12px;margin-top:30px;padding:10px 22px 10px 16px;border-radius:14px;background:var(--mid);color:var(--cream);text-decoration:none;text-align:left}
.store small{display:block;font-size:11px;opacity:.75}
.store b{font:600 19px Inter,sans-serif}
footer{border-top:1px solid var(--line);padding:24px max(5vw,16px) 32px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;font-size:14px;color:var(--soft)}

@media (max-width:980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:820px){
  .stick{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:start;gap:14px;padding:76px 18px 18px}
  .fig{height:100%}
  h2{font-size:clamp(28px,7.4vw,38px)}
  .lede{margin-top:10px;font-size:15.5px}
  .aside{display:none}
  nav .lk{display:none}
}
/* phones: the four promises as a 2 × 2 grid that fits on one screen */
@media (max-width:600px){
  #promise{padding-top:52px;padding-bottom:52px}
  .grid{gap:10px;margin-top:24px}
  .card{padding:14px 13px;border-radius:14px}
  .card svg{width:26px;height:26px}
  .card b{font-size:17px;line-height:1.15;margin:8px 0 5px}
  .card p{font-size:13px;line-height:1.45}
  /* rhymes: the card fills the space, with more rhymes to fill it */
  #rhyme{align-self:stretch;overflow:hidden;padding:22px 20px}
  .ph{display:block}.chips.ph{display:flex}
  .chip{font-size:15px;padding:6px 13px}
  /* key: the three steps stacked down the page, arriving one swipe at a time */
  #keyfig{justify-content:space-between;gap:0;padding:4px 0 8px}
  #keyfig>#keyLab,#keyfig>#reels,#keyfig>#neck{display:none}
  .kst{display:flex;flex-direction:column;gap:12px;opacity:0}
  .kst .klab{font-size:14px;color:var(--softd);text-align:center}
  .kst .reels{gap:16px;font-size:24px}
  .kneck{width:100%;display:block}
  .rm .kst{opacity:1}
}

/* reduced motion: plain stacked page, everything shown finished */
.rm .scene{height:auto!important}
.rm .stick{position:relative;height:auto;min-height:0;padding-top:72px;padding-bottom:72px}
.rm .fig{height:min(70svh,560px)}
.rm #open .stick{height:100svh}
.rm #cue i{animation:none}
