/* Strays · the house system (the same one perchpet.fun, pelly.fun, ambers.fun and sepia.fun are built on), with a
   painted back-alley hero: dark on the left where the dev left the coin, light on the right where Scruff carries it.
   Cream cards with soft shadows on a paper page, a paste box with "Try one" chips, a live strip. Headlines: Plus
   Jakarta Sans 800, tight. Text: Inter. Numbers, tickers, labels: JetBrains Mono. The light (dawn, rose or day) is set
   on <html data-light>; each one has its own painted scene, colours and the spot where Scruff stops in the light. */
:root, :root[data-light="dawn"] {
  --night: #222739; --field: #FCD3A6; --field-hi: #FFE7CC; --field-deep: #F2B98A; --accent: #EE9B5E;
  --ink: #222739; --ink-2: rgba(34, 39, 57, .72); --cream: #FFFBF6; --paper: #FFF6EC; --paper-2: #F7EBDD; --gold: #F2B640;
  --head: #FFFFFF; --head-2: #FFD6A3; --kicker: #A65A2C; --live: #1FA35B; --chip-bg: rgba(255, 251, 246, .9);
  --line: rgba(34, 39, 57, .12); --ray: rgba(255, 236, 205, .55);
  --shadow: 0 30px 60px -36px rgba(34, 39, 57, .55), 0 2px 6px -2px rgba(34, 39, 57, .12);
  --shadow-s: 0 14px 30px -20px rgba(34, 39, 57, .55), 0 1px 3px rgba(34, 39, 57, .1);
  --walk-x: 73%; --floor: 23%;
}
:root[data-light="rose"] {
  --night: #2D1D2B; --field: #FBC0C2; --field-hi: #FFDCDD; --field-deep: #F39A9C; --accent: #E2697E;
  --ink: #2D1D2B; --ink-2: rgba(45, 29, 43, .72); --cream: #FFFBFB; --paper: #FFF4F3; --paper-2: #F8E6E6;
  --head-2: #FFC3C6; --kicker: #B03A55; --chip-bg: rgba(255, 251, 251, .9); --line: rgba(45, 29, 43, .12); --ray: rgba(255, 214, 218, .55);
  --shadow: 0 30px 60px -36px rgba(45, 29, 43, .55), 0 2px 6px -2px rgba(45, 29, 43, .12);
  --shadow-s: 0 14px 30px -20px rgba(45, 29, 43, .55), 0 1px 3px rgba(45, 29, 43, .1);
  --walk-x: 73%; --floor: 16%;
}
:root[data-light="day"] {
  --night: #2B3749; --field: #EBDCC2; --field-hi: #F7EEDF; --field-deep: #DCC7A5; --accent: #6A86A8;
  --ink: #1F2A3A; --ink-2: rgba(31, 42, 58, .72); --cream: #FFFFFF; --paper: #F5F6F8; --paper-2: #ECEFF3;
  --head-2: #FFEFD3; --kicker: #4A6584; --chip-bg: rgba(255, 255, 255, .9); --line: rgba(31, 42, 58, .12); --ray: rgba(255, 255, 255, .6);
  --shadow: 0 30px 60px -36px rgba(31, 42, 58, .5), 0 2px 6px -2px rgba(31, 42, 58, .12);
  --shadow-s: 0 14px 30px -20px rgba(31, 42, 58, .5), 0 1px 3px rgba(31, 42, 58, .1);
  --walk-x: 72%; --floor: 20%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-weight: 800; letter-spacing: -.035em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
@keyframes beat { 50% { box-shadow: 0 0 0 5px rgba(31, 163, 91, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 163, 91, .35); } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

/* ---------- header ---------- */
.top { position: absolute; z-index: 30; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px max(24px, 5vw); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 27px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.045em; color: var(--head); }
.logo span { width: 40px; height: 40px; border-radius: 12px; background: var(--field); display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .3); }
.logo span img { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.top nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 14.5px; padding: 5px 5px 5px 18px; border-radius: 999px; background: rgba(255, 255, 255, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 13px; border-radius: 999px; background: var(--chip-bg); color: var(--ink) !important; font: 700 12.5px 'JetBrains Mono', monospace; text-decoration: none; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); opacity: .45; }
.motion { border: 0; cursor: pointer; }
.motion .sw { position: relative; flex: none; width: 24px; height: 14px; border-radius: 999px; background: rgba(0, 0, 0, .22); transition: background .2s; }
.motion .sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #FFF; transition: transform .2s; }
.motion[aria-pressed="true"] .sw { background: var(--live); }
.motion[aria-pressed="true"] .sw::after { transform: translateX(10px); }

/* ---------- the hero: the copy over the dark of the alley, Scruff in the light ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--night); overflow: hidden; display: grid; grid-template-columns: minmax(0, 600px) 1fr; align-items: center; padding: 120px max(24px, 5vw) 130px; }
/* the painted scene keeps its 16:9 shape and covers the hero from the bottom right, so the light and Scruff's spot
   stay in frame at any size; Scruff is placed in the scene's own percentages */
.scene-wrap { position: absolute; z-index: 0; inset: 0; container-type: size; pointer-events: none; overflow: hidden; }
.scene-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--night) 62%, transparent) 0%, color-mix(in srgb, var(--night) 25%, transparent) 34%, transparent 54%); }
.scene { position: absolute; right: 0; bottom: 0; width: max(100cqw, 177.78cqh); aspect-ratio: 16 / 9; }
/* the film: stills underneath (the finished painting, then the empty alley the walk-in starts from), the walk-in
   on top, then the seamless loop. Only one layer shows at a time; nothing cross-fades, the frames line up. */
.scene .bg, .film { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.film { opacity: 0; pointer-events: none; }
.hero.playing .film.intro, .hero.looping .film.loop, .cta-card.looping .film.loop { opacity: 1; }
.hero.looping .film.intro, .hero.still .film.intro, .hero.still .bg.empty, .hero.looping .bg.empty { opacity: 0; }
[data-motion="off"] .film, [data-motion="off"] .hero .bg.empty { opacity: 0 !important; }

.copy { position: relative; z-index: 6; }
.eyebrow { margin: 0 0 18px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font: 700 11.5px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--head); }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 182, 64, .3); }
.hero h1 { font-size: clamp(46px, 4.6vw, 74px); line-height: .95; color: var(--head); text-wrap: balance; }
.hero h1 .l1 { display: block; }
.hero h1 em { font-style: normal; color: var(--head-2); display: block; }
.sub { margin-top: 20px; max-width: 30em; font-size: 18.5px; line-height: 1.5; color: var(--head); opacity: .86; }
.sub strong { font-weight: 700; opacity: 1; }
.scan { margin-top: 28px; display: flex; gap: 8px; max-width: 540px; padding: 7px; border-radius: 18px; background: var(--cream); box-shadow: var(--shadow); }
.scan input { flex: 1 1 0; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 14px; font: 600 15px 'JetBrains Mono', monospace; color: var(--ink); }
.scan input::placeholder { color: var(--ink-2); opacity: .6; }
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 13px; padding: 13px 20px; font-weight: 700; font-size: 15px; cursor: pointer; background: rgba(0, 0, 0, .06); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--cream); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .8); }
.try { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--head); }
.try .chip { padding: 6px 12px 6px 7px; cursor: pointer; transition: transform .15s; }
.try .chip:hover { transform: translateY(-1px); }
.try .chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* the result of a scan: only there once someone has scanned. On a wide screen it hangs in the light above Scruff, so
   the hero keeps its size; on a phone it follows the scan box */
.result { position: relative; z-index: 7; grid-column: 2; align-self: start; justify-self: end; width: min(400px, 100%); margin-top: -36px; background: var(--cream); color: var(--ink); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow); }
.res-top { display: flex; align-items: center; gap: 11px; }
.res-top img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.res-top b { display: block; font: 800 20px/1.1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.03em; }
.res-top > div { min-width: 0; }
.res-top small { display: block; font: 500 11.5px 'JetBrains Mono', monospace; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-top .pill { margin-left: auto; }
.res-line { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.res-line:empty { display: none; }
.result dl { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.result dl div { background: var(--paper-2); border-radius: 12px; padding: 8px 11px; min-width: 0; }
.result dt { font-size: 12px; color: var(--ink-2); }
.result dd { margin: 2px 0 0; font: 700 15px 'JetBrains Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.res-actions .btn { padding: 10px 16px; font-size: 14px; }
.res-progress { height: 4px; border-radius: 4px; background: var(--paper-2); margin-top: 12px; overflow: hidden; }
.res-progress i { display: block; width: 32%; height: 100%; border-radius: 4px; background: var(--accent); }
.pill { font: 700 11px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .07em; padding: 6px 10px; border-radius: 9px; background: #E3F3DA; color: #23693A; white-space: nowrap; }
.pill.no { background: #FBE2DE; color: #9A2A1C; }
.pill.wait { background: rgba(0, 0, 0, .06); color: var(--ink-2); }

/* the live strip */
.strip { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 12px max(24px, 5vw); background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; }
.strip-label { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.strip-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.strip ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.strip li { flex: none; }
.strip li a { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .05); border-radius: 999px; padding: 6px 12px 6px 7px; font: 600 12.5px Inter, sans-serif; color: var(--ink); text-decoration: none; }
.strip li a:hover { background: rgba(0, 0, 0, .09); }
.strip li img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.strip li b { font: 700 12.5px 'JetBrains Mono', monospace; }
.strip li span { color: var(--ink-2); }

/* ---------- sections ---------- */
.sec { padding: 100px max(24px, 6vw) 70px; max-width: 1320px; margin: 0 auto; }
.sec-head { max-width: 760px; margin: 0 0 34px; }
.kicker { margin: 0 0 12px; font: 700 11.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); display: flex; align-items: center; gap: 9px; }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sec-head h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.02; text-wrap: balance; }
.lede { margin: 14px 0 0; color: var(--ink-2); font-size: 18px; max-width: 40em; }

/* what's a stray: three beats of one coin's story, from the dark of the alley to the light */
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story li { position: relative; display: flex; flex-direction: column; min-height: 250px; border-radius: 28px; padding: 26px 28px 28px; box-shadow: var(--shadow); }
.story li:nth-child(1) { background: var(--night); color: #FFF; }
.story li:nth-child(2) { background: color-mix(in srgb, var(--night) 42%, var(--field-deep)); color: #FFF; }
.story li:nth-child(3) { background: var(--field); color: var(--ink); }
.story li + li::before { content: '→'; position: absolute; z-index: 2; left: -8px; top: 50%; translate: -50% -50%; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-weight: 800; box-shadow: var(--shadow-s); }
.st-n { font: 700 11.5px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.story b { display: block; margin-top: auto; padding-top: 30px; font: 800 clamp(40px, 4.4vw, 62px)/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.04em; }
.story li:nth-child(3) b { color: var(--ink); }
.story p { margin-top: 10px; font-size: 16px; line-height: 1.45; opacity: .86; }

/* 4 reads: the engine's checks, each with a real number from a real coin */
.reads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reads li { display: flex; flex-direction: column; background: var(--cream); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.r-art { position: relative; aspect-ratio: 1 / .78; background: var(--field); overflow: hidden; display: grid; place-items: center; padding: 18px; }
.r-art::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -16%; height: 34%; background: var(--field-deep); opacity: .5; border-radius: 50% 50% 0 0; }
.r-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.r-n { font: 700 11.5px 'JetBrains Mono', monospace; color: var(--kicker); }
.reads h3 { margin-top: 6px; font-size: 23px; letter-spacing: -.025em; }
.reads p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.reads em { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font: 600 12px 'JetBrains Mono', monospace; font-style: normal; color: var(--kicker); }
.reads em i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
/* the little product vignettes inside each read's art; they play once they're in view (.in) */
.vg { position: relative; z-index: 1; width: 100%; max-width: 250px; background: var(--cream); border-radius: 16px; padding: 12px 13px; box-shadow: var(--shadow-s); font: 600 12px 'JetBrains Mono', monospace; color: var(--ink); }
.vg .big { font: 800 30px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.04em; }
.vg .lbl { color: var(--ink-2); font-weight: 500; font-size: 11px; margin-top: 4px; }
.vg .bar { height: 8px; border-radius: 99px; background: var(--paper-2); margin-top: 10px; overflow: hidden; }
.vg .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 1.4s cubic-bezier(.2, .9, .25, 1) .3s; }
.reads li.in .vg .bar i { width: 100%; }
.vg .tl { position: relative; height: 34px; margin-top: 8px; }
.vg .tl::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--line); }
.vg .tl b { position: absolute; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--cream); box-shadow: 0 0 0 1.5px var(--ink); background: var(--ink); }
.vg .tl b.sell { background: #C0392B; box-shadow: 0 0 0 1.5px #C0392B; }
.vg .tl b.now { background: var(--gold); box-shadow: 0 0 0 1.5px #D99A22; }
.vg .row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px dashed var(--line); }
.vg .row:first-of-type { border-top: 0; }
.vg .row s { position: relative; color: var(--ink-2); text-decoration: none; }
.vg .row s::after { content: ''; position: absolute; left: 0; top: 52%; height: 1.5px; width: 100%; background: #C0392B; }
.vg .blocks { display: flex; gap: 4px; margin-top: 10px; }
.vg .blocks i { flex: 1; height: 26px; border-radius: 6px; background: var(--paper-2); }
.vg .blocks i.hit { background: var(--accent); }
[data-motion="on"] .vg .tl b { transform: scale(0); transition: transform .4s cubic-bezier(.2, 1.6, .4, 1) .3s; }
[data-motion="on"] .reads li.in .vg .tl b { transform: scale(1); }
[data-motion="on"] .reads li.in .vg .tl b:nth-child(2) { transition-delay: .65s; }
[data-motion="on"] .reads li.in .vg .tl b:nth-child(3) { transition-delay: 1s; }
[data-motion="on"] .vg .blocks i.hit { background: var(--paper-2); transition: background .3s; transition-delay: calc(var(--j) * 110ms + .4s); }
[data-motion="on"] .reads li.in .vg .blocks i.hit { background: var(--accent); }
[data-motion="on"] .vg .row s::after { width: 0; transition: width .4s ease; transition-delay: calc(var(--j) * 250ms + .5s); }
[data-motion="on"] .reads li.in .vg .row s::after { width: 100%; }

/* the full read: every finding with its proof link */
.fullread { margin-top: 18px; background: var(--cream); border-radius: 22px; padding: 18px 22px 10px; box-shadow: var(--shadow-s); }
.fr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fr-head b { font: 800 19px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; }
.fr-head span { font: 600 12px 'JetBrains Mono', monospace; color: var(--ink-2); }
.fullread ul { list-style: none; margin: 0; padding: 0; }
.fullread li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.fullread li:first-child { border-top: 0; }
.fullread li i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); opacity: .45; transform: translateY(1px); }
.fullread li.good i { background: var(--live); opacity: 1; }
.fullread li.warn i { background: #E0A030; opacity: 1; }
.fullread li.stop i { background: #C0392B; opacity: 1; }
.fullread li a { font: 600 12px 'JetBrains Mono', monospace; color: var(--kicker); text-decoration: none; white-space: nowrap; }
.fullread li a:hover { text-decoration: underline; }

/* the verdict bar: who gets a kit */
.rule { margin-top: 18px; background: var(--cream); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-s); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rule div { display: grid; gap: 4px; padding: 6px 4px; }
.rule .pill { justify-self: start; }
.rule b { font: 800 17px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; }
.rule span { font-size: 14px; color: var(--ink-2); }

/* the relaunch pad: three steps, each with the real thing it makes for the scanned coin */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { display: flex; flex-direction: column; background: var(--cream); border-radius: 28px; padding: 12px 12px 22px; box-shadow: var(--shadow); min-width: 0; }
.step-pic { position: relative; aspect-ratio: 16 / 11.5; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; align-content: center; background: var(--field); padding: 16px; }
.step-pic.bleed { padding: 0; }
.step-pic.bleed::after { display: none; }
.step-pic.bleed canvas { border-radius: 0; box-shadow: none; }
.step-pic::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -22%; height: 40%; background: var(--field-deep); opacity: .45; border-radius: 50% 50% 0 0; }
.step-pic > * { position: relative; z-index: 1; }
.step-pic canvas { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-s); }
.step-pic.dex { background: var(--paper-2); gap: 0; }
.step-pic.dex::after, .step-pic.page::after { display: none; }
.dex-head { width: 100%; }
.step-pic .dex-icon { position: absolute; left: 5%; bottom: -16%; width: 21%; border-radius: 50%; border: 3px solid var(--cream); }
.dex-desc { margin: 26px 0 0; width: 100%; font: 500 11.5px/1.45 'JetBrains Mono', monospace; color: var(--ink-2); background: var(--cream); border-radius: 10px; padding: 9px 11px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.step-pic.page { background: var(--night); }
.mock { width: 100%; background: var(--cream); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 12px; color: var(--ink); }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: var(--paper-2); }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 11px 'JetBrains Mono', monospace; color: var(--ink-2); background: var(--cream); border-radius: 999px; padding: 2px 10px; }
.mock-body { padding: 10px 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mock-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mock-top img { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover; }
.mock-top > div { min-width: 0; }
.mock-top b { display: block; font: 800 16px/1.1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; }
.mock-top small { display: block; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-top .pill { margin-left: auto; padding: 4px 7px; font-size: 9.5px; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-row div { background: var(--paper-2); border-radius: 9px; padding: 6px 8px; min-width: 0; }
.mock-row span { display: block; font-size: 10.5px; color: var(--ink-2); }
.mock-row b { font: 700 12.5px 'JetBrains Mono', monospace; white-space: nowrap; }
.mock-pitch { font-size: 12px; color: var(--ink-2); font-style: italic; }
.mock-links { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-links span { font: 600 10.5px 'JetBrains Mono', monospace; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); }
.mock .addr { display: flex; gap: 6px; align-items: center; background: var(--paper-2); border-radius: 9px; padding: 4px 4px 4px 9px; }
.mock .addr code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 10.5px 'JetBrains Mono', monospace; }
.mock .addr .btn { padding: 4px 9px; font-size: 11px; border-radius: 7px; }
.step-body { padding: 18px 8px 0; display: flex; flex-direction: column; flex: 1; }
.step-n { font: 700 11.5px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--kicker); }
.step h3 { margin-top: 6px; font-size: 24px; letter-spacing: -.025em; }
.step-body > p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.step-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.step-note { margin-top: 10px; font-size: 13px; font-weight: 600; color: #9A2A1C; }
.step-note:empty { display: none; }
.perks { list-style: none; margin: 18px 0 0; padding: 18px 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; background: var(--cream); border-radius: 22px; box-shadow: var(--shadow-s); }
.perks li { position: relative; display: grid; gap: 3px; padding-left: 30px; }
.perks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: #E3F3DA; color: #23693A; font-size: 11px; font-weight: 800; }
.perks b { font: 800 16px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.015em; }
.perks span { font-size: 14px; color: var(--ink-2); }

/* the comeback board */
.board-wait { color: var(--ink-2); }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b-card { background: var(--cream); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow-s); display: grid; gap: 10px; align-content: start; min-width: 0; }
.b-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.b-top img { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.b-top > div { min-width: 0; }
.b-top b { display: block; font: 800 19px/1.1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; }
.b-top small { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-when { margin-left: auto; flex: none; font: 700 11px 'JetBrains Mono', monospace; padding: 6px 9px; border-radius: 9px; background: var(--field-hi); color: var(--kicker); white-space: nowrap; }
.b-pitch { color: var(--ink-2); font-size: 14px; font-style: italic; }
.b-links { display: flex; flex-wrap: wrap; gap: 6px; }
.b-links a { font: 600 12px 'JetBrains Mono', monospace; text-decoration: none; padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.b-links .b-open { margin-left: auto; background: var(--ink); color: var(--cream); }
.board-empty { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--cream); border-radius: 26px; padding: 22px 28px; box-shadow: var(--shadow-s); }
.board-empty > img { width: 104px; justify-self: center; }
.board-empty b { font: 800 22px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; }
.board-empty p { color: var(--ink-2); margin-top: 4px; }
.board-empty .board-open { margin-top: 14px; font-weight: 700; color: var(--ink); font-size: 14px; }
.board-empty .chips { margin-top: 8px; }
.board-empty .chip { background: var(--paper-2); padding: 6px 12px 6px 7px; }
.board-empty .chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.res-claim { margin-top: 10px; font: 600 12.5px 'JetBrains Mono', monospace; color: var(--kicker); background: var(--paper-2); border-radius: 10px; padding: 8px 10px; }

/* the claim: connect, sign, done */
.claim { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--night) 60%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.claim-card { width: min(520px, 100%); background: var(--paper); border-radius: 28px; padding: 18px 20px 20px; box-shadow: var(--shadow); }
.claim-step { display: grid; gap: 12px; }
.claim-step > p { color: var(--ink-2); font-size: 15px; }
.claim-wallets { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-hint { width: 100%; color: var(--ink-2); font-size: 14px; }
.claim label { display: grid; gap: 5px; font-weight: 700; font-size: 13.5px; }
.claim label small { font-weight: 500; color: var(--ink-2); }
.claim input { font: 600 15px Inter, sans-serif; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); outline: 0; width: 100%; }
.claim input:focus { border-color: var(--accent); }
.claim-step > .claim-stake { font-weight: 600; color: var(--ink); background: #E3F3DA; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.claim-step > .claim-ok { font: 800 19px 'Plus Jakarta Sans', sans-serif; color: var(--ink); }
.claim-step .ca-demo { width: 100%; box-shadow: none; padding: 0; background: none; }
.claim-err { margin-top: 10px; color: #9A2A1C; font-size: 14px; font-weight: 600; }
.claim-err:empty { display: none; }
.ca-demo { width: 86%; background: var(--cream); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); font: 600 12.5px 'JetBrains Mono', monospace; }
.ca-demo .addr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; background: var(--paper-2); }
.ca-demo .addr code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-demo .addr .btn { padding: 6px 11px; font-size: 12px; border-radius: 9px; }
.ca-demo ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.ca-demo li { display: flex; gap: 8px; color: var(--ink-2); font-weight: 500; }
.ca-demo li b { color: #C0392B; }
.ca-demo li s { text-decoration-color: #C0392B; }

/* questions */
.faq { max-width: 1000px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--cream); border-radius: 18px; padding: 0 22px; box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font: 700 17.5px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 600 18px/1 'JetBrains Mono', monospace; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 46em; }

/* the closing band: the same alley, Scruff already in the light */
.cta-card { position: relative; display: grid; align-items: center; min-height: 440px; background: var(--night); border-radius: 34px; padding: 48px 48px; overflow: hidden; box-shadow: var(--shadow); }
.cta-card .scene-wrap { border-radius: inherit; }
.cta-copy { position: relative; z-index: 2; max-width: 500px; }
.cta-copy h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; color: var(--head); }
.cta-copy h2 em { font-style: normal; color: var(--head-2); display: block; }
.cta-card .scene { bottom: -16%; }
.cta-copy p { margin: 10px 0 0; font-size: 18px; color: var(--head); opacity: .86; }
.cta-copy .scan { margin-top: 22px; }

/* $STRAYS */
.coin-card { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; background: var(--night); color: var(--cream); border-radius: 32px; padding: 30px; }
.coin-art { width: 260px; height: 260px; border-radius: 26px; background: var(--field); display: grid; place-items: center; overflow: hidden; }
.coin-art img { width: 108%; max-width: none; margin-top: 8%; }
.coin-card h2 { color: #FFF; font-size: clamp(32px, 3.4vw, 48px); }
.coin-card .kicker { color: var(--head-2); }
.coin-card .kicker::before { background: var(--gold); }
.coin-card p { color: rgba(255, 255, 255, .78); margin: 10px 0 0; max-width: 36em; }
.coin-card .fine { color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.ca { display: flex; align-items: center; gap: 10px; margin-top: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 13px; padding: 13px 15px; max-width: 580px; }
.ca span { font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .08em; color: var(--gold); }
.ca code { font: 600 14px 'JetBrains Mono', monospace; flex: 1; }
.foot { padding: 26px max(24px, 6vw) 50px; max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.foot p { margin: 0 0 6px; max-width: 64em; }
.foot .small { font: 600 12px 'JetBrains Mono', monospace; margin-top: 14px; }

/* ---------- motion: on by default, the Motion switch turns it off ----------
   The hero is a film (see .film); everything else only rises in as it scrolls into view. */
[data-motion="on"] .strip-label i, [data-motion="on"] .reads em i { animation: beat 2s ease-in-out infinite; }
[data-motion="on"] [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .9, .25, 1); transition-delay: calc(var(--i, 0) * 90ms); }
[data-motion="on"] [data-reveal].in { opacity: 1; transform: none; }
[data-motion="on"] .hero h1 .l1, [data-motion="on"] .hero h1 em { animation: rise .9s cubic-bezier(.2, .9, .25, 1) both; }
[data-motion="on"] .hero h1 em { animation-delay: .15s; }
[data-motion="on"] .hero .sub, [data-motion="on"] .hero .scan { animation: rise .9s cubic-bezier(.2, .9, .25, 1) .3s both; }
[data-motion="on"] .result { animation: rise .5s cubic-bezier(.2, .9, .25, 1) both; }
[data-motion="on"] .res-progress i { animation: sweep 1.3s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(320%); } }

/* ---------- the PFP studio ---------- */
.studio { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--night) 60%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.studio-card { width: min(900px, 100%); background: var(--paper); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.studio-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font: 800 22px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pfp-stage { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.pfp-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.circle-guide { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(255, 255, 255, .55); pointer-events: none; outline: 1.5px dashed var(--ink-2); outline-offset: -1px; }
.studio-tools { display: grid; gap: 12px; align-content: start; }
.studio-tools .row { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); gap: 2px; width: fit-content; }
.seg-btn { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.studio-note { font-size: 13.5px; color: var(--ink-2); }
.stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sticker { display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 14px; border: 1.5px solid transparent; background: var(--cream); box-shadow: var(--shadow-s); cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.sticker img { width: 100%; max-width: 54px; aspect-ratio: 1; object-fit: contain; }
.sticker:hover { border-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { accent-color: var(--ink); width: 18px; height: 18px; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 520px) 1fr; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; padding: 12px; }
  .step-body { padding: 10px 10px 8px 0; }
  .perks, .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phones: the scene on top, cropped to the edge of the light, the copy below on the alley's night ---------- */
@media (max-width: 860px) {
  .top { padding: 14px 16px; }
  .logo { font-size: 23px; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--night) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .logo span { width: 32px; height: 32px; border-radius: 50%; }
  .top nav a:not(.chip) { display: none; }
  .top nav { gap: 6px; padding: 4px; }
  .top .chip { padding: 7px 10px; }
  .chip .t { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 0 16px; min-height: 0; }
  .hero > .scene-wrap { position: relative; inset: auto; order: 1; margin: 0 -16px; height: 112vw; }
  .scene-wrap::after { background: linear-gradient(180deg, transparent 80%, var(--night) 99%); }
  .hero .scene, .cta-card .scene { width: 215vw; right: -8vw; }
  .copy { order: 2; margin-top: -6vw; padding: 0 0 28px; }
  .result { order: 2; width: auto; margin: -8px 0 24px; }
  .hero h1 { font-size: 44px; }
  .sub { font-size: 16.5px; margin-top: 14px; }
  .scan { margin-top: 20px; }
  .scan .btn { padding: 12px 16px; }
  .strip { position: relative; order: 3; margin: 0 -16px; width: auto; padding: 12px 16px; }
  .strip-label { display: none; }
  .sec { padding: 60px 16px 40px; }
  .sec-head { margin-bottom: 24px; }
  .lede { font-size: 16px; }
  .reads { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .step { display: flex; border-radius: 22px; padding: 10px 10px 20px; }
  .step-body { padding: 16px 6px 0; }
  .step h3 { font-size: 21px; }
  .perks, .b-grid { grid-template-columns: minmax(0, 1fr); }
  .story { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .story li { min-height: 0; padding: 22px 22px 24px; border-radius: 24px; }
  .story li + li::before { content: '↓'; left: 50%; top: -7px; }
  .story b { padding-top: 18px; font-size: 44px; }
  .fullread { padding: 16px 16px 6px; }
  .fullread li { grid-template-columns: 10px minmax(0, 1fr); gap: 4px 10px; font-size: 14.5px; }
  .fullread li a { grid-column: 2; }
  .board-empty { grid-template-columns: minmax(0, 1fr); padding: 20px; text-align: left; }
  .board-empty > img { width: 84px; justify-self: start; }
  .faq details { padding: 0 16px; }
  .faq summary { font-size: 16px; }
  .cta-card { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 0 18px 22px; border-radius: 26px; }
  .cta-card > .scene-wrap { position: relative; inset: auto; margin: 0 -18px; height: 92vw; border-radius: 26px 26px 0 0; }
  .cta-copy { margin-top: -4vw; }
  .coin-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .coin-art { width: 100%; height: 220px; }
  .coin-art img { width: 70%; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio { place-items: start center; }
}
