/* Ame in a Van, V2
   Shape rule: buttons, filters and chips are full pills; images, cards and sheets use --r (18px); inputs use 12px. */

:root {
  color-scheme: light;
  /* Gloria palette (mood board): core = antique gold, soft vintage pink; support = warm vanilla, emerald */
  --gold: #c99f5b;
  --pink: #e3a2b8;
  --vanilla: #f7ebdc;
  --emerald: #203d31;
  --paper: #f7ebdc;
  --paper-2: #efdfc9;
  --surface: #fcf5ec;
  --plate: #ffffff;
  --stage-plate: #f4dde4;
  --glow: rgb(227 162 184 / 0.95);
  --glow-2: rgb(214 128 158 / 0.7);
  --glow-gold: rgb(201 159 91 / 0.2);
  --ink: #2a1f17;
  --ink-2: #6a5646;
  --heading: #203d31;
  --line: rgb(42 31 23 / 0.12);
  --accent: #c99f5b;
  --accent-hover: #b88a42;
  --on-accent: #203d31;
  --em: #b4557a;
  --ink-fixed: #203d31;
  --paper-fixed: #f7ebdc;
  --accent-on-dark: #e3a2b8;
  --logo-filter: brightness(0.8) saturate(1.25);
  --shadow: 0 1px 2px rgb(80 55 30 / 0.08), 0 18px 40px -18px rgb(80 55 30 / 0.32);
  --r: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 44px);
  --max: 1320px;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Pink glow from Gloria's interior: soft pink pools drifting slowly behind the page.
   Gradients only (no blur filter), moved with transform so it stays cheap to animate. */
body::before, body::after {
  content: ""; position: fixed; inset: -25vmax; z-index: -1; pointer-events: none;
  will-change: transform, translate, rotate;
}
/* Scroll moves the two layers in opposite directions (--gx/--gy/--gr set by app.js), so the pools slide past each other while swiping. */
body::before {
  background:
    radial-gradient(40vmax 32vmax at 18% 22%, var(--glow), transparent 72%),
    radial-gradient(44vmax 30vmax at 62% 88%, var(--glow), transparent 72%),
    radial-gradient(22vmax 22vmax at 30% 70%, var(--glow-gold), transparent 70%);
  translate: calc(var(--gx, 0) * 1vmax) calc(var(--gy, 0) * 1vmax);
  rotate: calc(var(--gr, 0) * 1deg);
  animation: glow-drift 22s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(38vmax 36vmax at 86% 38%, var(--glow-2), transparent 72%),
    radial-gradient(30vmax 26vmax at 46% 52%, var(--glow-2), transparent 72%),
    radial-gradient(26vmax 22vmax at 12% 84%, var(--glow), transparent 72%);
  translate: calc(var(--gx, 0) * -1.4vmax) calc(var(--gy, 0) * -1.2vmax);
  rotate: calc(var(--gr, 0) * -1.3deg);
  animation: glow-drift 28s ease-in-out -9s infinite alternate-reverse;
}
@keyframes glow-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vmax, -3vmax, 0) scale(1.08); }
  100% { transform: translate3d(-3vmax, 4vmax, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; translate: none; rotate: none; } }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; font-optical-sizing: auto; }
h1, h2 { color: var(--heading); }
h1 em, h2 em { font-style: italic; color: var(--em); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.button:active { transform: scale(0.98); }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover:not([disabled]) { background: var(--accent-hover); }
.button-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-ghost:hover { background: var(--ink); color: var(--paper); }
.button-block { width: 100%; }

.icon-button {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ink);
  font-size: 22px; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-button:hover { background: var(--line); }
.icon-button:active { transform: scale(0.94); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: inline-flex; color: var(--ink); justify-self: start; }
.brand .logo { height: 40px; width: auto; filter: var(--logo-filter); }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.94rem; padding: 8px 14px; border-radius: 999px;
  transition: background-color 0.2s var(--ease);
}
.main-nav a:hover { background: var(--line); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.bag-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
}
.bag-count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; }

/* Calendars spotlight: the first thing on the page -------------------------- */
.cal-spot {
  max-width: var(--max); margin: 0 auto; padding: clamp(16px, 2.5vw, 32px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "copy media" "editions media";
  grid-template-rows: auto 1fr; column-gap: clamp(24px, 4.5vw, 72px);
  min-height: min(760px, calc(100dvh - var(--header-h) - 24px));
}
.cal-copy { grid-area: copy; align-self: end; padding-top: clamp(24px, 4vw, 56px); }
.cal-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--pink); color: var(--emerald); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.cal-badge i { font-size: 16px; }
.cal-spot h2 { font-size: clamp(3rem, 6vw, 5.8rem); line-height: 1.02; letter-spacing: -0.025em; padding-bottom: 0.08em; text-wrap: balance; }
.cal-sub { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); max-width: 34ch; margin: 18px 0 0; }
.cal-editions { grid-area: editions; align-self: start; display: grid; gap: 10px; max-width: 460px; padding: 28px 0 clamp(24px, 4vw, 48px); }
.cal-editions-label { margin: 0 0 2px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cal-edition {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
  min-height: 60px; padding: 0 20px 0 22px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.cal-edition:nth-of-type(n + 2) { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-edition:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: none; }
.cal-edition:active { transform: scale(0.98); }
.cal-edition-price { font-variant-numeric: tabular-nums; opacity: 0.85; }
.cal-edition i { font-size: 18px; transition: transform 0.25s var(--ease); }
.cal-edition:hover i { transform: translateX(3px); }
.cal-edition.is-skeleton { background: color-mix(in srgb, var(--plate) 60%, transparent); box-shadow: none; }

.cal-media {
  grid-area: media; position: relative; align-self: stretch; display: grid; place-items: center;
  margin-bottom: clamp(16px, 2.5vw, 32px); border-radius: var(--r); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 50% at 50% 100%, color-mix(in srgb, var(--accent) 12%, var(--stage-plate)) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--stage-plate) 100%);
}
.cal-media img {
  position: absolute; inset: 6% 0; width: 100%; height: 88%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform 0.8s var(--ease);
}
.cal-media:hover img { transform: translateY(-6px) rotate(-1deg); }
.cal-media-skeleton { width: 52%; aspect-ratio: 0.71; border-radius: 6px; background: color-mix(in srgb, var(--plate) 70%, transparent); }

/* Hero: Gloria showroom (now second, van at half size) ---------------------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(24px, 4vw, 64px);
}
.hero-copy { align-self: center; padding: clamp(16px, 3vw, 40px) 0; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.025em; padding-bottom: 0.08em; text-wrap: balance; }
.hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); max-width: 36ch; margin: 22px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.stage {
  position: relative; align-self: center; height: clamp(300px, 30vw, 400px);
  border-radius: var(--r); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 55% at 50% 92%, color-mix(in srgb, var(--accent) 9%, var(--stage-plate)) 0%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--stage-plate) 70%, #fff) 0%, var(--stage-plate) 100%);
  color: var(--ink-fixed);
}
.stage:focus-visible { outline-offset: 4px; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.stage.is-dragging canvas { cursor: grabbing; }
.stage-fallback { display: none; position: absolute; inset: 0; margin: auto; width: min(44%, 240px); height: auto; }
.stage.no-webgl .stage-fallback { display: block; }
.stage.no-webgl .stage-hint { display: none; }
.stage-label { position: absolute; top: clamp(16px, 2vw, 26px); left: clamp(16px, 2vw, 28px); display: grid; gap: 2px; pointer-events: none; }
.stage-label strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
.stage-label span { font-size: 0.86rem; color: rgb(33 26 38 / 0.62); }
.stage-hint {
  position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 26px); margin: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: rgb(33 26 38 / 0.62);
}
.stage-hint i { font-size: 18px; }
.stage-door {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 20px); min-height: 46px; padding: 0 20px;
  background: rgb(255 250 248 / 0.9); color: var(--ink-fixed); border-color: rgb(33 26 38 / 0.14);
}
.stage-door:hover { background: #fffaf8; border-color: var(--ink-fixed); }
.stage-door[aria-pressed="true"] { background: var(--ink-fixed); color: var(--paper-fixed); border-color: var(--ink-fixed); }
.stage-door i { font-size: 18px; }

/* Shop ---------------------------------------------------------------------- */
.shop, .follow { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gutter) 0; }
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; font-weight: 500; font-size: 0.92rem;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-count { font-size: 0.78rem; opacity: 0.6; font-variant-numeric: tabular-nums; }
.filter-count:empty { display: none; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; grid-auto-flow: dense; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; color: var(--ink); min-width: 0; }
.card-media {
  position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--plate);
  isolation: isolate;
}
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}
.card-media .img-alt { opacity: 0; }
.card:hover .card-media img { transform: scale(1.035); }
.card:hover .card-media .img-alt { opacity: 1; }
.card:hover .card-media .has-alt { opacity: 0; }
.card-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: start; }
.card-name { font-weight: 500; font-size: 0.98rem; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-weight: 600; font-size: 0.98rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-sub { grid-column: 1 / -1; font-size: 0.85rem; color: var(--ink-2); }
.card.is-soldout .card-media img { opacity: 0.55; }
.card.is-feature { grid-column: span 2; grid-row: span 2; }
.card.is-feature .card-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.card.is-feature .card-name { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 500; line-height: 1.15; }
.card.is-feature .card-price { font-size: 1.1rem; }

.skeleton .card-media { background: linear-gradient(100deg, var(--plate) 30%, color-mix(in srgb, var(--plate) 55%, var(--paper)) 50%, var(--plate) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.skeleton .bar { height: 14px; border-radius: 999px; background: var(--paper-2); }
.skeleton .bar.short { width: 40%; }
@keyframes shimmer { to { background-position: -150% 0; } }

.shop-state { text-align: center; padding: 48px 0; color: var(--ink-2); display: grid; justify-items: center; gap: 14px; }
.shop-state[hidden] { display: none; }
.shop-more { display: flex; justify-content: center; margin-top: 48px; }

/* Poster wall ----------------------------------------------------------------- */
.wall { margin-top: clamp(88px, 11vw, 150px); background: var(--ink-fixed); color: var(--paper-fixed); padding: clamp(72px, 9vw, 128px) 0 clamp(80px, 10vw, 140px); }
.wall-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wall-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.wall h2 { color: var(--paper-fixed); }
.wall h2 em { color: var(--accent-on-dark); }
.wall-head p { margin: 0; color: rgb(247 235 232 / 0.72); max-width: 34ch; }
.wall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(18px, 2.6vw, 36px); align-items: start; }
.wall-item { text-decoration: none; color: inherit; display: grid; gap: 16px; }
.wall-item:nth-child(4n + 2), .wall-item:nth-child(4n + 4) { margin-top: clamp(40px, 7vw, 110px); }
.wall-frame {
  background: #fffdfc; padding: clamp(8px, 0.9vw, 13px); border-radius: 4px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.25), 0 36px 60px -32px rgb(0 0 0 / 0.75);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.wall-frame img { width: 100%; height: auto; aspect-ratio: 640 / 900; object-fit: cover; border-radius: 1px; background: #2b2231; }
.wall-item:hover .wall-frame { transform: translateY(-8px); box-shadow: 0 2px 4px rgb(0 0 0 / 0.25), 0 48px 70px -30px rgb(0 0 0 / 0.85); }
.wall-item:focus-visible { outline-offset: 6px; }
.wall-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wall-meta strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.2; }
.wall-meta span { color: rgb(247 235 232 / 0.6); font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Follow + good to know ------------------------------------------------------- */
.follow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.follow-copy p { color: var(--ink-2); max-width: 38ch; margin: 18px 0 28px; font-size: 1.05rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list i { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--paper-2); color: var(--accent); font-size: 21px; }
.info-list strong { display: block; font-weight: 600; font-size: 1.02rem; }
.info-list span { color: var(--ink-2); }
.info-list a { color: var(--ink); text-underline-offset: 3px; }

/* Footer ---------------------------------------------------------------------- */
.site-footer { margin-top: clamp(88px, 11vw, 150px); background: var(--emerald); color: var(--vanilla); --ink: var(--vanilla); --ink-2: rgb(247 235 220 / 0.7); --line: rgb(247 235 220 / 0.16); }
/* Poster wall is the last section: it flows straight into the green footer */
main:has(> .wall:last-child:not([hidden])) + .site-footer { margin-top: 0; border-top: 1px solid rgb(247 235 220 / 0.14); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.footer-brand { color: var(--ink); display: block; width: min(520px, 100%); }
.footer-logo { width: 100%; height: auto; }
.footer-nav a:focus-visible, .footer-brand:focus-visible { outline-color: var(--pink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-cats { display: contents; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  color: var(--ink-2); font-size: 0.88rem;
}

/* Sheets (dialogs) ------------------------------------------------------------ */
.sheet { border: 0; padding: 0; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgb(24 19 27 / 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.product-sheet { width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border-radius: 24px; overflow: auto; }
.sheet-close-form { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; }
.sheet-close { background: var(--surface); }
.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; }
.pd-media { padding: 20px; display: grid; gap: 12px; align-content: start; }
.pd-main { aspect-ratio: 1; background: var(--plate); border-radius: var(--r); overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs:empty { display: none; }
.pd-thumb { flex: 0 0 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--plate); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pd-thumb[aria-current="true"] { border-color: var(--ink); }
.pd-body { padding: 48px 36px 32px 16px; display: flex; flex-direction: column; gap: 18px; }
.pd-body h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.12; padding-right: 32px; }
.pd-price { margin: -6px 0 0; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-options { display: grid; gap: 18px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend, .opt-label { font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; padding: 0; display: block; }
.opt legend span { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.select {
  width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  padding: 0 14px; font-size: 0.95rem;
}
.select:focus { border-color: var(--ink); outline: none; }
.pd-buy { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.pd-add { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 4px; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 999px; display: grid; place-items: center; font-size: 16px; }
.qty-btn:hover { background: var(--line); }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.form-error { color: var(--em); font-size: 0.9rem; font-weight: 500; margin: 0; }
.pd-details { border-top: 1px solid var(--line); padding-top: 14px; }
.pd-details summary { list-style: none; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.pd-details summary::-webkit-details-marker { display: none; }
.pd-details[open] summary i { transform: rotate(180deg); }
.pd-details summary i { transition: transform 0.25s var(--ease); }
.pd-desc { color: var(--ink-2); font-size: 0.93rem; margin-top: 10px; }
.pd-desc p { margin: 0 0 8px; }
.pd-desc ul { margin: 0 0 8px; padding-left: 18px; }

.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw);
  border-radius: 24px 0 0 24px; display: none; flex-direction: column;
}
.drawer[open] { display: flex; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px 14px 28px; }
.drawer-head h2 { font-size: 1.9rem; }
.drawer-head form { margin: 0; }
.bag-items { list-style: none; margin: 0; padding: 0 28px; flex: 1; overflow: auto; }
.bag-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--plate); }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.bag-info { min-width: 0; display: grid; gap: 4px; align-content: start; }
.bag-info strong { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.bag-info small { color: var(--ink-2); font-size: 0.83rem; }
.bag-side { display: grid; justify-items: end; align-content: space-between; gap: 8px; }
.bag-side .qty { transform: scale(0.88); transform-origin: right; }
.bag-remove { border: 0; background: none; color: var(--ink-2); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.bag-empty { padding: 40px 0; text-align: center; color: var(--ink-2); display: grid; gap: 16px; justify-items: center; }
.bag-empty i { font-size: 40px; color: var(--accent); }
.drawer-foot { padding: 20px 28px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.bag-total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.bag-total strong { font-variant-numeric: tabular-nums; }
.bag-note { margin: 0 0 6px; color: var(--ink-2); font-size: 0.86rem; }
.is-busy { pointer-events: none; opacity: 0.6; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 0.92rem;
  box-shadow: var(--shadow); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Motion ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-hero { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
  .reveal-hero:nth-child(2) { animation-delay: 0.08s; }
  .reveal-hero:nth-child(3) { animation-delay: 0.16s; }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .card.enter { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
  .stage-label, .stage-hint, .stage-door { opacity: 0; transition: opacity 0.8s var(--ease) 1.2s; }
  .stage.is-ready .stage-label, .stage.is-ready .stage-hint, .stage.is-ready .stage-door, .stage.no-webgl .stage-label { opacity: 1; }

  .product-sheet[open] { animation: sheet-in 0.45s var(--ease); }
  .drawer[open] { animation: drawer-in 0.45s var(--ease); }
  .sheet[open]::backdrop { animation: fade 0.3s var(--ease); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall-item:nth-child(4n + 2), .wall-item:nth-child(4n + 4) { margin-top: 0; }
  .wall-item:nth-child(3n + 2) { margin-top: clamp(40px, 7vw, 96px); }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a:hover { background: none; }
  /* calendar beside the title, both editions under it: all visible on the first screen */
  .cal-spot { grid-template-columns: minmax(0, 1fr) minmax(0, 38%); grid-template-areas: "copy media" "editions editions"; grid-template-rows: none; column-gap: 20px; min-height: 0; padding-top: 20px; }
  .cal-copy { align-self: center; padding: 8px 0 0; }
  .cal-media { margin-bottom: 0; align-self: stretch; min-height: 200px; }
  .cal-media img { inset: 7% 9%; width: 82%; height: 86%; }
  .cal-editions { max-width: none; padding: 20px 0 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; gap: 8px; }
  .hero-copy { padding: 8px 0 16px; }
  .stage { height: auto; aspect-ratio: 16 / 9; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-item:nth-child(4n + 2), .wall-item:nth-child(4n + 4) { margin-top: 0; }
  .wall-item:nth-child(even) { margin-top: clamp(32px, 9vw, 72px); }
  .follow { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-body { padding: 4px 20px 24px; }
}
@media (max-width: 640px) {
  .brand .logo { height: 34px; }
  /* one swipeable row of categories instead of a wall of pills */
  .shop-head { min-width: 0; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); width: calc(100% + 2 * var(--gutter));
    scroll-padding-inline: var(--gutter);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; white-space: nowrap; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-meta { grid-template-columns: 1fr; }
  .card-name { font-size: 0.9rem; }
  .card-price { font-size: 0.9rem; }
  .card-sub { display: none; }
  .hero-ctas .button { flex: 1 1 auto; }
  .stage { aspect-ratio: 4 / 3; }
  .stage-hint span { display: none; }
  .cal-spot { padding-top: 12px; }
  .cal-copy { padding: 4px 0 0; }
  .cal-badge { margin-bottom: 12px; }
  .cal-spot { grid-template-columns: minmax(0, 1fr) minmax(0, 36%); column-gap: 14px; }
  .cal-spot h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cal-sub { margin-top: 10px; font-size: 0.95rem; }
  .cal-media { min-height: 170px; border-radius: 14px; }
  .cal-editions { padding-top: 16px; gap: 8px; }
  .cal-editions-label { display: none; }
  .cal-edition { min-height: 56px; padding: 0 16px 0 18px; gap: 10px; font-size: 0.95rem; }
  .card.is-feature { grid-row: auto; }
  .card.is-feature .card-media { aspect-ratio: 1; flex: none; min-height: 0; }
  .wall-grid { gap: 32px 14px; }
  .product-sheet { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .drawer { border-radius: 0; }
  .pd-media { padding: 12px; }
}

html:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
