/* PETTY landing. Tokens first: theme (page), palette (device + accent). Then base, layout, sections, device, tuner. */

/* ---------- theme tokens: the page ---------- */
:root {
  color-scheme: light;
  --floor: #DADAD8; --floor-2: #E6E6E4; --floor-3: #F0F0EE;
  --ink: #121212; --ink-2: #2B2C2E; --soft: #55585C;
  --line: rgba(18, 18, 18, .16); --line-2: rgba(18, 18, 18, .42);
  --card: #F6F6F4; --paper: #FDFDFB; --paper-ink: #121212; --paper-soft: #55585C;
  --bag-fill: #C3C8CD; --caught: #C4221A; --dv-shadow: .3; --floor-hi: #E8E8E6; --ghost: .045;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --type: "Courier Prime", "Courier New", Courier, monospace;   /* receipt paper only */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --rig: min(1120px, 100vw - 2 * var(--gutter));
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --floor: #131314; --floor-2: #19191A; --floor-3: #1F1F20;
  --ink: #F2F2F0; --ink-2: #D4D4D1; --soft: #A3A5A9;
  --line: rgba(255, 255, 255, .14); --line-2: rgba(255, 255, 255, .42);
  --card: #242425; --paper: #EFEFEC; --bag-fill: #4A4D51; --caught: #FF6B5E; --dv-shadow: .62; --floor-hi: #1F1F21; --ghost: .07;
}

/* ---------- palette tokens: the device and the accent ---------- */
:root, :root[data-palette="marker"] {
  --accent: #FFD60A; --accent-ink: #121212;
  --dv-body-1: #F9F9F7; --dv-body-2: #EBEBE8; --dv-edge: #BDBDB9; --dv-hi: #FFFFFF;
  --dv-well: #D7D7D3; --dv-well-2: #CFCFCB; --dv-panel: #E2E2DF; --dv-groove: #CFCFCB; --dv-groove-hi-o: 1;
  --dv-silk: #52555A; --dv-ink: #121212; --dv-inset-hi: .95;
  --dv-key-1: #FFE352; --dv-key-2: #FFD60A; --dv-key-3: #B99700; --dv-on-key: #121212; --dv-key-rim: .6;
  --dv-capw-1: #FFFFFF; --dv-capw-2: #EEEEEB; --dv-capw-side: #BEBEBA; --dv-capw-ink: #121212;
  --dv-capk-1: #2E2E2E; --dv-capk-2: #151515; --dv-capk-side: #000000; --dv-capk-ink: #F4F4F2;
  --dv-capg-1: #DCDFE2; --dv-capg-2: #C8CDD2; --dv-capg-side: #969CA2; --dv-capg-ink: #121212;
  --dv-skirt-1: #FDFDFB; --dv-skirt-2: #DCDCD8;
  --dv-bezel: #1B1B1B; --dv-screen: #0A0A0A; --dv-scr-accent: #FFD60A; --dv-scr-dim: #C8CDD2; --dv-dot: #3A3A39;
}
:root[data-palette="hivis"] {
  --dv-body-1: #FFE14D; --dv-body-2: #FFD20A; --dv-edge: #BF9A00; --dv-hi: #FFF4B0;
  --dv-well: #EBC400; --dv-well-2: #E0B900; --dv-panel: #F5CE00; --dv-groove: #D6AF00; --dv-groove-hi-o: .8;
  --dv-silk: #4A3E00; --dv-inset-hi: .75;
  --dv-key-1: #3C3C3C; --dv-key-2: #1C1C1C; --dv-key-3: #000000; --dv-on-key: #FFFFFF; --dv-key-rim: .18;
  --dv-capw-side: #B9A23A;
  --dv-capg-1: #FFF8CF; --dv-capg-2: #FFEE99; --dv-capg-side: #C9A200;
  --dv-skirt-1: #FFFFFF; --dv-skirt-2: #E6E6E2; --dv-dot: #4A3E00;
}
:root[data-palette="knit"] {
  --dv-body-1: #353637; --dv-body-2: #222223; --dv-edge: #070707; --dv-hi: #6A6B6C;
  --dv-well: #19191A; --dv-well-2: #151516; --dv-panel: #2A2B2C; --dv-groove: #141415; --dv-groove-hi-o: .35;
  --dv-silk: #B4B6B9; --dv-ink: #F2F2F0; --dv-inset-hi: .16;
  --dv-capw-1: #F4F4F2; --dv-capw-2: #DFDFDC; --dv-capw-side: #7C7C79;
  --dv-capk-1: #505152; --dv-capk-2: #3C3D3E; --dv-capk-side: #000000;
  --dv-capg-1: #AEB3B8; --dv-capg-2: #969DA3; --dv-capg-side: #555A5F;
  --dv-skirt-1: #EDEDEA; --dv-skirt-2: #C4C4C0;
  --dv-bezel: #0B0B0B; --dv-screen: #050505; --dv-dot: #000000;
}
:root[data-palette="cash"] {
  --accent: #27D17C; --accent-ink: #0F1F17;
  --dv-body-1: #F8FAF9; --dv-body-2: #E9ECEA; --dv-edge: #B9BEBB;
  --dv-well: #D5D9D6; --dv-well-2: #CDD1CE; --dv-panel: #E0E4E1; --dv-groove: #CDD1CE; --dv-silk: #4F5552;
  --dv-key-1: #6BEAA6; --dv-key-2: #27D17C; --dv-key-3: #12995A; --dv-on-key: #0F1F17;
  --dv-scr-accent: #3BE08D;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--floor); color: var(--ink); font: 400 1rem/1.5 var(--sans); overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--floor); padding: 10px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.h { font-family: var(--sans); font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h1.h { font-size: clamp(2rem, 1.05rem + 2.75vw, 3.25rem); }
h2.h { font-size: clamp(1.625rem, 1.15rem + 1.35vw, 2.25rem); }
.lede { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 34rem; text-wrap: pretty; }
.fact { font: 400 .8125rem/1.55 var(--mono); color: var(--soft); }
.fact b, .fact a { font-weight: 500; color: var(--ink); }
.status { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 700 .8125rem/1 var(--sans); font-stretch: 112%; padding: 7px 10px 6px; border-radius: 4px; }
.band .status { background: var(--accent-ink); color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--ink); color: var(--floor); font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 140ms var(--ease-out); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .link:hover, .nav a:hover { text-decoration-thickness: 2px; }
}

.rig { width: var(--rig); margin-inline: auto; position: relative; container-type: inline-size; }
section { position: relative; }
.pad { padding-block: clamp(64px, 9vw, 120px); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--floor) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { width: var(--rig); margin-inline: auto; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wm { font-family: var(--sans); font-stretch: 125%; font-weight: 900; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: .875rem; text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav__look, .nav__app { display: none; }
.btn.btn--sm { min-height: 36px; padding: 0 16px; font-size: .8125rem; width: auto; white-space: nowrap; }
.actions.actions--start { justify-content: flex-start; }

/* header tools: contract address (copies on a click), X, light or dark, and the menu on narrow screens */
.tools { display: flex; align-items: center; gap: 6px; }
.ca { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 5px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); font: 500 .8125rem/1 var(--mono); white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease-out, box-shadow 160ms ease-out; }
.ca__k { padding: 6px 8px 5px; border-radius: 999px; background: var(--ink); color: var(--floor); font-weight: 600; font-size: .6875rem; }
.ca__v { color: var(--ink-2); }
.ca__i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.ca:active, .look:active, .xl:active { transform: scale(.96); }
.ca.is-done { background: var(--accent); box-shadow: inset 0 0 0 1.5px transparent; }
.ca.is-done .ca__v { color: var(--accent-ink); }
.xl { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform 140ms var(--ease-out), background-color 160ms ease-out; }
.xl svg { width: 16px; height: 16px; fill: currentColor; }
.look { min-width: 60px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); font: 600 .8125rem/1 var(--sans); cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease-out; }
.menu { display: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--ink); color: var(--floor); font: 600 .8125rem/1 var(--sans); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .ca:hover, .look:hover, .xl:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); } .ca.is-done:hover { background: var(--accent); } }
@media (pointer: coarse) { .ca, .look, .menu, .btn--sm { min-height: 44px; } .xl { width: 44px; height: 44px; } }
/* a short answer under the thing you pressed: "Copied", "No contract yet", "Not live yet" */
[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% -4px; padding: 7px 10px 6px; border-radius: 6px; background: var(--ink); color: var(--floor); font: 500 .75rem/1 var(--mono); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 160ms ease-out, translate 220ms var(--ease-out); }
[data-tip].is-tip::after { opacity: 1; translate: -50% 0; }
@media (max-width: 1099px) {
  .menu { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--floor); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { width: 100%; min-height: 48px; font-size: 1.0625rem; padding: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 619px) {
  .tools > .look, .tools > .btn { display: none; }
  .nav__app { display: block; } .nav .nav__app a { font-weight: 700; color: var(--ink); }
  .nav__look { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 14px; }
}
@media (max-width: 419px) { .ca__v { display: none; } .ca { padding-right: 10px; } }

/* ---------- hero ---------- */
.hero { overflow: clip; padding-top: clamp(28px, 4.5vw, 56px); padding-bottom: 64px; }
.hero__copy { width: var(--rig); margin-inline: auto; text-align: center; }
.hero__copy .lede { margin: 14px auto 0; max-width: 27rem; }
.actions { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; margin-top: 20px; }
.hero .rig { margin-top: clamp(12px, 2vw, 28px); }
.slot { display: block; }
.slot > svg { width: 100%; height: auto; }
.slot--hero { width: 109.804%; margin-left: -4.902%; aspect-ratio: 1344 / 784; }
.slot--hero-m { display: none; }

/* the tape: paper leaving the printer slot */
.tape { background: var(--paper); color: var(--paper-ink); font: 400 .8125rem/1.6 var(--type); }
.tape a { color: inherit; }
.tape :focus-visible { outline-color: var(--paper-ink); }
.tape hr { border: 0; border-top: 1px dashed rgba(18, 18, 18, .55); margin: 8px 0; }
.tape__ln { display: flex; justify-content: space-between; gap: 12px; }
.tape__c { text-align: center; }
.strip { position: absolute; left: 6.373cqw; width: 31.046cqw; top: 35.866cqw; bottom: -64px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)) drop-shadow(0 12px 14px rgba(0, 0, 0, .2)); }
.tape--hero { position: relative; height: 100%; padding: 26px 18px 0; }
.tape--hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 18px; background: linear-gradient(rgba(18, 18, 18, .24), rgba(18, 18, 18, 0)); }

/* ---------- evidence ---------- */
.evidence { padding-bottom: clamp(64px, 9vw, 120px); }
.evidence__grid { display: grid; grid-template-columns: 31.046cqw 1fr; column-gap: 9cqw; padding-left: 6.373cqw; align-items: start; }
.roll { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .16)) drop-shadow(0 16px 18px rgba(0, 0, 0, .16)); }
.tape--roll { position: relative; padding: 8px 18px 34px; }
html:not(.motion) .tape--roll { -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.ex { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dashed rgba(18, 18, 18, .45); }
.ex__t { color: var(--paper-soft); }
.ex__a { text-align: right; font-weight: 700; }
.ex__d, .ex__s { grid-column: 1 / -1; }
.ex__d { font-size: .9375rem; line-height: 1.4; }
.ex__s a, .ex__s button { color: var(--paper-soft); }
.tape button.as-link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 24px; }
.ex__s a, .ex__s button.as-link { display: inline-block; padding: 4px 0; text-align: left; }
.tape__more { display: flex; justify-content: center; padding-top: 16px; }
.tape__more .btn { background: var(--paper-ink); color: var(--paper); min-height: 44px; font-size: .875rem; }
.evidence__copy { padding-top: clamp(56px, 8vw, 104px); max-width: 30rem; position: sticky; top: 56px; }
.evidence__copy .lede { margin-top: 14px; }
.evidence__copy .fact { margin-top: 20px; }
.evidence__copy .note { margin-top: 20px; font-size: .9375rem; color: var(--ink-2); max-width: 28rem; }

.ledger { width: var(--rig); margin: 48px auto 0; }
.ledger[hidden] { display: none; }
.ledger__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: .875rem; font-weight: 600; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--floor); box-shadow: none; }
.ledger__box { max-height: min(70vh, 640px); overflow: auto; background: var(--card); border: 1px solid var(--line); scrollbar-color: var(--soft) transparent; }
.ledger table { width: 100%; border-collapse: collapse; font: 400 .8125rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.ledger th { position: sticky; top: 0; background: var(--card); text-align: left; font-weight: 500; color: var(--soft); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ledger td { padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger .num { text-align: right; }
.ledger tr.is-main td { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- limit ---------- */
.limit { padding-top: clamp(64px, 9vw, 112px); overflow: clip; }
.limit__copy { width: var(--rig); margin-inline: auto; display: grid; justify-items: center; text-align: center; }
.limit__copy .lede { margin-top: 14px; max-width: 33rem; }
.dialer { width: min(100%, 40rem); margin-top: 28px; }
.dialer__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialer label { font-weight: 600; }
.dialer output { font: 600 1rem/1 var(--mono); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 0; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 0; }
.dialer input[type="range"] { margin-top: 4px; }
.presets { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.presets button { min-width: 64px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); font: 600 .875rem/1 var(--mono); cursor: pointer; }
.presets button[aria-pressed="true"] { background: var(--ink); color: var(--floor); box-shadow: none; }
.result { width: min(100%, 40rem); margin-top: 26px; text-align: left; }
.result__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.result__was { font: 500 1rem/1 var(--mono); color: var(--soft); }
.result__now { display: block; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); font-variant-numeric: tabular-nums; margin-top: 6px; }
.result__share { font: 400 .8125rem/1.5 var(--mono); color: var(--soft); text-align: right; }
.bag { height: 28px; background: var(--bag-fill); margin-top: 16px; position: relative; }
.bag__taken { position: absolute; inset: 0 auto 0 0; min-width: 2px; background: var(--ink); }
.bag__legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font: 400 .8125rem/1.4 var(--mono); color: var(--soft); }
.bag__legend b { color: var(--ink); font-weight: 500; }
.method { width: min(100%, 40rem); margin-top: 18px; text-align: left; font-size: .9375rem; color: var(--ink-2); }
.method summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.method p + p { margin-top: 8px; }
.slot--limit { width: calc(100% * 1342 / 960); margin-top: clamp(32px, 5vw, 64px); aspect-ratio: 1342 / 392; }
.slot--limit-m { display: none; }

/* ---------- how ---------- */
.how { overflow: clip; }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.slot--how { aspect-ratio: 492 / 430; }
.slot--how-m { display: none; }
.how__copy { padding: clamp(64px, 9vw, 112px) var(--gutter) clamp(64px, 9vw, 112px) clamp(24px, 5vw, 72px); max-width: 39rem; }
.how__copy .lede { margin-top: 14px; }
.spec { margin-top: 24px; border-top: 1px solid var(--line-2); }
.spec > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; }
.spec dt { font: 500 .8125rem/1.6 var(--mono); }
.spec dd { color: var(--ink-2); }

.make { }
.make__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 88px); align-items: start; }
.make .lede { margin-top: 14px; }
.make .status { margin-bottom: 14px; }
.steps { counter-reset: s; border-top: 1px solid var(--line-2); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 500 .8125rem/1.8 var(--mono); color: var(--soft); }
.steps b { display: block; font-weight: 700; }
.steps span { color: var(--ink-2); font-size: .9375rem; }
.make__no { margin-top: 16px; font-weight: 700; }

/* ---------- steal: the one full accent band ---------- */
.band { background: var(--accent); color: var(--accent-ink); }
.band :focus-visible { outline-color: var(--accent-ink); }
.steal__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 88px); align-items: center; }
.steal .lede { color: inherit; margin-top: 14px; }
.steal .status { margin-bottom: 14px; }
.steal__terms { margin-top: 22px; border-top: 1px solid currentColor; }
.steal__terms li { padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); font-size: .9375rem; }
.slot--steal { aspect-ratio: 624 / 470; }

/* ---------- badge ---------- */
.badge-sec { background: var(--floor-2); overflow: clip; }
.badge__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 88px); align-items: center; }
.plate { background: var(--paper); color: var(--paper-ink); padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; box-shadow: 0 1px 1px rgba(0, 0, 0, .16), 0 18px 28px -14px rgba(0, 0, 0, .3); max-width: 27rem; }
.plate__lim { background: var(--accent); color: var(--accent-ink); padding: 14px 14px 12px; text-align: center; border-radius: 6px; }
.plate__lim b { display: block; font-size: 1.75rem; }
.plate__lim span { font: 500 .75rem/1.2 var(--mono); }
.plate__t { font-size: 1.25rem; line-height: 1.1; }
.plate__m { margin-top: 8px; font: 400 .8125rem/1.5 var(--mono); color: var(--paper-soft); }
.badge-sec .lede { margin-top: 14px; }
.badge-sec .status { margin-top: 16px; }

/* ---------- fine print ---------- */
.fine { }
.fine__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 88px); align-items: start; }
.fine .lede { margin-top: 14px; }
.fine .spec { margin-top: 0; }
.fine .spec > div { grid-template-columns: 11rem 1fr; }

/* ---------- mask ---------- */
.mask-sec { }
.mask__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "stage copy" "stage controls"; grid-template-rows: auto 1fr; column-gap: clamp(24px, 6vw, 88px); align-items: start; }
.mask__stagecol { grid-area: stage; } .mask__copy { grid-area: copy; } .mask__controls { grid-area: controls; }
.mask__stage { position: relative; background: var(--card); border: 1px solid var(--line); aspect-ratio: 1; max-width: 30rem; }
.mask__stage canvas { width: 100%; height: 100%; touch-action: none; cursor: grab; }
.mask__stage.is-drag canvas { cursor: grabbing; }
.mask-sec .lede { margin-top: 14px; }
.field { margin-top: 18px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9375rem; padding: 0; }
.field input[type="text"] { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--card); font: 500 .9375rem/1 var(--mono); margin-top: 6px; }
.field input::placeholder { color: var(--soft); opacity: 1; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; position: relative; }
.mask__controls .file { margin-top: 20px; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.msg { margin-top: 12px; font-size: .9375rem; min-height: 1.5em; color: var(--ink-2); }
.msg.is-error { color: var(--caught); font-weight: 600; }
.swatches { display: flex; gap: 8px; margin-top: 8px; }
.swatches label { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: .875rem; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches input:checked + label { background: var(--ink); color: var(--floor); box-shadow: none; }
.swatches input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- footer ---------- */
/* one line: the name, the one sentence that has to be said, the section links */
.foot { padding: 10px 0; }
.foot__in { width: var(--rig); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 -8px 0 auto; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: .875rem; text-decoration: none; color: var(--ink-2); }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot p { font: 400 .75rem/1.5 var(--mono); color: var(--soft); }
@media (max-width: 1099px) {
  .foot { padding: 14px 0 18px; }
  .foot ul { margin: 0 0 0 -8px; flex-basis: 100%; }
}

/* ---------- the device ---------- */
.dv text { font-family: var(--sans); }
.dv .dv-mono { font-family: var(--mono); }
.dv-wordmark { font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }
.dv-shadow { fill: #000; opacity: var(--dv-shadow); }
.dv-shadow--tight { opacity: calc(var(--dv-shadow) * .72); }
.dv-edge { fill: var(--dv-edge); }
.dv-grain { opacity: .09; mix-blend-mode: multiply; }
.dv-lip { stroke: var(--dv-hi); }
.dv-groove { stroke: var(--dv-groove); }
.dv-groove-hi { stroke: var(--dv-hi); opacity: var(--dv-groove-hi-o); }
.dv-well { fill: var(--dv-well); } .dv-well2 { fill: var(--dv-well-2); } .dv-panel { fill: var(--dv-panel); }
.dv-silk { fill: var(--dv-silk); } .dv-ink { fill: var(--dv-ink); }
.dv-screw { stroke: var(--dv-silk); } .dv-dash { stroke: var(--dv-silk); }
.dv-tick { stroke: var(--dv-silk); stroke-width: 1.2; } .dv-tick-major { stroke: var(--dv-ink); stroke-width: 2; }
.dv-bezel { fill: var(--dv-bezel); } .dv-screen { fill: var(--dv-screen); } .dv-slot { fill: #0E0E0E; }
.dv-scr-accent { fill: var(--dv-scr-accent); } .dv-scr-dim { fill: var(--dv-scr-dim); opacity: .78; }
.dv-scr-rule { stroke: var(--dv-scr-dim); stroke-opacity: .25; }
.dv-dot { fill: var(--dv-dot); }
.dv-capw-side { fill: var(--dv-capw-side); } .dv-capw-ink { fill: var(--dv-capw-ink); }
.dv-capk-side { fill: var(--dv-capk-side); } .dv-capk-ink { fill: var(--dv-capk-ink); }
.dv-capg-side { fill: var(--dv-capg-side); } .dv-capg-ink { fill: var(--dv-capg-ink); }
.dv-key-side { fill: var(--dv-key-3); } .dv-key-ink { fill: var(--dv-on-key); }
.dv-key-edge { stroke: var(--dv-key-3); } .dv-key-contact { fill: var(--dv-key-2); } .dv-skirt-edge { stroke: var(--dv-edge); }
.dv-rim { stroke: #fff; }
.dv-rim--capw, .dv-rim--white { stroke-opacity: .9; } .dv-rim--capk { stroke-opacity: .16; } .dv-rim--capg { stroke-opacity: .55; }
.dv-rim--key { stroke-opacity: var(--dv-key-rim); } .dv-rim--hole { stroke: var(--dv-hi); stroke-opacity: .7; }
.ds-body1 { stop-color: var(--dv-body-1); } .ds-body2 { stop-color: var(--dv-body-2); }
.ds-capw1 { stop-color: var(--dv-capw-1); } .ds-capw2 { stop-color: var(--dv-capw-2); }
.ds-capk1 { stop-color: var(--dv-capk-1); } .ds-capk2 { stop-color: var(--dv-capk-2); }
.ds-capg1 { stop-color: var(--dv-capg-1); } .ds-capg2 { stop-color: var(--dv-capg-2); }
.ds-key1 { stop-color: var(--dv-key-1); } .ds-key2 { stop-color: var(--dv-key-2); } .ds-key3 { stop-color: var(--dv-key-3); }
.ds-skirt1 { stop-color: var(--dv-skirt-1); } .ds-skirt2 { stop-color: var(--dv-skirt-2); }
.ds-inset-hi { stop-color: #fff; stop-opacity: var(--dv-inset-hi); }
.dv-focus { stroke: var(--ink); opacity: 0; }
.dv-key, .dv-dial { outline: none; cursor: pointer; }
.dv-key:focus-visible .dv-focus, .dv-dial:focus-visible .dv-focus { opacity: 1; }
.dv-cap { transition: transform 130ms var(--ease-out); }
.dv-needle { transition: transform 260ms var(--ease-out); }
.dv-key:active .dv-cap { transform: translateY(3px); }
@media (hover: hover) and (pointer: fine) { .dv-key:hover .dv-cap { transform: translateY(-1.5px); } .dv-key:active .dv-cap { transform: translateY(3px); } }

/* ---------- smaller screens ---------- */
@media (max-width: 999px) {
  .evidence { padding-top: clamp(56px, 8vw, 96px); }
  .evidence__grid { grid-template-columns: 1fr; padding-left: 0; row-gap: 36px; }
  .evidence__copy { padding-top: 0; order: -1; position: static; }
  .roll { width: min(100%, 26rem); }
  .tape--roll { padding-top: 14px; }
  .make__grid, .steal__grid, .badge__grid, .fine__grid, .mask__grid { grid-template-columns: 1fr; }
  .mask__grid { grid-template-areas: "copy" "stage" "controls"; grid-template-rows: auto; row-gap: 24px; }
  .slot--steal { max-width: 30rem; }
}
@media (max-width: 759px) {
  .slot--hero, .strip, .slot--limit, .slot--how { display: none; }
  .slot--hero-m, .slot--limit-m, .slot--how-m { display: block; }
  .hero { padding-bottom: 0; }
  .slot--hero-m { aspect-ratio: 576 / 512; }
  .slot--limit-m { aspect-ratio: 576 / 694; width: var(--rig); margin: 36px auto 0; }
  .how__grid { grid-template-columns: 1fr; }
  .slot--how-m { aspect-ratio: 576 / 316; width: var(--rig); margin: 48px auto 0; }
  .how__copy { padding: 36px var(--gutter) 64px; }
  .spec > div, .fine .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .link { justify-content: center; }
  .file .btn { width: 100%; }
  .result__top { flex-direction: column; align-items: flex-start; }
  .result__share { text-align: left; }
  .pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .dv-cap, .dv-needle, .ca, .xl, .look, [data-tip]::after { transition: none; }
}

/* ---------- motion. Everything below needs html.motion, which the head script sets only when motion is welcome. ---------- */
.tilt { position: relative; }
.limit__copy, .how__copy { position: relative; z-index: 2; }
.dv-dial { touch-action: none; cursor: grab; }
.dv-dial.is-drag { cursor: grabbing; }
.dv-dial.is-drag .dv-needle { transition: none; }

/* entrances: the same list as REVEAL in js/motion.js */
.motion :is(.lede, .fact, .note, .actions, .dialer, .result, .method, .make__no, .spec > div, .steps > li, .steal__terms > li, .mask__stage, .msg, .file, .field, .kinds, .sales) { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease-out, transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.motion :is(.lede, .fact, .note, .actions, .dialer, .result, .method, .make__no, .spec > div, .steps > li, .steal__terms > li, .mask__stage, .msg, .file, .field, .kinds, .sales).is-in { opacity: 1; transform: none; }
.motion .hero .lede { transition-delay: 220ms; } .motion .hero .actions { transition-delay: 320ms; }
.motion .status { opacity: 0; transform: scale(.7); transform-origin: 0 50%; transition: opacity 200ms ease-out 120ms, transform 460ms cubic-bezier(.34, 1.56, .64, 1) 120ms; }
.motion .status.is-in { opacity: 1; transform: none; }
.motion .plate { opacity: 0; transform: scale(1.12) rotate(-3deg); transition: opacity 180ms ease-out, transform 520ms var(--ease-out); }
.motion .plate.is-in { opacity: 1; transform: none; }
.motion .strip-chart i { transform: scaleY(0); transform-origin: 50% 100%; transition: transform 700ms var(--ease-out); transition-delay: calc(var(--n, 0) * 3ms); }
.motion .strip-chart.is-in i { transform: none; }
/* headings rise word by word out of a mask */
.motion :is(h1, h2).h:not(.is-split) { visibility: hidden; }
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.motion .w > span { display: inline-block; transform: translateY(112%); transition: transform 820ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.motion .h.is-in .w > span { transform: none; }

/* the hero device rises in, sits tipped back a little, and leans toward the pointer */
/* The eye sits well below the device. Its face stays square to the page, so the paper lines up with the page at any
   scroll, and the thickness always shows: the front wall of the body, and the front of every key and of the knob. */
.hero .rig { perspective: 12000px; perspective-origin: 50% calc(100% + 4200px); }      /* a long lens from far below: depth shows, and nothing tapers like a pyramid */
.motion .tilt { opacity: 0; transform: translateY(56px) scale(.97); transition: opacity 500ms ease-out, transform 1100ms var(--ease-out); will-change: transform; }
.motion .tilt.is-in { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.motion .tilt.is-live { transition: none; }

/* the paper: a cut line that moves down the strip with a torn edge on it; lines appear behind it, never at it */
.motion .tape--hero, .motion .tape--roll { --cut: 0px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) 0 calc(var(--cut) - 8px) / 16px 8px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% max(0px, var(--cut) - 8px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) 0 calc(var(--cut) - 8px) / 16px 8px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% max(0px, var(--cut) - 8px) no-repeat; }
.motion .tape .ch { opacity: 0; } .motion .tape .ch.on { opacity: 1; }
.motion .tape hr.ch { transition: opacity 240ms ease-out; }
.motion .ex { border-bottom-color: transparent; transition: border-color 300ms ease-out; }
.motion .ex.is-typed { border-bottom-color: rgba(18, 18, 18, .45); }
.motion .tape__more { opacity: 0; transform: translateY(8px) scale(.96); transition: opacity 240ms ease-out, transform 420ms var(--ease-out); }
.motion .tape__more.is-in { opacity: 1; transform: none; }

/* the close-ups slide: js/motion.js moves these along x */
.motion :is(.slot--limit, .slot--limit-m, .slot--how, .slot--how-m) { will-change: transform; }
.motion .slot--steal { will-change: transform; transform-origin: 50% 100%; }

/* ---------- grounds: each section starts in the colour of the one above and settles into its own ---------- */
.hero { background: radial-gradient(90% 62% at 50% 20%, var(--floor-hi), var(--floor) 72%); }
.evidence { background: linear-gradient(var(--floor), var(--floor-3) 280px); overflow: clip; }
.limit { background: linear-gradient(var(--floor-3), var(--floor-2) 280px); }
.how { background: linear-gradient(var(--floor-2), var(--floor) 280px); }
.make { background: linear-gradient(var(--floor), var(--floor-3) 280px); }
.fine { background: linear-gradient(var(--floor-2), var(--floor) 280px); overflow: clip; }
.mask-sec { background: linear-gradient(var(--floor), var(--floor-3) 280px); }
.foot { background: var(--floor); border-top: 1px solid var(--line); position: relative; }

/* a very large, very faint mask behind some sections. Its pupils follow the pointer like the one on the screen. */
.ghost { position: absolute; z-index: 0; pointer-events: none; color: var(--ink); opacity: var(--ghost); height: auto; max-width: none; }
.ghost path { fill: currentColor; }
.ghost--evidence { right: -7vw; bottom: 4%; width: min(60vw, 900px); }
.ghost--fine { left: -9vw; bottom: -6%; width: min(54vw, 780px); }
.ghost--foot { right: -3vw; bottom: -28px; width: min(44vw, 600px); }
.evidence > .rig, .ledger, .fine > .rig, .foot__in { position: relative; z-index: 1; }

/* the close-ups sink into the page instead of ending on a hard cut */

/* ---------- the layered device: depth for the hero ---------- */
.slot--hero, .slot--hero-m, .tilt { transform-style: preserve-3d; }
/* The hero is built as a solid (js/device.js): --u is one device unit in px, every depth is a multiple of it.
   .dv3d__l  the flat drawings: the top of the body, and the screen just above it
   .w3       strips of the body's side wall, folded down from the top edge
   .p3       a raised part: slices (.s3) for its side, a drawing (.f3) for its top face */
.dv3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; --u: 1px; }
.dv3d__l { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--z) * var(--u))); }
.dv3d__under { position: absolute; display: block; border-radius: calc(30 * var(--u)); background: color-mix(in srgb, var(--dv-edge), #000 45%); transform: translateZ(calc(var(--depth) * var(--u) * -1));
  box-shadow: 0 calc(30 * var(--u)) calc(46 * var(--u)) rgba(0, 0, 0, var(--dv-shadow)), 0 calc(5 * var(--u)) calc(9 * var(--u)) rgba(0, 0, 0, calc(var(--dv-shadow) * .8)); }
.w3 { position: absolute; display: block; width: calc(var(--len) * var(--u) + .7px); height: calc(var(--depth) * var(--u)); transform-origin: 0 0; transform: rotate(var(--a)) rotateX(-90deg);
  background:
    linear-gradient(#0000 calc(56% - 1px), rgba(0, 0, 0, .2) calc(56% - 1px) 56%, rgba(255, 255, 255, .55) 56% calc(56% + 1.5px), #0000 calc(56% + 1.5px)),      /* the line where the two shells of the body meet */
    linear-gradient(var(--dv-hi) 0, var(--dv-body-2) 1.6%, color-mix(in srgb, var(--dv-body-2), var(--dv-edge) 42%) 7%, color-mix(in srgb, var(--dv-body-2), var(--dv-edge) 62%) 82%, color-mix(in srgb, var(--dv-edge), #000 16%));
  filter: brightness(calc(.97 + var(--l) * .1)); }
.p3 { position: absolute; display: block; transform-style: preserve-3d; -webkit-tap-highlight-color: transparent; }
.s3, .f3 { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transform: translateZ(calc(var(--z) * var(--u))); }
.f3 { overflow: visible; }
/* a slice is the colour of the wall, lighter towards the light and darker near the foot of the part */
.s3 { border-radius: var(--rad); background: linear-gradient(rgba(0, 0, 0, calc((1 - var(--t)) * .26)), rgba(0, 0, 0, calc((1 - var(--t)) * .26))), linear-gradient(172deg, var(--s1), var(--s2) 78%); }
.s3--capw { --s1: var(--dv-capw-2); --s2: var(--dv-capw-side); }
.s3--capg { --s1: var(--dv-capg-2); --s2: var(--dv-capg-side); }
.s3--capk { --s1: #3A3A3A; --s2: var(--dv-capk-side); }
.s3--key, .s3--knob { --s1: var(--dv-key-2); --s2: var(--dv-key-3); }
.s3--skirt { --s1: var(--dv-skirt-1); --s2: var(--dv-capw-side); }
.s3--bezel { --s1: #2A2A2A; --s2: var(--dv-bezel); }
/* a ring instead of a plate: the bezel round the screen */
.s3--ring { background: none; border: calc(var(--bw) * var(--u)) solid color-mix(in srgb, var(--s2), #fff calc(var(--t) * 8%)); }
.dv-bezel-ring { stroke: var(--dv-bezel); }
.p3.dv-bezel3 { pointer-events: none; }
/* wells: the floor (.fl3) lies below the surface, and rings of wall (.h3) stand between it and the hole cut in the top */
.fl3, .h3 { position: absolute; display: block; pointer-events: none; transform: translateZ(calc(var(--z) * var(--u))); }
.fl3 { overflow: visible; }
.h3 { box-sizing: border-box; border-radius: var(--rad); border: calc(12 * var(--u)) solid color-mix(in srgb, var(--wall, var(--dv-well-2)), #000 calc(16% + var(--t) * 20%)); }
.h3--dark { --wall: #101010; }
/* parts answer the hand: caps go down, the pocket key lifts out, the coin slides */
.p3.dv-key { cursor: pointer; transition: transform 200ms var(--ease-out); }
.p3.dv-key:active { transform: translateZ(calc(-11 * var(--u))); transition-duration: 70ms; }
.p3.dv-key:focus-visible { outline: none; }
.p3.dv-key:focus-visible .f3, .p3.dv-dial:focus-visible > .f3 { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--rad); }
.p3.dv-dial:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) { .p3.dv-key:hover { transform: translateZ(calc(3 * var(--u))); } .p3.dv-key:active { transform: translateZ(calc(-11 * var(--u))); } }
.is-coin .p3.dv-coin { transform: translateX(calc(126 * var(--u))); }
.is-eject .p3.dv-cart { transform: translate3d(0, calc(-26 * var(--u)), calc(12 * var(--u))); }
.p3.dv-cart, .p3.dv-coin { cursor: pointer; }

/* ---------- small charts ---------- */
.strip-chart { margin: 28px 0 0; max-width: 30rem; }
.strip-chart__bars { position: relative; display: flex; align-items: flex-end; gap: 1px; height: 88px; border-bottom: 1px solid var(--line-2); }
.strip-chart__peak { position: absolute; left: var(--x); top: 0; padding-left: 6px; font: 400 .75rem/1 var(--mono); color: var(--soft); white-space: nowrap; }
.strip-chart__bars i { flex: 1 1 0; min-width: 0; height: var(--h); min-height: 1px; background: var(--ink); opacity: .38; }
.strip-chart__bars i.is-main { opacity: 1; }
.strip-chart__axis { position: relative; height: 22px; font: 400 .75rem/22px var(--mono); color: var(--soft); }
.strip-chart__axis span { position: absolute; left: var(--x); }
.strip-chart .fact { margin-top: 2px; }
.kinds { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 20px; margin: 22px 0 0; max-width: 30rem; padding-top: 14px; border-top: 1px solid var(--line); }
.kinds dt { font: 400 .75rem/1.4 var(--mono); color: var(--soft); }
.kinds dd { font: 800 1.25rem/1.15 var(--sans); font-stretch: 125%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kinds > div { display: flex; flex-direction: column-reverse; }
.sales { margin: 22px 0 0; }
.sales__bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; border-bottom: 1px solid var(--line-2); }
.sales__bars i { flex: 1 1 0; height: var(--h); min-height: 2px; background: var(--bag-fill); position: relative; }
.sales__bars i::after { content: ""; position: absolute; inset: auto 0 0; height: var(--f, 0%); background: var(--ink); transition: height 260ms var(--ease-out); }
.sales .fact { margin-top: 8px; }
@media (max-width: 520px) { .kinds { grid-template-columns: repeat(2, auto); } }

/* ---------- the paper is one strip: both halves run 40px past the seam and are clipped on it, so edges and shadow carry straight through ---------- */
.strip { bottom: -104px; clip-path: inset(-60px -60px 40px -60px); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .16)) drop-shadow(0 14px 16px rgba(0, 0, 0, .18)); transform: translateZ(0); }
.roll { clip-path: inset(0 -60px -80px -60px); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .16)) drop-shadow(0 14px 16px rgba(0, 0, 0, .18)); }
.tape--roll { margin-top: -40px; padding-top: 48px; }
.motion .tape--hero, .motion .tape--roll {
  -webkit-mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) 0 calc(var(--cut) - 8px) / 16px 8px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% max(0px, var(--cut) - 7px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) 0 calc(var(--cut) - 8px) / 16px 8px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% max(0px, var(--cut) - 7px) no-repeat; }
@media (max-width: 999px) { .tape--roll { margin-top: 0; padding-top: 14px; } .roll { clip-path: none; } }

/* ---------- LCD: what a screen shows is lit, glows a little, and sits under a grid of pixels ---------- */
.ds-lit { stop-color: var(--dv-scr-accent); stop-opacity: .09; }
.dv-pixels { pointer-events: none; }
.dv-z { opacity: 0; }
.is-asleep .dv-z { opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .is-asleep .dv-z { animation: zed 2.2s ease-in-out calc(var(--i) * 260ms) 2 both; }
  .dv-lcd { animation: lcd-on 700ms steps(4, end) 1 both; }
}
@keyframes zed { 0% { opacity: 0; transform: translate(-6px, 8px); } 35% { opacity: .9; } 100% { opacity: .9; transform: none; } }
@keyframes lcd-on { 0% { opacity: 0; } 30% { opacity: .55; } 55% { opacity: .25; } 100% { opacity: 1; } }

/* ---------- things to poke ---------- */
.dv3d__l { pointer-events: none; }
.dv3d__l :is([data-act], .dv-key, .dv-dial) { pointer-events: auto; }
.dv [data-act] { cursor: pointer; }
.dv-coin, .dv-cart, .dv-screw { transition: transform 460ms cubic-bezier(.3, 1.3, .5, 1); }
.dv-tray-text { transition: opacity 200ms ease-out; }
.is-coin .dv-coin { transform: translateX(126px); }
.is-coin .dv-tray-text { opacity: 0; }
.is-eject .dv-cart { transform: translateY(-26px); }
.is-siren .dv-dot { animation: siren 620ms ease-out calc(var(--d) * 38ms) 1; }
@keyframes siren { 0%, 100% { fill: var(--dv-dot); } 35% { fill: var(--caught); } }
.slot--steal { cursor: pointer; border-radius: 0; overflow: visible; box-shadow: none; max-width: 34rem; }
.slot--steal:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 6px; border-radius: 28px; }
@media (hover: hover) and (pointer: fine) { .dv [data-act="coin"]:hover, .dv [data-act="cart"]:hover { filter: brightness(1.04); } }
@media (prefers-reduced-motion: reduce) { .dv-coin, .dv-cart, .dv-screw { transition: none; } .is-siren .dv-dot { animation: none; } }

/* The band is a plain full-width block with a straight top edge: nothing is clipped or rounded on scroll, so there is
   no place where two greys meet beside it. Along its top edge runs a strip of the same paper as the receipt;
   it moves only with the scroll. */
.band { position: relative; background: none; }
.band__sheet { position: absolute; inset: 0; background: var(--accent); overflow: hidden; }
.band > .rig { z-index: 1; }
/* behind the band: the mark, repeated, tilted, a shade darker than the green, drifting slowly along its own rows */
.band__pattern { position: absolute; inset: 0; overflow: hidden; }
.band__pattern i { position: absolute; inset: -70% -30%; transform: rotate(-14deg); background: color-mix(in srgb, var(--accent), var(--accent-ink) 3.5%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='132' viewBox='0 0 240 132'%3E%3Cg fill-rule='evenodd'%3E%3Cpath transform='translate(14 12) scale(.8)' d='M28 4H92C106 4 116 14.5 116 28C116 42 105.5 52 92 52C80.5 52 75.5 45.5 69.5 41.8C63.5 38 56.5 38 50.5 41.8C44.5 45.5 39.5 52 28 52C14.5 52 4 42 4 28C4 14.5 14 4 28 4ZM20.5 21.5H51.5A15.5 15.5 0 0 1 20.5 21.5ZM33 21.5H47A7 7 0 0 1 33 21.5ZM68.5 21.5H99.5A15.5 15.5 0 0 1 68.5 21.5ZM81 21.5H95A7 7 0 0 1 81 21.5Z'/%3E%3Cpath transform='translate(134 78) scale(.8)' d='M28 4H92C106 4 116 14.5 116 28C116 42 105.5 52 92 52C80.5 52 75.5 45.5 69.5 41.8C63.5 38 56.5 38 50.5 41.8C44.5 45.5 39.5 52 28 52C14.5 52 4 42 4 28C4 14.5 14 4 28 4ZM20.5 21.5H51.5A15.5 15.5 0 0 1 20.5 21.5ZM33 21.5H47A7 7 0 0 1 33 21.5ZM68.5 21.5H99.5A15.5 15.5 0 0 1 68.5 21.5ZM81 21.5H95A7 7 0 0 1 81 21.5Z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 132px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='132' viewBox='0 0 240 132'%3E%3Cg fill-rule='evenodd'%3E%3Cpath transform='translate(14 12) scale(.8)' d='M28 4H92C106 4 116 14.5 116 28C116 42 105.5 52 92 52C80.5 52 75.5 45.5 69.5 41.8C63.5 38 56.5 38 50.5 41.8C44.5 45.5 39.5 52 28 52C14.5 52 4 42 4 28C4 14.5 14 4 28 4ZM20.5 21.5H51.5A15.5 15.5 0 0 1 20.5 21.5ZM33 21.5H47A7 7 0 0 1 33 21.5ZM68.5 21.5H99.5A15.5 15.5 0 0 1 68.5 21.5ZM81 21.5H95A7 7 0 0 1 81 21.5Z'/%3E%3Cpath transform='translate(134 78) scale(.8)' d='M28 4H92C106 4 116 14.5 116 28C116 42 105.5 52 92 52C80.5 52 75.5 45.5 69.5 41.8C63.5 38 56.5 38 50.5 41.8C44.5 45.5 39.5 52 28 52C14.5 52 4 42 4 28C4 14.5 14 4 28 4ZM20.5 21.5H51.5A15.5 15.5 0 0 1 20.5 21.5ZM33 21.5H47A7 7 0 0 1 33 21.5ZM68.5 21.5H99.5A15.5 15.5 0 0 1 68.5 21.5ZM81 21.5H95A7 7 0 0 1 81 21.5Z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 132px; }
@media (prefers-reduced-motion: no-preference) { .band__pattern i { animation: drift 38s linear infinite; } }
@keyframes drift { to { transform: rotate(-14deg) translate3d(-240px, 0, 0); } }      /* one tile along the row: the loop has no seam */
/* a line of type along the top and the bottom, tone on tone; each moves only when the page does, in opposite directions */
.ticker { position: absolute; inset: 0 0 auto; height: 32px; overflow: hidden; background: color-mix(in srgb, var(--accent), var(--accent-ink) 14%); color: var(--accent-ink); }
.ticker--foot { inset: auto 0 0; }
.ticker span { display: block; white-space: pre; font: 400 .8125rem/33px var(--type); opacity: .82; will-change: transform; }
.steal.pad { padding-block: calc(clamp(64px, 9vw, 120px) + 32px); }
.band .status { background: var(--paper); color: var(--paper-ink); }

/* the lower half of the paper laps 2px up over the upper half, so no hairline shows where they meet at any zoom */
.evidence { overflow-x: clip; overflow-y: visible; }
.roll { clip-path: polygon(-60px 0, 0 0, 0 -2px, 100% -2px, 100% 0, calc(100% + 60px) 0, calc(100% + 60px) calc(100% + 80px), -60px calc(100% + 80px)); }   /* only the paper laps up, its shadow starts on the seam */

/* ---------- the badge: a paper card with the two numbers that matter ---------- */
.plate { display: block; padding: 22px 24px 20px; max-width: 30rem; cursor: pointer; }
.plate__top { display: flex; align-items: center; gap: 10px; font: 500 .8125rem/1 var(--mono); }
.plate__mask { width: 44px; height: auto; flex: none; color: var(--paper-ink); }
.plate__mask path { fill: currentColor; }
.plate__ex { margin-left: auto; background: var(--accent); color: var(--accent-ink); padding: 6px 8px 5px; border-radius: 4px; font: 700 .75rem/1 var(--sans); font-stretch: 112%; }
.plate__big { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.plate__big b { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); }
.plate__big span { font-size: 1.0625rem; font-weight: 600; }
.plate__bar { height: 12px; margin-top: 12px; background: #DADDE0; }
.plate__bar i { display: block; height: 100%; width: 91%; background: var(--paper-ink); transform-origin: 0 50%; }
.plate__rows { margin-top: 16px; border-top: 1px dashed rgba(18, 18, 18, .5); }
.plate__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed rgba(18, 18, 18, .28); font: 400 .8125rem/1.4 var(--type); }
.plate__rows dt { color: var(--paper-soft); }
.plate__rows dd { font-weight: 700; text-align: right; }
.badge-sec .status { display: none; }
.motion .plate .plate__bar i { transform: scaleX(0); transition: transform 900ms var(--ease-out) 260ms; }
.motion .plate.is-in .plate__bar i { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .plate.is-stamp { animation: stamp 520ms var(--ease-out) 1; }
  .status.is-poke { animation: poke 420ms cubic-bezier(.34, 1.56, .64, 1) 1; }
}
@keyframes stamp { 0% { transform: scale(1.07) rotate(-2.2deg); } 60% { transform: scale(.985) rotate(.4deg); } 100% { transform: none; } }
@keyframes poke { 0% { transform: scale(.86); } 100% { transform: none; } }
.status { cursor: pointer; }
/* rows answer the pointer */
@media (hover: hover) and (pointer: fine) {
  .spec > div, .steps > li, .steal__terms > li { transition: padding-left 220ms var(--ease-out), background-color 220ms ease-out; }
  .spec > div:hover, .steps > li:hover { padding-left: 8px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
  .sales__bars i:hover { filter: brightness(.86); }
}

/* ---------- after the outside critique ---------- */
.nb { white-space: nowrap; }
.hero__note { margin-top: 10px; }
.motion .hero .hero__note { transition-delay: 420ms; }

/* the limit proof: the key's share is flagged, the bars are plainly bars, the disclosure looks like one */
.bag { margin-top: 34px; }
.bag__taken { min-width: 3px; }
.bag__flag { position: absolute; left: 0; bottom: calc(100% + 6px); padding-left: 8px; border-left: 2px solid var(--ink); font: 500 .75rem/1.5 var(--mono); color: var(--ink); white-space: nowrap; }
.bag__legend b { white-space: nowrap; }
.sales__bars i { background: color-mix(in srgb, var(--ink) 20%, transparent); }
.result__share { max-width: 17rem; }
.method summary { list-style: none; gap: 10px; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.method summary::-webkit-details-marker { display: none; }
.method summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); font: 500 .9375rem/1 var(--mono); text-decoration: none; }
.method[open] summary::before { content: "\2212"; }

/* the activity strip: sale minutes get a mark under the line instead of a darker hairline */
.strip-chart__bars i { position: relative; opacity: .55; }
.strip-chart__bars i.is-main { opacity: .55; }
.strip-chart__bars i.is-main::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 3px; height: 5px; margin-left: -1.5px; background: var(--ink); }
.strip-chart__axis { margin-top: 8px; }

/* close-ups: a shorter fade, so the dial caption stays readable and no half keys ghost through */
.slot--how { aspect-ratio: 492 / 396; }
.how__copy { max-width: none; padding-right: max(var(--gutter), calc((100vw - var(--rig)) / 2)); }

/* one faint mask, in the two sections that have room for it */
.make { position: relative; overflow: clip; }
.make > .rig { position: relative; z-index: 1; }
.ghost--make { left: -7vw; bottom: -16%; width: min(44vw, 620px); }
.ghost--fine { left: -9vw; bottom: -10%; width: min(46vw, 660px); }

/* The badge is a slip of the same paper as the tape, and it comes out of a slot.
   Press it: it feeds a little further, tears off and fades, and the next slip prints in its place (js/app.js). */
.plate-wrap { position: relative; max-width: 30rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .16)) drop-shadow(0 16px 18px rgba(0, 0, 0, .18)); }
.printer__bar { position: relative; z-index: 1; height: 48px; margin: 0 -16px; padding: 10px 18px 0; border-radius: 14px; display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(var(--dv-body-1), var(--dv-body-2)); box-shadow: inset 0 1.5px 0 var(--dv-hi), inset 0 -3px 0 var(--dv-edge); font: 400 .6875rem/1 var(--mono); color: var(--dv-silk); }
.printer__bar::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 10px; border-radius: 5px; background: #17181A; box-shadow: inset 0 2px 2px rgba(0, 0, 0, .7), 0 1px 0 var(--dv-hi); }
.printer__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent); }
/* the window the paper is seen through: it starts on the slot and its foot fades to nothing, so a torn slip slides out of sight */
.printer { --fade: clamp(160px, 20vw, 280px); }      /* js/app.js sets the real length: from the slip to just above the next heading */
.badge-sec { overflow-x: clip; overflow-y: visible; z-index: 2; }      /* the fade runs on over the top of the next section */
.printer__feed { position: relative; z-index: 2; margin-top: -15px; padding-bottom: var(--fade); margin-bottom: calc(var(--fade) * -1); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - var(--fade)), #0000 calc(100% - 6px)); mask-image: linear-gradient(#000 calc(100% - var(--fade)), #0000 calc(100% - 6px)); }
.printer__feed::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 3; height: 16px; background: linear-gradient(rgba(18, 18, 18, .26), rgba(18, 18, 18, 0)); }
.plate { position: relative; z-index: 2; box-shadow: none; max-width: none; padding-bottom: 30px; font-family: var(--type); cursor: pointer; pointer-events: auto;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.plate:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: -6px; }
/* The slip below the join. It has the matching teeth along its own top and runs 10px up under the teeth of the one
   above, 2px more than the teeth are tall, so the two read as one unbroken sheet until the lower one moves away. */
.plate--old { position: absolute; inset: -10px 0 auto; z-index: 1; padding-top: 32px; pointer-events: none;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) calc(50% + 8px) 0 / 16px 100%; -webkit-mask-composite: source-in;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) calc(50% + 8px) 0 / 16px 100%; mask-composite: intersect; }
.plate__top { font-family: var(--type); }
.plate__big span { font: 400 1rem/1.3 var(--type); }
.motion .plate-wrap { opacity: 1; transform: none; transition: none; }
.motion .printer__bar { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease-out, transform 700ms var(--ease-out); }
.motion .printer.is-in .printer__bar { opacity: 1; transform: none; }
.motion .printer__feed::before { opacity: 0; transition: opacity 300ms ease-out 200ms; }
.motion .printer.is-in .printer__feed::before { opacity: 1; }
.motion .printer .plate { opacity: 1; transform: translateY(-104%); transition: transform 1200ms cubic-bezier(.2, .7, .2, 1) 260ms; }
.motion .printer.is-in .plate { transform: none; }
.motion .plate-wrap .plate__bar i { transform: scaleX(0); transition: transform 900ms var(--ease-out) 1100ms; }
.motion .plate-wrap.is-in .plate__bar i { transform: none; }
.motion .printer .plate--old { transform: none; transition: none; }
.motion .plate--old .plate__bar i { transform: none; transition: none; }
@media (max-width: 999px) { .badge__grid > .plate-wrap { order: 2; } }

@media (max-width: 859px) { .bag__legend { flex-direction: column; gap: 2px; } }

/* second look: the keys heading gets room for two lines, and the badge section stops leaving a hole under it */
@media (min-width: 760px) { .how__grid { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); } }
.badge-sec.pad { padding-bottom: clamp(40px, 5vw, 72px); }

/* chart labels sit over or next to bars on narrow screens, so they take the darker text colour */
.strip-chart__peak, .strip-chart__axis { color: var(--ink-2); }

/* the big number never wraps and keeps the width of its longest value, so nothing beside it moves while it rolls */
.result__now { white-space: nowrap; }
@media (min-width: 760px) {
  .result__top > div { flex: none; }
  .result__now { min-width: 6.3em; }
  .result__share { flex: 1 1 0; min-width: 0; }
}

/* ---------- a press has weight ---------- */
/* js/app.js kicks a spring on every press: --kx and --ky tip the hero away under the pointer, --kz sinks it a little */
.motion .tilt.is-in { transform: translateZ(var(--kz, 0px)) rotateX(calc(var(--rx, 0deg) + var(--kx, 0deg))) rotateY(calc(var(--ry, 0deg) + var(--ky, 0deg))); }
.slot > .dv { transform-origin: 50% 50%; will-change: transform; }
/* the sleeper, woken: the whole unit jumps and ruffles, then settles */
@media (prefers-reduced-motion: no-preference) { .dv.is-startled, .dv3d.is-startled { animation: startle 760ms cubic-bezier(.3, .7, .3, 1) 1; } }
/* the tile that sleeps is a solid too: the same thick body, seen from the same side */
.slot--steal { perspective: 12000px; perspective-origin: 50% calc(100% + 4200px); }
@keyframes startle {
  0% { transform: none; } 9% { transform: translateY(-16px) rotate(-2.6deg) scale(1.04); } 22% { transform: translateY(-5px) rotate(2.3deg) scale(1.025); }
  36% { transform: translateY(-8px) rotate(-1.8deg) scale(1.02); } 50% { transform: translateY(-2px) rotate(1.3deg) scale(1.01); }
  66% { transform: rotate(-.8deg); } 82% { transform: rotate(.35deg); } 100% { transform: none; }
}

/* The close-ups sink into the page at their foot. The fade is a strip of the page's own colour laid over them, not a mask
   on the drawing: a mask on something that slides makes the browser redo a very large picture as it moves. */
.limit::after, .how__grid > div:first-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; pointer-events: none; z-index: 1; }
.limit::after { background: linear-gradient(#0000, var(--floor-2)); }
.how__grid > div:first-child { position: relative; }
.how__grid > div:first-child::after { background: linear-gradient(#0000, var(--floor)); }
