/* A product page, the kit: Sacred's page (sacred/index.html), its stylesheet as it is, so every product's
   page is the same page: the header, the hero (the window, the strip of six docking in the header), the story (the big
   knob, the beats and their controls), the sections, the end, the windows over the page (Get, Hear it). A product's own
   stylesheet sets its look (--a, --g, --bg) and whatever it draws of its own. */
:root {
  --bg: #0b0c0f; --text: #eeeff2; --text-2: #9ba1ab; --text-3: #646a74; --rule: rgba(255,255,255,.07); --gold: #e8bd5c;
  --a: #8ec5e8; --g: #0c0e12; /* the instrument in the hero */
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --name: "Ubuntu", "Segoe UI", sans-serif;
  /* every fade into the page's ground eases in and out (smootherstep), so none starts or ends on a line the eye can find */
  --ease: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .009) 10%, rgb(0 0 0 / .058) 20%, rgb(0 0 0 / .163) 30%, rgb(0 0 0 / .317) 40%,
    rgb(0 0 0 / .5) 50%, rgb(0 0 0 / .683) 60%, rgb(0 0 0 / .837) 70%, rgb(0 0 0 / .942) 80%, rgb(0 0 0 / .991) 90%, #000);
  --ease-up: linear-gradient(to top, rgb(0 0 0 / 0), rgb(0 0 0 / .009) 10%, rgb(0 0 0 / .058) 20%, rgb(0 0 0 / .163) 30%, rgb(0 0 0 / .317) 40%,
    rgb(0 0 0 / .5) 50%, rgb(0 0 0 / .683) 60%, rgb(0 0 0 / .837) 70%, rgb(0 0 0 / .942) 80%, rgb(0 0 0 / .991) 90%, #000);
  --solid: linear-gradient(#000, #000);
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* the figures and words under the window's knobs, in the app's own monospace (Hack, as egui draws it; its licence in the file) */
@font-face { font-family: "Hack Readout"; src: url(/fonts/hack-readout.woff2) format("woff2"); font-display: block; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.hero, .get { min-height: 100svh; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
/* the rings and glows of the story and the agent card reach past the screen: clipped at its edges, or a phone lays the
   page out wider than itself and shows it zoomed out (Safari on iOS ignores the body's overflow-x for that) */
.story, .make { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--gold) 40%, transparent); }
.frame { width: min(1200px, 100% - clamp(32px, 10vw, 180px)); margin: 0 auto; }
.label { font: 500 .7rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 24px; border-radius: 3px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 .95rem/1 var(--sans); font-stretch: 112%; white-space: nowrap; transition: background .3s, box-shadow .3s, filter .3s; }
.btn svg { width: 13px; height: 13px; flex: none; }
.btn.gold { background: var(--gold); color: #1a1408; }
.btn.gold:hover { background: #f4cd72; }
.btn.line { background: none; color: var(--text); box-shadow: inset 0 0 0 1px #363a42; }
.btn.line:hover { box-shadow: inset 0 0 0 1px #6c727c; }
/* what's not to be read as text (the controls, the window and the knobs drawn as the app's, their labels, the player
   docked at the foot) is passed over by a selection; the words stay selectable */
.top, .strip, .stack, .acts, .big, .beats .show, .lanes, .ask, .tags, .label, .song, .altar, .store, .btn, button, .demos { -webkit-user-select: none; user-select: none; }
.store { display: inline-flex; flex: none; }
.buy { display: contents; }
.store img { display: block; height: 50px; width: auto; }
/* the Buy and App Store buttons show once build.mjs marks the page on sale for their platform (sales.js: data-sales lists
   them); till then, "Coming soon". The line over them says "sold separately" once one platform is on sale */
:root:not([data-sales]) .sale-any, :root[data-sales] .soon-any,
:root:not([data-sales~="windows"]) :is(.windows .sale, .sale.windows), :root[data-sales~="windows"] .windows .soon,
:root:not([data-sales~="ipad"]) :is(.ipad .sale, .sale.ipad), :root[data-sales~="ipad"] .ipad .soon { display: none !important; }

/* ---------- the header: the stone, and the way to get it */
.top { position: fixed; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.top.solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--rule); }
.top .frame { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.crumbs { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 24px; height: 24px; color: var(--text); }
.brand span { font: 300 .95rem/1 var(--name); letter-spacing: .42em; }
.top .btn { height: 38px; padding: 0 16px; font-size: .85rem; }
/* beside Get Sacred, its price: the launch price, the regular one struck through */
.get-it { display: flex; align-items: center; gap: 14px; }
.cost { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; column-gap: 7px; line-height: 1; text-align: right; }
.cost small { flex-basis: 100%; margin-bottom: 4px; font: 500 .58rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cost s { font: 400 .82rem/1 var(--sans); color: var(--text-3); text-decoration-thickness: 1px; }
.cost b { font: 600 1.05rem/1 var(--sans); font-stretch: 112%; color: var(--text); }
@media (max-width: 420px) { .cost small { display: none; } .get-it { gap: 10px; } }

/* ---------- the hero: what the knob does, and the window it does it in */
.hero { position: relative; display: grid; grid-template-rows: auto auto; align-content: center; padding: 72px 0 clamp(16px, 3svh, 36px); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 55%, color-mix(in srgb, var(--a) 15%, var(--g)), transparent 70%), linear-gradient(var(--g), var(--bg)); }
/* the line over the window, the window over its six, Hear it under them: one column down the middle */
.hero .frame { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; text-align: center; padding: clamp(14px, 3svh, 40px) 0 0; }
.hero h1 { margin: clamp(8px, 1.6svh, 16px) 0 clamp(16px, 3svh, 28px); padding: 0 .12em; font: 400 italic clamp(2.2rem, min(5.4vw, 8svh), 4.8rem)/1.05 var(--serif); text-wrap: balance;
  /* a light crosses it once it's in, as at the end of the page (its resting colour the text's either side) */
  background: linear-gradient(100deg, var(--text) 40%, #fff1c2 47%, #e8bd5c 50%, #fff1c2 53%, var(--text) 60%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .words { display: grid; justify-items: center; will-change: transform, opacity; }   /* (drifting off as the page scrolls, below) */
.hero .lede { margin: 0; font: 300 clamp(.8rem, 1.2vw, 1.05rem)/1.8 var(--name); letter-spacing: .32em; text-transform: uppercase; color: var(--text-2); text-wrap: balance; }
.hero h1 span { white-space: nowrap; }
.hero .acts { position: relative; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: clamp(28px, 5svh, 56px); }
/* Hear it: the story's listen button, larger: the play sign in a disc of the instrument's colour, a thin ring going out
   from it till it's pressed, the word in the name's letters; no box */
.hero .acts { align-items: center; }
.hero .btn.play { height: 60px; padding: 0 6px 0 0; gap: 18px; background: none; color: var(--text); font: 300 1rem/1 var(--name);
  letter-spacing: .32em; text-transform: uppercase; }
.hero .btn.play i { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--a); color: var(--g); transition: background .6s, transform .3s; }
.hero .btn.play i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--a); opacity: 0; }
.hero .btn.play svg { width: 16px; height: 16px; margin-left: 3px; }
.hero .btn.play span { margin-right: -.32em; transition: color .3s; }
.hero .btn.play:hover i { transform: scale(1.06); }
.hero .btn.play:hover span { color: var(--a); }
.hero .btn.play:focus-visible { outline: none; } .hero .btn.play:focus-visible i { outline: 2px solid var(--a); outline-offset: 4px; }   /* (the ring round the disc alone) */

.stack { position: relative; perspective: 2200px; width: min(1060px, 100%); justify-self: center; }
.hero .rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .frame, .hero > .slot { position: relative; z-index: 1; }
/* its foot eased into the page's ground, rings and light with it: no seam with what comes after */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--bg);
  -webkit-mask: var(--ease) bottom / 100% 26% no-repeat; mask: var(--ease) bottom / 100% 26% no-repeat; }
.stack .tilt { position: relative; transform-origin: 50% 60%; will-change: transform; cursor: pointer; }   /* (its tilt set frame by frame, below) */
/* over its keyboard, the keys it's playing, lit in its colour (the keyboard's place on the 1300 x 950 picture, a margin round it) */
.stack .keys { position: absolute; left: 15.385%; top: 75.789%; width: 80%; height: 24.211%; z-index: 1; pointer-events: none; }
/* a gleam crossing its glass as the instrument changes */
/* (there only while it crosses: a layer over the window, even a clear one, costs every frame; and no blending, which
   for a white light is the same and costs far more) */
.stack .sweep { position: absolute; inset: 0; z-index: 2; display: none; border-radius: 12px; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .08) 50%, transparent 58%) 130% 0 / 260% 100% no-repeat; }
.stack .sweep.go { display: block; animation: sweep 1.4s cubic-bezier(.35,.55,.25,1); }
@keyframes sweep { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.stack .pane { position: relative; z-index: 0; opacity: 0; visibility: hidden; transition: opacity 0s .8s, visibility 0s .8s; }
.stack .pane + .pane { position: absolute; inset: 0; }
.stack .pane.on { z-index: 1; opacity: 1; visibility: visible; transition: opacity .8s; }
.stack img { display: block; width: 100%; height: auto; border-radius: 12px; }
/* over each window its knobs, Transmute and the three character knobs, drawn as the app draws them and turned as it
   plays (the picture's x 150 to 834 and y 120 to 644, where they are) */
.stack .dials { position: absolute; pointer-events: none; }
.stack .dials.t { left: 35.846%; top: 17.684%; width: 28.308%; height: 45.895%; }   /* (Transmute: the picture's 466 to 834 across, 168 to 604 down) */
.stack .dials.c { left: 11.538%; top: 12.632%; width: 11.692%; height: 55.158%; }   /* (the character knobs: 150 to 302, 120 to 644) */
.stack .tilt::after { content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  box-shadow: 0 60px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08), 0 0 160px color-mix(in srgb, var(--a) 18%, transparent); }

.slot { padding-top: clamp(16px, 3svh, 44px); }
.slot .mark { height: 1px; margin-bottom: -1px; }   /* (where the six's top is: they dock in the header once it's there) */
.strip { display: flex; align-items: flex-start; justify-content: center; gap: clamp(14px, 5vw, 64px); padding: 0 16px clamp(20px, 3.5svh, 44px);  transition: opacity .3s; }
.strip button { --c: #fff; position: relative; display: grid; justify-items: center; gap: 12px; background: none; border: 0; padding: 0 0 14px; cursor: pointer; color: var(--text-3); }
.strip svg { width: 30px; height: 30px; transition: color .3s, filter .3s; }
.strip b { font: 300 .7rem/1 var(--name); letter-spacing: .3em; margin-right: -.3em; transition: color .3s; }
.strip i { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; }
.strip button[aria-current="true"] { color: var(--c); }
.strip button[aria-current="true"] svg { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); }
.strip button[aria-current="true"] b { color: var(--text); }
.strip button:hover svg, .strip button:focus-visible svg { color: var(--c); }
/* after the six, a line, and the window's sound: off till it's pressed, then in the colour of the instrument heard */
.strip .sound { --c: var(--a); margin-left: clamp(0px, 2vw, 24px); }
.strip .sound::before { content: ""; position: absolute; top: 2px; height: 30px; width: 1px; background: rgba(255,255,255,.12);
  left: calc(clamp(18px, 5vw, 64px) / -2 - clamp(0px, 2vw, 24px) / 2); }
.strip .sound svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.strip .sound .w { opacity: 0; transition: opacity .3s; } .strip .sound .x { transition: opacity .3s; }
.strip .sound[aria-pressed="true"] { color: var(--c); }
.strip .sound[aria-pressed="true"] svg { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); }
.strip .sound[aria-pressed="true"] b { color: var(--text); }
.strip .sound[aria-pressed="true"] .w { opacity: 1; } .strip .sound[aria-pressed="true"] .x { opacity: 0; }
@media (max-width: 560px) { .strip .sound { margin-left: 0; } .strip .sound::before { left: calc(clamp(14px, 5vw, 64px) / -2); } }
.strip button:focus-visible { outline: none; }
/* once the page brings them up to the header, the six dock in it and go on there, the bar under the one shown: in its
   middle, their signs alone (user); on a narrow screen, in a band under it. Back in their place as the page comes back */
.slot.up { z-index: 31; }   /* (over the header) */
.strip.up { position: fixed; inset: 0 0 auto; height: 72px; align-items: center; gap: clamp(18px, 2.2vw, 34px); padding: 0 16px; pointer-events: none; animation: dock .35s cubic-bezier(.2,.7,.2,1); }
.strip.up button { gap: 0; padding: 0 0 8px; pointer-events: auto; }
.strip.up svg { width: 22px; height: 22px; }
.strip.up b { display: none; }
.strip.up .sound { margin-left: clamp(0px, 1vw, 12px); }
.strip.up .sound::before { top: 1px; height: 22px; left: calc(clamp(18px, 2.2vw, 34px) / -2 - clamp(0px, 1vw, 12px) / 2); }
@keyframes dock { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 760px) {
  .strip.up { top: 72px; height: 52px; pointer-events: auto; border-bottom: 1px solid var(--rule);
    background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
/* the player docked at the foot: the window's sound is no longer to be had */
body.docked .strip .sound { display: none; }
body.docked .stack .tilt { cursor: auto; }
@media (max-width: 980px) {
  .stack { margin: 0; width: 100%; }
}
@media (max-width: 560px) {
  .crumbs { gap: 14px; }
  .brand span + span { display: none; }
  .hero .frame { padding: 2svh 0; }
  .slot { padding-top: 2svh; } .strip { padding: 0 16px 2.5svh; }
  .strip b { display: none; } .strip svg { width: 26px; height: 26px; }
  .hero .acts, .get .acts { gap: 10px; } .hero .btn, .get .btn { height: 46px; padding: 0 15px; font-size: .86rem; } .store img { height: 46px; }
  .hero .btn.play { height: 52px; padding: 0; gap: 14px; font-size: .9rem; } .hero .btn.play i { width: 48px; height: 48px; }
  .stack { width: calc(100vw - 16px); justify-self: center; }
}

/* ---------- the story under the hero, of the instrument it shows (its colours: --a, --g on the root, eased between
   two): I its knob turned and heard, II its three character knobs and the die, III its own key, IV its ten presets */
.story { position: relative; isolation: isolate; padding: clamp(72px, 12svh, 130px) 0 clamp(24px, 4svh, 44px);
  background: radial-gradient(50% 40% at 72% 28%, color-mix(in srgb, var(--a) 10%, var(--g)), transparent 75%), var(--g); }
/* the page's ground at each edge, eased: no seam with the hero or the end */
.story::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--bg);
  -webkit-mask: var(--ease-up) top / 100% 18% no-repeat, var(--ease) bottom / 100% 18% no-repeat;
  mask: var(--ease-up) top / 100% 18% no-repeat, var(--ease) bottom / 100% 18% no-repeat; }
.story h2 { margin: clamp(10px, 2.5svh, 20px) 0 0; font: 500 clamp(2rem, min(4.8vw, 9svh), 4.2rem)/1 var(--sans); font-stretch: 112%; letter-spacing: -.02em; }
.story .label { color: var(--a); transition: color .8s; }
.story .swap { transition: opacity .22s; }
.story.far, .story.far * { transition: none !important; }   /* (out of sight: see tell, below) */
.story.swapping .swap { opacity: 0; }
/* I: the words on the left, the knob on the right */
.one { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
/* (in the hero, under the headline: what Sacred is; one fixed colour, never the instrument's, so they stay still) */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 clamp(18px, 3.4svh, 30px); padding: 0; list-style: none; }
.tags li { padding: 8px 13px; border-radius: 3px; border: 1px solid #3a3f48; background: rgba(216,222,230,.05);
  font: 600 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
body.far6 .strip { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.tags li.agent { border-color: rgba(232,189,92,.7); background: rgba(232,189,92,.1); }   /* (the gold of the agent's sections, below) */
.one .words > p { margin: clamp(14px, 3svh, 26px) 0 0; max-width: 420px; color: var(--text-2); font-size: 1.08rem; }
/* the knob, as ui.rs draws it (270 degrees, ticks at the left, middle and right), in the instrument's colour, its sign on the cap */
.big { position: relative; margin: 0; justify-self: center; width: min(100%, 66svh, 540px); }
.big svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; cursor: pointer; }
.big .rings { position: absolute; z-index: -1; pointer-events: none; }   /* (its rings, on a canvas under it, placed as they're drawn: behind all the story, the cards and Heard in too) */
.big .t { font: 500 13px var(--mono); letter-spacing: .14em; fill: var(--text-3); text-transform: uppercase; transition: fill .3s; }
.big .t.on { fill: var(--a); }
.big .name { font: 300 30px var(--name); letter-spacing: .3em; fill: var(--text); }
.big .lit { stroke: var(--a); transition: stroke-dashoffset 2.6s cubic-bezier(.4,.1,.2,1), stroke .8s; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--a) 55%, transparent)); }
.big .turn { transform-origin: 200px 200px; transition: transform 2.6s cubic-bezier(.4,.1,.2,1); }
.big .dot { fill: var(--a); transition: fill .8s; filter: drop-shadow(0 0 8px var(--a)); }
.big .tick.on { stroke: var(--a); }
.big .mark { color: #2b2f37; }
.big.quiet .lit, .big.quiet .turn { transition: none; }
/* then its six, three and three: character, its key, its presets; its tools, Play, Tone and Space */
.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(110px, 19svh, 190px); }
.beats + .beats { margin-top: clamp(56px, 9svh, 96px); }
.beats .beat { display: grid; align-content: start; }
.beats .show { display: flex; align-items: center; justify-content: center; gap: 22px; height: clamp(150px, 22svh, 200px); margin-bottom: clamp(18px, 3svh, 28px);
  border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  /* (its tint over the story's ground, not see-through: the knob's rings go behind it, not through it) */
  background: linear-gradient(color-mix(in srgb, var(--a) 5%, rgba(255,255,255,.02)), color-mix(in srgb, var(--a) 5%, rgba(255,255,255,.02))), var(--g); }
.beats h3 { margin: 12px 0 0; font: 500 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--sans); font-stretch: 112%; letter-spacing: -.01em; }
.beats p { margin: 10px 0 0; color: var(--text-2); font-size: .98rem; line-height: 1.55; }
/* II: its three character knobs, thrown by the die */
.trio { display: flex; gap: clamp(10px, 1.6vw, 20px); }
.trio figure, .tools figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.trio svg, .tools svg, .tools .box { width: clamp(48px, 4.6vw, 64px); height: auto; }
.trio figcaption, .tools figcaption { font: 500 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.trio .v { stroke: var(--a); transition: stroke-dashoffset 1s cubic-bezier(.4,.1,.2,1), stroke .8s; }
.trio .p, .tools .p { transform-origin: 32px 32px; transition: transform 1s cubic-bezier(.4,.1,.2,1); }
.die { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: rgba(255,255,255,.05); color: var(--text-2); cursor: pointer; transition: color .25s, background .25s, transform .5s cubic-bezier(.3,1.4,.5,1); }
.die svg { width: 24px; height: 24px; }
.die:hover { color: var(--a); background: color-mix(in srgb, var(--a) 14%, transparent); }
.die.thrown { transform: rotate(180deg); }
.die:focus-visible { outline: 1px dashed var(--a); outline-offset: 3px; }
/* V to VII: its tools, as on the window's right, set and reset on their own */
.tools { display: flex; align-items: flex-start; gap: clamp(12px, 1.8vw, 22px); }
.tools .box { display: grid; place-items: center; aspect-ratio: 1; }
.tools .v { stroke: var(--a); transition: stroke-dasharray 1s cubic-bezier(.4,.1,.2,1), stroke-dashoffset 1s cubic-bezier(.4,.1,.2,1), stroke .8s; }
.tools .lamp { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 7px; background: linear-gradient(#2a2e36, #17191e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.07); }
.tools .lamp i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f48; transition: background .3s, box-shadow .3s; }
.tools .lamp.on i { background: var(--a); box-shadow: 0 0 10px var(--a); }
.tools .two { display: grid; gap: 3px; }
.tools .two b, .tools .oct b { font: 500 .6rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.tools .two b { padding: 5px 8px; border-radius: 5px; text-align: center; transition: color .3s, background .3s; }
.tools .two b.on { color: var(--a); background: color-mix(in srgb, var(--a) 14%, transparent); }
.tools .oct { display: flex; align-items: center; gap: 7px; }
.tools .oct b { min-width: 2ch; font-size: .82rem; text-align: center; color: var(--text); }
.tools .oct svg { width: 9px; height: 9px; color: var(--text-3); }
/* III: its own key, as on the window's left: a tall key with its light, lit while it's on */
.key { position: relative; display: grid; justify-items: center; align-content: space-between; width: 68px; height: 120px; padding: 14px 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(#2a2e36, #17191e); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.07); transition: box-shadow .35s, transform .15s; }
.key i { width: 12px; height: 12px; border-radius: 50%; background: #3a3f48; transition: background .25s, box-shadow .25s; }
.key b { font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.key:active { transform: translateY(2px); }
.key.tap { animation: tap .32s ease-out; }
@keyframes tap { 35% { transform: translateY(2px); } }
.key[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px var(--a), 0 0 36px color-mix(in srgb, var(--a) 35%, transparent); }
.key[aria-pressed="true"] i { background: var(--a); box-shadow: 0 0 12px var(--a); }
.key[aria-pressed="true"] b { color: var(--a); }
.key:focus-visible { outline: 1px dashed var(--a); outline-offset: 4px; }
.beats #key-text b { color: var(--text); font-weight: 500; }
/* IV: its ten presets, two columns of five; those in its piece brighter, each lit while it's heard */
.ten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 6px 28px;
  font: 400 .66rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.ten li { white-space: nowrap; transition: color .25s, text-shadow .25s; }
.ten li.in { color: var(--text); }
.ten li.on { color: var(--a); text-shadow: 0 0 12px color-mix(in srgb, var(--a) 60%, transparent); }
.listen { position: relative; display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; font: 300 .78rem/1 var(--name); letter-spacing: .24em; text-transform: uppercase; color: var(--text); }
.listen i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 50%, transparent); transition: background .25s, color .25s; }
.listen i svg { width: 10px; height: 10px; }
.listen:hover i { background: color-mix(in srgb, var(--a) 16%, transparent); }
.listen[aria-pressed="true"] i { background: var(--a); color: var(--g); }
.listen:focus-visible { outline: 1px dashed var(--a); outline-offset: 6px; }
/* through the story, held at the foot of the screen: its song, to play; once played, the song is in the docked bar
   instead (Hear it's), and this goes till another instrument's song is to be had */
.song { position: sticky; bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 5; width: fit-content; margin: clamp(36px, 6svh, 60px) auto 0;
  transition: opacity .35s, transform .35s, bottom .3s; }
body.docked .song { bottom: calc(var(--bar, 66px) + 14px); }
.song .listen { gap: 14px; padding: 9px 24px 9px 9px; border-radius: 999px; background: rgb(14,16,20);   /* (no blur, and not see-through: over the knob's moving rings) */
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 0 0 1px color-mix(in srgb, var(--a) 25%, transparent), 0 18px 44px rgba(0,0,0,.5); }
.song .listen b { font-weight: 300; color: var(--a); transition: color .8s; }
.song.gone { opacity: 0; transform: translateY(14px); pointer-events: none; }
@media (max-width: 980px) {
  .one { grid-template-columns: 1fr; } .one .words { display: grid; justify-items: center; text-align: center; } .one .tags { justify-content: center; }
  .big { width: min(100%, 52svh, 460px); }
  .beats { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: clamp(40px, 7svh, 64px); text-align: center; }
}
@media (max-width: 600px) {
  .big { width: min(100%, 44svh); }
  .listen { gap: 10px; font-size: .68rem; letter-spacing: .14em; }
  .beats .show { height: 140px; }
}

/* ---------- the end of the walk. In view (.in), the stone draws itself and lights, sends out the rings the window's
   knob sends out with each note, the six come round it, and the words rise through a passing light. */
.get { position: relative; overflow: hidden; display: grid; align-items: center; padding: 40px 0 clamp(24px, 5svh, 56px); text-align: center; background: var(--bg); }
/* the stone's glow, round it; it fades out, eased, well before the band's top (above the stone) and before its foot, so it never ends on a straight edge */
.get::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 500px at 50% calc(50% - 140px), rgba(232,189,92,.15), rgba(232,189,92,.04) 250px, transparent);
  -webkit-mask-image: linear-gradient(rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 0.009) calc((50% - 140px) * 0.07), rgb(0 0 0 / 0.058) calc((50% - 140px) * 0.14), rgb(0 0 0 / 0.163) calc((50% - 140px) * 0.21), rgb(0 0 0 / 0.317) calc((50% - 140px) * 0.28),
    rgb(0 0 0 / 0.5) calc((50% - 140px) * 0.35), rgb(0 0 0 / 0.683) calc((50% - 140px) * 0.42), rgb(0 0 0 / 0.837) calc((50% - 140px) * 0.49), rgb(0 0 0 / 0.942) calc((50% - 140px) * 0.56), rgb(0 0 0 / 0.991) calc((50% - 140px) * 0.63), rgb(0 0 0 / 1) calc((50% - 140px) * 0.7),
    rgb(0 0 0 / 1) 80%, rgb(0 0 0 / 0.991) 82%, rgb(0 0 0 / 0.942) 84%, rgb(0 0 0 / 0.837) 86%, rgb(0 0 0 / 0.683) 88%, rgb(0 0 0 / 0.5) 90%,
    rgb(0 0 0 / 0.317) 92%, rgb(0 0 0 / 0.163) 94%, rgb(0 0 0 / 0.058) 96%, rgb(0 0 0 / 0.009) 98%, rgb(0 0 0 / 0) 100%);
  mask-image: linear-gradient(rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 0.009) calc((50% - 140px) * 0.07), rgb(0 0 0 / 0.058) calc((50% - 140px) * 0.14), rgb(0 0 0 / 0.163) calc((50% - 140px) * 0.21), rgb(0 0 0 / 0.317) calc((50% - 140px) * 0.28),
    rgb(0 0 0 / 0.5) calc((50% - 140px) * 0.35), rgb(0 0 0 / 0.683) calc((50% - 140px) * 0.42), rgb(0 0 0 / 0.837) calc((50% - 140px) * 0.49), rgb(0 0 0 / 0.942) calc((50% - 140px) * 0.56), rgb(0 0 0 / 0.991) calc((50% - 140px) * 0.63), rgb(0 0 0 / 1) calc((50% - 140px) * 0.7),
    rgb(0 0 0 / 1) 80%, rgb(0 0 0 / 0.991) 82%, rgb(0 0 0 / 0.942) 84%, rgb(0 0 0 / 0.837) 86%, rgb(0 0 0 / 0.683) 88%, rgb(0 0 0 / 0.5) 90%,
    rgb(0 0 0 / 0.317) 92%, rgb(0 0 0 / 0.163) 94%, rgb(0 0 0 / 0.058) 96%, rgb(0 0 0 / 0.009) 98%, rgb(0 0 0 / 0) 100%); }
.altar { --r: clamp(76px, min(14vw, 15svh), 160px); position: relative; width: calc(var(--r) * 2 + 64px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.altar .stone { position: relative; z-index: 2; width: clamp(80px, 8.5vw, 104px); overflow: visible; color: var(--text); filter: drop-shadow(0 0 22px rgba(232,189,92,.28)); }
.altar .stone .gold { transform-origin: 52px 52px; }
.altar .ripple { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(232,189,92,.5); opacity: 0; pointer-events: none; }
.altar .path { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
.altar .orbit { position: absolute; inset: 0; }
.altar .sat { --at: rotate(calc(var(--k) * 60deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--k) * -60deg));
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; transform: var(--at); }
.altar .sat i { display: block; width: 100%; height: 100%; }   /* (turned back as they go round: on an SVG, the browser would turn it itself every frame) */
.altar .sat svg { width: 100%; height: 100%; display: block; color: var(--c); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 70%, transparent)); }
.get h2 { margin: clamp(8px, 2.5svh, 26px) 0 0; font: 400 italic clamp(2.4rem, min(6vw, 9svh), 5.2rem)/1.08 var(--serif); }   /* (italic, as the hero's) */
.get h2 span { display: inline-block; padding: 0 .12em; margin: 0 -.08em;   /* (room for the italic's lean, its light clipped to the box) */ background: linear-gradient(100deg, var(--text) 40%, #fff1c2 47%, #e8bd5c 50%, #fff1c2 53%, var(--text) 60%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.get .acts { display: grid; justify-items: center; margin-top: clamp(14px, 3svh, 30px); }
.get .sep { margin: 0; color: var(--text-2); }
/* one card each: Windows from this site, iPad from the App Store */
.plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(660px, 100%); margin-top: clamp(16px, 3svh, 28px); text-align: left; }
.plat { display: grid; align-content: start; gap: 6px; border: 1px solid var(--rule); background: rgba(255,255,255,.025); border-radius: 6px; padding: 22px 24px; }
.plat b { font: 600 1.1rem/1.2 var(--sans); font-stretch: 112%; }
.plat span { color: var(--text-3); font-size: .9rem; }
.plat .price { margin-top: 8px; font: 600 1.6rem/1 var(--sans); font-style: normal; color: var(--gold); }
.plat .price s { margin-right: 4px; font-weight: 400; font-size: .62em; color: var(--text-3); text-decoration-thickness: 1px; vertical-align: .18em; }
.plat .safe { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; font-size: .82rem; color: var(--text-2); }
.plat .safe svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
:root:not([data-sales~="windows"]) .plat .safe { display: none; }
.plat .launch { font: 500 .66rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.plat .btn, .plat .store { margin-top: 14px; justify-self: start; }
.plat .soon { margin-top: 14px; font: 400 .78rem/1.8 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 640px) { .plats { grid-template-columns: 1fr; } }
/* under the cards, what people ask before they buy */
.faq { width: min(660px, 100%); margin: clamp(28px, 5svh, 52px) 0 0; text-align: left; }
.faq div { padding: 18px 0; border-top: 1px solid var(--rule); }
.faq dt { font: 600 1.02rem/1.4 var(--sans); font-stretch: 105%; color: var(--text); }
.faq dd { margin: 6px 0 0; color: var(--text-2); font-size: .95rem; }
.get .btn.gold { position: relative; overflow: hidden; }
.get .btn.gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); }
.get .btn.gold:hover::after { animation: sheen .9s ease-out; }
.get .fine { margin: clamp(12px, 3svh, 30px) 0 0; font: 400 .72rem/1.8 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.get .fine a { color: var(--text-2); }

@media (prefers-reduced-motion: no-preference) {
  .get::before { opacity: 0; transition: opacity 2s .8s; }
  .altar .stone .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .altar .stone .gold { transform: scale(0); }
  .altar .path { opacity: 0; transform: scale(.85); }
  .altar .sat { opacity: 0; transform: var(--at) scale(.4); }
  .get h2 span { opacity: 0; transform: translateY(.45em); filter: blur(8px); }
  .get .acts, .get .fine { opacity: 0; transform: translateY(14px); }

  .get.in::before { opacity: 1; }
  /* (once it has come in, its way in no more: with a transition of its opacity, a loop of it is the browser's own to work
     out, every frame, not the compositor's) */
  .get.lit::before { transition: none; animation: breathe 7s ease-in-out infinite; }
  .get.in .stone .draw { animation: draw 1s cubic-bezier(.6,.1,.2,1) .1s forwards; }
  .get.in .stone .draw + .draw { animation-delay: .5s; }
  .get.in .stone .gold { animation: ignite 1.2s cubic-bezier(.2,.9,.3,1.3) 1.1s forwards; }
  .get.in .ripple { animation: ripple 4.8s cubic-bezier(.2,.6,.3,1) 1.4s infinite; }
  .get.in .ripple:nth-of-type(2) { animation-delay: 3s; }
  .get.in .ripple:nth-of-type(3) { animation-delay: 4.6s; }
  .get.in .path { animation: show 1.2s ease-out 1.1s forwards; }
  .get.in .orbit { animation: spin 90s linear 1.15s infinite; }
  .get.in .sat { animation: arrive .7s cubic-bezier(.2,.8,.3,1.2) forwards; animation-delay: calc(1.15s + var(--k) * .07s); }
  .get.in .sat i { animation: spin 90s linear 1.15s infinite reverse; }
  .get.away, .get.away *, .get.away::before { animation-play-state: paused !important; }   /* (held while it's out of sight) */
  .get.in h2 span { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards, light 2.2s ease-in-out forwards; animation-delay: calc(.2s + var(--i) * .14s), calc(1.6s + var(--i) * .22s); }
  .get.in .acts { animation: show .8s ease-out .5s forwards; }
  .get.in .fine { animation: show .8s ease-out .7s forwards; }
  .get.in .btn.gold::after { animation: sheen 1.1s ease-out 2.4s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ignite { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ripple { 0% { transform: scale(.28); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes arrive { to { opacity: 1; transform: var(--at) scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes light { to { background-position: 0 0; } }
@keyframes show { to { opacity: 1; transform: none; } }
@keyframes sheen { to { left: 130%; } }
@keyframes breathe { 50% { opacity: .6; } }


/* Hear it: the demos page in a window over this one; closed with a piece loaded, only its bar stays, docked at the foot */
.demos { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5,6,8,.86);
  opacity: 0; transition: opacity .3s; }   /* (darkened, not blurred: a blur over the page cost every frame of the list's scrolling) */
.demos[hidden] { display: none; }
.demos.open { opacity: 1; }
.demos .sheet { position: relative; width: min(860px, 100% - 32px); height: min(100% - 48px, 1100px); overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: 0 40px 120px rgba(0,0,0,.6);
  background: radial-gradient(90% 260px at 50% 0, color-mix(in srgb, var(--a) 9%, transparent), transparent), var(--bg);
  transform: translateY(18px); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.demos.open .sheet { transform: none; }
.demos iframe { display: block; width: 1px; min-width: 100%; height: 100%; border: 0; }   /* (1px and min-width: Safari on iOS otherwise widens a frame to its content) */
.demos .x { position: absolute; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(11,12,15,.75); color: var(--text); cursor: pointer; }
.demos .x:hover { border-color: var(--gold); color: var(--gold); }
.demos .x svg { width: 14px; height: 14px; }
.demos.mini { inset: auto 0 0; display: block; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1;
  transform: translateZ(0); }   /* (a layer of its own: Safari on iOS otherwise painted the page over it, and gave it the taps, as its toolbar folded) */
.demos.mini .sheet { width: 100%; height: var(--bar, 66px); border: 0; border-radius: 0; background: #191c21; box-shadow: 0 -20px 60px rgba(0,0,0,.4); transform: none; transition: none; }
.demos.mini .x { display: none; }
body.docked { padding-bottom: var(--bar, 66px); }
body.covered > :not(.demos), body.covered > :not(.demos) *, body.covered > :not(.demos) *::before, body.covered > :not(.demos) *::after { animation-play-state: paused !important; }
@media (max-width: 600px) { .demos .sheet { width: 100%; height: 100%; border: 0; border-radius: 0; } }
/* ---------- with your orchestra: its lanes and Sacred's, swelling together on one curve (the mod wheel on Transmute) */
.layer { position: relative; isolation: isolate; padding: clamp(90px, 15svh, 160px) 0 clamp(60px, 10svh, 110px); background: var(--bg); }
.layer h2, .make h2 { margin: clamp(10px, 2.5svh, 20px) 0 0; font: 500 clamp(2rem, min(4.8vw, 9svh), 4.2rem)/1.02 var(--sans); font-stretch: 112%; letter-spacing: -.02em; text-wrap: balance; }
.layer .words { max-width: 640px; }
.one .tags, .layer .tags, .make .tags { justify-content: flex-start; margin: clamp(18px, 3.4svh, 28px) 0 0; }
.make .tags.lead { margin: 0; }   /* (in the label's place, over the title) */
.layer .words p, .make .words p { margin: clamp(14px, 3svh, 26px) 0 0; max-width: 480px; color: var(--text-2); font-size: 1.08rem; }
.layer .label, .make .label { color: var(--gold); }
.lanes { margin: clamp(40px, 7svh, 72px) 0 0; }
.lanes svg { display: block; width: 100%; height: auto; overflow: visible; }
.lanes .t { font: 500 13px var(--mono); letter-spacing: .16em; fill: var(--text-3); }
.lanes .n { font: 300 15px var(--name); letter-spacing: .26em; fill: var(--text); }
.lanes.narrow .t { font-size: 19px; } .lanes.narrow .n { font-size: 21px; }
.lanes .orch { fill: #2b2f37; }
.lanes .curve { fill: none; stroke: var(--gold); stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(232,189,92,.55)); }
.lanes .area { fill: url(#lanes-glow); }
.lanes .head { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.layer .wheel { margin: clamp(4px, 1svh, 10px) 0 0; max-width: 620px; color: var(--text-2); font-size: .92rem; }
.layer .wheel b { color: var(--text); font-weight: 400; }
.make .words p b { color: var(--text); font-weight: 600; }

/* ---------- with your agent (coming): a request, the answer, and the sounds arriving in the instrument's list */
.make { position: relative; isolation: isolate; padding: clamp(80px, 13svh, 140px) 0 clamp(90px, 15svh, 160px); background: var(--bg); }
.make .frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.make .words .btn { margin-top: clamp(22px, 4svh, 34px); }
.make .btn .arrow, .story .more .arrow { transition: transform .3s; } .make .btn:hover .arrow, .story .more a:hover .arrow { transform: translateX(5px); }
.story .more { margin: 0; } .story .more a[hidden] { display: none; }
.ask { position: relative; isolation: isolate; margin: 0; display: grid; justify-items: stretch; max-width: 520px; width: 100%; justify-self: center; }
/* (a soft glow in the instrument of the moment, only behind the agent and the instrument's list; the rest of the
   section, like the orchestra's below, sits on the page's plain ground) */
.ask::before { content: ""; position: absolute; inset: -24% -42%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a) 5%, transparent),
    color-mix(in srgb, var(--a) 4.2%, transparent) 18%, color-mix(in srgb, var(--a) 2.8%, transparent) 40%,
    color-mix(in srgb, var(--a) 1.4%, transparent) 62%, color-mix(in srgb, var(--a) .5%, transparent) 84%, transparent); }   /* (eased to nothing: no edge) */
.ask .term { border: 1px solid #23262d; border-radius: 10px; background: #111317; padding: 0 0 18px; box-shadow: 0 30px 90px rgba(0,0,0,.22); }   /* (light: on the plain ground a deep one shows as a dark block over the glow) */
.ask .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #1d2026; }
.ask .bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2e35; }
.ask .bar span { margin-left: 8px; font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.ask p { margin: 16px 18px 0; font: 400 .9rem/1.55 var(--mono); min-height: 3.1em; }
.ask .you { color: var(--text); }
.ask .you::before { content: "> "; color: var(--text-3); }
.ask .it { color: var(--text-2); }
.ask .it::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.ask .it b { color: var(--text); font-weight: 500; }
.ask .flow { position: relative; width: 2px; height: clamp(34px, 6svh, 56px); margin: 0 auto; background: linear-gradient(#2a2e35, #2a2e35); overflow: hidden; }
.ask .flow span { position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(transparent, var(--gold), transparent); }
.ask .list { --c: #8ec5e8; border: 1px solid #262b33; border-radius: 10px; background: #0c0e12; padding: 16px 18px 12px; }
.ask .list .head { display: flex; align-items: center; gap: 12px; color: var(--c); }
.ask .list .head svg { width: 26px; height: 26px; }
.ask .list .head b { font: 300 1rem/1 var(--name); letter-spacing: .3em; color: var(--text); }
.ask .list ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.ask .list li { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 4px; font: 400 .9rem/1.2 var(--mono); color: var(--text); }
.ask .list li.dim { color: var(--text-3); }
.ask .list li.on { background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 2px 0 0 var(--c); }
.ask .list em { font: 600 .6rem/1 var(--mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; color: var(--gold); border: 1px solid rgba(232,189,92,.45); }
@media (max-width: 860px) { .make .frame { grid-template-columns: 1fr; } .ask { justify-self: start; } }
@media (prefers-reduced-motion: no-preference) {
  .lanes .sweep { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 3.4s cubic-bezier(.45,.05,.25,1) .4s; }
  .layer.in .lanes .sweep { transform: none; }
  .lanes .head { opacity: 0; }
  .layer.in .lanes .head { animation: playhead 3.4s cubic-bezier(.45,.05,.25,1) .4s; }
  /* the agent's card plays its asks one after another (the script below): the ask typed, the answer, the gold
     pouring down, three new sounds landing in that instrument's list, then the next ask */
  .ask.live .you, .ask.live .it, .ask.live .list li:not(.dim) { opacity: 0; transform: translateY(8px); transition: opacity .5s ease-out, transform .5s ease-out, background-color .6s; }
  .ask.live .you.show, .ask.live .it.show, .ask.live .list li.show { opacity: 1; transform: none; }
  .ask.live .list li.show:not(.on) { animation: flash 1.2s ease-out; }
  .ask.live .you.typing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--text-2); animation: caret .9s steps(1) infinite; }
  .ask.live .list .head, .ask.live .list li.dim { transition: opacity .4s; }
  .ask.live.out .list .head, .ask.live.out .list li.dim { opacity: 0; }
  .ask.live .flow.pour span { animation: pour 1.2s ease-in-out 2; }
  .ask.live .list { transition: border-color .8s; border-color: color-mix(in srgb, var(--c) 22%, #262b33); }
}
@keyframes caret { 50% { opacity: 0; } }
@keyframes playhead { 0% { opacity: 1; transform: translateX(0); } 96% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--run)); } }
@keyframes arrive2 { to { opacity: 1; transform: none; } }
@keyframes pour { from { top: -40%; } to { top: 100%; } }
@keyframes flash { 0% { background-color: rgba(232,189,92,.28); } 100% { background-color: transparent; } }

footer { border-top: 1px solid var(--rule); padding: 40px 0 52px; color: var(--text-2); font-size: .82rem; }
footer .frame { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer img { height: 36px; width: auto; display: block; }

@media (prefers-reduced-motion: no-preference) {
  .r { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
  .in .r { opacity: 1; transform: none; }
  .stack { opacity: 0; transform: perspective(1600px) translateX(70px) rotateY(-12deg); transition: opacity 1.2s ease-out .3s, transform 1.6s cubic-bezier(.2,.7,.2,1) .3s; }
  .in .stack { opacity: 1; transform: none; }
  .hero .stack { transform: translateY(70px); transition: opacity 1.3s ease-out .35s, transform 1.8s cubic-bezier(.2,.7,.2,1) .35s; }
  .hero.in .stack { transform: none; }
  .hero.in h1 { animation: light 2.6s ease-in-out 1.3s forwards; }
  .hero.in .btn.play i::after { animation: ring 2.8s ease-out 1.8s infinite; }
  /* scrolled through fast: the same, at once */
  .quick .r, .quick .stack { transition-duration: .4s; transition-delay: 0s; }
  .get.in.quick h2 span { animation-delay: 0s, .4s; animation-duration: .5s, 2.2s; }
  .get.in.quick :is(.acts, .fine) { animation-delay: .1s; animation-duration: .4s; }
  .get.in.quick .stone .draw, .get.in.quick .stone .draw + .draw { animation-delay: 0s; animation-duration: .5s; }
  .get.in.quick .stone .gold { animation-delay: .4s; }
  .get.in.quick .path { animation-delay: .3s; }
  .get.in.quick .sat { animation-delay: calc(.4s + var(--k) * .05s); }
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* "Agent enabled" glints like magic: a gold sheen passing, a soft glow breathing, little stars twinkling around it
   (the stars are put in by the script; nothing moves for whoever asked for less motion) */
.magic { position: relative; isolation: isolate; }
.magic .spark { position: absolute; width: 9px; height: 9px; pointer-events: none; opacity: 0; background: #ffe7a6;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 3px #e8bd5c); }
@media (prefers-reduced-motion: no-preference) {
  .magic { overflow: visible; animation: glow 3.2s ease-in-out infinite; }
  .magic::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255,231,166,.38) 50%, transparent 65%) no-repeat;
    background-size: 260% 100%; background-position: 130% 0; animation: glint 3.2s ease-in-out infinite; }
  .magic .spark { animation: twinkle 2.4s ease-in-out infinite; animation-delay: var(--t); }
}
@keyframes glint { 0%, 30% { background-position: 130% 0; } 70%, 100% { background-position: -30% 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 rgba(232,189,92,0); } 50% { box-shadow: 0 0 16px rgba(232,189,92,.32); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.4) rotate(90deg); } }

/* Get Sacred: the two cards in a window over the page, then, for Windows, a word on Stripe before going there */
.buying { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: rgba(6,7,9,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; }
.buying[hidden] { display: none; }
.buying.open { opacity: 1; }
.buying .sheet { position: relative; width: min(720px, 100%); padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 44px) clamp(22px, 4vw, 32px); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; text-align: center;
  background: radial-gradient(520px 220px at 50% 0, rgba(232,189,92,.12), transparent 70%), #101216; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.buying.open .sheet { transform: none; }
.buying .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.buying .x:hover { background: rgba(255,255,255,.06); color: var(--text); }
.buying .x svg { width: 14px; height: 14px; }
.buying h2 { margin: 12px 0 6px; font: 400 italic clamp(2rem, 4.6vw, 2.8rem)/1.1 var(--serif); }
.buying .label { color: var(--gold); }
.buying .label s { color: var(--text-3); }
.buying .sep { margin: 0; color: var(--text-2); }
.buying .plats { margin: 22px auto 0; }
.buying .fine { margin: 20px 0 0; font-size: .82rem; color: var(--text-3); }
.buying .fine a { color: var(--text-2); }
.buying .pay p { max-width: 50ch; margin: 0 auto; color: var(--text-2); }
.buying .lock { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--gold);
  background: rgba(232,189,92,.1); box-shadow: 0 0 0 1px rgba(232,189,92,.3), 0 0 30px rgba(232,189,92,.18); }
.buying .lock svg { width: 24px; height: 24px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; text-align: left; }
.steps li { counter-increment: step; display: grid; gap: 4px; align-content: start; padding: 16px 16px 18px; border: 1px solid var(--rule); border-radius: 6px; background: rgba(255,255,255,.025); }
.steps li::before { content: counter(step); width: 24px; height: 24px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 50%; font: 600 .75rem/1 var(--mono); color: #1a1408; background: var(--gold); }
.steps b { font: 600 .98rem/1.3 var(--sans); font-stretch: 108%; }
.steps span { color: var(--text-3); font-size: .86rem; line-height: 1.45; }
.buying .go { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 26px; }
.buying .go .arrow { font-style: normal; transition: transform .25s; }
.buying .go .btn:hover .arrow { transform: translateX(3px); }
.buying .go .btn[disabled] { cursor: progress; filter: saturate(.7) brightness(.9); }
.buying .back { border: 0; background: none; padding: 8px 4px; color: var(--text-2); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #3a3f47; }
.buying .back:hover { color: var(--text); }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .steps li { grid-template-columns: auto 1fr; column-gap: 12px; } .steps li::before { grid-row: span 2; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .buying, .buying .sheet { transition: none; } }
