/* esoteria.ai v2: base.css, shared by the home and the chapters (tokens, type, masthead, buttons, cards, cue, rail, sheet, footer). Split from round 14 site.css by tools/css-split.mjs (2026-11-09); edit here, not in site.css. */
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --g: #09090D; --sheet: #121117; --sheet-2: #17161D; --line: #24232C; --line-2: #2E2D38;
  --t1: #EDEBF0; --t2: #C9C6D0; --t3: #8E8B97; --t4: #6E6B76;
  --plum: #A970B6; --cobalt: #6C85FF; --ox: #D06B73; --chalk: #F3F2F4; --answer: #8E8B97;
  --cob-rgb: 108, 133, 255; --ox-rgb: 208, 107, 115; --chalk-rgb: 243, 238, 228;
  --ease: cubic-bezier(.22, 1, .36, 1); --paper: cubic-bezier(.2, .7, .2, 1);
  --k: 1;
  color-scheme: dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--g); -webkit-text-size-adjust: 100%; }
body { background: var(--g); color: var(--t1); font-family: "Satoshi", -apple-system, system-ui, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid rgba(237, 235, 240, .7); outline-offset: 3px; }
/* ------------------------------------------------ masthead */
.mast { position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: calc(76px * var(--k)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(44px * var(--k)); pointer-events: none; }
.mast::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(rgba(9, 9, 13, .82), rgba(9, 9, 13, 0)); pointer-events: none; z-index: -1; }
.mast > * { pointer-events: auto; }
.lock { display: flex; align-items: center; min-height: 44px; line-height: 0; border-radius: 6px; }
.lock img { height: 26px; width: auto; display: block; }
.pill { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; box-shadow: inset 0 0 0 1px var(--line-2); }
.layers { position: fixed; inset: 0; z-index: 10; pointer-events: none; transition: transform .45s var(--ease); transform-origin: 50% 42%; }
.layer { position: absolute; inset: 0; visibility: hidden; }
.layer.on { visibility: visible; }
.layer.on > * { pointer-events: auto; }
.rv, .layer .card { opacity: 0; transform: translateY(18px); transition: opacity .42s var(--ease), transform .55s var(--ease); }
.layer.on .rv, .layer.on.played .card { opacity: 1; transform: none; }
.layer.on .rv:nth-child(2) { transition-delay: 50ms; }
.layer.on .rv:nth-child(3) { transition-delay: 100ms; }
.layer.on .rv:nth-child(4) { transition-delay: 150ms; }
/* ------------------------------------------------ type */
.copy { position: absolute; }
.h1 { font-weight: 500; font-size: calc(74px * var(--k)); line-height: 1.0; letter-spacing: -0.038em; text-wrap: balance; }
.h2 { font-weight: 500; font-size: calc(50px * var(--k)); line-height: 1.04; letter-spacing: -0.034em; text-wrap: balance; }
.sub { margin-top: calc(18px * var(--k)); font-size: calc(18.5px * var(--k)); line-height: 1.5; color: var(--t3); max-width: 31em; text-wrap: pretty; }
.demo { font-size: 12.5px; line-height: 1.4; color: var(--t4); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: calc(30px * var(--k)); }
.btn { height: calc(50px * var(--k)); min-height: 44px; padding: 0 calc(24px * var(--k)); border-radius: 999px; font-size: max(12px, calc(16px * var(--k))); font-weight: 500; letter-spacing: -0.008em; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; transition: transform .16s var(--ease); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--t1); color: var(--g); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--line-2); }
/* Akash 11-10 (CP5 panel): on the phone layout "Use it in your browser" is the filled button, "Download for Mac" the outline */
.phone .ctas .btn.primary { background: none; color: var(--t1); box-shadow: inset 0 0 0 1px var(--line-2); }
.phone .ctas .btn.ghost { background: var(--t1); color: var(--g); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.phone .ctas .btn.primary::before { box-shadow: inset 0 0 0 1px #4A4856; background: rgba(237, 235, 240, .04); } .phone .ctas .btn.ghost::before { box-shadow: none; background: #fff; }
/* ------------------------------------------------ the real pieces (COMPONENTS.md, dark values) */
.card { position: relative; background: var(--sheet); border-radius: 16px; padding: 18px 20px 16px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .9); display: flex; flex-direction: column; gap: 10px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); }
.card-h { font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--t1); text-wrap: pretty; }
.keys { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.k { height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; color: var(--t2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: transform .08s var(--ease); }
.k.yes { background: var(--t1); color: var(--g); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
/* R71/R52: a key is a picture of the app's key until it waits for the visitor (Chapter.yes adds .wait): only then the pointer and a response */
.k, .kc { cursor: default; }
.k.wait, .kc.wait, .k[data-go] { cursor: pointer; }   /* R78: while it waits, or when its press travels */
.k.yes.wait:hover, .k.yes[data-go]:hover { transform: translateY(-1px); }
.k.wait:active, .kc.wait:active, .k[data-go]:active { transform: scale(.98); }
.tick { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bd { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.bd.grow { background: var(--cobalt); }
.bd.save { background: var(--ox); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.005em; color: var(--t1); }
.chip i { width: 7px; height: 7px; border-radius: 50%; }
.chip.grow { background: rgba(var(--cob-rgb), .14); }
.chip.grow i { background: var(--cobalt); }
.chip.save { background: rgba(var(--ox-rgb), .14); }
.chip.save i { background: var(--ox); }
.chip.answer { background: rgba(142, 139, 151, .12); padding: 0 8px; }
.chip.answer i { background: var(--answer); }
/* the lit card: the app's own halo of dots (paper.css .dotlight), tinted by the book, plus the light of its plume behind it */
.card.lit::before { content: ""; position: absolute; inset: -26px -46px; z-index: -1; border-radius: 40px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(var(--lit), .95) 0.85px, transparent 1.15px); background-size: 6px 6px;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%); mask-image: radial-gradient(closest-side, #000 50%, transparent 100%); opacity: .55; }
.card.lit::after { content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--lit), .9), transparent); }
.card.grow { --lit: var(--cob-rgb); }
.card.save { --lit: var(--ox-rgb); }
.card.answer { --lit: var(--chalk-rgb); }
.card.answer::before { opacity: .22; }
/* ------------------------------------------------ 4 the yes */
.copy.yes { left: 59%; top: 7.5%; width: calc(520px * var(--k)); }
/* ------------------------------------------------ footer */
.foot { position: relative; z-index: 12; background: var(--g); border-top: 1px solid var(--line); }
.foot-in { max-width: 1360px; margin: 0 auto; padding: 32px calc(48px * var(--k)) 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-areas: "lock nav" "made gdata" "quiet gdata"; gap: 12px 64px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--t3); }
.foot-lock { grid-area: lock; height: 26px; width: auto; }
.foot nav { grid-area: nav; }
.foot .made { grid-area: made; }
.foot .gdata { grid-area: gdata; font-size: 13px; }
.foot .quiet { grid-area: quiet; font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--t1); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.noscript { padding: 120px 24px; font-size: 20px; }
/* ------------------------------------------------ phone (390 x 844) */
.phone .mast { padding: 0 16px; height: 64px; }
.phone .lock img { height: 22px; }
.phone .pill { height: 44px; font-size: 13.5px; padding: 0 14px; }
.phone .h1 { font-size: 40px; }
.phone .h2 { font-size: 30px; }
.phone .sub { font-size: 15.5px; margin-top: 12px; }
.phone .copy.yes { left: 20px; right: 20px; width: auto; }
.phone .btn { height: 48px; font-size: 15px; padding: 0 20px; }
.phone .ctas { margin-top: 20px; }
.phone .copy.yes { top: 80px; }
.phone .k { min-height: 44px; height: 44px; }
.phone .foot-in { grid-template-columns: 1fr; grid-template-areas: "lock" "nav" "made" "gdata" "quiet"; padding: 28px 20px 40px; }
.phone .foot a { display: inline-block; padding: 12px 0; }
.reduced .rv, .reduced .layer .card, .reduced .layer .demo, .reduced .h1 .w, .reduced .h2 .w, .reduced .layers { transition: none !important; animation: none !important; }
@media (max-height: 820px) {
  html:not(.phone) .copy.yes { top: 6.5%; }
}
/* the real in-app card, no dot halo: lit from behind by the scene (a rim of its book colour, a soft glow behind) */
.card.lit::before { display: none; }
.card.lit { box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(var(--lit), .28), 0 0 70px -18px rgba(var(--lit), .38), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.card.answer.lit { box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(var(--lit), .2), 0 0 60px -20px rgba(var(--lit), .16), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.copy.yes { top: 13%; width: calc(480px * var(--k)); }
/* ================================================ r14 pick: one page per gesture */
html, body { overflow: hidden; height: 100%; overscroll-behavior: none; }
body { touch-action: none; }
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; transform: translateY(100%); transition: transform .7s var(--ease); }
body.foot-on .foot { transform: none; }
.reduced .foot { transition: none; }
/* ================================================ peer model: words out 260 ms, in from 480 ms; footer as page 7 */
.layer { transition: visibility 0s linear .26s; }
.layer.on { transition-delay: 0s; }
.layer:not(.on) .rv, .layer:not(.on) .card { 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; }
.layer.on .rv { transition: opacity .62s cubic-bezier(0, 0, .2, 1), transform .62s cubic-bezier(0, 0, .2, 1); }
.layer.on .rv:nth-child(2) { transition-delay: 60ms; }
.layer.on .rv:nth-child(3) { transition-delay: 120ms; }
.h1 .w, .h2 .w { color: var(--t1); opacity: .6; transition: opacity .6s cubic-bezier(0, 0, .2, 1); }
.layer.on.played .h1 .w, .layer.on.played .h2 .w { opacity: 1; }
.layers { transition: transform var(--move, 1.1s) cubic-bezier(.45, 0, .15, 1), opacity .15s linear; }
body.foot-on .layers { transform: translateY(calc(-1 * var(--footLift, var(--footH, 40vh)))); }   /* R65: --footLift (js) keeps the Close headline 16 px under the masthead */
/* lift by the footer's own height */
.foot { transition: transform var(--move, 1.1s) cubic-bezier(.45, 0, .15, 1); max-height: 100vh; overflow-y: auto; }
body.xfade .layers { opacity: 0; }
.reduced .layers { transition: opacity .15s linear !important; }
/* the escape hatch: one long page */
html.native, html.native body { overflow: auto; height: auto; touch-action: auto; }
html.native .foot { position: relative; transform: none; }
.layer:not(.on) .demo { opacity: 0 !important; transition: opacity .26s cubic-bezier(.4, 0, 1, 1) !important; }
/* cards: the in-app card, a 1 px top light at .45, no halo, no outer glow */
.card.lit::before { display: none !important; }
.card.lit::after { background: linear-gradient(90deg, transparent, rgba(var(--lit), .45), transparent); }
.card.lit, .card.answer.lit { box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .9); }
/* ===== the cue: one quiet mark at the foot of every page. A hairline fills with the page's own clock; when the page
   has played out it becomes a small chevron that breathes once and rests. Never text. ===== */
.cue { all: unset; position: fixed; z-index: 1; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); width: 44px; height: 22px; margin-left: -22px; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.cue.on { opacity: 1; pointer-events: auto; }
body.foot-on .cue, html.native .cue { opacity: 0 !important; pointer-events: none; }
.cue-line { grid-area: 1 / 1; position: relative; display: block; width: 28px; height: 1px; background: rgba(237, 235, 240, .08); overflow: hidden; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.cue-line b { position: absolute; inset: 0; background: rgba(237, 235, 240, .18); transform: scaleX(0); transform-origin: 0 50%; }
.cue-chev { grid-area: 1 / 1; width: 11px; height: 8px; fill: none; stroke: #EDEBF0; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateY(-3px) scaleX(2.4); transition: transform .45s var(--ease); }
.cue.done .cue-line { opacity: 0; transform: scaleX(.3); }
.cue.done .cue-chev { transform: none; animation: cuebreathe 1.2s var(--ease) forwards; }
.cue.done:hover .cue-chev, .cue.done:focus-visible .cue-chev { opacity: .7 !important; }
.phone .cue { display: grid; }
.phone .cue-chev { transform: translateY(3px) scaleX(2.4) rotate(180deg); }
.phone .cue.done .cue-chev { transform: rotate(180deg); }
.reduced .cue.done .cue-chev { animation: none; opacity: .35; transform: none; }
.reduced.phone .cue.done .cue-chev { transform: rotate(180deg); }
.phone .cue { height: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); }
.phone .cue-chev { width: 10px; height: 7px; }
main:focus { outline: none; }
a.btn, a.pill { text-decoration: none; }
a.pill { display: inline-flex; align-items: center; justify-content: center; color: var(--t1); }
/* the brand, readable: the small lockup at a size where "by esoteria" is clear (x-height about 6 px desktop, 5 px phone) */
.lock img { height: max(34px, calc(42px * var(--k))); }
.phone .lock img { height: 32px; }
.foot-lock { height: max(34px, calc(42px * var(--k))); }
.phone .foot-lock { height: 32px; }
/* pre-ship CD: the lockup's ink sits on the link's centre line; tall phones give Everywhere room above the Mac */
html:not(.phone) .mast .lock img { transform: translateY(2px); }
.phone .mast .lock img { transform: translateY(1.5px); }
/* tablets and narrow windows: the phone layout, zoomed as one unit */
.tablet .layers, .tablet .mast, .tablet .foot, .tablet .cue, .tablet .rail, .tablet .confirm { zoom: var(--tz, 1); }
/* the cue: the hairline while the page plays; once it has played out, a chevron and a word in one row, clearly visible and clickable */
.cue { display: flex; align-items: center; justify-content: center; gap: 7px; width: 132px; height: 32px; margin-left: -66px; bottom: calc(6px + env(safe-area-inset-bottom)); }
.cue-line { position: absolute; left: 50%; top: 50%; width: 32px; margin-left: -16px; background: rgba(237, 235, 240, .14); }
.cue-line b { background: rgba(237, 235, 240, .42); }
.cue-chev { width: 13px; height: 8px; stroke-width: 1.5; flex: none; transform: none; }
.cue-word { font-size: 12.5px; font-weight: 500; letter-spacing: .03em; color: #EDEBF0; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; order: -1; }
.cue-word .touch { display: none; }
.phone .cue-word .mac { display: none; }
.phone .cue-word .touch { display: inline; }
.cue.done .cue-word { opacity: .68; }
.cue.done .cue-chev { animation: cuebreathe2 1.4s var(--ease) forwards; }
.cue.done:hover .cue-chev, .cue.done:focus-visible .cue-chev, .cue.done:hover .cue-word, .cue.done:focus-visible .cue-word { opacity: 1 !important; }
.cue:focus-visible { outline: 1.5px solid rgba(237, 235, 240, .6); outline-offset: 2px; border-radius: 12px; }
.cue:not(.done) { pointer-events: none; }
.phone .cue { height: 32px; bottom: calc(6px + env(safe-area-inset-bottom)); }
.phone .cue-word { font-size: 13px; order: 1; }
.phone .cue-chev, .phone .cue.done .cue-chev { transform: rotate(180deg); }
.phone .cue.done .cue-chev { animation: cuebreathe3 1.4s var(--ease) forwards; }
.reduced .cue.done .cue-chev { animation: none; opacity: .68; }
/* the page rail (desktop): eight marks, the current one lit; once a page has played out the next one pulses */
.rail { position: fixed; z-index: 31; right: calc(18px * var(--k)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; transition: opacity .4s var(--ease); }
.rail button { all: unset; width: 24px; height: 22px; display: grid; place-items: center; cursor: pointer; border-radius: 6px; }
.rail i { width: 2px; height: 22px; border-radius: 1px; background: #EDEBF0; opacity: .34; transform: scaleY(.6364); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.rail button:hover i { opacity: .6; }
.rail button[aria-current="step"] i { opacity: 1; transform: none; }
.rail button.next i { animation: railnext 2.2s ease-in-out infinite; }
.rail button:focus-visible { outline: 1.5px solid rgba(237, 235, 240, .6); }
.reduced .rail button.next i { animation: none; opacity: .6; }
.phone .rail, html.native .rail, body.foot-on .rail { display: none; }
/* the download asks first */
.cscrim { position: fixed; inset: 0; z-index: 60; background: rgba(9, 9, 13, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s var(--ease); }
.cscrim.on { opacity: 1; }
.confirm { position: fixed; z-index: 61; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); padding: 24px 24px 20px; border-radius: 20px; background: #121117; box-shadow: inset 0 0 0 1px #2A2933, inset 0 1px 0 rgba(237, 235, 240, .06), 0 40px 90px -30px #000; display: grid; gap: 8px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.confirm.on { opacity: 1; transform: translate(-50%, -50%); }
.cf-icon { width: 48px; height: 48px; border-radius: 11px; margin-bottom: 6px; }
.confirm h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; color: var(--t1); }
.confirm p { font-size: 13.5px; line-height: 1.45; color: var(--t3); }
.cf-keys { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.cf-keys .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.phone .confirm { top: auto; bottom: 0; left: 0; right: 0; width: auto; transform: translateY(16px); border-radius: 20px 20px 0 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); }
.phone .confirm.on { transform: none; }
.phone .cf-keys .btn { flex: 1; }
.reduced .confirm, .reduced .cscrim { transition: none; }
body.cf-open .cue, body.cf-open .rail { opacity: 0; pointer-events: none; }
/* the rail sits in the gutter at every desktop width */
.rail { right: 10px; }
.rail button { width: 16px; }
/* CD (after launch): a clearer cue and rail, a desktop-style confirm on tablets, a short-desktop Everywhere */
.cue { bottom: calc(14px + env(safe-area-inset-bottom)); height: 34px; }
.phone .cue { bottom: calc(12px + env(safe-area-inset-bottom)); }
.cue-word, .phone .cue-word { font-size: 14px; }
.cue.done .cue-word { opacity: .85; }
.cue-chev { width: 16px; height: 10px; stroke-width: 1.6; }
.cue.done .cue-chev { animation: cuenudge 2.8s ease-in-out infinite; }
.phone .cue.done .cue-chev { animation: cuenudge2 2.8s ease-in-out infinite; }
.cue-seen .cue.done .cue-chev { animation: none; opacity: .85; }
.phone .cue-seen .cue.done .cue-chev, .phone.cue-seen .cue.done .cue-chev { transform: rotate(180deg); }
.reduced .cue.done .cue-chev { animation: none; opacity: .85; }
.rail { gap: 4px; }
.rail button { height: 24px; }
.tablet .confirm { zoom: 1; top: 50%; bottom: auto; left: 50%; right: auto; width: min(420px, calc(100vw - 32px)); border-radius: 20px; padding: 24px 24px 20px; transform: translate(-50%, -46%) scale(.98); }
.tablet .confirm.on { transform: translate(-50%, -50%); }
.tablet .cf-keys .btn { flex: none; }
.nar { display: none; }
.phone:not(.tablet) .nar { display: inline; }
.phone:not(.tablet) .nar-sep { display: none; }
@media (max-height: 700px) {
  .phone .cue { bottom: calc(6px + env(safe-area-inset-bottom)); }
}
/* CD (after launch, re-check) */
.cue { z-index: 31; }
.cf-ios { display: none; }
.confirm.is-ios .cf-mac { display: none; }
.confirm.is-ios .cf-ios { display: grid; gap: 8px; }
.cf-mac { display: grid; gap: 8px; }
.cf-ios .cf-keys { flex-wrap: wrap; }
.cf-ios .cf-keys .btn { flex: 1 1 auto; }
.cf-ios .cf-keys .btn.primary { flex-basis: 100%; order: -1; }
.cf-keys .btn.primary:focus-visible { outline-offset: 3px; outline-color: rgba(237,235,240,.5); }
.cf-link { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #2A2933; background: #0E0D12; color: var(--t1); font: 13px/1 "Satoshi", system-ui, sans-serif; }
@keyframes cuebreathe { 0% { opacity: .25; } 50% { opacity: .6; } 100% { opacity: .35; } }
@keyframes cuebreathe2 { 0% { opacity: .3; transform: translateY(-3px); } 50% { opacity: .9; transform: translateY(2px); } 100% { opacity: .68; transform: none; } }
@keyframes cuebreathe3 { 0% { opacity: .3; transform: rotate(180deg) translateY(-3px); } 50% { opacity: .9; transform: rotate(180deg) translateY(2px); } 100% { opacity: .68; transform: rotate(180deg); } }
@keyframes cuenudge { 0%, 100% { opacity: .55; transform: none; } 50% { opacity: .95; transform: translateY(4px); } }
@keyframes cuenudge2 { 0%, 100% { opacity: .55; transform: rotate(180deg); } 50% { opacity: .95; transform: rotate(180deg) translateY(4px); } }
@keyframes railnext { 0%, 100% { opacity: .34; transform: scaleY(.6364); } 50% { opacity: 1; transform: scaleY(.8182); } }

/* ===== v2 (PERF-SPEC 2.1.2): the first wheel event of a gesture is answered in one frame: the lit rail mark and the cue's
   hairline step 3 px toward the gesture for 60 ms (page.js / chapter.js add .nudge-d or .nudge-u), then ease back ===== */
.rail.nudge-d button[aria-current="step"] i, .cue.nudge-d .cue-line { transform: translateY(3px); transition-duration: .06s; }
.rail.nudge-u button[aria-current="step"] i, .cue.nudge-u .cue-line { transform: translateY(-3px); transition-duration: .06s; }

/* ===== v2 (PERF-SPEC 2.2.2): hover light is a pre-drawn layer whose opacity fades (same look as the old background and ring) ===== */
.pill, .btn, .k { position: relative; isolation: isolate; }
.pill::before, .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.pill::before, .btn.ghost::before { box-shadow: inset 0 0 0 1px #4A4856; background: rgba(237, 235, 240, .04); }
.btn.primary::before { background: #fff; }
.pill:hover::before, .btn:hover::before { opacity: 1; }
.confirm[hidden], .cscrim[hidden] { display: none; }

/* ===== v2 between documents (PERF-SPEC section 3): one 200 ms cross-fade (opacity only), the masthead held still; off under reduced motion ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
.mast { view-transition-name: mast; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* the Coming soon pill (one per chapter Coming soon page, above its headline: chapter.css .soon-kick) */
.soon-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 500; letter-spacing: .005em; color: var(--t3); white-space: nowrap; flex: none; }
.soon-chip i { width: 7px; height: 7px; border-radius: 50%; background: rgba(243, 242, 244, .4); }

/* R12 / QA B3, B4 (all four documents): on phones the footer is the page; the Close's words fade as it rises (opacity only), so nothing runs under the masthead or off the top */
.phone [data-layer="close"] .copy { transition: opacity .3s var(--ease); }
.phone body.foot-on [data-layer="close"] .copy { opacity: 0; }

/* R55: under 720 tall on the desktop layout the home is its own 720 design, zoomed by --sz with its masthead, cue and rail (page.js sets it).
   The chapters zoom only their stage (chapter.css, R49). The world, the footer and the sheet are not zoomed. */
html.shortz body:not(.chapter) .layers, html.shortz body:not(.chapter) .mast, html.shortz body:not(.chapter) .cue, html.shortz body:not(.chapter) .rail { zoom: var(--sz); }
html.shortz body:not(.chapter) .layers { inset: auto; left: 0; top: 0; width: calc(100vw / var(--sz)); height: calc(100vh / var(--sz)); }
html.shortz body.foot-on .layers { transform: translateY(calc(-1 * var(--footLift, var(--footH, 40vh)) / var(--sz))); }   /* the footer is not zoomed: lift the zoomed stage by its real height */

/* R66 (Akash's CP5 ruling, extended by Fable): on the phone and tablet layouts the home's masthead pill is the browser one; on tablet
   chapters too (beside the chapter nav); on phone chapters the chapter nav takes the pill's place (chapter.css) */
.mast .pill-web { display: none; }
.phone body:not(.chapter) .mast .pill:not(.pill-web), .tablet .chapter .mast .pill:not(.pill-web) { display: none; }
.phone body:not(.chapter) .mast .pill-web, .tablet .chapter .mast .pill-web { display: inline-flex; }
