/* honestly.works — shared stylesheet.

   The site is built from full-bleed "tone" panels. Each tone is a duotone
   pair — a deep ground and one bright highlight — set as --bg / --hi / --fg
   on the panel, so every component inside just reads those three.

     .tone-green   Honestly, the house pair
     .tone-red     Recap
     .tone-amber   Trace
     .tone-blue    Forge
     .tone-purple  accents on the home page
     .tone-paper   reading surfaces (flips to ink in dark mode)

   Display type is Anton (SIL OFL, self-hosted in /assets/fonts) set in
   tight uppercase stacks. Motion lives in /assets/site.js and only ever
   adds transforms on top of a page that already reads fine without it. */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #121212;
  --cream: #f4f0e6;

  --green-bg: #002629;  --green-hi: #94ffe4;
  --red-bg: #2a0606;    --red-hi: #ff8f8f;
  --amber-bg: #291900;  --amber-hi: #ffbf3f;
  --purple-bg: #23002b; --purple-hi: #e894ff;
  --blue-bg: #000f33;   --blue-hi: #8cbcff;

  /* Page defaults = paper */
  --bg: var(--cream);
  --fg: var(--ink);
  --hi: var(--green-bg);
  --muted: color-mix(in srgb, var(--fg) 66%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 16%, var(--bg));

  --display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: #f2efe8;
    --hi: var(--green-hi);
  }
}

/* ---------- Tones ---------- */
.tone-green  { --bg: var(--green-bg);  --hi: var(--green-hi);  --fg: #e9fff9; }
.tone-red    { --bg: var(--red-bg);    --hi: var(--red-hi);    --fg: #fff0ef; }
.tone-amber  { --bg: var(--amber-bg);  --hi: var(--amber-hi);  --fg: #fff6e5; }
.tone-purple { --bg: var(--purple-bg); --hi: var(--purple-hi); --fg: #fbefff; }
.tone-blue   { --bg: var(--blue-bg);   --hi: var(--blue-hi);   --fg: #eef4ff; }
.tone-ink    { --bg: var(--ink);       --hi: var(--green-hi);  --fg: #f2efe8; }
.tone-paper  { --bg: var(--cream);     --hi: var(--green-bg);  --fg: var(--ink); }
@media (prefers-color-scheme: dark) {
  .tone-paper { --bg: #181816; --hi: var(--green-hi); --fg: #f2efe8; }
}
[class*="tone-"] {
  --muted: color-mix(in srgb, var(--fg) 70%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 16%, var(--bg));
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.55 var(--font);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
::selection { background: var(--hi); color: var(--bg); }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; border-radius: 6px; }
code { font: 0.85em var(--mono); background: var(--line); padding: 2px 6px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.panel { position: relative; padding: clamp(96px, 14vw, 200px) 0; overflow: clip; }
.center { text-align: center; }

/* ---------- Display type ---------- */
.d, h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.005em;
  margin: 0;
}
.d-mega { font-size: clamp(72px, 15vw, 230px); }
.d-huge { font-size: clamp(60px, 11.5vw, 180px); }
.d-big  { font-size: clamp(46px, 7.5vw, 112px); }
.d-mid  { font-size: clamp(32px, 4.4vw, 60px); line-height: 0.92; }
.hi { color: var(--hi); }
.stack > * { display: block; }

.eyebrow {
  display: inline-block;
  font: 600 13px/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hi);
  margin-bottom: 22px;
}
.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  translate: -50% 0;
  width: min(calc(100% - 2 * 14px), 760px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  color: #f2efe8;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  transition: translate 0.5s var(--expo);
}
.nav.is-hidden { translate: -50% calc(-100% - 20px); }
.nav .brand {
  font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  color: #f2efe8;
}
.nav .brand:hover { text-decoration: none; color: var(--green-hi); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: #f2efe8; font-size: 15px; font-weight: 550;
  padding: 9px 14px; border-radius: 999px;
}
.nav-links a:hover { text-decoration: none; background: rgb(255 255 255 / 0.1); }
.nav-links a[aria-current="page"] { background: var(--nav-hi, var(--green-hi)); color: var(--ink); }

/* ---------- Buttons (the label rolls on hover; see site.js) ---------- */
.btn {
  --btn-bg: var(--hi); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 400 19px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em;
  transition: transform 0.4s var(--back);
}
.btn:hover { text-decoration: none; transform: rotate(-2deg) scale(1.04); }
.btn.ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--hi); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.btn-row.center { justify-content: center; }
.btn-note { font-size: 15px; color: var(--muted); }

.roll { display: inline-grid; overflow: hidden; height: 1.08em; line-height: 1.08; }
.roll > span { grid-area: 1 / 1; display: block; white-space: nowrap; }
.roll .rc { display: inline-block; transition: transform 0.5s var(--expo); transition-delay: calc(var(--i) * 16ms); }
.roll > span + span .rc { transform: translateY(110%); }
:is(a, button):hover .roll .rc { transform: translateY(-110%); }
:is(a, button):hover .roll > span + span .rc { transform: translateY(0); }

/* ---------- Split-text reveals (classes added by site.js) ---------- */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; }
.js [data-split] .c {
  opacity: 0;
  transform: translateX(0.9em) skewX(-22deg) scaleY(0.95);
  transform-origin: center bottom;
  transition: transform 0.95s var(--expo), opacity 0.35s ease-out;
  transition-delay: calc(var(--i) * 22ms + var(--delay, 0ms));
}
.js [data-split].is-in .c { opacity: 1; transform: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateX(4rem) skewX(-11deg);
  transition: transform 0.85s var(--expo), opacity 0.3s ease-out;
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Stickers: an image that flips in on a vertical axis and lands with a bounce */
.js [data-sticker] {
  opacity: 0;
  transform: perspective(1000px) rotateY(var(--ry, 40deg)) rotate(var(--r0, 10deg)) scale(1.35);
  transition: transform 0.9s var(--back), opacity 0.25s ease-out;
  transition-delay: var(--delay, 0ms);
}
.js [data-sticker].is-in { opacity: 1; transform: perspective(1000px) rotate(var(--r1, 0deg)); }

/* Scroll-scrubbed elements get their transform written per frame. */
[data-lean], [data-tilt], [data-scrub-chars] .c { will-change: transform; }

/* ---------- Home: hero ---------- */
.hero { min-height: 100svh; display: grid; align-content: center; padding: 130px 0 110px; }
.hero h1 { position: relative; z-index: 2; }
.hero .lede { margin: 40px auto 0; text-align: center; position: relative; z-index: 2; }

/* The pile: screenshots and icons scattered around the headline like
   stickers on a laptop lid. They land from off-screen on load. */
.pile { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pile > * { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); }
.pile img { width: 100%; height: auto; }
.pile .shot-a { width: clamp(220px, 23vw, 380px); left: -2.5%; top: 20%; }
.pile .shot-b { width: clamp(220px, 23vw, 380px); right: -2.5%; bottom: 17%; }
.pile .icon-a, .pile .icon-b { width: clamp(84px, 9vw, 140px); border-radius: 22%; overflow: visible; box-shadow: none; filter: drop-shadow(0 18px 26px rgb(0 0 0 / 0.55)); }
.pile .icon-a { left: 12%; bottom: 13%; }
.pile .icon-b { right: 13%; top: 15%; }
.pile .shot-c { width: clamp(170px, 15vw, 250px); right: 15%; bottom: -5%; }
.pile .icon-c { width: clamp(72px, 7.5vw, 118px); left: 19%; top: 10%; border-radius: 22%; overflow: visible; box-shadow: none; filter: drop-shadow(0 18px 26px rgb(0 0 0 / 0.55)); }
.js .pile > * { opacity: 0; transition: transform 1.1s var(--expo), opacity 0.4s ease-out; }
.pile .shot-a { --t0: scale(1.2) rotate(-24deg) translate3d(-60%, 50%, 0); --t1: rotate(-7deg); --d: 0.55s; }
.pile .shot-b { --t0: scale(1.2) rotate(20deg) translate3d(60%, 40%, 0);   --t1: rotate(6deg);  --d: 0.65s; }
.pile .icon-a { --t0: scale(1.5) rotate(-40deg) translate3d(-90%, 60%, 0); --t1: rotate(-10deg); --d: 0.8s; }
.pile .icon-b { --t0: scale(1.5) rotate(40deg) translate3d(90%, -60%, 0);  --t1: rotate(12deg); --d: 0.9s; }
.pile .shot-c { --t0: scale(1.2) rotate(18deg) translate3d(30%, 70%, 0);   --t1: rotate(-5deg); --d: 0.72s; }
.pile .icon-c { --t0: scale(1.5) rotate(-36deg) translate3d(-60%, -70%, 0); --t1: rotate(-8deg); --d: 0.95s; }
.pile > * { transform: var(--t1); }
.js .pile > * { transform: var(--t0); transition-delay: var(--d); }
.js .pile.is-in > * { opacity: 1; transform: var(--t1); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  font: 600 12px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue::after {
  content: ""; display: block; width: 2px; height: 34px; margin: 10px auto 0;
  background: linear-gradient(var(--hi), transparent);
  animation: cue 1.8s var(--expo) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Home: statement ---------- */
.statement h2 { text-align: center; }
.statement .line { display: block; }
.inline-sticker {
  display: inline-block; vertical-align: -0.06em;
  height: 0.82em; width: auto; margin: 0 -0.05em;
  border-radius: 22%;
}
.js .inline-sticker {
  opacity: 0;
  transform: translate(var(--sx, 160px), -40px) rotate(var(--sr, 14deg)) scale(1.2);
  transform-origin: center bottom;
  transition: transform 1.1s var(--expo), opacity 0.45s ease-out;
}
.js .inline-sticker.is-in { opacity: 1; transform: none; }
.statement .lede { margin: 56px auto 0; text-align: center; }

/* ---------- Home: mission (lines lean in as they scroll) ---------- */
.mission .eyebrow { display: block; text-align: center; }
.mission h2 { text-align: center; }
.mission .line { display: block; transform-origin: center bottom; }

/* ---------- Home: house rules ---------- */
.rules-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.rules-head p { max-width: 26em; margin: 0; }
.rules { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.rules li {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 4.5ch 1fr auto; align-items: baseline; gap: 18px;
  padding: 18px 6px; border-bottom: 2px solid var(--fg);
}
.rules li::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--hi);
  transform: translateY(101%);
  transition: transform 0.55s var(--expo);
}
.rules li > * { position: relative; z-index: 1; transition: transform 0.55s var(--expo), color 0.2s; }
.rules .n { font: 600 15px/1 var(--mono); color: var(--muted); }
.rules .t { font: 400 clamp(30px, 5vw, 64px)/0.95 var(--display); text-transform: uppercase; }
.rules .s { font-size: 15px; color: var(--muted); text-align: right; max-width: 22em; }
.rules li:hover::before { transform: none; }
.rules li:hover > * { color: var(--bg); }
.rules li:hover .t { transform: translateX(14px) skewX(-8deg); }

/* ---------- Home: app stack (sticky cards that pile up) ---------- */
.apps-head { text-align: center; margin-bottom: clamp(48px, 7vw, 96px); }
.stack-cards { display: grid; gap: 40px; }
.stack-card {
  position: sticky; top: calc(84px + var(--k, 0) * 22px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  min-height: min(78svh, 720px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius);
  color: var(--fg); text-decoration: none;
  transform-origin: center top;
  box-shadow: 0 -20px 60px -30px rgb(0 0 0 / 0.5);
}
.stack-card:hover { text-decoration: none; }
.stack-card h3 { font: 400 clamp(72px, 12vw, 190px)/0.82 var(--display); text-transform: uppercase; color: var(--hi); margin: 0 0 18px; }
.stack-card .tagline { font: 400 clamp(26px, 3vw, 40px)/0.98 var(--display); text-transform: uppercase; margin: 0 0 20px; color: var(--fg); }
.stack-card p { color: var(--muted); max-width: 30em; }
.stack-card .meta { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; margin-top: 18px; }
.stack-card .visual { position: relative; }
.stack-card .visual .screen { border-radius: 14px; overflow: hidden; transform: rotate(3deg); box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.7); transition: transform 0.7s var(--expo); }
.stack-card:hover .visual .screen { transform: rotate(0deg) scale(1.02); }
.stack-card .visual .app-icon { position: absolute; width: 30%; left: -9%; bottom: -12%; --r1: -8deg; filter: drop-shadow(0 18px 26px rgb(0 0 0 / 0.55)); }

/* ---------- Home: closing CTA ---------- */
.cta { text-align: center; }
.cta .lede { margin: 40px auto 0; }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 9vw, 120px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin-bottom: clamp(48px, 8vw, 110px); }
.footer h4 { font: 600 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--fg); }
.footer a:hover { color: var(--hi); }
.footer-mark {
  font: 400 clamp(64px, 21.5vw, 330px)/0.78 var(--display); text-transform: uppercase;
  color: var(--hi); text-align: center; letter-spacing: -0.01em;
  margin: 0 0 28px; white-space: nowrap;
}
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); }

/* ---------- Product pages ---------- */
.p-hero { min-height: 100svh; display: grid; align-content: center; padding: 130px 0 80px; text-align: center; }
.p-hero .app-icon { width: clamp(96px, 11vw, 150px); margin: 0 auto 28px; --r1: -6deg; filter: drop-shadow(0 22px 30px rgb(0 0 0 / 0.5)); }
.p-hero .sub { margin-top: 18px; }
.p-hero .lede { margin: 36px auto 0; }

.showcase { padding-top: 0; }
.showcase figure { margin: 0; }
.showcase .screen { border-radius: clamp(12px, 1.6vw, 22px); overflow: hidden; box-shadow: 0 50px 100px -40px rgb(0 0 0 / 0.75); transform-origin: center top; }
.showcase figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 22px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 72px); margin-top: clamp(40px, 6vw, 80px); }
.feature { padding: 28px 0 32px; border-top: 2px solid var(--fg); }
.feature .n { font: 600 14px/1 var(--mono); color: var(--hi); display: block; margin-bottom: 16px; }
.feature h3 { font: 400 clamp(30px, 3.4vw, 46px)/0.95 var(--display); text-transform: uppercase; margin: 0 0 14px; }
.feature p { color: var(--muted); margin: 0; font-size: 17px; }

/* Deck: screenshots stacked like cards; click, drag or use the buttons */
.deck-wrap { display: grid; justify-items: center; }
.deck { position: relative; width: min(880px, 100%); aspect-ratio: 16 / 10; margin-top: clamp(40px, 6vw, 80px); touch-action: pan-y; }
.deck-card {
  position: absolute; inset: 0; margin: 0;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7);
  transition: transform 0.6s var(--expo), opacity 0.4s;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck-card figcaption { display: none; }
.deck-card.is-dragging { transition: none; cursor: grabbing; }
.deck-bar { display: flex; align-items: center; gap: 18px; margin-top: clamp(56px, 8vw, 96px); max-width: 880px; width: 100%; }
.deck-caption { flex: 1; margin: 0; color: var(--muted); font-size: 16px; min-height: 3em; }
.deck-btn {
  width: 56px; height: 56px; flex: none; border-radius: 50%; border: 0;
  background: var(--hi); color: var(--bg); cursor: pointer;
  font: 400 24px/1 var(--display);
  transition: transform 0.4s var(--back);
}
.deck-btn:hover { transform: scale(1.1) rotate(-8deg); }
.deck-count { font: 600 14px/1 var(--mono); color: var(--muted); }

.asks { max-width: 50em; }
.asks h2 { margin-bottom: 30px; }

/* ---------- Prose pages (privacy, support) keep their old markup ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin: 14px 0 0; padding: 8px 8px 8px 20px;
  border-radius: 999px; background: var(--ink); color: #f2efe8;
}
@media (prefers-color-scheme: dark) { .site-header { background: #262624; } }
.site-header .brand { font: 400 22px/1 var(--display); text-transform: uppercase; color: #f2efe8; }
.site-header .brand:hover { text-decoration: none; color: var(--green-hi); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { color: #f2efe8; font-size: 15px; font-weight: 550; padding: 9px 14px; border-radius: 999px; }
.site-nav a:hover { text-decoration: none; background: rgb(255 255 255 / 0.1); }
.prose { max-width: 760px; padding: clamp(56px, 8vw, 110px) 0 0; }
.prose h1 { font-size: clamp(54px, 9vw, 120px); margin-bottom: 18px; }
.prose h2 { font-size: clamp(30px, 4vw, 44px); line-height: 0.95; margin: 56px 0 16px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--hi); }
.prose .updated { color: var(--muted); font: 600 13px/1 var(--mono); letter-spacing: 0.04em; margin-bottom: 40px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.site-footer {
  border-top: 2px solid var(--fg);
  margin-top: 120px; padding: 28px 0 48px;
  color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.site-footer a { color: var(--fg); }

/* ---------- Page transition (three balls, like the house colors) ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.curtain i {
  position: absolute; left: 50%; top: 50%;
  width: 300vmax; height: 300vmax; margin: -150vmax 0 0 -150vmax;
  border-radius: 50%;
  transform: scale(0);
}
.curtain i:nth-child(1) { background: var(--green-hi); }
.curtain i:nth-child(2) { background: var(--purple-hi); }
.curtain i:nth-child(3) { background: var(--amber-hi); }

/* Set by the inline <head> script when we arrived via a curtain, so the
   new page never flashes before site.js takes over and opens it. */
html.is-arriving body::after { content: ""; position: fixed; inset: 0; z-index: 99; background: var(--amber-hi); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .pile .shot-a { top: 9%; left: -18%; width: 46vw; }
  .pile .shot-b { bottom: 6%; right: -18%; width: 46vw; }
  .pile .icon-a { left: 6%; bottom: 20%; width: 17vw; }
  .pile .icon-b { right: 6%; top: 12%; width: 17vw; }
  .pile .shot-c, .pile .icon-c { display: none; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; top: calc(76px + var(--k, 0) * 16px); }
  .stack-card .visual { order: -1; margin: 0 6% 12px; }
  .features { grid-template-columns: 1fr; }
  .rules li { grid-template-columns: 3.5ch 1fr; }
  .rules .s { grid-column: 2; text-align: left; }
}
@media (max-width: 560px) {
  .d-mega { font-size: 21vw; }
  .nav { padding-left: 16px; }
  .nav-links a, .site-nav a { padding: 9px 10px; font-size: 14px; }
  .site-header { border-radius: 24px; padding-left: 16px; }
  .deck-bar { flex-wrap: wrap; }
  .deck-caption { flex-basis: 100%; order: -1; }
}

/* ---------- Reduced motion: everything lands where it belongs ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-split] .c, .js [data-reveal], .js [data-sticker], .js .pile > *, .js .inline-sticker {
    opacity: 1 !important; transition: none !important;
  }
  .js [data-split] .c, .js [data-reveal], .js .inline-sticker { transform: none !important; }
  .js [data-sticker] { transform: rotate(var(--r1, 0deg)) !important; }
  .js .pile > * { transform: var(--t1) !important; }
  .roll .rc, .btn, .deck-card, .rules li::before, .rules li > *, .stack-card .visual .screen { transition: none !important; }
  .scroll-cue::after { animation: none; }
}
