/* HOLDBACK, iteration 2 of the human bar (2026-11-20).
   Type: IBM Plex Serif Light for display (engineered, machined serifs; the light weight keeps headlines small and exact),
   IBM Plex Sans for text and figures (tabular numerals for money), Plex Sans Condensed SemiBold for the wordmark,
   the ink stamps and the receipt (the face the card itself is engraved with).
   Scale (px, desktop): 12.5 / 15.5 / 18 / 26 / 48 / 76, plus the closing wordmark at 17vw. Line height opens as size drops.
   Raw layer: red rubber-stamp ink (distressed by the grain tile as a mask), two misregistered plates (red over steel blue)
   that snap into register on the shot's hits, masking tape on the receipt. Only on beats, never as decoration. */
@font-face { font-family: "Plex Serif"; src: url(../fonts/IBMPlexSerif-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url(../fonts/IBMPlexSerif-LightItalic.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url(../fonts/IBMPlexSans-var.woff2) format("woff2"); font-weight: 100 700; font-stretch: 85% 100%; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url(../fonts/IBMPlexSansCondensed-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0c0c0d; --bone: #ece8df; --paper: #f2efe7; --red: #d4271b; --redl: #ff5a46; --blue: #2b4cff; --dim: #9a9da2;
  --s-xs: 12.5px; --s-s: 15.5px; --s-m: 18px; --s-l: 26px; --s-xl: 48px; --s-xxl: 76px;
  --pad: clamp(20px, 3.2vw, 48px);
  --ease: cubic-bezier(.2, .8, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--bone); -webkit-text-size-adjust: 100%; }
body { font: 400 var(--s-s)/1.6 "Plex Sans", system-ui, sans-serif; font-feature-settings: "kern"; overflow-x: clip; }
html { overflow-x: clip; }
a { color: inherit; }
::selection { background: var(--red); color: #f7f4ee; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--bone); color: var(--ink); padding: 12px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--redl); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad); height: 76px; background: linear-gradient(#0c0c0dd0, #0c0c0d00); }
.nav.solid { background: #0c0c0d; border-bottom: 1px solid #ffffff12; }
.nav { transition: background .3s; }
.logo { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo-word { position: relative; font: 600 18px/1 "Plex Cond", sans-serif; letter-spacing: .2em; text-transform: uppercase; padding-right: .1em; }
.logo-word::after { content: ""; position: absolute; left: -3px; right: -3px; top: 30%; height: 2px; background: var(--red); }
.links { display: flex; align-items: center; gap: 30px; }
.links a { font-size: 16px; text-decoration: none; color: #f0ede6; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.links a:not(.btn):hover::after, .links a:not(.btn):focus-visible::after { transform: scaleX(1); }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bone); color: var(--ink); font: 500 var(--s-s)/1 "Plex Sans", sans-serif; text-decoration: none; letter-spacing: .005em;
  transition: background .25s, transform .25s var(--ease); }
.btn:hover { background: #f7f4ee; }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 44px; padding: 0 18px; color: var(--ink) !important; }

.sound { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; order: 3;
  border: 1px solid #ffffff40; border-radius: 999px; background: #0c0c0d80; color: #f0ede6; font: 500 13px/1 "Plex Sans", sans-serif; letter-spacing: .03em; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, background .2s; }
.sound:hover { border-color: #ffffffa0; }
.sound[aria-pressed="true"] { border-color: var(--redl); }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { width: 2px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] .bars i { animation: eq .9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; } .sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; } .sound[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--ink); }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#cutline { stroke: var(--redl); stroke-width: 1.25; stroke-dasharray: 6 5; opacity: 0; }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .06; mix-blend-mode: overlay; background: url(grain.png) 0 0 / 256px 256px; will-change: transform; }
.scrim { position: absolute; inset: auto 0 0 0; height: 44vh; pointer-events: none; background: linear-gradient(#0c0c0d00, #0c0c0da6 72%, #0c0c0dd8); }
.flash { position: absolute; inset: 0; background: #f7f4ee; opacity: 0; pointer-events: none; }
.flash.go { animation: fl .09s steps(1) 1; }
@keyframes fl { 0% { opacity: .5; } 100% { opacity: 0; } }
.track { position: relative; height: calc(var(--track, 760) * 1vh); height: calc(var(--track, 760) * 1svh); pointer-events: none; }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; }

/* ---------- chapters ---------- */
.ch { position: fixed; z-index: 5; left: var(--pad); bottom: calc(var(--pad) + 6px); width: min(30rem, 40vw); visibility: hidden; }
.ch.on { visibility: visible; }
.h1, .h2 { font: 300 var(--s-xl)/1.04 "Plex Serif", Georgia, serif; letter-spacing: -.028em; text-wrap: balance; color: #f6f3ec; }
.h2 { font-size: 40px; }
.ln { display: inline-block; will-change: transform, clip-path; }
.lede, .body { margin-top: 16px; max-width: 34rem; font-size: var(--s-m); line-height: 1.55; color: #d6d3cb; text-wrap: pretty; }
.body { font-size: var(--s-s); max-width: 29rem; line-height: 1.62; }
.hero-row { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.hint { font-size: var(--s-xs); color: var(--dim); }

/* hero: headline column on the left, the split on the right, the card between them */
.ch-hero { right: var(--pad); width: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.ch-hero .col-a { width: min(30rem, 40vw); }
.split { width: 250px; padding-bottom: 6px; font-variant-numeric: tabular-nums lining-nums; }
.split div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid #ffffff2a; }
.split dt { font-size: 13.5px; color: #d6d3cb; }
.split dd { font-size: 17px; font-weight: 500; color: #f6f3ec; }
.s-aside dt, .s-aside dd { color: var(--redl); }
.s-yours dd { font: 300 30px/1 "Plex Serif", serif; letter-spacing: -.02em; }
.split-note { margin-top: 10px; font-size: 12px; color: var(--dim); }

.ch-out { bottom: auto; top: 112px; }
/* ---------- pinned tags ---------- */
.tags { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 8px; opacity: 0; white-space: nowrap;
  font: 500 14px/1.2 "Plex Sans", sans-serif; color: #f0ede6; text-shadow: 0 1px 12px #000c; }
.tag b { font: 300 46px/1 "Plex Serif", serif; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.tag-aside b { color: var(--redl); }

/* ---------- ink: rubber stamps on the beats ---------- */
.ink { position: absolute; opacity: 0; font: 600 30px/1 "Plex Cond", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  -webkit-mask: url(grain.png) 0 0 / 180px 180px; mask: url(grain.png) 0 0 / 180px 180px; -webkit-mask-mode: luminance; mask-mode: luminance; }
.ink.on { opacity: 1; }
.plate { display: block; }
.plate-c { position: absolute; inset: 0; color: var(--blue); mix-blend-mode: screen; transform: translate(var(--mx, 0), var(--my, 0)); }
.ink[data-st="0"] { transform: var(--pos) scale(1.35); }
.ink[data-st="0"] .plate-c { --mx: 7px; --my: -5px; }
.ink[data-st="1"] { transform: var(--pos) scale(.97); }
.ink[data-st="1"] .plate-c { --mx: 3px; --my: -2px; }
.ink[data-st="2"] { transform: var(--pos) scale(1); }
.ink[data-st="2"] .plate-c { opacity: 0; }
.ink-held { --pos: rotate(-7deg); right: 12vw; top: 21vh; padding: 12px 18px 10px; border: 4px double var(--red); }
.ink-serial { --pos: rotate(3deg); right: 8vw; top: 24vh; font-size: 64px; letter-spacing: .3em; white-space: pre; }
.ink-serial small { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .2em; }

/* ---------- the closing wordmark, plates register on the return hit ---------- */
.mark { position: fixed; z-index: 3; left: 0; right: 0; bottom: 7vh; text-align: center; opacity: 0; pointer-events: none; line-height: .8; }
.mark-w { display: block; font: 600 17.5vw/.8 "Plex Cond", sans-serif; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.mark-k { position: relative; color: #f3f0e9; }
.mark-c, .mark-r { position: absolute; left: 0; right: 0; top: 0; }
.mark-c { color: var(--blue); transform: translate(calc(var(--off, 0px) * -1), calc(var(--off, 0px) * .5)); mix-blend-mode: screen; opacity: .75; }
.mark-r { color: var(--red); transform: translate(var(--off, 0px), calc(var(--off, 0px) * -.4)); mix-blend-mode: screen; opacity: .85; }
.mark-line { position: absolute; left: 3vw; right: 3vw; top: 24%; height: .9vw; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- receipt (taped on) ---------- */
.receipt { position: fixed; z-index: 6; right: var(--pad); bottom: calc(var(--pad) + 6px); width: 276px; padding: 22px 20px 26px;
  background: var(--paper); color: #1d1c1a; opacity: 0; visibility: hidden; transform: rotate(1.4deg);
  font: 500 14px/1.45 "Plex Sans", sans-serif; font-stretch: 85%; font-variant-numeric: tabular-nums lining-nums;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 12px 9px repeat-x;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 12px 9px repeat-x;
  filter: drop-shadow(0 24px 40px #000a); }
.receipt.on { visibility: visible; }
.receipt::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, #0000 0 3px, #0000000a 3px 4px); }
.tape { position: absolute; left: 50%; top: -2px; width: 92px; height: 22px; margin-left: -46px; transform: rotate(-3deg);
  background: #d9cfb3d9; -webkit-mask: url(grain.png) 0 0 / 120px; mask: url(grain.png) 0 0 / 120px; -webkit-mask-mode: luminance; mask-mode: luminance; }
.r-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed #1d1c1a66; }
.r-head b { font: 600 13px/1 "Plex Cond", sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.r-head span { font-size: 11.5px; color: #5d5b56; }
.r-row:not(.on) { display: none; }
.r-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 5px 0; }
.r-row span:nth-child(2) { color: #5d5b56; }
.r-row b { font-weight: 600; min-width: 5.5em; text-align: right; }
.r-aside b, .r-aside span:first-child { color: var(--red); }
.r-row.on { animation: pr .16s steps(3) 1; }
@keyframes pr { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* ---------- get ---------- */
.get { position: relative; z-index: 8; background: var(--ink); border-top: 1px solid #ffffff14; }
.get-in { max-width: 1240px; margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.h-get { grid-column: 1 / span 6; font: 300 var(--s-xxl)/1.02 "Plex Serif", serif; letter-spacing: -.035em; text-wrap: balance; color: #f6f3ec; }
.acct { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; padding: 22px; border-radius: 22px; background: #16161a; border: 1px solid #ffffff1c;
  font-variant-numeric: tabular-nums lining-nums; }
.acct-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin-bottom: 18px; }
.acct-top span:first-child { font: 600 13px/1 "Plex Cond", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #f0ede6; }
.acct-pot { padding: 16px 0; border-top: 1px solid #ffffff14; }
.acct-pot p { font-size: 13.5px; color: #d6d3cb; }
.acct-pot b { display: block; margin: 4px 0 6px; font: 300 40px/1 "Plex Serif", serif; letter-spacing: -.02em; color: #f6f3ec; }
.acct-held b { color: var(--redl); }
.acct-pot span, .acct-pot small { display: block; font-size: 12.5px; color: var(--dim); }
.lock::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--redl); vertical-align: 1px; }
.bar { display: block; height: 4px; margin: 12px 0 8px; background: #ffffff1a; border-radius: 2px; overflow: hidden; }
.bar-in { display: block; width: 62%; height: 100%; background: var(--red); }
.acct-feed { list-style: none; border-top: 1px solid #ffffff14; padding-top: 8px; }
.acct-feed li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 7px 0; font-size: 13.5px; color: #d6d3cb; }
.acct-feed .h { color: var(--redl); }
.acct-feed b { font-weight: 500; color: #f6f3ec; min-width: 5em; text-align: right; }
.facts { grid-column: 1 / span 6; margin-top: 56px; display: grid; gap: 18px; max-width: 34rem; }
.facts p { font-size: var(--s-m); line-height: 1.55; color: #d6d3cb; text-wrap: pretty; }
.facts em { font: italic 300 var(--s-m)/1 "Plex Serif", serif; color: #f6f3ec; }
.get-row { grid-column: 1 / span 6; margin-top: 44px; display: flex; gap: 28px; align-items: center; }
.note { font-size: 14px; line-height: 1.6; color: #c9c6be; max-width: 40ch; }
.faq { max-width: 1240px; margin: 0 auto; padding: 24px var(--pad) 96px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.h-faq { grid-column: 1 / span 4; font: 300 var(--s-l)/1.2 "Plex Serif", serif; color: #f6f3ec; }
.faq details { grid-column: 5 / span 8; border-top: 1px solid #ffffff1c; }
.faq details:last-child { border-bottom: 1px solid #ffffff1c; }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; font-size: var(--s-m); color: #f0ede6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 "Plex Serif", serif; color: var(--dim); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #f7f4ee; }
.faq details p { padding: 0 0 20px; max-width: 56ch; color: #c9c6be; }
.foot { display: flex; justify-content: space-between; padding: 22px var(--pad) 26px; border-top: 1px solid #ffffff14; font-size: 13px; color: var(--dim); }

/* ---------- phone: redrawn, not squeezed ---------- */
@media (max-width: 760px) {
  :root { --s-xl: 34px; --s-xxl: 44px; --pad: 20px; }
  .nav { height: 64px; padding: 10px 14px 10px 20px; gap: 8px; }
  .logo-word { font-size: 15px; letter-spacing: .16em; }
  .menu-btn { display: inline-flex; order: 4; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #ffffff40; background: #0c0c0d80;
    color: var(--bone); font: 500 var(--s-s)/1 "Plex Sans", sans-serif; cursor: pointer; }
  .sound { padding: 0 12px; }
  .links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: #0c0c0df4;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
  .links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
  .links a { font: 300 26px/1.2 "Plex Serif", serif; padding: 10px 0; border-bottom: 1px solid #ffffff14; }
  .links a.btn { margin-top: 18px; font: 500 var(--s-s)/1 "Plex Sans", sans-serif; border: 0; }
  .h2 { font-size: 30px; }
  .ch { left: 20px; right: 20px; bottom: 24px; width: auto; }
  .ch-hero { display: block; }
  .ch-hero .col-a { width: auto; }
  .split { display: flex; flex-wrap: wrap; width: auto; gap: 0 18px; margin-top: 16px; padding: 0; }
  .split div { display: block; padding: 8px 0 0; border-top: 1px solid #ffffff2a; }
  .split dd { margin-top: 2px; }
  .split-note { width: 100%; }
  .split dt { font-size: 12px; } .split dd { font-size: 14px; } .s-yours dd { font-size: 22px; }
  .split-note { font-size: 11px; margin-top: 4px; }
  .lede { font-size: 16px; }
  .ch-split .body { display: none; }
  .scrim { height: 52vh; }
  .receipt { right: 14px; top: 82px; bottom: auto; width: 214px; padding: 18px 14px 20px; font-size: 12.5px; }
  .r-row { gap: 8px; }
  .tag b { font-size: 34px; }
  .ink { font-size: 22px; }
  .ink-held { right: auto; left: 12vw; top: 46vh; }
  .ink-serial { right: 6vw; top: 18vh; font-size: 44px; }
  .mark { bottom: 16vh; }
  .ch-out { top: 84px; }
  .mark-w { font-size: 19vw; }
  .get-in, .faq { display: block; }
  .acct { margin-top: 40px; }
  .facts { margin-top: 40px; }
  .get-row { flex-direction: column; align-items: flex-start; margin-top: 36px; }
  .h-faq { margin-bottom: 12px; }
  .foot { flex-direction: column; gap: 6px; }
}
@media (max-width: 380px) { .sound-label { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .r-row.on { animation: none; }
  .sound[aria-pressed="true"] .bars i { animation: none; height: 8px; }
  .ink[data-st] { transform: var(--pos); } .ink .plate-c { opacity: 0; }
}
body.menu-open .sound { visibility: hidden; }

/* iteration 3: Oryzo-style hero columns, centred chapter headlines on a side scrim */
@media (min-width: 761px) {
  .ch-hero { left: var(--pad); right: var(--pad); top: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: auto; }
  .ch-hero .col-a { width: auto; align-self: center; margin-top: -6vh; }
  .ch-hero .col-b { justify-self: end; width: 300px; align-self: end; padding-bottom: calc(var(--pad) + 6px); }
  .ch-hero .lede { font-size: 16.5px; margin-top: 0; }
  .ch-hero .split { width: 100%; margin-top: 24px; }
  .h1 { font-size: 64px; letter-spacing: -.035em; line-height: 1; }
  .ch:not(.ch-hero):not(.ch-out) { top: 50%; bottom: auto; margin-top: -90px; width: min(26rem, 32vw); }
  .h2 { font-size: 48px; letter-spacing: -.032em; line-height: 1.02; }
  .body { font-size: 16.5px; color: #e2dfd8; }
  .scrim { inset: 0 auto 0 0; width: 52vw; height: auto; background: linear-gradient(90deg, #0c0c0dc8, #0c0c0d70 45%, #0c0c0d00); }
}
.split dd, .s-yours dd { font: 500 16px/1 "Plex Sans", sans-serif; letter-spacing: 0; }
.s-yours dd { font-weight: 650; }
.btn { white-space: nowrap; }
@media (min-width: 761px) {
  .ch-hero .hero-row { flex-wrap: wrap; gap: 14px 18px; }
  .ch:not(.ch-hero):not(.ch-out) { width: min(31rem, 36vw); }
}
@media (min-width: 761px) { .ch-hero .col-a { align-self: start; margin-top: 15vh; } }

/* iteration 4: drafting dimensions on the hero, quieter serial, readable body */
.dims line, .dims path { stroke: #ece8df; stroke-width: 1; fill: none; opacity: .72; }
.dims text { fill: #ece8df; font: 500 12px "Plex Sans", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dims line:last-of-type { stroke: var(--redl); opacity: .9; }
.dims text:last-of-type { fill: var(--redl); }
.ink-serial { display: none; }
@media (min-width: 761px) {
  .body { font-size: 17px; line-height: 1.6; color: #eeebe4; }
  .scrim { background: linear-gradient(90deg, #0c0c0de6, #0c0c0d99 40%, #0c0c0d00 75%); }
  .ch-hero .col-b { width: 340px; }
}

/* iteration 4: odometer digits for the live split (tabular figures, trapezoid roll: quick start, steady travel, hard stop) */
.odo { display: inline-flex; font-variant-numeric: tabular-nums lining-nums; }
.od { display: inline-block; height: 1.15em; line-height: 1.15em; overflow: hidden; }
.ods { display: block; white-space: pre; transition: transform .38s cubic-bezier(.7, 0, .2, 1); will-change: transform; }
.os { display: inline-block; line-height: 1.15em; }
@media (prefers-reduced-motion: reduce) { .ods { transition: none; } }

/* ledger rule: a red hairline draws across before the headline lifts in */
.h1, .h2 { position: relative; }
.ch:not(.ch-hero) .h2::before { content: ""; position: absolute; left: 0; top: -18px; width: 72px; height: 1.5px; background: var(--redl);
  transform: scaleX(var(--rule, 1)); transform-origin: left; }

.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#film { background: transparent; }

/* ---------- closing tool: one accent means tap this ---------- */
.btn-tap { background: var(--red) !important; color: #f7f4ee !important; }
.btn-tap:hover { background: #e2372a !important; }
.try { position: relative; z-index: 8; background: #111113; border-top: 1px solid #ffffff14; }
.try-in { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad); display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.h-try { font: 300 56px/1.02 "Plex Serif", serif; letter-spacing: -.034em; color: #f6f3ec; text-wrap: balance; }
.try-lede { margin-top: 16px; font-size: 17px; color: #d6d3cb; max-width: 34ch; text-wrap: pretty; }
.tform { margin-top: 36px; display: grid; gap: 10px; max-width: 26rem; }
.tf-row { display: flex; justify-content: space-between; align-items: baseline; }
.tf-row label, .tf-label, .tf-kind legend { font-size: 14px; color: #d6d3cb; }
.tf-row output { font: 300 44px/1 "Plex Serif", serif; color: #f6f3ec; font-variant-numeric: lining-nums tabular-nums; }
.tform input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.tform input[type=range]::-webkit-slider-runnable-track { height: 2px; background: #ffffff40; }
.tform input[type=range]::-moz-range-track { height: 2px; background: #ffffff40; }
.tform input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -13px; border-radius: 50%; background: var(--red); border: 3px solid #f7f4ee; }
.tform input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 3px solid #f7f4ee; }
.tf-hint { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin-top: -6px; }
.tf-label { margin-top: 14px; }
.tf-amt { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #ffffff40; }
.tf-amt span { font: 300 28px/1 "Plex Serif", serif; color: var(--dim); }
.tf-amt input { flex: 1; min-width: 0; min-height: 52px; background: transparent; border: 0; color: #f6f3ec; font: 300 32px/1 "Plex Serif", serif; font-variant-numeric: lining-nums tabular-nums; }
.tf-amt input:focus { outline: none; } .tf-amt:focus-within { border-color: var(--red); }
.tf-kind { border: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tf-kind legend { margin-bottom: 8px; }
.tf-kind label { position: relative; }
.tf-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tf-kind span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #ffffff38; border-radius: 999px; font-size: 15px; color: #e2dfd8; cursor: pointer; }
.tf-kind input:checked + span { border-color: #f6f3ec; color: #f6f3ec; background: #ffffff12; }
.tf-kind input:focus-visible + span { outline: 2px solid var(--redl); outline-offset: 2px; }
.tform .btn-tap { margin-top: 22px; justify-self: start; min-width: 160px; }
.try-card { display: grid; gap: 22px; justify-items: center; }
.tcard { --cut: 30%; position: relative; width: min(100%, 560px); aspect-ratio: 85.6 / 53.98; border-radius: 4.2% / 6.6%; overflow: hidden; color: #1f2022;
  background: linear-gradient(118deg, #8d9196 0%, #c9ccd0 22%, #e9eaec 38%, #b9bdc2 55%, #9a9ea3 72%, #c7cacd 100%);
  box-shadow: 0 1px 0 #ffffff80 inset, 0 -1px 0 #0000004d inset, 0 40px 80px #0000009e, 0 8px 18px #00000066; }
.tcard::before { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, #00000000 0 1px, #0000000d 1px 2px), repeating-linear-gradient(0deg, #ffffff00 0 3px, #ffffff14 3px 4px); }
.tc-grain { position: absolute; inset: 0; background: url(grain.png) 0 0 / 160px; opacity: .14; mix-blend-mode: overlay; }
.tc-top { position: absolute; left: 6%; right: 6%; top: 9%; display: flex; justify-content: space-between; align-items: center; }
.tc-word { font: 600 clamp(12px, 2.6vw, 19px)/1 "Plex Cond", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #232427; text-shadow: 0 1px 0 #ffffff70; }
.tc-mark { display: flex; gap: 6%; width: 9%; height: 1.4em; } .tc-mark i { background: #2a2b2e; flex: 3; } .tc-mark i + i { flex: 1; }
.tc-line { position: absolute; left: 0; right: 0; top: var(--cut); height: 2px; background: #2a2b2e; box-shadow: 0 1px 0 #ffffff99; transition: top .52s cubic-bezier(.7, 0, .2, 1); }
.tc-held { position: absolute; right: 6%; top: calc(var(--cut) - 1px); transform: translateY(-100%); padding-bottom: 6px; text-align: right; transition: top .52s cubic-bezier(.7, 0, .2, 1); }
.tc-yours { position: absolute; right: 6%; top: calc(var(--cut) + 8px); text-align: right; transition: top .52s cubic-bezier(.7, 0, .2, 1); }
.tc-held small, .tc-yours small { display: block; font: 500 clamp(10px, 1.7vw, 12.5px)/1.2 "Plex Sans", sans-serif; letter-spacing: .04em; color: #3a3b3e; }
.tc-held b, .tc-yours b { font: 600 clamp(15px, 3.3vw, 24px)/1.1 "Plex Cond", sans-serif; letter-spacing: .04em; font-variant-numeric: tabular-nums lining-nums; }
.tc-held b { color: #9c1c12; }
.tc-chip { position: absolute; left: 7%; top: 58%; width: 13%; aspect-ratio: 1.3; border-radius: 12%; background: linear-gradient(135deg, #b48c4c, #e3c58a 45%, #a7803f); box-shadow: 0 0 0 1px #0000002e inset; }
.tc-name { position: absolute; left: 7%; bottom: 9%; font: 600 clamp(10px, 1.9vw, 14px)/1 "Plex Cond", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #2a2b2e; }
.tcard.cut .tc-line { animation: burn .9s cubic-bezier(.7, 0, .2, 1) 1; }
@keyframes burn { 0% { background: #ff5a3c; box-shadow: 0 0 14px 2px #ff3b1f; clip-path: inset(0 100% 0 0); } 60% { background: #ff5a3c; box-shadow: 0 0 10px 1px #ff3b1f; clip-path: inset(0 0 0 0); } 100% { background: #2a2b2e; box-shadow: 0 1px 0 #ffffff99; } }
.tresult { text-align: center; max-width: 34rem; }
.tresult p { font-size: 18px; color: #e2dfd8; } .tresult b { font-weight: 600; color: #f6f3ec; font-variant-numeric: tabular-nums; }
.tdemo { margin-top: 6px; font-size: 13px !important; color: var(--dim) !important; }
@media (max-width: 1100px) { .try-in { grid-template-columns: 1fr; } .try-card { order: -1; } .tform { max-width: none; } }
@media (max-width: 760px) { .h-try { font-size: 38px; } .try-in { padding: 72px 20px; gap: 36px; } }
@media (prefers-reduced-motion: reduce) { .tc-line, .tc-held, .tc-yours { transition: none; } .tcard.cut .tc-line { animation: none; } }

/* ---------- iPad portrait: its own layout (portrait film, mid type scale, stacked hero) ---------- */
@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
  :root { --pad: 40px; }
  .ch-hero { display: block !important; top: auto !important; bottom: calc(var(--pad) + env(safe-area-inset-bottom)) !important; left: var(--pad); right: var(--pad); }
  .ch-hero .col-a { margin: 0 !important; width: auto !important; }
  .ch-hero .col-b { width: min(34rem, 100%) !important; padding: 0 !important; margin-top: 18px; }
  .h1 { font-size: 54px !important; }
  .ch:not(.ch-hero):not(.ch-out) { top: auto !important; bottom: calc(var(--pad) + env(safe-area-inset-bottom)) !important; margin-top: 0 !important; width: min(34rem, 80vw) !important; }
  .h2 { font-size: 42px !important; }
  .scrim { inset: auto 0 0 0 !important; width: auto !important; height: 50svh !important; background: linear-gradient(#0c0c0d00, #0c0c0db0 60%, #0c0c0de0) !important; }
  .receipt { top: 96px; bottom: auto; }
  .mark { bottom: 22svh; }
}
.nav { padding-top: max(14px, env(safe-area-inset-top)); padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }

/* mobile pass: tablets use the Menu button (the inline nav wrapped at 820 px); decorative layers never stick out */
.stage, .mark, .tags { overflow: hidden; }
.links a { white-space: nowrap; min-width: 44px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .menu-btn { display: inline-flex; order: 4; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #ffffff40; background: #0c0c0d80;
    color: var(--bone); font: 500 var(--s-s)/1 "Plex Sans", sans-serif; cursor: pointer; }
  .links { position: fixed; inset: 76px 0 auto auto; width: min(420px, 100vw); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 28px; background: #0c0c0df4;
    border-bottom-left-radius: 18px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
  .links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
  .links a { font: 300 28px/1.2 "Plex Serif", serif; padding: 12px 0; border-bottom: 1px solid #ffffff14; }
  .links a.btn { margin-top: 18px; font: 500 var(--s-s)/1 "Plex Sans", sans-serif; border: 0; }
}

/* readable progress: the quarter counter (tabular figures; the card's held slice fills) */
.quarter { position: fixed; z-index: 7; right: max(var(--pad), env(safe-area-inset-right)); top: 96px; display: flex; gap: 14px; align-items: center; pointer-events: none;
  padding: 10px 14px; border-radius: 14px; background: #0c0c0d99; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid #ffffff1a; }
.q-card { width: 64px; height: 40px; }
.q-body { fill: #a9adb21f; stroke: #d6d3cb; stroke-width: 1.2; }
.q-fill { fill: var(--red); opacity: .85; }
.q-line { stroke: var(--redl); stroke-width: 1.2; }
.q-text p { margin: 0; line-height: 1.25; font-variant-numeric: tabular-nums lining-nums; }
.q-day { font-size: 13px; color: #d6d3cb; } .q-day b { font: 300 22px/1 "Plex Serif", serif; color: #f6f3ec; } .q-day span { color: var(--dim); }
.q-held { font-size: 13px; color: #d6d3cb; } .q-held b { font-weight: 600; color: var(--redl); }
.q-note { font-size: 12px; color: var(--dim); }
@media (max-width: 760px) { .quarter { right: auto; left: 14px; top: 72px; padding: 8px 10px; gap: 10px; } .q-card { width: 46px; height: 29px; } .q-day b { font-size: 18px; } }
body.menu-open .quarter { visibility: hidden; }

@media (max-width: 760px) { .ch-out { top: 150px !important; } }
.try-in > *, .tform, .tf-kind { min-width: 0; }
.tf-kind { min-inline-size: 0; }
/* phones: the closing tool fits the screen (fieldset min-content and grid auto tracks had held it at 440 px) */
.tform { grid-template-columns: minmax(0, 1fr); }
.tf-kind { min-inline-size: 0; }
@media (max-width: 1100px) { .try-in { grid-template-columns: minmax(0, 1fr); } }
/* iteration 5: the quarter counter is set as a ledger line along the foot of the film, not a floating widget */
.quarter { top: auto; bottom: max(26px, env(safe-area-inset-bottom)); left: max(var(--pad), env(safe-area-inset-left)); right: max(var(--pad), env(safe-area-inset-right));
  padding: 0 0 12px; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 16px; align-items: flex-end; }
.quarter .q-text { display: flex; flex: 1; align-items: baseline; gap: 28px; }
.quarter .q-held { margin-left: auto; }
.q-card { width: 46px; height: 29px; }
.q-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #ece8df40; }
.q-run { position: absolute; inset: -1px 0 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.q-day b { font-size: 26px; }
@media (max-width: 760px) {
  .quarter { top: 70px; bottom: auto; left: 20px; right: 20px; padding: 0 0 8px; gap: 10px; align-items: center; }
  .quarter .q-text { gap: 12px; } .q-note { display: none; } .q-card { width: 36px; height: 23px; } .q-day b { font-size: 18px; }
}
.receipt { bottom: 92px; }
@media (max-width: 760px) { .receipt { top: 112px; bottom: auto; } .quarter .q-held { white-space: nowrap; } }
@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
  .quarter { top: 84px; bottom: auto; padding-bottom: 10px; } .receipt { top: 140px; bottom: auto; }
}
.quarter::before { content: ""; position: absolute; z-index: -1; left: -60px; right: -60px; top: -70px; bottom: -40px; pointer-events: none;
  background: linear-gradient(#0c0c0d00, #0c0c0d99 55%, #0c0c0dcc); }
.q-text p, .q-text b { text-shadow: 0 1px 8px #0c0c0d; }
.quarter { opacity: 0; }   /* the script fades it in after the hero; never shown before the page is ready */
@media (max-width: 760px) { .dims line:last-of-type, .dims text:last-of-type { display: none; } }   /* the rate leader collides with the split row on phones */

/* pass 2: the laser chapter. The headline is the moment: large, written by the beam, the body arrives after the cut */
.ch-line .bw { display: inline-block; white-space: nowrap; }
.ch-line .bc { display: inline-block; opacity: 0; will-change: opacity; }
.ch-line .body { opacity: 0; text-shadow: 0 1px 12px #0c0c0dcc; }
@media (min-width: 761px) {
  .ch.ch-line { top: auto !important; bottom: calc(var(--pad) + 18px) !important; margin-top: 0 !important; width: min(52rem, 62vw) !important; }
  .ch-line .h2 { font-size: clamp(56px, 5.6vw, 92px); line-height: .98; letter-spacing: -.035em; }
  .ch-line .body { max-width: 30rem; }
}
@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) { .ch-line .h2 { font-size: 60px !important; } }
@media (max-width: 760px) {
  .ch-line .h2 { font-size: 40px; line-height: 1; }
  .ch-hero .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ch-line .bc, .ch-line .body { opacity: 1; } }

/* ---------- smooth pass (touch screens): no paint-heavy compositing over the moving film ---------- */
@media (pointer: coarse) {
  .stage { bottom: auto; height: 100lvh; }   /* the URL bar showing or hiding no longer resizes the film canvas */
  .sound { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(12 12 13 / .92); }
  .grain { mix-blend-mode: normal; opacity: .035; }
  .plate-c, .mark-c, .mark-r { mix-blend-mode: normal; }
  .receipt { filter: none; }
  .receipt::before { mix-blend-mode: normal; opacity: .3; }
  .ln { will-change: transform, opacity; }
}

/* pass 2, iteration 2 (desktop): the card owns the frame. Headline + one sentence top left; the split set as a serif ledger in the
   clear corner under the card; the hero action is a quiet text link (the accent stays for the closing tool) */
@media (min-width: 1101px) {
  .ch-hero .col-a { align-self: start; margin-top: 13vh; max-width: 36rem; }
  .ch-hero .lede { margin-top: 18px; max-width: 27rem; font-size: 16.5px; color: #e4e1da; text-shadow: 0 1px 14px #0c0c0d; }
  .ch-hero .col-b { width: auto; align-self: end; justify-self: end; padding-bottom: 18px; }
  .ch-hero .split { display: grid; grid-template-columns: auto auto auto; column-gap: 30px; width: auto; margin: 0; padding: 0; }
  .ch-hero .split div { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding: 12px 0 0; border-top: 1px solid #ece8df3a; }
  .ch-hero .split dt { font-size: 12.5px; letter-spacing: .01em; color: #bdbab3; }
  .ch-hero .split dd, .ch-hero .s-yours dd { font: 300 34px/1 "Plex Serif", Georgia, serif; letter-spacing: -.03em; color: #f6f3ec; }
  .ch-hero .s-aside { border-top-color: var(--redl) !important; }
  .ch-hero .s-aside dd { font-size: 58px; color: var(--redl); }
  .ch-hero .hint { display: none; }
  .ch-hero .s-aside dt { color: var(--redl); }
  .ch-hero .split > div { justify-content: flex-end; }
  .ch-hero .split-note { grid-column: 1 / -1; margin-top: 10px; font-size: 12px; }
  .ch-hero .hero-row { margin-top: 16px; gap: 28px; justify-content: flex-start; }
  .ch-hero .hero-cta { background: none !important; color: #f6f3ec !important; min-height: 44px; padding: 0; border-radius: 0; font: 500 15.5px/1 "Plex Sans", sans-serif;
    box-shadow: inset 0 -1.5px 0 var(--redl); }
  .ch-hero .hero-cta::after { content: "\2192"; margin-left: 10px; color: var(--redl); transition: transform .3s var(--ease); }
  .ch-hero .hero-cta:hover::after { transform: translateX(4px); }
  .nav .links .btn-tap { background: none !important; color: #f6f3ec !important; box-shadow: inset 0 0 0 1px #ece8df66; }
  .nav .links .btn-tap:hover { box-shadow: inset 0 0 0 1px var(--redl); }
  .scrim { background: linear-gradient(90deg, #0c0c0dc0, #0c0c0d66 34%, #0c0c0d00 62%); }
}

/* pass 2, iteration 3: the headline engraved into the steel by the beam (desktop). The element is the card's held-back band in
   card pixels (856 x 162); the script maps it onto the rendered card with a perspective matrix every frame */
.engrave { position: fixed; left: 0; top: 0; z-index: 3; width: 856px; height: 162px; transform-origin: 0 0; pointer-events: none;
  visibility: hidden; opacity: 0; backface-visibility: hidden; }
.engrave.on { visibility: visible; }
.eg-t { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; white-space: nowrap;
  font: 600 27px/1 "Plex Cond", "Plex Sans", sans-serif; letter-spacing: .16em; }
.eg-c { --hot: 0; display: inline-block; opacity: 0;
  color: color-mix(in srgb, #ffd2b0 calc(var(--hot) * 100%), #151517);
  text-shadow: 0 1px 0 rgb(255 255 255 / calc(.38 - var(--hot) * .38)), 0 -1px 0 rgb(0 0 0 / .55),
               0 0 calc(var(--hot) * 14px) rgb(255 84 40 / var(--hot)), 0 0 calc(var(--hot) * 4px) rgb(255 140 90 / var(--hot)); }
/* desktop: no red rule on the laser chapter (the cut line is the rule); the engraved words span the band */
@media (min-width: 761px) and (min-aspect-ratio: 3/4) { .ch-line .h2::before { display: none; } }
.eg-t { letter-spacing: .42em; font-size: 30px; }
@media (prefers-reduced-motion: reduce) { .engrave { display: none; } }
/* iteration 3 (desktop): the receipt lies on the desk beside the card, larger, in the light, not pinned in a corner */
@media (min-width: 1101px) {
  .receipt { right: 21vw; bottom: 11vh; width: 330px; padding: 26px 24px 30px; font-size: 16px; transform: perspective(1100px) rotateX(34deg) rotateZ(-5deg); transform-origin: 50% 100%;
    filter: drop-shadow(0 2px 2px #0007) drop-shadow(0 26px 34px #000b); }
  .receipt .tape { display: none; }
  .r-head b { font-size: 14px; }
}
