/* esoteria.ai v2: home.css, the home's own pages (the world, the eight pages). Split from round 14 site.css by tools/css-split.mjs (2026-11-09); edit here, not in site.css. */
/* ------------------------------------------------ world + layers + track */
.world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; transition: transform .45s var(--ease); transform-origin: 50% 42%; }
.still { position: fixed; inset: 0; z-index: 0; background: center / cover no-repeat; display: none; }
.track { position: relative; z-index: 1; pointer-events: none; }
.track section { height: calc(var(--span) * 100vh); height: calc(var(--span) * 100lvh); }
/* reveal: arrive once per visit, short travel, then rest in place */
.note { opacity: 0; transform: translateY(18px); transition: opacity .42s var(--ease), transform .55s var(--ease); }
.card-b { font-size: 14px; line-height: 1.5; color: var(--t3); margin-top: -4px; }
/* ------------------------------------------------ 1 hero */
.copy.hero { left: calc(88px * var(--k)); top: 31%; width: calc(640px * var(--k)); }
.note { position: absolute; right: calc(28px * var(--k)); top: calc(92px * var(--k)); width: 372px; padding: 12px 14px 12px; border-radius: 18px; background: linear-gradient(90deg, rgba(var(--cob-rgb), .06), rgba(var(--cob-rgb), 0) 45%), rgba(24, 23, 30, .96); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px -20px rgba(0, 0, 0, .9); transform: translateX(28px); }
.layer.on.played .note { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.note::after { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: linear-gradient(90deg, rgba(var(--chalk-rgb), .15), rgba(var(--chalk-rgb), .85) 35%, rgba(var(--chalk-rgb), .3)); }
.note-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t3); }
.note-top img { width: 20px; height: 20px; border-radius: 5px; }
.note-top span { color: var(--t2); font-weight: 500; flex: 1; }
.note-body { display: flex; align-items: flex-start; gap: 12px; margin-top: 3px; }
.note-body p { font-size: 14.5px; font-weight: 500; line-height: 1.38; flex: 1; }
.note-keys { display: flex; justify-content: flex-end; gap: 4px; margin-top: 10px; }
.note .demo { margin-top: 8px; font-size: 11.5px; }
/* ------------------------------------------------ 2 reads */
.copy.reads { left: calc(88px * var(--k)); top: 31%; width: calc(520px * var(--k)); }
.desk { position: absolute; left: 57%; top: 18%; width: calc(540px * var(--k)); perspective: 1600px; }
.well { width: 32px; height: 32px; border-radius: 50%; background: #1C1B23; display: grid; place-items: center; }
.well svg { width: 16px; height: 16px; fill: none; stroke: var(--t2); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.card.first { margin: 18px 0 0 calc(64px * var(--k)); width: calc(440px * var(--k)); }
.layer.on.played .card.first { transform: rotateY(-9deg) rotateX(3deg) translateZ(30px); }
/* ------------------------------------------------ 3 price */
.copy.price { left: 59%; top: 11%; width: calc(520px * var(--k)); }
/* ------------------------------------------------ 6 close */
.copy.close { left: calc(88px * var(--k)); top: 36%; width: calc(600px * var(--k)); }
.sheet { position: fixed; z-index: 51; left: 50%; top: 50%; width: min(460px, calc(100vw - 32px)); padding: 28px 28px 22px; border-radius: 22px; background: #131319; box-shadow: inset 0 0 0 1px #2A2933, 0 40px 90px -30px rgba(0, 0, 0, .95); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .32s var(--ease), opacity .26s var(--ease); }
.sheet.on { transform: translate(-50%, -50%); opacity: 1; }
.sheet h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 14px; }
.sheet .opt { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.sheet .opt b { font-weight: 500; font-size: 16px; }
.sheet .opt span { font-size: 14px; color: var(--t3); line-height: 1.5; }
.phone .copy.hero, .phone .copy.reads, .phone .copy.price { left: 20px; right: 20px; width: auto; }
.phone .copy.hero { top: auto; bottom: 26px; }
.phone .copy.hero .ctas { gap: 8px; }
.phone .copy.hero .btn { padding: 0 16px; font-size: 14.5px; }
.phone .copy.hero .sub { max-width: 21em; }
.phone .note { left: 16px; right: 16px; width: auto; top: 72px; padding: 10px 12px; }
.phone .note-keys { margin-top: 4px; }
/* phones: words sit on a soft dark fall, so they never sit on light */
.phone [data-layer="hero"]::before, .phone [data-layer="close"]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(rgba(9, 9, 13, 0), rgba(9, 9, 13, .78) 34%, rgba(9, 9, 13, .9)); pointer-events: none; }
.phone .copy.reads { top: 84px; }
.phone .desk { left: 16px; right: 16px; width: auto; top: auto; bottom: 18px; }
.phone .layer.on.played .card.first { transform: none; }
.phone .card.first { margin: 12px 0 0; width: auto; }
.phone .copy.price { top: 80px; }
.phone .copy.price .sub { display: none; }
.phone .copy.close { left: 20px; right: 20px; width: auto; top: auto; bottom: 14%; }
/* ------------------------------------------------ reduced motion: designed stills, no travel */
.reduced .world { transition: none !important; animation: none !important; }
/* pieces that fly: their transform is the flight (a homography onto the card's four projected corners) */
.flyers { position: fixed; inset: 0; z-index: 11; pointer-events: none; }
.fl, .layer.on.played .fl, .layer.on .fl { transition: none !important; transform-origin: 0 0; }
.layer.on.played .card.fl, .layer.on.played .note.fl { transform: none; }
.flyers .ghost { position: absolute; margin: 0; will-change: transform, opacity; }
/* the mailbox stands flat in the light (its rows leave it on their own rectangles) */
.layer.on.played .card.first { transform: none; }
.card.first { margin-left: calc(36px * var(--k)); }
/* price: three cards in a row, low right, each lit by its book */
.copy.price { left: auto; right: calc(88px * var(--k)); top: 12%; width: calc(520px * var(--k)); }
/* ================================================ QA round 1 */
.flychip { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; background: rgba(18, 17, 23, .92); box-shadow: inset 0 0 0 1px rgba(var(--cob-rgb), .5), 0 0 24px rgba(var(--cob-rgb), .35); will-change: transform, opacity; opacity: 0; }
.card-demo { color: var(--t3); margin-top: -2px; }
.phone .copy.price { top: 76px; }
.copy.reads { width: calc(560px * var(--k)); }
.copy.price { top: 14%; width: calc(480px * var(--k)); }
.track { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.layer.on.played .card.first:not(.in) { opacity: 0; transform: translateY(12px); }
.layer.on.played .card.first.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
/* poster-first: a designed still paints at once; the live world fades in over it */
.still { display: block; background-image: url("assets/poster-desktop.jpg"); transition: opacity .6s var(--ease); }
.phone .still { background-image: url("assets/poster-phone.jpg"); }
html.ready .still { opacity: 0; pointer-events: none; }
.layer:not(.on) .note { opacity: 0 !important; transform: translateY(-12px) !important; transition: opacity .26s cubic-bezier(.4, 0, 1, 1), transform .26s cubic-bezier(.4, 0, 1, 1) !important; }
.world { transition: transform var(--move, 1.1s) cubic-bezier(.45, 0, .15, 1), opacity .15s linear; }
body.foot-on .world { transform: translateY(calc(-1 * var(--footLift, var(--footH, 40vh)))); }
body.xfade .world { opacity: 0; }
.reduced .world { transition: opacity .15s linear !important; }
html.native .track { position: relative; width: auto; height: auto; clip: auto; overflow: visible; }
html.native .track section { height: 100vh; }
@media (max-height: 820px) {
  html:not(.phone) .desk { transform: scale(.88); transform-origin: top right; }
  html:not(.phone) .card.first { margin-top: 12px; }
}
.pickchip { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; background: rgba(18, 17, 23, .94); box-shadow: inset 0 0 0 1px var(--line-2); will-change: transform, opacity; opacity: 0; transition: opacity .35s var(--ease); }
.pickchip.answer { background: rgba(18, 17, 23, .94); color: var(--t2); font-weight: 500; }
/* every job: three real cards that came out of the one orb, each tied back to it */
.copy.jobs { left: calc(88px * var(--k)); top: 11%; width: calc(560px * var(--k)); }
.ki { width: 15px; height: 15px; fill: none; stroke: var(--t2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.threads { position: fixed; inset: 0; z-index: 9; pointer-events: none; width: 100vw; height: 100vh; }
.threads path { fill: none; stroke-width: 1.2; stroke-linecap: round; }
/* everywhere: a real Mac and a real iPhone, dark, lit from behind by the orb */
.copy.everywhere { left: calc(88px * var(--k)); top: 9%; width: calc(560px * var(--k)); }
.orbic { width: calc(14px * var(--k)); height: calc(14px * var(--k)); display: block; }
.dev-demo { position: absolute; right: calc(88px * var(--k)); bottom: 7%; }
/* phone layouts for the new chapters */
.phone .copy.jobs, .phone .copy.everywhere { left: 20px; right: 20px; width: auto; top: 76px; }
.phone .dev-demo { right: 16px; bottom: 16px; }
.dev-demo { top: calc(20% + 556px * var(--k)); bottom: auto; right: calc(88px * var(--k)); width: calc(250px * var(--k)); text-align: center; }
@media (max-height: 820px) {
  html:not(.phone) .dev-demo { top: calc(20% + 486px * var(--k)); width: calc(220px * var(--k)); }
}
.phone .dev-demo { top: auto; bottom: 10px; width: auto; right: 16px; }
@media (max-height: 820px) {
  html:not(.phone) .dev-demo { top: calc(max(26vh, 200px) + 540px * var(--k)); width: calc(244px * var(--k)); }
}
/* reads: where Atlas looks. A panel of rows from every source; the lit picks arrive from the flock */
.sources { position: relative; isolation: isolate; border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1px var(--line), 0 50px 90px -40px #000; overflow: hidden; }
.src { display: grid; grid-template-columns: 32px 74px 1fr; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.35; color: var(--t2); position: relative; }
.src:first-child { border-top: 0; }
.src .well { width: 32px; height: 32px; border-radius: 50%; background: #1C1B23; display: grid; place-items: center; }
.src .ki { width: 15px; height: 15px; }
.src-l { font-size: 12px; font-weight: 500; color: var(--t3); }
.src-t { color: var(--t1); }
.src.grow { box-shadow: inset 2px 0 0 var(--cobalt); background: rgba(var(--cob-rgb), .05); }
.src.save { box-shadow: inset 2px 0 0 var(--ox); background: rgba(var(--ox-rgb), .05); }
.src.quiet { opacity: 0; transition: opacity .6s var(--ease); }
.src.quiet .src-t, .src.quiet .src-l { color: var(--t4); }
.src.quiet.in { opacity: .55; }
.desk .card.first { margin: 16px 0 0 calc(36px * var(--k)); width: calc(440px * var(--k)); }
/* price: three doors, each with its figure and its reasons as facts */
.doors { position: absolute; right: calc(52px * var(--k)); bottom: calc(110px * var(--k)); display: flex; align-items: flex-end; gap: calc(18px * var(--k)); }
.door { width: calc(320px * var(--k)); }
.door.grow { width: calc(350px * var(--k)); }
.door-k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); }
.fig { font-size: calc(34px * var(--k)); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--t1); line-height: 1.05; }
.fig.ans { font-size: calc(21px * var(--k)); font-weight: 500; line-height: 1.25; }
.facts2 { display: grid; gap: 6px; }
.facts2 li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.4; color: var(--t2); opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.facts2 li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--t3); }
.door.grow .facts2 li::before { background: var(--cobalt); }
.door.save .facts2 li::before { background: var(--ox); }
.facts2 li.in, .reduced .facts2 li { opacity: 1; transform: none; }
.doors-demo { position: absolute; right: 0; bottom: -26px; white-space: nowrap; }
.copy.price { left: calc(88px * var(--k)); right: auto; top: 12%; width: calc(560px * var(--k)); }
.door.card.lit::after, .door::after { display: none; }
/* work: three kinds of work, happening */
.copy.jobs { top: 9%; }
.works { position: absolute; left: calc(88px * var(--k)); right: calc(52px * var(--k)); top: 31%; display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: calc(18px * var(--k)); align-items: start; }
.work { gap: 9px; padding: 16px 18px 14px; }
.mailhead { display: grid; gap: 3px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--t2); }
.mailhead span { color: var(--t3); margin-right: 8px; }
.mailhead b { font-weight: 500; color: var(--t1); }
.typed { font-size: 14px; line-height: 1.55; color: var(--t1); min-height: 6.2em; white-space: pre-wrap; }
.lift { display: grid; grid-template-columns: 32px 46px 1fr; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(var(--cob-rgb), .06); box-shadow: inset 2px 0 0 var(--cobalt), inset 0 0 0 1px var(--line); font-size: 13px; transition: transform .7s var(--ease), opacity .5s var(--ease), max-height .6s var(--ease), padding .6s var(--ease), margin .6s var(--ease); max-height: 80px; transform-origin: 0 0; }
.lift .well { width: 32px; height: 32px; border-radius: 50%; background: #1C1B23; display: grid; place-items: center; }
.lift .ki { width: 15px; height: 15px; }
.lift.gone { opacity: 0; transform: translateY(-6px) scale(.96); max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -9px; }
.srctag { font-size: 12.5px; font-weight: 500; color: var(--t2); opacity: 0; transition: opacity .5s var(--ease) .2s; }
.srctag.in { opacity: 1; }
.signers { display: grid; gap: 2px; }
.signers li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); opacity: 0; transform: translateX(-8px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.signers li:first-child { border-top: 0; }
.signers li.in { opacity: 1; transform: none; }
.signers .av { width: 30px; height: 30px; border-radius: 50%; background: #1E1D25; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--t2); box-shadow: inset 0 0 0 1px rgba(var(--cob-rgb), .5); }
.signers b { display: block; font-weight: 500; font-size: 13.5px; color: var(--t1); }
.signers small { display: block; font-size: 12px; line-height: 1.35; color: var(--t3); }
.first-mail { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #17161D; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--t3); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.first-mail b { font-weight: 500; color: var(--t1); font-size: 13px; }
.first-mail.in { opacity: 1; transform: none; }
.hist { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 74px; padding: 4px 2px 18px; }
.hist i { flex: 1; height: calc(var(--d) * 1.6px); border-radius: 3px 3px 1px 1px; background: #34333E; transform-origin: bottom; transform: scaleY(0); transition: transform .5s var(--ease); }
.hist i.now { background: var(--ox); }
.hist.in i { transform: none; }
.hist i:nth-child(2) { transition-delay: 60ms; }
.hist i:nth-child(3) { transition-delay: 120ms; }
.hist i:nth-child(4) { transition-delay: 180ms; }
.hist i:nth-child(5) { transition-delay: 240ms; }
.hist i:nth-child(6) { transition-delay: 300ms; }
.hist i:nth-child(7) { transition-delay: 520ms; transition-duration: .9s; }
.hl { position: absolute; bottom: 0; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--t3); opacity: 0; transition: opacity .4s var(--ease) .7s; }
.hl-u { left: 38%; }
.hl-n { right: 4%; color: var(--t1); font-weight: 700; }
.hist.in .hl { opacity: 1; }
.work .card-top { margin-top: 2px; }
.work .card-h { font-size: 14.5px; }
.work.compose .card-top { min-height: 0; }
/* everywhere: a MacBook Pro and an iPhone, real proportions, lit from behind */
.stage { position: absolute; inset: 0; pointer-events: none; }
.mbp { position: absolute; left: calc(70px * var(--k)); top: calc(24% + 0px); width: calc(800px * var(--k)); transform-origin: 50% 60%; }
.mbp-lid { position: relative; padding: calc(10px * var(--k)) calc(10px * var(--k)) calc(14px * var(--k)); border-radius: calc(20px * var(--k)) calc(20px * var(--k)) calc(8px * var(--k)) calc(8px * var(--k)); background: #050506;
  /* the aluminium edge; the orb sits behind the right side, so its light rims the right and top edges */
  box-shadow: 0 0 0 1px #2C2C33, 0 0 0 2px #121216, inset 0 0 0 1px #1A1A1F, 1.5px -1px 0 1.5px rgba(232, 236, 255, .55), 4px -2px 14px -6px rgba(200, 208, 255, .35), 0 60px 100px -40px #000; }
.mbp-screen { position: relative; aspect-ratio: 16 / 10.4; border-radius: calc(10px * var(--k)) calc(10px * var(--k)) 2px 2px; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, #1B1A24, #0B0B10 60%); }
.notch { position: absolute; left: 50%; top: 0; width: calc(88px * var(--k)); height: calc(16px * var(--k)); margin-left: calc(-44px * var(--k)); border-radius: 0 0 calc(8px * var(--k)) calc(8px * var(--k)); background: #000; z-index: 5; }
.mbar { position: relative; z-index: 4; height: calc(22px * var(--k)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(14px * var(--k)); background: rgba(14, 14, 18, .72); }
.mb-l, .mb-r { display: flex; align-items: center; gap: calc(10px * var(--k)); }
.mb-apple { width: calc(10px * var(--k)); height: calc(10px * var(--k)); border-radius: 50%; background: #8E8B97; }
.batt { width: calc(20px * var(--k)); height: calc(9px * var(--k)); border-radius: 2.5px; box-shadow: inset 0 0 0 1px #8E8B97; background: linear-gradient(90deg, #C9C6D0 70%, transparent 70%) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; }
.wifi { width: calc(12px * var(--k)); height: calc(9px * var(--k)); border-radius: 12px 12px 0 0; border: 1.5px solid #8E8B97; border-bottom: 0; }
.pdfwin, .chromewin { position: absolute; border-radius: calc(10px * var(--k)); background: #141319; box-shadow: inset 0 0 0 1px #2A2933, 0 30px 60px -24px #000; overflow: hidden; transition: transform .9s var(--ease), opacity .7s var(--ease); }
.pdfwin::after, .chromewin::after { content: ""; position: absolute; inset: 0; z-index: 20; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.stage.b2 .pdfwin::after { opacity: .3; }
.chromewin::after { opacity: .45; }
.stage.s5 .chromewin::after { opacity: 0; }
.stage.s5 .pdfwin::after { opacity: .45; }
.reduced .chromewin::after, .reduced .pdfwin::after { transition: opacity .3s linear; }
.pdfwin { left: 3%; top: 8%; width: 58%; height: 86%; }
.pw-bar, .cw-tabs { height: calc(26px * var(--k)); display: flex; align-items: center; gap: 6px; padding: 0 calc(10px * var(--k)); background: #1A1920; border-bottom: 1px solid #26252E; font-size: calc(11px * var(--k)); color: var(--t3); }
.pw-bar i, .cw-tabs > i { width: calc(9px * var(--k)); height: calc(9px * var(--k)); border-radius: 50%; background: #34333D; }
.pw-body { display: grid; grid-template-columns: calc(54px * var(--k)) 1fr; height: calc(100% - 26px * var(--k)); }
.thumbs { display: flex; flex-direction: column; gap: 8px; padding: 10px 9px; border-right: 1px solid #24232C; background: #121117; }
.thumbs i { aspect-ratio: 8.5 / 11; border-radius: 2px; background: #1F1E26; }
.thumbs i.on { box-shadow: 0 0 0 1.5px #6E6B76; }
.page { margin: calc(12px * var(--k)) calc(18px * var(--k)); padding: calc(16px * var(--k)) calc(20px * var(--k)); border-radius: 3px; background: #1C1B22; display: grid; align-content: start; gap: calc(6px * var(--k)); }
.pg-h { font-size: calc(11px * var(--k)); font-weight: 700; letter-spacing: .04em; color: var(--t1); margin-bottom: 4px; }
.pg-s { font-size: calc(11px * var(--k)); font-weight: 700; color: var(--t1); margin-top: 4px; }
.pg-p { font-size: calc(10.5px * var(--k)); line-height: 1.45; color: var(--t2); }
.pg-p b { font-weight: 500; color: var(--t1); margin-right: 4px; }
.chromewin { right: 3%; top: 12%; width: 60%; height: 74%; opacity: 0; transform: translateX(30px) scale(.97); }
.cw-tabs .tab { margin-left: calc(10px * var(--k)); align-self: flex-end; height: calc(21px * var(--k)); padding: 0 calc(12px * var(--k)); display: inline-flex; align-items: center; border-radius: 7px 7px 0 0; background: #141319; color: var(--t1); font-size: calc(10.5px * var(--k)); }
.cw-bar { height: calc(28px * var(--k)); display: flex; align-items: center; gap: calc(8px * var(--k)); padding: 0 calc(10px * var(--k)); border-bottom: 1px solid #24232C; }
.cw-bar .nav { color: var(--t3); font-size: calc(13px * var(--k)); }
.cw-bar .omni { flex: 1; height: calc(19px * var(--k)); border-radius: 999px; background: #0F0E14; display: flex; align-items: center; padding: 0 calc(10px * var(--k)); font-size: calc(10.5px * var(--k)); color: var(--t2); }
.cw-bar .ext .orbic { width: calc(15px * var(--k)); height: calc(15px * var(--k)); }
.cw-body { display: grid; grid-template-columns: 1fr calc(150px * var(--k)); height: calc(100% - 54px * var(--k)); }
.teampage { padding: calc(14px * var(--k)); }
.tp-h { font-size: calc(15px * var(--k)); font-weight: 500; color: var(--t1); margin-bottom: calc(10px * var(--k)); }
.tp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(10px * var(--k)) calc(8px * var(--k)); }
.tp { display: grid; justify-items: center; text-align: center; gap: 3px; }
.tp .av { width: calc(34px * var(--k)); height: calc(34px * var(--k)); border-radius: 50%; display: grid; place-items: center; background: #24232C; font-size: calc(10.5px * var(--k)); font-weight: 500; color: var(--t2); }
.tp.on .av { box-shadow: 0 0 0 1.5px var(--cobalt); color: var(--t1); }
.tp b { font-size: calc(10px * var(--k)); font-weight: 500; color: var(--t1); line-height: 1.2; }
.tp small { font-size: calc(9px * var(--k)); color: var(--t3); line-height: 1.2; }
.mbp-base { position: relative; height: calc(14px * var(--k)); margin: 0 calc(-60px * var(--k)); border-radius: 2px 2px calc(12px * var(--k)) calc(12px * var(--k)); background: linear-gradient(#3A3A41, #1A1A1E 60%, #0C0C0E); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 3px -1px 0 0 rgba(232, 236, 255, .28), 0 30px 40px -20px #000; }
.mbp-base i { position: absolute; left: 50%; top: 0; width: calc(110px * var(--k)); height: calc(5px * var(--k)); margin-left: calc(-55px * var(--k)); border-radius: 0 0 6px 6px; background: #121215; }
.dev-demo { position: absolute; right: calc(80px * var(--k)); top: calc(17% + 562px * var(--k)); width: calc(258px * var(--k)); text-align: center; }
/* beats: Mac (the capsule answers), then the browser, then the iPhone; a slow push in */
.stage .mbp { opacity: 0; transition: opacity .8s var(--ease), transform 8s cubic-bezier(.2, .6, .2, 1); transform: translateY(20px) scale(.985); }
.layer.on.played .stage .mbp { opacity: 1; transform: scale(1.02); }
.stage.b2 .chromewin { opacity: 1; transform: none; }
.reduced .stage .chromewin { opacity: 1; transform: none; }
@media (max-height: 820px) {
  html:not(.phone) .mbp { width: calc(760px * var(--k)); top: max(24vh, 190px); }
  html:not(.phone) .dev-demo { top: calc(max(20vh, 160px) + 520px * var(--k)); }
  html:not(.phone) .works { top: 29%; }
  html:not(.phone) .doors { bottom: calc(80px * var(--k)); }
}
/* phones */
.phone .desk { left: 16px; right: 16px; width: auto; top: auto; bottom: 18px; }
.phone .src { grid-template-columns: 28px 1fr; gap: 4px 10px; padding: 8px 12px; font-size: 12.5px; }
.phone .src .well { width: 28px; height: 28px; grid-row: span 2; }
.phone .src-l { font-size: 11px; }
.phone .src.quiet { display: none; }
.phone .desk .card.first { display: none; }
.phone .doors { left: 16px; right: 16px; bottom: 30px; flex-direction: column; align-items: stretch; gap: 8px; }
.phone .door { width: auto !important; padding: 10px 12px 6px; gap: 4px; }
.phone .fig { font-size: 24px; }
.phone .fig.ans { font-size: 16px; }
.phone .facts2 li { font-size: 12.5px; }
.phone .door .keys { padding-top: 2px; border-top: 0; margin-top: 0; }
.phone .doors-demo { position: static; }
.phone .copy.price .sub, .phone .copy.jobs .sub { display: block; }
.phone .works { left: 16px; right: 16px; top: auto; bottom: 18px; display: block; height: 62%; }
.phone .work { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.phone .work.beat-on { opacity: 1; transform: none; }
.phone .reduced .work:first-child, .reduced.phone .work:first-child { opacity: 1; transform: none; }
.phone .mbp { left: 16px; width: 780px; top: 19%; zoom: var(--macZ); }
.phone .dev-demo { top: auto; bottom: 10px; right: 16px; width: auto; }
.phone .layer.on .work:not(.beat-on), .phone .layer.on.played .work:not(.beat-on) { opacity: 0 !important; transform: translateY(16px) !important; }
.phone .layer.on.played .work.beat-on { opacity: 1 !important; transform: none !important; }
.reduced.phone .layer.on .work:first-child { opacity: 1 !important; transform: none !important; }
/* 1. the rim is light from the orb: brightest on the edge facing it, falling off around the body */
.mbp-lid { box-shadow: 0 0 0 1px #26262C, 0 0 0 2px #101013, inset 0 0 0 1px #1A1A1F, inset -1px 0 0 rgba(255, 255, 255, .22), 0 60px 100px -40px #000; }
.mbp-lid::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: radial-gradient(260px 420px at 100% 55%, rgba(232, 236, 255, .9), rgba(232, 236, 255, .22) 55%, transparent 100%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask-composite: exclude; }
.mbp::after { content: ""; position: absolute; right: -40px; top: 10%; width: 80px; height: 70%; background: radial-gradient(closest-side, rgba(200, 208, 255, .10), transparent); pointer-events: none; }
.mbp-base { height: calc(22px * var(--k)); box-shadow: inset 0 2px 0 #4A4A52, inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 40px -20px #000; }
/* 5. the Mac desktop has its own in-brand wallpaper; the viewer starts centred and moves aside for the browser; the address bar holds only a lock */
.mbp-screen::before { content: ""; position: absolute; left: 70%; top: 45%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); background: url("assets/mark-small-dark.svg") center / contain no-repeat; opacity: .08; }
.pdfwin { left: 21%; }
.stage.b2 .pdfwin { transform: translateX(-31%); }
.cw-bar .omni .lock { width: calc(10px * var(--k)); height: calc(10px * var(--k)); fill: none; stroke: var(--t3); stroke-width: 1.2; }
/* 2. a waiting kind of work sits back until its beat */
.works .work { transition: opacity .3s var(--ease); }
.layer.on.played .works .work.waiting { opacity: .55; }
/* 3. the figure is held until its reasons have landed */
.fig.pending { opacity: 0; }
.fig { transition: opacity .25s var(--ease); }
/* 4. the reads panel builds as its rows land */
/* v2: the panel's fill is a pre-drawn layer that fades in when the first row lands (PERF-SPEC 2.2.2) */
.sources::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(11, 11, 15, .97); box-shadow: inset 0 0 0 1px var(--line); opacity: 1; transition: opacity .4s var(--ease); pointer-events: none; }
.sources:not(.filled)::before { opacity: 0; }
.sources:not(.filled) { box-shadow: none; }
.reduced .sources::before { opacity: 1; }
/* small: the usual band under the first six bars */
.hl-u { left: 2px; width: 82%; text-align: center; }
.hl-u b { position: absolute; left: 0; right: 0; top: -3px; height: 3px; border: 1px solid #4A4855; border-top: 0; border-radius: 0 0 2px 2px; }
/* CD re-check: the payoff waits for its beat; the phone caption sits under the heading; the answer clears the browser */
.works .work .card-top, .works .work .card-h, .works .work .keys, .works .work .card-demo { transition: opacity .3s var(--ease); }
.works .work .card-h { transition-delay: 220ms; }
.works .work .keys { transition-delay: 440ms; }
.works .work .card-demo { transition-delay: 440ms; }
.layer.on.played .works .work.waiting .card-top, .layer.on.played .works .work.waiting .card-h, .layer.on.played .works .work.waiting .keys, .layer.on.played .works .work.waiting .card-demo { opacity: 0; transition-delay: 0s; }
.phone .dev-demo { top: 132px; left: 20px; right: auto; bottom: auto; width: auto; text-align: left; opacity: .55; }
.phone .dev-demo { top: 154px; }
.phone .dev-demo { top: 148px; font-size: 11.5px; }
.phone .mbp { top: 23%; }
/* ===== LAST PASS: hotkey in place (one MacBook, the whole stage, the orb behind it) ===== */
.copy.everywhere { width: calc(1100px * var(--k)); top: 8%; }
.stage { display: flex; flex-direction: column; align-items: center; padding-top: calc(8% + 0px); padding-top: max(17vh, calc(150px * var(--k))); }
.stage .mbp, .layer.on.played .stage .mbp { position: relative; left: auto; top: auto; width: calc(860px * var(--k)); opacity: 1; transform: none; transition: opacity .8s var(--ease); }
.layer:not(.played) .stage .mbp { opacity: 0; }
.mbp::after { display: none; }
.mbp-zoom { transform-origin: 40% 52%; transition: transform 1.6s cubic-bezier(.45, 0, .15, 1); }
.stage.zoom .mbp-zoom { transform: translateY(calc(10px * var(--k))) scale(1.1); }
/* the rim: the orb is right behind the lid, so its light wraps every edge, brightest along the top */
.mbp-lid::after { background: radial-gradient(70% 80% at 50% 30%, rgba(232, 236, 255, .85), rgba(232, 236, 255, .25) 70%, rgba(232, 236, 255, .08) 100%); }
.mbp-base { box-shadow: inset 0 2px 0 #4A4A52, inset 0 1px 0 rgba(255, 255, 255, .18), 0 -1px 0 rgba(232, 236, 255, .25), 0 30px 40px -20px #000; }
.mbp-screen::before { left: 50%; top: 52%; width: 30%; }
/* the two apps: the PDF in front, the browser behind it, a real app switch brings the browser forward */
.pdfwin { left: 7%; top: 8%; width: 57%; height: 87%; z-index: 2; transform: none; }
.chromewin { left: auto; right: 4%; top: 13%; width: 58%; height: 76%; z-index: 1; opacity: 1; transform: translate(2%, 1.5%) scale(.97); }
.stage.b2 .pdfwin { transform: none; }
.stage.s5 .chromewin { z-index: 3; transform: none; }
.stage.s5 .pdfwin { transform: translateX(-3%) scale(.97); }
.chromewin .cw-body { grid-template-columns: 1fr 0px; transition: grid-template-columns .8s var(--ease); }
.stage.side .chromewin .cw-body { grid-template-columns: 1fr calc(160px * var(--k)); }
/* the keys, under the Mac: they go down when you hold them */
.hotkeys { display: flex; gap: calc(8px * var(--k)); margin-top: calc(20px * var(--k)); }
.kc2 { height: calc(40px * var(--k)); border-radius: calc(9px * var(--k)); display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: calc(6px * var(--k)) calc(8px * var(--k)) calc(5px * var(--k)); background: linear-gradient(#24232C, #1B1A21); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 3px 0 #0B0B10, 0 5px 10px -3px rgba(0, 0, 0, .8); color: var(--t2); font-size: calc(13px * var(--k)); line-height: 1; transition: transform .12s var(--ease); }
.kc2 small { font-size: calc(10.5px * var(--k)); color: var(--t3); letter-spacing: .02em; }
.kc2.opt { width: calc(60px * var(--k)); }
.kc2.spc { width: calc(170px * var(--k)); }
.hotkeys.down .kc2 { transform: translateY(3px); color: var(--t1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(237, 235, 240, .35), 0 0 0 #0B0B10, 0 1px 3px rgba(0, 0, 0, .8); }
.hotkeys.down .kc2 small { color: var(--t1); }
/* one caption under the screen, changing with each step */
.ew-cap { margin-top: calc(14px * var(--k)); font-size: calc(17px * var(--k)); font-weight: 500; letter-spacing: -0.01em; color: var(--t1); transition: opacity .22s var(--ease), transform .3s var(--ease); }
.ew-cap.out { opacity: 0; transform: translateY(4px); }
.stage .dev-demo { position: relative; top: auto; right: auto; left: auto; bottom: auto; width: calc(860px * var(--k)); text-align: right; margin-top: calc(-18px * var(--k)); opacity: 0; transition: opacity .5s var(--ease); }
.stage.dm .dev-demo { opacity: 1; }
@media (max-height: 820px) {
  html:not(.phone) .stage .mbp { width: calc(860px * var(--k)); top: auto; }
  html:not(.phone) .stage .dev-demo { top: auto; width: calc(860px * var(--k)); }
}
.reduced .mbp-zoom, .reduced .stage.zoom .mbp-zoom { transform: none; transition: none; }
.reduced .chromewin, .reduced .pdfwin { transition: opacity .3s linear; }
.reduced .stage.s5 .pdfwin { transform: none; }
.reduced .chromewin { transform: none; }
.reduced .stage .chromewin { opacity: 1; }
/* phones: the same Mac, drawn at desktop size and zoomed to the width; its words are set larger so they read */
.phone .copy.everywhere { width: auto; }
.phone .stage { padding-top: 168px; }
.phone .stage .mbp, .phone .layer.on.played .stage .mbp { left: auto; width: 780px; zoom: var(--macZ); top: auto; }
.phone .stage.side .chromewin .cw-body { grid-template-columns: 1fr 250px; }
.phone .tp-h { font-size: 22px; }
.phone .tp b { font-size: 15px; }
.phone .tp small { display: none; }
.phone .tp .av { width: 44px; height: 44px; font-size: 14px; }
.phone .pg-p { font-size: 15px; }
.phone .pg-h, .phone .pg-s { font-size: 15px; }
.phone .pg-p:not(.clause):nth-of-type(n+5) { display: none; }
.phone .pdfwin { left: 5%; width: 64%; }
.phone .chromewin { width: 66%; }
.phone .hotkeys { margin-top: 22px; }
.phone .ew-cap { font-size: 18px; margin-top: 16px; }
.phone .stage .dev-demo { width: auto; text-align: center; margin-top: 8px; top: auto; left: auto; opacity: 0; font-size: 12px; }
.phone .stage.dm .dev-demo { opacity: .8; }
.phone .stage.zoom .mbp-zoom { transform: scale(1.06); }
/* ===== LAST PASS: floor to ceiling (an app you never learned, used for you) ===== */
.works { transition: opacity .7s var(--ease), transform 1s var(--ease); transform-origin: 0 0; }
.layer[data-layer="jobs"].ceil .works { opacity: .0; transform: translateY(calc(-14px * var(--k))) scale(.94); pointer-events: none; }
.ceiling { position: absolute; left: calc(88px * var(--k)); right: calc(52px * var(--k)); top: 27%; display: grid; grid-template-columns: calc(330px * var(--k)) 1fr; gap: calc(36px * var(--k)); align-items: start; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease) .25s, visibility 0s linear 1s; }
.layer.ceil .ceiling { opacity: 1; visibility: visible; transition: opacity .7s var(--ease) .25s, visibility 0s; }
.cu-side { grid-column: 1; grid-row: 2; display: grid; gap: calc(14px * var(--k)); align-content: start; }
.app3d { grid-column: 2; grid-row: 2; position: relative; height: calc(470px * var(--k)); border-radius: 12px; background: #111015; box-shadow: inset 0 0 0 1px #2A2933, 0 40px 80px -30px #000; overflow: hidden; display: grid; grid-template-rows: calc(30px * var(--k)) 1fr calc(70px * var(--k)); opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.layer.ceil .app3d { opacity: 1; transform: none; transition-delay: .5s; }
.a3-bar { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #19181F; border-bottom: 1px solid #25242D; }
.a3-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34333D; }
.a3-ctrl { position: absolute; top: 4px; left: 50%; z-index: 5; display: flex; align-items: center; gap: 9px; height: calc(22px * var(--k)); padding: 0 4px 0 10px; border-radius: 999px; background: #1E1A24; box-shadow: inset 0 0 0 1px rgba(169, 112, 182, .45); font-size: calc(11.5px * var(--k)); color: var(--t1); transform: translate(-50%, -40px); transition: transform .5s var(--ease); white-space: nowrap; }
.a3-ctrl .k { height: calc(18px * var(--k)); font-size: calc(11px * var(--k)); padding: 0 9px; background: rgba(237, 235, 240, .08); }
.a3-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--plum); animation: caret 1.4s steps(1) infinite; }
.app3d.ctl .a3-ctrl { transform: translate(-50%, 0); }
.app3d.ctl { box-shadow: inset 0 0 0 1px rgba(169, 112, 182, .55), 0 40px 80px -30px #000; }
.a3-body { display: grid; grid-template-columns: calc(40px * var(--k)) 1fr calc(170px * var(--k)); min-height: 0; }
.a3-tools { display: grid; align-content: start; gap: 8px; padding: 10px 8px; background: #151419; border-right: 1px solid #23222A; }
.a3-tools i { aspect-ratio: 1; border-radius: 6px; background: #201F27; }
.a3-tools i.on { background: #2C2B35; box-shadow: inset 0 0 0 1px #4A4855; }
.a3-view { position: relative; overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, #1B1A22, #0E0D12); }
.a3-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.a3-orbit { stroke-dashoffset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.app3d.turn .a3-orbit { opacity: .9; }
.a3-cam { opacity: .7; }
.a3-logo { position: absolute; left: 50%; top: 47%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.a3-logo i { position: absolute; inset: 0; border-radius: 26%; background: linear-gradient(145deg, #F3F2F4, #B9B6C2 55%, #8E8B97); box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .35), inset 4px 5px 10px rgba(255, 255, 255, .5); }
.a3-logo i::before { content: ""; position: absolute; left: 24%; top: 24%; width: 52%; height: 52%; border-radius: 50%; box-shadow: inset 0 0 0 calc(9px * var(--k)) #111015; }
.app3d.file .a3-logo { opacity: 1; transform: translate(-50%, -50%); }
.app3d.spin .a3-logo { animation: a3spin 2.4s linear infinite; }
.a3-panel { display: grid; align-content: start; gap: 9px; padding: 14px 12px; background: #151419; border-left: 1px solid #23222A; }
.pn-l { display: block; height: 6px; width: var(--w); border-radius: 3px; background: #2A2933; margin-top: 6px; }
.pn-s { display: block; height: calc(22px * var(--k)); border-radius: 6px; background: #1C1B22; box-shadow: inset 0 0 0 1px #2A2933; position: relative; }
.pn-s::after { content: ""; position: absolute; left: 8px; top: 50%; width: 62%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: #8E8B97; opacity: .27; transform: scaleX(.4839); transform-origin: 0 50%; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.app3d.turn .pn-s[data-pn="1"]::after { transform: none; opacity: 1; }
.app3d.render .pn-s[data-pn="2"]::after { transform: scaleX(.7742); opacity: 1; }
.pn-bar { margin-top: 10px; height: 6px; border-radius: 3px; background: #1F1E26; overflow: hidden; }
.pn-bar i { display: block; height: 100%; width: 100%; background: var(--plum); transform: scaleX(0); transform-origin: 0 50%; transition: transform 2s linear; }
.app3d.render .pn-bar i { transform: none; }
.app3d.saved .pn-bar i { background: #EDEBF0; }
.a3-time { position: relative; padding: 10px 14px; background: #141318; border-top: 1px solid #23222A; display: grid; gap: 8px; }
.tl-ruler { height: 8px; background: repeating-linear-gradient(90deg, #34333D 0 1px, transparent 1px 24px); opacity: .8; }
.tl-track { position: relative; height: calc(20px * var(--k)); border-radius: 5px; background: #1B1A21; box-shadow: inset 0 0 0 1px #26252E; }
.kf { position: absolute; left: var(--x); top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; transform: rotate(45deg); background: #8E8B97; border-radius: 1.5px; }
.kf.k2 { opacity: 0; transform: rotate(45deg) scale(.4); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.app3d.turn .kf.k2 { opacity: 1; transform: rotate(45deg); }
.tl-track { container-type: inline-size; }
.tl-head { position: absolute; left: 4%; top: -6px; bottom: -6px; width: 1.5px; background: #EDEBF0; transition: transform 2s linear; }
.app3d.render .tl-head { transform: translateX(92cqw); }
.a3-cursor { position: absolute; z-index: 6; left: 0; top: 0; width: calc(20px * var(--k)); height: calc(20px * var(--k)); fill: #EDEBF0; stroke: #09090D; stroke-width: 1.2; opacity: 0; left: 62%; top: 72%; transition: transform 1s cubic-bezier(.45, 0, .15, 1), opacity .3s var(--ease); }
.app3d.ctl .a3-cursor, .app3d.perm-on .a3-cursor { opacity: 1; }
.perm { position: absolute; z-index: 7; left: 50%; top: 42%; width: calc(290px * var(--k)); padding: 16px 18px 14px; border-radius: 14px; background: rgba(18, 17, 23, .96); box-shadow: inset 0 0 0 1px #2E2D37, 0 30px 60px -20px #000; display: grid; gap: 12px; opacity: 0; transform: translate(-50%, -40%) scale(.96); transition: opacity .35s var(--ease), transform .45s var(--ease); pointer-events: none; }
.perm-h { font-size: calc(15px * var(--k)); font-weight: 500; color: var(--t1); }
.perm .keys { display: flex; justify-content: flex-end; gap: 6px; }
.perm .k { height: 30px; }
.app3d.perm-on .perm { opacity: 1; transform: translate(-50%, -50%); }
.perm .k.yes.press { transform: scale(.95); }
.perm .k.yes::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; }
.perm .k.yes.press::after { opacity: .1; }
.cu-req { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #17161D; box-shadow: inset 0 0 0 1px var(--line); font-size: calc(15px * var(--k)); line-height: 1.45; color: var(--t1); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.layer.ceil .cu-req { opacity: 1; transform: none; transition-delay: .35s; }
.steps { display: grid; gap: 2px; }
.steps li { position: relative; padding: 7px 0 7px 24px; font-size: calc(14.5px * var(--k)); color: var(--t2); opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.steps li::before { content: ""; position: absolute; left: 3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--plum); }
.steps li.in { opacity: 1; transform: none; }
.steps li.ok { color: var(--t3); }
.steps li.ok::before { width: 10px; height: 6px; margin-top: -5px; left: 2px; border-radius: 0; background: none; border-left: 1.6px solid var(--t2); border-bottom: 1.6px solid var(--t2); transform: rotate(-45deg); }
.ceil-done { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); padding: 14px 16px 12px; gap: 6px; }
.ceil-done.in { opacity: 1; transform: none; }
.ceil-done .card-h { font-size: calc(16px * var(--k)); }
.ceil-done .card-b { font-size: 13.5px; color: var(--t3); }
.ceil-done .keys { display: flex; margin-top: 4px; }
.reduced .ceiling .app3d, .reduced .ceiling .cu-req, .reduced .ceil-done, .reduced .steps li { transform: none; }
.reduced .app3d.spin .a3-logo { animation: none; }
@media (max-height: 820px) {
  html:not(.phone) .ceiling { top: 25%; }
  html:not(.phone) .app3d { height: calc(450px * var(--k)); }
}
/* phones: one window, one line at a time */
.phone .ceiling { left: 16px; right: 16px; top: 168px; display: flex; flex-direction: column; gap: 12px; }
.phone .cu-side { display: contents; }
.phone .cu-req { order: 1; font-size: 14px; padding: 10px 12px; }
.phone .app3d { order: 2; height: 250px; grid-template-rows: 24px 1fr 46px; }
.phone .a3-body { grid-template-columns: 1fr; }
.phone .a3-tools, .phone .a3-panel { display: none; }
.phone .a3-time { padding: 6px 10px; gap: 5px; }
.phone .steps { order: 3; position: relative; height: 34px; }
.phone .steps li { position: absolute; left: 0; right: 0; top: 0; font-size: 14px; }
.phone .steps li.ok { opacity: 0; }
.phone .ceil-done { order: 4; }
.phone .perm { width: 250px; }
.phone .perm-h { font-size: 14px; }
.phone .a3-ctrl { font-size: 11px; height: 22px; }
.hotkeys { margin-top: calc(30px * var(--k)); position: relative; z-index: 2; }
.phone .pg-p:not(.clause):nth-of-type(n+5) { display: revert; }
.phone .page p:nth-of-type(2), .phone .page p:nth-of-type(3), .phone .page p:nth-of-type(8) { display: none; }
.phone .stage { padding-top: 196px; }
.phone .hotkeys { zoom: .8; margin-top: 30px; }
.phone .mbp-base { margin: 0 -30px; }
.phone .page p:nth-of-type(5) { display: none; }
.phone .stage { padding-top: 236px; }
.steps { list-style: none; padding: 0; margin: 0; }
.layer .ceiling .ceil-done:not(.in) { opacity: 0 !important; transform: translateY(10px) !important; }
.phone .ceiling { align-items: stretch; top: 212px; }
.phone .layer.ceil .copy.jobs .sub { opacity: .6; }
.phone .a3-ctrl .k { min-height: 0; height: 18px; }
.layer:not(.on) .ceiling, .layer:not(.on) .stage { opacity: 0 !important; visibility: hidden !important; transition: opacity .26s var(--ease), visibility 0s linear .26s !important; }
/* CD QA (last pass) */
.stage .mbp, .layer.on.played .stage .mbp { transition: opacity .3s var(--ease), transform .7s var(--ease); }
.layer:not(.played) .stage .mbp { opacity: 0; transform: translateY(12px); }
.app3d.ctl .a3-orbit { stroke: var(--plum); }
.a3-orbit { transition: opacity .6s var(--ease); }
.phone .pdfwin .page .pg-p:last-child { display: none; }
.a3-cursor { z-index: 8; }
.layer.ceil .works { transition: opacity .35s var(--ease), transform .5s var(--ease); }
/* Work A: each card shows what Atlas did for you, as two benefit chips */
.bens { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.bens li { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--t1); background: rgba(237, 235, 240, .05); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(5px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.bens li::before { content: ""; width: 8px; height: 5px; margin-top: -2px; border-left: 1.5px solid var(--cobalt); border-bottom: 1.5px solid var(--cobalt); transform: rotate(-45deg); }
.work.remind .bens li::before { border-color: var(--ox); }
.bens li.in, .reduced .bens li { opacity: 1; transform: none; }
.works { top: 30%; }
.work.compose .card-h { font-size: 14.5px; }
/* Dana's yes: hold the keys, the note goes, the card becomes the receipt */
.holdkey { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 8px 10px 10px; border-radius: 14px; background: rgba(9, 9, 13, .6); box-shadow: inset 0 0 0 1px var(--line); --k2: .9; }
.holdkey .kc2 { height: 34px; border-radius: 8px; font-size: 11px; padding: 5px 7px 4px; }
.holdkey .kc2.opt { width: 52px; }
.holdkey .kc2.spc { width: 92px; }
.holdkey .kc2 small { font-size: 10px; }
.hk-l { font-size: 12.5px; color: var(--t3); padding-left: 4px; }
.hk-l .touch { display: none; }
.phone .hk-l .mac { display: none; }
.phone .hk-l .touch { display: inline; }
.hk-fill { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(237, 235, 240, .06); overflow: hidden; }
.hk-fill i { display: block; height: 100%; background: var(--t1); transform: scaleX(0); transform-origin: 0 50%; }
.holdkey.down .kc2 { transform: translateY(3px); color: var(--t1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(237, 235, 240, .35), 0 0 0 #0B0B10, 0 1px 3px rgba(0, 0, 0, .8); }
.holdkey.down .hk-l { color: var(--t1); }
.work [data-typed], .work .card-h, .work .keys, .work .holdkey, .work .card-top { transition: opacity .4s var(--ease), max-height .6s var(--ease), margin .6s var(--ease), padding .6s var(--ease); max-height: 300px; }
.work.sent [data-typed], .work.sent .keys, .work.sent .holdkey, .work.sent .card-h { opacity: 0; max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.receipt2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-height: 0; overflow: hidden; opacity: 0; padding: 0 14px; border-radius: 12px; background: rgba(237, 235, 240, .04); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; transition: opacity .5s var(--ease) .35s, max-height .6s var(--ease) .2s, padding .6s var(--ease) .2s; }
.receipt2 b { display: block; font-weight: 500; color: var(--t1); }
.receipt2 small { display: block; font-size: 12px; color: var(--t3); }
.receipt2 time { font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; }
.work.sent .receipt2 { opacity: 1; max-height: 90px; padding: 11px 14px; }
.layer.on.played .works .work.waiting .bens, .layer.on.played .works .work.waiting .holdkey { opacity: 0; }
.works .work .holdkey { opacity: 0; transition: opacity .4s var(--ease); }
.works .work .holdkey.on { opacity: 1; }
.reduced .works .work .holdkey { opacity: 1; }
/* the pill, as the app draws it (AssistPill.tsx, pill.css, pill-wave.ts), at --S times its size */
.cap5 { --S: calc(.9 * var(--k)); height: calc(28px * var(--S)); padding: 0 calc(11px * var(--S)) 0 calc(5px * var(--S)); display: inline-flex; align-items: center; gap: calc(8px * var(--S)); border-radius: 999px; background: #16150F; border: 1px solid rgba(251, 250, 246, .08); box-shadow: 0 12px 30px rgba(22, 21, 15, .24), 0 2px 8px rgba(22, 21, 15, .1), inset 0 1px 0 rgba(251, 250, 246, .06); overflow: hidden; }
.porb { width: calc(20px * var(--S)); height: calc(20px * var(--S)); flex: none; display: grid; place-items: center; }
.porb img { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.pwave { display: flex; align-items: center; gap: calc(3px * var(--S)); height: calc(12px * var(--S)); width: calc(81px * var(--S)); transition: width .17s cubic-bezier(.22, 1, .36, 1); }
.pwave i { width: calc(3px * var(--S)); height: calc(12px * var(--S)); flex: none; border-radius: 2px; background: #FBFAF6; opacity: .95; transform: scaleY(.25); transition: transform 45ms linear, opacity .3s; }
.route .pwave i, .work2 .pwave i { transform: scaleY(.25) !important; opacity: .3; }
.route .porb img { animation: porbturn 1.2s linear infinite; }
.work2 .porb img { animation: porbturn 2.4s linear infinite; }
.pillwin { position: absolute; z-index: 7; left: 50%; bottom: calc(var(--dockH) + 38px * var(--S)); --S: calc(.9 * var(--k)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: calc(10px * var(--S)); pointer-events: none; }
.pillwin .cap5 { --S: inherit; opacity: 0; transform: scaleX(.36); transition: opacity 70ms linear, transform .17s cubic-bezier(.22, 1, .36, 1); }
.pillwin.open .cap5 { opacity: 1; transform: none; }
/* the steps card and the answer sheet: paper, above the pill */
.psteps, .psheet { background: #FBFAF6; border: 1px solid rgba(22, 21, 15, .08); border-radius: calc(14px * var(--S)); box-shadow: 0 0 0 1px rgba(22, 21, 15, .06), 0 24px 60px -24px rgba(22, 21, 15, .38), 0 2px 8px rgba(22, 21, 15, .08); padding: calc(12px * var(--S)) calc(18px * var(--S)) calc(11px * var(--S)); color: rgba(22, 21, 15, .92); display: none; opacity: 0; transform: translateY(calc(10px * var(--S))) scale(.96); }
.psteps { width: calc(360px * var(--S)); }
.psheet { min-width: calc(336px * var(--S)); max-width: calc(420px * var(--S)); }
.pillwin.stp .psteps, .pillwin.ans .psheet { display: block; animation: sheetrise .25s var(--ease) forwards; }
.ps-h, .pz-h { font-size: calc(10.5px * var(--S)); font-weight: 500; letter-spacing: .02em; color: rgba(22, 21, 15, .48); margin-bottom: calc(6px * var(--S)); display: flex; align-items: center; gap: 5px; }
.pz-b { font-size: calc(13px * var(--S)); line-height: 1.5; color: rgba(22, 21, 15, .92); min-height: 1.5em; }
/* the capture ring (ADR-288): a pulse at capture, a faint hold, then a fade; never in the picture */
.ring { position: absolute; z-index: 6; border: calc(3px * var(--S)) solid #7DF9FF; border-radius: calc(14px * var(--S)); opacity: 0; pointer-events: none; --S: calc(.9 * var(--k)); }
.ring.fade { animation: none; opacity: .5; transition: opacity .4s linear; opacity: 0 !important; }
.reduced .ring.flash { animation: none; opacity: .5; }
/* the Mac's dock, so the pill sits where it really does: centred, 38 px above the dock */
.mbp-screen { --dockH: calc(30px * var(--k)); }
.dock { position: absolute; z-index: 5; left: 50%; bottom: calc(4px * var(--k)); transform: translateX(-50%); height: calc(26px * var(--k)); padding: 0 calc(6px * var(--k)); display: flex; align-items: center; gap: calc(5px * var(--k)); border-radius: calc(9px * var(--k)); background: rgba(40, 39, 48, .55); box-shadow: inset 0 0 0 1px rgba(237, 235, 240, .08); }
.dock i { width: calc(18px * var(--k)); height: calc(18px * var(--k)); border-radius: calc(5px * var(--k)); background: #2C2B35; }
.dock i:nth-child(1) { background: #3A3946; }
.dock i:nth-child(4) { background: #34333F; }
/* the words you say, beside the keys (the pill itself is wordless) */
.hotkeys { align-items: center; }
.hotkeys .said { margin-left: calc(14px * var(--k)); min-width: calc(220px * var(--k)); font-size: calc(16px * var(--k)); color: var(--t3); white-space: nowrap; }
.said .w { opacity: 0; transition: opacity .18s linear; }
.said .w.in { opacity: 1; }
.stage .chromewin .cw-body { grid-template-columns: 1fr !important; }
.pdfwin { height: 82%; }
.chromewin { height: 72%; }
/* the apps page: the 3D app, larger, the request spoken through the same pill */
.copy.apps { left: calc(88px * var(--k)); top: 9%; width: calc(640px * var(--k)); }
[data-layer="apps"] .ceiling { top: 26%; grid-template-columns: calc(320px * var(--k)) 1fr; }
[data-layer="apps"] .cu-side, [data-layer="apps"] .app3d { grid-row: 1; }
[data-layer="apps"] .app3d { height: calc(540px * var(--k)); }
.voice .cap5 { --S: calc(1.2 * var(--k)); }
.voice { opacity: 0; transition: opacity .4s var(--ease); }
.layer.ceil .voice, .voice.on { opacity: 1; }
[data-layer="apps"] .cu-req { opacity: 1; transform: none; background: none; box-shadow: none; padding: 0; font-size: calc(17px * var(--k)); color: var(--t3); min-height: 2.9em; }
.voice.route .pwave i, .voice.work2 .pwave i { transform: scaleY(.25) !important; opacity: .3; }
@media (max-height: 820px) {
  html:not(.phone) [data-layer="apps"] .ceiling { top: 25%; }
  html:not(.phone) [data-layer="apps"] .app3d { height: calc(500px * var(--k)); }
  html:not(.phone) .works { top: 28%; }
}
/* phones */
.phone .bens li { height: 22px; font-size: 11.5px; }
.phone .holdkey .kc2.spc { width: 64px; }
.phone .copy.apps { left: 20px; right: 20px; width: auto; top: 76px; }
.phone [data-layer="apps"] .ceiling { top: 196px; }
.phone .voice { order: 0; }
.phone .voice .cap5 { --S: 1.15; }
.phone [data-layer="apps"] .cu-req { order: 1; font-size: 15px; min-height: 0; }
.phone [data-layer="apps"] .app3d { height: 250px; }
.phone .pillwin, .phone .ring { --S: 1.9; }
.phone .mbp-screen { --dockH: 30px; }
.phone .hotkeys .said { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin: 10px 0 0; text-align: center; font-size: 16px; min-width: 0; zoom: 1.25; }
.phone .hotkeys { position: relative; margin-bottom: 30px; }
.pillwin, .ring { --S: calc(1.12 * var(--k)); }
.phone .pillwin, .phone .ring { --S: 2.1; }
[data-layer="apps"] .ceiling { top: 30%; }
[data-layer="apps"] .app3d { height: calc(520px * var(--k)); }
@media (max-height: 820px) {
  html:not(.phone) [data-layer="apps"] .ceiling { top: 29%; }
  html:not(.phone) [data-layer="apps"] .app3d { height: calc(480px * var(--k)); }
}
.phone [data-layer="apps"] .ceiling { top: 196px; }
/* perf: dim under the permission card with one overlay, not a filter on four panes */
.app3d::after { content: ""; position: absolute; inset: 0; z-index: 6; background: rgba(9, 9, 13, .4); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.app3d.perm-on::after { opacity: 1; }
/* perf: the ring's glow is two fixed layers whose opacity animates (same look as ADR-288's keyframes) */
.ring { will-change: opacity; }
.ring::before, .ring::after { content: ""; position: absolute; inset: calc(-3px * var(--S)); border-radius: inherit; pointer-events: none; opacity: 0; }
.ring::before { box-shadow: 0 0 34px 10px rgba(125, 249, 255, .55), inset 0 0 26px 4px rgba(125, 249, 255, .32); }
.ring::after { box-shadow: 0 0 14px 2px rgba(125, 249, 255, .2), inset 0 0 10px 0 rgba(125, 249, 255, .1); }
.ring.flash { animation: ringop .9s cubic-bezier(.2, .7, .3, 1) forwards; }
.ring.flash::before { animation: ringpk .9s cubic-bezier(.2, .7, .3, 1) forwards; }
.ring.flash::after { animation: ringhold .9s cubic-bezier(.2, .7, .3, 1) forwards; }
.reduced .ring.flash::before { animation: none; }
.reduced .ring.flash::after { animation: none; opacity: 1; }
/* CD QA (12/10) */
.reduced .pillwin.stp .psteps, .reduced .pillwin.ans .psheet { opacity: 1; transform: none; }
.work.sent [data-typed] { min-height: 0; }
.receipt2 time { white-space: nowrap; flex: none; }
html:not(.phone) .works .work { max-height: 1400px; overflow: hidden; transition: none; }
html:not(.phone) .layer.on.played .works .work { transition: max-height .8s var(--ease), opacity .3s var(--ease); }
html:not(.phone) .works .work.waiting { max-height: calc(118px * var(--k)); }
html:not(.phone) .works .work.waiting > *:not(.mailhead):not(.lift):not(.srctag) { opacity: 0 !important; }
html:not(.phone) .works .work > * { transition: none; }
html:not(.phone) .layer.on.played .works .work > * { transition: opacity .4s var(--ease); }
.stage.zoom .mbp-zoom { transform: scale(1.1); }
.stage.zoom .hotkeys { transform: translateY(calc(16px * var(--k))); }
.hotkeys { transition: transform 1.6s cubic-bezier(.45, 0, .15, 1); }
.kc2 { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 3px 0 #0B0B10, 0 5px 10px -3px rgba(0, 0, 0, .8); }
.hotkeys.down .kc2, .holdkey.down .kc2 { transform: translateY(4px); background: #141319; }
.stage .dev-demo { width: auto; text-align: center; margin-top: calc(4px * var(--k)); }
.done-bens li::before { border-color: var(--chalk); }
.done-bens { margin-top: 2px; }
.stage.zoom .mbp-zoom { transform: scale(1.08); }
.stage.zoom .hotkeys { transform: translateY(calc(12px * var(--k))); }
/* the push-in grows downward (origin high on the lid), so the lid keeps clear of the headline at every size */
.mbp-zoom { transform-origin: 40% 22%; }
.stage.zoom .mbp-zoom { transform: scale(1.06); }
/* ===== the capsule as atlas-agent ships it (brand v5: Capsule.tsx, capsule.css, capsule-v5.css, sheet.css) ===== */
.cap5 { height: calc(32px * var(--S)); padding: 0 calc(13px * var(--S)) 0 calc(6px * var(--S)); background: #09090D; border: 1px solid #24232C; box-shadow: 0 3px 10px rgba(9, 9, 13, .22), inset 0 1px 0 rgba(237, 235, 240, .07); overflow: visible; position: relative; }
.pwave { overflow: hidden; }
.pwave i { background: #EDEBF0; }
.pillwin.open:not(.route):not(.ans):not(.steps) .pwave i, .voice.on:not(.route):not(.work2) .pwave i { opacity: .95; }
.pillwin .pwave i, .voice .pwave i { opacity: .3; }
.pillwin.open .pwave i, .voice.on .pwave i { opacity: .95; }
.pillwin.route .pwave i, .pillwin.ans .pwave i, .voice.route .pwave i, .voice.work2 .pwave i { opacity: .3; }
/* the halo: plum dots behind the capsule while Atlas listens (.55) and works or answers (full, breathing) */
.cap5::before, .cap5::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 999px; opacity: 0; transition: opacity .8s cubic-bezier(.22, 1, .36, 1); }
.cap5::before { inset: calc(-26px * var(--S)) calc(-46px * var(--S)); background-image: radial-gradient(circle, rgba(169, 112, 182, .95) calc(1.6px * var(--S)), transparent calc(2.1px * var(--S))); background-size: calc(7px * var(--S)) calc(7px * var(--S)); -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); }
.cap5::after { inset: calc(-36px * var(--S)) calc(-76px * var(--S)); background-image: radial-gradient(circle, rgba(169, 112, 182, .65) calc(1px * var(--S)), transparent calc(1.4px * var(--S))); background-size: calc(7px * var(--S)) calc(7px * var(--S)); background-position: calc(3.5px * var(--S)) calc(3.5px * var(--S)); -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); }
.pillwin.open .cap5::before, .pillwin.open .cap5::after, .voice.on .cap5::before, .voice.on .cap5::after { opacity: .55; }
.pillwin.route .cap5::before, .pillwin.route .cap5::after, .pillwin.ans .cap5::before, .pillwin.ans .cap5::after, .voice.route .cap5::before, .voice.route .cap5::after, .voice.work2 .cap5::before, .voice.work2 .cap5::after { opacity: 1; animation: capbreathe 3.6s cubic-bezier(.22, 1, .36, 1) infinite; }
.reduced .cap5::before, .reduced .cap5::after { animation: none !important; }
.route .porb img, .work2 .porb img { animation: none; }
/* the sheet: chalk and ink, radius 18 */
.psteps, .psheet { border-radius: calc(18px * var(--S)); background: #F3F2F4; border: 1px solid rgba(18, 17, 23, .08); box-shadow: 0 24px 60px -24px rgba(18, 17, 23, .4), 0 2px 10px rgba(18, 17, 23, .1), inset 0 1px 0 #fff; color: #121117; padding: calc(12px * var(--S)) calc(18px * var(--S)) calc(11px * var(--S)); }
.psteps { width: calc(360px * var(--S)); }
.ps-h, .pz-h { font-size: calc(10.5px * var(--S)); font-weight: 500; letter-spacing: 0; color: #66636E; margin: 0 0 calc(6px * var(--S)); display: flex; align-items: center; justify-content: space-between; gap: calc(12px * var(--S)); }
.ps-step { display: flex; align-items: center; gap: calc(8px * var(--S)); font-size: calc(12.5px * var(--S)); line-height: 1.35; color: rgba(18, 17, 23, .92); }
.ps-w { flex: 1; animation: stepbreathe 1.8s ease-in-out infinite; }
.ps-n { font-size: calc(11.5px * var(--S)); color: #66636E; }
.pz-keys { display: flex; gap: calc(4px * var(--S)); }
.pk { width: calc(22px * var(--S)); height: calc(22px * var(--S)); border-radius: calc(7px * var(--S)); border: 1px solid rgba(18, 17, 23, .14); background: #fff; position: relative; }
.pk-x::before, .pk-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 42%; height: 1.4px; background: rgba(18, 17, 23, .72); transform: translate(-50%, -50%) rotate(45deg); }
.pk-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pk-copy::before { content: ""; position: absolute; left: 30%; top: 24%; width: 34%; height: 40%; border: 1.3px solid rgba(18, 17, 23, .72); border-radius: 2px; }
.pk-copy::after { content: ""; position: absolute; left: 40%; top: 36%; width: 34%; height: 40%; border: 1.3px solid rgba(18, 17, 23, .72); border-radius: 2px; background: #fff; }
.pz-b { font-size: calc(13px * var(--S)); line-height: 1.5; color: rgba(18, 17, 23, .92); }
/* the capture ring: shipped geometry and timing, in v5 plum (cyan was retired by brand v5) */
.ring { border-color: #A970B6; }
.ring::before { box-shadow: 0 0 34px 10px rgba(169, 112, 182, .5), inset 0 0 26px 4px rgba(169, 112, 182, .28); }
.ring::after { box-shadow: 0 0 14px 2px rgba(169, 112, 182, .2), inset 0 0 10px 0 rgba(169, 112, 182, .1); }
.pdot { width: calc(5px * var(--S)); height: calc(5px * var(--S)); background: #5B2A63; animation: stepbreathe 2.4s cubic-bezier(.2, .7, .2, 1) infinite; }
.ps-w { animation: stepbreathe 2.4s cubic-bezier(.2, .7, .2, 1) infinite; }
/* Work B: room for the halo on the left and above the spoken words */
.voice { --S: calc(1.2 * var(--k)); padding-left: calc(46px * var(--S)); }
.phone .voice { --S: 1.15; }
.voice + [data-req], [data-layer="apps"] .cu-req { margin-top: calc(14px * var(--S, 1)); }
.voice .cap5 { --S: inherit; }
html.nogl .still { opacity: 1 !important; }
.voice.rest { opacity: 1; }
html.nogl .still { background-image: url("assets/poster-calm-desktop.jpg"); }
html.nogl.phone .still { background-image: url("assets/poster-calm-phone.jpg"); }
@media (max-height: 760px) {
  html:not(.phone) .works { top: 24%; }
  html:not(.phone) .work { padding: 12px 14px 10px; gap: 7px; }
  html:not(.phone) .signers li { padding: 4px 0; }
  html:not(.phone) .hist { height: 60px; }
  html:not(.phone) .typed { min-height: 4.8em; }
}
@media (max-height: 700px) {
  .phone .copy.price .sub, .phone .copy.jobs .sub, .phone .copy.apps .sub { display: none; }
  .phone .facts2 li:nth-child(n+2) { display: none; }
  .phone .bens li:nth-child(2) { display: none; }
  .phone .hist { height: 46px; }
  .phone .work [data-typed] { font-size: 12.5px; line-height: 1.4; min-height: 0; }
  .phone [data-layer="apps"] .ceiling { top: 150px; gap: 8px; }
  .phone [data-layer="apps"] .app3d { height: 170px; }
  .phone [data-layer="apps"] .cu-req { font-size: 13.5px; }
}
@media (max-height: 780px) {
  html:not(.phone) .copy.jobs { top: 7%; }
  html:not(.phone) .works { top: 26%; }
  html:not(.phone) .work { padding: 12px 14px 10px; gap: 7px; }
  html:not(.phone) .signers li { padding: 4px 0; }
  html:not(.phone) .signers small { font-size: 11.5px; }
  html:not(.phone) .hist { height: 60px; }
  html:not(.phone) .typed { min-height: 4.8em; }
}
@media (max-height: 700px) {
  .phone [data-layer="apps"] .app3d { height: 150px; }
  .phone .ceil-done { padding: 10px 12px 8px; gap: 4px; }
  .phone .ceil-done .keys { margin-top: 0; }
}
/* the cue keeps clear of the Everywhere caption and its demo line */
html:not(.phone) .hotkeys { margin-top: calc(18px * var(--k)); }
html:not(.phone) .ew-cap { margin-top: calc(8px * var(--k)); }
@media (max-height: 780px) {
  html:not(.phone) .stage .mbp, html:not(.phone) .layer.on.played .stage .mbp { width: calc(800px * var(--k)); }
}
.phone .works { bottom: 34px; }
.phone .desk { bottom: 34px; }
.phone .copy.hero { bottom: 36px; }
.phone .doors { bottom: 40px; }
/* small phones keep the trust line and a demo label on Reads (independent QA) */
.reads-demo { display: none; }
.phone .reads-demo { display: block; margin: 8px 0 0 4px; }
@media (max-height: 700px) {
  .phone .copy.jobs .sub { display: block; }
  .phone .copy.price .sub { display: block; }
}
.reads-demo { display: block; margin: 10px 0 0 calc(36px * var(--k)); }
.phone .reads-demo { margin: 8px 0 0 4px; }
.reads-demo { transition: opacity .5s var(--ease); }
html:not(.phone):not(.reduced) .desk:not(:has(.card.first.in)) .reads-demo { opacity: 0; }
@media (max-height: 700px) {
  .phone .copy.price .sub { display: none; }
}
/* CD QA (B1 final) */
.voice { padding-left: 0; }
.note { right: calc(44px * var(--k)); }
.phone .note { right: 16px; }
.desk .card.first { width: auto; margin-left: 0; }
.reads-demo { margin-left: 4px; }
.work.remind .typed { min-height: 0; }
.copy.hero .sub { text-wrap: balance; }
@media (max-height: 780px) {
  html:not(.phone) .copy.jobs { top: max(7%, calc(76px * var(--k) + 14px)); }
}
/* the larger wordmark: headlines keep at least 18 px under the masthead on short laptops */
html:not(.phone) .copy.everywhere { top: max(8%, calc(76px * var(--k) + 18px)); }
@media (max-height: 780px) {
  html:not(.phone) .works { top: calc(max(7%, calc(76px * var(--k) + 14px)) + 150px * var(--k)); }
}
@media (min-height: 760px) {
  .phone .stage { padding-top: 326px; }
}
/* phones: the Mac is drawn at 560 px and zoomed to the width (not 780), with its screen text set for reading at that zoom */
.phone .stage .mbp, .phone .layer.on.played .stage .mbp { width: 560px; }
.phone .pg-p, .phone .pg-h, .phone .pg-s { font-size: 17px; line-height: 1.4; }
.phone .tp-h { font-size: 19px; }
.phone .tp b { font-size: 17px; }
.phone .tp .av { width: 40px; height: 40px; font-size: 15px; }
.phone .tp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; }
.phone .tp:nth-child(n+5) { display: none; }
.phone .pdfwin { left: 4%; width: 72%; }
.phone .chromewin { right: 3%; width: 70%; }
.phone .cw-tabs .tab { font-size: 14px; }
.phone .pw-bar, .phone .cw-tabs { height: 30px; }
.phone .pillwin, .phone .ring { --S: 1.75; }
.phone .dock { zoom: 1.3; }
.phone .pillwin, .phone .ring { --S: var(--pillS, 1.5); }
/* QC gate: the key label reads at 11 px or more; a sent note's keys are gone, not just collapsed */
.kc2 small { font-size: max(11px, calc(10.5px * var(--k))); }
.works .work.sent .holdkey.on { opacity: 0; }
/* text floors: page text 11 px or more at every size, depicted screens 8.5 px or more */
.src-l { font-size: 12.6px; }
.phone .src-l { font-size: 11.5px; }
.steps li { font-size: max(11.5px, calc(14.5px * var(--k))); }
.pg-p { font-size: max(8.6px, calc(10.5px * var(--k))); }
.pg-h, .pg-s { font-size: max(8.6px, calc(11px * var(--k))); }
.tp b { font-size: max(8.6px, calc(10px * var(--k))); }
.tp small { font-size: max(8.6px, calc(9px * var(--k))); }
.cw-tabs .tab { font-size: max(8.6px, calc(10.5px * var(--k))); }
.cw-bar .nav { font-size: max(9px, calc(13px * var(--k))); }
.phone .cw-tabs .tab { font-size: 15px; }
.phone .cw-bar .nav { font-size: 17px; }
.phone .pg-p, .phone .pg-h, .phone .pg-s { font-size: 17px; }
.phone .tp b { font-size: 17px; }
/* phones: the keys at full size (no zoom), so their label reads */
.phone .hotkeys { zoom: 1; }
/* phones and tablets: content keeps clear of the cue (chevron and word, about 30 px tall at the foot) */
.phone .copy.hero { bottom: 52px; }
.phone .desk, .phone .works { bottom: 50px; }
.phone .doors { bottom: 56px; }
.phone [data-layer="apps"] .ceiling { bottom: auto; }
.phone .copy.close { bottom: 64px; }
.phone .stage { padding-bottom: 46px; }
@media (max-height: 700px) {
  .phone .signers small { display: none; }
  .phone .signers li { padding: 4px 0; }
  .phone .first-mail { display: none; }
}
/* QC gate, second round */
.reads-demo { font-size: 12.6px; }
.tp .av { font-size: max(8.6px, calc(10.5px * var(--k))); }
.phone .hotkeys .said { zoom: 1; }
.tablet .stage { padding-top: 250px; }
@media (max-height: 700px) {
  .phone .stage { padding-top: 212px; }
  .phone [data-layer="apps"] .ceiling { top: 140px; }
  .phone [data-layer="apps"] .app3d { height: 132px; }
}
.reads-demo { font-size: 12.9px; }
@media (max-height: 700px) {
  .phone .stage { padding-top: 192px; }
  .phone .hotkeys { margin-top: 18px; }
}
.phone .steps li.ok { transition: opacity .15s linear; }
.phone .steps li.in:not(.ok) { transition-delay: .2s; }
@media (max-height: 700px) {
  .phone [data-layer="apps"] .ceiling { top: 156px; }
  .phone [data-layer="apps"] .app3d { height: 120px; }
}
@media (min-height: 760px) {
  .phone:not(.tablet) .stage { padding-top: 380px; }
}
.phone .mbp-base { margin: 0 -14px; }
@media (max-height: 840px) {
  html:not(.phone) .stage .mbp, html:not(.phone) .layer.on.played .stage .mbp { width: calc(800px * var(--k)); }
}
/* content keeps clear of the larger cue */
.phone .copy.hero { bottom: 60px; }
.phone .desk, .phone .works { bottom: 58px; }
.phone .doors { bottom: 64px; }
.phone .copy.close { bottom: 72px; }
.phone .stage { padding-bottom: 54px; }
/* the cue's own band at the foot of every page: content ends at least 16 px above the cue (QC-GATE.md 3.6) */
html:not(.phone) .stage .mbp, html:not(.phone) .layer.on.played .stage .mbp { width: calc(820px * var(--k)); }
html:not(.phone) .hotkeys { margin-top: calc(14px * var(--k)); }
@media (max-height: 840px) {
  html:not(.phone) .stage .mbp, html:not(.phone) .layer.on.played .stage .mbp { width: calc(780px * var(--k)); }
}
@media (max-height: 840px) {
  html:not(.phone) .works { top: calc(max(7%, calc(76px * var(--k) + 14px)) + 150px * var(--k)); }
  html:not(.phone) .copy.jobs { top: max(7%, calc(76px * var(--k) + 14px)); }
  html:not(.phone) .work { padding: 12px 14px 10px; gap: 7px; }
  html:not(.phone) .signers li { padding: 4px 0; }
  html:not(.phone) .hist { height: 60px; }
  html:not(.phone) .typed { min-height: 4.8em; }
}
.phone .copy.hero { bottom: 72px; }
.phone .desk, .phone .works { bottom: 70px; }
.phone .doors { bottom: 74px; }
.phone .copy.close { bottom: 80px; }
@media (min-height: 760px) {
  .phone:not(.tablet) .stage { padding-top: 340px; }
}
.tablet [data-layer="apps"] .app3d { height: 210px; }
.phone:not(.tablet) [data-layer="apps"] .app3d { height: 226px; }
@media (max-height: 700px) {
  .phone .works, .phone .desk { bottom: 60px; }
  .phone .doors { bottom: 62px; }
  .phone .copy.hero { bottom: 62px; }
  .phone .copy.close { bottom: 66px; }
  .phone:not(.tablet) [data-layer="apps"] .app3d { height: 120px; }
}
/* above the hero and close foot scrim (.layers, z 10), under the sheets (50, 60) */
html:not(.phone) .stage { padding-top: calc(max(17vh, calc(150px * var(--k))) + 14px); }
@keyframes caret { 50% { opacity: 0; } }
@keyframes a3spin { from { transform: translate(-50%, -50%) perspective(400px) rotateY(0); } to { transform: translate(-50%, -50%) perspective(400px) rotateY(360deg); } }
@keyframes porbturn { to { transform: rotate(360deg); } }
@keyframes sheetrise { to { opacity: 1; transform: none; } }
@keyframes ringop { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: .5; } }
@keyframes ringpk { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ringhold { 0%, 12% { opacity: 0; } 100% { opacity: 1; } }
@keyframes capbreathe { 50% { opacity: .6; } }
@keyframes stepbreathe { 50% { opacity: .55; } }
/* v2 (PERF-SPEC 2.1.4): the universal ".layer:not(.on) *" reset is gone; the few pieces that still animate layout (Work A's
   accordion, pending a transform rebuild) end fast on a page that has left, so a hidden page never lays out frame after frame */
.layer:not(.on) .work, .layer:not(.on) .work > *, .layer:not(.on) .lift, .layer:not(.on) .receipt2, .layer:not(.on) .cw-body { transition-duration: .2s !important; transition-delay: 0s !important; }

/* v2 typing without layout (PERF-SPEC 2.2.7): words appear by opacity; the caret is a pseudo-element on the newest word */
.typed .tw { position: relative; opacity: 0; }
.typed .tw.in { opacity: 1; }
/* phone: the card grows with the note, as round 14 (N9) */
.phone .typed.typing .tw:not(.in) { display: none; } .phone .typed.typing:has(.tw):not(:has(.tw.in)) { font-size: 0; }
.typed.typing .tw.cur::after, .typed.typing .tw.cur0:not(.in)::before { content: ""; position: absolute; top: .08em; width: 1.5px; height: 1.05em; background: var(--plum); animation: caret 1s steps(1) infinite; }
.typed.typing .tw.cur::after { right: -3px; }
.typed.typing .tw.cur0:not(.in)::before { left: 0; opacity: 1; }

/* ===== v2: Every job (page 7, #jobs-all; DESIGN-SPEC section 1, Fable 5.2): one row of four artefact cards. Transform and opacity only. ===== */
.copy.jobs-all { left: calc(88px * var(--k)); top: calc(150px * var(--k)); width: calc(640px * var(--k)); }
.phone .copy.jobs-all { left: 20px; right: 20px; top: 84px; width: auto; }
.jx { position: absolute; left: calc(88px * var(--k)); top: max(calc(42% - 46px * var(--k)), calc(332px * var(--k)));   /* R49: never above the headline in short windows */
   width: min(calc(1240px * var(--k)), calc(100% - 106px * var(--k) - 48px)); }   /* R63: the row starts on the headline's edge; it keeps 24 px clear of the rail where the window is narrow (1024 wide) */
.jx-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(24px * var(--k)); align-items: stretch; }
.jx-col { display: flex; flex-direction: column; gap: 10px; }
/* phones: headline, then a 2 x 2 grid of doors, pictures 76 px, the label last; nothing scrolls */
.phone .jx { left: 16px; right: 16px; width: auto; top: auto; bottom: 74px; transform: none; }
.phone .jx-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.phone .jx-col { gap: 6px; }

/* small phones (under 700 px tall): the four cards keep their receipt and door; the pictures and reason lines step aside so nothing overlaps the headline */
@media (max-height: 700px) { .phone .jx-pic, .phone .jx-why { display: none; } .phone .jx { bottom: 64px; } .phone .jx-row { gap: 8px; } .phone .jx-col { gap: 4px; } }

/* R18: the four cards share one row track (subgrid), so all four bodies are the same height; the door bars sit in a second track */
.jx-row { grid-template-rows: auto auto; row-gap: 0; }
.jx-col { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 0; }
.jx-col > .jx-card { flex: none; }
.phone .jx-row { row-gap: 0; }
.phone .jx-row > .jx-col:nth-child(n+3) { margin-top: 12px; }
/* R16: on phones the grid follows the line in the flow, 24 px under it (the orb has left the frame above) */
.phone [data-layer="jobs-all"] .copy.jobs-all { position: relative; left: auto; right: auto; top: auto; margin: 84px 20px 0; }
.phone [data-layer="jobs-all"] .jx { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 24px 16px 0; }

.phone .jx-col { min-width: 0; }

.jx-demo { margin: calc(12px * var(--k)) 0 0; font-size: 12px; color: var(--t3); white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease); }   /* R63: under the whole row, on its left edge, one line */
.jx-demo.in { opacity: 1; }   /* R74: after the fourth card has arrived (jobs.js) */
.reduced .jx-demo { transition: none; }
.phone .jx-demo { position: absolute; left: 4px; top: 100%; margin-top: 10px; }

/* R55: the one live desktop rule that sizes by vh inside the stage, restated in the 720 design's own units (--vhu = virtual height / 100).
   (The vh tops on .mbp and .dev-demo at lines 111, 240 and 241 are overridden by the in-flow stage, lines 309 and 337 to 341, so they need nothing.) */
html.shortz:not(.phone) .stage { padding-top: calc(max(17 * var(--vhu), calc(150px * var(--k))) + 14px); }

/* R69: arriving by Every job's Finance door, Work A is shown finished and the Calder card takes the site's raise (page.js .fin-raise) */
.layer.on.played .works .work.fin-raise { transform: translateY(calc(-4px * var(--k))); box-shadow: inset 0 0 0 1px #4A4856, inset 0 1px 0 rgba(255, 255, 255, .09), 0 44px 80px -36px rgba(0, 0, 0, .95);
  transition: max-height .8s var(--ease), opacity .3s var(--ease), transform .3s cubic-bezier(.22, 1, .36, 1); }
.reduced .layer.on.played .works .work.fin-raise { transition: none; }
.phone .layer.on.played .work.beat-on.fin-raise { transform: translateY(-4px) !important; transition: opacity .5s var(--ease), transform .3s cubic-bezier(.22, 1, .36, 1); }   /* phones: the finished page shows the Calder card alone */
.reduced.phone .layer.on.played .work.beat-on.fin-raise { transition: none; }
html:not(.phone) .layer.on.played .works .work.fin-dim { opacity: .4; }   /* R81: desktop door arrival, the other two step back (the cards' own .3 s opacity fade) */

/* CP10: the reel on Every job (jobs.js). The stage is fixed over the layers and under the masthead, never touchable; each act is the
   chapter page itself in an iframe (embed mode), placed and scaled by jobs.js; the lane word sits on the row's top-left corner */
.jx-stage { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.jx-act { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: dark; pointer-events: none; opacity: 0; transform-origin: 50% 0; transition: opacity .24s var(--ease); }
.jx-act.on { opacity: 1; transition-duration: .2s; }
.jx-now { position: absolute; left: 0; top: 0; margin: 0; pointer-events: none; opacity: 0; transition: opacity .24s var(--ease); }
.jx-now.on { opacity: 1; transition-duration: .2s; }
.jx-stage.bye .jx-act, .jx-now.bye { opacity: 0; transition-duration: .15s; }
