/* Hallmark · macrostructure: bespoke (film frames holding the live floor) · tone: cinematic, utilitarian · anchor hue: lime 120
 * theme: custom · axes: mid paper with dark frames / classical-serif / chromatic-other · nav: N9 edge-aligned · footer: Ft5 statement
 * Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 */
/* HeistPad. A pale page holding film frames: night stills at the edge of the glass, the floor drawn over them. */
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/iserif-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Sans"; src: url(/assets/fonts/geist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Sans"; src: url(/assets/fonts/geist-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --page: #e0dee1;
  --ink: #101412;
  --ink-2: #4a4f4c;
  --night: #0c120f;
  --bone: #ede6d6;
  --bone-2: rgba(237, 230, 214, .72);
  --bone-3: rgba(237, 230, 214, .22);
  --lime: #c8f135;
  --amber: #f2b45a;
  --up: #c8f135;
  --down: #ff9d84;
  --up-ink: #3d5c00;
  --down-ink: #a8391d;
  --gap: 8px;
  --r: 18px;
  --hud: 4.25rem;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist Sans", "Helvetica Neue", Arial, sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
  --bone-a12: rgba(237, 230, 214, .12);
  --bone-a6: rgba(237, 230, 214, .06);
  --bone-a80: rgba(237, 230, 214, .8);
  --ink-a28: rgba(16, 20, 18, .28);
  --lime-a10: rgba(200, 241, 53, .1);
  --mask: #0c120f;
  --page-2: #eeecef;
  --scrim-34: rgba(8, 12, 10, .34);
  --scrim-38: rgba(8, 12, 10, .38);
  --scrim-40: rgba(8, 12, 10, .4);
  --scrim-45: rgba(8, 12, 10, .45);
  --scrim-50: rgba(8, 12, 10, .5);
  --scrim-55: rgba(8, 12, 10, .55);
  --scrim-60: rgba(8, 12, 10, .6);
  --scrim-62: rgba(8, 12, 10, .62);
  --scrim-66: rgba(8, 12, 10, .66);
  --scrim-70: rgba(8, 12, 10, .7);
  --scrim-78: rgba(8, 12, 10, .78);
  --scrim-80: rgba(8, 12, 10, .8);
  --scrim-90: rgba(8, 12, 10, .9);
  --scrim-92: rgba(8, 12, 10, .92);
  --scrim-94: rgba(8, 12, 10, .94);
  --scrim-95: rgba(8, 12, 10, .95);
  --tone-lilac: #d8c2e8;
  --tone-mint: #8fc7b4;
}
* { box-sizing: border-box; }
html { font-size: clamp(15px, .42vw + 10px, 22px); overflow-x: clip; background: var(--page); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; overflow-x: clip; background: var(--page); color: var(--bone); font: 400 1rem/1.45 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, dl, dd, figure, fieldset { margin: 0; padding: 0; border: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.pale :focus-visible { outline-color: var(--ink); }
.skipto { position: fixed; left: 1rem; top: -4rem; z-index: 90; background: var(--lime); color: var(--night); padding: .5rem .75rem; border-radius: 8px; }
.skipto:focus { top: 1rem; }
.noscr { position: fixed; inset: auto 1rem 1rem; background: var(--night); padding: 1rem; border-radius: 12px; z-index: 90; }

/* the fixed chrome over every frame */
.hud { position: fixed; z-index: 40; top: var(--gap); left: var(--gap); right: var(--gap); height: var(--hud); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0 1.25rem; border-radius: 18px 18px 0 0; pointer-events: none; transition: color .35s, background-color .35s; }
.hud > * { pointer-events: auto; }
.mark { display: inline-flex; align-items: center; gap: .5rem; font: 400 1.5rem/1 var(--serif); text-decoration: none; justify-self: start; }
.mark img { width: 1.9rem; height: 1.9rem; }
.hud-tools { display: flex; align-items: center; gap: .5rem; justify-self: end; }
.glyph { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; transition: background .25s, color .25s; }
.glyph:hover { background: var(--bone); color: var(--night); }
.chip-ca { height: 2.25rem; padding: 0 .75rem; background: none; border: 1px solid var(--bone-3); border-radius: 9px; font-size: .84rem; white-space: nowrap; cursor: default; transition: border-color .35s; }
.chip-ca.has { cursor: pointer; }
.chip-pair { font-size: .84rem; white-space: nowrap; }
.act { display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; padding: 0 1rem; border-radius: 9px; border: 1px solid transparent; font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, transform .4s var(--out), opacity .2s; }
.act:active, .glyph:active, .presets button:active, .row-acts button:active, .row-acts a:active { transform: scale(.97); }
.act-buy { background: var(--bone); color: var(--night); }
.act-wallet { background: none; border-color: var(--bone-2); }
.act-wallet:hover { background: var(--bone); color: var(--night); }
.act-lime { background: var(--lime); color: var(--night); }
.act-lime:hover { background: var(--bone); }
button:disabled, .act[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.act-line { background: none; border-color: var(--bone-2); color: var(--bone); }
.act-line:hover { background: var(--bone); color: var(--night); }
.act-wide { width: 100%; height: max(2.75rem, 44px); font-size: 1rem; }
body.on-light .hud { color: var(--ink); }
@media (min-width: 1081px) {
  body .frame-end { min-height: max(34rem, 72svh); }
  .hud::before { content: ""; position: absolute; top: calc(var(--gap) * -1); left: calc(var(--gap) * -1); right: calc(var(--gap) * -1); height: var(--gap); background-color: var(--page); }
  body:not(.on-floor) .hud { background-color: var(--scrim-92); }
  body.on-light:not(.on-floor) .hud { background-color: var(--page); border-radius: 0; box-shadow: 0 calc(var(--gap) * -1) 0 var(--page); }
}
body.on-light .chip-ca { border-color: var(--ink-a28); }
body.on-light .act-buy { background: var(--ink); color: var(--page); }
body.on-light .act-wallet { border-color: var(--ink); }
body.on-light .act-wallet:hover, body.on-light .glyph:hover { background: var(--ink); color: var(--page); }

.index-nav { display: flex; gap: 1.25rem; font: 400 1.08rem/1 var(--serif); white-space: nowrap; }
.index-nav a { text-decoration: none; opacity: .72; padding: .25rem 0; text-underline-offset: 4px; transition: opacity .2s; }
.index-nav a:hover, .index-nav a.on { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; }

/* a frame: one rounded film window, a hair off the page edge */
.frame { position: relative; margin: var(--gap); border-radius: var(--r); overflow: hidden; background: var(--night); isolation: isolate; }
.still { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.still img, .still canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.still::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

.ln { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.ln > span { display: block; white-space: nowrap; }
.big { font: 400 clamp(2.5rem, 4.6vw, 7rem)/.98 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; min-width: 0; }
.big em { font-style: normal; color: var(--bone-2); }
.big.ink em { color: var(--ink-2); }
.big.ink { color: var(--ink); }
.dim { color: var(--bone-2); font-size: .9rem; }
.dim-ink { color: var(--ink-2); }

/* ---------- the floor ---------- */
.frame-floor { height: calc(100svh - 2 * var(--gap)); min-height: 44rem; }
.frame-floor .still::after { background: linear-gradient(180deg, var(--scrim-66) 0, var(--scrim-34) 36%, var(--scrim-50) 100%); }
.floor-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(21rem, 27vw, 31rem); gap: 1.25rem; padding: calc(var(--hud) + .25rem) 1.25rem 1.25rem; }
.floor-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.floor-head { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1.25rem; }
.floor-sub { display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; max-width: 52rem; }
.floor-sub p { max-width: 56ch; font-size: 1.02rem; color: var(--bone); }
.floor-sub .act { height: 2.7rem; padding: 0 1.25rem; flex: none; }
.rails { flex: 1; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); }
.rails-wait { align-self: center; color: var(--bone-2); }
.rail { text-shadow: 0 0 .7rem var(--scrim-95), 0 0 .2rem var(--scrim-80); position: relative; border-top: 1px solid var(--bone-3); display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: .5rem; min-width: 0; }
.rail-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .84rem; color: var(--bone-2); }
.rail-top b { font: 400 1.2rem/1.1 var(--serif); color: var(--bone); }
.rail-view { position: relative; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 3%, var(--mask) 97%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask) 3%, var(--mask) 97%, transparent); }
.rail-view:has(.rail-none) { -webkit-mask-image: none; mask-image: none; }
.rail-run { display: flex; align-items: center; gap: clamp(1.75rem, 3vw, 4rem); padding-right: clamp(1.75rem, 3vw, 4rem); flex: none; will-change: transform; }
.rail-none { color: var(--bone-2); align-self: center; }
.rail-none a { color: var(--lime); }
.car { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; background: none; border: 0; padding: .25rem .25rem; text-align: left; cursor: pointer; border-radius: 8px; white-space: nowrap; }
.car .tile { grid-row: 1 / 3; }
.car-sym { font: 400 clamp(1.5rem, 2vw, 3rem)/1.05 var(--serif); letter-spacing: -.01em; transition: color .2s; }
.car-sym sup { font: 400 .72rem/1 var(--sans); vertical-align: .7em; margin-left: .25em; color: var(--bone-2); }
.car-val { font-size: .84rem; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.car:hover .car-sym, .car[aria-pressed="true"] .car-sym { color: var(--lime); }
.up { color: var(--up); } .down { color: var(--down); }
.tile { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 22%; font: 500 .84rem/1 var(--sans); color: var(--night); }
.floor-stamp { padding-top: .5rem; font-size: .8rem; color: var(--bone-2); border-top: 1px solid var(--bone-3); }

/* the ticket */
.slip-dock { min-height: 0; min-width: 0; display: flex; }
.slip { width: 100%; display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-radius: 14px; background: var(--scrim-66); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); border: 1px solid var(--bone-a12); min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.slip-who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.slip-id { min-width: 0; }
.slip-id h2 { font: 400 1.8rem/1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hour-text, .hour-facts { text-shadow: 0 0 .7rem var(--scrim-90); }
.slip-id p { font-size: .82rem; color: var(--bone-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip-px { text-align: right; font-variant-numeric: tabular-nums; font-size: .84rem; }
.slip-px b { display: block; font-weight: 500; font-size: 1.02rem; }
.slip-px sub { font-size: .7em; }
.candles { flex: 1 1 8rem; min-height: 7rem; display: flex; align-items: center; justify-content: center; }
.candles svg { width: 100%; height: 100%; display: block; }
.slip-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .5rem; font-variant-numeric: tabular-nums; }
.slip-facts dt { font-size: .76rem; color: var(--bone-2); }
.slip-facts dd { font-size: .92rem; font-weight: 500; }
.side { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--bone-3); border-radius: 9px; padding: 4px; }
.side button { height: 2.1rem; background: none; border: 0; border-radius: 7px; cursor: pointer; font-size: .9rem; transition: background .25s, color .25s; }
.side button.on { background: var(--bone); color: var(--night); font-weight: 500; }
.amt-row { display: grid; grid-template-columns: minmax(0, 1fr) 5.2rem; gap: .5rem; }
.fld { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--bone-2); min-width: 0; }
.fld input { height: max(2.75rem, 44px); }
.fld input, .fld textarea { outline: 2px solid transparent; width: 100%; background: var(--bone-a6); border: 1px solid var(--bone-3); border-radius: 8px; padding: .5rem .75rem; color: var(--bone); font-size: 1rem; resize: none; transition: border-color .2s; }
.fld input:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.presets { display: flex; gap: .25rem; }
.presets button { flex: 1; white-space: nowrap; background: none; border: 1px solid var(--bone-3); border-radius: 7px; padding: .25rem .25rem; font-size: .8rem; cursor: pointer; transition: border-color .2s, color .2s; }
.presets button:hover { border-color: var(--lime); color: var(--lime); }
.note { font-size: .84rem; color: var(--bone-2); min-height: 1lh; overflow-wrap: anywhere; }
.note.bad { color: var(--down); }
.note a { color: var(--lime); }
.slip-links { display: flex; gap: 1rem; font-size: .82rem; flex-wrap: wrap; }
.slip-links a, .slip-links button { color: var(--bone-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.slip-links a:hover, .slip-links button:hover { color: var(--lime); }
.slip-x { align-self: flex-end; background: none; border: 0; color: var(--bone-2); cursor: pointer; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.slip.float { position: fixed; z-index: 60; top: calc(var(--gap) + .5rem); right: calc(var(--gap) + .5rem); bottom: calc(var(--gap) + .5rem); width: min(29rem, calc(100vw - 2 * var(--gap) - 1rem)); background: var(--scrim-94); color: var(--bone); }
.veil { position: fixed; inset: 0; z-index: 55; background: var(--scrim-45); }
.cur-tag { position: fixed; z-index: 70; left: 0; top: 0; pointer-events: none; padding: .25rem .5rem; border-radius: 7px; background: var(--lime); color: var(--night); font-size: .8rem; font-weight: 500; opacity: 0; white-space: nowrap; transition: opacity .18s; }

/* ---------- the hour ---------- */
.frame-hour { height: calc(100svh - 2 * var(--gap)); min-height: 44rem; }
.frame-hour .still::after { background: linear-gradient(180deg, var(--scrim-55), var(--scrim-38) 45%, var(--scrim-78)); }
.hour-grid { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto auto; gap: 1.5rem 1.25rem; padding: calc(var(--hud) + 1rem) 1.25rem 1.25rem; }
.hour-lead { grid-column: 1 / 8; align-self: center; }
.hour-clock { grid-column: 8 / 13; align-self: center; justify-self: end; text-align: right; }
.hour-clock[hidden] { display: none; }
.vast { font: 400 clamp(4.5rem, 10.5vw, 16rem)/.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hour-text { font-size: 1.1rem; margin-top: .5rem; max-width: 48ch; }
.hour-clock .hour-text { margin-left: auto; }
.hour-text a { color: var(--lime); text-underline-offset: 3px; }
.hour-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--bone-3); padding-top: .75rem; font-variant-numeric: tabular-nums; }
.hour-facts dt { font-size: .82rem; color: var(--bone-2); }
.hour-facts dd { font: 400 clamp(1.6rem, 2.3vw, 3.2rem)/1.1 var(--serif); }
.tide { grid-column: 1 / -1; }
.tide figcaption { font-size: .82rem; color: var(--bone-2); margin-bottom: .25rem; }
.tide-plot { position: relative; height: clamp(5rem, 14vh, 11rem); }
.tide-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tide-plot p { color: var(--bone-2); padding-top: .5rem; max-width: 64ch; }
.tide-tip { position: absolute; top: 0; transform: translateX(-50%); padding: .25rem .5rem; background: var(--bone); color: var(--night); border-radius: 6px; font-size: .78rem; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }

/* ---------- pale pages ---------- */
.pale { position: relative; color: var(--ink); padding: calc(var(--hud) + 3.5rem) 1.25rem 5rem; background: var(--page); }
.pale-in { max-width: 76rem; margin: 0 auto; }
.pale-lede { margin-top: 1rem; max-width: 64ch; color: var(--ink-2); font-size: 1.05rem; }
.sorts { display: flex; gap: .25rem; margin: 2.25rem 0 .75rem; flex-wrap: wrap; }
.sorts button { background: none; border: 1px solid var(--ink-a28); color: var(--ink); border-radius: 8px; padding: .25rem .75rem; font-size: .88rem; cursor: pointer; transition: background .25s, color .25s; }
.sorts button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.ledger { display: flex; flex-direction: column; gap: 4px; }
.row { display: grid; grid-template-columns: 2.1rem 2.4rem minmax(0, 1.5fr) repeat(4, minmax(0, .7fr)) 7.4rem; gap: 1rem; align-items: center; padding: .5rem .75rem; border-radius: 12px; background: var(--page-2); color: var(--ink); text-align: left; border: 0; width: 100%; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .35s var(--out), color .35s var(--out); }
.row:hover, .row:focus-within { background: var(--night); color: var(--bone); }
.row-head { background: none; font-size: .8rem; color: var(--ink-2); cursor: default; padding-top: .25rem; padding-bottom: .25rem; }
.row-head:hover { background: none; color: var(--ink-2); }
.row-n { color: var(--ink-2); font-size: .86rem; }
.row:hover .row-n, .row:focus-within .row-n { color: var(--bone-2); }
.row-who { min-width: 0; }
.row-who b { display: block; font: 400 1.5rem/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-who span { display: block; font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row:hover .row-who span, .row:focus-within .row-who span { color: var(--bone-2); }
.row .up { color: var(--up-ink); } .row .down { color: var(--down-ink); }
.row:hover .up, .row:focus-within .up { color: var(--up); } .row:hover .down, .row:focus-within .down { color: var(--down); }
.row-acts { display: flex; gap: .25rem; justify-content: flex-end; }
.row-acts button, .row-acts a { background: none; border: 1px solid currentColor; color: inherit; border-radius: 7px; padding: .25rem .5rem; font-size: .8rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.row-acts button:hover, .row-acts a:hover { background: var(--lime); border-color: var(--lime); color: var(--night); }
.reg-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.25rem; background: var(--page-2); border-radius: 12px; margin-top: 2rem; }
.reg-empty .act { background: var(--ink); color: var(--page); }
.pale-here { padding-top: 5rem; }
#registry .row { grid-template-columns: 2.4rem minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .7fr) auto; cursor: default; margin-top: 4px; }
#registry .reg-first { margin-top: 2rem; }

/* ---------- launch ---------- */
.frame-launch { min-height: calc(100svh - 2 * var(--gap)); }
.frame-launch .still::after { background: linear-gradient(90deg, var(--scrim-40), var(--scrim-55)); }
.launch-grid { min-height: inherit; display: grid; grid-template-columns: minmax(0, 1fr) clamp(24rem, 36vw, 40rem); gap: 2rem; padding: calc(var(--hud) + 1rem) 1.25rem 1.25rem; align-items: end; }
.launch-say { display: flex; flex-direction: column; gap: 1rem; padding-bottom: .5rem; }
.launch-say h2 { margin-bottom: .5rem; }
.launch-say p { max-width: 52ch; font-size: 1.02rem; }
.launch-form { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-radius: 14px; background: var(--scrim-70); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); border: 1px solid var(--bone-a12); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.two:has(.fld-s) { grid-template-columns: minmax(0, 1fr) 5.2rem; }
.art { display: flex; align-items: center; gap: .75rem; min-height: 3.4rem; padding: .5rem .75rem; border: 1px dashed var(--bone-3); border-radius: 8px; cursor: pointer; font-size: .92rem; transition: border-color .2s; }
.art:hover, .art:focus-within { border-color: var(--lime); }
.art input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.art img { width: 2.5rem; height: 2.5rem; border-radius: 22%; object-fit: cover; display: inline-block; vertical-align: middle; margin-right: .5rem; }
.pairs legend { font-size: .8rem; color: var(--bone-2); padding: 0; margin-bottom: .25rem; }
#pairList { display: flex; flex-wrap: wrap; gap: .25rem; }
.pick { background: none; border: 1px solid var(--bone-3); border-radius: 8px; padding: .25rem .5rem; font-size: .88rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pick[aria-pressed="true"] { background: var(--bone); color: var(--night); border-color: var(--bone); }

/* ---------- the end ---------- */
.frame-end { min-height: 34rem; display: flex; align-items: flex-end; }
.frame-end .still::after { background: linear-gradient(180deg, var(--scrim-50), var(--scrim-80)); }
.end-in { width: 100%; padding: 2rem 1.25rem 1.25rem; }
.end-word { font: 400 22vw/.82 var(--serif); letter-spacing: -.035em; white-space: nowrap; text-align: center; }
.end-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 1.5rem; margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--bone-3); font-size: .88rem; color: var(--bone); }
.end-links { display: flex; gap: .25rem; }

.card-dlg { border: 0; padding: 1rem; background: var(--night); color: var(--bone); border-radius: 16px; max-width: min(46rem, 94vw); }
.card-dlg::backdrop { background: var(--scrim-60); }
.card-dlg img { width: 100%; height: auto; border-radius: 10px; }
.card-row { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }

/* the first two frames hold still while the next one rises over them */
@media (min-width: 1081px) and (min-height: 720px) {
  .frame-floor, .frame-hour { position: sticky; top: var(--gap); }
}
.pale, .frame-launch, .frame-end { z-index: 2; }
.frame-hour { z-index: 1; }

/* phones and short laptops: the frames flow, nothing is pinned */
@media (max-width: 1080px) {
  .hud { position: absolute; height: auto; grid-template-columns: auto 1fr; padding: .75rem .75rem; gap: .5rem; }
  .index-nav { display: none; }
  .hud-tools { flex-wrap: wrap; justify-content: flex-end; }
  .frame-floor, .frame-hour { height: auto; min-height: 0; }
  .floor-grid { grid-template-columns: minmax(0, 1fr); padding-top: 6.5rem; }
  .floor-sub { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .big { font-size: clamp(2.6rem, 11.5vw, 5.5rem); }
  .rails { grid-auto-rows: 7.4rem; }
  .slip { overflow: visible; }
  .slip.float { overflow-y: auto; }
  .candles { flex: none; height: 9rem; }
  .hour-grid { display: flex; flex-direction: column; padding-top: 3rem; }
  .hour-clock { text-align: left; justify-self: start; }
  .hour-clock .hour-text { margin-left: 0; }
  .vast { font-size: clamp(4.5rem, 21vw, 10rem); }
  .hour-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tide-plot { height: 8rem; }
  .pale { padding-top: 3.5rem; padding-bottom: 3rem; }
  .launch-grid { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; }
  .end-row { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 1.6rem 2.4rem minmax(0, 1fr) auto auto; gap: .5rem; }
  .row .wide-only { display: none; }
  #registry .row { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .row-acts { display: none; }
  .cur-tag { display: none; }
  .frame-end { min-height: 26rem; }
}
@media (max-width: 1300px) and (min-width: 1081px) { .index-nav { display: none; } .hud { grid-template-columns: auto 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .rail-view { overflow-x: auto; }
}
