/* ==========================================================
   APOORV SINGH
   Each scene has its own quiet paper tint and one accent colour;
   a halftone wipe carries you from one to the next.
   Font: Plus Jakarta Sans (SIL OFL), self-hosted.
   ========================================================== */

@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- colour ---------- */
:root {
  --display: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --text: #15181E;
  --text-2: #4F5563;
  --card: #FFFFFF;
  --card-text: #15181E;
  --rule: rgba(21, 24, 30, .12);
  --shadow: 0 24px 48px -18px rgba(18, 24, 38, .28), 0 2px 6px rgba(18, 24, 38, .06);
  --cur-paper: #F7F5F0;
  --cur-text: #15181E;
  color-scheme: light;
}
html[data-theme="dark"] {
  --text: #ECEDEF;
  --text-2: #A5ABB6;
  --card: #1D2027;
  --card-text: #ECEDEF;
  --rule: rgba(236, 237, 239, .12);
  --shadow: 0 24px 48px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  --cur-paper: #121417;
  --cur-text: #ECEDEF;
  color-scheme: dark;
}
.scene[data-scene="0"] { --paper: #F7F5F0; --accent: #2B59C3; --sun: #F2B33D; }
.scene[data-scene="1"] { --paper: #F2EEE6; --accent: #B84E2A; }
.scene[data-scene="2"] { --paper: #EDF1F7; --accent: #2B59C3; }
.scene[data-scene="3"] { --paper: #F7EEEA; --accent: #B84E2A; }
.scene[data-scene="4"] { --paper: #ECF3EE; --accent: #2F7A55; }
.scene[data-scene="5"] { --paper: #F0EEF6; --accent: #5B4BB7; }
.scene[data-scene="6"] { --paper: #F7F5F0; --accent: #2B59C3; }
.scene[data-scene="7"] { --paper: #15213B; --accent: #F2B33D; --text: #F4F2EC; --text-2: #B7C0D4; }
html[data-theme="dark"] .scene[data-scene="0"] { --paper: #121417; --accent: #8AA9F2; --sun: #E0A43A; }
html[data-theme="dark"] .scene[data-scene="1"] { --paper: #15151A; --accent: #E8906B; }
html[data-theme="dark"] .scene[data-scene="2"] { --paper: #11151D; --accent: #8AA9F2; }
html[data-theme="dark"] .scene[data-scene="3"] { --paper: #171313; --accent: #E8906B; }
html[data-theme="dark"] .scene[data-scene="4"] { --paper: #111713; --accent: #74C7A0; }
html[data-theme="dark"] .scene[data-scene="5"] { --paper: #15131C; --accent: #ABA0F2; }
html[data-theme="dark"] .scene[data-scene="6"] { --paper: #121417; --accent: #8AA9F2; }
html[data-theme="dark"] .scene[data-scene="7"] { --paper: #0F1830; --accent: #F2C14E; --text: #F4F2EC; --text-2: #AFB8CC; }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--cur-paper); color: var(--text); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg.ico { width: 11px; height: 11px; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--cur-text); color: var(--cur-paper); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid currentColor; outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- the halftone canvas ---------- */
#press { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
html.rm #press, html:not(.js) #press { display: none; }

/* ---------- header + colour bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gut); color: var(--cur-text);
}
html.js:not(.pin):not(.rm) .top { background: var(--cur-paper); }
html.rm .top, html:not(.js) .top { position: absolute; }
.brand { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.top-r { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; background: transparent;
  font-family: var(--body); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .15s;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(1px); }
.top .pill:hover { background: var(--cur-text); color: var(--cur-paper); }
.pill.solid { background: var(--text); color: var(--paper, var(--cur-paper)); border-color: var(--text); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .i-sun, html[data-theme="dark"] .icon-btn .i-moon { display: none; }
html[data-theme="dark"] .icon-btn .i-sun { display: block; }

.bar { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 10px; }
.bar a { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--cur-text); opacity: .25; transition: transform .25s, opacity .25s, background-color .25s; }
.bar a:hover { opacity: 1; transform: scale(1.2); }
.bar a[aria-current="true"] { opacity: 1; transform: scale(1.5); }
html:not(.pin) .bar { display: none; }

/* ---------- scenes ---------- */
.scene { position: relative; z-index: 1; color: var(--text); }
.pin { display: flex; align-items: center; }
.in { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 calc(var(--gut) + 24px) 0 var(--gut); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); align-items: center; }
.copy { max-width: 560px; }

/* flow: phones, small windows, reduced motion, no JS */
.scene { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 104px 0 80px; }
.pin { width: 100%; }
html:not(.js) .scene, html.rm .scene { background: var(--paper); }
/* pinned: the cinematic version */
html.pin .scene { height: 160vh; min-height: 0; padding: 0; display: block; }
html.pin .pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 40px; }

@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; row-gap: 36px; }
  .in { padding: 0 var(--gut); }
}

/* ---------- type ---------- */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 20px; }
.display, .big, .motto-words .w { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; color: var(--text); }
.display { font-size: clamp(60px, 11.5vw, 168px); line-height: 1.02; }
.big { font-size: clamp(34px, 4.3vw, 66px); line-height: 1.1; text-wrap: balance; }
.display em, .big em, .motto-words em { font-style: normal; color: var(--accent); }
.stop { margin-left: -.06em; }   /* this face sets the full stop wide at display sizes */
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-2); max-width: 38ch; margin-top: 24px; text-wrap: pretty; }
.hero .lede { max-width: 32ch; font-size: clamp(19px, 1.6vw, 22px); color: var(--text); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.lnk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.lnk:hover { text-decoration-color: currentColor; }
.as-btn { background: none; border: 0; padding: 0; cursor: pointer; }

.cue { margin-top: 56px; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.cue i { width: 64px; height: 2px; background: currentColor; transform-origin: left; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* motto */
.motto-words { display: grid; gap: .04em; }
.motto-words .w { display: block; font-size: clamp(56px, 10vw, 156px); line-height: 1.02; width: max-content; max-width: 100%; }
.motto-words .w2 { margin-left: 10%; }
.motto-words .w3 { margin-left: 20%; }
.motto .lede { margin-left: 20%; }
@media (max-width: 640px) { .motto-words .w2 { margin-left: 6%; } .motto-words .w3, .motto .lede { margin-left: 12%; } }

/* ---------- reveals ---------- */
html.js:not(.rm) .rv { opacity: 0; }
html.js.pin .rv { will-change: opacity, transform, clip-path; }
html.js:not(.pin):not(.rm) .rv {
  clip-path: inset(-40px 100% -40px -40px); transform: translateX(-14px);
  transition: opacity .5s ease, clip-path 1s cubic-bezier(.2, .75, .15, 1), transform 1s cubic-bezier(.2, .75, .15, 1);
  transition-delay: calc(var(--k, 0) * 80ms);
}
html.js:not(.pin):not(.rm) .rv.shown { opacity: 1; clip-path: inset(-40px -40px -40px -40px); transform: none; }

/* ---------- stages (the playable prints) ---------- */
.stage { display: flex; align-items: flex-start; gap: 22px; justify-content: center; }

/* calculator */
.calc { position: relative; width: min(340px, 100%); flex: none; padding: 18px; border-radius: 28px; background: #1B2233; box-shadow: var(--shadow); }
html[data-theme="dark"] .calc { background: #232A3B; }
.calc-out {
  display: block; min-height: 84px; padding: 14px 18px; margin-bottom: 14px; border-radius: 16px;
  background: #F4F6FA; color: #15181E; text-align: right; overflow: hidden; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 56px; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .calc-out { background: #313A50; color: #F4F6FA; }
.calc-out.long { font-size: 30px; }
.calc-out.err { color: #B42318; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.k { height: 56px; border: 0; border-radius: 16px; cursor: pointer; background: rgba(255, 255, 255, .08); color: #F4F6FA; font-family: var(--display); font-weight: 600; font-size: 22px; transition: transform .08s, background-color .15s; }
.k:hover { background: rgba(255, 255, 255, .14); }
.k:active, .k.hit { transform: translateY(2px); }
.k.fn { background: rgba(255, 255, 255, .18); }
.k.op, .k.eq { background: var(--accent); color: #fff; }
html[data-theme="dark"] .k.op, html[data-theme="dark"] .k.eq { color: #0E1320; }
.k.zero { grid-column: span 2; }
.k.on { box-shadow: inset 0 0 0 3px #F4F6FA; }
.tape {
  width: 170px; flex: none; margin-top: 30px; padding: 14px 14px 18px; background: var(--card); color: var(--card-text);
  font-variant-numeric: tabular-nums; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle 5px at 50% 0, #0000 98%, #000) 0 0 / 14px 100% repeat-x;
          mask: radial-gradient(circle 5px at 50% 0, #0000 98%, #000) 0 0 / 14px 100% repeat-x;
}
.tape-h { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); padding: 6px 0 8px; border-bottom: 1.5px dashed var(--rule); margin-bottom: 8px; }
.tape li { padding: 6px 0; border-bottom: 1px dashed var(--rule); word-break: break-all; animation: print .45s cubic-bezier(.2, .8, .2, 1); }
.tape li b { display: block; font-weight: 700; font-size: 17px; }
.tape li.hint { color: var(--text-2); animation: none; border: 0; }
@keyframes print { from { opacity: 0; transform: translateY(-10px); } }

/* rock paper scissors */
.rps { width: min(480px, 100%); }
.gf { fill: color-mix(in srgb, var(--accent) 22%, var(--card)); }
.gl { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.arena { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.side { margin: 0; display: grid; justify-items: center; gap: 6px; }
.side .glyph { width: clamp(110px, 12vw, 170px); height: clamp(110px, 12vw, 170px); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.side.page .glyph { transform: scaleX(-1); }
.side figcaption { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.vs { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--text-2); }
.arena.shake .you .glyph { animation: bob .16s ease-in-out 3 alternate; }
.arena.shake .page .glyph { animation: bobr .16s ease-in-out 3 alternate; }
@keyframes bob { to { transform: translateY(-16px) rotate(-8deg); } }
@keyframes bobr { from { transform: scaleX(-1); } to { transform: scaleX(-1) translateY(-16px) rotate(-8deg); } }
.side.won .glyph { transform: scale(1.1); }
.side.page.won .glyph { transform: scaleX(-1.1) scaleY(1.1); }
.side.lost { opacity: .45; }
.rps-msg { min-height: 3.1em; margin: 16px 0 14px; text-align: center; font-weight: 600; font-size: 17px; }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pick {
  display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; border: 1px solid var(--rule); border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgba(18, 24, 38, .06);
  color: var(--card-text); cursor: pointer; font-weight: 600; font-size: 15px; transition: transform .12s, box-shadow .12s;
}
.pick svg { width: 56px; height: 56px; }
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.pick:active { transform: translateY(2px); box-shadow: none; }
.pick:disabled { cursor: default; opacity: .7; }
.score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; text-align: center; }
.score dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.score dd { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.score dd.pop { animation: pop .4s cubic-bezier(.3, 1.8, .5, 1); color: var(--accent); }
@keyframes pop { 40% { transform: scale(1.35); } }

/* bank passbook */
.book {
  position: relative; width: min(470px, 100%); padding: 0 0 18px; background: var(--card); color: var(--card-text); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
  --text: var(--card-text); --stampc: #D7263D;
}
html[data-theme="dark"] .book { --stampc: #FF6B7A; }
.book-h { display: flex; justify-content: space-between; padding: 14px 20px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
html[data-theme="dark"] .book-h { color: #10231A; }
.bal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; }
.bal-l { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.bal output { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.amt { display: flex; gap: 8px; padding: 10px 20px 0; }
.amt button { flex: 1; min-height: 40px; border: 1.5px solid var(--rule); border-radius: 12px; background: transparent; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; }
.amt button[aria-checked="true"] { border-color: var(--card-text); background: var(--card-text); color: var(--card); }
.txn { display: flex; gap: 10px; padding: 12px 20px 6px; }
.txn .pill { flex: 1; justify-content: center; }
.book .pill.solid { background: var(--card-text); color: var(--card); border-color: var(--card-text); }
.ledger { width: calc(100% - 40px); margin: 10px 20px 0; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; padding: 6px 0; border-bottom: 1.5px solid var(--rule); }
.ledger td { padding: 7px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ledger .n { text-align: right; }
.ledger td:nth-child(2) { padding-right: 8px; }
.ledger tr.new { animation: print .5s cubic-bezier(.2, .8, .2, 1); }
.ledger .plus { color: var(--accent); font-weight: 700; }
.ledger .minus { color: var(--stampc); font-weight: 700; }
.ledger tbody tr:nth-child(n+5) { display: none; }
.book-f { padding: 12px 20px 0; font-size: 13px; opacity: .7; }
.stamp {
  position: absolute; right: 26px; top: 88px; padding: 8px 14px; border: 3px solid var(--stampc); border-radius: 8px; color: var(--stampc);
  font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  transform: rotate(-12deg) scale(1.6); opacity: 0; pointer-events: none; background: var(--card);
}
.stamp.on { animation: stamp 1.8s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(1.6); } 12% { opacity: .95; transform: rotate(-12deg) scale(1); } 80% { opacity: .95; transform: rotate(-12deg) scale(1); } 100% { opacity: 0; transform: rotate(-12deg) scale(1); } }

/* pieces */
.tiles { position: relative; width: min(420px, 80vw, 52vh); aspect-ratio: 1; }
.tile { position: absolute; left: 0; top: 0; width: calc(100% / 7 - 6px); aspect-ratio: 1; border-radius: 22%; background: color-mix(in srgb, var(--text-2) 45%, transparent); will-change: transform; transition: background-color .35s; }
.tile.b { background: var(--accent); }

/* tools */
.desk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; max-width: 1060px; }
.desk h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.stamps { display: flex; flex-wrap: wrap; gap: 10px; }
.stamps span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--text);
  font-weight: 600; font-size: 16px; line-height: 1.3; box-shadow: 0 1px 2px rgba(18, 24, 38, .05);
}
.stamps.small span { font-size: 14px; padding: 6px 12px; }
#skills .lede { max-width: 52ch; margin-top: 40px; }
@media (max-width: 760px) { .desk { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; } }

/* contact */
.mail-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: 40px; }
.mail { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 58px); letter-spacing: -.02em; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.mail:hover { color: var(--accent); }
.colophon { margin-top: 64px; font-size: 14px; color: var(--text-2); }
.contact .pill.solid { background: var(--text); color: var(--paper); }

/* ---------- project sheets ---------- */
dialog.sheet {
  width: min(760px, 100%); max-width: 100%; max-height: min(88vh, 900px); margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: var(--card); color: var(--card-text); overflow: auto; overscroll-behavior: contain;
  --text: var(--card-text); --text-2: color-mix(in srgb, var(--card-text) 70%, transparent); --paper: var(--card); --accent: #2B59C3;
}
html[data-theme="dark"] dialog.sheet { --accent: #8AA9F2; }
dialog.sheet[open] { animation: pull .55s cubic-bezier(.2, .85, .2, 1); }
@keyframes pull { from { transform: translateY(100%); } }
dialog.sheet::backdrop { background: rgba(20, 18, 24, .5); }
.sheet-in { position: relative; padding: 40px clamp(22px, 5vw, 56px) 44px; }
.sheet-in::before { content: ""; position: absolute; left: 50%; top: 12px; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: var(--rule); }
.close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; cursor: pointer; }
.close svg { width: 15px; height: 15px; }
.sheet h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; padding-right: 48px; }
.sheet .kicker { margin-bottom: 14px; }
.dek { margin-top: 14px; font-size: 19px; color: var(--text-2); max-width: 52ch; }
.story { margin-top: 28px; border-top: 1.5px solid var(--rule); }
.story > div { display: grid; grid-template-columns: 150px 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.story dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding-top: 3px; }
.sheet .stamps { margin-top: 24px; }
.sheet .acts { margin-top: 26px; }
@media (max-width: 560px) { .story > div { grid-template-columns: 1fr; } }
html:not(.js) dialog.sheet { display: block; position: static; margin: 0 auto; border-radius: 0; }

/* ---------- small screens ---------- */
@media (max-width: 899px) {
  .stage { justify-content: flex-start; }
  .tape { width: 140px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand { font-size: 19px; }
  .top .pill { display: none; }
  .scene { padding: 96px 0 72px; }
  .stage { flex-direction: column; align-items: stretch; }
  .calc { width: calc(100% - 12px); }
  .book { width: calc(100% - 12px); }
  .tape { width: 100%; margin-top: 8px; }
  .tape ol { display: flex; flex-direction: column; }
  .tape li:nth-child(n+4) { display: none; }
  .rps-msg { font-size: 16px; }
  .ledger { font-size: 13px; }
  .ledger th:nth-child(1), .ledger td:nth-child(1) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
