/* SAS Karácsonyi Lakoma 2026: page theme. The engine (scrollcraft.css) is the
   mechanism; this file is the look. Palette: the current sasazsia.hu base of
   near-black green and oxblood, the SAS seal red as the one accent, gold only
   as hairlines and box edges. */

:root {
  --sc-canvas:     #0c1210;
  --sc-surface:    #141c19;
  --sc-ink:        #f3e9df;
  --sc-ink-soft:   #bcae9f;
  --sc-accent:     #c4242a;
  --sc-accent-ink: #fff6ef;
  --sc-font-display: "Bodoni Moda", "Noto Serif SC", Georgia, serif;
  --sc-font-text:    "Geist", "Noto Sans SC", system-ui, sans-serif;
  --sc-shadow-color: 150 40% 2%;

  --gold: #c9a15a;
  --gold-soft: color-mix(in oklab, #c9a15a 45%, transparent);
  --oxblood: #2b0a0d;
  --oxblood-2: #3a0e12;
  --bar-h: 4.25rem;
}
html[data-lang="zh"] { --sc-font-display: "Noto Serif SC", "Bodoni Moda", serif; --sc-font-text: "Noto Sans SC", "Geist", system-ui, sans-serif; }
html { scroll-padding-top: var(--bar-h); }
[hidden] { display: none !important; }

/* Light-on-dark compensation: a touch more leading and weight. */
body { line-height: 1.66; font-weight: 400; }
.sc-display { font-weight: 500; font-optical-sizing: auto; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
html[data-lang="zh"] .sc-display { letter-spacing: 0.02em; line-height: 1.2; font-weight: 600; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--sc-accent); color: var(--sc-accent-ink); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: 0 1.6rem;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  border: 0; border-radius: var(--sc-r-sm);
  font: 600 var(--sc-t-sm)/1 var(--sc-font-text); letter-spacing: .04em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--sc-e1), inset 0 1px 0 rgb(255 255 255 / .18);
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn:hover { background: #d42e34; box-shadow: var(--sc-e2), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { background: #4a3a36; color: #a99a8c; cursor: not-allowed; box-shadow: none; }
.btn--quiet { background: transparent; color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.btn--quiet:hover { background: rgb(201 161 90 / .1); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--quiet:disabled { background: transparent; box-shadow: inset 0 0 0 1px #3a3430; }

/* ---------------------------------------------------------------- the bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: var(--sc-z-chrome);
  height: var(--bar-h); display: flex; align-items: center; gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
  background: linear-gradient(to bottom, rgb(12 18 16 / .88), rgb(12 18 16 / .55) 70%, transparent);
  backdrop-filter: blur(6px);
}
.bar__mark { display: flex; align-items: center; gap: .7rem; color: var(--sc-ink); text-decoration: none; font: 500 var(--sc-t-sm)/1 var(--sc-font-display); letter-spacing: .02em; font-size: 1.05rem; }
.bar__mark img { width: 36px; height: 36px; }
.bar__index { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.bar__index :is(a, button) {
  background: none; border: 0; cursor: pointer; text-decoration: none;
  color: var(--sc-ink-soft); font: 500 var(--sc-t-sm)/1 var(--sc-font-text);
  padding: .7rem .7rem; border-radius: var(--sc-r-sm);
  transition: color 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.bar__index :is(a, button):hover { color: var(--sc-ink); background: rgb(243 233 223 / .06); }
.bar__index :is(a, button) + :is(a, button)::before { content: none; }
.bar__index button[data-current="true"] { color: var(--sc-ink); box-shadow: inset 0 -1px 0 var(--gold); border-radius: 0; }
.bar__order { color: var(--sc-ink) !important; box-shadow: inset 0 0 0 1px var(--gold-soft); margin-left: .4rem; }
.bar__lang { display: flex; gap: 0; border-left: 1px solid var(--sc-hairline); padding-left: var(--sc-3); }
.bar__lang button {
  background: none; border: 0; cursor: pointer; color: var(--sc-ink-soft);
  font: 500 var(--sc-t-xs)/1 var(--sc-font-text); letter-spacing: .06em; padding: .7rem .45rem;
}
.bar__lang button[aria-pressed="true"] { color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .45em; }
.bar__lang button:hover { color: var(--sc-ink); }

/* ================================================================ 1 HERO */
.hero__stage { isolation: isolate; --p: 0; }
.hero__room, .hero__set, .hero__blossom, .hero__floor { position: absolute; pointer-events: none; }

.hero__room { inset: -8% 0 -8% 0; z-index: 0; }
/* The real Peterdy room, thrown far out of focus: an evening room behind the box.
   Heavy blur also hides the source's low resolution. */
.hero__photo {
  position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover;
  filter: blur(18px) brightness(.34) saturate(.75) sepia(.35) contrast(1.1);
}
.hero__wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 50% at 70% 42%, rgb(214 140 70 / .16), transparent 70%),
    linear-gradient(90deg, rgb(10 14 12 / .85) 0%, rgb(10 14 12 / .35) 45%, rgb(10 14 12 / .2) 100%),
    linear-gradient(180deg, rgb(12 18 16 / .25) 0%, rgb(8 11 10 / .65) 100%);
}
.hero__window {
  position: absolute; left: 54%; top: 8%; width: 30%; height: 46%;
  border-radius: 2px; overflow: hidden;
  background: linear-gradient(180deg, #1a2635 0%, #2b3a4c 55%, #3d4a57 100%);
  box-shadow: inset 0 0 0 10px #0b0f0e, inset 0 0 0 11px rgb(201 161 90 / .25), 0 0 80px rgb(60 90 130 / .12);
  filter: blur(2.5px) saturate(.9); opacity: .78;
}
.hero__window::before, .hero__window::after { content: ""; position: absolute; background: #0b0f0e; }
.hero__window::before { left: 50%; top: 0; bottom: 0; width: 8px; translate: -50% 0; }
.hero__window::after { top: 50%; left: 0; right: 0; height: 8px; translate: 0 -50%; }
.hero__snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bokeh i {
  position: absolute; border-radius: 50%; filter: blur(14px);
  background: radial-gradient(circle, rgb(255 190 120 / .55), rgb(255 160 90 / 0) 70%);
}
.hero__bokeh i:nth-child(1) { left: 12%; top: 14%; width: 9rem; height: 9rem; }
.hero__bokeh i:nth-child(2) { left: 34%; top: 6%;  width: 5rem; height: 5rem; opacity: .7; }
.hero__bokeh i:nth-child(3) { left: 88%; top: 18%; width: 7rem; height: 7rem; opacity: .6; }
.hero__bokeh i:nth-child(4) { left: 46%; top: 30%; width: 3.5rem; height: 3.5rem; opacity: .5; }
.hero__bokeh i:nth-child(5) { left: 66%; top: 10%; width: 4.5rem; height: 4.5rem; opacity: .45; }
.hero__bokeh i { mix-blend-mode: screen; }

.hero__set { inset: 0; z-index: 2; }
.hero__table {
  /* the box is shot from above, so the table horizon sits high enough to put it on the table */
  position: absolute; left: -5%; right: -5%; bottom: -4%; height: 50%;
  /* dark polished wood: a warm sheen under the box, falling off to the edges */
  background:
    radial-gradient(38% 30% at 66% 0%, rgb(255 170 110 / .16), transparent 70%),
    linear-gradient(180deg, rgb(255 190 130 / .07), transparent 22%),
    repeating-linear-gradient(91deg, rgb(0 0 0 / 0) 0 23px, rgb(0 0 0 / .1) 23px 24px, rgb(0 0 0 / 0) 24px 61px, rgb(255 220 190 / .025) 61px 63px),
    linear-gradient(180deg, #2a160e 0%, #1a0d08 45%, #0b0604 100%);
  border-top: 1px solid rgb(255 200 150 / .1);
}
.hero__table::after { /* the box's reflection in the lacquered table, faint and blurred */
  content: ""; position: absolute; right: 9%; top: 0; width: min(44vw, 640px); height: 40%;
  background: linear-gradient(180deg, rgb(110 14 20 / .35), transparent);
  filter: blur(10px);
}
/* the push-in pivots on the box's contact point with the table */
.hero__push {
  position: absolute; right: 9%; bottom: 26%; width: min(44vw, 640px);
  transform-origin: 50% 100%;
  transform: scale(calc(1 + var(--p) * .07));
}
/* ---- the real gift box (photo cutout) */
.hero__push { transform: translateY(calc(var(--p) * -2%)) scale(calc(1 + var(--p) * .12)); }
.pbox { position: relative; aspect-ratio: 751 / 556; }
.pbox__img { position: relative; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: contain;
  filter: brightness(1.08) contrast(1.05) drop-shadow(0 30px 40px rgb(0 0 0 / .55)); }
/* warm key light from the upper left, applied only inside the box's own silhouette */
.pbox__light {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  -webkit-mask: url(../assets/box-4.webp) center / 100% 100% no-repeat; mask: url(../assets/box-4.webp) center / 100% 100% no-repeat;
  background: radial-gradient(60% 50% at 34% 22%, rgb(255 196 140 / .28), transparent 70%),
              linear-gradient(100deg, rgb(255 180 120 / .08), transparent 45%, rgb(0 0 0 / .25));
  mix-blend-mode: screen;
}
.pbox::after { /* contact shadow where the box meets the table */
  content: ""; position: absolute; left: 4%; right: 2%; bottom: 1%; height: 14%; z-index: 0;
  background: radial-gradient(50% 50% at 52% 50%, rgb(0 0 0 / .75), transparent 72%); filter: blur(6px);
}
/* a pool of warm lamp light on the wall behind the box: what separates a black box from a dark room */
.hero__pool {
  position: absolute; right: -4%; bottom: 18%; width: min(70vw, 1050px); aspect-ratio: 1.5;
  background: radial-gradient(50% 50% at 50% 55%, rgb(214 146 82 / .34), rgb(150 70 40 / .12) 45%, transparent 72%);
  filter: blur(10px);
}
.hero__fore { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hero__foreinner { position: absolute; inset: 0; }
.hero__foreinner i { position: absolute; border-radius: 50%; mix-blend-mode: screen; filter: blur(26px);
  background: radial-gradient(circle, rgb(255 186 120 / .55), rgb(255 150 80 / 0) 68%); }
.hero__foreinner i:nth-child(1) { right: -4rem; bottom: -5rem; width: 22rem; height: 22rem; }
.hero__foreinner i:nth-child(2) { right: 18%; bottom: -7rem; width: 12rem; height: 12rem; opacity: .6; }
.hero__foreinner i:nth-child(3) { left: 38%; bottom: -9rem; width: 16rem; height: 16rem; opacity: .35; }
.hero__foreinner i:nth-child(4) { right: 6%; top: 8%; width: 7rem; height: 7rem; opacity: .3; }

.box { position: relative; aspect-ratio: 600 / 340; --lift: calc(var(--p) * 1.25); }
.box::after { /* contact shadow, anchored to the table */
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -5%; height: 12%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(0 0 0 / .7), transparent 70%); z-index: -1;
}
.box__body { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: 1; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)); }
.box__lid {
  position: absolute; left: -3.333%; top: -34.4%; width: 106.667%; height: auto; max-width: none; z-index: 3;
  transform-origin: 18% 100%;
  transform: translateY(calc(min(var(--lift), 1) * -24%)) rotate(calc(min(var(--lift), 1) * -6deg));
  filter: drop-shadow(0 calc(6px + var(--p) * 26px) calc(10px + var(--p) * 22px) rgb(0 0 0 / .5));
}
.box__glow {
  position: absolute; left: 6%; right: 6%; top: -26%; height: 46%; z-index: 2;
  background: radial-gradient(50% 60% at 50% 70%, rgb(255 205 140 / .95), rgb(255 150 70 / .35) 45%, transparent 75%);
  filter: blur(8px); opacity: calc(min(var(--lift), 1) * .95);
}
.box__steam { position: absolute; left: 20%; right: 20%; top: -80%; height: 90%; z-index: 4; opacity: calc(min(var(--lift), 1) * .8); }
.box__steam i {
  position: absolute; bottom: 0; width: 36%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 244 230 / .32), transparent);
  filter: blur(14px);
  animation: steam 6s var(--sc-ease-in-out) infinite;
}
.box__steam i:nth-child(1) { left: 8%; }
.box__steam i:nth-child(2) { left: 34%; animation-delay: -2s; height: 85%; }
.box__steam i:nth-child(3) { left: 58%; animation-delay: -4s; }
@keyframes steam { 0% { transform: translateY(20%) scale(.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-40%) scale(1.25); opacity: 0; } }

.hero__copy {
  position: absolute; z-index: 5;
  left: var(--sc-gutter); top: 50%; translate: 0 -46%;
  width: min(36rem, 44vw);
}
.hero__scrim { /* a corner of density sized to the copy block, a sibling so the harness can measure it */
  position: absolute; z-index: 4; left: 0; top: 0; bottom: 0; width: min(62rem, 70vw); pointer-events: none;
  background: radial-gradient(55% 50% at 30% 52%, rgb(10 14 12 / .78), rgb(10 14 12 / .35) 60%, transparent 85%);
}
.hero__beat {
  position: absolute; z-index: 5; left: var(--sc-gutter); top: 50%; translate: 0 -50%; margin: 0;
  width: min(30rem, 40vw); font: italic 400 var(--sc-t-xl)/1.35 var(--sc-font-display); color: var(--sc-ink);
}
.hero__note { margin: 0 0 var(--sc-4); font: 500 var(--sc-t-xs)/1.2 var(--sc-font-text); letter-spacing: var(--sc-track-wide); text-transform: uppercase; color: var(--gold); }
.hero__title { font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.9rem); margin: 0; }
.hero__sub { margin: var(--sc-5) 0 var(--sc-6); color: var(--sc-ink-soft); max-width: 30rem; font-size: var(--sc-t-lg); line-height: 1.5; }

/* foreground: enters from the bottom-right corner and crosses the box's lower edge, never the copy */
.hero__blossom { z-index: 6; right: -7%; bottom: -14%; width: min(50vw, 780px); }
/* foreground out of focus, like a lens at f/1.8 on the box: depth, and the drawing stops reading as a drawing */
.hero__blossom img { width: 100%; height: auto; max-width: none; transform-origin: 50% 50%; filter: blur(4px) saturate(.7) brightness(.78); opacity: .92; }
.hero__blossom > img { scale: -1 1; }
.hero__floor { left: 0; right: 0; bottom: 0; height: 22%; z-index: 7; background: linear-gradient(to bottom, transparent, var(--sc-canvas)); }

/* ========================================================= 2 COLLECTION */
.coll__stage { display: flex; align-items: center; --lead-w: clamp(18rem, 30vw, 28rem); }
/* Fixed heading column; the rail starts to its right and passes under a soft fade.
   The engine travels scrollWidth - viewport, so the rail's left padding equals the
   heading column: the last object lands flush at the right edge. */
.coll__lead { position: absolute; z-index: 2; left: var(--sc-gutter); top: 50%; translate: 0 -50%; width: var(--lead-w); }
.coll__stage::before {
  content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; pointer-events: none;
  width: calc(var(--sc-gutter) + var(--lead-w) + 5rem);
  background: linear-gradient(90deg, #0e1513 0 72%, transparent);
}
.coll__rail { display: flex; align-items: center; gap: clamp(3rem, 6vw, 7rem); padding: calc(var(--bar-h) + 2rem) var(--sc-gutter) 3rem calc(var(--sc-gutter) + var(--lead-w) + 6rem); width: max-content; }
.coll__title { font-size: var(--sc-t-3xl); margin: 0 0 var(--sc-5); }
.obj { flex: none; width: clamp(19rem, 30vw, 27rem); display: grid; gap: var(--sc-5); }
.obj__art { position: relative; width: calc(100% * var(--s)); margin-inline: auto; aspect-ratio: 751 / 600; display: flex; flex-direction: column; justify-content: flex-end; }
/* each box sits in its own pool of light, like an object in a vitrine */
.obj__art::before { content: ""; position: absolute; inset: -12% -18% -6%; z-index: -1;
  background: radial-gradient(50% 45% at 50% 60%, rgb(214 146 82 / .22), transparent 70%); }
.obj__art::after { content: ""; position: absolute; left: 6%; right: 4%; bottom: -1%; height: 12%; z-index: -1;
  background: radial-gradient(50% 50% at 52% 50%, rgb(0 0 0 / .8), transparent 72%); filter: blur(5px); }
.obj__img { width: 100%; height: auto; max-width: none; filter: brightness(1.1) contrast(1.05) drop-shadow(0 24px 28px rgb(0 0 0 / .5)); }
.obj__art img { max-width: none; width: 100%; height: auto; }
.obj__lid { width: 106.667% !important; margin-left: -3.333%; margin-bottom: -6.2%; position: relative; z-index: 1; }
.obj__body { filter: drop-shadow(0 22px 28px rgb(0 0 0 / .5)); }
.label { margin: 0; display: grid; border-top: 1px solid var(--gold-soft); }
.label > div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--sc-4); padding: .55rem 0; border-bottom: 1px solid var(--sc-hairline); }
.label dt { color: var(--sc-ink-soft); font-size: var(--sc-t-xs); letter-spacing: var(--sc-track-wide); text-transform: uppercase; padding-top: .2em; }
.label dd { margin: 0; color: var(--sc-ink); }
.label__big { font: 500 var(--sc-t-xl)/1 var(--sc-font-display); }
.obj[data-soldout="true"] .obj__art { filter: grayscale(.7) brightness(.6); }
.coll__end { flex: none; width: min(22rem, 70vw); margin: 0; font: italic 400 var(--sc-t-lg)/1.45 var(--sc-font-display); color: var(--sc-ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .obj { opacity: calc(.55 + .45 * clamp(0, (var(--sc-p, 0) * 3.2 - var(--i, 0) * .7) , 1)); }
}

/* ============================================================ 3 PACKING */
.pack__stage {
  display: grid; grid-template-columns: minmax(18rem, 25rem) 1fr; gap: clamp(2rem, 5vw, 6rem);
  align-items: center; padding: calc(var(--bar-h) + 1.5rem) var(--sc-gutter) 2rem;
  background: radial-gradient(70% 70% at 68% 50%, rgb(150 60 30 / .14), transparent 70%);
}
.pack__title { font-size: var(--sc-t-2xl); margin: 0 0 var(--sc-3); }
.pack__text { margin: 0 0 var(--sc-5); }
.seg { display: inline-flex; border: 1px solid var(--gold-soft); border-radius: var(--sc-r-sm); padding: 3px; gap: 3px; }
.seg button, .seg label span {
  display: block; min-width: 4.6rem; padding: .7rem 1rem; text-align: center; cursor: pointer;
  background: none; border: 0; border-radius: 4px; color: var(--sc-ink-soft);
  font: 500 var(--sc-t-sm)/1 var(--sc-font-text);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.seg button:hover, .seg label:hover span { color: var(--sc-ink); background: rgb(243 233 223 / .06); }
.seg button[aria-checked="true"], .seg input:checked + span { background: var(--sc-accent); color: var(--sc-accent-ink); }
.seg button:disabled, .seg input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

.pack__list { list-style: none; margin: var(--sc-6) 0 var(--sc-5); padding: 0; border-top: 1px solid var(--sc-hairline); }
.pack__list li {
  display: flex; align-items: baseline; gap: .8rem; padding: .42rem 0; border-bottom: 1px solid var(--sc-hairline);
  color: color-mix(in oklab, var(--sc-ink-soft) 55%, transparent); font-size: var(--sc-t-sm);
  transition: color 200ms var(--sc-ease-out);
}
.pack__list li::before {
  content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--gold-soft); translate: 0 -.05rem;
  transition: background-color 200ms var(--sc-ease-out);
}
.pack__list li[data-in="true"] { color: var(--sc-ink); }
.pack__list li[data-in="true"]::before { background: var(--gold); box-shadow: none; }
.pack__list li .x { margin-left: auto; color: var(--gold); font-variant-numeric: tabular-nums; }
.pack__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-5); }
.pack__count { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); flex-basis: 100%; }
.pack__price { margin: 0; font: 500 var(--sc-t-xl)/1 var(--sc-font-display); }

.pack__box { margin: 0; justify-self: center; width: min(100%, 52rem, calc((100svh - var(--bar-h) - 6rem) * 4 / 3)); }
.tray {
  --gap: clamp(6px, .8vw, 10px);
  position: relative; aspect-ratio: 4 / 3; padding: calc(var(--gap) * 2.2);
  display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr);
  /* the inside of the black gift box: matte black board, a gold satin edge */
  background:
    linear-gradient(145deg, rgb(255 220 190 / .06), transparent 40%),
    linear-gradient(180deg, #1c1a19, #0f0e0d);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px #d9bd82, inset 0 0 0 7px #151312, inset 0 0 0 8px rgb(217 189 130 / .35), var(--sc-e3);
  transition: opacity 200ms var(--sc-ease-out);
}
.tray[data-swapping="true"] { opacity: .2; }
/* one key light from the upper left over the whole tray, falling off into a vignette */
.tray::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background:
    radial-gradient(70% 60% at 28% 22%, rgb(255 214 170 / .13), transparent 65%),
    radial-gradient(120% 100% at 45% 40%, transparent 55%, rgb(0 0 0 / .42) 100%);
  mix-blend-mode: soft-light;
}
.tray::before { /* lacquer sheen on the frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(125deg, rgb(255 200 170 / .12), transparent 30%, transparent 70%, rgb(0 0 0 / .25));
}
.cell {
  position: relative; border-radius: 3px; overflow: hidden;
  background: linear-gradient(180deg, #121110, #0b0a09);
  box-shadow: inset 0 3px 8px rgb(0 0 0 / .8), inset 0 0 0 1px rgb(217 189 130 / .12);
  display: grid; padding: 5%;
}
.cell--maki { display: flex; flex-direction: column; justify-content: center; gap: 8%; padding: 4% 5%; }
/* a dish card: lands in its compartment as the scroll reaches it */
.dish {
  --k: 0;
  position: relative; overflow: hidden; border-radius: 2px; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(.5rem, 1.2vw, 1rem);
  background: linear-gradient(160deg, #24201d, #171412);
  box-shadow: inset 0 0 0 1px rgb(217 189 130 / .4), inset 0 0 0 4px #1b1816, inset 0 0 0 5px rgb(217 189 130 / .14),
              0 calc((1 - var(--k)) * 22px + 2px) calc((1 - var(--k)) * 18px + 6px) rgb(0 0 0 / .55);
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * -30%)) rotate(calc((1 - var(--k)) * var(--rot, 3deg))) scale(calc(1.06 - var(--k) * .06));
  will-change: transform, opacity;
}
.dish__ph { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(.9) saturate(.9); }
.dish--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(10 9 8 / .88)); }
.dish__name {
  position: relative; z-index: 1;
  font: italic 400 clamp(.85rem, .6rem + .7vw, 1.3rem)/1.15 var(--sc-font-display); color: var(--sc-ink);
  text-wrap: balance;
}
html[data-lang="zh"] .dish__name { font-style: normal; }
.dish--row { flex-direction: row; align-items: center; justify-content: space-between; padding-block: .3rem; flex: 1; }
.dish--row .dish__name { font-size: clamp(.8rem, .55rem + .55vw, 1.05rem); }
.dish--row::before { content: ""; order: 2; flex: none; width: 34%; height: 1px; margin-left: 1rem;
  background: repeating-linear-gradient(90deg, rgb(217 189 130 / .5) 0 2px, transparent 2px 7px); }
.dish .times { position: absolute; z-index: 1; right: 8%; top: 6%; font: 500 var(--sc-t-xl)/1 var(--sc-font-display); color: #e6cf98; }
.pack__cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: var(--sc-4); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.pack__cap [data-pack-done] { font: italic 400 var(--sc-t-lg)/1.2 var(--sc-font-display); color: var(--sc-ink); opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.pack__cap [data-pack-done][data-on="true"] { opacity: 1; }
.pack__cap small { font-size: var(--sc-t-xs); align-self: end; }

/* ============================================================ 4 DETAILS */
.det { padding-top: var(--sc-8); }
.det__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sc-7) var(--sc-6); align-items: start; }
.det__title { grid-column: 1 / -1; font-size: var(--sc-t-3xl); margin: 0; }
.det__item { margin: 0; display: grid; gap: var(--sc-4); }
.det__item--duck { grid-column: 1 / span 6; grid-row: span 2; }
.det__item--pork { grid-column: 9 / span 4; margin-top: var(--sc-9); }
.det__item--maki { grid-column: 8 / span 5; }
.det__frame { border-radius: 8px; overflow: hidden; background: #120b09; box-shadow: var(--sc-e2), inset 0 0 0 1px var(--gold-soft); }
.det__frame img { width: 100%; height: auto; }
.det__frame--photo img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
.det__frame--square img { aspect-ratio: 1; }
/* 300px source cutout: shown at native size on a lit tray */
.det__frame--cutout { max-width: 22rem; padding: 1rem; background: radial-gradient(70% 70% at 50% 45%, #2a1a15, #120b09); }
.det__frame--cutout img { width: 100%; max-width: 300px; margin-inline: auto; height: auto; }
/* the sides photo overlaps the duck frame's corner: depth by overlap */
.det__sides { width: 46%; margin: -18% 0 0 auto; position: relative; z-index: 1; border-radius: 6px; overflow: hidden; box-shadow: var(--sc-e3), 0 0 0 1px var(--gold-soft); }
.det__sides img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* the source photo is only 520px wide: keep it near its native size so it stays sharp */
.pick__room { grid-column: 1; margin: 0; max-width: 36rem; }
.pick__room img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; box-shadow: var(--sc-e2), 0 0 0 1px var(--gold-soft); }
.pick__room figcaption { margin-top: var(--sc-3); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.det__item h3 { font: 500 var(--sc-t-xl)/1.1 var(--sc-font-display); margin: 0; }
.det__item p { margin: .4rem 0 0; color: var(--sc-ink-soft); max-width: 40ch; }
.det__item small { display: block; margin-top: .4rem; font-size: var(--sc-t-xs); color: color-mix(in oklab, var(--sc-ink-soft) 80%, transparent); letter-spacing: .04em; }
.det__item figcaption { display: block; }

/* ============================================================= 5 PICKUP */
.pick { background: var(--oxblood); --sc-ink-soft: #d2b9ac; color: var(--sc-ink); border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft); }
.pick__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sc-8); align-items: end; }
.pick__title { font-size: var(--sc-t-3xl); margin: 0 0 var(--sc-5); }
.pick__time { font-size: var(--sc-t-lg); margin: 0; }
.pick__addr { font-size: var(--sc-t-lg); margin: .3rem 0 var(--sc-5); }
.pick__addr a { color: var(--sc-ink); text-decoration-color: var(--gold); text-underline-offset: .3em; }
.pick__date { margin: 0; justify-self: end; text-align: right; display: grid; color: var(--sc-ink-soft); }
.pick__day { font: 400 clamp(8rem, 4rem + 14vw, 17rem)/0.82 var(--sc-font-display); color: var(--sc-ink); letter-spacing: -0.04em; }

/* ============================================================== 6 ORDER */
.ord { padding-block: var(--sc-section) var(--sc-6); }
.plate {
  max-width: 46rem; margin-inline: auto; padding: clamp(1.5rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sc-5);
  background: linear-gradient(180deg, #131b18, #0f1613);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px #131b18, inset 0 0 0 7px var(--gold-soft), var(--sc-e3);
}
.plate__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--sc-5); border-bottom: 1px solid var(--gold-soft); }
.plate__title { font-size: var(--sc-t-2xl); margin: 0; }
.plate__head img { width: 64px; height: 64px; }
.plate__closed { grid-column: 1 / -1; padding: var(--sc-5) 0; font: italic 400 var(--sc-t-lg)/1.4 var(--sc-font-display); }
.row { grid-column: 1 / -1; display: grid; grid-template-columns: 11rem 1fr; align-items: center; gap: var(--sc-4); padding: .55rem 0; border-bottom: 1px solid var(--sc-hairline); margin: 0; min-width: 0; }
.row--half { grid-column: auto; grid-template-columns: 1fr; gap: .3rem; }
.row--half label { padding-top: .4rem; }
fieldset.row { border: 0; border-bottom: 1px solid var(--sc-hairline); padding: .9rem 0; }
fieldset.row legend { float: left; width: 11rem; padding: 0; }
.row > label, fieldset.row legend { color: var(--sc-ink-soft); font-size: var(--sc-t-xs); letter-spacing: var(--sc-track-wide); text-transform: uppercase; }
.row input:not([type="checkbox"]):not([type="radio"]), .row select {
  width: 100%; min-height: 2.9rem; padding: .5rem .75rem;
  background: rgb(243 233 223 / .04); color: var(--sc-ink);
  border: 1px solid rgb(243 233 223 / .14); border-radius: var(--sc-r-sm);
  transition: border-color 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.row select option { background: #131b18; color: var(--sc-ink); }
.row input:hover, .row select:hover { border-color: rgb(243 233 223 / .28); }
.row input:focus-visible, .row select:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; border-color: transparent; }
.row [aria-invalid="true"] { border-color: #e0565b !important; }
.row--terms { grid-template-columns: 1fr; border-bottom: 0; padding-top: var(--sc-4); }
.row > label.check { text-transform: none; letter-spacing: normal; font-size: var(--sc-t-sm); }
.check { display: flex; gap: .8rem; align-items: flex-start; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.check a { color: var(--sc-ink); text-underline-offset: .2em; text-decoration-color: var(--gold); }
.check[data-invalid="true"] { color: #f08a8e; }
.plate__total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: var(--sc-5) 0; border-top: 1px solid var(--gold-soft); margin-top: var(--sc-3); }
.plate__total span { color: var(--sc-ink-soft); font-size: var(--sc-t-xs); letter-spacing: var(--sc-track-wide); text-transform: uppercase; }
.plate__total strong { font: 500 var(--sc-t-2xl)/1 var(--sc-font-display); }
.plate__err { grid-column: 1 / -1; margin: 0 0 var(--sc-4); padding: .7rem 1rem; border-radius: var(--sc-r-sm); background: rgb(196 36 42 / .16); color: #ffc9c6; }
.btn--pay { grid-column: 1 / -1; min-height: 3.5rem; font-size: var(--sc-t-base); }
.plate__small { grid-column: 1 / -1; margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); text-align: center; }
.plate[data-busy="true"] .btn--pay { opacity: .7; pointer-events: none; }
.foot { padding-top: var(--sc-8); color: var(--sc-ink-soft); font-size: var(--sc-t-xs); text-align: center; }

/* ================================================================ MOBILE */
@media (max-width: 980px) {
  .bar__index > :is(button) { display: none; }
  .bar__index a:not(.bar__order) { display: none; }
}
@media (max-width: 760px) {
  :root { --bar-h: 3.6rem; }
  .bar { gap: var(--sc-3); }
  .bar__mark span { display: none; }
  .bar__order { padding: .6rem .8rem !important; }

  /* Hero: art-directed portrait. Copy above, box low and centred, blossom across the top corner. */
  .hero__window { left: 8%; top: 7%; width: 56%; height: 26%; }
  .hero__push { right: 50%; translate: 50% 0; bottom: 21%; width: 86vw; }
  .hero__table { height: 40%; }
  .hero__table::after { right: 7%; width: 86vw; }
  .hero__copy { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; top: calc(var(--bar-h) + 1.5rem); translate: none; }
  .hero__scrim { width: 100%; background: linear-gradient(to bottom, rgb(10 14 12 / .85) 0%, rgb(10 14 12 / .6) 40%, transparent 62%); }
  .hero__beat { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; top: calc(var(--bar-h) + 1.5rem); translate: none; font-size: var(--sc-t-lg); }
  .pack__stage { align-content: center; }
  .hero__title { font-size: var(--sc-t-2xl); }
  .hero__sub { font-size: var(--sc-t-base); margin: var(--sc-4) 0 var(--sc-5); }
  .hero__blossom { right: -34%; bottom: -6%; width: 118vw; }

  .obj { width: 78vw; }
  .coll__lead { top: calc(var(--bar-h) + 1rem); translate: none; right: var(--sc-gutter); width: auto; }
  .coll__lead .sc-body { display: none; }
  .coll__title { font-size: var(--sc-t-2xl); margin: 0; }
  .coll__stage::before { inset: 0 0 auto 0; width: auto; height: calc(var(--bar-h) + 7rem); background: linear-gradient(180deg, #0e1513 0 70%, transparent); }
  .coll__rail { padding: calc(var(--bar-h) + 7rem) var(--sc-gutter) 2rem var(--sc-gutter); }
  /* on a phone the closing note would push the last box off screen; the pickup section says it anyway */
  .coll__end { display: none; }
  .label > div { grid-template-columns: 6rem 1fr; }

  /* Packing: box on top, compact panel under it. */
  .pack__stage { grid-template-columns: 1fr; align-content: start; gap: var(--sc-4); padding-top: calc(var(--bar-h) + .75rem); }
  .pack__box { order: -1; width: 100%; }
  /* phone: a squarer box so the small compartments can hold their names */
  .tray { aspect-ratio: 1 / 1.02; --gap: 5px; }
  .cell { padding: 4%; }
  .dish { padding: .4rem .45rem; }
  .dish__name { font-size: .74rem; line-height: 1.12; hyphens: auto; }
  .dish--row { padding-block: .15rem; }
  .dish--row .dish__name { font-size: .7rem; }
  .dish--row::before { display: none; }
  .dish .times { font-size: var(--sc-t-base); }
  .pack__title { font-size: var(--sc-t-xl); }
  .pack__text { display: none; }
  .pack__list { display: none; }
  .pack__panel { display: grid; gap: var(--sc-3); }
  .seg { width: 100%; } .seg button { flex: 1; min-width: 0; }
  .pack__foot .btn { margin-left: auto; }
  .pack__cap small { display: none; }

  .det__grid { grid-template-columns: 1fr; gap: var(--sc-6); }
  .det__item--duck, .det__item--pork, .det__item--maki { grid-column: 1; grid-row: auto; margin-top: 0; }
  .det__item--pork { width: 70%; justify-self: end; }

  .pick__grid { grid-template-columns: 1fr; gap: var(--sc-5); }
  .pick__date { justify-self: start; text-align: left; order: -1; }
  .pick__room img { aspect-ratio: 4 / 3; }
  .det__sides { width: 60%; }

  .plate { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: .3rem; }
  .row--half { grid-column: 1; }
  fieldset.row legend { float: none; margin-bottom: .5rem; }
  .seg--form { width: 100%; } .seg--form label { flex: 1; } .seg--form label span { min-width: 0; }
}

/* ======================================================= REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .box__steam i { animation: none; opacity: .6; }
  /* Static compositions without extra pinned scroll: hero shows the lid ajar, the box shows fully packed. */
  .hero, .pack { height: auto !important; }
  .hero .sc-stage, .hero [data-sc-stage], .pack [data-sc-stage] { position: relative; }
  .hero__stage { --p: .35 !important; }
  .hero__copy { opacity: 1 !important; }
  .pack [data-sc-stage] { height: auto; min-height: 100svh; }
  .dish { --k: 1 !important; transform: none; }
  .dish .times { opacity: 1; }
}
