/* Diggby homepage r3: everything below the approved hero. One ground for the whole page that fades from the plan
   table to night and back (--t, written by page.js from the scroll), one entrance rhythm (.rv), the hero's own
   button (fill-wipe), paper and highlighter carried down from the hero's list. */
@font-face { font-family: "GT America"; src: url(../fonts/GT-America-VF.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "GT America Mono"; src: url(../fonts/GTAmericaMono-Regular.woff2) format("woff2"); font-display: swap; }

:root {
  --t: 0;                                   /* 0 = the plan table in daylight, 1 = night (page.js) */
  --g1: 0; --g2: 0; --tf: 0;                /* table to dusk, dusk to night, and the text's own flip */
  --table: #ECE2D1; --dusk: #6B4532;
  --gnd: color-mix(in oklab, color-mix(in oklab, var(--table), var(--dusk) calc(var(--g1) * 100%)), #0A1420 calc(var(--g2) * 100%));
  --fg: color-mix(in oklab, #0A1420, #F2E9DB calc(var(--tf) * 100%));
  --fg-2: color-mix(in oklab, var(--fg) 70%, var(--gnd));
  --fg-3: color-mix(in oklab, var(--fg) 48%, var(--gnd));
  --rule-c: color-mix(in oklab, var(--fg) 16%, transparent);
  --rust: #8a4512;                          /* the hero's second headline line */
  --side: var(--pad);
  --body: 1200px;
  --sec-y: clamp(96px, 13vh, 156px);
  --nav-h: 64px;
  --shade-1: 1px 1px 1.5px rgba(70, 45, 20, .22), 8px 14px 28px -10px rgba(70, 45, 20, .32);
  --shade-2: 1px 1px 1.5px rgba(70, 45, 20, .2), 10px 20px 36px -12px rgba(70, 45, 20, .34), 22px 40px 70px -34px rgba(70, 45, 20, .28);
  --shade-3: 1px 1px 2px rgba(70, 45, 20, .18), 16px 32px 52px -14px rgba(70, 45, 20, .4);
}
html { background: var(--table); scroll-padding-top: var(--nav-h); }
html, body { height: auto; }
body { background: transparent; color: var(--fg); overflow-x: clip; }
.ground { position: fixed; inset: 0; z-index: -1; background: var(--gnd); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--body), 100% - 2 * var(--side)); margin-inline: auto; }
.ln { display: block; }
.sq { display: inline-block; width: .5em; height: .5em; background: var(--signal); flex: none; }
::selection { background: rgba(244, 124, 34, .35); }

/* the hero dims with the table as night comes on */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 25; pointer-events: none; background: #0A1420; opacity: calc(var(--t) * .92); }

/* one entrance rhythm for the whole page: rise 22px and fade, the hero's ease, staggered by --d */
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; translate: none; }

/* ---------- the sticky bar ---------- */
.bar {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad-nav);
  color: var(--fg); background: color-mix(in oklab, var(--gnd) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 var(--rule-c);
  transform: translateY(-101%); transition: transform .55s var(--ease); visibility: hidden;
}
.bar.on { transform: none; visibility: visible; }
.bar-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; font-size: 22px; }
.bar-logo .word, .fl-logo .word, .al-app { font: 640 1em/1 var(--sans); font-stretch: 128%; letter-spacing: -.055em; }
.bar-where { display: inline-flex; align-items: center; gap: 9px; font: 400 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; animation: live-dot 2.4s cubic-bezier(.33, 1, .68, 1) infinite; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(244, 124, 34, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(244, 124, 34, 0); } }
.bar-links { margin-left: auto; display: flex; gap: 4px; }
.bk { position: relative; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: inherit; text-decoration: none; padding: 10px 12px; background: none; border: 0; cursor: pointer; }
.bk::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.bk:hover::after, .bk:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.bk:focus-visible, .fl-col a:focus-visible, .bar-logo:focus-visible, .fl-logo:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.bar-menu { display: none; }
.fwb.cta:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.fwb.cta:active { translate: 0 1px; }

/* ---------- 2. the tape ---------- */
.tape {
  position: relative; z-index: 6; margin: -60px 0 0; height: 60px; display: flex; align-items: stretch;
  background: #0A1420; color: #F2E9DB; overflow: hidden;
  box-shadow: 0 14px 28px -14px rgba(10, 20, 32, .55);
}
.tp-lab { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 0 10px; flex-wrap: wrap; padding: 0 22px 0 var(--pad-nav); background: var(--signal); color: #0A1420; font: 400 11px/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tp-lab .sq { background: #0A1420; width: 8px; height: 8px; }
.tp-run { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.tp-track { display: flex; width: max-content; animation: tp-run 80s linear infinite; }
.tape:not(.is-on) .tp-track, .tape:hover .tp-track { animation-play-state: paused; }
@keyframes tp-run { to { transform: translateX(-50%); } }
.tp-set { display: flex; align-items: center; }
.tp-i { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 28px; white-space: nowrap; }
.tp-i::after { content: ""; align-self: center; width: 8px; height: 8px; background: var(--signal); margin-left: 28px; }
.tp-b { font: 300 23px/1 var(--serif); letter-spacing: -.01em; }
.tp-f { font: 560 15px/1 var(--sans); color: var(--signal); letter-spacing: -.005em; }
.tp-m { font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 233, 219, .55); }
.tp-arrow { align-self: center; width: 18px; height: 1px; background: rgba(242, 233, 219, .45); position: relative; }
.tp-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid rgba(242, 233, 219, .45); border-right: 1px solid rgba(242, 233, 219, .45); rotate: 45deg; }
.tp-was { color: rgba(242, 233, 219, .38); }

/* ---------- 3. the market sits in market.css; its no-JS line ---------- */
.mk-nojs { position: absolute; left: var(--side); top: 40px; margin: 0; font: 400 15px/1.5 var(--sans); color: var(--fg-2); }

/* ---------- 4. one building, four permits ---------- */
.chain { position: relative; padding: var(--sec-y) 0 calc(var(--sec-y) * .6); }
.ch-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: end; }
.ch-h { margin: 0; font: 300 clamp(54px, 6.4vw, 108px)/.98 var(--serif); letter-spacing: -.035em; color: var(--fg); }
.ch-h .ln { white-space: nowrap; overflow: visible; padding-bottom: .04em; }
.ch-sub { margin: 0 0 .5em; font: 400 17px/1.55 var(--sans); color: var(--fg-2); text-align: right; }
.ch-sub-2 { margin-top: .5em; color: var(--fg); }
.blk { display: block; }

.table-run { --sw: clamp(250px, 22vw, 292px); --hang: 64px; --gas-y: 300px; position: relative; height: calc(var(--hang) + var(--gas-y) + 300px); margin-top: clamp(44px, 6vh, 72px); }
.slips { position: absolute; inset: var(--hang) 0 0 0; }
.slip-p {
  position: absolute; width: var(--sw); left: calc(var(--at) * (100% - var(--sw))); top: var(--y, 0);
  padding: 18px 20px 16px; background: #F7F2E8; color: #0A1420; rotate: var(--r, 0deg);
  background-image: radial-gradient(130% 60% at 15% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%);
  box-shadow: var(--shade-2); outline: 0; cursor: default;
  transition: translate .6s var(--ease), rotate .6s var(--ease), box-shadow .6s var(--ease);
}
.slip-p::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .48 0 0 0 0 .38 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sl-building { --y: 0px; --r: -1.8deg; z-index: 1; }
.sl-plumbing { --y: 40px; --r: 1.2deg; z-index: 2; }
.sl-hvac { --y: 4px; --r: -.9deg; z-index: 3; }
.sl-gas { --y: var(--gas-y); --r: 2.1deg; z-index: 4; } /* r3 11-02: was 252px; it sat on the HVAC slip's edge (Eric). Its string reads the same value */
.slip-p:hover, .slip-p:focus-visible { z-index: 9; translate: -4px -18px; rotate: 0deg; box-shadow: var(--shade-3); }
.slip-p:focus-visible { box-shadow: var(--shade-3), 0 0 0 2px var(--signal); }
.sl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 9px; border-bottom: 1.5px solid #0A1420; }
.sl-t { font: 400 11px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.sl-n { font: 400 10px/1 var(--mono); letter-spacing: .06em; color: rgba(10, 20, 32, .45); }
.sl-date { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 10px; font: 300 52px/1 var(--serif); letter-spacing: -.03em; }
.sl-date small { font: 400 10.5px/1 var(--mono); letter-spacing: .08em; color: rgba(10, 20, 32, .45); }
.sl-rows { margin: 0; }
.sl-row { padding: 8px 0 9px; border-top: 1px solid rgba(10, 20, 32, .13); }
.sl-row dt { font: 400 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(10, 20, 32, .45); }
.sl-row dd { margin: 5px 0 0; font: 500 15.5px/1.25 var(--sans); letter-spacing: -.005em; }
.sl-key { background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 100%; padding-bottom: 2px; }
.sl-stamp { position: absolute; right: 16px; top: 52px; padding: 5px 9px 4px; border: 2px solid var(--signal); color: var(--signal); font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; rotate: -11deg; opacity: .9; }
.sl-id { position: absolute; right: 20px; bottom: 14px; font: 400 9.5px/1 var(--mono); letter-spacing: .06em; color: rgba(10, 20, 32, .4); }
.slip-p mark, .ans-mark { background-size: 0% 82%; }
.slip-p.inked mark, .ch-ans.inked .ans-mark, html:not(.js) .slip-p mark, html:not(.js) .ans-mark { background-size: 100% 82%; }
.ans-mark { background-image: linear-gradient(100deg, rgba(244, 124, 34, 0) 0, var(--hi) 1%, var(--hi) 99%, rgba(244, 124, 34, 0) 100%); background-repeat: no-repeat; background-position: 0 70%; transition: background-size 1.1s cubic-bezier(.65, 0, .35, 1) .2s; color: inherit; padding: 0 .1em; margin: 0 -.1em; }

/* the slips land one after another, tossed onto the table (paper-sheet-drop's clock) */
.js .slip-p.psd-wait { opacity: 0; }
.slip-p.psd-sheet { --psd-x: 12%; --psd-y: -5rem; --psd-tilt: -6deg; --psd-delay: calc(var(--i) * 170ms); }

/* the date rail runs along the top of the table; each permit hangs from its own day (one tick a week) */
.rail { position: absolute; left: 22px; right: calc(var(--sw) - 22px); top: 30px; height: 10px; margin: 0; padding: 0; list-style: none;
  border-top: 1.5px solid var(--fg);
  background: repeating-linear-gradient(90deg, var(--fg-3) 0 1px, transparent 1px 5.46875%) 0 0 / 100% 8px no-repeat; }
.rail li { position: absolute; left: calc(var(--at) * 100%); top: -6px; }
.rail li::before { content: ""; position: absolute; left: -5px; top: 0; width: 10px; height: 10px; background: var(--signal); }
.rail li span { position: absolute; left: -5px; bottom: 14px; white-space: nowrap; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.rail li.rl-hvac span { left: auto; right: -5px; }
.rail li.rl-gas span { left: 11px; }
.slips { z-index: 1; }
.rail { z-index: 0; }
.rl-building { --y: 0px; } .rl-plumbing { --y: 40px; } .rl-hvac { --y: 4px; } .rl-gas { --y: var(--gas-y); }
.rail li::after { content: ""; position: absolute; left: -.75px; top: 10px; width: 1.5px; height: calc(var(--hang) - 34px + var(--y)); background: color-mix(in oklab, var(--fg) 42%, transparent); }

/* the answer lies on the table in the room the slips leave, bottom left; Rohit's 88 buildings run under it as one strip */
.ch-ans { position: absolute; z-index: 2; left: 0; bottom: 0; width: calc(100% - var(--sw) - 80px); }
.table-run:not(:has(.sl-gas)) .ch-ans { width: 100%; } /* 11-02 (Eric): no slip hangs low beside it, so the answer takes the full width and stays on three lines */
.rt-wrap { margin-top: clamp(40px, 6vh, 64px); }
.rt-grid { display: grid; grid-template-columns: repeat(var(--rtc, 88), minmax(0, 1fr)); gap: 3px; }
.rt { display: block; aspect-ratio: 1; border-radius: 1.5px; background: #0A1420; }
.rt-lead { background: var(--signal); }
.rt-f1 { background: #0A1420; } .rt-f2 { background: #5b6370; }
.rt-other { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg); }
.rt-none { background: transparent; box-shadow: inset 0 0 0 1px var(--fg-3); }
.js .rt-wrap .rt { opacity: 0; scale: .6; }
.rt-wrap.inked .rt { animation: rt-in .45s var(--ease) both; animation-delay: calc(var(--i) * 9ms); }
@keyframes rt-in { to { opacity: 1; scale: 1; } }
.rt-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; font: 400 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.rt-key li { display: flex; align-items: center; gap: 7px; }
.rt-key i { width: 9px; height: 9px; background: #0A1420; }
.rt-key .rk-lead i { background: var(--signal); } .rt-key .rk-f2 i { background: #5b6370; } .rt-key .rk-other i { background: none; box-shadow: inset 0 0 0 1.5px var(--fg); }
.rt-key b { font-weight: 400; color: var(--fg); }
@media (max-width: 760px) { .rt-key { flex-direction: column; gap: 8px; } } /* 11-03: three keys wrapped 2 + 1 on phones */
.ans-line { margin: 0; font: 300 clamp(30px, 3vw, 46px)/1.16 var(--serif); letter-spacing: -.02em; color: var(--fg); }

/* ---------- 5. keep the builders you have ---------- */
.keep { padding: calc(var(--sec-y) * .6) 0 calc(var(--sec-y) * .55); }
.kp-h { margin: 0; text-align: center; font: 300 clamp(54px, 6.4vw, 108px)/.98 var(--serif); letter-spacing: -.035em; color: var(--fg); }
.kp-h .ln { white-space: nowrap; padding-bottom: .04em; }
.kp-board { --tile: clamp(24px, 2.55vw, 38px); width: max-content; max-width: 100%; margin: clamp(48px, 7vh, 76px) auto 0; }
.kp-k { margin: 0 0 18px; font: 400 11.5px/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); }
.kp-k b { font-weight: 400; color: var(--fg); }
.kp-strip { display: flex; align-items: flex-start; gap: 24px calc(var(--tile) * .9); }
.kp-strip.kp-wrap { flex-wrap: wrap; }
.kp-group { display: flex; flex-direction: column; gap: 12px; }
/* each group sets its own columns (render.cjs): a long run wraps into rows, never a last row of one */
.kp-tiles { display: grid; grid-template-columns: repeat(var(--kpd, 1), var(--tile)); gap: calc(var(--tile) * .17); }
.tl { display: block; width: var(--tile); aspect-ratio: 1; border-radius: 2px; background: #0A1420; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 1px rgba(10, 20, 32, .2); }
.tl-other { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg); }
.tl-new { background: var(--signal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -6px rgba(244, 124, 34, .6); }
.kp-cap { margin: 0; display: flex; gap: 2px 8px; align-items: baseline; font: 400 11px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.kp-cap b { font-weight: 400; color: var(--fg); }
.kp-g-new .kp-cap b { color: #b85a14; }
.kp-g-other .kp-cap, .kp-g-new .kp-cap { flex-direction: column; }
.js .kp-strip .tl { opacity: 0; translate: 0 10px; }
.kp-board.on .tl { animation: tl-in .5s var(--ease) both; animation-delay: calc(var(--i) * 26ms); }
@keyframes tl-in { to { opacity: 1; translate: none; } }
.kp-board.on .tl-new { animation: tl-in .5s var(--ease) both, tl-flip .7s cubic-bezier(.34, 1.4, .5, 1) both; animation-delay: .62s, .95s; background: #0A1420; }
@keyframes tl-flip { 0% { background: #0A1420; rotate: y 0deg; } 49% { background: #0A1420; } 50% { background: var(--signal); } 100% { background: var(--signal); rotate: y 180deg; } }
.kp-foot { display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 44%); column-gap: 56px; margin-top: 46px; align-items: start; }
.kp-count { margin: 6px 0 0; font: 300 clamp(26px, 2.3vw, 36px)/1.22 var(--serif); letter-spacing: -.015em; color: var(--fg); }
.kp-count-1 { display: block; text-wrap: balance; }
.kp-count-2 { display: block; margin-top: 16px; font: 400 16px/1.55 var(--sans); letter-spacing: 0; color: var(--fg-2); max-width: 30em; }
.kp-alert { position: relative; }
.kp-alert::before { content: ""; position: absolute; right: var(--cx, calc(var(--tile) / 2)); top: -38px; width: 1.5px; height: 30px; background: var(--signal); transform-origin: 50% 0; scale: 1 0; transition: scale .5s var(--ease) 1.3s; }
.kp-alert.is-live::before, html:not(.js) .kp-alert::before { scale: 1 1; }
.al-ex { display: block; margin: 0 0 10px; padding-right: calc(var(--cx, 0px) + 12px); font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); text-align: right; }
.al-card { padding: 18px 20px 20px; border-radius: 14px; background: #0A1420; color: #F2E9DB; box-shadow: 0 2px 4px rgba(10, 20, 32, .15), 0 24px 48px -18px rgba(10, 20, 32, .55); }
.al-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(242, 233, 219, .12); }
.al-app { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; }
.al-when { font: 400 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: rgba(242, 233, 219, .5); white-space: nowrap; }
.al-t { margin: 14px 0 0; font: 300 25px/1.15 var(--serif); letter-spacing: -.015em; }
.al-b { margin: 10px 0 0; font: 400 14.5px/1.5 var(--sans); color: rgba(242, 233, 219, .72); text-wrap: pretty; }
.al-b b { font-weight: 500; color: var(--signal); }
html:not(.js) .tnp-win, html:not(.js) .tnp-pop { opacity: 1; transform: none; }
.kp-alert { --tnp-open-at: 1.25s; --tnp-pop-at: 1.75s; }

/* ---------- 6. cities: the size of the name is the status ---------- */
.cities { padding: calc(var(--sec-y) * .6) 0 calc(var(--sec-y) * .45); } /* r3 11-02: the "also built" row is gone, so less ground under the grid */
.cz-row { border-top: 1.5px solid var(--fg); }
.cz-live { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; padding: 26px 0 30px; }
.cz-h { margin: 0; color: var(--fg); }
.cz-k { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.cz-k .sq { width: 9px; height: 9px; }
.cz-name { display: block; margin-top: 10px; font: 300 calc(clamp(112px, 17.5vw, 250px) * var(--czs, 1))/.84 var(--serif); letter-spacing: -.05em; padding-bottom: .06em; }
.cz-st { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--fg-2); }
.cz-st b { font-weight: 560; color: var(--fg); }
.cz-side { display: flex; flex-direction: column; align-items: flex-start; justify-self: end; padding-bottom: 1.5em; }
.cz-live .cz-st { text-align: left; margin: 0; max-width: 24em; } /* r3 11-02b: one left edge for numbers and sentence (Eric: the indented sentence read as weird alignment) */
.cz-figs { margin: 0 0 22px; display: grid; grid-template-columns: auto auto; grid-auto-flow: row dense; column-gap: 16px; row-gap: 10px; align-items: baseline; justify-items: start; }
.cz-figs div { display: contents; }
.cz-figs dt { grid-column: 2; }
.cz-figs dd { grid-column: 1; }
.cz-figs dt { white-space: nowrap; text-align: left; font: 400 11px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); }
.cz-figs dd { margin: 0; text-align: left; font: 300 34px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; color: var(--fg); } /* r3 11-02: numbers right-aligned in one column, labels on one line in the next */
.cz-next { padding: 26px 0 34px; }
.cz-nk { margin: 0 0 18px; }
.cz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.cz-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 20px 24px 22px; margin: 0; border: 0; border-right: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .25s var(--ease); }
.cz-cell:hover { background: rgba(244, 124, 34, .07); }
.cz-cell:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.cz-cell .cz-st { font-size: 15px; }
.cz-cell .cz-st .blk { display: block; }
.cz-go { margin-top: auto; padding-top: 6px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.cz-go span { display: inline-block; color: var(--signal); transition: transform .3s var(--ease); }
.cz-cell:hover .cz-go span { transform: translateX(4px); }
a.cz-cell, .cz-ask-cell { text-decoration: none; }
.cz-ask-cell .cz-mid { color: var(--fg-2); font-style: italic; }
.cz-mid { margin: 0; font: 300 clamp(34px, 3.2vw, 54px)/1 var(--serif); letter-spacing: -.03em; color: var(--fg); }
.cz-ask { margin: 0; align-self: end; text-align: right; font: 400 15px/1.5 var(--sans); color: var(--fg-2); }
.cz-later { display: grid; grid-template-columns: minmax(0, 18em) minmax(0, 1fr); column-gap: 48px; align-items: baseline; padding: 26px 0 0; }
.cz-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 32px; font: 300 clamp(24px, 2.1vw, 32px)/1.2 var(--serif); letter-spacing: -.01em; color: var(--fg-3); }
.cz-list li { white-space: nowrap; }

/* ---------- 7. the order slip ---------- */
.order { padding: calc(var(--sec-y) * .5) 0 calc(var(--sec-y) * 1.1); }
.ticket { position: relative; max-width: 1100px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.05fr);
  background: #F7F2E8; color: #0A1420; rotate: -.5deg; box-shadow: var(--shade-2);
  background-image: radial-gradient(120% 70% at 10% 0%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 60%); }
.js .ticket.rv { translate: 0 30px; }
.ticket::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .48 0 0 0 0 .38 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tk-form { display: flex; flex-direction: column; justify-content: center; }
.tk-stub, .tk-form { position: relative; padding: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.tk-perf { position: relative; background: repeating-linear-gradient(180deg, rgba(10, 20, 32, .32) 0 7px, transparent 7px 13px) 50% 0 / 1.5px 100% no-repeat; }
.tk-perf::before, .tk-perf::after { content: ""; position: absolute; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--gnd); }
.tk-perf::before { top: -15px; box-shadow: inset 0 -2px 3px rgba(70, 45, 20, .16); }
.tk-perf::after { bottom: -15px; box-shadow: inset 0 2px 3px rgba(70, 45, 20, .12); }
.tk-k { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 400 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tk-k .sq { width: 9px; height: 9px; }
.tk-h { margin: 0; font: 300 clamp(40px, 4vw, 62px)/1 var(--serif); letter-spacing: -.03em; }
.tk-price { display: flex; align-items: flex-end; gap: 14px; margin: 30px 0 26px; }
.tk-cur { font: 400 12px/1 var(--mono); letter-spacing: .08em; padding-bottom: .9em; }
.tk-amt { font: 300 clamp(100px, 10.5vw, 156px)/.8 var(--serif); letter-spacing: -.05em; }
.tk-per { font: 400 12px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: rgba(10, 20, 32, .6); padding-bottom: .5em; }
.tk-in { margin: 0; padding: 0; list-style: none; }
.tk-in li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid rgba(10, 20, 32, .13); font: 400 15px/1.45 var(--sans); }
.tk-in li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; background: var(--signal); }
.tk-fh { margin: 0; font: 300 clamp(34px, 3.2vw, 46px)/1.05 var(--serif); letter-spacing: -.025em; }
.tk-fs { margin: 10px 0 18px; font: 400 15.5px/1.5 var(--sans); color: rgba(10, 20, 32, .66); }
.ofld { display: block; position: relative; padding: 14px 0 12px; border-bottom: 1px solid rgba(10, 20, 32, .16); transition: border-color .25s ease; }
.ofld:focus-within, .ofld.bs-cell[aria-expanded="true"] { border-bottom-color: var(--signal); }
.ofld > span:not(.val) { display: block; margin-bottom: 8px; font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(10, 20, 32, .5); }
.ofld input, .ofld .val { width: 100%; border: 0; background: none; outline: none; padding: 0; font: 450 18px/1.3 var(--sans); color: #0A1420; }
.ofld input::placeholder { color: rgba(10, 20, 32, .35); }
.ofld input[aria-invalid="true"] { color: #a63b12; }
.ofld:has(input[aria-invalid="true"]) { border-bottom-color: #c4521a; }
.ofld select { position: absolute; opacity: 0; width: 1px; height: 1px; }
.osel { cursor: pointer; }
.osel .val::after { content: ""; float: right; margin-top: 8px; width: 8px; height: 8px; border-right: 1.5px solid #0A1420; border-bottom: 1.5px solid #0A1420; rotate: 45deg; }
.osel:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.otwo { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.tk-form .tk-go { margin-top: 36px; width: 100%; justify-content: space-between; } /* r3 11-02: button.fwb's margin reset had beaten the old rule, so the button sat on the selects */
.tk-go:disabled { opacity: .6; cursor: progress; }
.ostat { min-height: 1.5em; margin: 14px 0 0; font: 400 11px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(10, 20, 32, .55); }
.ostat.err { color: #a63b12; text-transform: none; letter-spacing: 0; font: 400 14.5px/1.5 var(--sans); }
.ostat.ok { color: #0A1420; text-transform: none; letter-spacing: 0; font: 300 22px/1.3 var(--serif); }
.ostat a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hstat { margin-top: 12px; }

/* ---------- 8. the finale: dusk, the closing line, then the footer, in one screen ---------- */
.fin { position: relative; min-height: max(620px, calc(100svh - var(--nav-h))); display: flex; flex-direction: column; color: #F2E9DB; }
.fin-links, .fin-legal { background: #0A1420; }
.fin-photo { position: relative; flex: 1 1 auto; min-height: 220px; overflow: hidden; }
.fin-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px); mask-image: linear-gradient(180deg, transparent 0, #000 110px); }
.fin-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 20, 32, 0) 50%, rgba(10, 20, 32, .85) 88%, #0A1420), radial-gradient(70% 90% at 0% 100%, rgba(10, 20, 32, .6), rgba(10, 20, 32, 0) 70%); }
.fin-copy { position: absolute; z-index: 2; left: calc(var(--pad-nav) + clamp(6px, 1.1vw, 22px)); right: 0; bottom: clamp(26px, 5vh, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; } /* r3 11-02: on the page's own left edge, two lines, a little over the building (Eric) */
@media (min-width: 821px) { .fin-line .ln { display: block; white-space: nowrap; } }
.fin-line { margin: 0; font: 300 clamp(36px, 3.7vw, 66px)/1.04 var(--serif); letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(10, 20, 32, .5); }
.fin-line .ln + .ln { color: #F7B27A; }
.fin-links { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .7fr); /* r3 11-02: Product sits with the other three link columns (Eric) */ column-gap: 40px; padding: clamp(24px, 3.4vh, 38px) var(--pad-nav) clamp(18px, 2.6vh, 28px); border-top: 1px solid rgba(242, 233, 219, .12); }
.fl-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; color: #F2E9DB; text-decoration: none; }
.fl-what { margin: 14px 0 0; max-width: 24em; font: 400 14.5px/1.5 var(--sans); color: rgba(242, 233, 219, .66); }
.fl-live { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; font: 400 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: rgba(242, 233, 219, .55); }
.fl-col h3 { margin: 4px 0 12px; font: 400 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: rgba(242, 233, 219, .42); }
.fl-col a { display: block; width: max-content; padding: 5px 0; font: 400 15px/1.3 var(--sans); color: rgba(242, 233, 219, .86); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .25s ease; }
.fl-col a:hover { color: #F2E9DB; background-size: 100% 1px; }
/* every market page, two to a row; the current one is plain text */
.fl-mk-list { margin: 0; max-width: 25em; line-height: 1.9; }
.fl-col .fl-mk-list a, .fl-col .fl-mk-list .fl-here { display: inline; width: auto; padding: 0; margin-right: 14px; white-space: nowrap; }
.fl-col .fl-here { display: block; padding: 5px 0; font: 400 15px/1.3 var(--sans); color: #F2E9DB; }
.fl-col .fl-here::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; background: var(--signal); }
.fl-nw { white-space: nowrap; }
.fin-legal p { margin: 0; }
.fin-made a { color: rgba(242, 233, 219, .82); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: color .25s ease; }
.fin-made a:hover { color: var(--signal); }
.fin-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 32px; margin: 0; padding: 14px var(--pad-nav) 18px; border-top: 1px solid rgba(242, 233, 219, .1); font: 400 10.5px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(242, 233, 219, .42); }

/* ---------- mid widths ---------- */
@media (max-width: 1180px) {
  .bar-where { display: none; }
  .ch-sub { font-size: 16px; }
}
@media (max-height: 760px) and (min-width: 821px) {
  .fin-links { padding-top: 20px; padding-bottom: 14px; }
  .fl-what { display: none; }
}

/* ---------- phones ---------- */
@media (max-width: 820px) {
  :root { --nav-h: 56px; --sec-y: 84px; --side: 22px; }
  .bar { gap: 12px; padding: 0 18px; }
  .bar-logo { font-size: 20px; }
  .bar-where, .bar-links, .bar-cta { display: none; }
  .bar-menu { display: inline-flex; margin-left: auto; margin-right: -12px; }
  /* the dock: a solid full-width bar, out of the way over the order slip and the footer */
  .dock { left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--gnd); box-shadow: 0 -1px 0 var(--rule-c); transition: transform .45s var(--ease); }
  .dock .cta { box-shadow: none; }
  html.is-modal-open .dock { visibility: hidden; }

  .tape { height: 52px; margin-top: -52px; }
  .tp-lab { padding: 0 14px 0 16px; font-size: 9.5px; letter-spacing: .08em; max-width: 132px; }
  .tp-lab .sq { display: none; }
  .tp-b { font-size: 20px; }
  .tp-i { padding: 0 20px; gap: 10px; }
  .tp-was { display: none; }

  .ch-top { display: block; }
  .ch-h { font-size: clamp(44px, 12.4vw, 60px); }
  .ch-sub { margin: 20px 0 0; text-align: left; font-size: 16px; }
  .table-run { height: auto; margin-top: 40px; --sw: auto; }
  .slips { position: static; display: flex; flex-direction: column; }
  .slip-p { position: relative; left: auto; top: auto; width: calc(100% - 30px); }
  .slip-p + .slip-p { margin-top: -26px; }
  .sl-gas { margin-top: 14px !important; }
  .sl-building { --r: -1.2deg; } .sl-plumbing { --r: 1deg; margin-left: 30px; } .sl-hvac { --r: -.8deg; } .sl-gas { --r: 1.2deg; margin-left: 30px; }
  .sl-date { font-size: 44px; margin: 12px 0 8px; }
  .slip-p:hover { translate: none; rotate: var(--r); }
  .rail { display: none; }
  .ans-line { font-size: clamp(22px, 6.4vw, 27px); line-height: 1.24; }
  .ch-ans { position: static; width: auto; margin-top: 40px; }
  .rt-wrap { margin-top: 32px; }
  .rt-grid { grid-template-columns: repeat(var(--rtm, 11), minmax(0, 1fr)); gap: 5px; }

  .kp-h { font-size: clamp(42px, 11.4vw, 58px); }
  .kp-h .ln { white-space: normal; }
  .kp-board { --tile: calc((100vw - 2 * var(--side) - 7 * 6px) / 8); width: auto; margin-top: 40px; }
  .kp-k { text-align: left; }
  .kp-k b { display: block; }
  .kp-k .kp-dot { display: none; }
  .kp-strip { flex-wrap: wrap; gap: 22px 28px; }
  .kp-g-main { flex-basis: 100%; }
  .kp-tiles { grid-template-columns: repeat(var(--kpc, 1), var(--tile)); gap: 6px; }
  .kp-foot { display: flex; flex-direction: column-reverse; gap: 36px; margin-top: 30px; }
  .kp-alert::before { display: none; }
  .al-ex { text-align: left; }
  .al-t { font-size: 23px; }
  .al-when { white-space: normal; text-align: right; line-height: 1.3; }
  .al-card { padding: 16px 16px 18px; }
  .kp-count { font-size: 25px; }

  .cz-live { display: block; padding: 20px 0 26px; }
  .cz-name { font-size: calc(26.5vw * var(--czs, 1)); }
  .cz-side { align-items: flex-start; padding: 18px 0 0; }
  .cz-figs { justify-items: start; }
  .cz-figs dd { font-size: 28px; }
  .cz-side { justify-self: start; }
  .cz-live .cz-st { text-align: left; }
  .cz-next { padding: 22px 0 28px; }
  .cz-grid { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
  .cz-cell { border-right: 0; padding: 16px 0 18px; }
  .cz-mid { font-size: clamp(30px, 9.2vw, 40px); }
  .cz-ask { text-align: left; }
  .cz-later { grid-template-columns: 1fr; row-gap: 16px; }
  .cz-list { display: block; columns: 2; column-gap: 20px; font-size: clamp(21px, 6vw, 24px); }
  .cz-list li { white-space: normal; break-inside: avoid; padding-bottom: 6px; }

  .ticket { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 30px auto; rotate: -.4deg; }
  .tk-stub, .tk-form { padding: 32px 22px 28px; }
  .tk-perf { background: repeating-linear-gradient(90deg, rgba(10, 20, 32, .32) 0 7px, transparent 7px 13px) 0 50% / 100% 1.5px no-repeat; }
  .tk-perf::before, .tk-perf::after { top: 0; bottom: auto; left: auto; margin: 0; }
  .tk-perf::before { left: -15px; box-shadow: inset -2px 0 3px rgba(70, 45, 20, .14); }
  .tk-perf::after { right: -15px; box-shadow: inset 2px 0 3px rgba(70, 45, 20, .1); }
  .tk-amt { font-size: 104px; }
  .otwo { grid-template-columns: 1fr; }

  /* the footer fits one screen between the bar and the dock, and the dock sits on the page's own ground below it */
  body { padding-bottom: var(--dock-h, 68px); }
  .fin { min-height: max(500px, calc(100svh - var(--nav-h) - var(--dock-h, 68px))); }
  .fin-copy { left: 22px; width: calc(100% - 44px); gap: 18px; bottom: 18px; }
  .fin-line { font-size: clamp(30px, 8.4vw, 38px); line-height: 1.06; }
  .fin-copy .cta { display: none; } /* the dock is right below it */
  .fl-live { align-items: flex-start; } .fl-live .live-dot { margin-top: 2px; } .fl-lt { line-height: 1.5; }
  .fin-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 18px; column-gap: 20px; padding: 20px 22px 12px; }
  .fl-logo { font-size: 22px; }
  .fl-what { display: none; }
  .fl-live { margin-top: 10px; font-size: 9.5px; }
  .fl-col h3 { margin: 0 0 6px; }
  .fl-col a, .fl-col .fl-here { font-size: 14px; padding: 3px 0; }
  .fl-markets { grid-column: 1 / -1; }
  .fl-mk-list { max-width: none; line-height: 1.8; }
  .fin-legal { padding: 10px 22px 14px; font-size: 9px; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .fin-photo { min-height: 150px; }
  .fin-line { font-size: 26px; }
  .fl-col a { font-size: 13px; padding: 2px 0; }
  .fin-legal .u:nth-child(2), .fin-legal .u:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .ticket.rv { opacity: 1; translate: none; transition: none; }
  .tp-track { animation: none; }
  .tp-run { overflow-x: auto; }
  .js .slip-p.psd-wait { opacity: 1; }
  .js .kp-strip .tl { opacity: 1; translate: none; }
  .kp-board.on .tl, .kp-board.on .tl-new { animation: none; }
  .kp-board.on .tl-new { background: var(--signal); }
  .kp-alert::before { transition: none; }
  .bar, .slip-p, .dock { transition: none; }
  .ans-mark, .slip-p mark { transition: none; }
}

/* the slips land with paper-sheet-drop's clocks, but come to rest at their own tilt (page.js drops the class after) */
.slip-p.psd-sheet { animation-name: psd-move, slip-turn, psd-fade; }
@keyframes slip-turn { from { rotate: var(--psd-tilt); } to { rotate: var(--r); } }
.menu-go { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 18px 0 0; }
.menu-go .lk { padding-left: 0; text-decoration: none; }

/* the dialogs are paper: their ink never follows the night ground */
.tcd { color: #0A1420; }
@media (max-width: 820px) { .mk { padding-bottom: 8px; } }

/* the hero sheets (r3): a gap in the sheet header, and long "usually" lines wrap inside the paper on phones */
.head { gap: 12px; }
@media (max-width: 820px) {
  .s3 .f .sh .u { white-space: normal; }
  .s2 .r:nth-child(n+6) { display: none; }
}
.rt-k { margin: 0 0 14px; font: 400 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); }
.rt-k b { font-weight: 400; color: var(--fg); }
.fin-copy .cta { flex: none; }
@media (max-width: 400px) { .head .meta { font-size: 8.5px; letter-spacing: .04em; white-space: nowrap; } }

/* pay now: a quiet second path under the price, the free sample stays the button */
.tk-pay { display: inline-flex; gap: 8px; margin-top: 18px; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tk-pay:hover { color: #c45c0c; }
.tk-pay:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
