/* Posthaus, Proof Room: tokens copied as-is from noah-agent/web/tokens.css. Everything below reads them. */
@font-face { font-family: "Posthaus Display"; src: url(fonts/noto-serif-display-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Posthaus Display"; src: url(fonts/noto-serif-display-light-latin.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #F8F5F0; --surface: #FFFFFF; --surface-2: #F1EDE6; --stage: #ECEAE7;
  --ink: #1C1717; --ink-2: #6F6566; --rule: #E6E0D8; --rule-strong: #8A8080;
  --seal: #5B1A1F; --action: #5B1A1F; --on-action: #F8F5F0;
  --highlight: #F2E6C9; --danger: #B42318;
  --scrim: rgba(28, 23, 23, .32); --dock: rgba(248, 245, 240, .85);
  --shadow-1: 0 1px 2px rgba(28, 23, 23, .06), 0 6px 20px rgba(28, 23, 23, .06);
  --font-display: "Posthaus Display", Didot, "Bodoni 72", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", system-ui, sans-serif;
  --text-xs: 13px; --text-sm: 15px; --text-md: 17px; --text-lg: 20px; --text-xl: 28px; --text-2xl: 34px;
  --lh-tight: 1.15; --lh-body: 1.45; --track-title: -0.01em;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --gutter: 16px; --r-slide: 2px; --r-s: 8px; --r-m: 12px; --r-l: 20px;
  --tap: 44px; --control-h: 50px;
  --dur-instant: 100ms; --dur-quick: 200ms; --dur-base: 280ms;
  --ease-out: cubic-bezier(.2, 0, 0, 1); --ease-in: cubic-bezier(.4, 0, 1, 1);
  /* The photo's own ink: the hero sits on a pale sky in both themes. */
  --sky-ink: #1C1717; --sky-paper: #F8F5F0;
  --device: #151312; --device-edge: #3B3734;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110; --surface: #1C1A18; --surface-2: #26231F; --stage: #161616;
    --ink: #EDE8DF; --ink-2: #A39C91; --rule: #2E2B27; --rule-strong: #77706A;
    --seal: #C98B90; --action: #EDE8DF; --on-action: #121110;
    --highlight: #4A3E22; --danger: #F08A7E;
    --scrim: rgba(0, 0, 0, .5); --dock: rgba(18, 17, 16, .85);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    --device-edge: #4A4541;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --paper: #121110; --surface: #1C1A18; --surface-2: #26231F; --stage: #161616;
    --ink: #EDE8DF; --ink-2: #A39C91; --rule: #2E2B27; --rule-strong: #77706A;
    --seal: #C98B90; --action: #EDE8DF; --on-action: #121110;
    --highlight: #4A3E22; --danger: #F08A7E;
    --scrim: rgba(0, 0, 0, .5); --dock: rgba(18, 17, 16, .85);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    --device-edge: #4A4541;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--paper); scrollbar-color: var(--rule-strong) var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-md)/var(--lh-body) var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--highlight); color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; }
#probe { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 10px 14px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* header */
#top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 clamp(16px, 3.4vw, 48px); padding-top: env(safe-area-inset-top); transition: color var(--dur-quick) var(--ease-out); }
#top::before { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: var(--top-bg, 0); }
#top.over-photo { color: var(--sky-ink); }
#top > * { position: relative; }
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1; letter-spacing: .13em; text-decoration: none; white-space: nowrap; }
.top-link { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--text-sm); text-decoration: none; }
@media (hover: hover) { .top-link:hover { text-decoration: underline; text-underline-offset: 3px; } .hero-how:hover { text-decoration-thickness: 2px; } }

/* the pinned story */
#track { position: relative; }
#stage { position: relative; height: 100vh; height: 100lvh; overflow: clip; background: var(--paper); }
.js #stage { position: sticky; top: 0; }
#stage > * { position: absolute; }
#wall, #keepers { inset: 0; }
#wall { z-index: 1; }
#keepers { z-index: 2; }
.cell { position: absolute; left: 0; top: 0; background-image: url(img/wall.webp); background-repeat: no-repeat; border-radius: var(--r-slide); }
.keeper { position: absolute; left: 0; top: 0; transform-origin: 0 0; border-radius: var(--r-slide); object-fit: cover; }

#photo { left: 0; top: 0; z-index: 4; transform-origin: 0 0; overflow: hidden; }
#photo.top { z-index: 7; }
#photo img { position: absolute; max-width: none; transition: opacity var(--dur-base) var(--ease-out); }
.js:not(.ready) #photo img { opacity: 0; }
#cover { z-index: 4; left: 0; top: 0; transform-origin: 0 0; }
#cover img { width: 100%; height: 100%; }
#guide { z-index: 5; left: 0; top: 0; border: 1px solid rgba(28, 23, 23, .75); box-shadow: 0 0 0 200vmax color-mix(in srgb, var(--paper) 62%, transparent); }
#guide i { position: absolute; width: 20px; height: 20px; border: 2px solid var(--sky-ink); }
#guide i:nth-child(1) { left: -2px; top: -2px; border-width: 2px 0 0 2px; }
#guide i:nth-child(2) { right: -2px; top: -2px; border-width: 2px 2px 0 0; }
#guide i:nth-child(3) { left: -2px; bottom: -2px; border-width: 0 0 2px 2px; }
#guide i:nth-child(4) { right: -2px; bottom: -2px; border-width: 0 2px 2px 0; }

/* the proof */
#proof { z-index: 3; left: 0; top: 0; display: grid; gap: 24px 28px; background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-s); padding: 28px; grid-template-columns: var(--slot-w) minmax(0, 1fr); grid-template-rows: var(--slot-h) auto; transform-origin: 50% 50%; }
.proof-slot { background: var(--stage); border-radius: var(--r-slide); width: var(--slot-w); height: var(--slot-h); }
.proof-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.proof-title { font: 400 var(--text-xl)/var(--lh-tight) var(--font-display); letter-spacing: var(--track-title); }
.proof-sub { margin-top: 2px; font-size: var(--text-sm); color: var(--ink-2); }
.proof-cap { margin-top: 14px; font-size: 15px; line-height: 1.42; }
.proof-cap p + p { margin-top: 9px; }
.proof-cap span.w { opacity: 0; transition: opacity var(--dur-instant) linear; }
.proof-cap span.w.on { opacity: 1; }
.mark { position: relative; display: inline-block; }
.mark .q, .mark .a { transition: opacity var(--dur-quick) var(--ease-out); }
.mark .q { background: var(--highlight); padding: 1px 4px; margin: -1px -4px; border-radius: 2px; }
.mark .a { position: absolute; left: 0; top: 0; opacity: 0; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; white-space: nowrap; }
.mark.done .q { opacity: 0; }
.mark.done .a { opacity: 1; }
.handle { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.proof-sign { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; color: var(--ink-2); font-size: var(--text-sm); }
.seal { display: block; flex: none; color: var(--seal); }
.seal text, .pfont { font-family: var(--font-display); font-weight: 400; }
#bigseal { width: 92px; height: 92px; opacity: 0; }
#bigseal.pressed { animation: press var(--dur-base) var(--ease-out) forwards; }
#checked-line { opacity: 0; transition: opacity var(--dur-quick) var(--ease-out); }
#checked-line.on { opacity: 1; }
@keyframes press { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: none; } }
#proof.landed { animation: landed var(--dur-base) var(--ease-out); }
@keyframes landed { 30% { scale: .994; } }
.proof-strip { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 20), minmax(0, 1fr)); gap: 3px; }
.proof-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-slide); outline: 1px solid var(--rule); outline-offset: -1px; }
.proof-eye { position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* The proof when the sheet is narrow: the frame and the seal side by side, the caption under them. */
#proof.stacked { gap: 10px 12px; padding: 12px; grid-template-rows: var(--slot-h) auto auto; }
.stacked .proof-side { display: contents; }
.stacked .proof-slot { grid-column: 1; grid-row: 1; }
.stacked .proof-title { grid-column: 2; grid-row: 1; font-size: 22px; }
.stacked .proof-sub { grid-column: 2; grid-row: 1; margin-top: 28px; font-size: 13px; line-height: 1.3; }
.stacked .proof-sign { grid-column: 2; grid-row: 1; align-self: end; padding: 0; margin: 0; gap: 8px; font-size: 13px; line-height: 1.25; }
.stacked #bigseal { width: 52px; height: 52px; }
.stacked .proof-cap { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 13px; line-height: 1.38; }
.stacked .proof-cap p + p { margin-top: 6px; }
.stacked .proof-strip { grid-row: 3; gap: 2px; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.stacked .proof-strip img:nth-of-type(n+11) { display: none; }

/* the phone */
#phone { z-index: 6; left: 0; top: 0; transform-origin: 0 0; width: 412px; height: 866px; }
.device { width: 412px; height: 866px; padding: 11px; border-radius: 62px; background: var(--device); box-shadow: inset 0 0 0 1.5px var(--device-edge), 0 2px 6px rgba(28, 23, 23, .12), 0 30px 70px rgba(28, 23, 23, .2); }
.screen { position: relative; width: 390px; height: 844px; border-radius: 51px; overflow: hidden; background: var(--paper); contain: strict; isolation: isolate; font-size: var(--text-md); }
.status { position: absolute; z-index: 9; inset: 0 0 auto 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 8px 30px 0 40px; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.status.on-dark { color: #F5F2EC; }
.island { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
.clock { position: relative; display: inline-block; min-width: 46px; }
#clock-b { position: absolute; left: 0; top: 0; }
.scr { position: absolute; inset: 0; padding: 58px var(--gutter) 0; background: var(--paper); }
.scr.dark { background: #161514; color: #F5F2EC; }
.wm { font-family: var(--font-display); font-size: 14px; line-height: 1; letter-spacing: .12em; }
.wm-row { display: flex; align-items: baseline; gap: 10px; padding-top: 8px; }
.beta { font-size: var(--text-xs); color: var(--ink-2); }
.t { margin: 18px 0 0; font: 400 var(--text-xl)/var(--lh-tight) var(--font-display); letter-spacing: var(--track-title); }
.meter-line { position: relative; margin-top: 12px; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
#left-b { position: absolute; left: 0; top: 0; }
.rule { height: 2px; margin-top: 8px; background: var(--rule); overflow: hidden; }
.rule > span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; }
#rule-fill { transform: scaleX(.75); }
.rows { margin-top: 18px; border-top: 1px solid var(--rule); }
.rows li { display: grid; gap: 1px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: var(--text-xs); color: var(--ink-2); }
.rows li b { font-weight: 400; font-size: var(--text-md); color: var(--ink); }
.rows li .ink { color: var(--ink); }
.dock { position: absolute; z-index: 3; inset: auto 0 0 0; padding: 12px var(--gutter) 30px; background: var(--dock); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-top: 1px solid var(--rule); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--control-h); padding: 0 var(--s-5); border-radius: var(--r-m); border: 1px solid transparent; background: none; color: var(--ink); font: 600 var(--text-md)/1.2 var(--font-ui); text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform var(--dur-instant) var(--ease-out), opacity var(--dur-instant) var(--ease-out), background-color var(--dur-instant) var(--ease-out), color var(--dur-instant) var(--ease-out); }
.btn:active { transform: scale(.98); opacity: .85; }
.fill { background: var(--action); color: var(--on-action); }
.line { border-color: var(--rule-strong); }
.scr .btn, .sheet .btn { width: 100%; pointer-events: none; }
.btn.pressed { transform: scale(.97); opacity: .8; }
.btn.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) { a.fill:hover, a.on-photo:hover { opacity: .88; } }
.scrim { position: absolute; z-index: 4; inset: 0; background: var(--scrim); opacity: 0; }
.sheet { position: absolute; z-index: 5; inset: auto 0 0 0; height: 560px; padding: 8px var(--gutter) 0; background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--shadow-1); transform: translateY(100%); }
.grabber { width: 36px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: var(--rule-strong); }
.sheet-head { position: relative; display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-sm); color: var(--ink-2); }
.sheet-head b { position: absolute; left: 0; right: 0; text-align: center; font-weight: 600; font-size: var(--text-lg); color: var(--ink); }
#step-b { position: absolute; right: 0; }
.step { position: absolute; left: var(--gutter); right: var(--gutter); top: 66px; display: grid; gap: 16px; }
.hint { font-size: var(--text-sm); line-height: 1.4; color: var(--ink-2); }
.f { display: grid; gap: 6px; }
.f label { font-size: var(--text-sm); line-height: 1.3; }
.in { position: relative; display: flex; align-items: center; min-height: var(--control-h); padding: 0 var(--s-3); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-s); font-size: 16px; white-space: nowrap; overflow: hidden; }
.in em { position: absolute; left: 12px; font-style: normal; color: var(--ink-2); }
.in.has em { opacity: 0; }
.caret { display: inline-block; width: 2px; height: 20px; margin-left: 1px; background: var(--seal); opacity: 0; }
.caret.on { opacity: 1; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; }
.pair .btn { padding: 0 6px; font-weight: 400; font-size: 15px; }
.box { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: var(--text-sm); line-height: 1.35; }
.tick { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--rule-strong); border-radius: 6px; color: transparent; }
.box.on .tick { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lock-day { margin-top: 34px; text-align: center; font-size: 19px; font-weight: 600; }
.lock-time { font-family: var(--font-ui); text-align: center; font-size: 86px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.notif { position: absolute; left: 12px; right: 12px; top: 268px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 14px; border-radius: 24px; background: rgba(245, 242, 236, .14); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); font-size: 15px; line-height: 1.25; }
.notif b { display: block; font-weight: 600; }
.notif span { display: block; }
.mail { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: rgba(245, 242, 236, .16); }
.notif small { align-self: start; font-size: 13px; opacity: .7; }
.rv-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 40px; text-align: center; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rv-head { padding-bottom: 12px; }
.rv-head .t { margin-top: 4px; }
.sub { font-size: var(--text-sm); line-height: 1.4; color: var(--ink-2); }
.lines { position: relative; margin-top: 4px; min-height: 22px; }
.checked { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); line-height: 1.4; color: var(--ink-2); white-space: nowrap; }
.checked.approved { position: absolute; left: 0; right: 0; top: 0; color: var(--ink); }
#smallseal.pressed { animation: press var(--dur-base) var(--ease-out) forwards; }
.stagebox { position: relative; margin: 0 calc(var(--gutter) * -1); height: 487.5px; background: var(--stage); overflow: hidden; }
.carousel { position: absolute; left: 0; top: 0; display: flex; height: 100%; }
.carousel .sl { position: relative; flex: none; width: 390px; height: 100%; }
.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.count { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.rv-cap { position: relative; padding-top: 12px; font-size: 16px; line-height: 1.4; }
#rv-cap-b { position: absolute; left: 0; right: 0; top: 12px; color: var(--ink-2); }
.dock-links { display: flex; justify-content: space-between; padding: 12px 8px 0; font-size: var(--text-sm); color: var(--ink-2); }
.dock-links.center { justify-content: center; }
.dock-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dock-two .btn { position: relative; padding: 0 6px; font-size: 16px; }
.dock-two .btn span + span { position: absolute; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: var(--r-s); background: var(--surface-2); font-size: var(--text-sm); text-align: center; }
.seg span { padding: 11px 0; border-radius: 6px; }
.seg .on { background: var(--ink); color: var(--paper); font-weight: 600; }
.in.ask { min-height: 72px; padding-right: 56px; white-space: normal; }
.in.ask em { right: 56px; }
.send { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--action); color: var(--on-action); transition: transform var(--dur-instant) var(--ease-out); }
.send.pressed { transform: scale(.94); }
.sec { margin-top: 6px; font-weight: 600; }
.list { margin-top: -8px; }
.list li { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-top: 1px solid var(--rule); }
.list .ic { width: 20px; height: 20px; color: var(--ink-2); }
.pf { display: flex; align-items: center; gap: 14px; padding: 10px 0 18px; }
.pf-pic { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
.pf-pic img { width: 100%; height: 100%; object-fit: cover; }
.pf-txt b { display: block; font-weight: 600; }
.pf-txt span { font-size: var(--text-sm); color: var(--ink-2); }
.pf-grid { position: relative; margin: 0 calc(var(--gutter) * -1); height: 700px; }
.pf-grid .gc { position: absolute; left: 0; top: 0; width: 129px; height: 172px; object-fit: cover; }
#flyer { position: absolute; z-index: 7; left: 0; top: 0; width: 390px; height: 487.5px; max-width: none; object-fit: cover; transform-origin: 0 0; }
#touch { position: absolute; z-index: 8; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: rgba(28, 23, 23, .22); box-shadow: 0 0 0 1px rgba(248, 245, 240, .7); opacity: 0; pointer-events: none; }

/* the words */
#copy { z-index: 8; pointer-events: none; }
.beat { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: grid; align-content: center; visibility: hidden; }
.beat h2, .plain h2 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.015em; line-height: 1.06; text-wrap: balance; }
.beat h2 { font-size: clamp(30px, 4.3vw, 64px); }
.beat p { margin-top: clamp(10px, 1.4vw, 20px); max-width: 26em; color: var(--ink-2); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; text-wrap: pretty; }

.tally { font-size: var(--text-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
#rail { z-index: 8; font-size: var(--text-sm); }
.rail-words { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); white-space: nowrap; }
.rail-words span { transition: color var(--dur-quick) var(--ease-out); }
.rail-words .on { color: var(--ink); }
#rail.one .rail-words span:not(.on) { display: none; }
#rail .rule { margin-top: 10px; }
#rail-fill { transform: scaleX(0); }

#hero-copy { z-index: 9; left: 0; right: 0; top: 0; display: grid; justify-items: center; text-align: center; padding: clamp(78px, 11vh, 118px) 24px 0; color: var(--sky-ink); }
#hero-copy h1 { font: 300 clamp(40px, min(6.4vw, 11vh), 96px)/1.04 var(--font-display); letter-spacing: -.018em; text-wrap: balance; }
.hero-sub { margin-top: clamp(12px, 1.6vh, 18px); max-width: 33em; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.4; text-wrap: balance; }
.hero-act { display: grid; justify-items: center; gap: 6px; margin-top: clamp(16px, 2.4vh, 26px); }
.on-photo { background: var(--sky-ink); color: var(--sky-paper); }
.hero-how { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.js:not(.ready) #hero-copy > * { opacity: 0; }
.ready #hero-copy h1 { animation: rise var(--dur-base) var(--ease-out) both; }
.ready .hero-sub { animation: rise var(--dur-base) var(--ease-out) 60ms both; }
.ready .hero-act { animation: rise var(--dur-base) var(--ease-out) 110ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-height: 700px) { .hero-how { display: none; } }

/* after the story: plain paper */
.plain { padding: clamp(64px, 11vw, 150px) 0; border-top: 1px solid var(--rule); }
#your-part { border-top: 0; }
.wrap { width: min(1180px, 100% - clamp(32px, 7vw, 96px)); margin-inline: auto; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
.plain h2 { font-size: clamp(34px, 4vw, 58px); }
.yours { border-top: 1px solid var(--rule); counter-reset: part; }
.yours li { counter-increment: part; display: grid; grid-template-columns: 1.7em minmax(0, 1fr); align-items: baseline; padding: clamp(14px, 1.7vw, 22px) 0; border-bottom: 1px solid var(--rule); font: 300 clamp(30px, 3.6vw, 52px)/1.1 var(--font-display); letter-spacing: -.01em; }
.yours li::before { content: counter(part); color: var(--ink-2); }
.rest { margin-top: clamp(18px, 2.4vw, 30px); max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); text-wrap: pretty; }
.beta-lead { margin-top: var(--s-4); font-size: clamp(17px, 1.5vw, 20px); text-wrap: balance; }
.terms { border-top: 1px solid var(--rule); margin-bottom: var(--s-6); }
.terms li { padding: 14px 0; border-bottom: 1px solid var(--rule); max-width: 40em; text-wrap: pretty; }
.big { padding: 0 var(--s-6); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 60px; padding: var(--s-2) 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 20px); touch-action: manipulation; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-2); transition: transform var(--dur-quick) var(--ease-out); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding-bottom: var(--s-5); max-width: 36em; color: var(--ink-2); text-wrap: pretty; }
.faq details[open] p { animation: rise var(--dur-base) var(--ease-out); }
@media (hover: hover) { .faq summary:hover .ic { color: var(--ink); } }
footer { padding: var(--s-7) 0 calc(var(--s-7) + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); font-size: var(--text-sm); color: var(--ink-2); }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-3) clamp(28px, 5vw, 72px); }
.foot .wordmark { color: var(--ink); grid-row: span 3; }
.foot p { max-width: 36em; }
.foot a { color: var(--ink); text-underline-offset: 3px; }
.credit { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the finished post: slides at a true 4:5, running off the right edge */
#finished { container-type: inline-size; }
.post-grid { --w: min(1180px, 100cqw - clamp(32px, 7vw, 96px)); --g: clamp(28px, 5vw, 72px); --sw: min(440px, 58vh); display: grid; grid-template-columns: calc((var(--w) - var(--g)) * 5 / 12) minmax(0, 1fr); gap: var(--g); margin-left: calc((100cqw - var(--w)) / 2); }
.post-side { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.post-sub { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--text-sm); }
.post-cap { max-width: 26em; font-size: var(--text-sm); line-height: 1.45; }
.post-cap p + p { margin-top: var(--s-3); }
.post-ctl { display: flex; align-items: center; gap: var(--s-2); margin-top: auto; }
.post-count { min-width: 4em; text-align: center; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.iconbtn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 1px solid var(--rule-strong); border-radius: var(--r-m); background: none; color: var(--ink); cursor: pointer; touch-action: manipulation; transition: opacity var(--dur-instant) var(--ease-out), background-color var(--dur-instant) var(--ease-out), transform var(--dur-instant) var(--ease-out); }
.iconbtn:active { transform: scale(.96); }
.iconbtn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .iconbtn:not(:disabled):hover { background: var(--surface-2); } }
.post-strip { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; min-width: 0; }
.post-strip::-webkit-scrollbar { display: none; }
.post-strip:focus-visible { outline: 2px solid var(--seal); outline-offset: 4px; }
.post-strip img { flex: none; width: var(--sw); height: auto; aspect-ratio: 4 / 5; border-radius: var(--r-slide); background: var(--stage); scroll-snap-align: start; }
.post-strip::after { content: ""; flex: none; width: calc(100cqw - (100cqw - var(--w)) / 2 - (var(--w) - var(--g)) * 5 / 12 - var(--g) - var(--sw) - var(--s-3)); }  /* room for the last slide to reach the start */

/* Phones: words on top, picture below, the button in reach of a thumb. */
@media (max-width: 719px), (max-aspect-ratio: 95/100) {
  #top { height: 48px; }
  .wordmark { font-size: 15px; }
  #rail { font-size: var(--text-xs); }
  #rail .rule { margin-top: 6px; }
  .beat { align-content: start; }
  .beat p { margin-top: 8px; max-width: none; }
  #hero-copy { padding-top: 62px; padding-inline: 20px; bottom: 0; grid-template-rows: auto auto 1fr; }
  .hero-sub { font-size: 16px; max-width: 21em; }
  .hero-act { align-self: end; width: 100%; max-width: 420px; padding-bottom: calc(100lvh - 100svh + 14px); margin: 0; }
  .hero-act .btn { width: 100%; }
  .hero-how { display: none; }
  .tally { display: none; }
  .post-grid { --sw: calc(100cqw - 56px); grid-template-columns: minmax(0, 1fr); margin-left: 0; gap: var(--s-5); }
  .post-side { display: contents; }
  .post-head, .post-cap, .post-ctl { margin-inline: calc((100cqw - var(--w)) / 2); }
  .post-head { order: 1; }
  .post-strip { order: 2; padding-left: calc((100cqw - var(--w)) / 2); scroll-padding-left: calc((100cqw - var(--w)) / 2); }
  .post-strip::after { width: calc(100cqw - var(--sw) - 12px - (100cqw - var(--w)) / 2); }
  .post-ctl { order: 3; margin-top: 0; justify-content: center; }
  .post-cap { order: 4; max-width: none; }
  .two, .foot { grid-template-columns: minmax(0, 1fr); }
  .foot .wordmark { grid-row: auto; margin-bottom: var(--s-2); }
  .big { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes press { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
  @keyframes landed { from { opacity: 1; } to { opacity: 1; } }
  #stage > * { transition: none; }
  #stage.held { animation: fade var(--dur-quick) var(--ease-out); }
  @keyframes fade { from { opacity: .4; } to { opacity: 1; } }
}

/* Without JavaScript the story's words read as a plain list over the hero. */
html:not(.js) #wall, html:not(.js) #keepers, html:not(.js) #proof, html:not(.js) #phone, html:not(.js) #guide, html:not(.js) #rail, html:not(.js) #photo { display: none; }
html:not(.js) #stage { height: auto; display: flex; flex-direction: column; }
html:not(.js) #stage > * { position: static; }
html:not(.js) .beat { position: static; visibility: visible; padding: var(--s-6) var(--gutter); }
html:not(.js) #hero-copy { order: -1; padding-top: 100px; color: var(--ink); }
html:not(.js) .hero-how { display: none; }
