/* PlayPiano website, the stage. The app's colours: violet action, yellow
   reward (one accent phrase per headline), mint for the course and correct,
   coral only for what a machine wrote, paper, ink and the deep stage. Sections
   sit on one of three grounds (stage, paper, a colour field), never two the
   same in a row. Manrope ExtraBold for display, DM Sans for text. Motion is
   transform and opacity only, and every piece of it stops under
   prefers-reduced-motion. */
@font-face{font-family:Manrope;src:url(/assets/Manrope-ExtraBold.woff) format("woff");font-weight:800;font-display:swap}
@font-face{font-family:Manrope;src:url(/assets/Manrope-Bold.woff) format("woff");font-weight:700;font-display:swap}
@font-face{font-family:"DM Sans";src:url(/assets/DMSans-Regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url(/assets/DMSans-Medium.woff) format("woff");font-weight:500;font-display:swap}
:root{
  --stage:#1B0F4D;--action:#5B3FE0;--yellow:#FFC83D;--mint:#2ED3A0;--coral:#FF6B4A;--paper:#FFF6E6;--ink:#1F1747;
  --cream:#FFFCF5;--sand:#F3E9D6;--line:#E7E2D7;
  --ink-2:#5A5380;--ink-3:#6B6590;
  --violet:var(--action);--violet-ink:#3F27B0;--violet-soft:#EFEBFF;
  --mint-soft:#DDF6EC;--mint-ink:#0B6A4E;
  --yellow-ink:#8A5E00;--yellow-soft:#FFF2CC;
  --coral-ink:#B33A1E;--coral-soft:#FFE5DD;
  --sky:#59C8FF;--sky-soft:#E3F5FF;
  --deep:#2A1B6E;--deep-2:#5639CF;--gold:#F5D77A;
  --font-display:Manrope,"DM Sans",system-ui,sans-serif;--font-text:"DM Sans",system-ui,sans-serif;
  --display:clamp(48px,7vw,112px);--h2:clamp(36px,5vw,72px);--curve:64px;
  --radius:22px;--radius-s:14px;--shadow:0 1px 0 rgba(32,25,54,.06),0 10px 30px -14px rgba(32,25,54,.25);
  --key-shadow:0 3px 0 var(--ink);
  --wrap:1120px;--gutter:clamp(16px,4vw,40px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--ink);font:400 17px/1.55 var(--font-text);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--violet-ink)}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:800;letter-spacing:-.02em;line-height:1.05;margin:0}
h1{font-size:var(--display);line-height:.95}
h2{font-size:var(--h2);line-height:1}
h3{font-size:clamp(20px,2.2vw,24px);letter-spacing:-.01em;line-height:1.2}
p{margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.eyebrow{font:700 12px/1 var(--font-text);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-2);margin:0 0 14px}
.eyebrow.violet{color:var(--violet)}.eyebrow.mint{color:var(--mint-ink)}.eyebrow.coral{color:var(--coral-ink)}
.lead{font-size:clamp(18px,2vw,21px);color:var(--ink-2);max-width:56ch}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;z-index:100}
.skip:focus{left:12px}
.accent{color:var(--yellow)}
:focus-visible{outline:3px solid var(--violet);outline-offset:3px;border-radius:6px}

/* Keys: the app's roles. Primary is violet with a hard ink shadow, like the app's keys. */
.key,.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;border-radius:999px;font:500 17px/1 var(--font-text);text-decoration:none;border:2px solid var(--ink);color:var(--ink);background:#fff;box-shadow:var(--key-shadow);transition:transform .15s ease,box-shadow .15s ease;cursor:pointer}
.key:hover{transform:translateY(-1px)}.key:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
.key.primary,.button.primary{background:var(--violet);border-color:var(--ink);color:#fff}
.key.gold{background:var(--gold);border-color:var(--deep);color:var(--deep);box-shadow:0 3px 0 var(--deep)}
.key.small{min-height:44px;padding:0 18px;font-size:15px}
.key svg{width:20px;height:20px;flex:none}
.textlink{font-weight:700;color:var(--violet-ink);text-decoration:none;display:inline-flex;align-items:center;gap:6px;min-height:44px}
.textlink:hover{text-decoration:underline}

/* Header */
.header{position:sticky;top:0;z-index:50;background:rgba(255,252,245,.86);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.header .wrap{display:flex;align-items:center;gap:16px;min-height:68px;position:relative}
.brand{display:inline-flex;align-items:center;gap:10px;font:800 20px/1 var(--font-display);color:var(--ink);text-decoration:none;letter-spacing:-.02em}
.brand img{width:36px;height:36px;border-radius:9px}
.nav{margin-left:auto;display:flex;align-items:center;gap:4px}
.nav a{white-space:nowrap;color:var(--ink);text-decoration:none;font-weight:500;padding:10px 12px;min-height:44px;display:inline-flex;align-items:center;border-radius:999px;font-size:15px}
.nav a:hover{background:var(--sand)}
.nav .key{margin-left:8px}
.menu{display:none;margin-left:auto;border:2px solid var(--ink);background:#fff;border-radius:999px;min-height:44px;padding:0 16px;font:500 15px var(--font-text);color:var(--ink);box-shadow:var(--key-shadow)}
@media (max-width:1100px){ /* the full bar needs about 1030 px with its brand and gutters, measured at 1024, 1100 and 1180; the menu takes over before it wraps */
  .menu{display:inline-flex;align-items:center;gap:8px}
  .nav{position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;background:var(--cream);border-bottom:1px solid var(--line);padding:8px var(--gutter) 16px;display:none}
  .nav.open{display:flex}
  .nav a{padding:14px 8px;font-size:17px}.nav .key{margin:8px 0 0;justify-content:center}
}

/* Hero */
.hero{padding:clamp(40px,7vw,96px) 0 0;position:relative;overflow:hidden}
.hero h1 span:not(.accent){color:var(--violet)}
.hero .lead{margin:20px 0 28px}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.hero-note{margin-top:18px;color:var(--ink-2);font-size:15px}
.hero-note b{color:var(--ink);font-weight:500}
.stage{position:relative;min-height:560px;display:grid;place-items:center}
.stage .ground{position:absolute;inset:auto 0 0;height:62%;background:var(--paper);border-radius:40px 40px 0 0;border:2px solid var(--line);border-bottom:0}
.phone{position:relative;width:min(280px,74vw);aspect-ratio:393/852;border-radius:44px;background:#fff;border:3px solid var(--ink);box-shadow:0 6px 0 var(--ink),0 30px 60px -30px rgba(32,25,54,.5);overflow:hidden;z-index:2}
.phone img{width:100%;height:100%;object-fit:cover;object-position:top}
.phone::before{content:"";position:absolute;top:10px;left:50%;transform:translateX(-50%);width:96px;height:26px;border-radius:999px;background:var(--ink);z-index:3}
.cast{position:absolute;z-index:3;filter:drop-shadow(0 12px 18px rgba(32,25,54,.25))}
.cast.tock{width:min(220px,44%);left:-4%;bottom:0}
.cast.swell{width:min(120px,26%);right:0;top:10%}
.cast.note{width:min(90px,18%);right:3%;bottom:8%}
.cast.hold{width:min(140px,30%);left:-8%;top:3%}
@media (max-width:860px){
  .stage{min-height:0;margin-top:8px;padding-top:40px}
  .cast.hold{display:none}
}

/* Sections */
.section{padding:clamp(56px,8vw,112px) 0}
.section.tint{background:var(--paper)}
.head{max-width:62ch;margin-bottom:clamp(28px,4vw,48px)}
.head.center{text-align:center;margin-left:auto;margin-right:auto}
.head .lead{margin-top:16px}
.head.center .lead{margin-left:auto;margin-right:auto}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,72px);align-items:center}
.split.flip>.art{order:-1}
.art{position:relative;display:grid;place-items:center;padding:24px 0}
.art .phone{width:min(280px,70vw)}
.art .cast{filter:drop-shadow(0 10px 14px rgba(32,25,54,.22))}
.art .cast.side{width:min(170px,40%);right:0;bottom:0}
.art .cast.side.left{right:auto;left:0}
@media (max-width:860px){.split{grid-template-columns:1fr}.split.flip>.art{order:0}.art{margin-top:8px}}

.facts{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:18px}
.facts li{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:start}
.facts li>i{width:28px;height:28px;border-radius:50%;background:var(--mint-soft);display:grid;place-items:center;color:var(--mint-ink);flex:none}
.facts li>i svg{width:16px;height:16px}
.facts b{display:block;font-weight:500;font-size:17px}
.facts span{color:var(--ink-2);font-size:16px}

/* Chapters strip under Learn */
.chapters{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.chapters span{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:6px 14px 6px 6px;font-size:15px;font-weight:500}
.chapters b{width:26px;height:26px;border-radius:8px;background:var(--mint-soft);color:var(--mint-ink);display:grid;place-items:center;font:700 13px var(--font-text)}

/* Games */
.games{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:32px}
.family{background:#fff;border:2px solid var(--line);border-radius:var(--radius);padding:20px;display:grid;gap:14px;align-content:start;box-shadow:var(--shadow)}
.family header{display:flex;align-items:center;gap:12px}
.family header img{width:48px;height:48px}
.family header b{font:800 13px/1 var(--font-display);letter-spacing:.14em;text-transform:uppercase;display:block}
.family header small{color:var(--ink-2);font-size:14px}
.family ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.family li{display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center}
.family li img{width:36px;height:36px}
.family li b{display:block;font-weight:500;font-size:16px;line-height:1.2}
.family li span{color:var(--ink-2);font-size:14px}
.family.pulse{border-color:#BFE9FF}.family.echo{border-color:#FFD9C8}.family.read{border-color:#D9F3E8}.family.hands{border-color:#FFE9B0}
.games-note{margin-top:20px;color:var(--ink-2);display:flex;gap:14px;align-items:center}
.games-note img{width:56px;height:56px}
@media (max-width:1000px){.games{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.games{grid-template-columns:1fr}}

/* Music Room shelf: real titles from the catalogue, drawn as cards. */
.shelf{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:32px}
.piece{text-decoration:none;background:#fff;border:2px solid var(--line);border-radius:var(--radius-s);padding:14px;display:grid;gap:6px;align-content:start;min-height:168px;position:relative;box-shadow:var(--shadow)}
.piece b{font:700 15px/1.2 var(--font-text);display:block;margin-top:6px}
.piece span{color:var(--ink-2);font-size:13px}
.piece em{font-style:normal;position:absolute;top:10px;right:10px;font:700 10px/1 var(--font-text);letter-spacing:.1em;padding:5px 7px;border-radius:999px;background:var(--mint-soft);color:var(--mint-ink)}
.piece em.maestro{background:var(--deep);color:var(--gold)}
.room-facts{display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:24px;color:var(--ink-2);font-size:15px}
.room-facts b{font:800 26px/1 var(--font-display);color:var(--ink);display:block;margin-bottom:4px}
@media (max-width:1000px){.shelf{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.shelf{grid-template-columns:1fr 1fr}}

/* Honest feedback: three modes as cards and the seven parts as a list */
.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px}
.mode{background:#fff;border:2px solid var(--ink);border-radius:var(--radius);padding:22px;box-shadow:0 4px 0 var(--ink)}
.mode b{font:800 12px/1 var(--font-display);letter-spacing:.14em;text-transform:uppercase;padding:6px 10px;border-radius:999px;display:inline-block;margin-bottom:12px}
.mode.play b{background:var(--sky-soft);color:#0B5C86}.mode.coach b{background:var(--coral-soft);color:var(--coral-ink)}.mode.grade b{background:var(--yellow-soft);color:var(--yellow-ink)}
.mode h3{margin-bottom:8px}.mode p{color:var(--ink-2);font-size:16px}
.seven{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.seven span{background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:8px 14px;font-size:15px;font-weight:500}
.seven span.focus{border-color:var(--yellow);background:var(--yellow-soft)}
@media (max-width:860px){.modes{grid-template-columns:1fr}}

/* Maestro */
.maestro{background:linear-gradient(160deg,var(--deep) 0%,var(--deep-2) 100%);color:#fff;position:relative;overflow:hidden}
.maestro::after{content:"";position:absolute;inset:-40% -20% auto auto;width:70vw;height:70vw;max-width:900px;max-height:900px;border-radius:50%;background:radial-gradient(closest-side,rgba(245,215,122,.18),transparent 70%);pointer-events:none}
.maestro>.maestro-grid{position:relative;z-index:1}
.maestro .eyebrow{color:var(--gold)}
.maestro .lead{color:#E6E0FF}
.maestro-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(28px,5vw,72px);align-items:start}
.crest{display:inline-flex;align-items:center;gap:14px;margin-bottom:18px}
.crest img{width:56px;height:56px}
.crest span{font:800 22px var(--font-display);letter-spacing:-.01em}
.includes{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:14px}
.includes li{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:start}
.includes i{width:28px;height:28px;border-radius:50%;background:var(--gold);color:var(--deep);display:grid;place-items:center}
.includes i svg{width:16px;height:16px}
.includes b{display:block;font-weight:500}.includes span{color:#D9D3F0;font-size:15px}
.price-card{background:rgba(255,255,255,.08);border:1.5px solid rgba(245,215,122,.5);border-radius:var(--radius);padding:26px;backdrop-filter:blur(6px)}
.price-card h3{color:var(--gold)}
.prices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.prices div{background:rgba(42,27,110,.5);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-s);padding:14px}
.prices b{font:800 26px/1 var(--font-display);display:block;margin:4px 0}
.prices small,.price-card small{color:#CFC6F2;font-size:13px;display:block;line-height:1.45}
.free-line{margin-top:18px;padding:14px 16px;border-radius:var(--radius-s);background:rgba(46,211,160,.12);border:1px solid rgba(46,211,160,.4);color:#DDF6EC;font-size:15px}
.free-line b{color:#fff;font-weight:500}
@media (max-width:860px){.maestro-grid{grid-template-columns:1fr}}

/* Roadmap: Coming to Maestro */
.roadmap{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:32px}
.soon{background:#fff;border:2px solid var(--line);border-radius:var(--radius);padding:20px;display:grid;gap:10px;align-content:start;box-shadow:var(--shadow)}
.soon em{font-style:normal;font:700 10px/1 var(--font-text);letter-spacing:.12em;text-transform:uppercase;color:var(--gold);background:var(--deep);padding:6px 9px;border-radius:999px;justify-self:start}
.soon h3{font-size:19px}
.soon p{color:var(--ink-2);font-size:15px}
.soon .glyph{width:44px;height:44px;border-radius:12px;background:var(--violet-soft);color:var(--violet-ink);display:grid;place-items:center}
.soon .glyph svg{width:22px;height:22px}
.honest{margin-top:22px;padding:16px 20px;border-radius:var(--radius-s);background:var(--paper);border:1.5px solid var(--line);color:var(--ink-2);font-size:15px;display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center}
.honest img{width:52px;height:52px}
@media (max-width:1000px){.roadmap{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.roadmap{grid-template-columns:1fr}}

/* Keyboard */
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:32px}
.card{background:#fff;color:var(--ink);border:2px solid var(--ink);border-radius:28px;padding:24px;box-shadow:var(--key-shadow)}
.card img{width:64px;height:64px;margin-bottom:12px}
.card h3{margin-bottom:8px}.card p{color:var(--ink-2);font-size:16px}
.card .textlink{margin-top:8px}
.small-note{margin-top:18px;color:var(--ink-3);font-size:14px}
@media (max-width:860px){.two{grid-template-columns:1fr}}

/* Guides */
.guides{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px}
.guide{background:#fff;border:2px solid var(--line);border-radius:var(--radius);padding:24px;text-decoration:none;color:var(--ink);display:grid;gap:8px;align-content:start;box-shadow:var(--shadow);transition:transform .2s ease}
.guide:hover{transform:translateY(-3px)}
.guide b{font:800 12px/1 var(--font-display);letter-spacing:.14em;color:var(--violet)}
.guide p{color:var(--ink-2);font-size:15px}
.guide span{color:var(--violet-ink);font-weight:700;margin-top:6px}
@media (max-width:860px){.guides{grid-template-columns:1fr}}

/* FAQ */
.faq{max-width:760px;margin:32px auto 0;display:grid;gap:10px}
.faq details{background:#fff;border:1.5px solid var(--line);border-radius:var(--radius-s);padding:0 20px}
.faq summary{cursor:pointer;list-style:none;font-weight:500;font-size:17px;padding:16px 0;display:flex;justify-content:space-between;gap:16px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font:700 22px/1 var(--font-display);color:var(--violet);transition:transform .2s ease}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{padding:0 0 18px;color:var(--ink-2)}

/* Closing */
.closing{text-align:center;padding:clamp(56px,8vw,112px) 0}
.closing .lineup{display:flex;justify-content:center;align-items:flex-end;gap:4px;margin-bottom:24px}
.closing .lineup img{height:clamp(90px,16vw,160px);width:auto}
.closing .lead{margin:16px auto 28px}
.closing .events{margin-top:24px;color:#E6E0FF;font-size:16px}
.footer{border-top:1px solid var(--line);padding:40px 0 48px;color:var(--ink-2);font-size:14px}
.footer .wrap{display:grid;grid-template-columns:1fr auto;gap:16px 40px;align-items:start}
.footer-links{display:flex;flex-wrap:wrap;gap:4px 20px}
.footer-links a{color:var(--ink);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.footer small{display:block;grid-column:1/-1}
@media (max-width:640px){.footer .wrap{grid-template-columns:1fr}}

/* Guides (article pages) */
.guide-hero{padding:clamp(40px,6vw,72px) 0 24px}
.breadcrumb{font-size:14px;color:var(--ink-2);margin-bottom:18px}
.breadcrumb a{color:var(--ink-2)}
.ground-stage .breadcrumb{color:#E6E0FF}
.page-band .eyebrow{line-height:1.35}
.guide-hero h1{font-size:clamp(34px,5vw,56px);max-width:18ch}
.guide-hero .dek{font-size:19px;color:var(--ink-2);max-width:60ch;margin-top:16px}
.guide-meta{font-size:14px;color:var(--ink-3);margin-top:16px}
.article-layout{display:grid;grid-template-columns:220px 1fr;gap:48px;padding-bottom:64px}
.article-layout aside{position:sticky;top:88px;align-self:start;display:grid;gap:4px}
.article-layout aside a{color:var(--ink);text-decoration:none;padding:8px 0;font-size:15px}
.guide-content{max-width:68ch;font-size:17px}
.guide-content h2{font-size:clamp(24px,3vw,32px);margin:40px 0 12px}
.guide-content h3{margin:28px 0 8px}
.guide-content p,.guide-content li{color:var(--ink-2);margin:0 0 14px}
.guide-content ol,.guide-content ul{padding-left:22px}
.guide-content li strong{color:var(--ink);font-weight:500}
.quick-answer,.article-callout{background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin:0 0 24px}
.article-callout strong{display:block;margin-bottom:6px}
.guide-content figure{margin:32px 0;display:flex;gap:20px;align-items:flex-end}
.guide-content figure img{width:min(220px,40%)}
.guide-content figcaption{font-size:14px;color:var(--ink-3)}
.related{padding-bottom:64px}
.related-links{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.related-links a{background:#fff;border:2px solid var(--line);border-radius:var(--radius);padding:20px;text-decoration:none;color:var(--ink)}
.related-links p{color:var(--ink-2);font-size:15px;margin-top:6px}
@media (max-width:860px){.article-layout{grid-template-columns:1fr}.article-layout aside{position:static}.related-links{grid-template-columns:1fr}}
.notfound{text-align:center;padding:96px 0}

/* Grounds: the three section backgrounds. Light grounds draw the yellow accent
   as a marker under ink, because yellow text on paper cannot be read. */
.ground-stage{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Ccircle cx='1164' cy='157' r='0.9' fill='%23fff' opacity='0.7'/%3E%3Ccircle cx='573' cy='474' r='1' fill='%23fff' opacity='0.61'/%3E%3Ccircle cx='709' cy='243' r='0.9' fill='%23fff' opacity='0.77'/%3E%3Ccircle cx='805' cy='563' r='0.75' fill='%23fff' opacity='0.82'/%3E%3Ccircle cx='910' cy='868' r='0.6' fill='%23ffc83d' opacity='0.42'/%3E%3Ccircle cx='1366' cy='43' r='0.5' fill='%23fff' opacity='0.89'/%3E%3Ccircle cx='144' cy='858' r='1.25' fill='%23fff' opacity='0.81'/%3E%3Ccircle cx='91' cy='760' r='1.01433' fill='%23fff' opacity='0.36'/%3E%3Ccircle cx='889' cy='2' r='0.5' fill='%23fff' opacity='0.57'/%3E%3Ccircle cx='1198' cy='665' r='0.5' fill='%23ffc83d' opacity='0.51'/%3E%3Ccircle cx='922' cy='858' r='0.5' fill='%23ffc83d' opacity='0.85'/%3E%3Ccircle cx='887' cy='621' r='0.75' fill='%23fff' opacity='0.52'/%3E%3Ccircle cx='154' cy='655' r='0.6' fill='%23fff' opacity='0.41'/%3E%3Ccircle cx='1587' cy='779' r='1' fill='%23ffc83d' opacity='0.48'/%3E%3Ccircle cx='728' cy='529' r='1' fill='%23fff' opacity='0.63'/%3E%3Ccircle cx='1322' cy='424' r='0.9' fill='%23fff' opacity='0.82'/%3E%3Ccircle cx='1341' cy='723' r='0.9' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='942' cy='890' r='0.75' fill='%23fff' opacity='0.64'/%3E%3Ccircle cx='978' cy='338' r='0.75' fill='%23ffc83d' opacity='0.58'/%3E%3Ccircle cx='358' cy='524' r='0.6' fill='%23fff' opacity='0.91'/%3E%3Ccircle cx='80' cy='139' r='0.75' fill='%23fff' opacity='0.64'/%3E%3Ccircle cx='607' cy='301' r='1' fill='%23fff' opacity='0.38'/%3E%3Ccircle cx='275' cy='378' r='1.07538' fill='%23fff' opacity='0.48'/%3E%3Ccircle cx='1357' cy='91' r='0.9' fill='%23ffc83d' opacity='0.57'/%3E%3Ccircle cx='1000' cy='504' r='1' fill='%23fff' opacity='0.7'/%3E%3Ccircle cx='1341' cy='602' r='1' fill='%23fff' opacity='0.74'/%3E%3Ccircle cx='1336' cy='638' r='0.9' fill='%23fff' opacity='0.45'/%3E%3Ccircle cx='1009' cy='181' r='0.5' fill='%23fff' opacity='0.37'/%3E%3Ccircle cx='1502' cy='649' r='0.5' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='1214' cy='500' r='0.9' fill='%23fff' opacity='0.85'/%3E%3Ccircle cx='586' cy='681' r='0.5' fill='%23fff' opacity='0.73'/%3E%3Ccircle cx='645' cy='555' r='0.75' fill='%23ffc83d' opacity='0.89'/%3E%3Ccircle cx='367' cy='48' r='0.5' fill='%23fff' opacity='0.7'/%3E%3Ccircle cx='553' cy='830' r='0.75' fill='%23ffc83d' opacity='0.65'/%3E%3Ccircle cx='83' cy='415' r='1' fill='%23fff' opacity='0.48'/%3E%3Ccircle cx='1150' cy='599' r='1.25' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='1572' cy='834' r='1.00695' fill='%23fff' opacity='0.75'/%3E%3Ccircle cx='227' cy='468' r='0.6' fill='%23fff' opacity='0.76'/%3E%3Ccircle cx='611' cy='534' r='1' fill='%23ffc83d' opacity='0.5'/%3E%3Ccircle cx='439' cy='823' r='0.9' fill='%23fff' opacity='0.79'/%3E%3Ccircle cx='613' cy='850' r='0.9' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='1526' cy='515' r='0.9' fill='%23fff' opacity='0.52'/%3E%3Ccircle cx='911' cy='412' r='0.75' fill='%23fff' opacity='0.51'/%3E%3Ccircle cx='616' cy='40' r='1.07171' fill='%23fff' opacity='0.35'/%3E%3Ccircle cx='1211' cy='115' r='0.5' fill='%23fff' opacity='0.36'/%3E%3Ccircle cx='655' cy='117' r='1' fill='%23fff' opacity='0.84'/%3E%3Ccircle cx='288' cy='521' r='1.22288' fill='%23fff' opacity='0.61'/%3E%3Ccircle cx='1478' cy='820' r='0.9' fill='%23ffc83d' opacity='0.65'/%3E%3Ccircle cx='1446' cy='68' r='1.21972' fill='%23fff' opacity='0.84'/%3E%3Ccircle cx='632' cy='320' r='0.5' fill='%23fff' opacity='0.39'/%3E%3Ccircle cx='391' cy='879' r='0.9' fill='%23fff' opacity='0.54'/%3E%3Ccircle cx='420' cy='284' r='1.25' fill='%23fff' opacity='0.54'/%3E%3Ccircle cx='708' cy='101' r='0.75' fill='%23fff' opacity='0.76'/%3E%3Ccircle cx='1156' cy='379' r='1.09839' fill='%23ffc83d' opacity='0.42'/%3E%3Ccircle cx='759' cy='560' r='0.6' fill='%23fff' opacity='0.64'/%3E%3Ccircle cx='0' cy='784' r='0.5' fill='%23fff' opacity='0.61'/%3E%3Ccircle cx='1353' cy='242' r='1.22567' fill='%23fff' opacity='0.37'/%3E%3Ccircle cx='1020' cy='416' r='0.75' fill='%23fff' opacity='0.51'/%3E%3Ccircle cx='8' cy='62' r='1.02462' fill='%23fff' opacity='0.67'/%3E%3Ccircle cx='1317' cy='548' r='0.6' fill='%23fff' opacity='0.91'/%3E%3Ccircle cx='1369' cy='308' r='1' fill='%23fff' opacity='0.72'/%3E%3Ccircle cx='845' cy='635' r='1' fill='%23fff' opacity='0.51'/%3E%3Ccircle cx='1274' cy='523' r='0.5' fill='%23fff' opacity='0.74'/%3E%3Ccircle cx='766' cy='184' r='0.75' fill='%23fff' opacity='0.89'/%3E%3Ccircle cx='1142' cy='96' r='1' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='810' cy='347' r='0.9' fill='%23fff' opacity='0.67'/%3E%3Ccircle cx='834' cy='61' r='1.02831' fill='%23ffc83d' opacity='0.84'/%3E%3Ccircle cx='716' cy='106' r='1.02751' fill='%23fff' opacity='0.94'/%3E%3Ccircle cx='327' cy='854' r='0.75' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='820' cy='624' r='0.75' fill='%23fff' opacity='0.77'/%3E%3Ccircle cx='127' cy='11' r='0.6' fill='%23fff' opacity='0.51'/%3E%3Ccircle cx='1146' cy='676' r='0.9' fill='%23fff' opacity='0.39'/%3E%3Ccircle cx='1378' cy='885' r='1.25' fill='%23fff' opacity='0.47'/%3E%3Ccircle cx='875' cy='462' r='1.25' fill='%23ffc83d' opacity='0.39'/%3E%3Ccircle cx='226' cy='447' r='1.25' fill='%23fff' opacity='0.42'/%3E%3Ccircle cx='520' cy='195' r='0.75' fill='%23ffc83d' opacity='0.92'/%3E%3Ccircle cx='1295' cy='187' r='0.75' fill='%23fff' opacity='0.64'/%3E%3Ccircle cx='1374' cy='655' r='0.75' fill='%23fff' opacity='0.58'/%3E%3Ccircle cx='1579' cy='43' r='0.6' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='680' cy='500' r='0.9' fill='%23ffc83d' opacity='0.43'/%3E%3Ccircle cx='952' cy='279' r='0.6' fill='%23fff' opacity='0.52'/%3E%3Ccircle cx='788' cy='422' r='0.9' fill='%23ffc83d' opacity='0.49'/%3E%3Ccircle cx='1015' cy='574' r='0.75' fill='%23fff' opacity='0.95'/%3E%3Ccircle cx='993' cy='674' r='0.5' fill='%23fff' opacity='0.52'/%3E%3Ccircle cx='430' cy='415' r='0.5' fill='%23fff' opacity='0.36'/%3E%3Ccircle cx='1263' cy='843' r='0.9' fill='%23fff' opacity='0.48'/%3E%3Ccircle cx='1030' cy='760' r='1.19734' fill='%23fff' opacity='0.39'/%3E%3Ccircle cx='840' cy='892' r='1.04873' fill='%23fff' opacity='0.53'/%3E%3Ccircle cx='9' cy='447' r='0.75' fill='%23ffc83d' opacity='0.41'/%3E%3Ccircle cx='341' cy='111' r='1' fill='%23fff' opacity='0.48'/%3E%3Ccircle cx='321' cy='487' r='0.75' fill='%23ffc83d' opacity='0.76'/%3E%3Ccircle cx='66' cy='90' r='0.5' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='318' cy='789' r='1' fill='%23fff' opacity='0.43'/%3E%3Ccircle cx='385' cy='849' r='0.75' fill='%23fff' opacity='0.73'/%3E%3Ccircle cx='649' cy='834' r='1.25' fill='%23fff' opacity='0.49'/%3E%3Ccircle cx='27' cy='805' r='0.6' fill='%23fff' opacity='0.83'/%3E%3Ccircle cx='324' cy='200' r='0.75' fill='%23fff' opacity='0.64'/%3E%3Ccircle cx='90' cy='745' r='0.75' fill='%23fff' opacity='0.83'/%3E%3Ccircle cx='164' cy='629' r='1.25' fill='%23fff' opacity='0.58'/%3E%3Ccircle cx='1515' cy='686' r='0.9' fill='%23fff' opacity='0.54'/%3E%3Ccircle cx='812' cy='52' r='1' fill='%23fff' opacity='0.81'/%3E%3Ccircle cx='483' cy='288' r='0.9' fill='%23ffc83d' opacity='0.59'/%3E%3Ccircle cx='220' cy='744' r='0.5' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='1566' cy='599' r='0.6' fill='%23fff' opacity='0.53'/%3E%3Ccircle cx='1583' cy='76' r='1' fill='%23fff' opacity='0.64'/%3E%3Ccircle cx='1355' cy='848' r='0.75' fill='%23fff' opacity='0.86'/%3E%3Ccircle cx='944' cy='54' r='0.9' fill='%23fff' opacity='0.74'/%3E%3Ccircle cx='881' cy='130' r='1.02709' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='1258' cy='480' r='1.18527' fill='%23fff' opacity='0.41'/%3E%3Ccircle cx='136' cy='394' r='0.75' fill='%23fff' opacity='0.67'/%3E%3Ccircle cx='0' cy='669' r='0.6' fill='%23fff' opacity='0.62'/%3E%3Ccircle cx='656' cy='876' r='0.9' fill='%23fff' opacity='0.71'/%3E%3Ccircle cx='1544' cy='767' r='1.21417' fill='%23ffc83d' opacity='0.52'/%3E%3Ccircle cx='1267' cy='171' r='0.75' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='1091' cy='499' r='0.9' fill='%23fff' opacity='0.37'/%3E%3Ccircle cx='1015' cy='788' r='1.25' fill='%23fff' opacity='0.58'/%3E%3Ccircle cx='1214' cy='857' r='0.6' fill='%23ffc83d' opacity='0.64'/%3E%3Ccircle cx='1387' cy='270' r='0.75' fill='%23fff' opacity='0.74'/%3E%3Ccircle cx='1089' cy='740' r='0.6' fill='%23fff' opacity='0.49'/%3E%3Ccircle cx='233' cy='894' r='1' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='805' cy='345' r='0.9' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='978' cy='244' r='0.5' fill='%23ffc83d' opacity='0.58'/%3E%3Ccircle cx='813' cy='843' r='1.25' fill='%23ffc83d' opacity='0.58'/%3E%3Ccircle cx='1539' cy='89' r='1.25' fill='%23fff' opacity='0.68'/%3E%3Ccircle cx='1055' cy='146' r='0.75' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='625' cy='77' r='1.22526' fill='%23fff' opacity='0.83'/%3E%3Ccircle cx='848' cy='311' r='0.5' fill='%23fff' opacity='0.59'/%3E%3Ccircle cx='880' cy='78' r='0.75' fill='%23fff' opacity='0.36'/%3E%3Ccircle cx='1090' cy='409' r='1.17978' fill='%23fff' opacity='0.91'/%3E%3Ccircle cx='227' cy='379' r='0.5' fill='%23fff' opacity='0.63'/%3E%3Ccircle cx='1069' cy='610' r='1.19339' fill='%23fff' opacity='0.7'/%3E%3Ccircle cx='413' cy='349' r='0.9' fill='%23fff' opacity='0.81'/%3E%3Ccircle cx='404' cy='683' r='0.75' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='1251' cy='354' r='0.75' fill='%23fff' opacity='0.74'/%3E%3Ccircle cx='1477' cy='159' r='1' fill='%23fff' opacity='0.91'/%3E%3Ccircle cx='1480' cy='429' r='1.25' fill='%23fff' opacity='0.91'/%3E%3Ccircle cx='1471' cy='822' r='0.5' fill='%23fff' opacity='0.78'/%3E%3Ccircle cx='509' cy='269' r='0.6' fill='%23fff' opacity='0.67'/%3E%3Ccircle cx='134' cy='887' r='0.5' fill='%23fff' opacity='0.76'/%3E%3Ccircle cx='1189' cy='94' r='0.5' fill='%23fff' opacity='0.78'/%3E%3C/svg%3E") 50% 0/1600px 900px repeat,var(--stage);color:#fff}
.ground-stage .lead{color:#E6E0FF}
.ground-stage .eyebrow{color:var(--yellow)}
/* Dark grounds: links are white and focus rings yellow, at low specificity so
   the white surface rules below win for anything inside a card. A card that
   is itself the link (a.guide, .related-links a) draws its ring on the dark
   ground, so it keeps the yellow ring. */
:where(.ground-stage,.ground-field:not(.mint,.yellow,.sky)) a:not(.key,.card,.guide,.family,.piece,.mode,.soon,.quick-answer,.article-callout,.related-links a,.chapters span a,.seven span a,.closing .events span a){color:#fff}
:where(.ground-stage,.ground-field:not(.mint,.yellow,.sky)) :focus-visible{outline-color:var(--yellow)}
.ground-field:is(.mint,.sky) :focus-visible{outline-color:var(--ink)}
.ground-paper{background:var(--paper);color:var(--ink)}
.ground-field{background:var(--action);color:#fff}
.ground-field .lead,.ground-field .eyebrow{color:inherit}
.ground-field.mint{background:var(--mint)}
.ground-field.yellow{background:var(--yellow)}
.ground-field.sky{background:var(--sky)}
.ground-field.mint,.ground-field.yellow,.ground-field.sky{color:var(--ink)}
.ground-paper .accent,.ground-field.mint .accent,.ground-field.yellow .accent,.ground-field.sky .accent{color:inherit;background:linear-gradient(transparent 58%,var(--yellow) 58% 92%,transparent 92%)}
.ground-field.yellow .accent{background:linear-gradient(transparent 58%,#fff 58% 92%,transparent 92%)}
/* White surfaces carry their own ink on any ground, so a card on the stage
   never inherits white text, white links or a yellow focus ring. */
:where(.ground-stage,.ground-field) :is(.card,.guide,.related-links a,.family,.piece,.mode,.soon,.faq details,.quick-answer,.article-callout),.card,.guide,.related-links a,.family,.piece,.mode,.soon,.faq details,.quick-answer,.article-callout,.chapters span,.seven span,.closing .events span{color:var(--ink)}
:where(.ground-stage,.ground-field) :is(.card,.guide,.related-links a,.family,.piece,.mode,.soon,.faq details,.quick-answer,.article-callout) a:not(.key){color:var(--violet-ink)}
:where(.ground-stage,.ground-field) :is(.card,.guide,.related-links a,.family,.piece,.mode,.soon,.faq details,.quick-answer,.article-callout) :is(h2,h3,h4,strong){color:var(--ink)}
:where(.ground-stage,.ground-field) :is(.card,.guide,.related-links a,.family,.piece,.mode,.soon,.faq details,.quick-answer,.article-callout) :is(.lead,.eyebrow){color:var(--ink-2)}
/* Only focusables inside a white surface keep the violet ring. */
:where(.ground-stage,.ground-field) :is(.card,.guide,.related-links a,.family,.piece,.mode,.soon,.faq details,.quick-answer,.article-callout) :focus-visible{outline-color:var(--violet)}
:is(.ground-stage,.ground-field) :is(.card,.family,.piece,.mode,.soon,.faq details) .accent{color:inherit;background:linear-gradient(transparent 58%,var(--yellow) 58% 92%,transparent 92%)}
/* Curved edges: a field overlaps its neighbour by one arc and masks the corners
   away, so the neighbour shows through around a gentle curve. */
.curve-top,.curve-bottom{position:relative;z-index:1}
/* The neighbour under an arc gets the arc's height back as padding, so the
   curve never covers its content. */
:has(+ .curve-top){padding-bottom:calc(clamp(56px,8vw,112px) + var(--curve))}
.curve-bottom + *{padding-top:calc(clamp(56px,8vw,112px) + var(--curve))}
.curve-top{margin-top:calc(-1 * var(--curve));padding-top:calc(clamp(56px,8vw,112px) + var(--curve));-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64Q50 -64 100 64Z'/%3E%3C/svg%3E") top/100% var(--curve) no-repeat,linear-gradient(#000,#000) 0 var(--curve)/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64Q50 -64 100 64Z'/%3E%3C/svg%3E") top/100% var(--curve) no-repeat,linear-gradient(#000,#000) 0 var(--curve)/100% 100% no-repeat}
.curve-bottom{margin-bottom:calc(-1 * var(--curve));padding-bottom:calc(clamp(56px,8vw,112px) + var(--curve));-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q50 128 100 0Z'/%3E%3C/svg%3E") bottom/100% var(--curve) no-repeat,linear-gradient(#000,#000) 0 0/100% calc(100% - var(--curve)) no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q50 128 100 0Z'/%3E%3C/svg%3E") bottom/100% var(--curve) no-repeat,linear-gradient(#000,#000) 0 0/100% calc(100% - var(--curve)) no-repeat}
.curve-top.curve-bottom{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64Q50 -64 100 64Z'/%3E%3C/svg%3E") top/100% var(--curve) no-repeat,linear-gradient(#000,#000) 0 var(--curve)/100% calc(100% - 2 * var(--curve)) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q50 128 100 0Z'/%3E%3C/svg%3E") bottom/100% var(--curve) no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64Q50 -64 100 64Z'/%3E%3C/svg%3E") top/100% var(--curve) no-repeat,linear-gradient(#000,#000) 0 var(--curve)/100% calc(100% - 2 * var(--curve)) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q50 128 100 0Z'/%3E%3C/svg%3E") bottom/100% var(--curve) no-repeat}

/* Fan: three phones, the outer two tilted, spreading apart on hover. */
.fan{display:flex;justify-content:center;align-items:flex-end;padding:24px 0}
.fan .phone{width:min(260px,36vw);flex:none;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.fan .phone:nth-child(1){transform:translateX(28%) rotate(-8deg);z-index:1}
.fan .phone:nth-child(2){transform:translateY(-4%);z-index:2}
.fan .phone:nth-child(3){transform:translateX(-28%) rotate(8deg);z-index:1}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .fan:hover .phone:nth-child(1){transform:translateX(8%) rotate(-10deg)}
  .fan:hover .phone:nth-child(2){transform:translateY(-8%)}
  .fan:hover .phone:nth-child(3){transform:translateX(-8%) rotate(10deg)}
}

/* Motion: entrances on scroll, transform and opacity only. */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .6s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
.no-js .reveal{opacity:1;transform:none}
.hero .cast,.hero .phone{animation:rise .8s cubic-bezier(.2,.7,.2,1) both}
.hero .cast.tock{animation-delay:.15s}.hero .cast.swell{animation-delay:.3s}.hero .cast.note{animation-delay:.4s}.hero .cast.hold{animation-delay:.5s}
@keyframes rise{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .reveal{opacity:1;transform:none}
}
.art .room-host{position:static;width:min(260px,60%)}
.split h2+.lead,.maestro h2+.lead{margin-top:16px}



/* Homepage sections on their grounds. */
.closing.ground-stage{color:#fff}
.closing .sound-credit{margin-top:22px}
.ground-field :is(.facts span,.small-note,.lead){color:var(--ink)}
.ground-field .facts li>i{background:#fff}
.ground-field .chapters span{border-color:var(--ink)}
.ground-stage .small-note{color:#C9C0F0}
.ground-stage h3{color:#fff}
.learn-key,.plans-key{margin-top:28px}
.feedback-top{align-items:center}
.feedback-top .lead+.lead{margin-top:14px}
.feedback-top h2+.lead{margin-top:18px}

/* Feedback: the marked notes lifted out of the page, then the phones. */
.notes-stage{display:grid;place-items:center;padding:12px 0}
.notes-card{margin:0;padding:14px;max-width:440px;transform:rotate(2deg);box-shadow:0 6px 0 var(--ink),0 30px 60px -30px rgba(32,25,54,.5)}
.notes-card img{border-radius:12px;border:1.5px solid var(--line)}
.notes-card figcaption{margin-top:12px;font:800 18px/1.25 var(--font-display);color:var(--ink)}
.fan-stage{margin-top:clamp(24px,4vw,48px)}
.phone.land{aspect-ratio:852/393;border-radius:32px}
.phone.land::before{top:50%;left:10px;width:22px;height:80px;transform:translateY(-50%)}
.phone.land img{object-position:center}
.fan.wide{align-items:center;padding:32px 0}
.fan.wide .phone.land{width:min(540px,40vw)}
.fan.wide .phone:not(.land){width:min(170px,14vw)}
.fan.wide .phone:nth-child(1){transform:translateX(14%) rotate(-6deg);z-index:1}
.fan.wide .phone:nth-child(2){transform:translateY(-4%);z-index:2}
.fan.wide .phone:nth-child(3){transform:translateX(-18%) rotate(7deg);z-index:1}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .fan.wide:hover .phone:nth-child(1){transform:translateX(4%) rotate(-8deg)}
  .fan.wide:hover .phone:nth-child(2){transform:translateY(-7%)}
  .fan.wide:hover .phone:nth-child(3){transform:translateX(-6%) rotate(9deg)}
}
@media (max-width:760px){
  .fan.wide{flex-direction:column;align-items:center;padding:8px 0}
  .fan.wide .phone.land{width:min(420px,92%)}
  .fan.wide .phone:nth-child(1){transform:rotate(-3deg) translateX(-4%);z-index:1}
  .fan.wide .phone:nth-child(2){transform:rotate(2deg) translateX(3%);margin-top:-14%;z-index:2}
  .fan.wide .phone:nth-child(3){display:none}
}

/* Plans: four steps, coral edged because a machine writes them. */
.steps{list-style:none;margin:clamp(32px,5vw,56px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;counter-reset:none}
.steps .card.machine{border-color:var(--coral);box-shadow:0 4px 0 var(--coral);padding:22px}
.steps b{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--coral-soft);color:var(--coral-ink);font:800 20px/1 var(--font-display);margin-bottom:14px}
.steps h3{font-size:19px;margin-bottom:8px}
.steps p{font-size:15px}
.steps li:nth-child(2){transform:translateY(12px)}
.steps li:nth-child(3){transform:translateY(24px)}
.steps li:nth-child(4){transform:translateY(36px)}
.ground-stage .steps+.small-note{margin-top:60px}
.plans-art .cast.side{width:min(210px,44%);right:-4%;bottom:4%}
@media (max-width:1000px){.steps{grid-template-columns:1fr 1fr}.steps li:nth-child(n){transform:none}.ground-stage .steps+.small-note{margin-top:24px}}
@media (max-width:560px){.steps{grid-template-columns:1fr}}

/* Games: four bold tiles, each with its host. */
.games .family{position:relative;overflow:hidden;border:2px solid var(--ink);box-shadow:0 4px 0 var(--ink);padding:22px 20px 132px}
.family.pulse{background:var(--sky-soft)}
.family.echo{background:var(--coral-soft)}
.family.read{background:var(--mint-soft)}
.family.hands{background:var(--yellow-soft)}
.family .host{position:absolute;right:-8px;bottom:-14px;height:132px;width:auto;filter:drop-shadow(0 8px 10px rgba(32,25,54,.2))}
.games-note{flex-wrap:wrap;justify-content:center;text-align:left}
.games-note span{max-width:56ch}
.games-note .key{flex:none}

/* Music Room shelf on the stage: ten pieces, the room's own cards. */
.shelf-title{margin-top:clamp(28px,4vw,48px)}
.shelf{grid-template-columns:repeat(5,1fr);margin-top:18px}
.piece{color:var(--ink)}
.piece b{padding-right:4px}
@media (max-width:1000px){.shelf{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.shelf{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:64%;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px;margin-right:calc(-1 * var(--gutter));padding-right:var(--gutter)}.shelf .piece{scroll-snap-align:start}}

/* Maestro on paper: its own deep card, gold on purple as in the app. */
.maestro{border-radius:36px;padding:clamp(24px,5vw,56px);box-shadow:0 6px 0 var(--ink)}
.maestro .key.gold{margin-top:20px}
.maestro h2 .accent{color:var(--gold);background:none}
#coming{margin-top:clamp(56px,8vw,96px)}
.h2-small{font-size:clamp(32px,4vw,52px)}

/* Keyboard, guides and questions on the yellow field. */
#guides{margin-top:clamp(40px,6vw,72px)}
.sub-title{font-size:clamp(24px,3vw,32px);margin-bottom:4px}
.ground-field .guide{border-color:var(--ink);box-shadow:var(--key-shadow)}
#questions{margin-top:clamp(56px,8vw,96px)}
.faq-head{margin-bottom:0}
.ground-field .faq details{border-color:var(--ink)}
.notes-card img{width:100%;height:auto;margin:0}
.split h2{font-size:clamp(36px,4.4vw,60px)}
@media (min-width:861px){#feedback .split,#music-room .split{grid-template-columns:1.25fr .75fr}}
@media (max-width:760px){.phone.land{border-radius:22px;border-width:2px}.phone.land::before{left:6px;width:12px;height:44px}}
@media (min-width:861px){#plans .split{grid-template-columns:1.25fr .75fr}}
.piece{min-height:0;padding:40px 16px 16px;gap:4px}
.piece b{margin-top:0;font-size:16px}
.piece em{left:14px;right:auto;top:14px}

/* Hero on the stage: the headline across the top, a piano you can play and
   the App Store key on the left, the cast on the right, hanging over the
   hero's lower edge into the next section. */
.hero.ground-stage{padding:clamp(32px,6vw,72px) 0 clamp(36px,5vw,56px);overflow:visible;z-index:2}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;text-align:center}
/* On a phone the keys come straight after the headline, the note after them. */
.hero-head{display:contents}
.hero-head h1{margin:0 auto;order:1}.hero-head .eyebrow{order:0}
.hero-play{order:2;margin-top:clamp(20px,3vw,32px)}
.hero.ground-stage .hero-head .hero-note{order:3;margin-top:28px}.hero-head .hero-strip{order:4}.hero-head .inside-link{order:5;justify-self:center}.hero-art{order:6}
.tap-hint{margin:0 0 22px;font:500 15px/1.3 var(--font-text);color:#E6E0FF}
.hero-actions{justify-content:center;margin-top:24px}
.hero.ground-stage .hero-note{margin:0 auto;max-width:52ch;color:#E6E0FF}.hero.ground-stage .hero-note b{color:#fff}
.hero.ground-stage .textlink{color:#fff;margin-top:10px}
.hero-strip{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;font-size:15px;color:#fff}
.hero-strip li{display:inline-flex;align-items:center;gap:8px}
.hero-strip li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--mint)}
/* Phone: the four items stack on one left edge, the block centred. */
@media (max-width:640px){.hero-strip{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:10px;width:max-content;max-width:100%;margin-left:auto;margin-right:auto}}
.hero-art{display:block;margin:clamp(16px,4vw,32px) calc(-1 * var(--gutter)) 0;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 86%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 86%,transparent)}
.hero-art img{display:block;width:100%;height:auto}

/* The keys read as a piano: a dark key bed with its rail, faint letters at
   the foot of the white keys, and a press that sinks and lights. */
.hero-keys{position:relative;display:flex;width:100%;max-width:640px;margin:16px auto 0;height:clamp(120px,22vw,170px);touch-action:manipulation;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 18px 18px rgba(5,2,20,.55))}
.hero-keys::before{content:"";position:absolute;left:-12px;right:-12px;top:-16px;bottom:-10px;border-radius:14px 14px 12px 12px;background:linear-gradient(#2B1C70,#0C0628 22px);box-shadow:inset 0 1px 0 rgba(255,255,255,.14);z-index:-1}
.hero-keys::after{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:linear-gradient(rgba(5,2,20,.55),transparent);z-index:2;pointer-events:none}
.key-white,.key-black{font:500 15px/1 var(--font-text);border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .08s ease}
.key-white{flex:1 1 0;position:relative;background:linear-gradient(#fff 80%,#ECE8F6);color:var(--ink-3);border:1.5px solid #0C0628;border-top:0;border-radius:0 0 10px 10px;margin-left:-1.5px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:12px;transform-origin:50% 0;box-shadow:inset 0 -6px 0 #DCD6EC}
.key-white:first-child{margin-left:0}
.key-black{position:absolute;top:0;width:clamp(24px,4.6vw,32px);height:62%;background:linear-gradient(#3A2E66,#140C33 70%);color:#fff;border-radius:0 0 7px 7px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;z-index:1;transform-origin:50% 0;box-shadow:inset 0 -5px 0 #05021A,0 3px 4px rgba(5,2,20,.45)}
.key-black:nth-child(9){left:calc(100%/8*1);translate:-50% 0}.key-black:nth-child(10){left:calc(100%/8*2);translate:-50% 0}.key-black:nth-child(11){left:calc(100%/8*4);translate:-50% 0}.key-black:nth-child(12){left:calc(100%/8*5);translate:-50% 0}.key-black:nth-child(13){left:calc(100%/8*6);translate:-50% 0}
.key-black::before{content:"";position:absolute;inset:0 -6px}
.key-white::after,.key-black::after{content:"";position:absolute;inset:0;border-radius:inherit;opacity:0;pointer-events:none;transition:opacity .08s ease}
.key-white::after{background:linear-gradient(var(--yellow-soft),var(--yellow));box-shadow:inset 0 3px 6px rgba(138,94,0,.35)}
.key-black::after{background:linear-gradient(var(--deep-2),var(--action));box-shadow:inset 0 -2px 0 #05021A}
.key-white span,.key-black span{position:relative;z-index:1}
.key-white span{opacity:.5;font-size:13px;transition:opacity .08s ease;pointer-events:none}
.key-black span{opacity:0;font-size:12px;transition:opacity .08s ease;pointer-events:none}
.key-white.down,.key-white:active{color:var(--ink);transform:translateY(3px)}
.key-black.down,.key-black:active{transform:translateY(3px)}
.key-white.down::after,.key-white:active::after,.key-black.down::after,.key-black:active::after{opacity:1}
.key-white.down span,.key-black.down span,.key-white:focus-visible span,.key-black:focus-visible span{opacity:1}
.hero-keys :focus-visible{outline:3px solid var(--yellow);outline-offset:3px;z-index:3}
.sound-credit{margin-top:10px;color:#C9C0F0;font-size:13px}
.silent-hint{margin-top:18px;color:#E6E0FF;font-size:15px}
@media (prefers-reduced-motion:reduce){.key-white,.key-black,.key-white::after,.key-black::after{transition:none}.key-white.down,.key-black.down,.key-white:active,.key-black:active{transform:none}}

/* Desktop only: a QR beside the App Store key, an ink card the height of the
   key with only the code on white. */
.get-on-desktop{display:none}
.not-ios{margin:12px 0 0;color:#E6E0FF;font-size:15px}
.hero-cta{min-height:64px;padding:0 24px;font-size:18px}
@media (hover:hover) and (min-width:900px){
  .get-on-desktop{display:flex;align-items:center;gap:12px;height:64px;padding:4px 16px 4px 4px;border-radius:16px;background:var(--ink);border:2px solid rgba(255,255,255,.22);color:#fff;max-width:232px;box-sizing:border-box}
  .get-on-desktop .qr-tile{display:block;flex:none;background:#fff;border-radius:11px;padding:2px}
  .get-on-desktop img{display:block;width:50px;height:50px}
  .get-on-desktop p{margin:0;font-size:13px;line-height:1.35;color:#fff;text-align:left}
}

/* From a tablet landscape up: the headline across, the keys and the key on
   the left, the cast on the right in a framed card inside the column. */
@media (min-width:1024px){
  .hero.ground-stage{padding-top:clamp(40px,4vw,56px);padding-bottom:clamp(40px,4vw,56px)}
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"head head" "play art";column-gap:clamp(32px,4vw,56px);text-align:left;align-items:start}
  .hero-head{display:block;grid-area:head}.hero-play{grid-area:play;margin-top:clamp(24px,2.6vw,36px)}.hero-art{grid-area:art}
  .hero.ground-stage .hero-head .hero-note{margin-top:28px}
  .get-on-desktop{min-width:196px}
  .hero-cta{flex:none;white-space:nowrap}
  .inside-link{display:none}
  .hero.ground-stage h1{font-size:clamp(64px,6.6vw,104px);margin:0}
  .hero-keys{margin-left:12px;margin-right:12px;max-width:none;width:auto;height:clamp(140px,12vw,170px)}
  .hero-actions{justify-content:flex-start}
  .hero.ground-stage .hero-note{margin-left:0;margin-right:0;max-width:none}
  .hero-actions{flex-wrap:nowrap;gap:12px}
  .get-on-desktop{flex:0 1 232px;min-width:0}
  .tap-hint{margin-bottom:14px}
  .hero-strip{justify-content:flex-start;gap:6px 18px;font-size:14px}
  .hero-art{position:relative;margin:clamp(24px,2.6vw,36px) 0 0;align-self:start;-webkit-mask-image:none;mask-image:none;border-radius:28px;overflow:hidden;border:3px solid var(--ink);box-shadow:0 8px 0 var(--ink),0 40px 80px -30px rgba(5,2,20,.7);aspect-ratio:1.85}
  .hero-art img{width:100%;height:100%;object-fit:cover;object-position:50% 60%}
}
@media (min-width:1024px) and (max-width:1199px){.hero-cta{padding:0 20px;font-size:17px}.get-on-desktop p{font-size:12px}.hero-actions{flex-wrap:wrap}.get-on-desktop{flex:0 0 220px}}
.ground-field.yellow .accent{background:none;text-decoration:underline;text-decoration-color:var(--violet);text-decoration-thickness:.09em;text-underline-offset:.1em;text-decoration-skip-ink:none}

/* Paragraphs that carry the story read at body size. */
.body-note{margin-top:24px;font-size:17px;color:var(--ink-2);max-width:68ch}
.ground-stage .body-note{color:#E6E0FF}
.ground-field .body-note{color:var(--ink)}
.ground-stage .steps+.body-note{margin-top:60px}
@media (max-width:1000px){.ground-stage .steps+.body-note{margin-top:24px}}

/* Coming to Maestro: a compact two column list. */
.roadmap{grid-template-columns:1fr 1fr;gap:0 clamp(24px,4vw,48px);margin-top:24px}
.roadmap .soon{grid-template-columns:44px 1fr;gap:2px 14px;padding:16px 0;background:none;border:0;border-top:1.5px solid var(--line);border-radius:0;box-shadow:none}
.roadmap .soon .glyph{grid-column:1;grid-row:1/4}
.roadmap .soon>:not(.glyph){grid-column:2}
.roadmap .soon em{background:none;padding:0;color:var(--violet-ink);font-size:10px}
.roadmap .soon h3{font-size:18px}
@media (max-width:640px){.roadmap{grid-template-columns:1fr}}

/* Support, privacy and the 404: a short stage band with one of the cast. */
.page-band{padding:clamp(28px,5vw,56px) 0 0;overflow:hidden}
.page-band .wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.page-band .wrap>div{padding-bottom:clamp(28px,4vw,48px);min-width:0}
.page-band h1{font-size:clamp(34px,6vw,72px);overflow-wrap:break-word}
.page-band .dek{margin-top:14px;font-size:19px;color:#E6E0FF;max-width:48ch}
.band-cast{width:auto;height:clamp(110px,16vw,190px);flex:0 1 auto;min-width:0;max-width:36%;object-fit:contain;object-position:right bottom;filter:drop-shadow(0 12px 18px rgba(5,2,20,.45))}
.page-body{padding:clamp(32px,5vw,56px) var(--gutter) 64px}
body[data-page-type="404"] .page-body .guide-content{margin:0}
.page-band + .article-layout{padding-top:clamp(32px,5vw,56px)}
.tag{display:inline-block;font:700 12px/1 var(--font-text);letter-spacing:.1em;text-transform:uppercase;padding:6px 10px;border-radius:999px;margin-right:6px;vertical-align:2px}
.tag.free{background:var(--mint-soft);color:var(--mint-ink)}
.tag.maestro{background:var(--deep);color:var(--gold)}

/* Music Room pages (piece, composer, collection) */
.band-cta{margin-top:20px}
.composer-art{margin:0;flex:none;max-width:min(256px,40%);padding-bottom:clamp(28px,4vw,48px)}
.composer-art img{width:100%;height:auto;border-radius:20px;border:2px solid #fff;display:block}
.composer-art figcaption{font-size:13px;color:#E6E0FF;margin-top:8px}
.guide-content .facts{display:grid;grid-template-columns:max-content 1fr;gap:8px 24px;margin:0 0 32px}
.guide-content .facts dt{color:var(--ink);font-weight:700}
.guide-content .facts dd{margin:0;color:var(--ink-2);overflow-wrap:anywhere}
.guide-content .sources,.guide-content .ladder{margin-bottom:8px}
.guide-content .quick-answer:last-child{margin-top:40px}
.piece-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.piece-list .card h3{margin-bottom:6px}.piece-list .card p{margin:0}
@media (max-width:640px){.page-band .wrap:has(.composer-art){flex-wrap:wrap}.composer-art{max-width:200px;padding-bottom:28px}}
.piece-body{padding-top:clamp(32px,5vw,56px);padding-bottom:64px}
.piece-body .guide-content{max-width:none}

/* Music Room: chips, tiles, listening cards, practise panel */
.chips{list-style:none;padding:0;margin:0 0 20px;display:flex;flex-wrap:wrap;gap:8px}
.tile .chips{margin:10px 0 0}
.chip{display:inline-block;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:5px 12px;font-size:14px;color:var(--ink-2);margin:0}
.guide-content ul.chips li{margin:0}
.chips.on-stage .chip,.chips.on-stage li{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);color:#fff;border-radius:18px}
.tiles{list-style:none;padding:0;margin:0 0 24px;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.guide-content .tiles li{margin:0}
.tile{position:relative;display:flex;flex-direction:column;background:#fff;border:2px solid var(--line);border-radius:var(--radius);padding:18px 18px 16px}
.tile .num,.listen .num{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--violet);color:#fff;font:700 14px/1 var(--font-text);margin-bottom:10px}
.tile-title{color:var(--ink);font-weight:700;font-size:17px;text-decoration:none}
.tile-title:hover{text-decoration:underline}
.tile-sub{font-size:14px;color:var(--ink-2);margin-top:4px}
.listen{list-style:none;padding:0;display:grid;gap:14px;counter-reset:l}
.guide-content .listen li{margin:0}
.listen .card{box-shadow:none;border-width:2px;padding:20px;border-radius:var(--radius)}
.listen .card h3{margin:0 0 6px;font-size:18px}.listen .card p{margin:0}
.about{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.sketch{margin:0;flex:none;width:128px}
.sketch img{width:128px;height:128px;border-radius:20px;border:2px solid var(--line);object-fit:cover;display:block}
.sketch figcaption{font-size:13px;color:var(--ink-2);margin-top:6px}
.about .facts{flex:1;min-width:220px;margin:0}
.toc ul{list-style:none;padding:0;margin:0;display:grid;gap:4px}.toc a{color:var(--ink);text-decoration:none;padding:8px 0;font-size:15px;display:block}
.article-layout .toc{position:sticky;top:88px;align-self:start}
@media (max-width:860px){.article-layout .toc{position:static}}
.practise-panel{padding:clamp(40px,6vw,72px) 0;overflow:hidden}
.practise-panel .wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.practise-panel h2{font-size:clamp(28px,4vw,44px);max-width:20ch;margin-bottom:18px}
.practise-panel img{height:clamp(120px,18vw,220px);width:auto;flex:none}
@media (max-width:640px){.practise-panel img{display:none}}
.guide-content ul.chips,.guide-content ul.tiles,.guide-content ol.tiles,.guide-content ol.listen{padding:0}
.guide-content .sketch{display:block;width:128px;margin:0}
.guide-content .sketch img{width:128px;height:128px}
.guide-content .sketch figcaption{max-width:128px}

/* Music Room: shelves and the browse page */
[hidden]{display:none!important}
.filters{margin:0 0 24px}
.filter-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}
.filter-label{font:700 14px/1 var(--font-text);color:var(--ink);min-width:56px}
button.chip{font:inherit;font-size:14px;cursor:pointer;min-height:44px;padding:5px 14px}
button.chip:hover{border-color:var(--violet)}
button.chip[aria-pressed="true"]{background:var(--violet-ink);border-color:var(--violet-ink);color:#fff}
.filter-status{color:var(--ink-2);margin:8px 0 0}
.shelf-groups h3{margin:24px 0 10px}
.shelf-links{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px}
.guide-content .shelf-links{padding:0}.guide-content .shelf-links li{margin:0}
.shelf-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;background:#fff;border:2px solid var(--ink);border-radius:999px;box-shadow:0 3px 0 var(--ink);color:var(--ink);font-weight:600;font-size:15px;text-decoration:none}
.shelf-links a:hover{background:var(--violet);border-color:var(--violet);color:#fff}
.shelf-links a:focus-visible{outline:3px solid var(--violet);outline-offset:2px}
.panel-focus{max-width:52ch;margin:0 0 20px;color:#fff}

/* Music Room: phone folds, and the body carries the stage's bold cards */
.toc-fold{margin:0 0 24px;background:#fff;border:2px solid var(--ink);border-radius:var(--radius-s);box-shadow:var(--key-shadow);padding:0 18px}
.toc-fold summary,.filter-fold>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:48px;font-weight:500;color:var(--ink)}
.toc-fold summary::-webkit-details-marker,.filter-fold>summary::-webkit-details-marker{display:none}
.toc-fold summary::after,.filter-fold>summary::after{content:"+";font:700 22px/1 var(--font-display);color:var(--violet-ink)}
.toc-fold[open] summary::after,.filter-fold[open]>summary::after{transform:rotate(45deg)}
.toc-fold ul{list-style:none;margin:0;padding:0 0 10px}
.guide-content .toc-fold li{margin:0}
.toc-fold a{display:block;padding:10px 0;color:var(--violet-ink);text-decoration:none}
.filter-fold{margin:0 0 8px}
.filter-fold>summary{background:#fff;border:2px solid var(--ink);border-radius:999px;padding:0 20px;box-shadow:var(--key-shadow);margin-bottom:14px}
@media (max-width:899px){.article-layout{grid-template-columns:1fr}.article-layout .toc{display:none}}
@media (min-width:900px){
  .toc-fold{display:none}
  .filter-fold>summary{display:none}
  .filter-fold::details-content{content-visibility:visible;display:block}
}
.see-all{margin:8px 0 24px;font-weight:500}
.see-all a{color:var(--violet-ink)}
.piece-body .quick-answer,.article-layout .quick-answer,.article-layout .article-callout{border:2px solid var(--ink);box-shadow:var(--key-shadow)}
.listen .card{border-color:var(--ink);box-shadow:var(--key-shadow)}
#practice ol{list-style:none;counter-reset:s;padding:0;display:grid;gap:14px;margin:0 0 20px}
#practice ol li{counter-increment:s;position:relative;background:#fff;color:var(--ink);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:var(--key-shadow);padding:16px 18px 16px 62px;margin:0}
#practice ol li::before{content:counter(s);position:absolute;left:18px;top:16px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--violet);color:#fff;font:700 14px/1 var(--font-text)}
.article-layout .tile,.piece-body .tile{border-color:var(--ink);box-shadow:0 3px 0 var(--ink)}
/* Chord and scale pages (scripts/theory-pages.mjs). The keyboard sits on the stage, the staff on paper. */
.theory{padding-top:24px;padding-bottom:72px;max-width:860px}
.theory .quick-answer p:last-child{font-size:19px;color:var(--ink);margin:0}
.theory .hear{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 8px}
.theory .hear .silent-hint{margin:0;color:var(--ink-2)}
.no-js .hear{display:none}
.t-section{margin-top:40px}
.t-section h2{font-size:clamp(26px,3.4vw,36px);margin:0 0 14px}
.t-section>p{color:var(--ink-2);max-width:62ch;margin:0 0 14px}
.t-note{font-size:15px;color:var(--ink-2);margin-top:12px}
.t-stage{background:var(--stage);border-radius:var(--radius);padding:clamp(14px,3vw,24px);box-shadow:var(--shadow)}
.t-paper{background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);padding:clamp(10px,2vw,20px)}
.staff-svg.staff-chord{max-width:220px}
.keys-svg,.staff-svg{display:block;width:100%;height:auto;max-width:640px;margin:0 auto}
.kb-white{fill:#fff;stroke:#1F1747;stroke-width:1.5}
.kb-white.on{fill:var(--action)}.kb-white.root{fill:var(--yellow)}
.kb-black{fill:#120B34;stroke:#000;stroke-width:1}
.kb-black.on{fill:var(--action);stroke:#fff}.kb-black.root{fill:var(--yellow);stroke:#fff}
.kb-label{font:700 15px/1 var(--font-text);fill:#fff}
.kb-white.root+.kb-label{fill:var(--ink)}
.kb-black.root+.kb-label{fill:var(--ink)}
.kb-white:not(.on):not(.root)+.kb-label{fill:var(--ink)}
.staff-svg{color:var(--ink)}
.staff-line,.staff-ledger{stroke:var(--ink);stroke-width:1.2;fill:none}
.staff-clef,.staff-accidental{fill:var(--ink)}
.staff-note{fill:var(--action);stroke:none}
.staff-note.root{fill:var(--yellow);stroke:var(--ink);stroke-width:1.2}
.staff-name{font:700 12px/1 var(--font-text);fill:var(--ink-2)}
.inversions{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.inversions li{display:grid;grid-template-columns:150px 1fr;gap:4px 16px;align-items:baseline;background:#fff;border:1.5px solid var(--line);border-radius:var(--radius-s);padding:14px 18px}
.inversions strong{color:var(--ink);font-weight:500}
.inv-notes{font:800 22px/1.1 var(--font-display);color:var(--violet-ink);letter-spacing:.02em}
.inv-fing{grid-column:2;color:var(--ink-2);font-size:15px}
.fing-wrap{overflow-x:auto}
.fing{border-collapse:collapse;width:100%;max-width:560px;font-size:16px;text-align:center}
.fing th,.fing td{padding:10px 4px;border-bottom:1.5px solid var(--line);min-width:36px}
.fing thead th{font:800 15px/1 var(--font-display);color:var(--violet-ink)}
.fing tbody th{text-align:left;font-weight:500;color:var(--ink);padding-right:12px}
.fing td{font:700 18px/1 var(--font-display);color:var(--ink)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rel-static{background:var(--cream);border:2px dashed var(--line);border-radius:var(--radius);padding:20px;color:var(--ink)}
.t-cta{background:var(--violet-soft);border-radius:var(--radius);padding:24px;display:flex;gap:16px 24px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.t-cta p{color:var(--ink);max-width:44ch;margin:0}
.t-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.t-grid a{display:grid;gap:4px;background:#fff;border:2px solid var(--line);border-radius:var(--radius-s);padding:14px 16px;text-decoration:none;color:var(--ink)}
.t-grid a:hover{border-color:var(--violet)}
.t-grid span{color:var(--ink-2);font-size:14px}
.theory .faq{margin:0;max-width:none}
@media (max-width:640px){
  .inversions li{grid-template-columns:1fr}.inv-fing{grid-column:1}
  .t-grid{grid-template-columns:1fr 1fr}
}
.t-paper-chord{max-width:300px}

/* The web piano (/tools/piano/, public/js/piano.js). White keys stay 44 px or wider: a phone shows one octave filling the width (see layout() in piano.js). */
.piano-page{max-width:1100px}
.piano{background:var(--stage);border-radius:var(--radius);padding:clamp(16px,3vw,28px);box-shadow:var(--shadow);color:#fff;margin-top:24px}
.piano-readout{text-align:center;min-height:clamp(112px,18vw,132px);display:flex;flex-direction:column;justify-content:center;gap:8px;padding:4px 0 20px}
.piano-chord{margin:0;font:800 clamp(28px,5.4vw,52px)/1.1 var(--font-display);color:#fff;overflow-wrap:anywhere}
.piano:not(.has-chord) .piano-chord{color:#E6E0FF}
.piano.has-chord .piano-chord{color:var(--yellow)}
.piano-notes{margin:0;font:500 clamp(18px,2.4vw,22px)/1.3 var(--font-text);color:#E6E0FF;letter-spacing:.04em;white-space:pre-wrap}
.piano-keys{position:relative;display:block;height:clamp(150px,24vw,230px);margin-top:16px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;filter:drop-shadow(0 18px 18px rgba(5,2,20,.55))}
.piano-keys::before{content:"";position:absolute;left:-12px;right:-12px;top:-16px;bottom:-10px;border-radius:14px 14px 12px 12px;background:linear-gradient(#2B1C70,#0C0628 22px);box-shadow:inset 0 1px 0 rgba(255,255,255,.14);z-index:-1}
.pk-white,.pk-black{font:500 14px/1 var(--font-text);border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:none;transition:transform .08s ease}
.pk-white{position:absolute;top:0;bottom:0;width:calc(100% / var(--whites,14));background:linear-gradient(#fff 80%,#ECE8F6);color:var(--ink-3);border:1.5px solid #0C0628;border-top:0;border-radius:0 0 10px 10px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:12px;transform-origin:50% 0;box-shadow:inset 0 -6px 0 #DCD6EC}
.pk-black{position:absolute;top:0;height:62%;width:calc(100% / var(--whites,14) * .62);translate:-50% 0;background:linear-gradient(#3A2E66,#140C33 70%);color:#fff;border-radius:0 0 7px 7px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;z-index:1;transform-origin:50% 0;box-shadow:inset 0 -5px 0 #05021A,0 3px 4px rgba(5,2,20,.45)}
.pk-black::before{content:"";position:absolute;inset:0 -6px}
.pk-white::after,.pk-black::after{content:"";position:absolute;inset:0;border-radius:inherit;opacity:0;pointer-events:none;transition:opacity .08s ease}
.pk-white::after{background:linear-gradient(var(--yellow-soft),var(--yellow));box-shadow:inset 0 3px 6px rgba(138,94,0,.35)}
.pk-black::after{background:linear-gradient(var(--deep-2),var(--action));box-shadow:inset 0 -2px 0 #05021A}
.pk-white span,.pk-black span{position:relative;z-index:1;opacity:0;pointer-events:none;transition:opacity .08s ease}
.piano.names .pk-white span{opacity:.75}.piano.names .pk-black span{opacity:1}
.pk-white.down,.pk-black.down{transform:translateY(3px)}
.pk-white.down{color:var(--ink)}.pk-white.down span{opacity:1}
.pk-white.down::after,.pk-black.down::after{opacity:1}
.pk-white:focus-visible,.pk-black:focus-visible{outline:3px solid var(--yellow);outline-offset:-4px}
.piano-tools{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;margin-top:18px}
.piano-tools .key{background:#fff}
.piano-tools .key[aria-pressed="true"]{background:var(--yellow);border-color:var(--ink);color:var(--ink)}
.piano-tools .key[hidden]{display:none}
.piano .silent-hint{margin:14px 0 0;text-align:center}
.no-js .piano-keys,.no-js .piano-tools{display:none}
.piano-nojs{display:none;color:#E6E0FF;text-align:center;margin:0}.no-js .piano-nojs{display:block}
.piano-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.piano-map li{background:#fff;border:1.5px solid var(--line);border-radius:var(--radius-s);padding:16px 18px;color:var(--ink-2)}
.piano-map kbd{display:inline-block;min-width:1.7em;text-align:center;padding:3px 7px;border-radius:7px;border:1.5px solid var(--ink);background:var(--cream);color:var(--ink);font:700 14px/1.2 var(--font-text);box-shadow:0 2px 0 var(--ink)}
@media (max-width:599px){.piano{margin-inline:calc(-1 * var(--gutter));padding:16px 6px;border-radius:0}.piano-keys::before{left:-4px;right:-4px}}
.piano-range{flex:0 0 100%;order:-1;text-align:center;font:700 16px/1 var(--font-text);color:#E6E0FF}
@media (prefers-reduced-motion:reduce){.pk-white,.pk-black{transition:none}}

/* The metronome (/tools/metronome/, public/js/metronome.js). Reuses the piano panel; every control is 44 px or taller. */
.metronome{display:flex;flex-direction:column;align-items:stretch;gap:18px}
.mt-top{display:flex;align-items:flex-end;justify-content:center;gap:clamp(16px,4vw,40px)}
.mt-readout{text-align:center}
.mt-big{margin:0;font:800 clamp(64px,15vw,120px)/1 var(--font-display);color:var(--yellow);font-variant-numeric:tabular-nums}
.mt-unit{font:700 clamp(16px,2.4vw,22px)/1 var(--font-text);color:#E6E0FF;letter-spacing:.12em}
.mt-name{margin:8px 0 0;font:700 clamp(20px,3vw,28px)/1.2 var(--font-display);color:#fff}
.mt-tock{width:clamp(72px,16vw,120px);height:auto;transform-origin:50% 100%;will-change:transform}
.mt-beats{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0;padding:0;list-style:none}
.mt-beat{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font:700 17px/1 var(--font-text);color:#E6E0FF;background:#2B1C70;border:2px solid #4A3A9C}
.mt-beat.strong{border-color:var(--yellow)}
.mt-beat.medium{border-color:#B9A9FF}
.mt-beat.on{background:#fff;color:var(--stage);border-color:#fff}
.mt-beat.strong.on{background:var(--yellow);border-color:var(--yellow)}
.mt-note{margin:0;text-align:center;color:#E6E0FF}.mt-note[hidden]{display:none}
.mt-go{align-self:center;min-width:min(100%,260px);min-height:64px;font-size:22px;font-weight:700}
.mt-go[aria-pressed="true"]{background:var(--yellow);color:var(--ink)}
.mt-tempo{display:flex;align-items:center;gap:14px}
.mt-step{flex:none;width:52px;padding:0;font-size:26px;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mt-slider{flex:1;min-width:0;height:44px;accent-color:var(--yellow);cursor:pointer}
.mt-tools{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:flex-end}
.metronome .mt-tap{background:#fff;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.mt-field{display:flex;flex-direction:column;gap:6px;font:700 13px/1 var(--font-text);color:#E6E0FF;letter-spacing:.06em;text-transform:uppercase}
.mt-field select{min-height:44px;min-width:130px;padding:0 14px;border-radius:12px;border:2px solid var(--ink);background:#fff;color:var(--ink);font:500 17px/1 var(--font-text)}
.mt-keep{margin:0;text-align:center;color:#E6E0FF;font-size:15px}
.no-js .metronome>:not(.piano-nojs){display:none}
@media (max-width:599px){.mt-tools .key,.mt-field{flex:1 1 100%}.mt-field select{width:100%}}
@media (max-width:599px){.metronome.piano{padding:16px var(--gutter)}}
.mt-name[hidden]{display:none}

/* The circle of fifths (/tools/circle-of-fifths/, public/js/circle.js). A phone stacks the panel under the circle; the circle fills the width. */
.circle{display:grid;gap:24px;margin-top:24px;align-items:start}
.circle-stage{margin-top:0;padding:clamp(10px,2vw,20px)}
.cf-svg{display:block;width:100%;max-width:520px;margin:0 auto;height:auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.cf-key{cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.cf-out{fill:#fff;stroke:#1B0F4D;stroke-width:2}
.cf-in{fill:#E6E0FF;stroke:#1B0F4D;stroke-width:2}
.cf-key:hover .cf-out{fill:var(--yellow-soft)}.cf-key:hover .cf-in{fill:#F4F0FF}
.cf-key.on .cf-out{fill:var(--yellow)}.cf-key.on .cf-in{fill:var(--yellow-soft)}
.cf-key:focus-visible .cf-out,.cf-key:focus-visible .cf-in{stroke:var(--action);stroke-width:6;paint-order:stroke}
.cf-key:focus-visible{z-index:2}
.cf-major{font:800 26px/1 var(--font-display);fill:var(--ink);pointer-events:none}
.cf-minor{font:700 17px/1 var(--font-text);fill:var(--ink-2);pointer-events:none}
.cf-major.cf-wide{font-size:19px}.cf-minor.cf-wide{font-size:13px}
.cf-hub circle{fill:#2B1C70;stroke:#4A3A9C;stroke-width:2}
.cf-hub-title{font:800 30px/1 var(--font-display);fill:var(--yellow)}
.cf-hub-sub{font:700 14px/1 var(--font-text);fill:#E6E0FF}
.no-js .cf-svg,.no-js .cf-panel{display:none}
.cf-panel{background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);padding:clamp(16px,3vw,28px);min-width:0}
.cf-panel h3{margin:20px 0 10px;font-size:18px}
.cf-empty{margin:0;color:var(--ink-2)}
.cf-title{margin:0 0 6px;font-size:clamp(28px,4vw,40px)}
.cf-sentence{margin:0 0 16px;font:700 19px/1.35 var(--font-text);color:var(--ink)}
.cf-staff{padding:8px 12px;margin:0}
.cf-staff .staff-svg{max-width:min(100%,var(--staff-w,300px));margin:0}
.cf-also{margin:12px 0 0;color:var(--ink-2)}
.cf-chords{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.cf-chord{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:2px solid var(--ink);background:#fff;color:var(--ink);font:700 19px/1 var(--font-text);text-decoration:none}
.cf-chord b{font:700 13px/1 var(--font-text);color:var(--ink-2);letter-spacing:.06em}
.cf-sub{font:500 14px/1 var(--font-text);color:var(--ink-2)}
.cf-links{display:flex;flex-wrap:wrap;gap:6px 22px;margin:18px 0 0}
.cf-links a{display:inline-flex;align-items:center;min-height:44px}
.circle .hear{margin-top:12px}
.cf-hint{margin:12px 0 0;color:var(--ink-2)}
.cf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ks-wrap{overflow-x:auto}
.ks-table{width:100%;border-collapse:collapse;font-size:16px}
.ks-table th,.ks-table td{text-align:left;padding:10px 12px;border-bottom:1.5px solid var(--line);vertical-align:top}
.ks-table thead th{font:700 13px/1 var(--font-text);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
@media (min-width:900px){.circle{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}}
@media (max-width:599px){
  .ks-table thead{display:none}
  .ks-table,.ks-table tbody,.ks-table tr,.ks-table th,.ks-table td{display:block;width:100%}
  .ks-table tr{padding:12px 0;border-bottom:1.5px solid var(--line)}
  .ks-table th,.ks-table td{border:0;padding:2px 0}
  .ks-table th[scope=row]{font-size:18px;padding-bottom:4px}
  .ks-table td::before{display:inline-block;min-width:132px;font:700 12px/1 var(--font-text);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
  .ks-table td:nth-of-type(1)::before{content:"Signature"}
  .ks-table td:nth-of-type(2)::before{content:"In order"}
  .ks-table td:nth-of-type(3)::before{content:"Relative minor"}
}
.staff-brace{stroke:var(--ink);stroke-width:2.6;fill:none;stroke-linecap:round}

/* Name the note (/games/name-the-note/, public/js/name-the-note.js). Reuses the piano panel and its keys; every answer key is 44 px or taller and nothing zooms on a double tap. */
.ntn{background:var(--stage);border-radius:var(--radius);padding:clamp(16px,3vw,28px);box-shadow:var(--shadow);color:#fff;margin-top:24px;touch-action:manipulation}
.ntn button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ntn[hidden],.ntn [hidden]{display:none}
.ntn h2{margin:0 0 14px;color:#fff;font-size:clamp(22px,3vw,30px)}
.ntn-group{margin:0 0 18px}
.ntn-clefs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ntn-levels{display:grid;gap:10px}
.ntn-opt{display:flex;align-items:center;gap:14px;min-height:52px;padding:8px 18px;border-radius:16px;border:2px solid #4A3A9C;background:#2B1C70;color:#fff;font:500 17px/1.25 var(--font-text);text-align:left;cursor:pointer}
.ntn-opt b{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#1B0F4D;color:var(--yellow);font:800 18px/1 var(--font-display)}
.ntn-clef{justify-content:center;text-align:center;font-weight:700}
.ntn-opt[aria-pressed="true"]{background:var(--yellow);border-color:#fff;color:var(--ink)}
.ntn-opt[aria-pressed="true"] b{background:var(--ink);color:var(--yellow)}
.ntn-opt:focus-visible,.ntn-letter:focus-visible,.ntn .key:focus-visible,.ntn .pk-white:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.ntn-note{margin:0 0 18px;color:#E6E0FF;font-size:15px}
.ntn-go{display:flex;width:min(100%,320px);margin-inline:auto;min-height:60px;font-size:20px}
.ntn .key{background:#fff;color:var(--ink)}.ntn .key.primary{background:var(--yellow);color:var(--ink)}
.ntn-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px;font:700 16px/1 var(--font-text);color:#E6E0FF}
.ntn-level{margin-right:auto;letter-spacing:.06em;text-transform:uppercase;font-size:13px}
.ntn-stage{display:grid;grid-template-columns:clamp(76px,22vw,150px) minmax(0,1fr);align-items:end;gap:clamp(10px,3vw,28px);justify-content:center}
.ntn-host{width:100%;height:auto;max-height:200px;object-fit:contain;object-position:bottom}
.ntn-staff{min-height:clamp(190px,40vw,300px);display:grid;place-items:center;padding:8px 12px}
.ntn-staff .staff-svg{max-width:min(100%,440px);max-height:290px;margin:0}
.ntn-staff .staff-note{fill:var(--action)}
.ntn-staff .staff-note.root{fill:var(--yellow);stroke:var(--ink);stroke-width:1.6}
.ntn-say{margin:16px 0 0;min-height:1.4em;text-align:center;font:800 clamp(22px,3.4vw,30px)/1.2 var(--font-display);color:#fff}
.ntn-more{margin:6px 0 0;min-height:1.4em;text-align:center;color:#E6E0FF}
.ntn-letters{display:grid;grid-template-columns:repeat(7,1fr);gap:clamp(5px,1.6vw,10px);margin-top:16px}
.ntn-letter{min-height:56px;min-width:44px;border-radius:14px;border:2px solid var(--ink);background:#fff;color:var(--ink);font:800 22px/1 var(--font-display);cursor:pointer;box-shadow:0 3px 0 #05021A;transition:transform .08s ease}
.ntn-letter:active{transform:translateY(2px);box-shadow:0 1px 0 #05021A}
.ntn-letter.right,.ntn-keys .pk-white.right{background:var(--yellow);color:var(--ink)}
.ntn-letter.picked,.ntn-keys .pk-white.picked{background:#CFC6F7}
.ntn-keys{position:relative;display:block;height:clamp(110px,22vw,150px);margin-top:22px;user-select:none;-webkit-user-select:none}
.ntn-keys .pk-white{touch-action:manipulation;font:700 15px/1 var(--font-text)}
.ntn-keys .pk-white::after{display:none}
.ntn-keys .pk-white::before{content:attr(data-letter);opacity:.7}
.ntn-keys .pk-white.right{background:linear-gradient(var(--yellow-soft),var(--yellow))}
.ntn-keys .pk-white.right::before{opacity:1}
.ntn-keys .pk-black{pointer-events:none}
.ntn-next{display:flex;margin:18px auto 0;min-width:180px}
.ntn-endstage{margin-bottom:6px}
.ntn-score{margin:0;font:800 clamp(44px,10vw,84px)/1 var(--font-display);color:var(--yellow)}
.ntn-verdict{margin:6px 0 0;font:700 clamp(20px,3vw,28px)/1.2 var(--font-display)}
.ntn-missed,.ntn-offer{margin:14px 0 0;color:#E6E0FF;font-size:18px}
.ntn-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 14px}
.ntn-ladder{padding-left:20px;display:grid;gap:8px}
.ntn-hint{margin:14px 0 0;color:var(--ink-2)}
.ntn-nojs{color:var(--ink-2)}
.no-js .ntn{display:none}
@media (max-width:599px){.ntn{margin-inline:calc(-1 * var(--gutter));border-radius:0;padding:16px var(--gutter)}.ntn-keys{margin-inline:0}.ntn-actions .key{flex:1 1 100%}.ntn-stage{grid-template-columns:76px minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){.ntn-letter{transition:none}}
.ntn .key.small{min-height:44px}

/* Find the beat (/games/find-the-beat/, public/js/find-the-beat.js). Shares the .ntn panel; Tock swings with the clicks. */
.ftb-stage{display:flex;justify-content:center;align-items:center;gap:clamp(12px,4vw,36px)}
.ftb-tockbox{flex:none;width:clamp(96px,28vw,150px);display:flex;justify-content:center;align-items:flex-end}
.ftb-tock{width:100%;max-width:150px;height:auto;max-height:200px;object-fit:contain;transform-origin:50% 100%;will-change:transform}
.ftb-num{flex:none;width:1.1em;min-height:1.1em;font:800 clamp(72px,16vw,140px)/1 var(--font-display);color:var(--yellow);text-align:center;font-variant-numeric:tabular-nums}
.ftb-marks{display:grid;grid-template-columns:repeat(16,1fr);gap:clamp(2px,.8vw,6px);margin:16px 0 0;padding:0;list-style:none}
.ftb-mark{aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:#2B1C70;border:2px solid #4A3A9C;color:#fff;font:700 clamp(8px,1.8vw,14px)/1 var(--font-text);overflow:hidden}
.ftb-mark.now{border-color:#fff;background:#4A3A9C}
.ftb-mark.on{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}
.ftb-mark.early,.ftb-mark.late{background:#CFC6F7;border-color:#CFC6F7;color:var(--ink)}
.ftb-mark.off{background:transparent;border-style:dashed;border-color:#8F7FDD;color:#CFC6F7}
.ftb-pad{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:180px;margin-top:18px;border-radius:28px;border:3px solid var(--ink);background:var(--yellow);color:var(--ink);font:800 clamp(34px,7vw,52px)/1 var(--font-display);box-shadow:0 6px 0 #05021A;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.ftb-pad small{font:500 15px/1 var(--font-text)}
.ftb-pad:active{transform:translateY(4px);box-shadow:0 2px 0 #05021A}
.ftb-pad:focus-visible{outline:3px solid #fff;outline-offset:4px}
.ftb-marks-end{margin:18px 0 0}
@media (prefers-reduced-motion:reduce){.ftb-tock{transform:none!important}.ftb-mark,.ftb-pad{transition:none}.ftb-pad:active{transform:none}}

/* Tools hub and the homepage's tools row: bold cards with a host, like the games. */
.hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}
.hub-games{grid-template-columns:repeat(2,1fr)}
.hub-card{position:relative;overflow:hidden;display:grid;gap:8px;align-content:start;min-height:0;padding:22px 22px 140px;border:2px solid var(--ink);border-radius:var(--radius);box-shadow:0 4px 0 var(--ink);color:var(--ink);text-decoration:none;background:var(--sky-soft)}
.hub-card.yellow{background:var(--yellow-soft)}.hub-card.mint{background:var(--mint-soft)}.hub-card.coral{background:var(--coral-soft)}
.hub-card strong,a.hub-card strong{font:800 24px/1.1 var(--font-display);color:var(--ink)}
.hub-card .hub-text,a.hub-card .hub-text{color:var(--ink-2);font-size:16px}
.hub-tag,a.hub-card .hub-tag{font:800 12px/1 var(--font-display);letter-spacing:.14em;text-transform:uppercase;color:var(--violet-ink)}
.hub-go,a.hub-card .hub-go{margin-top:6px;font-weight:700;color:var(--violet-ink)}
a.hub-card{color:var(--ink)}
.hub-card:hover{transform:translateY(-2px);box-shadow:0 6px 0 var(--ink)}
.hub-card .host{position:absolute;right:-6px;bottom:-12px;height:128px;width:auto;filter:drop-shadow(0 8px 10px rgba(32,25,54,.2))}
.hub-card:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.hub-ref{margin-top:0}
.ground-stage .hub-row-head{color:#fff}
@media (max-width:1000px){.hub-grid{grid-template-columns:1fr 1fr}.hub-games{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.hub-grid,.hub-games{grid-template-columns:1fr}.hub-card{min-height:0}}
@media (prefers-reduced-motion:reduce){a.hub-card{color:var(--ink)}
.hub-card:hover{transform:none}}
.tools-all{text-align:center;margin-top:24px}
.theory.hub-page{max-width:var(--wrap)}.hub-page>.quick-answer,.hub-page>.breadcrumb,.hub-page .faq,.hub-page .t-cta{max-width:760px}.hub-page .hub-ref a strong{font:800 20px/1.2 var(--font-display)}
@media (max-width:420px){.fing th,.fing td{min-width:0;padding:10px 0}.fing thead th{font-size:13px}.fing td{font-size:16px}.fing tbody th{padding-right:6px;font-size:14px}}
.hub-answer{padding-top:32px}.hub-answer .quick-answer{margin:0}
.hub-needs{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(28px,4vw,48px)}
@media (max-width:760px){.hub-needs{grid-template-columns:1fr}}
.hub-need h2{margin:6px 0 16px;font-size:clamp(28px,3vw,40px)}
.hub-need .related-links{grid-template-columns:1fr;margin-top:0}
.hub-need .related-links a{display:block}.hub-need .textlink{display:inline-block;margin-top:10px;font-weight:700;color:var(--violet-ink)}

/* Live glimpses: a small drawing in CSS and SVG at the top of a tool card. Decorative (aria-hidden), no images. */
.glimpse{display:grid;place-items:center;height:64px;margin-bottom:6px;border-radius:14px;background:rgba(255,255,255,.7);border:2px solid rgba(31,23,71,.12);overflow:hidden;position:relative}
.glimpse::before,.glimpse::after{content:"";grid-area:1/1;width:120px;height:48px;background:no-repeat center/contain}
.g-piano::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48' fill='none' stroke-linecap='round'%3E%3Cg stroke='%231F1747' stroke-width='2'%3E%3Crect x='4' y='3' width='36' height='42' rx='4' fill='%23fff'/%3E%3Crect x='42' y='7' width='36' height='39' rx='4' fill='%23FFC83D'/%3E%3Crect x='80' y='3' width='36' height='42' rx='4' fill='%23fff'/%3E%3C/g%3E%3Crect x='33' y='3' width='17' height='24' rx='3' fill='%231F1747'/%3E%3Crect x='71' y='3' width='17' height='24' rx='3' fill='%231F1747'/%3E%3C/svg%3E")}
.g-circle::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-linecap='round'%3E%3Ccircle cx='24' cy='24' r='19' stroke='%231F1747' stroke-width='1.5'/%3E%3Ccircle cx='24' cy='24' r='10' stroke='%235B3FE0' stroke-width='1.5'/%3E%3Ccircle cx='24.0' cy='5.0' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='33.5' cy='7.5' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='40.5' cy='14.5' r='4' fill='%23FFC83D' stroke='%231F1747' stroke-width='1.5'/%3E%3Ccircle cx='43.0' cy='24.0' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='40.5' cy='33.5' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='33.5' cy='40.5' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='24.0' cy='43.0' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='14.5' cy='40.5' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='7.5' cy='33.5' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='5.0' cy='24.0' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='7.5' cy='14.5' r='2.6' fill='%231F1747' /%3E%3Ccircle cx='14.5' cy='7.5' r='2.6' fill='%231F1747' /%3E%3C/svg%3E")}
.g-note::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48' fill='none' stroke-linecap='round'%3E%3Cline x1='2' x2='118' y1='10' y2='10' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='17' y2='17' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='24' y2='24' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='31' y2='31' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='38' y2='38' stroke='%231F1747' stroke-width='1.4'/%3E%3Cellipse cx='60' cy='31' rx='6.5' ry='4.8' transform='rotate(-20 60 31)' fill='%235B3FE0'/%3E%3Cline x1='66' y1='29.5' x2='66' y2='6' stroke='%235B3FE0' stroke-width='2'/%3E%3C/svg%3E")}
.g-chord::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48' fill='none' stroke-linecap='round'%3E%3Cline x1='2' x2='118' y1='10' y2='10' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='17' y2='17' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='24' y2='24' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='31' y2='31' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='38' y2='38' stroke='%231F1747' stroke-width='1.4'/%3E%3Cellipse cx='60' cy='38' rx='6.5' ry='4.8' transform='rotate(-20 60 38)' fill='%23FFC83D'/%3E%3Cellipse cx='60' cy='24' rx='6.5' ry='4.8' transform='rotate(-20 60 24)' fill='%235B3FE0'/%3E%3Cellipse cx='60' cy='10' rx='6.5' ry='4.8' transform='rotate(-20 60 10)' fill='%235B3FE0'/%3E%3C/svg%3E")}
.g-scale::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48' fill='none' stroke-linecap='round'%3E%3Cline x1='2' x2='118' y1='10' y2='10' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='17' y2='17' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='24' y2='24' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='31' y2='31' stroke='%231F1747' stroke-width='1.4'/%3E%3Cline x1='2' x2='118' y1='38' y2='38' stroke='%231F1747' stroke-width='1.4'/%3E%3Cellipse cx='12.0' cy='38.0' rx='5' ry='3.8' transform='rotate(-20 12.0 38.0)' fill='%23FFC83D'/%3E%3Cellipse cx='25.5' cy='34.5' rx='5' ry='3.8' transform='rotate(-20 25.5 34.5)' fill='%235B3FE0'/%3E%3Cellipse cx='39.0' cy='31.0' rx='5' ry='3.8' transform='rotate(-20 39.0 31.0)' fill='%235B3FE0'/%3E%3Cellipse cx='52.5' cy='27.5' rx='5' ry='3.8' transform='rotate(-20 52.5 27.5)' fill='%235B3FE0'/%3E%3Cellipse cx='66.0' cy='24.0' rx='5' ry='3.8' transform='rotate(-20 66.0 24.0)' fill='%235B3FE0'/%3E%3Cellipse cx='79.5' cy='20.5' rx='5' ry='3.8' transform='rotate(-20 79.5 20.5)' fill='%235B3FE0'/%3E%3Cellipse cx='93.0' cy='17.0' rx='5' ry='3.8' transform='rotate(-20 93.0 17.0)' fill='%235B3FE0'/%3E%3Cellipse cx='106.5' cy='13.5' rx='5' ry='3.8' transform='rotate(-20 106.5 13.5)' fill='%23FFC83D'/%3E%3C/svg%3E")}
.g-beat::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48' fill='none' stroke-linecap='round'%3E%3Ccircle cx='9.0' cy='24' r='5' fill='%235B3FE0' opacity='1'/%3E%3Ccircle cx='23.5' cy='24' r='5' fill='%231F1747' opacity='0.55'/%3E%3Ccircle cx='38.0' cy='24' r='5' fill='%231F1747' opacity='0.55'/%3E%3Ccircle cx='52.5' cy='24' r='5' fill='%231F1747' opacity='0.55'/%3E%3Ccircle cx='67.0' cy='24' r='5' fill='%235B3FE0' opacity='1'/%3E%3Ccircle cx='81.5' cy='24' r='5' fill='%231F1747' opacity='0.55'/%3E%3Ccircle cx='96.0' cy='24' r='5' fill='%231F1747' opacity='0.55'/%3E%3Ccircle cx='110.5' cy='24' r='5' fill='%231F1747' opacity='0.55'/%3E%3C/svg%3E")}
.g-metronome::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48' fill='none' stroke-linecap='round'%3E%3Cpath d='M44 44 L52 6 H68 L76 44 Z' fill='%23FFC83D' stroke='%231F1747' stroke-width='2' stroke-linejoin='round'/%3E%3Cline x1='60' y1='40' x2='60' y2='12' stroke='%231F1747' stroke-width='2'/%3E%3Crect x='54' y='18' width='12' height='7' rx='2' fill='%235B3FE0'/%3E%3C/svg%3E")}
/* Find the beat: the lit beat runs along the row, one step at a time. */
.g-beat::after{width:11px;height:11px;border-radius:50%;background:var(--yellow);border:2px solid var(--ink);transform:translateX(-50px);animation:g-beat 3.2s steps(1) 3}
@keyframes g-beat{0%{transform:translateX(-50.5px)}12.5%{transform:translateX(-36px)}25%{transform:translateX(-21.5px)}37.5%{transform:translateX(-7px)}50%{transform:translateX(7.5px)}62.5%{transform:translateX(22px)}75%{transform:translateX(36.5px)}87.5%{transform:translateX(51px)}}
/* Metronome: the arm swings from the pivot. */
.g-metronome::after{width:3px;height:30px;border-radius:2px;background:var(--ink);align-self:end;margin-bottom:8px;transform-origin:50% 100%;transform:rotate(14deg);animation:g-swing 1.2s ease-in-out 6 alternate}
@keyframes g-swing{from{transform:rotate(-14deg)}to{transform:rotate(14deg)}}
@media (prefers-reduced-motion:reduce){.g-beat::after{animation:none;transform:translateX(-50.5px)}.g-metronome::after{animation:none}}
.hub-card.nohost{padding-bottom:22px}
/* Wider cards: the drawing grows with them (scale composes with the animated transform). */
@media (min-width:900px){.glimpse{height:96px}.glimpse::before,.glimpse::after{scale:1.6}}
.related-links a .glimpse{background:var(--cream)}
/* Phones: the tool cards sit two across and drop their host, so the section stays short. */
@media (max-width:640px){
  .hub-grid,.hub-games{grid-template-columns:1fr 1fr;gap:10px}
  .hub-card,.hub-card.nohost{padding:10px 10px 12px;gap:4px;border-radius:16px;box-shadow:0 3px 0 var(--ink)}
  .hub-card .host,.hub-card .hub-go{display:none}
  .hub-card strong,a.hub-card strong{font-size:17px}
  .hub-card .hub-text,a.hub-card .hub-text{font-size:13px;line-height:1.35}
  .glimpse{height:52px;border-radius:10px;margin-bottom:2px}
}

/* A two-across grid never leaves its last card alone in a row. */
@media (max-width:1000px){.hub-grid:not(.hub-games)>:last-child:nth-child(odd){grid-column:1/-1}}
.related-links>:last-child:nth-child(odd){grid-column:1/-1}
