@font-face { font-family: "Apfel Grotezk"; src: url("fonts/ApfelGrotezk-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("fonts/ApfelGrotezk-Mittel.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("fonts/ApfelGrotezk-Fett.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #12120e;
  --dot: rgb(255 255 255 / 0.1);
  --ink: #f3f2ec;
  --muted: #a8a79b;
  --line: rgb(243 242 236 / 0.14);
  --panel: #1c1c17;
  --panel-2: #26261f;
  --card: #eceae3;
  --card-ink: #14140f;
  --card-muted: #5b5a50;
  --accent: #3f96db;
  --accent-strong: #62adea;
  --accent-ink: #04131f;
  --display: "Apfel Grotezk", "Inter", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --bar-h: 56px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; background: var(--bg); color-scheme: dark; }
body {
  margin: 0; min-height: 100%;
  font: 400 14px/1.45 var(--body); color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss03";
}
body[data-view="surface"] { overflow: hidden; height: 100%; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
html { scrollbar-color: #4a4a40 var(--bg); scrollbar-width: thin; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
body[data-view="rows"] .bar { background: linear-gradient(var(--bg) 60%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin-left: -10px; background: var(--bg); text-decoration: none; font-family: var(--display); line-height: 1; }
.brand-logo { height: 21px; width: auto; display: block; }
.brand-sub { font-weight: 400; font-size: 21px; letter-spacing: -0.02em; color: var(--muted); padding-top: 2px; }

/* page switch: wordmark menu (Deals + curated lists) */
.brand-wrap { position: relative; display: flex; align-items: center; background: var(--bg); }
.list-btn {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 2px 10px 0 0;
  font: 400 21px/1 var(--display); letter-spacing: -0.02em; color: var(--muted);
  transition: color 160ms ease;
}
.list-btn svg { margin-top: -2px; transition: transform 200ms var(--ease-out); }
.list-btn:hover, .list-btn[aria-expanded="true"] { color: var(--ink); }
.list-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.list-menu {
  position: absolute; left: 0; top: 42px; min-width: 250px; padding: 6px 0;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 24px 40px -20px rgb(0 0 0 / 0.8);
  transform-origin: top left; animation: menu-in 180ms var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.list-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 10px 14px; text-decoration: none; }
.list-menu a b { font: 500 19px/1.1 var(--display); letter-spacing: -0.02em; }
.list-menu a span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-menu a:hover, .list-menu a:focus-visible { background: var(--panel-2); outline: 0; }
.list-menu a[aria-current] b { color: var(--accent-strong); }
/* the same switch as words under the intro */
.lists { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 22px; pointer-events: auto; }
.lists a {
  font: 400 27px/1.15 var(--display); letter-spacing: -0.02em; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid transparent; transition: color 160ms ease, border-color 160ms ease;
}
.lists a:hover { color: var(--ink); }
.lists a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.hero .lists { margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .list-menu { animation: none; } }
.bar-right { display: flex; align-items: center; gap: 18px; }
.views { display: flex; gap: 14px; height: 34px; align-items: center; padding: 0 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.views button {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 0 6px; color: var(--muted); border-bottom: 1px solid transparent;
  transition: color 160ms ease;
}
.views button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.search {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  background: var(--panel); color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms ease, color 160ms ease;
}
.search:focus-within { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.search input {
  width: 190px; background: none; border: 0; outline: 0; color: var(--ink);
  font-size: 13px; caret-color: var(--accent-strong);
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- surface ---------- */
.surface {
  position: fixed; inset: 0; overflow: hidden;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 28px 28px;
}
.surface.dragging { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* --hs scales the wordmark on narrow screens (set by placeHero in app.js) so the start view fits */
.hero { --hs: 1; position: absolute; left: 0; top: 0; width: calc(1090px * var(--hs)); pointer-events: none; }
.hero h1 {
  margin: 0; display: flex; align-items: center; gap: calc(38px * var(--hs)); font: 400 calc(186px * var(--hs))/0.82 var(--display); letter-spacing: -0.035em; color: var(--muted);
}
.hero h1 img { height: calc(150px * var(--hs)); width: auto; display: block; }
.hero h1 span { display: block; padding-top: 0.06em; }
.hero p {
  margin: calc(26px * var(--hs)) 0 0 4px; max-width: 40ch; text-wrap: balance;
  font: 400 27px/1.15 var(--display); letter-spacing: -0.02em; color: var(--muted);
}

.tile {
  position: absolute; display: block; text-align: left; text-decoration: none;
  transition: opacity 240ms ease;
}
.tile-in {
  display: block;
  transform: rotate(var(--r, 0deg));
  transition: transform 220ms var(--ease-out);
}
.tile .card {
  display: block; position: relative; overflow: hidden;
  background: var(--card); aspect-ratio: var(--ar, 1);
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.75);
}
.tile .card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 9%;
  mix-blend-mode: multiply;
  opacity: 0; transition: opacity 320ms ease;
  -webkit-user-drag: none; pointer-events: none;
}
.tile .card img.ok { opacity: 1; }
.tile.photo .card img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.tile .card .fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 14%;
  font: 500 15px/1.15 var(--display); color: var(--card-muted); text-align: center;
}
.tile .card img + .fallback { display: none; }
.tile .off {
  position: absolute; left: 0; top: 0; z-index: 1;
  padding: 4px 7px 3px; background: var(--accent); color: var(--accent-ink);
  font: 700 13px/1 var(--display); letter-spacing: -0.01em;
}
.tile .cap { display: block; margin-top: 10px; padding-right: 8px; }
.tile .cap-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.35; color: var(--muted);
  transition: color 160ms ease;
}
.tile .cap-price { display: block; margin-top: 3px; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }

.tile.partner .card {
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 16px 12px;
}
.tile.partner .p-name { font: 500 23px/1.02 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.tile.partner .p-off { display: block; white-space: nowrap; font: 700 88px/0.82 var(--display); letter-spacing: -0.04em; margin-left: -0.04em; }
.tile.partner .p-off[data-long] { font-size: 46px; }
.tile.partner .p-when { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 10px; }
.tile.partner.soon .card { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 18px 30px -18px rgb(0 0 0 / 0.75); }
/* a list's category tile: no deal to shout, so it stays quiet and names the category */
.tile.partner.group .card { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 18px 30px -18px rgb(0 0 0 / 0.75); }
.tile.partner.group .p-off { color: var(--accent-strong); }
.tile .cap-name i { font-style: normal; color: var(--muted); }
.deal.pick { grid-template-columns: 1fr; }
.deal.pick a { color: var(--ink); }

.tile.dim { opacity: 0.07; pointer-events: none; }
.tile:active .tile-in { transform: rotate(var(--r, 0deg)) scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { z-index: 5; }
  .tile:hover .tile-in { transform: rotate(0deg) scale(1.035); }
  .tile:hover .cap-name { color: var(--ink); }
}
.tile:focus-visible { z-index: 6; }
.tile:focus-visible .tile-in { transform: rotate(0deg) scale(1.035); }

/* load-in: one authored entrance, staggered from the hero outwards */
.world.intro .tile-in { animation: settle 620ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.world.intro .hero { animation: rise 700ms var(--ease-out) both; }
@keyframes settle { from { opacity: 0; transform: rotate(calc(var(--r, 0deg) * 3)) translateY(26px) scale(0.94); filter: blur(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- rows ---------- */
.rows { padding: calc(var(--bar-h) + 28px) var(--gutter) 220px; max-width: 1560px; margin: 0 auto; }
.rows-intro { max-width: 44ch; margin: 8px 0 56px; }
.rows-intro h1 { margin: 0 0 14px; font: 400 clamp(64px, 12vw, 150px)/0.84 var(--display); letter-spacing: -0.035em; }
.rows-intro p { margin: 0; font: 400 clamp(18px, 2.2vw, 24px)/1.2 var(--display); color: var(--muted); text-wrap: balance; }
.prow { border-top: 1px solid var(--line); padding: 20px 0 44px; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; }
.prow-head { position: sticky; top: calc(var(--bar-h) + 8px); align-self: start; }
.prow-name { margin: 0; font: 500 34px/1 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.prow-off { display: inline-block; margin: 14px 0 10px; padding: 5px 9px 4px; background: var(--accent); color: var(--accent-ink); font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.prow-off.soon { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.prow-terms { margin: 0; color: var(--muted); max-width: 34ch; }
.prow-when { margin: 6px 0 16px; font-size: 12px; color: var(--ink); }
.prow-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.prow-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .prow-cta:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; align-items: start; }
.pgrid .tile { position: static; }
.pgrid .tile-in { transform: none; }
.pgrid .tile .card { box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .pgrid .tile:hover .tile-in { transform: translateY(-3px); } }
.pgrid-none { color: var(--muted); max-width: 46ch; margin: 4px 0 0; }

.empty { position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 20; margin: 0; padding: 14px 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.empty button { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- filter panel ---------- */
.filter {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 25; width: 330px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -24px rgb(0 0 0 / 0.9);
}
.filter-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 12px 14px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.filter-toggle .num { color: var(--muted); }
.filter-body { padding: 2px 14px 16px; border-top: 1px solid var(--line); }
.filter[data-collapsed] .filter-body { display: none; }
fieldset { border: 0; margin: 0; padding: 12px 0 0; min-width: 0; }
legend { padding: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.opts { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.opt {
  display: flex; width: 100%; align-items: center; gap: 8px; padding: 4px 2px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-align: left;
  color: var(--ink);
}
.opt::before { content: ""; width: 8px; height: 8px; flex: none; box-shadow: inset 0 0 0 1px var(--muted); transition: background 140ms ease, box-shadow 140ms ease; }
.opt[aria-pressed="true"]::before { background: var(--accent-strong); box-shadow: none; }
.opt .num { margin-left: auto; color: var(--muted); }
.range { display: block; margin-top: 16px; font-size: 12px; color: var(--muted); }
.range-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.range output { color: var(--ink); font-variant-numeric: tabular-nums; }
.range input { display: block; width: 100%; margin: 10px 0 0; -webkit-appearance: none; appearance: none; height: 16px; background: none; }
.range input::-webkit-slider-runnable-track { height: 1px; background: var(--muted); }
.range input::-moz-range-track { height: 1px; background: var(--muted); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -6px; background: var(--ink); border: 0; border-radius: 0; }
.range input::-moz-range-thumb { width: 12px; height: 12px; background: var(--ink); border: 0; border-radius: 0; }

.zoom { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 25; display: flex; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.zoom button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); transition: background 140ms ease; }
.zoom button + button { box-shadow: -1px 0 0 var(--line); }
.zoom button:active { background: var(--panel-2); }
body[data-view="rows"] .zoom { display: none; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(8 8 6 / 0.6); opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(500px, 100vw);
  background: var(--panel); color: var(--ink);
  transform: translateX(100%);
  transition: transform 260ms var(--ease-drawer);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -30px 0 60px -30px rgb(0 0 0 / 0.9);
}
body[data-sheet] .scrim { opacity: 1; pointer-events: auto; }
body[data-sheet] .sheet { transform: none; transition-duration: 440ms; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sheet-close:active { transform: scale(0.96); }
.sheet-media { position: relative; background: var(--card); aspect-ratio: 1; overflow: hidden; }
.sheet-media.photo { aspect-ratio: 465 / 520; }
.sheet-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.sheet-media.photo img { object-fit: cover; object-position: top; padding: 0; mix-blend-mode: normal; }
.sheet-deal { background: var(--accent); color: var(--accent-ink); padding: 56px 24px 22px; }
.sheet-deal.soon { background: var(--panel-2); color: var(--ink); }
.sheet-deal .big { font: 700 clamp(96px, 30vw, 150px)/0.8 var(--display); letter-spacing: -0.04em; margin-left: -0.04em; }
.sheet-deal .big[data-long] { font-size: clamp(64px, 19vw, 96px); }
.sheet-pad { padding: 22px 24px 32px; }
.sheet-partner { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.sheet h2 { margin: 0; font: 500 28px/1.05 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.sheet-price { margin: 10px 0 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.deal {
  margin: 20px 0 0; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline;
  background: var(--panel-2);
}
.deal-off { grid-row: span 2; font: 700 34px/0.9 var(--display); letter-spacing: -0.03em; color: var(--accent-strong); }
.deal-terms { margin: 0; }
.deal-when { margin: 0; font-size: 12px; color: var(--muted); }
.opt-row { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.opt-label { width: 68px; font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; }
.stepper button:active { background: var(--panel-2); }
.stepper output { min-width: 40px; display: grid; place-items: center; font-variant-numeric: tabular-nums; box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 40px; height: 38px; padding: 0 10px; font-size: 13px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line); transition: background 140ms ease, color 140ms ease; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.want { flex: 1; min-width: 200px; height: 38px; padding: 0 12px; background: var(--bg); border: 0; outline: 0; box-shadow: inset 0 0 0 1px var(--line); caret-color: var(--accent-strong); }
.want:focus { box-shadow: inset 0 0 0 1px var(--accent-strong); }
.want::placeholder { color: var(--muted); }

.prompt-label { margin: 26px 0 8px; font-size: 12px; color: var(--muted); }
.prompt {
  margin: 0; padding: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  font: 400 13px/1.5 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text;
}
.copy {
  position: relative; margin-top: 14px; width: 100%; height: 54px; overflow: hidden;
  background: var(--accent); color: var(--accent-ink);
  font: 500 17px/1 var(--display); letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background 200ms ease;
}
.copy:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .copy:hover { background: var(--accent-strong); } }
.copy span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 220ms ease, filter 220ms ease, transform 260ms var(--ease-out); }
.copy .done { opacity: 0; filter: blur(4px); transform: translateY(8px); }
.copy[data-done] { background: var(--ink); color: var(--bg); }
.copy[data-done] .idle { opacity: 0; filter: blur(4px); transform: translateY(-8px); }
.copy[data-done] .done { opacity: 1; filter: none; transform: none; }
.sheet-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.sheet-links a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color 140ms ease; }
.sheet-links a:hover { color: var(--ink); }
.sheet-note { margin: 22px 0 0; font-size: 12px; color: var(--muted); max-width: 52ch; }
.more { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.more h3 { margin: 0 0 14px; font: 500 15px/1.2 var(--display); }
.more .pgrid { grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }

/* ---------- product stage (see stageOpen in app.js) ---------- */
/* the table, the list and the floating controls step back; the dotted ground stays */
.world, .rows, .filter, .zoom, .bar-right { transition: opacity 320ms ease; }
body[data-stage][data-sheet] :is(.world, .rows, .filter, .zoom, .bar-right) { opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease-out); }
body[data-stage] .scrim { background: transparent; }
.tile.lifted .tile-in { opacity: 0; } /* still clickable: a click mid-flight catches the product again */

.flyer { position: fixed; z-index: 41; pointer-events: none; transform-origin: 50% 50%; will-change: transform; isolation: isolate; }
.flyer img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.flyer.photo img { object-fit: cover; object-position: top; }
.flyer.photo { box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9); }
/* contact shadow under cut-outs: a cheap blurred ellipse, faded instead of animating a filter */
.flyer.cut::after {
  content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: -3%; height: 9%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), transparent);
  opacity: 0; transition: opacity 200ms ease;
}
.flyer.cut.on::after { opacity: 1; transition: opacity 500ms ease 220ms; }
body[data-stage="slot"] .flyer { z-index: 42; }
body[data-stage="slot"] .flyer.cut::after { display: none; }

.stage-title {
  position: fixed; z-index: 41; left: 40px; top: calc(var(--bar-h) + 6px); right: calc(min(500px, 100vw) + 40px);
  margin: 0; font: 400 clamp(64px, 8.4vw, 136px)/0.88 var(--display); letter-spacing: -0.035em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  opacity: 0; transform: translateY(14px); transition: opacity 160ms ease, transform 200ms var(--ease-out);
}
body[data-stage="stage"][data-sheet] .stage-title { opacity: 1; transform: none; transition: opacity 420ms ease 110ms, transform 620ms var(--ease-out) 110ms; }

/* wide: the panel is a quiet companion to the stage, it fades in instead of sliding across */
body[data-stage="stage"] .sheet { transform: translateX(28px); opacity: 0; transition: transform 200ms var(--ease-out), opacity 160ms ease; box-shadow: none; border-left: 1px solid var(--line); }
body[data-stage="stage"][data-sheet] .sheet { transform: none; opacity: 1; transition: transform 460ms var(--ease-out) 70ms, opacity 280ms ease 70ms; }
body[data-stage="stage"] .sheet-media { display: none; }
body[data-stage="stage"] .sheet-pad { padding-top: 64px; }
/* narrow: the panel fades in place so the product has a fixed slot to land in */
body[data-stage="slot"] .sheet { transform: none; opacity: 0; transition: opacity 180ms ease; }
body[data-stage="slot"][data-sheet] .sheet { opacity: 1; transition: opacity 260ms ease; }
.sheet-media img.await { opacity: 0; }

/* contents of a freshly opened panel arrive in a short cascade */
.sheet-body[data-enter] .sheet-pad > * { animation: sheet-in 380ms var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 38ms); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .bar { gap: 10px; }
  .bar-right { flex: 1; min-width: 0; gap: 8px; justify-content: flex-end; }
  .search { flex: 1; min-width: 0; max-width: 220px; }
  .search input { width: 100%; min-width: 0; }
  .views { gap: 10px; padding: 0 10px; }
  .brand-sub, .list-btn { display: none; }
  .lists a { font-size: 22px; }
  .filter { width: auto; right: 70px; max-width: 330px; }
  .prow { grid-template-columns: 1fr; gap: 18px; }
  .prow-head { position: static; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 22px 12px; }
  .rows { padding-bottom: 120px; }
  .sheet-pad { padding: 18px 16px 28px; }
  .sheet-deal { padding: 56px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .world.intro .tile-in, .world.intro .hero { animation: fade 240ms ease both; animation-delay: 0ms; }
  @keyframes fade { from { opacity: 0; } }
  .sheet, body[data-sheet] .sheet { transition: opacity 160ms ease; transform: none; opacity: 0; visibility: hidden; }
  body[data-sheet] .sheet { opacity: 1; visibility: visible; }
  .tile-in, .copy span { transition-duration: 1ms; }
  .sheet-body[data-enter] .sheet-pad > * { animation: fade 200ms ease both; animation-delay: 60ms; }
  .stage-title, body[data-stage="stage"][data-sheet] .stage-title { transform: none; }
  body[data-stage="stage"] .sheet, body[data-stage="stage"][data-sheet] .sheet { transform: none; visibility: visible; }
  @media (hover: hover) { .tile:hover .tile-in { transform: rotate(var(--r, 0deg)); } }
}

/* ---------- cut-out products: no card, the object sits on the table ---------- */
.tile.cut .card { background: none; box-shadow: none; overflow: visible; }
.tile.cut .card img { padding: 0; mix-blend-mode: normal; }
/* a drop-shadow filter on hundreds of cutouts makes panning stutter, so only the hovered one gets it */
@media (hover: hover) and (pointer: fine) { .world .tile.cut:hover .card img { filter: drop-shadow(0 18px 16px rgb(0 0 0 / 0.6)); } }
.cap-price b { font-weight: 500; color: var(--accent-strong); margin-left: 4px; }
/* on the table, names show on hover or focus so the products carry the view */
.world .tile:not(.partner) .cap {
  position: absolute; left: 50%; top: 100%; width: max(100%, 170px); margin: 8px 0 0; padding: 0;
  transform: translateX(-50%) translateY(-4px); text-align: center; opacity: 0;
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
}
.world .tile:not(.partner):focus-visible .cap { opacity: 1; transform: translateX(-50%); }
@media (hover: hover) and (pointer: fine) { .world .tile:not(.partner):hover .cap { opacity: 1; transform: translateX(-50%); } }
@media (hover: none) { .world .tile:not(.partner) .cap { opacity: 1; transform: translateX(-50%); } }
.pgrid .tile.cut .card { aspect-ratio: 1; }
.pgrid .tile.cut .card img { filter: drop-shadow(0 12px 12px rgb(0 0 0 / 0.5)); }
.sheet-media.cut { background: var(--panel-2); background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 22px 22px; }
.sheet-media.cut img { mix-blend-mode: normal; padding: 12%; filter: drop-shadow(0 26px 22px rgb(0 0 0 / 0.55)); }

/* ---------- order path: one clear action, cart, toast ---------- */
.cart-btn {
  order: 3; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.cart-btn:active { transform: scale(0.97); }
.lang {
  order: 4; display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 34px; padding: 0 8px;
  background: var(--panel); color: var(--muted); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  transition: color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.lang:active { transform: scale(0.97); }
.lang:focus-visible { outline: 1px solid var(--accent-strong); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lang:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } }
.cart-btn .num { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; background: var(--panel-2); color: var(--muted); font-size: 11px; letter-spacing: 0; }
.cart-btn[data-has] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.cart-btn[data-has] .num { background: var(--accent-ink); color: var(--accent-strong); }

.sheet-price s { color: var(--muted); text-decoration-thickness: 1px; }
.sheet-price b { font-weight: 600; color: var(--accent-strong); margin-left: 4px; }
.sheet-price span { color: var(--muted); font-size: 13px; margin-left: 4px; }

.cta { margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.cta:has(.add) { grid-template-columns: 1.5fr 1fr; }
.send {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 16px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 500 17px/1 var(--display); letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background 200ms ease;
}
.send svg { transition: transform 220ms var(--ease-out); }
.send:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .send:hover { background: var(--accent-strong); } .send:hover svg { transform: translateX(4px); } }
.add {
  position: relative; height: 56px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
  font: 500 15px/1 var(--display); transition: transform 160ms var(--ease-out), box-shadow 160ms ease, background 200ms ease, color 200ms ease;
}
.add:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .add:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.add span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 200ms ease, filter 200ms ease, transform 240ms var(--ease-out); }
.add .done { opacity: 0; filter: blur(4px); transform: translateY(8px); }
.add[data-done] { background: var(--ink); color: var(--bg); box-shadow: none; }
.add[data-done] .idle { opacity: 0; filter: blur(4px); transform: translateY(-8px); }
.add[data-done] .done { opacity: 1; filter: none; transform: none; }
.cta-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); max-width: 46ch; }
.prompt-box { margin-top: 18px; border-top: 1px solid var(--line); }
.prompt-box summary { padding: 12px 0; font-size: 13px; color: var(--muted); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.prompt-box summary::-webkit-details-marker { display: none; }
.prompt-box summary::after { content: "+"; font-size: 16px; line-height: 1; color: var(--ink); }
.prompt-box[open] summary::after { content: "\2212"; }
.prompt-box .copy { height: 44px; margin-top: 8px; background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .prompt-box .copy:hover { background: none; box-shadow: inset 0 0 0 1px var(--ink); } }
.prompt-box .copy[data-done] { background: var(--ink); color: var(--bg); }
.more-link { margin-top: 10px; font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.more-link:hover { color: var(--ink); }

.cart h2 { margin: 34px 0 4px; }
.cart-empty { color: var(--muted); max-width: 40ch; margin: 14px 0 0; }
.cgroup { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.cgroup header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cgroup h3 { margin: 0; font: 500 19px/1.1 var(--display); letter-spacing: -0.01em; }
.cbadge { padding: 3px 6px 2px; background: var(--accent); color: var(--accent-ink); font: 700 13px/1 var(--display); }
.cbadge.soon { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cwhen { margin-left: auto; font-size: 12px; color: var(--muted); }
.cline { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; }
.cthumb { position: relative; width: 52px; height: 52px; display: block; }
.cthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cthumb .fallback { display: none; }
.cname { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cname small { display: block; color: var(--muted); font-size: 12px; }
.cline .stepper button { width: 30px; height: 30px; font-size: 15px; }
.cline .stepper output { min-width: 30px; font-size: 13px; }
.cprice { min-width: 74px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.meter { margin: 8px 0 0; }
.meter-bar { height: 3px; background: var(--panel-2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--accent-strong); transform-origin: 0 50%; transition: transform 420ms var(--ease-out); }
.meter p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.meter.ok p { color: var(--accent-strong); }
.ctotal { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.ctotal p { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctotal p b { color: var(--accent-strong); font-weight: 500; }
.ctotal .big { font-size: 17px; color: var(--ink); margin-top: 8px; }
.ctotal .big b { color: var(--ink); font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60; display: flex; align-items: center; gap: 16px;
  padding: 12px 14px 12px 16px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.8);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform 400ms ease, opacity 200ms ease;
}
.toast[data-on] { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast button { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 760px) {
  .cart-btn { padding: 0 10px; }
  .cta:has(.add) { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 44px 1fr auto; }
  .cprice { grid-column: 2 / -1; text-align: left; min-width: 0; color: var(--muted); }
}

@media (max-width: 760px) {
  :root { --bar-h: 98px; }
  .bar { height: auto; padding-top: 11px; align-items: flex-start; }
  .bar-right { flex-wrap: wrap; row-gap: 8px; }
  .search { order: 5; flex: 1 0 calc(100% - 42px); max-width: none; } /* row 2: search + language */
  .lang { order: 6; }
  .filter { right: 108px; }
  .filter-toggle .num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 12px; }
}
@media (max-width: 359px) {
  .bar { gap: 6px; }
  .bar-right { gap: 6px; }
  .brand { padding: 0 8px; margin-left: -8px; }
  .brand-logo { height: 18px; }
  .views { gap: 8px; padding: 0 8px; }
  .cart-btn { padding: 0 8px; gap: 6px; }
  .search { flex-basis: calc(100% - 40px); }
}
