/* That's What She Synced (Office edition): one-page site.
   Island mocks use points: 1 CSS px = 1 pt before the stage zoom.
   Motion: only transform and opacity animate. Content is finished without JS or with Reduce Motion. */

/* ---------- fonts: self-hosted, Latin subset, metric-matched fallbacks ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-display.woff2") format("woff2"); font-weight: 700 900; font-stretch: 62% 87%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-text.woff2") format("woff2"); font-weight: 400; font-stretch: 100%; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* size-adjust matches average advance widths, so lines wrap the same before and after the swap */
@font-face { font-family: "Archivo Fallback 62"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700 900; size-adjust: 70.17%; ascent-override: 125.12%; descent-override: 29.93%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback 75"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700 900; size-adjust: 78%; ascent-override: 112.56%; descent-override: 26.92%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback 87"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700 900; size-adjust: 86.73%; ascent-override: 101.23%; descent-override: 24.21%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 98.29%; ascent-override: 89.33%; descent-override: 21.37%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
  --paper: #F4F1E8; --manila: #E3D3A8; --beige: #C9BFA9; --navy: #1F3A5F; --navy-deep: #12233B; --ink: #1B2A41; --ink-2: #2B3A52;
  --mustard: #C9A227; --beet: #7A1F3D; --jelly: #F4D03F; --muted: #4A4332;
  --radius: 10px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: var(--radius); --radius-xl: 14px;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Archivo Fallback 62", "Arial Narrow", sans-serif;
  --display-75: "Archivo", "Archivo Fallback 75", "Arial Narrow", sans-serif;
  --display-87: "Archivo", "Archivo Fallback 87", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; overflow-x: clip; }
::selection { background: var(--mustard); color: var(--ink); }
p, dd, li, figcaption { text-wrap: pretty; }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--beet); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.navy :focus-visible { outline-color: var(--mustard); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--navy); color: var(--paper); padding: 12px 16px; border-radius: var(--radius-md); font-weight: 400; }
.skip:focus, .skip:hover { top: 16px; color: var(--paper); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-block; padding: 8px 0; font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 24px; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.navlinks { display: flex; align-items: center; gap: 28px; font-family: var(--mono); font-size: 16px; }
.navlinks a { display: inline-block; min-width: 44px; text-align: center; text-decoration: none; padding: 12px 0; }
.navlinks a:hover { text-decoration: underline; }

/* ---------- buttons: one pair ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-lg); border: 2px solid var(--navy);
       font: 700 17px/1 var(--display-87); font-stretch: 87%; text-decoration: none; cursor: pointer;
       transition: transform .16s var(--expo), background-color .16s ease, color .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--navy); color: var(--paper); }
.btn.primary:hover { background: #142A47; color: #FFFFFF; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--manila); color: #142A47; }

/* ---------- hero ---------- */
.hero { padding-top: 20px; padding-bottom: 40px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; color: var(--navy); line-height: .9; letter-spacing: -.005em;
           font-size: clamp(3.1rem, 9.2vw, 6rem); text-wrap: balance; }
.herorow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 56px; align-items: end; margin: 20px 0 28px; }
.hero .sub { margin: 0; font-size: 19px; line-height: 1.45; max-width: 46ch; color: var(--ink-2); }
.hero .sub strong { display: block; margin-bottom: 4px; font-family: var(--display-87); font-weight: 800; font-stretch: 87%; font-size: 28px; line-height: 1.1; color: var(--navy); }
.hero .fact { margin: 14px 0 0; font-family: var(--mono); font-weight: 700; font-size: 16px; line-height: 1.45; color: var(--muted); max-width: 64ch; text-wrap: balance; }
.cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.homage { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.3; color: var(--muted); }

/* ---------- the stage: a slice of MacBook with the live island ---------- */
/* the bezel is the stage's own colour and padding; the screen inside clips the live island.
   --z zooms the island (pt to px) so the notch fills the screen's width; --cam is the camera housing's width. */
.stage { --z: 3.2; --snap: 1.1; --cam: 185px; --bezel: 10px; position: relative; height: 252px; padding: var(--bezel) var(--bezel) 0; background: #15171C;
         border-radius: calc(var(--radius-xl) + var(--bezel)) calc(var(--radius-xl) + var(--bezel)) var(--radius-sm) var(--radius-sm); }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
          background: linear-gradient(160deg, rgba(227, 181, 138, 0) 50%, rgba(227, 181, 138, .8) 100%), linear-gradient(180deg, #46566B 0%, #7D8A96 52%, #C9BFA9 100%); }
.menubar { position: absolute; left: 0; right: 0; top: 0; height: calc(32px * var(--z)); background: rgba(255, 255, 255, .16); }
.rigc { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: center; }
.rig { width: calc(var(--cam) + 155px); flex: none; zoom: var(--z); }
/* the one snap-zoom: punch in on the dancers from the top centre, hold 2 s, cut back. The lower third sits outside it. */
.shot { position: absolute; inset: 0; transform-origin: 50% 0; }
.shot.snap { animation: snapzoom 5s var(--expo) both; }
@keyframes snapzoom { 0% { transform: scale(1); } 3.2% { transform: scale(calc(var(--snap) * 1.02)); } 6.5%, 46% { transform: scale(var(--snap)); } 52%, 100% { transform: scale(1); } }

/* lower third: navy name bar with a mustard rule, role on paper. A quick fade and rise, never a slide past the edge. */
.lower { position: absolute; left: 24px; bottom: 22px; max-width: calc(100% - 48px); display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.lower .bar { display: block; max-width: 100%; }
.lower .nm { display: flex; align-items: center; gap: 14px; background: var(--navy); color: #FFFFFF; padding: 10px 20px 9px 0; font-family: var(--display-75); font-weight: 800; font-stretch: 70%; font-size: 27px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.lower .nm::before { content: ""; align-self: stretch; flex: none; width: 6px; background: var(--mustard); margin: -10px 0 -9px; }
.lower .rl { display: block; background: var(--paper); color: var(--ink); padding: 8px 16px 8px 20px; font-family: var(--mono); font-size: 15px; line-height: 1.25; }
.lower.wipe .bar { animation: rise .34s var(--expo) both; }
.lower.wipe .bar + .bar { animation-delay: .06s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* the playground bar: Pause and the scenes, then the moments to try */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 14px; }
.cgrp { display: flex; align-items: center; gap: 8px; }
.seg { display: flex; border: 1.5px solid var(--navy); border-radius: var(--radius-md); }
.tryl { font: 700 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ctl { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-md); border: 1.5px solid var(--navy); background: transparent; color: var(--navy);
       font: 700 15px/1 var(--mono); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
/* no sticky hover on touch */
@media (hover: hover) { .ctl:hover { background: var(--manila); } }
.ctl:active { background: var(--manila); }
.ctl.on, .ctl[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
.ctl svg { display: block; flex: none; }
.seg .ctl { position: relative; justify-content: center; border: 0; border-radius: 0; }
.seg .ctl + .ctl { border-left: 1.5px solid var(--navy); }
.seg .ctl:first-child { border-top-left-radius: 6.5px; border-bottom-left-radius: 6.5px; }
.seg .ctl:last-child { border-top-right-radius: 6.5px; border-bottom-right-radius: 6.5px; }
.seg .ctl:focus-visible { z-index: 2; }
.ic { width: 44px; padding: 0; }
.ic svg { transition: transform .14s var(--expo); }
.ic:active svg { transform: scale(.84); }
/* the accessible name, on hover or focus */
.ic::after { content: attr(aria-label); position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 9px); padding: 7px 9px 6px; border-radius: var(--radius-sm); background: var(--navy); color: var(--paper);
             font: 700 13px/1 var(--mono); white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(var(--tx, -50%), 4px); transition: opacity .15s ease, transform .2s var(--expo); }
.ic:focus-visible::after { opacity: 1; transform: translate(var(--tx, -50%), 0); }
@media (hover: hover) { .ic:hover::after { opacity: 1; transform: translate(var(--tx, -50%), 0); } }
.cgrp:first-child .ic::after, .try .ic::after { --tx: 0; left: -1.5px; }
.try .ic:nth-child(n + 4)::after { left: auto; right: -1.5px; }
/* touch: a legend under each icon */
@media (pointer: coarse) {
  .try .ic { flex-direction: column; gap: 4px; }
  .try .ic::before { content: attr(data-key); order: 1; font: 700 9.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
}
.ctl .i-play, html.paused .ctl .i-pause { display: none; }
html.paused .ctl .i-play { display: block; }
html:not(.ready) .js-only { visibility: hidden; }
html:not(.js) :is(.js-only, .pickhint, .copy), html.static :is(.js-only, .pickhint, .copy) { display: none; }

/* ---------- palettes: c1..c3 drive glows; the song's tones dress the dancers ---------- */
.pal-scarn { --c1: #2A5FC4; --c2: #D2343F; --c3: #8FB4F2; }
.pal-gold  { --c1: #E3B23C; --c2: #F7D774; --c3: #B26A12; }
.pal-jelly { --c1: #F4D03F; --c2: #F29F2B; --c3: #FFF0A0; }
.pal-mug   { --c1: #C8742C; --c2: #F3E2C4; --c3: #7E4420; }
.pal-beet  { --c1: #C22E66; --c2: #3F9A3A; --c3: #E24A8A; }
/* the demo song: a teal cover with a gold second colour. Tones are the app's (NotchDanceTone): WCAG luminance
   light .78, mid .55, deep .40, a slate suit .35, trousers .30; the tie is the second colour toned deep. */
.pal-teal  { --c1: #0E9F96; --c2: #22D3C5; --c3: #9AF5EA; --song1: #22D3C5; --song2: #F4D03F;
             --t-light: #29FFEE; --t-mid: #23DACC; --t-deep: #1FBDB1; --t-suit: #44AFB4; --t-trousers: #3FA3A8; --t-tie: #AF9320; }
/* the playground's other albums, toned by the same rules from their covers' two colours */
.pal-ochre { --c1: #A4751D; --c2: #DDA032; --c3: #FFDBA6; --song1: #DDA032; --song2: #D24B3C;
             --t-light: #FFE1AB; --t-mid: #FDB739; --t-deep: #DB9F32; --t-suit: #B59D6B; --t-trousers: #A99264; --t-tie: #E04230; }
.pal-pink  { --c1: #BC407A; --c2: #FF5FA8; --c3: #FFD4E3; --song1: #FF5FA8; --song2: #8B7BFF;
             --t-light: #FFDBEB; --t-mid: #FFABD1; --t-deep: #FF6CAF; --t-suit: #DC82C0; --t-trousers: #CD79B3; --t-tie: #7966FF; }
.pal-blue  { --c1: #3064BA; --c2: #4D90FF; --c3: #D1E2FF; --song1: #4D90FF; --song2: #FFB38A;
             --t-light: #D6E6FF; --t-mid: #A2C5FF; --t-deep: #669FFF; --t-suit: #6AA0F6; --t-trousers: #6396E5; --t-tie: #D38154; }
.pal-claude { --c1: #D97757; --c2: #EB9F7F; --c3: #FFD0B5; }
.pal-codex  { --c1: #3941FF; --c2: #7A9DFF; --c3: #B1A7FF; }

/* ---------- closed island (bare). Radii here are the app's point geometry (11 corners, 6 ears), not page tokens.
   The notch is the camera housing plus two 66 pt wing pads; the app's housing is 185 pt, narrowed on phones so the cast reads bigger.
   Wings resize by sliding the pads under the housing (transform only): 40 pt quiet, 60 pt for the three, 48 pt for a solo. ---------- */
.isl { --mw: 60px; position: relative; width: calc(var(--cam) + 155px); height: 32px; flex: none; }
.isl[data-dance="solo"] { --mw: 48px; }
.notch { position: absolute; top: 0; left: 11.5px; width: calc(var(--cam) + 132px); height: 32px; font-family: var(--system); }
.pad, .cam, .glow, .slot { position: absolute; top: 0; height: 32px; }
/* pads are 12 pt wider than the widest wing, so they always reach under the housing's rounded corners */
.pad { width: 78px; background: #000; transition: transform .5s var(--expo); }
.pad.l { left: 0; border-radius: 0 0 0 11px; }
.pad.r { right: 0; border-radius: 0 0 11px 0; }
.pad::before { content: ""; position: absolute; top: 0; width: 6px; height: 6px; }
.pad.l::before { left: -6px; background: radial-gradient(circle at 0 100%, transparent 5.5px, #000 6px); }
.pad.r::before { right: -6px; background: radial-gradient(circle at 100% 100%, transparent 5.5px, #000 6px); }
.cam { left: 66px; width: var(--cam); background: #000; border-radius: 0 0 11px 11px; }
.lens { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
        background: radial-gradient(circle at 35% 35%, #2A3550, #0A0C12 60%); box-shadow: 0 0 0 1px #15171C; }
[data-scene="idle"] .pad.l { transform: translateX(26px); }
[data-scene="idle"] .pad.r { transform: translateX(-26px); }
[data-scene="music"] .pad.l { transform: translateX(calc(66px - var(--mw))); }
[data-scene="music"] .pad.r { transform: translateX(calc(var(--mw) - 66px)); }

/* glow: 3 radial blobs per wing over the wing's own near-black, fading to black 38 pt into the housing */
.glow { pointer-events: none; opacity: 0; transition: opacity .5s ease; background-color: #0B0B0D; }
.glow.l { border-radius: 0 0 0 11px;
  background-image: radial-gradient(40px 24px at 30% 64%, color-mix(in srgb, var(--c3) 55%, transparent), transparent 76%),
                    radial-gradient(92px 58px at 0% 100%, var(--c1), transparent 76%),
                    radial-gradient(70px 38px at 62% 0%, var(--c2), transparent 74%);
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent); mask-image: linear-gradient(90deg, #000 42%, transparent); }
.glow.r { border-radius: 0 0 11px 0;
  background-image: radial-gradient(40px 24px at 70% 64%, color-mix(in srgb, var(--c3) 55%, transparent), transparent 76%),
                    radial-gradient(92px 58px at 100% 100%, var(--c1), transparent 76%),
                    radial-gradient(70px 38px at 38% 0%, var(--c2), transparent 74%);
  -webkit-mask-image: linear-gradient(270deg, #000 42%, transparent); mask-image: linear-gradient(270deg, #000 42%, transparent); }
.glow.l.g-idle { left: 26px; width: 78px; }   .glow.r.g-idle { right: 26px; width: 78px; }
.glow.l.g-music { left: calc(66px - var(--mw)); width: calc(var(--mw) + 38px); }   .glow.r.g-music { right: calc(66px - var(--mw)); width: calc(var(--mw) + 38px); }
.glow.l.g-agents { left: 0; width: 104px; }   .glow.r.g-agents { right: 0; width: 104px; }
[data-scene="idle"] .g-idle { opacity: .92; }
[data-scene="idle"] .g-idle.r { opacity: .7; }
[data-scene="music"] .g-music { opacity: 1; }
[data-scene="agents"] .g-agents { opacity: .95; }

/* wing content */
.slot { display: flex; align-items: center; justify-content: center; gap: 5px; visibility: hidden; }
.slot.l.s-idle { left: 26px; width: 40px; }
.slot.l.s-music { left: calc(66px - var(--mw)); width: var(--mw); }   .slot.r.s-music { right: calc(66px - var(--mw)); width: var(--mw); }
.slot.l.s-agents { left: 0; width: 66px; }    .slot.r.s-agents { right: 0; width: 66px; }
[data-scene="idle"] .s-idle, [data-scene="music"] .s-music, [data-scene="agents"] .s-agents { visibility: visible; }
.slot.enter { animation: isl-in .45s var(--expo) both; }
@keyframes isl-in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }
.chip { width: 20px; height: 20px; border-radius: 5px; flex: none; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .3);
        background: conic-gradient(from 215deg at 32% 68%, var(--c3) 0 18%, var(--c1) 18% 44%, #0B0B0D 44% 62%, var(--song2, var(--c2)) 62% 100%); }
.rd { font-size: 11px; line-height: 1; font-weight: 600; color: var(--c3, #FFFFFF); font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }

/* hero power-on, once: pads slide out from under the housing, glow fades up, the cast member arrives */
.boot .pad.l { animation: pad-l-in .8s var(--expo) .25s backwards; }
.boot .pad.r { animation: pad-r-in .8s var(--expo) .25s backwards; }
.boot .glow { animation: fade-up 1s ease .4s backwards; }
.boot .slot.enter { animation-delay: .55s; }
.boot .lower.wipe .bar { animation-delay: .8s; }
.boot .lower.wipe .bar + .bar { animation-delay: .86s; }
@keyframes pad-l-in { from { transform: translateX(60px); } }
@keyframes pad-r-in { from { transform: translateX(-60px); } }
@keyframes fade-up { from { opacity: 0; } }

/* ---------- agent mark slot + comet ring (the grey disc stands in for the official mark the app ships) ---------- */
.ag { position: relative; width: 22px; height: 22px; flex: none; }
.ag > span { position: absolute; border-radius: 50%; }
.ag .halo { inset: -4px; background: radial-gradient(closest-side, var(--c1), transparent); opacity: .25; animation: halo 1.6s ease-in-out infinite alternate; }
.ag .disc { inset: 3px; display: flex; align-items: center; justify-content: center; background: #1C1C21; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22); }
.ag .disc svg { display: block; width: 11px; height: 11px; overflow: visible; }
.ag .ring, .ag .head { inset: 0; animation: orbit 1.4s linear infinite; }
.ag .ring { background: conic-gradient(from 0deg, transparent 0deg, transparent 96deg, var(--c1) 190deg, var(--c2) 300deg, var(--c3) 360deg);
            -webkit-mask-image: radial-gradient(closest-side, transparent calc(100% - 1.75px), #000 calc(100% - 1.6px));
            mask-image: radial-gradient(closest-side, transparent calc(100% - 1.75px), #000 calc(100% - 1.6px)); }
.ag .head::after { content: ""; position: absolute; top: -.15px; left: 50%; width: 2px; height: 2px; margin-left: -1px; border-radius: 50%; background: var(--c3); box-shadow: 0 0 3px var(--c2); }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes halo { from { opacity: .25; } to { opacity: .6; } }

/* ---------- cast members (24 x 24 pt rig: hop > sq > tilt > parts) ---------- */
.mem { position: relative; display: block; flex: none; width: 22px; height: 22px; }
.mem svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mem g, .mem path, .mem ellipse, .mem circle, .mem rect { transform-box: view-box; }
.mem .hop, .mem .sq, .mem .tilt { transform-origin: 12px 22px; }
.mem .ink { fill: #141413; }
.mem .eyes { transform-origin: 12px 9px; animation: blink 5.2s linear infinite; }
.m-jelly .eyes { transform-origin: 10.5px 12px; }
.m-mug .eyes { transform-origin: 12px 12.2px; }
.m-beet .eyes { transform-origin: 12px 14.6px; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.mem .glint { opacity: 0; }
.mem .steam path { fill: none; stroke: var(--steam, #F7F5F0); stroke-width: .8; stroke-linecap: round; opacity: 0; }
.mem .leaf { transform-origin: 12px 10px; }
.mem .hand-l, .mem .hand-r { fill: #E9E1D0; }
.idle.m-scarn .tilt { animation: scarn-sway 3.2s ease-in-out infinite alternate; }
@keyframes scarn-sway { from { transform: translateX(-.7px) rotate(-4deg); } to { transform: translateX(.7px) rotate(4deg); } }
.idle.m-gold .tilt { animation: gold-menace 6.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes gold-menace { 0%, 18%, 82%, 100% { transform: rotate(0deg); } 40%, 62% { transform: rotate(-10deg); } }
.idle.m-jelly .sq { animation: jelly-wobble 4.2s linear infinite; }
@keyframes jelly-wobble { 0%, 68%, 100% { transform: none; } 74% { transform: skewX(5deg) scale(1.03, .97); } 80% { transform: skewX(-4deg) scale(.98, 1.02); } 87% { transform: skewX(2.5deg); } 94% { transform: skewX(-1deg); } }
.idle.m-mug .steam path { animation: steam 7s ease-in-out infinite; }
.idle.m-mug .steam path:nth-child(2) { animation-delay: .5s; }
.idle.m-mug .steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0%, 52%, 100% { opacity: 0; transform: translateY(1.5px); } 64% { opacity: .9; transform: translateY(0); } 86% { opacity: 0; transform: translateY(-2.5px); } }
.idle.m-beet .leaf { animation: leaf-sway 2.8s ease-in-out infinite alternate; }
.idle.m-beet .leaf.l2 { animation-duration: 3.3s; animation-direction: alternate-reverse; }
.idle.m-beet .leaf.l3 { animation-duration: 2.5s; }
@keyframes leaf-sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* ---------- dancers, drawn as the app draws them (NotchDancerBody): 26 pt figures in a 32 pt strip, filled,
   a 7 pt torso capsule, round-capped limbs (legs 2.8, arms 2.4), 8 pt paper heads, dark shoes with a light sole,
   a black keyline and a glow in the figure's own colour (#dn-g*). A dark pool and a beat spotlight on the floor.
   Floors: the three 60 x 32 pt, a solo 20 x 32 pt with a 34 pt floor. Every joint group turns about its own 0 0. ---------- */
.dn { position: relative; display: block; flex: none; width: 60px; height: 32px; isolation: isolate; }
.dn.solo { width: 20px; }
.dn svg { position: relative; z-index: 1; display: block; height: 100%; width: 100%; overflow: visible; }
.dn::before, .dn::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
/* the dark pool behind the floor, then the spotlight at the feet: 44 x 6 pt, never wider than the floor */
.dn::before { top: 0; bottom: 0; left: 10%; right: 10%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .275) 55%, transparent); }
.dn::after { top: calc(27.1 / 32 * 100%); height: calc(6 / 32 * 100%); left: calc(8 / 60 * 100%); right: calc(8 / 60 * 100%); opacity: .3;
  background: radial-gradient(closest-side, var(--song2), color-mix(in srgb, var(--song2) 45%, transparent) 45%, transparent);
  animation: spot .5s cubic-bezier(.3, 0, .6, 1) infinite; }
.dn.solo::before, .dn.solo::after { left: -35%; right: -35%; }
@keyframes spot { 0% { opacity: .3; } 16% { opacity: .75; } 100% { opacity: .3; } }
.dn g, .dn line, .dn circle, .dn rect, .dn path { transform-box: view-box; }
.dn g { transform-origin: 0 0; }
.dn .bop { transform-origin: 0 .6px; }
.dn line { stroke-linecap: round; fill: none; }
.dn .to { stroke: var(--top); stroke-width: 7; }
.dn .ar { stroke: var(--top); stroke-width: 2.4; }
.dn .lg { stroke: var(--legs); stroke-width: 2.8; }
.dn .hd, .dn .hn { fill: #F7F5F0; }
.dn .sh { fill: #1C1D22; }
.dn .so { stroke: #D9DCE2; stroke-width: .56; }
.dn .shirt { fill: #F4F1E8; }
.dn .ti { fill: var(--t-tie); }
.dn .co { fill: none; stroke: var(--t-tie); stroke-width: .875; stroke-linecap: round; stroke-linejoin: round; }
.dn .bx { fill: #2A2A2E; stroke: #B8BCC2; stroke-width: .69; }
.dn .hdl { fill: none; stroke: #B8BCC2; stroke-width: .875; stroke-linecap: round; }
.dn .cone { fill: var(--song2); transform-box: fill-box; transform-origin: center; }
.dn .cap { fill: #2A2A2E; }
.f-a { --top: var(--t-deep); --legs: var(--t-trousers); }
.f-b { --top: var(--t-mid); --legs: var(--t-mid); }
.f-c { --top: var(--t-light); --legs: var(--t-trousers); }
.f-bb { --top: var(--t-light); --legs: var(--t-trousers); }
.f-sc { --top: var(--t-suit); --legs: var(--t-suit); }
/* an 8-beat loop: each pose lands on its beat, eased expo-out over the beat */
.dn :is(.la, .lf, .ra, .rf, .ll, .lk, .rl, .rk, .body, .box) { animation-duration: 4s; animation-timing-function: var(--expo); animation-iteration-count: infinite; }
.dn .bop { animation: bop .5s var(--expo) infinite; }
.dn .cone { animation: cone .5s var(--expo) infinite; }
@keyframes bop { 0% { transform: scaleY(.95); } 45%, 100% { transform: scaleY(1); } }
@keyframes cone { 0% { transform: scale(1.3); } 100% { transform: scale(1); } }
/* poses, converted from the design's pose variables to per-part transforms. Each part's resting transform is
   the beat-2 pose, so Reduce Motion and the no-JS page show one clear static pose. */
@keyframes d-bb-la { 0%, 100% { transform: rotate(164deg); } 12.5%, 62.5% { transform: rotate(163deg); } 25%, 75% { transform: rotate(166deg); } 37.5%, 87.5% { transform: rotate(166deg); } 50% { transform: rotate(160deg); } }
@keyframes d-bb-ra { 0%, 100% { transform: rotate(-98deg); } 12.5%, 62.5% { transform: rotate(-163deg); } 25%, 75% { transform: rotate(-166deg); } 37.5%, 87.5% { transform: rotate(-160deg); } 50% { transform: rotate(-166deg); } }
@keyframes d-bb-rf { 0%, 100% { transform: rotate(-82deg); } 12.5%, 62.5% { transform: rotate(0deg); } 25%, 75% { transform: rotate(0deg); } 37.5%, 87.5% { transform: rotate(0deg); } 50% { transform: rotate(0deg); } }
@keyframes d-bb-ll { 0%, 100% { transform: rotate(0deg); } 12.5%, 62.5% { transform: rotate(34deg); } 25%, 75% { transform: rotate(0deg); } 37.5%, 87.5% { transform: rotate(22deg); } 50% { transform: rotate(0deg); } }
@keyframes d-bb-lk { 0%, 100% { transform: rotate(0deg); } 12.5%, 62.5% { transform: rotate(-68deg); } 25%, 75% { transform: rotate(0deg); } 37.5%, 87.5% { transform: rotate(-44deg); } 50% { transform: rotate(0deg); } }
@keyframes d-bb-rl { 0%, 100% { transform: rotate(0deg); } 12.5%, 62.5% { transform: rotate(-34deg); } 25%, 75% { transform: rotate(0deg); } 37.5%, 87.5% { transform: rotate(-22deg); } 50% { transform: rotate(0deg); } }
@keyframes d-bb-rk { 0%, 100% { transform: rotate(0deg); } 12.5%, 62.5% { transform: rotate(68deg); } 25%, 75% { transform: rotate(0deg); } 37.5%, 87.5% { transform: rotate(44deg); } 50% { transform: rotate(0deg); } }
@keyframes d-bb-body { 0%, 100% { transform: translate(1px, -.6px) rotate(4deg); } 12.5%, 62.5% { transform: translate(0px, 1.25px) rotate(0deg); } 25%, 75% { transform: translate(0px, -.6px) rotate(0deg); } 37.5%, 87.5% { transform: translate(-1.3px, .55px) rotate(-7deg); } 50% { transform: translate(1.3px, -.6px) rotate(7deg); } }
@keyframes d-bb-box { 0%, 100% { transform: translateY(-.4px) rotate(-17deg); } 12.5%, 62.5% { transform: translateY(0px) rotate(0deg); } 25%, 75% { transform: translateY(-.5px) rotate(0deg); } 37.5%, 87.5% { transform: translateY(0px) rotate(-13deg); } 50% { transform: translateY(-.5px) rotate(13deg); } }
.f-bb .la { transform: rotate(166deg); animation-name: d-bb-la; }
.f-bb .ra { transform: rotate(-166deg); animation-name: d-bb-ra; }
.f-bb .rf { transform: rotate(0deg); animation-name: d-bb-rf; }
.f-bb .ll { transform: rotate(0deg); animation-name: d-bb-ll; }
.f-bb .lk { transform: rotate(0deg); animation-name: d-bb-lk; }
.f-bb .rl { transform: rotate(0deg); animation-name: d-bb-rl; }
.f-bb .rk { transform: rotate(0deg); animation-name: d-bb-rk; }
.f-bb .body { transform: translate(0px, -.6px) rotate(0deg); animation-name: d-bb-body; }
.f-bb .box { transform: translateY(-.5px) rotate(0deg); animation-name: d-bb-box; }
@keyframes d-sc-la { 0%, 100% { transform: rotate(78deg); } 12.5%, 37.5% { transform: rotate(26deg); } 25% { transform: rotate(14deg); } 50% { transform: rotate(84deg); } 62.5% { transform: rotate(98deg); } 75% { transform: rotate(106deg); } 87.5% { transform: rotate(40deg); } }
@keyframes d-sc-lf { 0%, 100% { transform: rotate(-58deg); } 12.5%, 37.5% { transform: rotate(-72deg); } 25% { transform: rotate(-20deg); } 50% { transform: rotate(8deg); } 62.5% { transform: rotate(0deg); } 75% { transform: rotate(4deg); } 87.5% { transform: rotate(-112deg); } }
@keyframes d-sc-ra { 0%, 100% { transform: rotate(-78deg); } 12.5%, 37.5% { transform: rotate(-26deg); } 25% { transform: rotate(-84deg); } 50% { transform: rotate(-14deg); } 62.5% { transform: rotate(-98deg); } 75% { transform: rotate(-106deg); } 87.5% { transform: rotate(-40deg); } }
@keyframes d-sc-rf { 0%, 100% { transform: rotate(58deg); } 12.5%, 37.5% { transform: rotate(72deg); } 25% { transform: rotate(-8deg); } 50% { transform: rotate(20deg); } 62.5% { transform: rotate(0deg); } 75% { transform: rotate(-4deg); } 87.5% { transform: rotate(112deg); } }
@keyframes d-sc-ll { 0%, 100% { transform: rotate(0deg); } 12.5%, 37.5% { transform: rotate(40deg); } 25% { transform: rotate(10deg); } 50% { transform: rotate(20deg); } 62.5% { transform: rotate(6deg); } 75% { transform: rotate(6deg); } 87.5% { transform: rotate(16deg); } }
@keyframes d-sc-lk { 0%, 100% { transform: rotate(0deg); } 12.5%, 37.5% { transform: rotate(-80deg); } 25% { transform: rotate(0deg); } 50% { transform: rotate(-12deg); } 62.5% { transform: rotate(0deg); } 75% { transform: rotate(0deg); } 87.5% { transform: rotate(-32deg); } }
@keyframes d-sc-rl { 0%, 100% { transform: rotate(0deg); } 12.5%, 37.5% { transform: rotate(-40deg); } 25% { transform: rotate(-20deg); } 50% { transform: rotate(-10deg); } 62.5% { transform: rotate(-6deg); } 75% { transform: rotate(-6deg); } 87.5% { transform: rotate(-16deg); } }
@keyframes d-sc-rk { 0%, 100% { transform: rotate(0deg); } 12.5%, 37.5% { transform: rotate(80deg); } 25% { transform: rotate(12deg); } 50% { transform: rotate(0deg); } 62.5% { transform: rotate(0deg); } 75% { transform: rotate(0deg); } 87.5% { transform: rotate(32deg); } }
@keyframes d-sc-body { 0%, 100% { transform: translate(0px, -.4px) rotate(0deg); } 12.5%, 37.5% { transform: translate(0px, 1.7px) rotate(0deg); } 25% { transform: translate(2.4px, -1.7px) rotate(5deg); } 50% { transform: translate(-2.4px, -1.7px) rotate(-5deg); } 62.5% { transform: translate(0px, -.5px) rotate(0deg); } 75% { transform: translate(0px, -.2px) rotate(0deg); } 87.5% { transform: translate(0px, .3px) rotate(0deg); } }
.f-sc .la { transform: rotate(14deg); animation-name: d-sc-la; }
.f-sc .lf { transform: rotate(-20deg); animation-name: d-sc-lf; }
.f-sc .ra { transform: rotate(-84deg); animation-name: d-sc-ra; }
.f-sc .rf { transform: rotate(-8deg); animation-name: d-sc-rf; }
.f-sc .ll { transform: rotate(10deg); animation-name: d-sc-ll; }
.f-sc .lk { transform: rotate(0deg); animation-name: d-sc-lk; }
.f-sc .rl { transform: rotate(-20deg); animation-name: d-sc-rl; }
.f-sc .rk { transform: rotate(12deg); animation-name: d-sc-rk; }
.f-sc .body { transform: translate(2.4px, -1.7px) rotate(5deg); animation-name: d-sc-body; }
@keyframes d-a-la { 0%, 100% { transform: rotate(164deg); } 12.5%, 37.5%, 62.5% { transform: rotate(28deg); } 25%, 50%, 75% { transform: rotate(52deg); } 87.5% { transform: rotate(20deg); } }
@keyframes d-a-lf { 0%, 100% { transform: rotate(0deg); } 12.5%, 37.5%, 62.5% { transform: rotate(-100deg); } 25%, 50%, 75% { transform: rotate(-84deg); } 87.5% { transform: rotate(-40deg); } }
@keyframes d-a-ra { 0%, 100% { transform: rotate(-164deg); } 12.5%, 37.5%, 62.5% { transform: rotate(-52deg); } 25%, 50%, 75% { transform: rotate(-28deg); } 87.5% { transform: rotate(-20deg); } }
@keyframes d-a-rf { 0%, 100% { transform: rotate(0deg); } 12.5%, 37.5%, 62.5% { transform: rotate(84deg); } 25%, 50%, 75% { transform: rotate(100deg); } 87.5% { transform: rotate(40deg); } }
@keyframes d-a-ll { 0%, 100% { transform: rotate(8deg); } 12.5%, 37.5%, 62.5% { transform: rotate(10deg); } 25%, 50%, 75% { transform: rotate(10deg); } 87.5% { transform: rotate(36deg); } }
@keyframes d-a-lk { 0%, 100% { transform: rotate(0deg); } 12.5%, 37.5%, 62.5% { transform: rotate(-20deg); } 25%, 50%, 75% { transform: rotate(-20deg); } 87.5% { transform: rotate(-72deg); } }
@keyframes d-a-rl { 0%, 100% { transform: rotate(-8deg); } 12.5%, 37.5%, 62.5% { transform: rotate(-10deg); } 25%, 50%, 75% { transform: rotate(-10deg); } 87.5% { transform: rotate(-36deg); } }
@keyframes d-a-rk { 0%, 100% { transform: rotate(0deg); } 12.5%, 37.5%, 62.5% { transform: rotate(20deg); } 25%, 50%, 75% { transform: rotate(20deg); } 87.5% { transform: rotate(72deg); } }
@keyframes d-a-body { 0%, 100% { transform: translate(0px, -2.4px) rotate(0deg); } 12.5%, 37.5%, 62.5% { transform: translate(-.9px, .2px) rotate(-5deg); } 25%, 50%, 75% { transform: translate(.9px, .2px) rotate(5deg); } 87.5% { transform: translate(0px, 1.4px) rotate(0deg); } }
.f-a .la { transform: rotate(52deg); animation-name: d-a-la; }
.f-a .lf { transform: rotate(-84deg); animation-name: d-a-lf; }
.f-a .ra { transform: rotate(-28deg); animation-name: d-a-ra; }
.f-a .rf { transform: rotate(100deg); animation-name: d-a-rf; }
.f-a .ll { transform: rotate(10deg); animation-name: d-a-ll; }
.f-a .lk { transform: rotate(-20deg); animation-name: d-a-lk; }
.f-a .rl { transform: rotate(-10deg); animation-name: d-a-rl; }
.f-a .rk { transform: rotate(20deg); animation-name: d-a-rk; }
.f-a .body { transform: translate(.9px, .2px) rotate(5deg); animation-name: d-a-body; }
@keyframes d-b-la { 0%, 100% { transform: rotate(164deg); } 6.25% { transform: rotate(22deg); } 18.75%, 43.75%, 68.75% { transform: rotate(24deg); } 31.25%, 56.25%, 81.25% { transform: rotate(30deg); } 93.75% { transform: rotate(20deg); } }
@keyframes d-b-lf { 0%, 100% { transform: rotate(0deg); } 6.25% { transform: rotate(-100deg); } 18.75%, 43.75%, 68.75% { transform: rotate(-124deg); } 31.25%, 56.25%, 81.25% { transform: rotate(-96deg); } 93.75% { transform: rotate(-40deg); } }
@keyframes d-b-ra { 0%, 100% { transform: rotate(-164deg); } 6.25% { transform: rotate(-22deg); } 18.75%, 43.75%, 68.75% { transform: rotate(-30deg); } 31.25%, 56.25%, 81.25% { transform: rotate(-24deg); } 93.75% { transform: rotate(-20deg); } }
@keyframes d-b-rf { 0%, 100% { transform: rotate(0deg); } 6.25% { transform: rotate(100deg); } 18.75%, 43.75%, 68.75% { transform: rotate(96deg); } 31.25%, 56.25%, 81.25% { transform: rotate(124deg); } 93.75% { transform: rotate(40deg); } }
@keyframes d-b-ll { 0%, 100% { transform: rotate(8deg); } 6.25% { transform: rotate(0deg); } 18.75%, 43.75%, 68.75% { transform: rotate(20deg); } 31.25%, 56.25%, 81.25% { transform: rotate(4deg); } 93.75% { transform: rotate(36deg); } }
@keyframes d-b-lk { 0%, 100% { transform: rotate(0deg); } 6.25% { transform: rotate(0deg); } 18.75%, 43.75%, 68.75% { transform: rotate(-8deg); } 31.25%, 56.25%, 81.25% { transform: rotate(0deg); } 93.75% { transform: rotate(-72deg); } }
@keyframes d-b-rl { 0%, 100% { transform: rotate(-8deg); } 6.25% { transform: rotate(0deg); } 18.75%, 43.75%, 68.75% { transform: rotate(-4deg); } 31.25%, 56.25%, 81.25% { transform: rotate(-20deg); } 93.75% { transform: rotate(-36deg); } }
@keyframes d-b-rk { 0%, 100% { transform: rotate(0deg); } 6.25% { transform: rotate(0deg); } 18.75%, 43.75%, 68.75% { transform: rotate(0deg); } 31.25%, 56.25%, 81.25% { transform: rotate(8deg); } 93.75% { transform: rotate(72deg); } }
@keyframes d-b-body { 0%, 100% { transform: translate(0px, -2.4px) rotate(0deg); } 6.25% { transform: translate(0px, 0px) rotate(0deg); } 18.75%, 43.75%, 68.75% { transform: translate(-1.7px, .3px) rotate(0deg); } 31.25%, 56.25%, 81.25% { transform: translate(1.7px, .3px) rotate(0deg); } 93.75% { transform: translate(0px, 1.4px) rotate(0deg); } }
.f-b .la { transform: rotate(24deg); animation-name: d-b-la; }
.f-b .lf { transform: rotate(-124deg); animation-name: d-b-lf; }
.f-b .ra { transform: rotate(-30deg); animation-name: d-b-ra; }
.f-b .rf { transform: rotate(96deg); animation-name: d-b-rf; }
.f-b .ll { transform: rotate(20deg); animation-name: d-b-ll; }
.f-b .lk { transform: rotate(-8deg); animation-name: d-b-lk; }
.f-b .rl { transform: rotate(-4deg); animation-name: d-b-rl; }
.f-b .rk { transform: rotate(0deg); animation-name: d-b-rk; }
.f-b .body { transform: translate(-1.7px, .3px) rotate(0deg); animation-name: d-b-body; }
@keyframes d-c-la { 0%, 100% { transform: rotate(164deg); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: rotate(30deg); } 12.5%, 37.5%, 62.5% { transform: rotate(16deg); } 25%, 50%, 75% { transform: rotate(150deg); } 87.5% { transform: rotate(40deg); } 93.75% { transform: rotate(60deg); } }
@keyframes d-c-lf { 0%, 100% { transform: rotate(0deg); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: rotate(-60deg); } 12.5%, 37.5%, 62.5% { transform: rotate(-30deg); } 25%, 50%, 75% { transform: rotate(20deg); } 87.5% { transform: rotate(-70deg); } 93.75% { transform: rotate(-80deg); } }
@keyframes d-c-ra { 0%, 100% { transform: rotate(-164deg); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: rotate(-30deg); } 12.5%, 37.5%, 62.5% { transform: rotate(-16deg); } 25%, 50%, 75% { transform: rotate(-150deg); } 87.5% { transform: rotate(-40deg); } 93.75% { transform: rotate(-60deg); } }
@keyframes d-c-rf { 0%, 100% { transform: rotate(0deg); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: rotate(60deg); } 12.5%, 37.5%, 62.5% { transform: rotate(30deg); } 25%, 50%, 75% { transform: rotate(-20deg); } 87.5% { transform: rotate(70deg); } 93.75% { transform: rotate(80deg); } }
@keyframes d-c-ll { 0%, 100% { transform: rotate(8deg); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: rotate(14deg); } 12.5%, 37.5%, 62.5% { transform: rotate(0deg); } 25%, 50%, 75% { transform: rotate(0deg); } 87.5% { transform: rotate(0deg); } 93.75% { transform: rotate(20deg); } }
@keyframes d-c-lk { 0%, 100% { transform: rotate(0deg); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: rotate(-28deg); } 12.5%, 37.5%, 62.5% { transform: rotate(0deg); } 25%, 50%, 75% { transform: rotate(0deg); } 87.5% { transform: rotate(0deg); } 93.75% { transform: rotate(-40deg); } }
@keyframes d-c-rl { 0%, 100% { transform: rotate(-8deg); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: rotate(-14deg); } 12.5%, 37.5%, 62.5% { transform: rotate(0deg); } 25%, 50%, 75% { transform: rotate(0deg); } 87.5% { transform: rotate(0deg); } 93.75% { transform: rotate(-20deg); } }
@keyframes d-c-rk { 0%, 100% { transform: rotate(0deg); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: rotate(28deg); } 12.5%, 37.5%, 62.5% { transform: rotate(0deg); } 25%, 50%, 75% { transform: rotate(0deg); } 87.5% { transform: rotate(0deg); } 93.75% { transform: rotate(40deg); } }
@keyframes d-c-body { 0%, 100% { transform: translate(0px, -2.4px) rotate(0deg) scaleX(1); } 6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25% { transform: translate(-.8px, .25px) rotate(0deg) scaleX(1); } 12.5%, 37.5%, 62.5% { transform: translate(.8px, -.3px) rotate(0deg) scaleX(1); } 25%, 50%, 75% { transform: translate(0px, -1px) rotate(0deg) scaleX(1); } 87.5% { transform: translate(0px, 0px) rotate(0deg) scaleX(1); } 93.75% { transform: translate(0px, .8px) rotate(0deg) scaleX(-1); } }
.f-c .la { transform: rotate(150deg); animation-name: d-c-la; }
.f-c .lf { transform: rotate(20deg); animation-name: d-c-lf; }
.f-c .ra { transform: rotate(-150deg); animation-name: d-c-ra; }
.f-c .rf { transform: rotate(-20deg); animation-name: d-c-rf; }
.f-c .ll { transform: rotate(0deg); animation-name: d-c-ll; }
.f-c .lk { transform: rotate(0deg); animation-name: d-c-lk; }
.f-c .rl { transform: rotate(0deg); animation-name: d-c-rl; }
.f-c .rk { transform: rotate(0deg); animation-name: d-c-rk; }
.f-c .body { transform: translate(0px, -1px) rotate(0deg) scaleX(1); animation-name: d-c-body; }

/* ---------- shared dark tile with a palette glow ---------- */
.tile { display: flex; align-items: center; justify-content: center; flex: none; border-radius: var(--radius-lg);
  background: #0B0B0D;
  background: linear-gradient(0deg, color-mix(in srgb, var(--c1, #333333) 60%, transparent) 0%, transparent 70%),
              linear-gradient(155deg, color-mix(in srgb, var(--c2, #333333) 32%, transparent) 0%, transparent 42%), #0B0B0D; }

/* ---------- sections ---------- */
.sec { padding-top: 56px; padding-bottom: 56px; }
.sec h2 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; color: var(--navy); font-size: clamp(2.6rem, 5.6vw, 4.25rem); line-height: .94; text-wrap: balance; }
.sechead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.sechead .intro { margin: 0; font-size: 19px; color: var(--ink-2); }
.sechead .ctl { margin-left: auto; align-self: center; }

/* cast: eight cards, each a little camera frame with a lower third. Pressed: the pick for its scene. On camera: in the demo now. */
.sec.cast { padding-top: 8px; }
.castgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.card { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; container-type: inline-size;
        background: #0B0B0D; color: #FFFFFF; font: inherit; text-align: left; cursor: pointer; transition: transform .16s var(--expo); }
.card:disabled { cursor: default; }
.card:not(:disabled):hover { transform: translateY(-2px); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 4px solid transparent; pointer-events: none; transition: border-color .16s ease; }
.card[aria-pressed="true"]::after { border-color: var(--mustard); }
.card .tile { position: absolute; inset: 0; border-radius: 0; align-items: flex-start; }
.card .mem { width: 36cqw; height: 36cqw; margin-top: 6cqw; }
/* dancers stand on the lower third and keep their raised hands clear of the corner labels */
.card .dn { height: 31cqw; width: calc(31cqw * 60 / 32); margin-top: 15.5cqw; }
.card .dn.solo { width: calc(31cqw * 20 / 32); }
.card .cn { position: absolute; left: 0; bottom: 5cqw; max-width: 94%; display: flex; align-items: stretch; gap: 3.2cqw; padding: 2.2cqw 4.4cqw 2cqw 0; background: var(--navy);
            font-family: var(--display-75); font-weight: 800; font-stretch: 72%; font-size: clamp(15px, 7.4cqw, 24px); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.card .cn::before { content: ""; flex: none; width: 1.8cqw; min-width: 4px; margin: -2.2cqw 0 -2cqw; background: var(--mustard); }
.card .tag { position: absolute; top: 4.4cqw; left: 4.4cqw; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 241, 232, .86); }
.card .oncam { position: absolute; top: 3.2cqw; right: 3.2cqw; display: none; align-items: center; gap: 6px; padding: 6px 8px 5px; border-radius: var(--radius-sm); background: var(--beet); color: #FFFFFF;
               font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.card .oncam::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF5A5F; }
.card.on .oncam { display: inline-flex; }

/* what it does: a memo, and the app's Office notices, live */
.memo { position: relative; background: var(--manila); }
.memo .tab { position: absolute; top: -40px; left: max(0px, calc((100% - 1240px) / 2)); margin: 0 0 0 48px; height: 40px; padding: 13px 20px 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--manila);
             font-family: var(--mono); font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.memohead { font-family: var(--mono); font-size: 16px; line-height: 1.6; color: #3A3524; margin: 0 0 14px; display: grid; grid-template-columns: 64px minmax(0, 1fr); max-width: 560px; }
.memohead dt { font-weight: 700; }
.memohead dd { margin: 0; }
@media (hover: hover) { .memo .ctl:hover { background: #F0E6C8; } }
.memo .ctl:active { background: #F0E6C8; }
/* the notices, drawn in points from the app's renders (family-fixed, copy-moment, agent-finish) and zoomed together by --zn:
   closed strips around a 155 pt camera housing, each wing glowing in the song's or the agent's colours, and the call card */
.notices { --zn: 1.3; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 28px; margin-top: 24px; }
.ncol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.notice { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.nk { display: flex; justify-content: center; align-items: flex-start; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, #56657A 0%, #8D97A0 60%, #BDB5A4 100%); }
.callf { flex: 1 1 auto; }
.callf .nk { flex: 1 1 auto; }
.notice figcaption { margin-top: 10px; font-size: 17px; line-height: 1.4; color: #26344B; }
.calm { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-family: var(--mono); font-size: 15px; color: #3A3524; }
/* the island's own off switch: the mug at the end of its bottom row */
.bubble { display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
          background: radial-gradient(circle at 32% 30%, #2E8A7E, #6E5A14 60%, #7A3A18); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35); }
.bubble svg { display: block; width: 17px; height: 17px; }
.strip, .ccard { --hc: 155px; position: relative; flex: none; zoom: var(--zn); margin-bottom: 14px; background: #000; color: #FFFFFF; font-family: var(--system); }
.strip { width: calc(var(--wl) + var(--hc) + var(--wr)); height: 32px; border-radius: 0 0 12px 12px; }
.s-charge { --wl: 153px; --wr: 64px; }
.s-vol { --wl: 176.75px; --wr: 81px; }
.s-copy { --wl: 171.75px; --wr: 70.75px; }
.s-agents { --wl: 66px; --wr: 66px; }
.s-finish { --wl: 181px; --wr: 127px; }
/* each wing's glow: strongest at the strip's end, gone before the housing */
.sg { position: absolute; top: 0; height: 32px; pointer-events: none; }
.sg.l { left: 0; width: calc(var(--wl) + 30px); border-radius: 0 0 0 12px;
  background: radial-gradient(85% 130% at 0% 100%, var(--g1), transparent 75%), radial-gradient(70% 110% at 35% 0%, var(--g2), transparent 75%), linear-gradient(90deg, var(--g3), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.sg.r { right: 0; width: calc(var(--wr) + 30px); border-radius: 0 0 12px 0;
  background: radial-gradient(85% 130% at 100% 100%, var(--g1), transparent 75%), radial-gradient(70% 110% at 65% 0%, var(--g2), transparent 75%), linear-gradient(270deg, var(--g3), transparent);
  -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); }
.g-teal { --g1: #12A398; --g2: #0E7F78; --g3: #0B5550; }
.g-gold { --g1: #B98418; --g2: #8E6212; --g3: #5E400B; }
.g-claude { --g1: #B5602F; --g2: #93491F; --g3: #6A3215; }
.g-codex { --g1: #4248E0; --g2: #3236B0; --g3: #23256E; }
.g-ochre { --g1: #BB8234; --g2: #8E6123; --g3: #614218; }
.g-rust { --g1: #D96959; --g2: #A64D41; --g3: #71342C; }
.g-pink { --g1: #DB5B94; --g2: #A8426F; --g3: #732D4B; }
.g-violet { --g1: #887EE9; --g2: #665EB3; --g3: #45407A; }
.g-blue { --g1: #578EE8; --g2: #3F6AB2; --g3: #2A487A; }
.g-peach { --g1: #BD7D66; --g2: #905D4B; --g3: #623F32; }
.strip::before, .strip::after, .ccard::before, .ccard::after { content: ""; position: absolute; top: 0; width: 6px; height: 6px; }
.strip::before, .ccard::before { left: -6px; background: radial-gradient(circle at 0 100%, transparent 5.5px, #000 6px); }
.strip::after, .ccard::after { right: -6px; background: radial-gradient(circle at 100% 100%, transparent 5.5px, #000 6px); }
.strip .hc, .ccard .hc { position: absolute; top: 0; height: 24px; width: var(--hc); border-radius: 0 0 10px 10px; background: #141414; }
.strip .hc { left: var(--wl); }
.ccard .hc { left: 50%; margin-left: calc(var(--hc) / -2); }
.strip .w { position: absolute; top: 0; height: 32px; display: flex; align-items: center; }
.strip .w.l { left: 0; width: var(--wl); padding-left: 8px; gap: 7px; }
.strip .w.r { right: 0; width: var(--wr); padding-right: 10px; justify-content: flex-end; gap: 6px; }
.s-agents .w.l, .s-agents .w.r { justify-content: center; gap: 5px; padding: 0; }
.l3, .who { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.strip .t1 { font-size: 13px; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strip .t1.b { font-weight: 700; }
.strip .tv { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: #E6E6E6; white-space: nowrap; }
.cap { display: flex; align-items: center; gap: 3.5px; margin-top: 2px; font: 500 7.6px/1.1 "SF Mono", ui-monospace, Menlo, var(--mono); letter-spacing: .02em; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.cap::before { content: ""; flex: none; width: 1.5px; height: 7.5px; background: var(--mustard); }
/* charging: the mug, a bolt on it, fills to the charge in the song's colour, grey steam above */
.mugwrap { display: block; flex: none; width: 17px; height: 20.4px; margin-top: -3px; }
.mugn { display: block; width: 100%; height: 100%; overflow: visible; }
.mugn * { transform-box: view-box; transform-origin: 0 0; }
.mugn .steam { fill: none; stroke: #7C7C7C; stroke-width: 1.3; stroke-linecap: round; }
.mugn .lvl { fill: #8FE3DA; transform: translateY(4.1px); }
.mugn .stream { fill: #8FE3DA; opacity: 0; transform-origin: 7.7px -3px; }
.mugn .bolt { fill: #141416; transform-box: fill-box; transform-origin: center; }
/* copy: the office copier. Without motion the sheet is out; on arrival one scan sweeps the glass, then the sheet slides out. */
.copier { display: block; flex: none; width: 22px; height: 18px; overflow: visible; }
.copier * { transform-box: view-box; transform-origin: 0 0; }
.copier .scan { opacity: 0; }
/* the agent finished: its mark in a gold ring with a small trophy (Employee of the Month), and one burst of confetti */
.eotm { position: relative; display: block; flex: none; width: 25px; height: 20px; }
.eotm .gold { position: absolute; left: 0; top: .8px; width: 18.4px; height: 18.4px; border-radius: 50%; border: 2px solid #E8C04A; box-shadow: 0 0 4px rgba(242, 201, 76, .55); }
.eotm .disc { position: absolute; left: 2.6px; top: 3.4px; width: 13.2px; height: 13.2px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #3A1E10; }
.eotm .disc svg { display: block; width: 9px; height: 9px; overflow: visible; }
.eotm .trophy { position: absolute; left: 15.6px; top: 9.4px; width: 9.6px; height: 10.6px; }
.confetti { position: absolute; left: 9.2px; top: 10px; width: 0; height: 0; }
.confetti i { position: absolute; left: -1px; top: -.6px; width: 2px; height: 1.2px; border-radius: .3px; opacity: 0; background: #F2C94C; }
.confetti i:nth-child(3n + 2) { background: #22D3C5; }
.confetti i:nth-child(3n) { background: #EB9F7F; width: 1.4px; height: 1.4px; border-radius: 50%; }
/* volume: the connect card's boombox in miniature, its cones kicking on the beat */
.minibox { display: block; flex: none; width: 22px; height: 13px; overflow: visible; }
.minibox .cone { transform-box: fill-box; transform-origin: center; animation: kick 1.2s var(--expo) infinite; }
@keyframes kick { 0% { transform: scale(1.12); } 18%, 100% { transform: scale(1); } }
/* the VU meter: nine 3 pt capsules from 6 to 18 pt, lit low to high in the moment's colours, the top two beet, unlit at 14% white.
   It shows the level as the app does: ceil(level x 9) lit, so 85% lights eight. */
.vu { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.vu i { display: block; flex: none; width: 3px; border-radius: 1px; background: rgba(255, 255, 255, .14); }
.vu i.on { background: var(--c); box-shadow: 0 0 2.5px color-mix(in srgb, var(--c) 55%, transparent); }
.vu i:nth-child(1) { height: 6px; }  .vu i:nth-child(2) { height: 7.5px; }  .vu i:nth-child(3) { height: 9px; }
.vu i:nth-child(4) { height: 10.5px; }  .vu i:nth-child(5) { height: 12px; }  .vu i:nth-child(6) { height: 13.5px; }
.vu i:nth-child(7) { height: 15px; }
.vu i:nth-child(8) { height: 16.5px; }
.vu i:nth-child(9) { height: 18px; }
/* the call card: blinds behind, a desk phone ringing twice, then a pause */
.ccard { --cw: 372px; width: var(--cw); height: 170px; border-radius: 0 0 36px 36px; }
.blinds { position: absolute; left: 16px; right: 16px; top: 38px; bottom: 14px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .075) 0 2px, transparent 2px 5px);
          -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.ringer { position: absolute; left: 17px; top: 69px; width: 58px; height: 58px; }
.ringer > span { position: absolute; border-radius: 50%; }
.ringer .rim, .ringer .rp { inset: 0; border: 2.4px solid var(--mustard); }
.ringer .rp { opacity: 0; animation: ring 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
.ringer .rp.r2 { animation-delay: .32s; }
@keyframes ring { 0% { opacity: .85; transform: scale(1); } 22%, 100% { opacity: 0; transform: scale(1.5); } }
.ringer .phone { inset: 5.5px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #F7D774, #C9A227); animation: wiggle 2.4s ease-in-out infinite; }
.ringer .phone svg { display: block; width: 24px; height: 24px; }
@keyframes wiggle { 0%, 34%, 100% { transform: rotate(0deg); } 4%, 12%, 20%, 28% { transform: rotate(-9deg); } 8%, 16%, 24% { transform: rotate(9deg); } }
.who { position: absolute; left: 94.5px; top: 66px; }
.ccard .t1 { font-size: 19.5px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.ccard .t2 { margin-top: 3px; font-size: 13.5px; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, .82); }
.ccard .cap { margin-top: 9px; gap: 5px; font-size: 10px; }
.ccard .cap::before { width: 2px; height: 10px; }

/* the playground: these strips, cloned into the hero's island, sized for their widest reading; site.js sets --fit */
.onair { position: absolute; left: 0; right: 0; top: 0; height: 32px; pointer-events: none; transform: scale(var(--fit, 1)); transform-origin: 50% 0; }
.onair .strip { --hc: 64px; position: absolute; top: 0; left: calc(50% - (var(--wl) + var(--hc) + var(--wr)) / 2); zoom: 1; margin: 0; visibility: hidden; transform-origin: 50% 0; }
.onair .strip.on { visibility: visible; }
.onair .s-charge { --wl: 134px; --wr: 48px; }
.onair .s-vol { --wl: 168px; --wr: 62px; }
.onair .s-copy { --wl: 100px; --wr: 46px; }
.onair .s-finish { --wl: 150px; --wr: 116px; }
.onair .lvl, .onair .stream { fill: color-mix(in srgb, var(--song1) 62%, #FFFFFF); }
.onair .minibox .cone { animation: none; }
.onair .mute { opacity: 0; fill: none; stroke-linecap: round; }
.onair .mute path { stroke: #0B0B0D; stroke-width: 3.4; }
.onair .mute path + path { stroke: #E5484D; stroke-width: 1.6; }
.onair .muted .mute { opacity: 1; }
.onair .muted .minibox > :not(.mute) { opacity: .5; }

/* install */
.navy { background: var(--navy); color: var(--paper); }
.navy .sec h2 { color: var(--paper); }
.navy .intro { color: #E6E1D2; }
.navy a { color: var(--jelly); }
.navy a:hover { color: #FFF0A0; }
.req { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; font-size: 17px; color: #E6E1D2; }
.req p { margin: 0; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 16px; align-items: baseline; align-content: start; }
.step > .txt, .step > .code { grid-column: 2; }
.step > .code { max-width: 780px; }
.step .n { font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 52px; line-height: 1; color: var(--jelly); }
.step .lab { font-family: var(--display-87); font-weight: 700; font-stretch: 87%; font-size: 19px; line-height: 1.25; }
.step .txt { margin: 0; font-size: 18px; color: #F4F1E8; max-width: 62ch; }
.step .txt strong:not(.lab), .after strong { font-family: var(--display-87); font-weight: 700; font-stretch: 87%; }
.code { display: flex; align-items: stretch; background: var(--navy-deep); border: 1px solid #3A5377; border-radius: var(--radius-lg); min-width: 0; }
.code pre, .code > code { flex: 1 1 auto; min-width: 0; margin: 0; overflow-x: auto; white-space: pre; padding: 14px 16px 12px; font-family: var(--mono); font-size: 15px; line-height: 1.55; color: var(--paper);
                          scrollbar-width: thin; scrollbar-color: #5A7399 transparent; border-radius: calc(var(--radius-lg) - 1px) 0 0 calc(var(--radius-lg) - 1px); }
.code pre code { font: inherit; }
.copy { flex: none; min-width: 80px; min-height: 48px; border: 0; border-left: 1px solid #3A5377; border-radius: 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0; background: transparent; color: var(--jelly); cursor: pointer;
        font: 700 15px/1 var(--mono); transition: background-color .15s ease, color .15s ease; }
.copy:hover { background: var(--jelly); color: var(--navy-deep); }
.copy.done { background: #4EBA65; color: #0B1E12; }
.code.inline { display: inline-flex; max-width: 100%; }
.after { margin: 36px 0 0; padding-top: 26px; border-top: 1px solid #3A5377; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; }
.after > div { min-width: 0; }
.after .upd { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.after dt { font-family: var(--display-75); font-weight: 800; font-stretch: 75%; font-size: 22px; text-transform: uppercase; line-height: 1.1; margin-bottom: 6px; }
.after .upd dt { margin: 0; }
.after dd { margin: 0; font-size: 17px; min-width: 0; color: #F4F1E8; }

/* credits */
.credits { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; font-size: 16px; color: var(--ink-2); }
.credits p { margin: 0 0 10px; max-width: 58ch; }
.credits .disc { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.signoff { font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 30px; text-transform: uppercase; color: var(--navy); line-height: 1; }
.credits .signoff { margin-bottom: 14px; }

/* 404 */
.lost { padding-top: 40px; padding-bottom: 56px; }
.lost h1 { margin: 0 0 20px; font-family: var(--display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; color: var(--navy); line-height: .9; font-size: clamp(3.1rem, 9.2vw, 6rem); text-wrap: balance; }
.lost p { margin: 0 0 28px; font-size: 19px; max-width: 52ch; color: var(--ink-2); }
.lost .memohead { margin-bottom: 28px; }
.lost .stage { margin-top: 36px; }

/* ---------- responsive: drawn at 1440 and 390. The island's zoom steps so the notch spans the screen with an inset, and the lower third keeps clear of it. ---------- */
/* install: two by two from 1000 px. The build step's Copy sits on its label row and the clone line is sized to fit the block. */
@media (min-width: 1000px) {
  .steps { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 28px 40px; }
  .step.wide { position: relative; container-type: inline-size; }
  .step.wide > .code { grid-column: 1 / -1; max-width: none; display: block; }
  .step.wide pre { font-size: clamp(12px, (100cqw - 34px) / 41, 15px); border-radius: calc(var(--radius-lg) - 1px); }
  .step.wide .copy { position: absolute; top: 2px; right: 0; min-height: 44px; border: 1px solid #3A5377; border-radius: var(--radius-md); }
}
@media (min-width: 1200px) {
  .steps { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px 56px; }
}
/* 1200-1279: a step down, so the snap-zoom keeps both wings on screen */
@media (min-width: 1200px) and (max-width: 1279px) {
  .stage { --z: 3.05; }
  .notices { --zn: 1.25; }
}
@media (min-width: 1680px) {
  .wrap { max-width: 1400px; }
  .memo .tab { left: max(0px, calc((100% - 1400px) / 2)); }
  .stage { --z: 3.65; height: 280px; }
  .lower .nm { font-size: 30px; }
  .lower .rl { font-size: 16px; }
  .notices { --zn: 1.5; }
}
@media (max-width: 1199px) {
  .stage { --z: 2.5; height: 222px; }
  .lower .nm { font-size: 24px; }
  .lower .rl { font-size: 14px; }
  .notices { --zn: 1.1; }
}
@media (min-width: 1000px) and (max-width: 1099px) {
  .notices { --zn: 1; }
}
@media (max-width: 999px) {
  .stage { --z: 1.85; height: 184px; --bezel: 8px; }
  .lower { left: 18px; bottom: 16px; max-width: calc(100% - 36px); }
  .lower .nm { font-size: 21px; padding: 8px 16px 7px 0; gap: 12px; }
  .lower .nm::before { width: 5px; margin: -8px 0 -7px; }
  .lower .rl { font-size: 13.5px; padding: 7px 12px 7px 17px; }
  .herorow { grid-template-columns: minmax(0, 1fr); }
  .cta { align-items: flex-start; }
  .castgrid { gap: 12px; }
  .card .cn { font-size: clamp(14px, 7.4cqw, 24px); }
  .card .tag { font-size: 10px; }
  .card .oncam { font-size: 9.5px; padding: 5px 6px 4px; gap: 5px; }
  .card .oncam::before { width: 6px; height: 6px; }
  .notices { --zn: 1.4; grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 44px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .navlinks { gap: 16px; }
  .navlinks .hideable { display: none; }
  .brand { font-size: 20px; padding: 11px 0; }
  .hero { padding-top: 12px; padding-bottom: 32px; }
  .herorow { margin: 16px 0 22px; gap: 18px; }
  .hero .sub { font-size: 17px; }
  .hero .sub strong { font-size: 23px; }
  .hero .fact { font-size: 15px; }
  .cta { width: 100%; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .stage { --z: 1.8; --snap: 1; --bezel: 6px; height: 166px; }
  .lower { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .lower .nm { font-size: 18px; }
  .lower .rl { font-size: 13px; }
  .memo .tab { margin-left: 16px; }
  .sec { padding-top: 40px; padding-bottom: 40px; }
  .sec.cast { padding-top: 4px; }
  .sechead .intro { font-size: 17px; }
  .castgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .card .cn { font-size: clamp(13px, 7.6cqw, 24px); }
  .notices { --zn: 1.2; }
  .strip { --hc: 80px; }
  .onair .strip { --hc: 40px; }
  .notice figcaption { font-size: 16px; }
  .calm { font-size: 14px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 12px; }
  .step .n { font-size: 40px; }
  .copy { min-width: 72px; }
  .after { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .credits { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 639px) {
  .stage { --cam: 150px; }
  .onair .strip { --hc: 24px; }
}
/* phones: a narrower camera housing so the cast and the notices read larger; every wing keeps an inset from the bezel */
@media (max-width: 560px) {
  .stage { --cam: 120px; --z: 1.6; height: 158px; }
  .lost .stage { height: 176px; }
  .notices { --zn: 1.12; }
  .strip { --hc: 28px; }
  .ccard { --cw: 300px; --hc: 120px; }
  .step > .code { grid-column: 1 / -1; }
  /* the playground bar: two full-width rows, scenes over moments */
  .cgrp { flex: 1 1 100%; }
  .seg.wide { flex: 1 1 auto; }
  .seg.wide .ctl { flex: 1 1 0; min-width: 44px; padding: 0 6px; }
}
@media (max-width: 374px) {
  .tryl { display: none; }
}
@media (max-width: 449px) {
  .stage { --z: 1.45; height: 152px; }
}
@media (max-width: 419px) {
  .stage { --z: 1.3; height: 148px; }
  .notices { --zn: 1.03; }
}
@media (max-width: 389px) {
  .stage { --z: 1.2; height: 146px; }
}
@media (max-width: 379px) {
  .notices { --zn: .95; }
}
@media (max-width: 359px) {
  .stage { --z: 1.08; height: 142px; }
  .notices { --zn: .9; }
}
/* 320 px: the island scales down so both wings stay on screen */
@media (max-width: 344px) {
  .stage { --z: 1; }
  .notices { --zn: .82; }
}
/* landscape phones: a tighter hero, so the notch is on the first screen */
@media (max-height: 520px) and (min-width: 600px) and (orientation: landscape) {
  .nav { padding-top: 2px; padding-bottom: 2px; }
  .hero { padding-top: 0; }
  .hero h1 { font-size: 3rem; }
  .herorow { grid-template-columns: minmax(0, 1fr) auto; margin: 8px 0 14px; gap: 8px 24px; }
  .hero .sub { font-size: 15px; }
  .hero .sub strong { font-size: 20px; margin-bottom: 2px; }
  .hero .fact { margin-top: 6px; font-size: 13.5px; }
  .cta { width: auto; align-items: flex-end; gap: 6px; }
  .actions { width: auto; flex-wrap: nowrap; gap: 10px; }
  .actions .btn { flex: none; min-height: 44px; padding: 0 18px; }
}

/* ---------- motion control: Pause stops the cycle and every loop; off-screen regions rest; nothing is ever hidden ---------- */
html.paused *, html.paused *::before, html.paused *::after,
.rest *, .rest *::before, .rest *::after { animation-play-state: paused !important; }
/* entrances never wait on a paused clock: they finish instantly */
html.paused :is(.slot.enter, .lower.wipe .bar, .shot.snap, .boot .pad, .boot .glow) { animation: none !important; }
/* the looping demos wait for site.js, which sets .live once Pause works (WCAG 2.2.2); until then they hold a still frame */
html:not(.live) :is(.mem, .dn, .ag, .nk) :is(*, *::before, *::after), html:not(.live) .dn::after { animation: none !important; }
/* no JS (or JS that never arrived): a finished, still page */
html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after,
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
