/* Join IRIS (board #11, real accounts #76, dialled in #93): sign-up and onboarding, one step at a time like a game menu.
   Builds on site.css (tokens, buttons, grain, .mark, .trial-strip) and pack3d.css (the desk's 3D booster, used on the
   stage); used by join.html and signin.html.
   Layout (#174, Dodd 10-26: "make the 'You and your sound' whole thing bigger, more of the screen, and remove the pack
   on the right side... it's the centrepiece of the screen"): every step is one wide panel in the middle of the screen,
   with big type, big inputs and big genre cards. No pack beside the steps; the pack only comes in on the last step,
   centred, as the one you open. */
.join { --display: var(--serif); --ease-drawer: cubic-bezier(.32, .72, 0, 1); --ease-pop: cubic-bezier(.34, 1.36, .64, 1);
  min-height: 100svh; display: flex; flex-direction: column; }

/* ---------- the world: the desk's own live scene (bg.js), the same as the title screen ----------
   Dodd, 10-25: no pictures of our own on these pages ("stop using all that"). The canvas is bg.js: the rotation's first
   scene (background-selection.js; Atlas's hall by default) with the holo light, drift, grain and halftone. Its still sits
   underneath until the canvas is lit (and stays if there's no WebGL), so the page never opens on black. Two reading
   shades: one darkens the left for the panel (the steps), one pools the light low in the middle for centred words (the
   last step, sign in); they cross-fade. */
/* .world and the page cross-fade are site.css; these are the two reading shades */
.world-shade.side { background: linear-gradient(90deg, rgba(7, 5, 6, .9) 0%, rgba(7, 5, 6, .64) 34%, rgba(7, 5, 6, 0) 62%),
  linear-gradient(180deg, rgba(7, 5, 6, .6), transparent 18%, transparent 70%, rgba(7, 5, 6, .78)); }
.world-shade.centre { opacity: 0; background: radial-gradient(62% 58% at 50% 54%, rgba(7, 5, 6, .66), rgba(7, 5, 6, .34) 60%, rgba(7, 5, 6, .14) 100%),
  linear-gradient(180deg, rgba(7, 5, 6, .55), transparent 20%, transparent 74%, rgba(7, 5, 6, .72)); }
/* (#174: the steps sit in the middle now, so every step reads on the centred shade) */
.join .world-shade.side { opacity: 0; }
.join .world-shade.centre { opacity: 1; }

/* the main action is the desk's own engraved oxblood plate (style.css .btn-red), so the site and the desk match */
.join .btn { border-radius: 8px; }
.join .btn-red { position: relative; overflow: hidden; background: linear-gradient(160deg, #b2272d, #7c1720 62%, #571019); color: #fff3e4;
  box-shadow: inset 0 0 0 1px rgba(214, 140, 118, .7), inset 0 1px 0 rgba(255, 226, 187, .32), 0 10px 28px rgba(60, 0, 8, .45);
  transition: transform .16s var(--ease), filter .15s ease, box-shadow .22s ease; }
.join .btn-red::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(223, 173, 128, .26); border-radius: 4px; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .join .btn-red:hover { background: linear-gradient(160deg, #b2272d, #7c1720 62%, #571019); filter: brightness(1.1); } }
.join .btn-ghost { background: rgba(236, 228, 216, .05); box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .26); }
/* the big one (Open my first pack, Sign in): the title screen's Enter plate, Caslon, a little taller */
.join .btn-big { min-height: 60px; font: 700 18px/1 var(--serif); letter-spacing: .05em; }

.join-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 8px; }
.join-signin { font: 600 16px/1 var(--sans); color: var(--bone-2); text-decoration: none; padding: 14px 0; transition: color .2s; text-shadow: 0 1px 8px #000; }
.join-signin b { font-weight: 600; color: var(--bone); }
.join-signin:hover { color: #fff; }
.join-who { margin: 0; display: flex; align-items: center; gap: 14px; min-width: 0; font: 500 15px/1.3 var(--sans); color: var(--bone-3); }
.join-who .who-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; color: var(--bone-2); }
.join-who .link { margin: 0; padding: 12px 0; white-space: nowrap; }
.join-top .mark { flex: none; }
.join-top .mark span { font-size: 12px; letter-spacing: .26em; }
.join-who[hidden], .join-signin[hidden] { display: none; }

/* nothing shows until the account answer is in (a few ms here), so the wrong step never flashes */
.join .progress, .join .panel, .join .stage { transition: opacity .35s var(--ease); }
.join:not(.is-ready) :is(.progress, .panel, .stage) { opacity: 0; }

/* the panel hangs from a fixed line under the bar and grows downward, so the progress row never moves between steps */
.join-main { position: relative; z-index: 1; flex: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: clamp(12px, 3.4vh, 44px) 0 56px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; }
.join-main > * { width: min(820px, 100%); }

/* ---------- the stage: the pack on a lit plinth of light, on the last step only (#174: none beside the steps) ---------- */
.join:not([data-at="ready"]) .stage { display: none; }
.stage { position: fixed; z-index: 0; top: 0; bottom: 0; right: 0; left: calc(max(16px, (100vw - 1120px) / 2) + 560px);
  display: grid; place-content: center; justify-items: center; gap: 26px; pointer-events: none;
  --glow: .5; } /* join.js raises it step by step, to 1 on the last */
.stage-spot { position: relative; height: clamp(300px, 52vh, 480px); aspect-ratio: 1024 / 1536; }
.stage-light { position: absolute; inset: 0; pointer-events: none; }
.stage-light i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
/* a dark pool quiets the busy arena behind the pack, the warm halo sits in it, a lit floor grounds it (sizes are in
   pack widths, so the light follows the pack at any height) */
.stage .pool { width: 300%; background: radial-gradient(closest-side, rgba(7, 5, 6, .7), rgba(7, 5, 6, .46) 45%, rgba(7, 5, 6, .16) 72%, transparent); }
.stage .halo { width: 200%; top: 46%; opacity: var(--glow); transition: opacity .9s var(--ease); mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 228, 190, .42), rgba(214, 74, 58, .26) 42%, rgba(143, 28, 41, .1) 68%, transparent); }
.stage .floor { width: 150%; aspect-ratio: 5; top: 98%; opacity: calc(var(--glow) * .9);
  background: radial-gradient(closest-side, rgba(255, 214, 170, .34), rgba(207, 60, 52, .12) 55%, transparent); }
.rays { opacity: 0; transition: opacity 1.2s var(--ease); mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(255, 230, 192, .2) 0deg 2.5deg, transparent 2.5deg 12deg);
  -webkit-mask: radial-gradient(closest-side, #000 22%, transparent 80%); mask: radial-gradient(closest-side, #000 22%, transparent 80%); }
.stage .rays { width: 290%; top: 46%; }
.join[data-at="ready"] .rays { opacity: 1; animation: rays-turn 60s linear infinite; }
@keyframes rays-turn { to { transform: rotate(360deg); } }
.stage-pack { position: relative; height: 100%; pointer-events: auto;
  animation: pack-bob 7s ease-in-out infinite alternate; transition: scale .9s var(--ease-pop), opacity .5s var(--ease); }
.stage-pack .booster { height: 100%; --rx: -10deg; --ry: 2deg; } /* at rest it's turned a little, so its thickness shows */
@keyframes pack-bob { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
.join[data-at="ready"] .stage-pack { scale: 1.07; cursor: pointer; }
.stage-cap { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; max-width: 30ch; }
.stage-cap b { font: 400 25px/1.2 var(--serif); color: #f6eadb; text-shadow: 0 2px 18px rgba(0, 0, 0, .9); overflow-wrap: anywhere; }
.stage-cap span { font: 500 14px/1.4 var(--sans); color: var(--bone-2); text-shadow: 0 1px 10px #000; }
.stage-cap .cap-seals { display: flex; gap: 10px; min-height: 9px; margin-top: 4px; }
.cap-seals i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px rgba(232, 194, 122, .8); animation: seal-in .45s var(--ease-pop) both; }
@keyframes seal-in { from { opacity: 0; transform: rotate(45deg) scale(2.2); } }

/* ---------- progress row: a diamond per step, joined by a hairline that fills in gold ---------- */
.progress { list-style: none; margin: 0 0 24px; padding: 0 6px; display: flex; justify-content: space-between; position: relative; }
.progress::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 1px; background: var(--line); }
.progress::after { content: ""; position: absolute; left: 7px; top: 7px; height: 1px; width: calc(100% - 14px); transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(232, 194, 122, .6), var(--gold)); box-shadow: 0 0 8px rgba(232, 194, 122, .5); transition: transform .6s var(--ease-drawer); }
.progress li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; flex: 0 0 auto; }
.progress li:first-child { justify-items: start; } .progress li:last-child { justify-items: end; }
.progress i { width: 15px; height: 15px; display: grid; place-items: center; }
.progress i::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--black); box-shadow: inset 0 0 0 1px var(--bone-3);
  transition: background .3s, box-shadow .3s, transform .35s var(--ease-pop); }
.progress span { font: 700 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3); transition: color .3s; text-shadow: 0 1px 3px #000, 0 0 12px rgba(0, 0, 0, .9); }
.progress li.done i::before { background: var(--gold); box-shadow: 0 0 8px rgba(232, 194, 122, .5); }
.progress li.done span { color: #d4bfa7; }
.progress li.now i::before { background: var(--red-hi); box-shadow: 0 0 0 3px rgba(207, 28, 38, .25), 0 0 14px rgba(207, 28, 38, .7); transform: rotate(45deg) scale(1.3); }
.progress li.now span { color: #fff; }
.progress li.can-go { cursor: pointer; }
@media (hover: hover) { .progress li.can-go:hover span { color: #fff; } .progress li.can-go:hover i::before { transform: rotate(45deg) scale(1.2); } }

/* ---------- the panel ---------- */
.panel { position: relative; padding: clamp(28px, 3.6vw, 52px); border-radius: 20px; overflow: hidden; overflow: clip; /* clip, not a scroll box: the genre button can stick */
  background: linear-gradient(180deg, rgba(28, 19, 21, .9), rgba(11, 8, 9, .95));
  box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .22), inset 0 1px 0 rgba(255, 240, 220, .06), 0 40px 80px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.jstep { margin: 0; }
.jstep[hidden] { display: none; }
.jstep h1 { font-size: clamp(36px, 3.7vw, 54px); line-height: 1.06; outline: none; text-wrap: balance; }
.sub { margin: 12px 0 28px; color: #d3c9bd; font-size: 19.5px; line-height: 1.5; text-wrap: pretty; }

/* each part of a step comes in on its own, in reading order (join.js sets --i); the old step slips out quickly */
.jstep.in-fwd > *, .jstep.in-back > * { animation: part-in .5s var(--ease) both; animation-delay: calc(125ms + var(--i, 0) * 45ms); }
.jstep.in-back > * { animation-name: part-in-back; }
@keyframes part-in { from { opacity: 0; transform: translate(18px, 4px); filter: blur(2px); } }
@keyframes part-in-back { from { opacity: 0; transform: translate(-18px, 4px); filter: blur(2px); } }
.jstep.leaving { z-index: 2; }

/* ---------- fields ---------- */
.field { display: grid; gap: 10px; margin-bottom: 16px; }
.field .lab { font: 600 16.5px/1.2 var(--sans); color: #d3c9bd; }
.field input { width: 100%; min-height: 62px; padding: 0 18px; border: 0; border-radius: 10px; background: rgba(7, 5, 6, .72); color: var(--bone);
  font: 500 19px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .2); transition: box-shadow .2s; caret-color: var(--gold); }
.field input::placeholder { color: var(--bone-3); opacity: .75; }
@media (hover: hover) { .field input:hover { box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .34); } }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px rgba(232, 194, 122, .16); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--red-hi), 0 0 0 3px rgba(207, 28, 38, .16); }
/* the browser's autofill keeps our dark field instead of its pale one */
.field input:-webkit-autofill, .field input:-webkit-autofill:hover { -webkit-text-fill-color: var(--bone); -webkit-box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .4), inset 0 0 0 60px #120d0e; transition: background-color 600000s; }
.field input:-webkit-autofill:focus { -webkit-box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 60px #120d0e; }
.note { display: block; min-height: 20px; font: 500 15px/1.4 var(--sans); color: var(--bone-3); transition: color .2s; }
.note:empty { min-height: 0; }
.note.bad { color: #ff8a8f; }
.pw-meter { display: flex; align-items: center; gap: 10px; }
.pw-meter i { position: relative; flex: 0 0 76px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(236, 228, 216, .2); }
.pw-meter i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--fill, 0)); background: var(--red-hi); transition: transform .25s var(--ease), background .25s; }
.pw-meter.good { color: #d9c08c; } .pw-meter.good i::after { background: var(--gold); }
.pw-meter.caps { color: #f0d9a8; }
.pw-meter.bad i { display: none; }
.pw, .handle { position: relative; display: block; }
.pw input { padding-right: 92px; }
.pw-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); min-width: 72px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent;
  color: var(--bone-2); font: 600 15.5px/1 var(--sans); cursor: pointer; transition: color .15s, background .15s; }
.pw-toggle:hover { color: #fff; background: rgba(236, 228, 216, .07); }
.pw-toggle:active { transform: translateY(-50%) scale(.96); }
.handle b { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font: 600 19px/1 var(--sans); color: var(--bone-3); pointer-events: none; transition: color .2s; }
.handle:focus-within b { color: var(--gold); }
.handle input { padding-left: 40px; }

.err { min-height: 1.5em; margin: 0 0 6px; font: 500 16px/1.5 var(--sans); color: #ff8a8f; }
.err:empty { min-height: 8px; }
.acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.jstep .acts .btn { min-height: 60px; padding: 0 30px; font-size: 18px; }
.acts .btn-red { flex: 1; min-width: 180px; }
.fine { margin: 18px 0 0; font: 500 14.5px/1.5 var(--sans); color: var(--bone-3); }
.link { margin-top: 18px; padding: 10px 0; border: 0; background: none; color: var(--bone-3); font: 500 15px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--bone); }
.link.inline { margin: 0; padding: 0; font: inherit; color: var(--bone-2); }
.fine a { color: var(--bone-2); text-underline-offset: 3px; } .fine a:hover { color: #fff; }
.err a { color: #fff; text-underline-offset: 3px; }
.sub b { color: var(--bone); font-weight: 400; overflow-wrap: anywhere; }

/* a busy button keeps its size: the label fades and a small ring turns in its place */
.jstep .btn-red { position: relative; }
.jstep .btn-red > span { transition: opacity .15s, filter .15s; }
.jstep .btn-red[aria-busy="true"] { cursor: progress; }
.jstep .btn-red[aria-busy="true"] > span { opacity: 0; filter: blur(2px); }
.jstep .btn-red[aria-busy="true"]::after, .spin { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  animation: spin .7s linear infinite; }
.jstep .btn-red[aria-busy="true"]::after { position: absolute; left: calc(50% - 9px); top: calc(50% - 9px); }
.jstep .btn-red:disabled:not([aria-busy="true"]) { opacity: .55; cursor: default; }
@keyframes spin { to { transform: rotate(360deg); } }
.confirming { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font: 500 16px/1.5 var(--sans); color: var(--bone-2); }
.confirming[hidden] { display: none; }
.confirming .spin { flex: 0 0 auto; border-color: rgba(232, 194, 122, .3); border-top-color: var(--gold); }

/* ---------- genres: picked like cards, under the handle on the "You" screen (board #116). Each genre is one of Codex's
   engraved cards (onboarding/v1: the illustration with its own thin Roman border and a blank cream nameplate); the name
   is live text on that plate (Codex's safe box x100,y1340,w824,h100 of 1024x1536, the plate's cream runs ~y1262-1500).
   Face up the cards sit a little dim; picked, one lifts to full colour in a gold rim, a foil glint crosses it once, the
   name turns oxblood ink and a gold check seal sits on its corner (Engineer, every genre, in violet). One line under the
   row says what's picked. Five in a row (three over two on a phone). ---------- */
.genres { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.genres > legend, .q > legend { display: block; width: 100%; padding: 0; margin: 0 0 12px; }
.lab-hint { margin-left: 8px; font: 500 15px/1.3 var(--sans); color: var(--bone-3); }
.g-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 8px; }
.jstep.in-fwd > .genres, .jstep.in-back > .genres { animation: none; }
.genre { position: relative; display: block; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-say { min-height: 1.45em; margin: 16px 0 6px; text-align: center; font: 500 16.5px/1.45 var(--sans); color: var(--bone-2); text-wrap: balance; }
.g-say.is-eng { color: #e3c9f5; }
.genre input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 3; }
.g-card { --rim: 232, 194, 122; position: relative; display: block; aspect-ratio: 1024 / 1536; container-type: inline-size; border-radius: 3px; isolation: isolate;
  background: #0b0809; box-shadow: 0 10px 22px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .6);
  transition: transform .32s var(--ease), box-shadow .3s; }
.genre-all .g-card { --rim: 186, 132, 238; }
.g-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; user-select: none; -webkit-user-drag: none;
  filter: brightness(.8) saturate(.72); transition: filter .3s var(--ease); }
/* the picked card's rim: a gold hairline just inside the art's own border */
.g-card::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease);
  box-shadow: inset 0 0 0 1.5px rgba(var(--rim), .95), inset 0 0 12px rgba(var(--rim), .28); }
.g-card b { position: absolute; z-index: 1; left: 10%; right: 10%; top: 83.2%; height: 15%; display: grid; place-items: center; text-align: center;
  font: 400 16cqw/1 var(--serif); letter-spacing: .005em; color: #2a1c17; white-space: nowrap; transition: color .25s; }
.g-card small { display: none; } /* the line under the row says it instead (too small to read on a card this size) */
.g-gem { position: absolute; z-index: 2; right: -9px; top: -9px; width: 28px; height: 28px; border-radius: 50%; opacity: 0; transform: scale(.4);
  background: radial-gradient(circle at 35% 30%, #fff0c9, rgb(var(--rim)) 52%, rgba(var(--rim), .7)); box-shadow: 0 0 0 1.5px #1b1108, 0 2px 8px rgba(0, 0, 0, .6), 0 0 12px rgba(var(--rim), .55);
  transition: opacity .18s, transform .32s var(--ease-pop); }
.g-gem::after { content: ""; position: absolute; left: 37%; top: 20%; width: 24%; height: 44%; border: solid #1b1108; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.g-foil { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; mix-blend-mode: screen; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 205, .4) 46%, rgba(205, 230, 255, .22) 54%, transparent 70%) 0 0 / 250% 100%; }
@media (hover: hover) {
  .genre:hover .g-card { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 16px 28px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .6); }
  .genre:hover .g-art { filter: brightness(.92) saturate(.9); }
}
.genre:active .g-card { transform: scale(.97); transition-duration: .1s; }
.genre input:checked + .g-card { transform: translateY(-6px); box-shadow: 0 0 24px rgba(var(--rim), .34), 0 20px 34px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .6); }
.genre input:checked + .g-card .g-art { filter: none; }
.genre input:checked + .g-card::before { opacity: 1; }
.genre input:checked + .g-card b { color: #8a1820; }
.genre-all input:checked + .g-card b { color: #4a2470; }
.genre input:checked + .g-card .g-gem { opacity: 1; transform: none; }
.genre input:checked + .g-card .g-foil { animation: foil-pass .8s var(--ease) both; }
@keyframes foil-pass { 0% { opacity: 1; background-position: 100% 0; } 80% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
.genre input:focus-visible + .g-card { outline: 2px solid var(--bone); outline-offset: 4px; }
/* the cards are dealt in when the step opens */
.jstep.in-fwd .genre, .jstep.in-back .genre { animation: deal .55s var(--ease) both; animation-delay: calc(170ms + var(--g, 0) * 45ms); }
@keyframes deal { from { opacity: 0; transform: translateY(22px) rotate(-3deg) scale(.94); } }

/* ---------- plan: two choices side by side, the picked one lit ---------- */
.opts { border: 0; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.opt-card { display: grid; gap: 10px; height: 100%; padding: 24px 24px 20px; border-radius: 14px; background: rgba(10, 7, 8, .72); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, background .2s, transform .25s var(--ease); }
.opt-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 600 18px/1.2 var(--sans); color: var(--bone); }
.opt-name::before { content: ""; flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--bone-3); transition: box-shadow .2s var(--ease); }
.opt-name em { font: 700 13.5px/1 var(--sans); font-style: normal; color: var(--gold); padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .4); white-space: nowrap; }
.opt-price { margin-top: 4px; font: 400 48px/1 var(--serif); color: #fff; white-space: nowrap; }
.opt-price small { margin-left: 6px; font: 500 16px/1 var(--sans); color: var(--bone-3); }
.opt-billed { font: 500 15px/1.4 var(--sans); color: var(--bone-3); }
.opt-save { display: none; font-style: normal; color: var(--gold); }
@media (hover: hover) { .opt:hover .opt-card { box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .3); } }
.opt:active .opt-card { transform: scale(.98); }
.opt input:checked + .opt-card { background: linear-gradient(180deg, rgba(52, 36, 24, .62), rgba(16, 11, 10, .9)); box-shadow: inset 0 0 0 1px var(--gold), 0 0 24px rgba(232, 194, 122, .12); }
.opt input:checked + .opt-card .opt-name::before { box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 4.5px #1d140f, inset 0 0 0 9px var(--gold); }
.opt input:checked + .opt-card .opt-billed { color: var(--bone-2); }
.opt input:focus-visible + .opt-card { outline: 2px solid var(--bone); outline-offset: 3px; }
.packs-note { margin: 0 0 14px; padding: 20px 22px; border-radius: 14px; background: rgba(7, 5, 6, .5); box-shadow: inset 0 0 0 1px var(--line); }
.packs-note h2 { font: 400 22px/1.2 var(--serif); color: var(--bone); }
.packs-note .trial-strip { margin-top: 14px; }
.packs-note p { margin: 12px 0 0; font: 500 15.5px/1.5 var(--sans); color: var(--bone-2); }

/* ---------- checkout: a receipt, the mode said plainly, what keeps the card safe ---------- */
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-mode { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(232, 194, 122, .12); box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .45);
  font: 700 14px/1 var(--sans); color: #f0d9a8; white-space: nowrap; }
.co-mode::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(232, 194, 122, .9); }
.co-mode[hidden] { display: none; }
.receipt { margin: 0 0 16px; padding: 4px 22px; border-radius: 14px; background: rgba(7, 5, 6, .62); box-shadow: inset 0 0 0 1px var(--line); }
.r-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 17px 0; font: 600 17.5px/1.35 var(--sans); color: var(--bone); }
.r-rows { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font: 500 16px/1.45 var(--sans); }
.r-rows dt { color: var(--bone-3); white-space: nowrap; }
.r-rows dd { margin: 0; color: var(--bone-2); text-align: right; }
.r-total span { color: #fff; }
.r-end { display: flex; align-items: baseline; gap: 14px; }
.r-end .co-change { font: 500 15px/1 var(--sans); color: var(--bone-3); }
.r-end .co-change:hover { color: #fff; }
.r-total b { font: 400 36px/1 var(--serif); color: #fff; }
.testmode { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 6px; padding: 16px 18px; border-radius: 12px;
  background: rgba(232, 194, 122, .07); box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .3); }
.testmode p { margin: 0; font: 500 16px/1.55 var(--sans); color: var(--bone-2); } .testmode p b { color: #f0d9a8; }
.testmode.is-live { background: rgba(236, 228, 216, .04); box-shadow: inset 0 0 0 1px var(--line); } .testmode.is-live p b { color: var(--bone); }
.lock { flex: 0 0 auto; position: relative; width: 16px; height: 12px; margin-top: 7px; border-radius: 3px; background: #e8c27a; }
.lock::before { content: ""; position: absolute; left: 3px; right: 3px; bottom: 100%; height: 6px; border: 2px solid #e8c27a; border-bottom: 0; border-radius: 6px 6px 0 0; }
.co-go[aria-busy="true"] { opacity: .7; cursor: progress; }
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 14.5px/1.4 var(--sans); color: var(--bone-3); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: rgba(232, 194, 122, .7); }

/* ---------- Make it yours (board #116): Joe's questions on one compact screen, every one optional ----------
   City and size answers are chips (a gold diamond lights when picked, like the progress row); a city that isn't listed
   is typed into the dashed chip at the end. Your voice: examples to tap in, then up to five short boxes. */
.qs { display: grid; gap: 22px; margin: -6px 0 4px; }
.jstep[data-id="tailor"] .sub { margin-bottom: 20px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q > .note { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 17px 0 15px; border-radius: 999px; white-space: nowrap;
  background: rgba(7, 5, 6, .62); box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .2); font: 500 16.5px/1 var(--sans); color: var(--bone-2);
  transition: box-shadow .2s ease, background .2s ease, color .2s ease, opacity .2s ease, transform .16s var(--ease); }
.chip span::before { content: ""; flex: none; width: 7px; height: 7px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px var(--bone-3); transition: background .2s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine) { .chip:hover span { color: var(--bone); box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .36); } }
.chip:active span { transform: scale(.97); }
.chip input:checked + span { color: #fbe9c4; background: linear-gradient(180deg, rgba(62, 43, 27, .72), rgba(22, 15, 12, .92));
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px rgba(232, 194, 122, .12); }
.chip input:checked + span::before { background: var(--gold); box-shadow: 0 0 8px rgba(232, 194, 122, .75); }
.chip input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 2px; }
.q.is-full .chip input:not(:checked) + span { opacity: .42; }
.chip-add { position: relative; display: inline-flex; }
.chip-add input { width: 160px; min-height: 46px; padding: 0 16px; border: 1px dashed rgba(236, 228, 216, .3); border-radius: 999px; background: transparent;
  color: var(--bone); font: 500 16.5px/1 var(--sans); caret-color: var(--gold); transition: border-color .2s, width .25s var(--ease), padding .2s; }
.chip-add input::placeholder { color: var(--bone-3); opacity: .9; }
.chip-add input:focus { outline: none; border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 194, 122, .14); width: 236px; }
.chip-add.has-text input { padding-right: 68px; width: 236px; }
.chip-add button { position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(232, 194, 122, .16);
  color: #f0d9a8; font: 600 15px/1 var(--sans); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .15s; }
.chip-add.has-text button { opacity: 1; pointer-events: auto; }
.chip-add input[aria-invalid="true"] { border-color: var(--red-hi); }
.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.samples-lab { margin-right: 2px; font: 500 14.5px/1.3 var(--sans); color: var(--bone-3); }
.sample { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: rgba(236, 228, 216, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--bone-2); font: 500 15px/1 var(--sans);
  transition: background .2s, box-shadow .2s, color .2s, opacity .2s, transform .16s var(--ease); }
.sample::before { content: ""; flex: none; width: 9px; height: 9px; background: linear-gradient(var(--gold), var(--gold)) center / 9px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 9px no-repeat; }
@media (hover: hover) and (pointer: fine) { .sample:hover { color: var(--bone); background: rgba(232, 194, 122, .07); box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .35); } }
.sample:active { transform: scale(.97); }
.sample:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.sample.used { opacity: .5; }
.sample.used::before { width: 8px; height: 4px; margin: 0 0 3px; background: none; border: solid var(--gold); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.ex-list { display: grid; gap: 8px; }
.ex { position: relative; }
.ex textarea, .q-text { display: block; width: 100%; min-height: 66px; resize: none; padding: 13px 46px 13px 16px; border: 0; border-radius: 10px;
  background: rgba(7, 5, 6, .72); color: var(--bone); font: 500 17.5px/1.45 var(--sans); caret-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .2); transition: box-shadow .2s; }
.ex textarea::placeholder, .q-text::placeholder { color: var(--bone-3); opacity: .75; }
.ex textarea:focus, .q-text:focus { outline: none; box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px rgba(232, 194, 122, .16); }
.ex-x { position: absolute; top: 7px; right: 7px; width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--bone-3);
  font: 400 20px/1 var(--sans); cursor: pointer; transition: color .15s, background .15s; }
.ex-x:hover { color: #fff; background: rgba(236, 228, 216, .08); }
.ex-x[hidden] { display: none; }
.ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.ex textarea { min-height: 56px; }
.ex-foot .ex-add { font: 600 15.5px/1 var(--sans); color: var(--bone-2); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(232, 194, 122, .5); padding: 4px 0; }
.ex-foot .ex-add:hover { color: #fff; }
.ex-foot .ex-add[hidden] { display: none; }
.ex-count { margin-left: auto; font: 500 14px/1 var(--sans); color: var(--bone-3); font-variant-numeric: tabular-nums; }

/* ---------- Building your system: the real steps light one by one, a gold line fills under them ---------- */
.build-list { list-style: none; margin: 2px 0 18px; padding: 0; display: grid; gap: 14px; }
.build-list li { display: flex; align-items: center; gap: 14px; font: 500 18.5px/1.4 var(--sans); color: var(--bone-3); opacity: .32; transform: translateY(3px);
  transition: opacity .35s var(--ease), color .35s, transform .45s var(--ease); }
.build-list li.is-on { opacity: 1; color: var(--bone-2); transform: none; }
.build-list li.is-done { color: var(--bone); }
.build-list li i { position: relative; flex: none; width: 20px; height: 20px; display: grid; place-items: center; }
.build-list li i::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px var(--bone-3); transition: background .25s, box-shadow .25s; }
.build-list li.is-on:not(.is-done) i::before { width: 16px; height: 16px; border-radius: 50%; transform: none; box-shadow: none;
  border: 2px solid rgba(232, 194, 122, .28); border-top-color: var(--gold); animation: spin .7s linear infinite; }
.build-list li.is-done i::before { background: var(--gold); box-shadow: 0 0 10px rgba(232, 194, 122, .7); animation: seal-pop .4s var(--ease-pop) both; }
@keyframes seal-pop { from { transform: rotate(45deg) scale(1.9); opacity: 0; } to { transform: rotate(45deg) scale(1); } }
.build-bar { height: 2px; margin: 0 0 6px; border-radius: 2px; overflow: hidden; background: var(--line); }
.build-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, rgba(232, 194, 122, .55), var(--gold));
  box-shadow: 0 0 8px rgba(232, 194, 122, .5); transition: transform .6s var(--ease-drawer); }
.acts-end { justify-content: flex-end; }
.jstep .acts .build-skip { min-height: 52px; padding: 0 26px; font-size: 17px; }
/* Codex's orrery, edge to edge across the panel above the list (join.js warmBuild / buildState): three states stacked,
   each fading in over the last, the plate pushing in slowly; its edges melt into the panel. The 2:1 frame crops the
   art's calm dark left a little and the workbench low down; the orrery stays whole. */
.build-art { position: relative; margin: -8px calc(-1 * clamp(28px, 3.6vw, 52px)) 18px; aspect-ratio: 2.1 / 1; overflow: hidden; background: #0b0809;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent); }
.ba-move { position: absolute; inset: 0; transform-origin: 62% 34%; }
.ba-move img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; opacity: 0; transition: opacity .75s var(--ease); }
.ba-move img:first-child, .ba-move img.is-on { opacity: 1; }
/* done: the finished orrery's cream centre glows once */
.build-art::after { content: ""; position: absolute; left: 62%; top: 34%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 236, 200, .4), rgba(232, 194, 122, .14) 55%, transparent); mix-blend-mode: screen; }
.build-art.is-done::after { animation: orrery-glow 1.1s var(--ease) both; }
@keyframes orrery-glow { 0% { opacity: 0; transform: scale(.7); } 40% { opacity: 1; } 100% { opacity: .55; transform: scale(1.05); } }
.join[data-at="build"] .stage .halo { animation: build-breathe 1.6s ease-in-out infinite alternate; }
@keyframes build-breathe { to { filter: brightness(1.45); transform: scale(1.06); } }

/* ---------- Ready: its own beat. The stage leaves the side and stands at the centre (join.js flies the pack there),
   the progress row and the panel's box step away, a burst of light, slow rays and a few embers; one big button; what
   happens next is folded away. ---------- */
.join[data-at="ready"] .progress { display: none; }
.jstep-done h1, .jstep-done .sub { text-shadow: 0 2px 24px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .8); }
.join[data-at="ready"] .stage { position: relative; inset: auto; display: grid; gap: 0; padding: 0; pointer-events: none; }
.join[data-at="ready"] .stage-spot { height: clamp(250px, min(46vh, 100vh - 440px), 500px); margin-bottom: clamp(18px, 3.4vh, 34px); }
.join[data-at="ready"] .stage-cap { display: none; }
.join[data-at="ready"] .join-main { align-items: center; padding-top: 0; padding-bottom: 40px; }
.join[data-at="ready"] .panel { width: min(720px, 100%); background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; text-align: center; padding: 14px 0 0; }
.jstep-done h1 { font-size: clamp(40px, 4.4vw, 64px); letter-spacing: -.01em; }
.jstep-done .sub { margin: 12px auto 26px; max-width: 60ch; text-wrap: balance; font-size: clamp(17px, 1.4vw, 20px); color: #d6ccbf; }
.jstep-done .acts { justify-content: center; margin-top: 0; }
.jstep-done .acts .btn-red { flex: 0 1 380px; min-height: 64px; font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(214, 140, 118, .7), inset 0 1px 0 rgba(255, 226, 187, .32), 0 16px 44px rgba(120, 10, 20, .5), 0 0 0 1px rgba(0, 0, 0, .4); }
.burst { width: 70%; top: 46%; opacity: 0; box-shadow: 0 0 0 2px rgba(255, 228, 190, .55), 0 0 40px 8px rgba(255, 214, 170, .35); }
.join[data-at="ready"] .burst { animation: burst 1.3s var(--ease) .35s both; }
@keyframes burst { from { opacity: .95; transform: scale(.4); } to { opacity: 0; transform: scale(2.3); } }
.embers { position: absolute; inset: 0; pointer-events: none; display: none; }
.join[data-at="ready"] .embers { display: block; }
.embers i { position: absolute; bottom: 30%; left: calc(14% + var(--x) * 72%); width: 3px; height: 3px; border-radius: 50%; background: #ffd9a0; box-shadow: 0 0 6px 1px rgba(255, 190, 120, .8);
  opacity: 0; animation: ember var(--d, 6s) ease-out var(--w, 0s) infinite; }
.embers i:nth-child(1) { --x: .05; --d: 6.5s; --w: .6s; } .embers i:nth-child(2) { --x: .9; --d: 7.4s; --w: 1.4s; } .embers i:nth-child(3) { --x: .22; --d: 5.8s; --w: 2.6s; }
.embers i:nth-child(4) { --x: .7; --d: 6.9s; --w: .2s; } .embers i:nth-child(5) { --x: .4; --d: 8s; --w: 3.4s; } .embers i:nth-child(6) { --x: 1; --d: 6.2s; --w: 4.1s; }
.embers i:nth-child(7) { --x: .12; --d: 7.7s; --w: 5s; } .embers i:nth-child(8) { --x: .58; --d: 6.4s; --w: 1.9s; } .embers i:nth-child(9) { --x: .82; --d: 7.1s; --w: 3s; }
.embers i:nth-child(10) { --x: .32; --d: 6.8s; --w: 4.6s; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(14px, -46vh); } }
.built-for { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px auto 26px; max-width: 560px; }
.built-for[hidden] { display: none; }
.built-for span:not(.sr-only) { padding: 9px 15px; border-radius: 999px; font: 600 15px/1 var(--sans); color: #f0d9a8; white-space: nowrap;
  background: rgba(12, 8, 8, .62); box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.join[data-at="ready"] .built-for span:not(.sr-only) { animation: part-in .5s var(--ease) both; }
details.next { margin: 18px auto 0; max-width: 540px; text-align: left; }
details.next summary { width: max-content; margin: 0 auto; padding: 14px 6px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans); color: var(--bone-2); text-shadow: 0 1px 8px #000; }
details.next summary::-webkit-details-marker { display: none; }
details.next summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
details.next[open] summary::after { transform: translateY(1px) rotate(-135deg); }
details.next summary:hover { color: #fff; }
details.next[open] > :not(summary) { animation: part-in .4s var(--ease) both; }
.first-steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: f; display: grid; gap: 10px; }
.first-steps li { position: relative; padding: 12px 14px 12px 48px; border-radius: 10px; background: rgba(7, 5, 6, .7); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 16.5px/1.5 var(--sans); color: var(--bone-2); }
.first-steps li b { color: var(--bone); }
.first-steps li::before { counter-increment: f; content: counter(f); position: absolute; left: 14px; top: 11px; width: 22px; text-align: center;
  font: 400 22px/1 var(--serif); color: var(--gold); }
.summary { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 16px; border-radius: 10px; background: rgba(7, 5, 6, .7); box-shadow: inset 0 0 0 1px var(--line); }
.summary div { display: grid; gap: 2px; min-width: 0; }
.summary dt { font: 500 14px/1.4 var(--sans); color: var(--bone-3); }
.summary dd { margin: 0; font: 500 16px/1.45 var(--sans); color: var(--bone); overflow-wrap: anywhere; }

/* ---------- into the desk (join.js enterDesk, signin.js go): one move, never a black room ----------
   The words fold away quickly (out is faster than in) while the world and the pack (on Sign in, the IRIS) stay where
   they are: the desk picks them up from those exact places (app.js arrive). */
.is-leaving :is(.panel > .jstep:not([hidden]) > *, .progress, .join-signin, .join-who, .stage-cap) { opacity: 0; transform: translateY(6px); filter: blur(3px);
  transition: opacity .22s cubic-bezier(.4, 0, 1, 1), transform .24s cubic-bezier(.4, 0, 1, 1), filter .22s ease; pointer-events: none; }
.signin.is-leaving .si-plate { opacity: 0; transform: translateY(8px) scale(.985); filter: blur(4px); transition: opacity .24s cubic-bezier(.4, 0, 1, 1), transform .26s cubic-bezier(.4, 0, 1, 1), filter .24s ease; }
.is-leaving .halo { opacity: 1; transform: scale(1.12); transition: transform .4s var(--ease), opacity .3s; }
.is-leaving .burst, .is-leaving .embers { opacity: 0; transition: opacity .2s; }

/* ---------- narrow screens: the last step's pack sits in the flow above its words ---------- */
@media (max-width: 979px) {
  .stage { position: relative; inset: auto; display: none; gap: 14px; padding: 8px 0 4px; }
  .join[data-at="ready"] .rays { width: 380%; }
  .stage-spot { height: 150px; }
  .stage-pack { animation: none; }
  .stage-cap b { font-size: 20px; } .stage-cap span { font-size: 13.5px; }
  .join-main { justify-content: flex-start; align-items: center; }
}
@media (max-width: 520px) {
  .join-top { padding-top: 16px; }
  .join-main { padding-top: 14px; }
  .progress span { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: 0; transition: opacity .3s; }
  .progress li:first-child span { left: 0; transform: none; } .progress li:last-child span { left: auto; right: 0; transform: none; }
  .progress li.now span { opacity: 1; }
  .progress { margin-bottom: 42px; }
  .panel { padding: 26px 20px 24px; border-radius: 16px; }
  .jstep h1 { font-size: 33px; }
  .sub { font-size: 17.5px; margin-bottom: 22px; }
  .field .lab { font-size: 16px; }
  .field input { min-height: 58px; font-size: 18px; }
  .handle b { font-size: 18px; }
  .join-who .who-email { display: none; }
  .g-row { grid-template-columns: repeat(6, 1fr); gap: 14px 12px; max-width: 360px; margin: 0 auto; }
  .build-art { margin-inline: -20px; }
  .genre { grid-column: span 2; }
  .genre:nth-of-type(4) { grid-column: 2 / span 2; }
  .lab-hint { display: block; margin: 4px 0 0; }
  .chip-add input:focus, .chip-add.has-text input { width: 100%; }
  .chip-add:focus-within, .chip-add.has-text { flex: 1 1 100%; }
  .sample { min-height: 44px; }
  .built-for { margin-top: -6px; }
  /* the button stays in reach while you look through the cards and the questions */
  :is(.jstep[data-id="you"], .jstep[data-id="tailor"]) .acts { position: sticky; bottom: 0; z-index: 4; margin: 0 -20px -24px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(11, 8, 9, .96) 34%); }
  .opts { gap: 10px; }
  .opt-card { padding: 18px 14px 16px; }
  .opt-name { font-size: 16.5px; }
  .opt-price { font-size: 38px; }
  .opt-name em { display: none; } .opt-save { display: inline; }
  .opt-price small { font-size: 14px; margin-left: 3px; }
  .jstep .acts .btn { min-height: 56px; font-size: 17px; }
  .jstep .acts .btn-ghost { flex: 0 0 auto; padding: 0 20px; }
  .jstep .acts .btn-red { padding: 0 18px; min-width: 0; }
  .r-rows div { flex-direction: column; gap: 1px; }
  .r-rows dd { text-align: left; }
  .join[data-at="ready"] .stage-spot { height: clamp(250px, 40vh, 330px); }
  .join[data-at="ready"] .stage { padding-top: 14px; }
  .jstep-done .acts .btn-red { flex-basis: 100%; }
  .jstep-done h1 { font-size: 36px; }
  .jstep-done .sub { font-size: 16.5px; margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .jstep.in-fwd > *, .jstep.in-back > *, .jstep.in-fwd .genre, .jstep.in-back .genre { animation: step-fade .2s linear both; animation-delay: 0s; }
  .embers, .burst { display: none !important; }
  .stage-pack, .join[data-at="ready"] .rays { animation: none; }
  .stage-pack { transition: opacity .3s; } .join[data-at="ready"] .stage-pack { scale: none; }
  .jstep .btn-red[aria-busy="true"]::after, .spin { animation-duration: 1.4s; }
  .progress::after, .progress i::before, .g-card, .g-card::before, .g-gem, .opt-card { transition: opacity .2s; }
  .ba-move img { transition: opacity .2s linear; } .build-art.is-done::after { animation: none; opacity: .5; }
  .genre input:checked + .g-card { transform: none; }
  .genre input:checked + .g-card .g-foil { animation: none; }
  .build-list li { transform: none; } .join[data-at="build"] .stage .halo { animation: none; }
  .build-list li.is-done i::before { animation: none; }
  .chip span, .sample, .chip-add input { transition: opacity .2s, box-shadow .2s, background .2s, color .2s; }
  .is-leaving :is(.panel > .jstep:not([hidden]) > *, .progress, .join-signin, .join-who, .stage-cap), .signin.is-leaving .si-plate { transform: none; filter: none; transition: opacity .14s linear; }
}
@keyframes step-fade { from { opacity: 0; } }
.fine.split { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Sign in (rebuilt 10-25): the title screen's lockup over the live world, one plate under it ----------
   The IRIS wordmark is big and central like the desk's title screen (Bodoni, the wordmark only); the plate is the desk's
   dark stone glass with a gold hairline and a second engraved line inside, floating on a deep shadow. Signing in folds
   the plate away and the IRIS flies on into the desk's menu (app.js arrive). */
.signin .join-main.si-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 0 clamp(36px, 8vh, 96px); }
.signin .join-main > * { width: min(540px, 100%); } /* (#174: a little wider, with Join's bigger type and fields) */
.si-mark { width: auto !important; display: grid; justify-items: center; text-decoration: none; margin-bottom: clamp(22px, 4vh, 40px); border-radius: 8px;
  animation: si-rise 1.1s .05s var(--ease) both; }
.si-mark b { display: inline-block; font: 400 clamp(76px, 8.2vw, 128px)/.88 var(--wordmark); letter-spacing: .1em; margin-right: -.1em; color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .7), 0 0 70px rgba(255, 214, 170, .14); }
.si-mark span { margin-top: 14px; font: 600 13.5px/1.2 var(--sans); letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; color: var(--bone);
  text-shadow: 0 1px 8px #000; }
.si-plate { padding: clamp(28px, 3.2vw, 40px) clamp(24px, 3.2vw, 40px) clamp(24px, 2.8vw, 32px); border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 18, 19, .9), rgba(9, 6, 7, .94));
  box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .26), inset 0 1px 0 rgba(255, 240, 220, .09), 0 0 0 1px rgba(0, 0, 0, .5),
    0 50px 120px -10px rgba(0, 0, 0, .78), 0 18px 40px rgba(0, 0, 0, .45);
  animation: si-plate-in .8s .16s var(--ease) both; }
.si-plate::before { content: ""; position: absolute; inset: 7px; border-radius: 11px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(232, 194, 122, .1); }
.si-plate .jstep h1 { font-size: clamp(34px, 2.8vw, 44px); text-align: center; }
.si-plate .sub { margin: 8px 0 28px; text-align: center; font-size: 18.5px; }
.si-plate .field input { min-height: 62px; border-radius: 8px; }
.lab-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lab-row .link.inline { font: 500 15.5px/1.2 var(--sans); color: var(--bone-2); text-decoration: none; padding: 4px 0; margin: -4px 0; }
.lab-row .link.inline:hover { color: #fff; text-decoration: underline; }
.si-plate .acts { margin-top: 2px; }
.si-plate .acts .btn-red:only-child { width: 100%; }
.si-new { margin-top: 22px; text-align: center; font-size: 16px; color: var(--bone-3); }
.si-new a, .si-new .link.inline { color: var(--bone); font-weight: 600; text-decoration: none; box-shadow: inset 0 -1px 0 rgba(232, 194, 122, .55); transition: color .15s, box-shadow .15s; }
.si-new a:hover, .si-new .link.inline:hover { color: #fff; box-shadow: inset 0 -1px 0 var(--gold); }
@keyframes si-rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
@keyframes si-plate-in { from { opacity: 0; transform: translateY(20px) scale(.985); } }
@media (max-width: 520px) {
  .signin .join-main.si-main { justify-content: flex-start; padding-top: clamp(20px, 6vh, 56px); }
  .si-mark b { font-size: 72px; }
  .si-mark span { font-size: 12.5px; letter-spacing: .3em; margin-right: -.3em; }
  .si-plate { padding: 26px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { .si-mark, .si-plate { animation: step-fade .3s linear both; } }

/* ?preview=1 (Settings > Testing > Screens, board #150): Join and Sign in as a newcomer sees them, nothing saved or sent */
.preview-tag { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: calc(100vw - 32px); margin: 0; padding: 9px 14px; border-radius: 999px; pointer-events: none;
  background: rgba(14, 34, 24, .92); box-shadow: inset 0 0 0 1px rgba(143, 220, 174, .42), 0 8px 24px rgba(0, 0, 0, .45); color: #b9e8cb; font: 600 14px/1.3 Inter, system-ui, sans-serif; }
.preview-tag b { margin-right: 6px; color: #fff; }
/* on a phone the tag would sit on the step's button: it says its piece, then fades away */
@media (max-width: 640px) { .preview-tag { animation: pv-out .4s ease 4s forwards; } }
@keyframes pv-out { to { opacity: 0; visibility: hidden; } }
