/* Inbox page. Palette and type: briefs/inbox.md "Design". Motif: mailbox flag lifts when a paper plane arrives (TOKENS row 07).
   The mailbox, the dashed path and the plane are code (SVG). Fonts: Bowlby One (display) and Jost (body), both OFL, in shared/fonts. */

:root {
  --bg: #FEFEFC; --ink: #161616; --muted: #595959; --rule: #E5E5E5;
  --yellow: #FDCD04; --shade: #F5B301; --hi: #FEE33A;
  --lk-bg: var(--bg); --lk-panel: var(--bg); --lk-ink: var(--ink); --lk-muted: var(--muted); --lk-line: var(--rule);
  --lk-main: var(--ink); --lk-on-main: var(--bg); --lk-link: var(--ink); --lk-focus: var(--ink); --lk-accent: var(--ink);
  --lk-font-display: "Bowlby One", "Arial Black", system-ui, sans-serif;
  --lk-font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-radius: 4px; --lk-max: 1120px; --lk-gutter: 16px;
  --gut: max(16px, min(5vw, 72px));
  --s: min(1px, calc(100vw / 1440)); /* hero scale: 1px at 1440 and wider, shrinks with the viewport */
  --flag: 0;
  --lk-dock-bg: #161616; --lk-dock-ink: #FDCD04;
}
body { font: 500 18px/1.6 var(--lk-font-body); }
h1, h2, h3 { font-synthesis: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a:hover { text-decoration-thickness: 0.16em; }
code { font: 500 0.88em/1.4 var(--lk-font-mono); }

/* ---------- Hero ---------- */
.ib-hero { position: relative; overflow: hidden; }
.ib-hero-in { position: relative; max-width: 1440px; margin-inline: auto; padding: calc(var(--s) * 70) var(--gut) calc(var(--s) * 56); }
.ib-copy { position: relative; z-index: 2; max-width: min(100%, 790px); }
.ib-h1 { color: var(--ink); }
.ib-name { display: block; font: 600 20px/1.2 var(--lk-font-body); margin-bottom: calc(var(--s) * 10); }
.ib-headline { display: block; font: 400 calc(var(--s) * 102)/0.94 var(--lk-font-display); letter-spacing: 0; }
.ib-l { display: block; white-space: nowrap; }
.ib-one { margin-top: calc(var(--s) * 28); max-width: 760px; font: 600 max(18px, calc(var(--s) * 22))/1.4 var(--lk-font-body); color: var(--ink); }
.ib-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: calc(var(--s) * 22); }
.ib-btn { min-height: 0; padding: 14px 28px; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--bg); font: 600 16px/1.2 var(--lk-font-body); }
.ib-btn:hover { background: var(--yellow); color: var(--ink); }
.ib-btn:focus-visible { border-radius: 4px; }
.ib-link { font: 600 16px/1.2 var(--lk-font-body); }
.ib-status { flex-basis: 100%; min-height: 0; font-size: 15px; }
.ib-status:empty { display: none; }

/* Channel switches: three real switches, yellow pill when on, outline when off */
.ib-sws { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: calc(var(--s) * 26); }
.ib-sws--mirror { margin-bottom: 20px; }
.ib-sw { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 18px 4px 6px; border: 1.5px solid var(--yellow); border-radius: 4px; background: var(--yellow); color: var(--ink); font: 600 16px/1 var(--lk-font-body); }
.ib-sw[aria-checked="false"] { background: var(--bg); border-color: var(--ink); }
.ib-sw:focus-visible { border-radius: 4px; }
.ib-trk { position: relative; flex: none; width: 34px; height: 20px; border-radius: 3px; background: var(--ink); }
.ib-knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 2px; background: var(--rule); transition: transform 0.18s ease; }
.ib-sw[aria-checked="true"] .ib-knob { transform: translateX(14px); background: var(--yellow); }
.ib-sw[data-ib-ch="email"] .ib-trk, .ib-sw[data-ib-ch="push"] .ib-trk { display: none; }
.ib-sw[data-ib-ch="email"], .ib-sw[data-ib-ch="push"] { padding: 4px 20px; }
.ib-sw[data-ib-ch="inapp"], .ib-sw[data-ib-ch="inapp"][aria-checked="false"] { padding: 4px 6px 4px 0; border-color: transparent; background: none; gap: 12px; }
.ib-sw[data-ib-ch="inapp"] .ib-trk { width: 52px; height: 30px; }
.ib-sw[data-ib-ch="inapp"] .ib-knob { top: 4px; left: 4px; width: 22px; height: 22px; }
.ib-sw[data-ib-ch="inapp"][aria-checked="true"] .ib-knob { transform: translateX(22px); }

/* Mailbox (SVG). Light from the upper left: --hi band on the top curve, --shade lower third. */
.ib-stage { position: absolute; z-index: 1; top: calc(var(--s) * 31); right: var(--gut); width: calc((100% - 2 * var(--gut)) * 0.37); }
.ib-box { display: block; width: 100%; height: auto; overflow: visible; --dip: 0; }
.ib-ink { fill: var(--ink); }
.ib-yel { fill: var(--yellow); }
.ib-s0 { stop-color: var(--yellow); }
.ib-s1 { stop-color: var(--shade); }
.ib-hi { fill: none; stroke: var(--hi); stroke-width: 28; stroke-linecap: round; }
.ib-rim { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.ib-door { fill: var(--yellow); }
.ib-arc { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.ib-seam { stroke: var(--ink); stroke-width: 2; }
.ib-dt { fill: none; }
.ib-body { transform: translateY(calc(var(--dip) * 1px)); }
.ib-flag { transform-box: view-box; transform-origin: 212px 187px; transform: rotate(calc(var(--flag) * 1deg)); }
.ib-again { position: absolute; right: 0; top: 100%; margin-top: 2px; padding: 4px 2px; border: 0; background: none; color: var(--muted); font: 500 15px/1.3 var(--lk-font-body); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.ib-again:hover:not(:disabled) { color: var(--ink); text-decoration-color: currentColor; }
.ib-again:disabled { cursor: default; opacity: 0.6; }
.ib-again:focus-visible { border-radius: 4px; }

/* Dashed path and paper plane */
.ib-air { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ib-rp { fill: none; stroke: var(--bg); stroke-width: 8; }
.ib-trail { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 8; }
.ib-pg { opacity: var(--pa, 0); }
.ib-plane { position: absolute; z-index: 4; left: 26.2%; top: calc(var(--s) * -29); width: calc(var(--s) * 76); height: auto; overflow: visible; pointer-events: none;
  transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px)) rotate(calc(var(--pr, 0) * 1deg)) scale(var(--ps, 1)); opacity: var(--po, 1); }
.ib-plane polygon, .ib-keel { stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.ib-shade { fill: var(--shade); }
.ib-keel { fill: none; }

/* Card row */
.ib-cards { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: calc(var(--s) * 48); }
.ib-card { position: relative; display: grid; align-content: start; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; padding: 24px; border: 1.5px solid var(--hi); border-radius: 6px; color: var(--ink); text-decoration: none; }
.ib-card:hover { border-color: var(--ink); }
.ib-card:focus-visible { border-radius: 6px; }
.ib-card p { grid-column: 1 / -1; max-width: none; font: 500 18px/1.45 var(--lk-font-body); }
.ib-h3 { font: 600 24px/1.2 var(--lk-font-body); }
.ib-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--yellow); }
.ib-ico--round { border-radius: 50%; }
.ib-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ib-star { position: absolute; left: -46px; bottom: -20px; width: 54px; height: 54px; pointer-events: none; }
.ib-star polygon { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.ib-none { margin-top: 20px; font: 600 20px/1.3 var(--lk-font-body); }
.ib-none--items { margin: 0 0 20px; font-size: 18px; }

/* ---------- Below the hero: poster and post ----------
   Stacked letters, giant fat type with a hard yellow offset, postmarks, seals. Reveals only arm after the first scroll
   (html.ib-armed), so a page that never scrolls, has no JavaScript or asks for reduced motion shows its final state. */
:root { --red: #B3001B; --paper: #F2F2F2; --ease: cubic-bezier(0.2, 0.8, 0.2, 1); }
.ib-wrap { width: 100%; max-width: calc(1120px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.ib-sec { position: relative; padding-block: clamp(56px, 9vw, 120px); scroll-margin-top: 16px; }
.ib-sec p { max-width: 68ch; }
.ib-h2 { font: 400 clamp(36px, 6.6vw, 96px)/0.94 var(--lk-font-display); letter-spacing: -0.015em; margin-bottom: 0.4em; text-wrap: balance; text-shadow: 0.045em 0.045em 0 var(--yellow); transition: opacity 0.6s ease, translate 0.7s var(--ease); }
.ib-h2--s { font-size: clamp(30px, 4vw, 56px); }
.ib-eye { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 700 14px/1 var(--lk-font-body); letter-spacing: 0.14em; text-transform: uppercase; text-shadow: none; }
.ib-eye::before { content: ""; flex: none; width: 24px; height: 16px; border: 2px solid var(--ink); border-left-width: 5px; background: var(--yellow); transform-origin: 0 100%; transition: rotate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ib-lede { font: 500 clamp(17px, 1.6vw, 20px)/1.55 var(--lk-font-body); color: var(--muted); margin-bottom: 40px; }
.ib-list { list-style: none; }
.ib-list li { position: relative; padding-left: 22px; max-width: 64ch; }
.ib-list li + li { margin-top: 10px; }
.ib-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 3px; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); }
.ib-h3 { font: 600 24px/1.2 var(--lk-font-body); }
.lk-item[hidden] { display: none !important; }

/* Reveal: only once armed, only for what is still below the fold */
.ib-rv { transition: opacity 0.55s ease calc(var(--i, 0) * 70ms), translate 0.6s var(--ease) calc(var(--i, 0) * 70ms), scale 0.5s var(--ease) calc(var(--i, 0) * 70ms), transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease; }
.ib-armed .ib-rv:not(.in) { translate: 0 32px; }
.ib-armed .ib-sec:not(.in) .ib-h2 { translate: -36px 0; }
.ib-armed .ib-sec:not(.in) .ib-eye::before { rotate: 70deg; }

/* Journey strip: one email, four stops */
.ib-journey { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin-top: clamp(32px, 5vw, 64px); }
.ib-journey li { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; font: 400 clamp(15px, 2vw, 24px)/1.1 var(--lk-font-display); }
.ib-jn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font: 400 18px/1 var(--lk-font-display); }
.ib-journey li::after { content: ""; position: absolute; left: 56px; right: 12px; top: 22px; z-index: -1; border-top: 3px dashed var(--ink); transform-origin: left; transition: transform 0.7s var(--ease) calc(var(--i, 0) * 90ms + 200ms); }
.ib-journey li:last-of-type::after { display: none; }
.ib-jt { position: relative; padding-right: 10px; background: var(--bg); }
.ib-armed .ib-journey li:not(.in)::after { transform: scaleX(0); }
.ib-armed .ib-journey li:not(.in) .ib-jn { scale: 0.4; }
.ib-jn { transition: scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 90ms); }

/* What + Why: two letters, offset, overlapping */
.ib-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: start; margin-block: clamp(40px, 6vw, 88px); }
.ib-pair > .ib-sec { padding-block: 0; }
.ib-card2 { position: relative; padding: clamp(24px, 3.4vw, 48px) !important; border: 2px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: 10px 10px 0 var(--yellow); }
.ib-card2:hover { transform: translate(-3px, -4px); box-shadow: 14px 14px 0 var(--yellow); }
#what { rotate: -1.2deg; z-index: 2; margin-right: -22px; }
#why { rotate: 1deg; margin-top: 56px; z-index: 1; }
.ib-card2::after { position: absolute; top: -30px; right: 22px; display: grid; place-items: center; width: 76px; height: 76px; border: 3px double var(--ink); border-radius: 50%; background: var(--yellow); font: 400 22px/1 var(--lk-font-display); rotate: 12deg; }
#what::after { content: "01"; }
#why::after { content: "02"; }

/* Try: the envelope check */
.ib-tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ib-field { display: grid; gap: 8px; font: 700 14px/1.2 var(--lk-font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.ib-field em { font-style: normal; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.ib-in { width: 100%; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); font: 600 18px/1.2 var(--lk-font-body); letter-spacing: 0; text-transform: none; }
.ib-in::placeholder { color: var(--muted); }
.ib-in:focus-visible { outline-offset: 2px; }
.ib-chk { flex-direction: column; align-items: flex-start; margin: 22px 0; }
.ib-chk[hidden] { display: none; }
.ib-sw { transition: box-shadow 0.15s ease, translate 0.15s ease, background-color 0.2s ease; }
.ib-sw:hover { translate: 0 -1px; box-shadow: 0 0 0 3px var(--hi); }
.ib-sw:active { translate: 0 1px; box-shadow: none; }
.ib-sw:active .ib-knob { width: 18px; }
.ib-recs { display: grid; gap: 10px; }
.ib-rec { margin: 0; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: 3px; background: #fff; color: var(--ink); transition: background-color 0.3s ease, color 0.3s ease; }
.ib-rec figcaption { margin-bottom: 4px; font: 700 12px/1.2 var(--lk-font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.ib-rec figcaption::after { content: "  not set"; font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.ib-rec code { display: block; font: 500 13.5px/1.5 var(--lk-font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.ib-rec[data-on="1"] { border-style: solid; background: var(--ink); color: #fff; }
.ib-rec[data-on="1"] figcaption::after { content: "  set"; }
.ib-rec[data-on="1"] .ib-dom { color: var(--yellow); }

.ib-stage2 { position: relative; height: 380px; overflow: hidden; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow) radial-gradient(rgba(22, 22, 22, 0.16) 1.4px, transparent 1.7px) 0 0 / 14px 14px; }
.ib-trays { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ib-tray { display: block; padding: 12px 12px 14px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; background: #fff; color: var(--ink); font: 400 clamp(13px, 1.8vw, 18px)/1.1 var(--lk-font-display); height: 96px; transition: background-color 0.35s ease, color 0.35s ease; }
.ib-env[data-result="inbox"] [data-t="inbox"], .ib-env[data-result="spam"] [data-t="spam"] { background: var(--ink); color: #fff; }
.ib-env[data-result="rejected"] [data-t="rejected"] { background: var(--red); color: #fff; border-color: var(--red); }
.ib-letter { position: absolute; z-index: 2; top: 30px; left: var(--lx, 83%); width: 170px; height: 114px; margin-left: -85px; border: 3px solid var(--ink); border-radius: 8px; background: #fff; rotate: -8deg;
  background-image: linear-gradient(to bottom right, transparent 48%, var(--ink) 48%, var(--ink) 52%, transparent 52%), linear-gradient(to bottom left, transparent 48%, var(--ink) 48%, var(--ink) 52%, transparent 52%);
  background-size: 50% 62%, 50% 62%; background-position: left top, right top; background-repeat: no-repeat;
  transition: left 0.7s cubic-bezier(0.3, 1.25, 0.5, 1), top 0.7s var(--ease), rotate 0.5s ease; }
.ib-env[data-result="inbox"] { --lx: 17%; }
.ib-env[data-result="spam"] { --lx: 50%; }
.ib-env[data-result="rejected"] { --lx: 83%; }
.ib-env[data-result="inbox"] .ib-letter { top: calc(100% - 158px); rotate: -2deg; }
.ib-env[data-result="spam"] .ib-letter { top: calc(100% - 158px); rotate: 9deg; }
.ib-seal { position: absolute; bottom: 9px; width: 22px; height: 22px; border: 2px dashed var(--ink); border-radius: 50%; background: #fff; transition: background-color 0.3s ease, scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ib-seal:nth-child(1) { left: 12px; } .ib-seal:nth-child(2) { left: 40px; } .ib-seal:nth-child(3) { left: 68px; }
.ib-seal[data-on="1"] { border-style: solid; background: var(--yellow); scale: 1.12; }
.ib-stamp { position: absolute; top: 56%; left: 50%; translate: -50% -50%; padding: 4px 9px; border: 3px solid var(--red); border-radius: 6px; background: #fff; color: var(--red); font: 400 17px/1 var(--lk-font-display); text-transform: uppercase; rotate: -12deg; white-space: nowrap; }
.ib-env[data-result="inbox"] .ib-stamp { border-color: var(--ink); color: var(--ink); background: var(--yellow); top: 26%; }
.ib-env[data-result="spam"] .ib-stamp { border-color: var(--ink); border-style: dashed; color: var(--ink); top: 26%; }
.ib-env.pop[data-result="rejected"] .ib-letter { animation: ib-shake 0.5s ease 0.55s; }
.ib-env.pop .ib-stamp { animation: ib-stampin 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) 0.45s backwards; }
@keyframes ib-shake { 0%, 100% { translate: 0 0; } 20% { translate: -9px 0; } 40% { translate: 9px 0; } 60% { translate: -6px 0; } 80% { translate: 5px 0; } }
@keyframes ib-stampin { from { scale: 2.2; opacity: 0; } to { scale: 1; opacity: 1; } }
.ib-verdict { margin-top: 20px; max-width: none !important; }
.ib-v { display: block; font: 400 clamp(36px, 5vw, 64px)/1 var(--lk-font-display); text-shadow: 0.05em 0.05em 0 var(--yellow); }
.ib-env[data-result="rejected"] .ib-v { color: var(--red); }
.ib-vw { display: block; margin-top: 10px; max-width: 60ch; font: 500 18px/1.5 var(--lk-font-body); }
.ib-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.ib-copy2[hidden] { display: none; }
.ib-btn { transition: background-color 0.2s ease, color 0.2s ease, scale 0.12s ease, box-shadow 0.2s ease; }
.ib-btn:hover { box-shadow: 4px 4px 0 var(--ink); }
.ib-btn:active { scale: 0.97; box-shadow: none; }
.ib-copied { min-height: 0; font-size: 16px; color: var(--ink); }
.ib-copied:empty { display: none; }

/* Agent / You: two envelopes with airmail edges */
.ib-pair--plain { gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.ib-env2 { position: relative; padding: clamp(24px, 3vw, 40px) !important; border: 12px solid transparent; border-image: repeating-linear-gradient(135deg, var(--ink) 0 16px, #fff 16px 26px, var(--yellow) 26px 42px, #fff 42px 52px) 12; background: #fff; box-shadow: 10px 10px 0 var(--hi); }
.ib-env2:hover { transform: translate(-3px, -4px); box-shadow: 14px 14px 0 var(--hi); }
#agent { rotate: -0.8deg; } #you { rotate: 0.8deg; margin-top: 36px; }
.ib-addr { margin-bottom: 16px; font: 700 14px/1 var(--lk-font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.ib-addr span { display: inline-block; margin-right: 8px; padding: 5px 10px; background: var(--ink); color: #fff; }
.ib-env2 .ib-h2 { margin-bottom: 0.6em; }
.ib-env2 .ib-list li { padding: 9px 8px 9px 30px; border-bottom: 1px solid var(--rule); transition: background-color 0.2s ease, padding-left 0.2s ease; }
.ib-env2 .ib-list li + li { margin-top: 0; }
.ib-env2 .ib-list li::before { left: 8px; top: 1.05em; }
.ib-env2 .ib-list li:hover { background: var(--hi); padding-left: 38px; }

/* Money: stacked parcel labels */
.ib-money .lk-table-wrap { overflow: visible; border: 0; border-radius: 0; }
.ib-money .lk-money, .ib-money .lk-money tbody { display: block; }
.ib-money .lk-money thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ib-money .lk-money tr { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 26px; padding: 30px clamp(18px, 2.6vw, 32px) 22px; border: 2px solid var(--ink); border-bottom: 2px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: 8px 8px 0 var(--yellow); rotate: -0.4deg; }
.ib-money .lk-money tr:nth-child(even) { rotate: 0.4deg; margin-left: clamp(0px, 3vw, 40px); margin-right: calc(-1 * clamp(0px, 3vw, 40px)); }
.ib-money .lk-money tr:hover { rotate: 0deg; transform: translate(-3px, -4px); box-shadow: 12px 12px 0 var(--yellow); }
.ib-money .lk-money tr::before { content: ""; position: absolute; left: clamp(18px, 2.6vw, 32px); top: 9px; width: 120px; height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px); }
.ib-money .lk-money td { display: block; min-width: 0; padding: 0; border: 0; background: none; overflow-wrap: anywhere; }
.ib-money .lk-money td::before { content: attr(data-label); display: block; margin-bottom: 3px; font: 700 11px/1.3 var(--lk-font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ib-money .lk-money td:nth-child(1) { grid-column: 1 / -1; font: 400 clamp(22px, 3vw, 34px)/1.05 var(--lk-font-display); }
.ib-money .lk-money td:nth-child(1)::before { display: none; }
.ib-money .lk-money td:nth-child(2) { grid-column: 1; font-weight: 600; }
.ib-money .lk-money td:nth-child(3) { grid-column: 2 / span 2; padding: 10px 12px; border-radius: 3px; background: var(--hi); }
.ib-money .lk-money td:nth-child(4) { grid-column: 4; font-weight: 600; }
.ib-money .lk-money td:nth-child(5) { grid-column: 1; font-size: 15px; }
.ib-money .lk-money td:nth-child(6) { grid-column: 2 / -1; font-size: 15px; }
.ib-money .lk-money tr:last-child td { border: 0; }

/* When: postmarks on an ink band */
.ib-dark { background: var(--ink); color: var(--bg); }
.ib-dark .ib-lede { color: #DADADA; }
.ib-dark :focus-visible { outline-color: var(--yellow); }
.ib-dark .ib-eye::before { border-color: #fff; }
.ib-rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; list-style: none; border: 0; }
.ib-rows .lk-phase { position: relative; display: grid; place-content: center; justify-items: center; aspect-ratio: 1; padding: 14px; border: 3px solid var(--bg); border-radius: 50%; background: var(--bg); color: var(--ink); text-align: center; rotate: -6deg; transition: background-color 0.25s ease, rotate 0.3s var(--ease), scale 0.3s var(--ease), opacity 0.5s ease calc(var(--i, 0) * 120ms); }
.ib-rows .lk-phase:nth-child(2) { rotate: 4deg; } .ib-rows .lk-phase:nth-child(3) { rotate: -3deg; } .ib-rows .lk-phase:nth-child(4) { rotate: 7deg; }
.ib-rows .lk-phase::before { content: ""; position: absolute; inset: 9px; border: 2px dashed var(--ink); border-radius: 50%; }
.ib-rows .lk-phase::after { content: ""; position: absolute; z-index: -1; left: 72%; top: 34%; width: 56%; height: 32%; background: repeating-linear-gradient(180deg, var(--bg) 0 3px, transparent 3px 10px); }
.ib-rows .lk-phase:last-child::after { display: none; }
.ib-rows .lk-phase:hover { background: var(--yellow); rotate: 0deg; scale: 1.05; }
.ib-rows strong { display: block; font: 400 clamp(44px, 6.4vw, 96px)/1 var(--lk-font-display); font-variant-numeric: tabular-nums; }
.ib-rows .lk-phase .ib-pname { margin: 0; color: var(--ink); font: 700 clamp(13px, 1.7vw, 20px)/1.15 var(--lk-font-body); letter-spacing: 0.04em; text-transform: uppercase; }
.ib-armed .ib-rows .lk-phase.ib-rv:not(.in) { translate: 0 0; scale: 1.4; }

/* Checklist: pigeonholes, channel by phase */
.lk-filter { font-weight: 600; transition: background-color 0.15s ease, translate 0.15s ease; }
.lk-filter:hover { border-color: var(--ink); translate: 0 -1px; }
.lk-filter:active { translate: 0 1px; }
.lk-filter[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.lk-filter { border: 2px solid var(--ink); border-radius: 3px; }
.lk-filter:focus-visible { border-radius: 3px; }
.ib-catbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; font-size: 16px; }
.ib-catbar[hidden] { display: none; }
.ib-catbar-btn { padding: 6px 14px; border: 2px solid var(--ink); border-radius: 3px; background: var(--bg); color: var(--ink); font: 600 15px/1.3 var(--lk-font-body); }
.ib-catbar-btn:hover { background: var(--yellow); }
.ib-catbar-btn:focus-visible { border-radius: 3px; }
.lk-item.ib-out, .lk-cat.ib-out, .ib-hrow.ib-out { display: none; }
.ib-none { margin-top: 20px; font: 600 20px/1.3 var(--lk-font-body); }
.ib-none--items { margin: 0 0 20px; font-size: 18px; }
.ib-sws--mirror { margin-bottom: 20px; }
.ib-js #items .lk-items { display: block; margin-top: 24px; list-style: none; }
.ib-js #items .lk-items > .lk-cat { display: none; }
.ib-colhead, .ib-hrow { display: grid; grid-template-columns: 178px repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.ib-colhead { margin-bottom: 8px; font: 700 13px/1.2 var(--lk-font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.ib-hrow { margin-bottom: 10px; }
.ib-hlabel { align-self: start; padding: 10px 12px; border-radius: 8px; background: var(--yellow); font: 400 15px/1.15 var(--lk-font-display); }
.ib-hcell { display: flex; flex-direction: column; gap: 8px; min-height: 92px; padding: 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: inset 0 9px 0 rgba(22, 22, 22, 0.1); list-style: none; }
.ib-hcell .lk-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; padding: 9px 11px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); max-width: none; transition: translate 0.18s var(--ease), box-shadow 0.18s ease, background-color 0.18s ease; }
.ib-hcell .lk-item[data-who="founder"] { background: var(--yellow); }
.ib-hcell .lk-item:hover { translate: -2px -3px; box-shadow: 4px 4px 0 var(--ink); background: var(--hi); }
.ib-hcell .lk-id { grid-column: 1; grid-row: 1; color: var(--ink); font: 700 12px/1.3 var(--lk-font-mono); }
.ib-hcell .lk-who { grid-column: 2; grid-row: 1; color: var(--ink); font: 700 11px/1.3 var(--lk-font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.ib-hcell .lk-title { grid-column: 1 / -1; grid-row: 2; font: 600 16px/1.25 var(--lk-font-body); }
.ib-hcell .lk-when { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* End: the sealed envelope */
.ib-end { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ib-plate { display: block; padding: 12px; border: 2px solid var(--ink); background: #fff; box-shadow: 10px 10px 0 var(--yellow); rotate: -2.5deg; transition: rotate 0.35s var(--ease), transform 0.25s ease, opacity 0.55s ease, translate 0.6s var(--ease); }
.ib-plate:hover { rotate: 0deg; }
.ib-plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ib-end-text { position: relative; padding: 150px clamp(22px, 3.4vw, 48px) clamp(24px, 3.4vw, 44px); border: 2px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: 10px 10px 0 var(--yellow); }
.ib-end-text::before, .ib-end-text::after { content: ""; position: absolute; top: -2px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ib-end-text::before { left: -2px; right: -2px; height: 118px; background: var(--ink); }
.ib-end-text::after { left: 5px; right: 5px; height: 106px; background: var(--yellow); }
.ib-seals { position: absolute; z-index: 2; top: 56px; left: 50%; display: flex; transform: translateX(-50%); }
.ib-seals span { display: grid; place-items: center; width: 66px; height: 66px; margin-inline: -4px; border: 3px double var(--ink); border-radius: 50%; background: #fff; font: 400 12px/1 var(--lk-font-display); transition: scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--k, 0) * 160ms + 250ms), rotate 0.5s ease calc(var(--k, 0) * 160ms + 250ms), opacity 0.3s ease calc(var(--k, 0) * 160ms + 250ms); }
.ib-seals span:nth-child(1) { --k: 0; rotate: -8deg; } .ib-seals span:nth-child(2) { --k: 1; rotate: 5deg; background: var(--yellow); } .ib-seals span:nth-child(3) { --k: 2; rotate: -3deg; }
.ib-armed .ib-end-text:not(.in) .ib-seals span { scale: 0.2; rotate: -50deg; }
.ib-end-text .ib-h2 { font-size: clamp(30px, 4.2vw, 60px); }

/* Run: yellow band, parcel-label prompt */
.ib-sun { background: var(--yellow); color: var(--ink); }
.ib-sun .ib-lede, .ib-sun .lk-run-note, .ib-sun .ib-note, .ib-sun .lk-copy-status { color: var(--ink); }
.ib-sun .ib-h2 { text-shadow: 0.045em 0.045em 0 #fff; }
.ib-prompt { margin-bottom: 44px; max-width: 880px; }
.ib-prompt .lk-prompt-text { padding: 20px 22px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: 8px 8px 0 var(--ink); font-size: 16px; }
.ib-sun .ib-btn:hover { background: #fff; }
.ib-run-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(24px, 4vw, 56px); }
.ib-run-grid > div { padding: clamp(20px, 2.6vw, 32px); border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.ib-run-grid > div:nth-child(1) { rotate: -0.6deg; } .ib-run-grid > div:nth-child(2) { rotate: 0.6deg; }
.ib-run-grid > div:hover { transform: translate(-2px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.ib-run-grid .ib-h3 { display: inline-block; margin-bottom: 14px; padding: 4px 12px; background: var(--ink); color: #fff; font-size: 18px; }
.ib-files code { display: block; color: var(--ink); }
.ib-note { margin-top: 14px; font-size: 16px; }
.lk-run-note { margin-top: 28px; }

/* Terms: a sheet of address labels */
.lk-terms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.lk-terms > div { position: relative; padding: 14px 16px 16px; border: 2px solid var(--ink); border-left-width: 10px; border-left-color: var(--yellow); border-radius: 8px; background: #fff; transition: translate 0.2s var(--ease), rotate 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.5s ease calc(var(--i, 0) * 50ms); }
.lk-terms > div:hover { translate: 0 -3px; rotate: -0.8deg; box-shadow: 4px 4px 0 var(--ink); }
.lk-terms > div:has(dt:target) { background: var(--hi); }
.lk-terms dt { font: 400 19px/1.15 var(--lk-font-display); }
.lk-terms dt:target { outline: 0; }
.lk-terms dd { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.ib-armed .lk-terms > div.ib-rv:not(.in) { translate: 0 18px; rotate: 2deg; }

/* Before / after: two postcards */
.lk-next { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.lk-next > div { position: relative; padding: 26px 96px 26px 26px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: 8px 8px 0 var(--yellow); }
.lk-next > div:nth-child(1) { rotate: -0.8deg; } .lk-next > div:nth-child(2) { rotate: 0.8deg; }
.lk-next > div::after { content: ""; position: absolute; top: 18px; right: 18px; width: 48px; height: 58px; border: 3px dashed var(--ink); background: var(--yellow); }
.lk-next h3 { color: var(--ink); font-family: var(--lk-font-body); }
.lk-next > div:hover { transform: translate(-2px, -3px); box-shadow: 12px 12px 0 var(--yellow); }

/* Paper plane that flies down the margin as you read */
.ib-flight { position: fixed; z-index: 30; top: 96px; right: 16px; display: none; width: 40px; height: calc(100vh - 260px); pointer-events: none; }
.ib-flight::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed #8A8A8A; }
.ib-fp { position: absolute; left: 0; top: calc(var(--p, 0) * (100% - 30px)); width: 40px; height: 30px; overflow: visible; rotate: 63deg; }
.ib-fp polygon, .ib-fp path { stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.ib-fp .ib-yel { fill: var(--yellow); } .ib-fp .ib-shade { fill: var(--shade); } .ib-fp path { fill: none; }
@media (min-width: 1280px) { .ib-flight { display: block; } }
@supports (animation-timeline: scroll()) {
  @keyframes ib-fly { from { top: 0; } to { top: calc(100% - 30px); } }
  .ib-fp { top: 0; animation: ib-fly linear both; animation-timeline: scroll(root); }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  :root { --gut: 16px; }
  body { font-size: 16px; line-height: 1.55; }
  .ib-hero-in { display: flex; flex-direction: column; padding: 12px var(--gut) 40px; }
  .ib-copy { display: contents; }
  .ib-sws { order: 1; margin-bottom: 20px; }
  .ib-h1 { order: 2; }
  .ib-name { font-size: 17px; margin-bottom: 8px; }
  .ib-headline { font-size: 42px; line-height: 0.98; }
  .ib-stage { order: 3; position: relative; top: auto; right: auto; align-self: flex-end; width: 72vw; margin-top: 12px; }
  .ib-again { position: static; display: block; margin: 6px 0 0 auto; }
  .ib-one { order: 4; margin-top: 24px; font-size: 17px; }
  .ib-actions { order: 5; margin-top: 22px; gap: 14px 20px; }
  .ib-btn { width: 100%; }
  .ib-cards { order: 6; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .ib-none { order: 7; }
  .ib-plane { left: auto; right: 12px; top: -24px; width: 56px; }
  .ib-star { left: auto; right: 20px; bottom: auto; top: -34px; width: 44px; height: 44px; }
  .ib-card { padding: 20px; }
  .ib-h3 { font-size: 20px; }
  .ib-card p { font-size: 16px; }
  .ib-chk .ib-sw, .ib-sws--mirror .ib-sw { width: auto; }
  .ib-pair { grid-template-columns: 1fr; gap: 28px; }
  #what { margin-right: 0; } #why { margin-top: 0; }
  .ib-journey { grid-template-columns: 1fr 1fr; gap: 20px 8px; }
  .ib-journey li:nth-child(2)::after { display: none; }
  .ib-tool { grid-template-columns: 1fr; }
  .ib-money .lk-money tr, .ib-money .lk-money tr:nth-child(even) { grid-template-columns: 1fr; margin-inline: 0; rotate: 0deg; }
  .ib-money .lk-money td:nth-child(n) { grid-column: 1; }
  .ib-rows { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .ib-rows .lk-phase::after { display: none; }
  .ib-colhead { display: none; }
  .ib-hrow { display: block; margin-bottom: 18px; }
  .ib-hlabel { margin-bottom: 8px; }
  .ib-hcell { margin-bottom: 8px; min-height: 0; }
  .ib-hcell::before { content: attr(data-label); font: 700 12px/1.2 var(--lk-font-body); letter-spacing: 0.1em; text-transform: uppercase; }
  .ib-hcell:empty, .ib-hcell.ib-quiet { display: none; }
  .ib-end { grid-template-columns: 1fr; }
  .ib-run-grid { grid-template-columns: 1fr; }
  .ib-prompt .lk-prompt-text { font-size: 14px; padding: 14px 16px; box-shadow: 5px 5px 0 var(--ink); }
  .lk-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-next { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ib-card2, .ib-env2, .ib-end-text, .ib-plate, .ib-money .lk-money tr { box-shadow: 6px 6px 0 var(--yellow); }
  .ib-env2 { box-shadow: 6px 6px 0 var(--hi); }
  .ib-journey li { font-size: 15px; }
  .ib-stage2 { height: 330px; }
  .ib-letter { width: 124px; height: 86px; margin-left: -62px; }
  .ib-env[data-result="inbox"] .ib-letter, .ib-env[data-result="spam"] .ib-letter { top: calc(100% - 140px); }
  .ib-seal { width: 16px; height: 16px; bottom: 6px; }
  .ib-seal:nth-child(1) { left: 8px; } .ib-seal:nth-child(2) { left: 29px; } .ib-seal:nth-child(3) { left: 50px; }
  .ib-stamp { font-size: 12px; border-width: 2px; padding: 3px 6px; }
  .ib-tray { padding: 10px 6px; font-size: 12px; }
  .lk-terms { grid-template-columns: 1fr; }
  .ib-seals span { width: 54px; height: 54px; font-size: 10px; }
  .ib-end-text { padding-top: 130px; }
  .lk-next > div { padding-right: 84px; }
}
/* ---------- v3: the post office below the hero ----------
   Airmail bands, envelopes whose flaps open on hover, postage stamps, postmarks that stamp in, a route the letter
   travels and a sorting-office pigeonhole wall. Decorative parts are pseudo-elements or aria-hidden spans built in JS. */
:root {
  --air: repeating-linear-gradient(-45deg, var(--red) 0 14px, #fff 14px 21px, var(--ink) 21px 35px, #fff 35px 42px);
  --perf: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 5px 5px, #0000 2.3px, #000 2.8px) 0 0 / 10px 10px;
  --pop: cubic-bezier(0.2, 1.5, 0.4, 1);
}
main { overflow-x: clip; }

/* Airmail bands on the two coloured sections */
.ib-dark::before, .ib-dark::after, .ib-sun::before, .ib-sun::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--air); }
.ib-dark::before, .ib-sun::before { top: 0; }
.ib-dark::after, .ib-sun::after { bottom: 0; }

/* The route: one letter, four stops, on a map grid */
.ib-journey { position: relative; padding: 34px clamp(16px, 2.4vw, 28px) 30px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; box-shadow: 10px 10px 0 var(--yellow);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, #EDEDED 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, #EDEDED 31px 32px); }
.ib-journey::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--air); }
.ib-journey .ib-jt { background: #fff; padding: 2px 10px 2px 4px; }
.ib-jn { border-style: double; border-width: 4px; width: 48px; height: 48px; }
.ib-journey li::after { top: 24px; left: 60px; }
.ib-js .ib-journey .ib-jn { background: #fff; transition: background-color 0.2s ease, scale 0.45s var(--pop), rotate 0.45s var(--pop); }
.ib-js .ib-journey .ib-jn.hit { background: var(--yellow); rotate: -12deg; }
.ib-jlet { position: absolute; z-index: 3; top: 6px; left: calc(clamp(16px, 2.4vw, 28px) + 6px + var(--rp, 1) * (100% - 2 * clamp(16px, 2.4vw, 28px)) * 0.75); width: 40px; height: 28px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; rotate: calc(-8deg + var(--rp, 1) * 14deg); pointer-events: none;
  background-image: linear-gradient(to bottom right, transparent 47%, var(--ink) 47% 55%, transparent 55%), linear-gradient(to bottom left, transparent 47%, var(--ink) 47% 55%, transparent 55%);
  background-size: 50% 70%; background-position: left top, right top; background-repeat: no-repeat; }
.ib-jlet::after { content: ""; position: absolute; top: 2px; right: 2px; width: 8px; height: 9px; background: var(--red); }

/* What / Why: envelopes. The flap opens on hover or focus (and once shown, on touch screens). */
.ib-js .ib-card2 { padding-top: clamp(92px, 9vw, 118px) !important; }
.ib-card2::after { z-index: 3; }
.ib-flap { position: absolute; z-index: 2; top: -2px; left: -2px; right: -2px; height: clamp(68px, 6.6vw, 90px); transform-origin: 50% 0; transform: perspective(900px) rotateX(0deg); transition: transform 0.6s cubic-bezier(0.3, 1.35, 0.5, 1); pointer-events: none; }
.ib-flap::before, .ib-flap::after { content: ""; position: absolute; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ib-flap::before { inset: 0; background: var(--ink); }
.ib-flap::after { inset: 0 4px 4px; background: linear-gradient(170deg, var(--hi), var(--yellow) 45%, var(--shade)); }
.ib-wax { position: absolute; z-index: 1; left: 50%; bottom: -16px; width: 34px; height: 34px; margin-left: -17px; border: 3px double #fff; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--ink); transition: scale 0.3s var(--pop); }
.ib-card2:hover .ib-flap, .ib-card2:focus-within .ib-flap { transform: perspective(900px) rotateX(178deg); }
.ib-card2:hover .ib-wax, .ib-card2:focus-within .ib-wax { scale: 0.6; }
.ib-card2 > .ib-h2, .ib-card2 > p { transition: translate 0.45s var(--ease) 0.12s; }
.ib-card2:hover > .ib-h2, .ib-card2:hover > p { translate: 0 -8px; }
@media (hover: none) { .ib-card2.in .ib-flap { transform: perspective(900px) rotateX(178deg); } .ib-card2.in .ib-wax { scale: 0.6; } }

/* Agent / You: airmail envelopes with a stamp and a postmark that stamps in */
.ib-env2 { border-image: var(--air) 12; }
.ib-env2::before { content: ""; position: absolute; z-index: 1; top: -30px; right: 22px; width: 62px; height: 74px; padding: 5px; rotate: 4deg;
  background: radial-gradient(circle at 50% 62%, var(--ink) 0 9px, transparent 9.5px) content-box, linear-gradient(var(--ink) 0 0) 50% 22% / 60% 4px no-repeat content-box, linear-gradient(var(--yellow) 0 0) content-box, var(--ink);
  -webkit-mask: var(--perf); mask: var(--perf); transition: rotate 0.3s var(--pop); }
#you::before { background: radial-gradient(circle at 50% 62%, #fff 0 9px, transparent 9.5px) content-box, linear-gradient(#fff 0 0) 50% 22% / 60% 4px no-repeat content-box, linear-gradient(var(--red) 0 0) content-box, var(--ink); }
.ib-env2::after { content: "AIR\A MAIL"; white-space: pre; position: absolute; z-index: 2; top: -24px; right: 62px; display: grid; place-items: center; width: 78px; height: 78px; border: 3px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--ink); color: var(--ink); font: 400 12px/1.05 var(--lk-font-display); text-align: center; rotate: -14deg;
  transition: scale 0.38s var(--pop) 0.35s, rotate 0.38s var(--pop) 0.35s; }
.ib-armed .ib-env2:not(.in)::after { scale: 2.4; rotate: -50deg; }
.ib-env2:hover::before { rotate: -6deg; }
.ib-addr span { border-radius: 2px; }

/* Money: every parcel gets a perforated stamp that slaps on */
.ib-money .lk-money tr::after { content: ""; position: absolute; top: -16px; right: 18px; width: 44px; height: 52px; padding: 5px; rotate: 6deg;
  background: linear-gradient(var(--ink) 0 0) 50% 30% / 56% 4px no-repeat content-box, radial-gradient(circle at 50% 66%, var(--ink) 0 6px, transparent 6.5px) content-box, linear-gradient(var(--yellow) 0 0) content-box, var(--ink);
  -webkit-mask: var(--perf); mask: var(--perf); transition: rotate 0.35s var(--pop), scale 0.35s var(--pop) 0.2s; }
.ib-money .lk-money tr:nth-child(3n+2)::after { background: linear-gradient(#fff 0 0) 50% 30% / 56% 4px no-repeat content-box, radial-gradient(circle at 50% 66%, #fff 0 6px, transparent 6.5px) content-box, linear-gradient(var(--red) 0 0) content-box, var(--ink); rotate: -5deg; }
.ib-money .lk-money tr:hover::after { rotate: -14deg; }
.ib-armed .ib-money .lk-money tr:not(.in)::after { scale: 2; rotate: 30deg; }
.ib-money .lk-money td:nth-child(1) { padding-right: 56px; }

/* When: postmarks land with a thump */
.ib-rows .lk-phase { transition: background-color 0.25s ease, rotate 0.3s var(--ease), scale 0.4s var(--pop) calc(var(--i, 0) * 140ms); }

/* Checklist: the sorting-office pigeonhole wall */
.ib-js #items .lk-items { position: relative; padding: 30px clamp(10px, 1.4vw, 18px) 16px; border-radius: 4px; background: var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.ib-js #items .lk-items::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; border-radius: 4px 4px 0 0; background: var(--air); }
.ib-colhead { color: var(--ink); }
.ib-colhead span:not(:empty) { padding: 7px 8px; border-radius: 2px; background: #fff; text-align: center; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #fff, inset 0 0 0 5px var(--ink); }
.ib-hlabel { position: relative; padding: 12px 14px; font-size: 14px; overflow-wrap: normal; hyphens: manual; border-radius: 2px; color: var(--ink); background: var(--yellow); box-shadow: inset 0 -4px 0 var(--shade), inset 0 3px 0 var(--hi); }
.ib-hlabel::before, .ib-hlabel::after { content: ""; position: absolute; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.ib-hlabel::before { left: 5px; } .ib-hlabel::after { right: 5px; }
.ib-hcell { border: 0; border-radius: 2px; background: #2B2B2B; box-shadow: inset 0 16px 18px -10px #000, inset 0 -4px 0 #3D3D3D, inset 4px 0 0 #222, inset -4px 0 0 #222; padding: 14px 10px 12px; }
.ib-hcell .lk-item { position: relative; padding: 16px 11px 9px; border-radius: 2px; rotate: -1deg;
  transition: translate 0.55s var(--ease) var(--d, 0ms), rotate 0.55s var(--ease) var(--d, 0ms), box-shadow 0.18s ease, background-color 0.18s ease; }
.ib-hcell .lk-item:nth-child(even) { rotate: 1.2deg; }
.ib-hcell .lk-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 13px; pointer-events: none;
  background: linear-gradient(to bottom right, transparent 46%, #8A8A8A 46% 54%, transparent 54%) left top / 50% 100% no-repeat, linear-gradient(to bottom left, transparent 46%, #8A8A8A 46% 54%, transparent 54%) right top / 50% 100% no-repeat; }
.ib-hcell .lk-item:nth-child(2) { --d: 80ms; } .ib-hcell .lk-item:nth-child(3) { --d: 160ms; } .ib-hcell .lk-item:nth-child(4) { --d: 240ms; } .ib-hcell .lk-item:nth-child(n+5) { --d: 320ms; }
.ib-hcell .lk-item:hover { translate: 0 -7px; rotate: 0deg; box-shadow: 4px 4px 0 var(--yellow); background-color: var(--hi); }
.ib-armed #items .ib-hrow:not(.in) .lk-item { translate: 70px -14px; rotate: 10deg; }
#items .lk-filters { margin-bottom: 8px; }

/* Before / after: postcards get real stamps */
.lk-next > div::after { border: 0; padding: 5px; width: 50px; height: 60px; rotate: 5deg; background: radial-gradient(circle at 50% 62%, var(--ink) 0 7px, transparent 7.5px) content-box, linear-gradient(var(--yellow) 0 0) content-box, var(--ink); -webkit-mask: var(--perf); mask: var(--perf); }
.lk-next > div:nth-child(2)::after { background: radial-gradient(circle at 50% 62%, #fff 0 7px, transparent 7.5px) content-box, linear-gradient(var(--red) 0 0) content-box, var(--ink); rotate: -4deg; }
.lk-terms > div { border-radius: 2px; }

@media (max-width: 900px) {
  .ib-journey { grid-template-columns: 1fr; gap: 18px; padding: 30px 16px 22px; }
  .ib-journey li::after, .ib-journey li:nth-child(2)::after { display: block; left: 22px; right: auto; top: 48px; height: 18px; border-top: 0; border-left: 3px dashed var(--ink); transform-origin: top; }
  .ib-journey li:last-of-type::after { display: none; }
  .ib-armed .ib-journey li:not(.in)::after { transform: scaleY(0); }
  .ib-jlet { left: auto; right: 18px; top: calc(28px + var(--rp, 1) * (100% - 80px)); rotate: calc(-6deg + var(--rp, 1) * 12deg); }
  .ib-js .ib-card2 { padding-top: 92px !important; }
  .ib-env2::after { width: 62px; height: 62px; font-size: 10px; right: 50px; top: -48px; }
  .ib-env2::before { width: 50px; height: 60px; top: -44px; }
  .ib-pair--plain { padding-top: 24px; gap: 64px; }
  .ib-js #items .lk-items { padding-inline: 10px; box-shadow: 6px 6px 0 var(--yellow); }
  .ib-hcell::before { color: #fff; }
  .ib-hrow { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
