/* Netz Winery · the store around the night.
   Layout: every page that is not the scroll journey sits under the sky of
   04:20, the hour before first light, and ends on the Moab ridgeline (footer).
   One world, deliberately dark; the scroll journey alone turns to day. */

:root {
  color-scheme: dark;
  direction: rtl;
  --gold: #D59D5D;            /* the foil on the label and capsule */
  --gold-soft: #E7C08E;
  --gold-ink: #0B0F1C;
  --ink: #EFE7D9;             /* text, warm like the moonlit label paper */
  --ink-soft: #B2B7C9;
  --ink-faint: #9AA1B5;
  --panel: rgb(9 13 28 / .72);  /* raised surfaces over the sky */
  --panel-solid: #0C1124;
  --field: rgb(4 7 18 / .55);
  --line: rgb(239 231 217 / .13);
  --line-strong: rgb(239 231 217 / .26);
  --danger: #F2A08B;
  --ok: var(--gold-soft);     /* good news speaks in the label's gold, never in a borrowed green */
  --ridge: #05070f;
  --page-top: calc(var(--bar-h) + clamp(2rem, 6vh, 4.5rem));
}

/* ---------------------------------------------------------------- chrome */
.skip { appearance: none; border: 0; cursor: pointer; font-family: var(--sc-font-text); position: fixed; z-index: 70; top: .5rem; inset-inline-start: .5rem; padding: .6rem 1rem; border-radius: var(--sc-r-md);
  background: var(--gold); color: var(--gold-ink); font-weight: 600; text-decoration: none; translate: 0 -200%; }
.skip:focus-visible { translate: 0 0; }

.bar { z-index: 30; }
.bar__end { justify-self: end; display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.menu { display: flex; align-items: center; gap: clamp(.75rem, 1.8vw, 1.6rem); }
.menu > a { position: relative; text-decoration: none; font-size: var(--sc-t-sm); font-weight: 400; letter-spacing: .02em; padding-block: .6rem; white-space: nowrap; }
.menu > a::after { content: ""; position: absolute; inset-inline: 0; bottom: .3rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform 240ms var(--sc-ease-out); }
.menu > a[aria-current="page"] { color: var(--gold); }
.menu > a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .menu > a:hover::after { transform: scaleX(1); } }
.bar__cart { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; min-height: 44px; padding-inline: .9rem; border-radius: var(--sc-r-pill);
  border: 1px solid color-mix(in oklab, currentColor 32%, transparent); font-size: var(--sc-t-sm); font-weight: 600; transition: border-color 160ms, color 160ms; }
.bar__cart svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.bar__cart[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .bar__cart:hover { border-color: var(--gold); color: var(--gold); } }
.bar__burger { display: none; appearance: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; color: inherit; place-content: center; gap: 6px; }
.bar__burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 240ms var(--sc-ease-out); }
.bar__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.bar__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
body.route-page .clock { visibility: hidden; }
body.route-page .bar { color: var(--ink); }
body.route-page .bar__mark { color: var(--gold); }
body[data-route="checkout"] .menu, body[data-route="checkout"] .bar__burger { display: none; }  /* checkout keeps the buyer on the order */

/* ------------------------------------------------------------------ view */
.view { position: relative; z-index: 1; min-height: calc(100vh - 18rem); display: flex; flex-direction: column; }
.view[hidden] { display: none; }
.page { flex: 1; padding-top: var(--page-top); padding-bottom: clamp(4rem, 10vh, 7rem); }
.page[hidden] { display: none; }
.page-shell.fade-in:not([hidden]) .page { animation: pagein 460ms var(--sc-ease-out); }  /* browsers without view transitions */
@keyframes pagein { from { opacity: 0; transform: translateY(12px); } }
.page__wrap { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }

.eyebrow { margin: 0; color: var(--gold); font-size: var(--sc-t-sm); letter-spacing: .08em; }
.ph { display: grid; gap: var(--sc-3); max-width: 46rem; }
.ph h1 { font-family: var(--sc-font-display); font-weight: 300; font-size: clamp(2.9rem, 6.2vw, 5.8rem); line-height: 1; margin: 0; text-wrap: balance; }
.ph h1:focus { outline: none; }
/* the store's titles are cut from the journey's night papers: moon-cream
   letter, a foil sheet, an indigo backing and a soft cast shadow */
.ph h1, .wine__title, .done h1 { font-weight: 700; color: #F3EAD6;
  text-shadow: 0 -1px 0 rgb(255 240 214 / .45), .012em .036em 0 #D59D5D, .024em .072em 0 #2C3270, .045em .15em .12em rgb(1 2 12 / .55); }
[data-page="cart"] .ph h1, [data-page="checkout"] .ph h1, [data-page="terms"] .ph h1, [data-page="privacy"] .ph h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.ph .lede { margin: var(--sc-2) 0 0; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--ink-soft); max-width: 38ch; text-wrap: pretty; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--sc-t-sm); color: var(--ink-faint); margin: 0 0 var(--sc-5); padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-inline-end: .5rem; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--gold); }

.btn, .add { font-family: var(--sc-font-text); }
.btn--ghost { border-color: var(--line-strong); }
.btn[disabled], .btn:disabled { opacity: .38; cursor: not-allowed; }
.btn--wide { width: 100%; min-height: 54px; font-size: var(--sc-t-base); }
.link { color: var(--gold-soft); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--gold) 50%, transparent); text-underline-offset: .25em; }
.link:hover { color: var(--gold); }
button.link { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.price-tag { font-family: var(--sc-font-display); font-variant-numeric: lining-nums tabular-nums; }

/* stepper used across the store */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--sc-r-pill); padding: 2px; }
.qty button { appearance: none; border: 0; background: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.15rem; color: inherit; display: grid; place-items: center; }
.qty button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .qty button:not(:disabled):hover { background: rgb(239 231 217 / .08); } }
.qty output { display: block; min-width: 2em; text-align: center; font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }

/* ------------------------------------------------------------------ shop */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--sc-6) 0 0; padding: 0; list-style: none; }
.chip { appearance: none; cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); border-radius: var(--sc-r-pill);
  padding: .5rem 1.1rem; min-height: 44px; font-size: var(--sc-t-sm); font-family: var(--sc-font-text); transition: all 160ms var(--sc-ease-out); }
.chip span { font-variant-numeric: lining-nums tabular-nums; opacity: .7; margin-inline-start: .25em; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--gold-ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { border-color: var(--gold); color: var(--ink); } }
.shipnote { margin: var(--sc-5) 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: var(--ink-soft); font-size: var(--sc-t-sm); }
.shipnote span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-inline-end: .55rem; vertical-align: middle; }

.wines { list-style: none; margin: clamp(2.5rem, 6vh, 4.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vh, 4rem) clamp(1.25rem, 3vw, 3rem); }
.wcard { position: relative; display: grid; grid-template-rows: auto 1fr; }
.wcard[hidden] { display: none; }
.wcard__stage { position: relative; height: clamp(22rem, 36vw, 32rem); display: grid; place-items: end center; isolation: isolate; }
.wcard__stage::before { content: ""; position: absolute; inset-inline: 8%; bottom: 0; height: 72%; z-index: -1; border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: radial-gradient(60% 70% at 50% 100%, var(--halo, rgb(213 157 93 / .16)), transparent 72%); opacity: .8; transition: opacity 400ms var(--sc-ease-out); }
.wcard__stage::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(to left, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent); }
.wcard .bottle { height: 94%; transition: transform 500ms var(--sc-ease-out); }
.wcard .bottle__shadow { bottom: .8%; }
.wcard__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--sc-r-lg); }
.wcard__link:focus-visible { outline-offset: 6px; }
.wcard__body { position: relative; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: .35rem; padding-top: var(--sc-4); }  /* above the card link even while it animates; only the buy row takes the pointer */
.wcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem var(--sc-4); }
.wcard__name { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); line-height: 1.1; margin: 0; text-wrap: balance; }
.wcard__name span { font-size: .55em; color: var(--ink-soft); font-weight: 300; margin-inline-start: .35em; font-family: var(--sc-font-text); white-space: nowrap; }
.wcard__price { flex: none; font-family: var(--sc-font-display); font-weight: 300; font-size: var(--sc-t-lg); line-height: 1.1; margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.wcard__meta { margin: 0; color: var(--ink-soft); font-size: var(--sc-t-sm); }
.wcard__meta span { white-space: nowrap; }
.wcard__note { margin: .15rem 0 0; color: var(--ink-faint); font-size: var(--sc-t-sm); line-height: 1.5; max-width: 34ch; }
.wcard__buy { position: relative; z-index: 3; pointer-events: auto; margin-top: auto; padding-top: var(--sc-3); display: flex; gap: .75rem; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .wcard:hover .bottle { transform: translateY(-10px); }
  .wcard:hover .wcard__stage::before { opacity: 1; }
}

/* ------------------------------------------------------------------ wine */
.wine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.wine__info { display: grid; gap: var(--sc-5); align-content: start; padding-top: var(--sc-4); }
.wine__title { font-family: var(--sc-font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .98; margin: 0; text-wrap: balance; }
.wine__title:focus { outline: none; }
.wine__title small { display: block; font-size: .36em; line-height: 1.3; color: var(--ink-soft); margin-top: .5rem; font-weight: 400; text-shadow: none; }
.wine__gloss { font-family: var(--sc-font-display); font-weight: 300; font-size: var(--sc-t-lg); color: var(--gold); margin: 0; }
.wine__desc { margin: 0; font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); font-weight: 300; line-height: 1.75; max-width: 44ch; text-wrap: pretty; }
.wine__gloss + .wine__title { margin-top: calc(var(--sc-2) - var(--sc-5)); }
.wine__title + .wine__price { margin-top: calc(var(--sc-3) - var(--sc-5)); }
.wine__buy { display: grid; gap: var(--sc-3); padding-top: var(--sc-5); border-top: 1px solid var(--line); }
.wine__price { display: flex; align-items: baseline; gap: .75rem; margin: 0; }
.wine__price b { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); font-variant-numeric: lining-nums tabular-nums; }
.wine__price span { color: var(--ink-soft); font-size: var(--sc-t-sm); }
.wine__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.wine__row .btn--solid { min-height: 46px; padding-inline: 1.6em; font-size: var(--sc-t-base); }
.wine__incart { margin: 0; font-size: var(--sc-t-sm); color: var(--ink-soft); }
.wine__incart[hidden] { display: none; }
.wine__fine { margin: 0; font-size: var(--sc-t-sm); color: var(--ink-faint); }

.wine__stage { --foot: 6.6%; position: sticky; top: var(--page-top); height: min(calc(100svh - var(--page-top) - 2rem), 46rem); display: grid; place-items: center; isolation: isolate; }
.wine__orb { position: absolute; z-index: -1; width: min(40vw, 34rem); aspect-ratio: 1; border-radius: 50%; top: 8%; left: 50%; translate: -50% 0;
  background: var(--orb); filter: blur(10px); opacity: .9; }
.wine__orb[data-orb="moon"] { --orb: radial-gradient(circle at 44% 40%, rgb(240 236 226 / .22), rgb(206 202 192 / .1) 55%, transparent 71%); box-shadow: 0 0 120px 20px rgb(230 226 216 / .05); }
.wine__orb[data-orb="pale"] { --orb: radial-gradient(circle at 46% 42%, rgb(244 239 230 / .34), rgb(231 224 211 / .16) 50%, transparent 71%); }
.wine__orb[data-orb="light"] { --orb: radial-gradient(circle, rgb(150 170 230 / .2), rgb(90 110 190 / .08) 55%, transparent 71%); }
.wine__orb[data-orb="sun"] { --orb: radial-gradient(circle at 50% 60%, rgb(255 205 140 / .34), rgb(242 165 90 / .12) 55%, transparent 71%); }
/* the base stands on the gold line, never over it: bottle.js frames the base,
   seen edge on, 3% of the canvas above its bottom edge, so the box ends that
   far below the line's top edge (the line is 1px). No floor shadow here: from
   the height of the base there is no floor to see, only the line. */
.wine__bottle { height: 92%; align-self: end; position: relative; bottom: calc(var(--foot) + 1px - 92% * .03); cursor: grab; touch-action: pan-y; }
.wine__bottle .bottle__shadow { display: none; }
.wine__bottle:active { cursor: grabbing; }
.wine__stage .drag-hint { bottom: .25rem; }
.wine__horizon { position: absolute; z-index: -1; inset-inline: 2%; bottom: var(--foot); height: 1px;
  background: linear-gradient(to left, transparent, rgb(213 157 93 / .5) 22%, rgb(231 192 142 / .85) 50%, rgb(213 157 93 / .5) 78%, transparent); }
.wine__ground { position: absolute; z-index: -1; bottom: 2%; inset-inline: 10%; height: 10%; background: radial-gradient(50% 50% at 50% 50%, rgb(213 157 93 / .12), transparent 70%); }

.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.specs > div { padding: var(--sc-4) 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; align-content: start; }
.specs > .col-a { padding-inline-end: var(--sc-4); }
.specs > .col-b { padding-inline-start: var(--sc-4); border-inline-start: 1px solid var(--line); }
.specs > div.is-wide { grid-column: 1 / -1; padding-inline: 0; border-inline-start: 0; }
.specs dt { font-size: var(--sc-t-xs); color: var(--ink-faint); letter-spacing: .06em; }
.specs dd { margin: 0; font-size: var(--sc-t-base); }

.blend { display: grid; gap: .6rem; margin-top: .35rem; }
.blend__bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.blend__bar i { display: block; height: 100%; }
.blend__key { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: var(--sc-t-sm); }
.blend__key li { display: inline-flex; align-items: center; gap: .45rem; }
.blend__key i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.blend__key b { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }

.kosher { display: flex; align-items: center; gap: var(--sc-4); }
.kosher img { width: 52px; height: 52px; object-fit: contain; background: #F4EEE3; border-radius: 50%; padding: 5px; }
.kosher p { margin: 0; font-size: var(--sc-t-sm); color: var(--ink-soft); line-height: 1.5; }

.more { margin-top: clamp(4rem, 10vh, 7rem); }
.more__title { font-family: var(--sc-font-display); font-weight: 300; font-size: var(--sc-t-2xl); margin: 0; }
.more .wines { margin-top: var(--sc-6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more .wcard__stage { height: clamp(18rem, 26vw, 24rem); }
.more .wcard__top { flex-direction: column; align-items: flex-start; }
.more .wcard__price { font-size: var(--sc-t-lg); }

/* ----------------------------------------------------------------- about */
.about__hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__mark { width: 100%; max-width: 26rem; justify-self: center; color: var(--gold); }
.about__mark svg { width: 100%; height: auto; overflow: visible; }
.about__mark path { fill: currentColor; }
.about__mark .sun { fill: #FFD9A0; filter: drop-shadow(0 0 18px rgb(255 200 120 / .55)); }
.poem { margin: clamp(2.5rem, 7vh, 5rem) 0 0; display: grid; gap: 1.5rem; }
.poem p { margin: 0; text-wrap: balance; }
.poem p:first-child { font-family: var(--sc-font-display); font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.3; max-width: 24ch; }
.poem p:nth-child(2) { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.75; max-width: 46ch; text-wrap: pretty; }

.hours { margin-top: clamp(4.5rem, 12vh, 8rem); }
.hours__title, .section-title { font-family: var(--sc-font-display); font-weight: 300; font-size: var(--sc-t-2xl); margin: 0; line-height: 1.1; text-wrap: balance; }
.hours__lede { margin: var(--sc-3) 0 0; color: var(--ink-soft); max-width: 52ch; }
.hours__list { list-style: none; margin: var(--sc-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.hours__list::before { content: ""; position: absolute; top: .55rem; inset-inline: 0; height: 1px; background: linear-gradient(to left, var(--line-strong), var(--gold)); }
.hours__list li { position: relative; padding-top: var(--sc-6); padding-inline-end: var(--sc-5); display: grid; gap: .3rem; align-content: start; }
.hours__list li::before { content: ""; position: absolute; top: .25rem; inset-inline-start: 0; width: .65rem; height: .65rem; border-radius: 50%; background: var(--panel-solid); border: 1px solid var(--gold); }
.hours__list li:last-child::before { background: var(--gold); box-shadow: 0 0 14px rgb(255 190 110 / .8); }
.hours__list time { font-family: var(--sc-font-display); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; direction: ltr; text-align: end; justify-self: start; font-size: var(--sc-t-lg); }
.hours__list h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); }
.hours__list p { margin: 0; color: var(--ink-soft); font-size: var(--sc-t-sm); line-height: 1.55; }
.hours__list a { font-size: var(--sc-t-sm); }

.series { margin-top: clamp(4rem, 10vh, 7rem); }
.series__img { position: relative; margin-top: var(--sc-6); }
.series__img img { width: 100%; height: auto; }
.series__img::after { content: ""; position: absolute; inset-inline: 0; bottom: 1%; height: 1px; background: var(--line-strong); }
.series__names { direction: ltr; list-style: none; margin: var(--sc-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); text-align: center; font-size: var(--sc-t-sm); }
.series__names a { text-decoration: none; color: var(--ink-soft); display: block; padding: .4rem .2rem; }
.series__names a:hover { color: var(--gold); }

.pillars { margin-top: clamp(4rem, 10vh, 7rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); border-top: 1px solid var(--line); padding-top: var(--sc-7); }
.pillars h3 { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); margin: 0 0 var(--sc-3); }
.pillars p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.pillars .kosher { margin-top: var(--sc-4); }
.cta-row { margin-top: clamp(3rem, 8vh, 5rem); display: flex; flex-wrap: wrap; gap: .75rem; }

/* ----------------------------------------------------------------- visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 6vh, 4rem); align-items: stretch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--sc-r-lg); padding: clamp(1.25rem, 3vw, 2.25rem); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel__title { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); margin: 0 0 var(--sc-4); }
.contact { list-style: none; margin: 0; padding: 0; display: grid; }
.contact li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem 1rem; padding-block: var(--sc-4); border-bottom: 1px solid var(--line); }
.contact li:last-child { border-bottom: 0; }
.contact dt, .contact .k { font-size: var(--sc-t-xs); color: var(--ink-faint); letter-spacing: .06em; grid-column: 1; }
.contact .v { grid-column: 1; font-size: var(--sc-t-lg); font-family: var(--sc-font-display); user-select: all; overflow-wrap: anywhere; }
.contact .acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .5rem; }
.copy { appearance: none; border: 1px solid var(--line-strong); background: none; color: var(--ink-soft); border-radius: var(--sc-r-pill); min-height: 44px; padding: .3rem .95rem; font-size: var(--sc-t-xs); cursor: pointer; font-family: var(--sc-font-text); }
.copy:hover { color: var(--ink); border-color: var(--gold); }
.copy.is-done { color: var(--ok); border-color: var(--ok); }
.small-btn { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .95rem; border-radius: var(--sc-r-pill); background: var(--gold); color: var(--gold-ink); text-decoration: none; font-size: var(--sc-t-xs); font-weight: 600; white-space: nowrap; }
.small-btn--ghost { background: none; color: var(--gold-soft); border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent); }
.small-btn--ghost:hover { border-color: var(--gold); }
.visit__note { margin: var(--sc-5) 0 0; color: var(--ink-soft); font-size: var(--sc-t-sm); line-height: 1.6; }

/* forms */
.field { display: grid; gap: .4rem; }
.field label, .field .lbl { font-size: var(--sc-t-sm); color: var(--ink-soft); }
.field label .req { color: var(--gold); margin-inline-start: .15em; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; border-radius: var(--sc-r-md); border: 1px solid var(--line-strong); background: var(--field); color: var(--ink);
  padding: .7rem .9rem; font-size: 1rem; transition: border-color 160ms, box-shadow 160ms; }
.field input[type="tel"], .field input[type="email"] { text-align: right; }
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(213 157 93 / .22); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .err { margin: 0; font-size: var(--sc-t-xs); color: var(--danger); }
.field .err:empty { display: none; }
.field .hint { margin: 0; font-size: var(--sc-t-xs); color: var(--ink-faint); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sc-4); }
.grid2 .span2 { grid-column: 1 / -1; }
.form-stack { display: grid; gap: var(--sc-4); }

/* ------------------------------------------------------------------ cart */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 5vh, 3.5rem); align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto auto; gap: var(--sc-4) var(--sc-5); align-items: center; padding-block: var(--sc-4); border-bottom: 1px solid var(--line); }
.line__img { height: 7.5rem; display: grid; place-items: center; }
.line__img img { height: 7.5rem; width: auto; max-width: none; object-fit: contain; }
.line__name { margin: 0; font-family: var(--sc-font-display); font-size: var(--sc-t-lg); line-height: 1.15; }
.line__name a { text-decoration: none; }
.line__name a:hover { color: var(--gold); }
.line__meta { margin: .2rem 0 0; color: var(--ink-faint); font-size: var(--sc-t-sm); }
.line__total { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); font-variant-numeric: lining-nums tabular-nums; min-width: 4.5ch; text-align: end; }
.line__rm { appearance: none; background: none; border: 0; color: var(--ink-faint); cursor: pointer; font-size: var(--sc-t-xs); min-height: 44px; padding: 0 .5rem; text-decoration: underline; text-underline-offset: .2em; font-family: var(--sc-font-text); }
.line__rm:hover { color: var(--danger); }
.line__ctl { display: grid; justify-items: center; gap: .2rem; }

.horizon { display: grid; gap: .55rem; }
.horizon__msg { margin: 0; font-size: var(--sc-t-sm); }
.horizon__msg b { color: var(--gold); font-weight: 600; }
.horizon__track { position: relative; height: 14px; contain: layout; }  /* the fill's width change stays inside the track */
.horizon__track::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: var(--line-strong); }
.horizon__fill { position: absolute; inset-inline-start: 0; top: 50%; height: 2px; translate: 0 -50%; width: var(--p, 0%); background: var(--gold); border-radius: 2px; transition: width 500ms var(--sc-ease-out); box-shadow: 0 0 10px rgb(255 190 110 / .45); }
.horizon__sun { position: absolute; top: 50%; inset-inline-start: var(--p, 0%); width: 14px; height: 14px; border-radius: 50%; translate: 50% -50%; background: #FFD9A0; box-shadow: 0 0 12px rgb(255 190 110 / .9); transition: inset-inline-start 500ms var(--sc-ease-out); }
.horizon__sun:dir(ltr) { translate: -50% -50%; }

.sum { display: grid; gap: var(--sc-3); }
.panel.sum { background: rgb(9 13 28 / .9); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (min-width: 861px) { .sum.is-sticky { position: sticky; top: calc(var(--bar-h) + var(--veil-fade)); } }
.sum__rows { margin: 0; display: grid; gap: .55rem; }
.sum__rows > div { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: lining-nums tabular-nums; }
.sum__rows dt { color: var(--ink-soft); }
.sum__rows dd { margin: 0; }
.sum__rows .is-total { border-top: 1px solid var(--line); padding-top: var(--sc-3); margin-top: .2rem; font-family: var(--sc-font-display); font-size: var(--sc-t-xl); }
.sum__rows .is-total dt { color: var(--ink); }
.sum__rows .is-disc dd { color: var(--ok); }
.sum__fine { margin: 0; font-size: var(--sc-t-xs); color: var(--ink-faint); line-height: 1.55; }
.empty { display: grid; gap: var(--sc-4); justify-items: start; padding-block: var(--sc-7); border-top: 1px solid var(--line); }
.empty p { margin: 0; font-family: var(--sc-font-display); font-weight: 300; font-size: var(--sc-t-xl); color: var(--ink-soft); }
.empty--cart { justify-items: center; text-align: center; border-top: 0; padding-block: var(--sc-3) var(--sc-7); }
.empty .empty__sub { margin-top: calc(-1 * var(--sc-2)); font-family: var(--sc-font-text); font-size: var(--sc-t-base); color: var(--ink-faint); }
/* the empty cart's reel: the wines on one shelf, scrolled sideways. A pool of
   warm light stands still in the middle and each wine walks into it; the
   bottles' size, light and turn are set per frame from their distance to the
   middle (store.js, reelFrame) */
.reel-wrap { --w: clamp(6.5rem, 27vw, 9.5rem); --h: calc(var(--w) * 10 / 3); position: relative; justify-self: stretch; min-width: 0; margin-inline: calc(-1 * var(--sc-gutter)); margin-block: var(--sc-3) 0; isolation: isolate; }
.reel-wrap::before { content: ""; position: absolute; z-index: -1; inset-block: -6% 0; left: 50%; width: min(92vw, 30rem); translate: -50% 0; pointer-events: none;
  background: radial-gradient(42% 46% at 50% 54%, rgb(255 226 184 / .30), rgb(255 204 146 / .12) 58%, transparent 78%), radial-gradient(34% 5% at 50% calc(100% - var(--h) * .03), rgb(255 214 160 / .38), transparent 72%); }
.reel-wrap::after { content: ""; position: absolute; inset-inline: 0; bottom: calc(var(--h) * .03 - 1px); height: 1px; pointer-events: none;
  background: linear-gradient(to left, transparent, var(--line-strong) 18%, rgb(213 157 93 / .7) 50%, var(--line-strong) 82%, transparent); }
.reel { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.reel::-webkit-scrollbar { display: none; }
.reel:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); border-radius: 12px; }
.reel__track { display: flex; gap: clamp(.25rem, 2vw, 1.25rem); width: max-content; margin: 0; padding: var(--sc-4) calc(50% - var(--w) / 2) 0; list-style: none; }
.reel__item { flex: 0 0 var(--w); scroll-snap-align: center; }
.reel__stage { display: block; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.reel__stage:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.reel .bottle { height: var(--h); width: auto; margin-inline: auto; transform-origin: 50% 97%; will-change: transform; }
.reel .bottle__shadow { display: none; }
.reel__arrow { position: absolute; top: calc(var(--sc-4) + var(--h) * .45); z-index: 2; display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgb(12 16 38 / .5); color: var(--ink); cursor: pointer; translate: 0 -50%; transition: background-color 160ms var(--sc-ease-out), scale 120ms var(--sc-ease-out); }
.reel__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reel__arrow--l { left: max(var(--sc-gutter), calc(50% - var(--w) * 2.4)); }
.reel__arrow--r { right: max(var(--sc-gutter), calc(50% - var(--w) * 2.4)); }
.reel__arrow:active { scale: .94; }
@media (hover: hover) and (pointer: fine) {
  .reel__arrow { display: grid; }
  .reel__arrow:hover { background: rgb(213 157 93 / .22); }
}
/* the card under the wine in the light */
.reel__info { min-height: 12.5rem; justify-self: stretch; display: grid; justify-items: center; }
.reel__card { display: grid; justify-items: center; gap: .35rem; max-width: 34ch; animation: reel-card 260ms var(--sc-ease-out); }
.reel__card.is-out { opacity: 0; translate: 0 4px; transition: opacity 140ms ease, translate 140ms ease; }
@keyframes reel-card { from { opacity: 0; translate: 0 6px; } }
.empty .reel__type { margin: 0; font-family: var(--sc-font-text); font-size: var(--sc-t-sm); color: var(--gold); letter-spacing: .04em; }
.reel__name { margin: 0; font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-2xl); line-height: 1.1; color: var(--ink); text-wrap: balance; }
.reel__name span { font-weight: 300; font-size: .62em; color: var(--ink-soft); }
.empty .reel__short { margin: 0; font-family: var(--sc-font-text); font-size: var(--sc-t-base); line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.reel__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin-top: .5rem; }
.reel__price { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.reel__more { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; min-height: 44px; display: inline-grid; place-items: center; }
.reel__more:hover { color: var(--ink); }

/* -------------------------------------------------------------- checkout */
.co__peek { margin: 0; color: var(--ink-soft); font-size: var(--sc-t-sm); display: none; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 5vh, 3.5rem); align-items: start; }
.co__side { align-self: stretch; }  /* the column runs the form's full height, so the summary has room to ride */
.co__form { display: grid; gap: var(--sc-5); }
.step-panel { border: 1px solid var(--line); border-radius: var(--sc-r-lg); background: var(--panel); padding: clamp(1.25rem, 3vw, 2rem); margin: 0; min-width: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.step-panel legend { float: inline-start; width: 100%; padding: 0; margin-bottom: var(--sc-5); display: flex; align-items: baseline; gap: .75rem; font-family: var(--sc-font-display); font-size: var(--sc-t-xl); font-weight: 400; }
.step-panel legend + * { clear: both; }
.step-panel legend span { font-family: var(--sc-font-display); font-weight: 300; font-size: .72em; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }

.choice { display: grid; gap: .6rem; }
.choice label { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .85rem; align-items: center; padding: var(--sc-4); border: 1px solid var(--line-strong); border-radius: var(--sc-r-md); cursor: pointer; transition: border-color 160ms, background 160ms; }
.choice label:has(input:checked) { border-color: var(--gold); background: rgb(213 157 93 / .07); }
.choice input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .4); background: transparent; display: grid; place-items: center; cursor: pointer; transition: border-color 160ms; }
.choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform 160ms var(--sc-ease-out); }
.choice input:checked { border-color: var(--gold); }
.choice input:checked::after { transform: scale(1); }
.choice input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice b { font-weight: 600; }
.choice small { grid-column: 2; color: var(--ink-faint); font-size: var(--sc-t-xs); }
.choice .amt { grid-column: 3; grid-row: 1; font-variant-numeric: lining-nums tabular-nums; }
.choice .amt.is-free { color: var(--ok); }

.pay-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; padding: var(--sc-4); border-radius: var(--sc-r-md); background: rgb(239 231 217 / .04); border: 1px solid var(--line); }
.pay-note svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; margin-top: .15rem; }
.pay-note p { margin: 0; font-size: var(--sc-t-sm); color: var(--ink-soft); line-height: 1.6; }
.pay-note p + p { margin-top: .35rem; }
.pay-note strong { color: var(--ink); font-weight: 600; }

.consents { display: grid; gap: .25rem; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
.consent:last-child { border-bottom: 0; }
.consent input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: .05rem 0 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--field); cursor: pointer; display: grid; place-items: center; transition: background 160ms, border-color 160ms; }
.consent input::after { content: ""; width: 7px; height: 12px; border: solid var(--gold-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.consent input:checked { background: var(--gold); border-color: var(--gold); }
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.consent input[aria-invalid="true"] { border-color: var(--danger); }
.consent label { cursor: pointer; line-height: 1.55; }
.consent .req { color: var(--gold); }
.consent small { display: block; color: var(--ink-faint); font-size: var(--sc-t-xs); margin-top: .2rem; }
.consent .opt { color: var(--ink-faint); font-size: var(--sc-t-xs); }

.coupon { display: flex; gap: .5rem; }
.coupon input { flex: 1; min-width: 0; min-height: 44px; border-radius: var(--sc-r-md); border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); padding: .5rem .8rem; font-size: 1rem; text-transform: uppercase; direction: ltr; text-align: end; }
.coupon input:focus { outline: none; border-color: var(--gold); }
.coupon .btn { min-height: 44px; }
.coupon__msg { margin: 0; font-size: var(--sc-t-xs); }
.coupon__msg.is-ok { color: var(--ok); }
.coupon__msg.is-bad { color: var(--danger); }

.co__mini { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.co__mini li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; font-size: var(--sc-t-sm); }
.co__mini img { height: 3.6rem; width: auto; justify-self: center; }
.co__mini b { font-weight: 400; display: block; }
.co__mini span { color: var(--ink-faint); }
.co__mini .t { font-variant-numeric: lining-nums tabular-nums; }
#co-pay { position: relative; overflow: hidden; }
#co-pay[aria-disabled="true"] { opacity: 1; pointer-events: auto; }  /* locked, not dead: a press leads to the first box still to tick */
#co-pay.is-locked, .paybar__go.is-locked { background: transparent; color: var(--gold-soft); border-color: color-mix(in oklab, var(--gold) 55%, transparent); }
@media (hover: hover) and (pointer: fine) { #co-pay.is-locked:hover, .paybar__go.is-locked:hover { background: rgb(213 157 93 / .08); color: var(--gold); } }
#co-pay svg, .paybar__go svg { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; margin-inline-end: .5em; }
.pay-hint { margin: 0; font-size: var(--sc-t-xs); color: var(--ink-soft); text-align: center; line-height: 1.5; }
.pay-hint[hidden] { display: none; }
.demo-flag { margin: 0; font-size: var(--sc-t-xs); color: var(--ink-faint); text-align: center; }

.done { display: grid; justify-items: center; text-align: center; gap: var(--sc-4); max-width: 40rem; margin-inline: auto; padding-block: var(--sc-6); }
.done svg { width: 7rem; color: var(--gold); }
.done svg path { fill: currentColor; }
.done h1 { font-family: var(--sc-font-display); font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 4.6rem); margin: 0; line-height: 1.02; }
.done h1:focus { outline: none; }
.done p { margin: 0; color: var(--ink-soft); }
.done .ordno { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.done .ordno small { display: block; direction: rtl; font-family: var(--sc-font-text); font-size: var(--sc-t-xs); color: var(--ink-faint); letter-spacing: .06em; margin-bottom: .15rem; }
.done .panel { width: 100%; text-align: start; }

/* ----------------------------------------------------------------- legal */
.legal-wrap { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); margin-top: clamp(2rem, 5vh, 3.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--bar-h) + var(--veil-fade)); display: grid; gap: .1rem; font-size: var(--sc-t-sm); }
.toc summary { list-style: none; cursor: pointer; margin: 0 0 .5rem; color: var(--ink-faint); font-size: var(--sc-t-xs); letter-spacing: .06em; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 200ms; margin-inline-end: .2rem; }
.toc details[open] summary::after { transform: rotate(-135deg); }
.toc__list { display: grid; gap: .1rem; }
.toc__other { margin-top: 1rem; justify-self: start; }
.toc button { appearance: none; background: none; border: 0; text-align: start; color: var(--ink-soft); padding: .35rem 0; cursor: pointer; display: grid; grid-template-columns: 1.8em minmax(0, 1fr); font-family: var(--sc-font-text); line-height: 1.4; }
.toc button span { color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.toc button:hover { color: var(--ink); }
.legal { max-width: 70ch; }
.legal__meta { margin: 0 0 var(--sc-6); color: var(--ink-faint); font-size: var(--sc-t-sm); }
.legal section { padding-block: var(--sc-5); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + var(--veil-fade)); }
.legal h2 { display: flex; gap: .7rem; align-items: baseline; font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); line-height: 1.2; margin: 0 0 var(--sc-3); }
.legal h2 span { color: var(--gold); font-size: .7em; font-variant-numeric: lining-nums tabular-nums; min-width: 1.6em; }
.legal h3 { font-size: var(--sc-t-base); font-weight: 600; margin: var(--sc-4) 0 var(--sc-2); }
.legal p, .legal li { line-height: 1.8; color: color-mix(in oklab, var(--ink) 88%, var(--ink-soft)); }
.legal p { margin: 0 0 var(--sc-3); }
.legal ul, .legal ol { margin: 0 0 var(--sc-3); padding-inline-start: 1.3rem; display: grid; gap: .35rem; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .callout { border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent); background: rgb(213 157 93 / .06); border-radius: var(--sc-r-md); padding: var(--sc-4); margin: var(--sc-3) 0; }
.legal .callout p:last-child { margin: 0; }
.legal a { color: var(--gold-soft); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------------- sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--sc-4); }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgb(3 5 12 / .72); backdrop-filter: blur(3px); animation: fade 240ms var(--sc-ease-out); }
.sheet__panel { position: relative; width: min(100%, 48rem); max-height: min(88vh, 60rem); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: var(--sc-r-lg); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8); animation: rise 320ms var(--sc-ease-out); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--sc-4) var(--sc-5); border-bottom: 1px solid var(--line); }
.sheet__title { margin: 0; font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); }
.sheet__title:focus { outline: none; }
.sheet__x { appearance: none; background: none; border: 0; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; border-radius: 50%; }
.sheet__x:hover { color: var(--ink); background: rgb(239 231 217 / .06); }
.sheet__body { overflow-y: auto; padding: var(--sc-2) var(--sc-5) var(--sc-5); overscroll-behavior: contain; max-width: none; }
.sheet__foot { display: flex; flex-wrap: wrap; gap: .6rem; padding: var(--sc-4) var(--sc-5); border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
html.has-sheet { overflow: hidden; }

/* ----------------------------------------------------------------- toast */
.toast { position: fixed; z-index: 55; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 1rem;
  max-width: calc(100vw - 2rem); padding: .7rem .8rem .7rem 1.2rem; padding-inline-start: 1.2rem; border-radius: var(--sc-r-pill); background: var(--panel-solid); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / .7); font-size: var(--sc-t-sm); animation: rise 280ms var(--sc-ease-out); }
.toast[hidden] { display: none; }
.toast b { font-weight: 600; }
.toast a, .toast .btn { flex: none; }
.toast.is-out { animation: toast-out 200ms ease-in forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (min-width: 861px) {
  .toast { top: calc(var(--bar-h) + .4rem); bottom: auto; left: auto; right: auto; inset-inline-end: var(--sc-gutter); translate: none; transform-origin: top left; animation: toast-drop 320ms var(--sc-ease-out); }
  .toast.is-out { animation-name: toast-lift; }
}
@keyframes toast-drop { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toast-lift { to { opacity: 0; transform: translateY(-6px); } }
.menu-open .toast { visibility: hidden; }
.menu__foot, .menu__wines { display: none; }

/* -------------------------------------------------------------- add button */
.add__q { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding-inline: .35em; margin-inline-start: .55em; border-radius: 1em; font-size: .8em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; background: var(--sc-accent-ink); color: var(--sc-accent); }
.view .add.is-added { background: transparent; border-color: var(--gold); color: var(--gold-soft); }
.view .add.is-added .add__q { background: var(--gold); color: var(--gold-ink); }
.add.is-ok, .btn.is-ok, .add.is-ok:hover, .btn.is-ok:hover { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
.add__ok { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-inline-end: .4em; stroke-dasharray: 14; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------- docks (phone bottom bars) */
.dock { display: none; }

/* ---------------------------------------------------------------- footer */
.sfoot { position: relative; z-index: 1; color: var(--ink); }
.sfoot__ridge { display: block; width: 100%; height: clamp(4rem, 9vw, 8rem); max-width: none; }
.sfoot__ridge path { fill: var(--ridge); }
.sfoot__ridge .rim { fill: none; stroke: rgb(220 226 242 / .28); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.sfoot__body { background: var(--ridge); padding-block: var(--sc-6) var(--sc-7); margin-top: -1px; }
.sfoot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) auto; gap: var(--sc-6); align-items: start; }
.sfoot__brand svg { width: 3.2rem; height: auto; color: var(--gold); }
.sfoot__brand path { fill: currentColor; }
.sfoot__brand p { margin: var(--sc-3) 0 0; color: var(--ink-soft); font-size: var(--sc-t-sm); max-width: 24ch; text-wrap: balance; }
.sfoot h2 { margin: 0 0 var(--sc-3); font-size: var(--sc-t-xs); color: var(--ink-faint); letter-spacing: .08em; font-weight: 400; }
.sfoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; font-size: var(--sc-t-sm); }
.sfoot ul a { display: inline-block; padding-block: .55rem; text-decoration: none; color: var(--ink-soft); }
.sfoot ul a:hover { color: var(--gold); }
.sfoot__kosher { display: flex; gap: .75rem; }
.sfoot__kosher img { width: 52px; height: 52px; object-fit: contain; background: #F4EEE3; border-radius: 50%; padding: 5px; }
.sfoot__fine { grid-column: 1 / -1; margin: var(--sc-4) 0 0; padding-top: var(--sc-5); border-top: 1px solid var(--line); color: var(--ink-faint); font-size: var(--sc-t-xs); display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
.sfoot__fine strong { color: var(--ink-soft); font-weight: 600; }

/* home additions */
@media (hover: hover) and (pointer: fine) { .order .btn--solid:hover { background: color-mix(in oklab, var(--sc-accent) 86%, black); } }  /* darker, not paler, keeps the cream label readable */
.summary__alt { justify-self: center; font-size: var(--sc-t-sm); }
.foot__kosher img { background: #F4EEE3; border-radius: 50%; padding: 4px; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 1080px) {
  .wines, .more .wines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfoot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sfoot__brand { grid-column: 1 / -1; }
  .hours__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sc-6); }
  .hours__list::before { display: none; }
}
@media (max-width: 860px) {
  .menu { position: fixed; z-index: -1; inset: 0; overflow-y: auto; padding: calc(var(--bar-h) + 1rem) var(--sc-gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: rgb(6 9 20 / .97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); color: var(--ink);
    transform: translateY(-105%); transition: transform 320ms var(--sc-ease-drawer); visibility: hidden; }
  .menu.is-open { transform: none; visibility: visible; }
  html.menu-open { overflow: hidden; }
  /* the open menu is night blue under the bar, whatever the hour behind it */
  html.menu-open body.is-day .bar { color: var(--sc-ink); }
  html.menu-open body.is-day .bar__mark { color: var(--sc-accent); }
  html.menu-open body.is-day .clock__lbl { color: var(--sc-ink-soft); }
  .menu > a { font-family: var(--sc-font-display); font-size: 1.6rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
  .menu > a[data-route-link="shop"] { border-bottom: 0; padding-bottom: .35rem; }
  .menu__wines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; list-style: none; margin: 0; padding: 0 0 .6rem; border-bottom: 1px solid var(--line); }
  .menu__wines a { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; min-height: 44px; padding-block: .55rem; text-decoration: none; color: var(--ink-soft); font-size: var(--sc-t-base); }
  .menu__wines small { color: var(--ink-faint); font-size: var(--sc-t-xs); font-variant-numeric: lining-nums tabular-nums; }
  .menu > a::after { display: none; }
  .menu__foot { display: grid; gap: .6rem; margin-top: auto; padding-top: var(--sc-6); color: var(--ink-soft); font-size: var(--sc-t-sm); }
  .menu__foot p { margin: 0; }
  .menu__foot a { color: var(--gold-soft); text-underline-offset: .2em; display: inline-block; padding-block: .35rem; }
  .bar__burger { display: grid; }
  .bar__cart-lbl { display: none; }
  .bar__cart { padding-inline: .7rem; }
  .bar__end { gap: .35rem; }
  .bar { grid-template-columns: auto 1fr auto; }

  .wine { grid-template-columns: minmax(0, 1fr); }
  .wine__stage { position: relative; top: 0; height: min(52svh, 26rem); order: -1; }
  .wine__stage .drag-hint { bottom: -1.6rem; }
  .dock:not([hidden]) { position: fixed; z-index: 25; inset: auto 0 0 0; display: grid; align-items: center; gap: .9rem;
    padding: .7rem var(--sc-gutter) calc(.7rem + env(safe-area-inset-bottom, 0px)); background: var(--panel-solid); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -18px 40px -24px rgb(0 0 0 / .9); animation: dock-in 340ms var(--sc-ease-drawer); }
  .dock p { margin: 0; }
  .buybar { grid-template-columns: minmax(0, 1fr) auto auto; }
  .paybar { grid-template-columns: minmax(0, 1fr) auto; }
  .paybar__sum { display: grid; line-height: 1.15; }
  .paybar__sum span { font-size: var(--sc-t-xs); color: var(--ink-faint); }
  .paybar__sum b { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); font-variant-numeric: lining-nums tabular-nums; }
  .paybar__go { min-height: 48px; padding-inline: 1.3rem; }
  .buybar__name { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__name span { font-family: var(--sc-font-text); font-size: .7em; color: var(--ink-soft); }
  .buybar__price { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); font-variant-numeric: lining-nums tabular-nums; }
  .buybar__add { min-height: 44px; padding-inline: 1.1rem; white-space: nowrap; }
  body.has-dock .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  body.has-dock .sfoot__body { padding-bottom: calc(var(--sc-7) + 4.5rem); }
  .wine__orb { width: 70vw; top: 6%; }
  .wine__info { padding-top: 0; }
  .cart, .co, .visit { grid-template-columns: minmax(0, 1fr); }
  .sum { position: static; }
  .co__peek { display: block; }
  .co__form { gap: var(--sc-6); }
  .step-panel { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: var(--sc-5) 0 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .legal-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--sc-r-md); padding: var(--sc-3) var(--sc-4); }
  .toc summary { margin: 0; font-size: var(--sc-t-sm); color: var(--ink-soft); }
  .toc details[open] summary { margin-bottom: .5rem; }
  .about__hero { grid-template-columns: minmax(0, 1fr); }
  .about__mark { max-width: 9rem; order: -1; justify-self: start; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .series__names { font-size: var(--sc-t-xs); }
  .sheet { padding: 0; place-items: end stretch; }
  .sheet__panel { width: 100%; max-height: 92vh; border-radius: var(--sc-r-lg) var(--sc-r-lg) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 620px) {
  [data-page^="wine-"] .page { padding-top: calc(var(--bar-h) + .75rem); }
  [data-page^="wine-"] .crumbs { display: none; }
  .wine__stage { height: min(44svh, 22rem); }
  .wines, .more .wines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem .9rem; }
  .wcard__stage { height: 17rem; }
  .wcard__top { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .wcard__price { font-size: var(--sc-t-lg); }
  .wcard__name { font-size: 1.35rem; }
  .wcard__note { display: none; }
  .wcard__buy .add { width: 100%; padding-inline: .5em; }
  .more .wcard__stage { height: 15rem; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .line { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
  .line__img { height: 6rem; grid-row: span 2; }
  .line__img img { height: 6rem; }
  .line__ctl { grid-column: 2; justify-items: start; grid-row: 2; display: flex; gap: 1rem; align-items: center; }
  .line__total { grid-column: 3; grid-row: 1 / span 2; }
  .sfoot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact li { grid-template-columns: minmax(0, 1fr); }
  .contact .acts { grid-column: 1; grid-row: auto; margin-top: .4rem; }
  .hours__list { grid-template-columns: minmax(0, 1fr); }
  .series__names { display: none; }
  .toast { border-radius: var(--sc-r-lg); width: calc(100vw - 2rem); justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .wcard .bottle, .menu, .horizon__fill, .horizon__sun, .choice input::after { transition: none; }
  .sheet__panel, .sheet__scrim, .toast, .page-shell .page, .dock { animation: none !important; }
  .reel__card { animation: none; }
  .reel__card.is-out { transition: none; }
}

/* =================================================================== motion
   One idea runs through it: everything rises above the horizon line, the way
   the sun does over Moab at nets. Pages give way with a soft crossfade; a bottle
   on screen travels to its place on the next page; cards and the night's
   timeline rise from behind their own ground line as they come into view. All
   of it lives here, behind one gate, so reduced motion gets a still store. */
@keyframes dock-in { from { transform: translateY(100%); } }
@keyframes fade-up { from { opacity: 0; translate: 0 14px; } }
@keyframes title-rise { from { opacity: 0; translate: 0 .3em; } }
@keyframes line-draw { from { transform: scaleX(0); } }
@keyframes orb-in { from { opacity: 0; scale: .8; } }

@media (prefers-reduced-motion: no-preference) {
  /* page to page */
  :root.vt-nav .bar { view-transition-name: bar; }
  :root.vt-nav::view-transition-old(root) { animation: vt-out 240ms cubic-bezier(.4, 0, 1, 1) both; }
  :root.vt-nav::view-transition-new(root) { animation: vt-in 400ms var(--sc-ease-out) both; }
  @keyframes vt-out { to { opacity: 0; filter: blur(4px); } }
  @keyframes vt-in { from { opacity: 0; } }
  ::view-transition-group(travel-bottle) { animation-duration: 760ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  ::view-transition-old(travel-bottle), ::view-transition-new(travel-bottle) { animation-duration: 420ms; }
  :root.vt-filter::view-transition-group(*) { animation-duration: 440ms; animation-timing-function: var(--sc-ease-out); }

  /* arrival, any page */
  .is-arriving .ph > * { animation: fade-up 700ms var(--sc-ease-out) backwards; }
  .is-arriving .ph > h1 { animation-name: title-rise; animation-duration: 900ms; }
  .is-arriving .ph > :nth-child(2) { animation-delay: 60ms; }
  .is-arriving .ph > :nth-child(3) { animation-delay: 140ms; }
  .is-arriving .ph > :nth-child(4) { animation-delay: 200ms; }
  .is-arriving .shipnote, .is-arriving .chips, .is-arriving .legal-wrap, .is-arriving .visit > .panel { animation: fade-up 700ms var(--sc-ease-out) 200ms backwards; }
  .is-arriving .chips { animation-delay: 260ms; }
  .is-arriving .visit > .panel + .panel { animation-delay: 300ms; }
  .is-arriving .co__form > *, .is-arriving .co__side, .is-arriving .line, .is-arriving .cart .sum { animation: fade-up 700ms var(--sc-ease-out) 160ms backwards; }
  .is-arriving .co__form > :nth-child(2), .is-arriving .line:nth-child(2) { animation-delay: 230ms; }
  .is-arriving .co__form > :nth-child(3), .is-arriving .line:nth-child(3) { animation-delay: 300ms; }
  .is-arriving .line:nth-child(n+4) { animation-delay: 360ms; }
  .is-arriving .co__side, .is-arriving .cart .sum { animation-delay: 260ms; }

  /* arrival, a wine: the orb brightens, the horizon draws, the bottle rises from behind it */
  .is-arriving .wine__orb { animation: orb-in 1400ms var(--sc-ease-out) backwards; }
  .is-arriving .wine__horizon { animation: line-draw 1000ms var(--sc-ease-out) 120ms backwards; }
  .is-arriving:not(.is-travel) .wine__bottle { animation: rise-wine 1150ms cubic-bezier(.16, 1, .3, 1) 160ms backwards; }
  .is-arriving:not(.is-travel) .wine__bottle .bottle__shadow { animation: fade 500ms ease-out 1000ms backwards; }
  @keyframes rise-wine { from { translate: 0 30%; clip-path: inset(-5% -40% 33% -40%); } to { translate: 0 0; clip-path: inset(-5% -40% 3% -40%); } }
  .is-arriving .wine__info > * { animation: fade-up 700ms var(--sc-ease-out) backwards; }
  .is-arriving .wine__info > .wine__title { animation-name: title-rise; animation-duration: 900ms; animation-delay: 60ms; }
  .is-arriving .wine__info > :nth-child(3) { animation-delay: 140ms; }
  .is-arriving .wine__info > :nth-child(4) { animation-delay: 200ms; }
  .is-arriving .wine__info > :nth-child(5) { animation-delay: 260ms; }
  .is-arriving .wine__info > :nth-child(n+6) { animation-delay: 320ms; }
  .is-arriving .crumbs, .is-arriving .drag-hint { animation: fade 600ms ease-out backwards; }
  .is-arriving .drag-hint { animation-delay: 1100ms; }

  /* arrival, the empty cart: the wines rise behind the shelf line, the middle one first */
  .is-arriving .reel__stage { animation: rise-card 1000ms cubic-bezier(.16, 1, .3, 1) backwards; }
  .is-arriving .reel__item:nth-child(2) .reel__stage, .is-arriving .reel__item:nth-child(4) .reel__stage { animation-delay: 90ms; }
  .is-arriving .reel__item:nth-child(1) .reel__stage, .is-arriving .reel__item:nth-child(n+5) .reel__stage { animation-delay: 180ms; }

  /* arrival, the winery: first light over the mark */
  .is-arriving .about__mark .ray { transform-box: view-box; transform-origin: 145px 193px; animation: ray-open 1300ms var(--sc-ease-out) backwards; }
  .is-arriving .about__mark .sun { animation: fade 900ms ease-out 120ms backwards; }

  /* cards: the bottle rises from behind its ground line as the card comes into view */
  .wcard.rv:not(.in) .bottle { translate: 0 40%; clip-path: inset(-5% -40% 40% -40%); }
  .wcard.rv:not(.in) .wcard__stage::after { transform: scaleX(0); }
  .wcard.rv:not(.in) .wcard__stage::before { opacity: 0; }
  .wcard.rv:not(.in) .wcard__body { opacity: 0; }
  .wcard.rv.in .bottle { animation: rise-card 1000ms cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) backwards; }
  .wcard.rv.in .wcard__stage::after { animation: line-draw 800ms var(--sc-ease-out) var(--d, 0ms) backwards; }
  .wcard.rv.in .wcard__body { animation: fade-up 700ms var(--sc-ease-out) calc(var(--d, 0ms) + 200ms) backwards; }
  @keyframes rise-card { from { translate: 0 40%; clip-path: inset(-5% -40% 40% -40%); } to { translate: 0 0; clip-path: inset(-5% -40% 0 -40%); } }

  /* the night's timeline draws from 01:30 to 05:20, and the last hour catches the light */
  .hours.rv:not(.in) .hours__list::before { transform: scaleX(0); }
  .hours.rv:not(.in) .hours__list li { opacity: 0; }
  .hours.rv.in .hours__list::before { transform-origin: 100% 50%; animation: line-draw 1500ms var(--sc-ease-in-out) backwards; }
  .hours.rv.in .hours__list li { animation: fade-up 700ms var(--sc-ease-out) backwards; }
  .hours.rv.in .hours__list li:nth-child(2) { animation-delay: 330ms; }
  .hours.rv.in .hours__list li:nth-child(3) { animation-delay: 660ms; }
  .hours.rv.in .hours__list li:nth-child(4) { animation-delay: 990ms; }
  .hours.rv.in .hours__list li:last-child::before { animation: first-light 1600ms ease-out 1100ms backwards; }
  @keyframes first-light { from { background: var(--panel-solid); box-shadow: none; } 40% { box-shadow: 0 0 26px rgb(255 190 110 / 1); } }

  /* thank you: the sun comes up over the mark, its rays open */
  .done > * { animation: fade-up 700ms var(--sc-ease-out) backwards; }
  .done > svg { animation: none; }
  .done h1 { animation-name: title-rise; animation-duration: 900ms; animation-delay: 500ms; }
  .done > :nth-child(3) { animation-delay: 600ms; }
  .done > :nth-child(4) { animation-delay: 680ms; }
  .done > :nth-child(n+5) { animation-delay: 760ms; }
  .done svg .sun { animation: sun-up 1100ms var(--sc-ease-out) backwards; }
  .done svg .ray { transform-box: view-box; transform-origin: 145px 193px; animation: ray-open 1300ms var(--sc-ease-out) backwards; }
  .done svg .ray:nth-child(1) { animation-delay: 380ms; } .done svg .ray:nth-child(2) { animation-delay: 430ms; } .done svg .ray:nth-child(3) { animation-delay: 480ms; }
  .done svg .ray:nth-child(4) { animation-delay: 530ms; } .done svg .ray:nth-child(5) { animation-delay: 580ms; } .done svg .ray:nth-child(6) { animation-delay: 630ms; }
  .done svg .ray:nth-child(7) { animation-delay: 680ms; }
  @keyframes sun-up { from { opacity: 0; transform: translateY(26px); } }
  @keyframes ray-open { from { opacity: 0; transform: scale(.3); } }

  /* small answers */
  .add__ok path { animation: tick-draw 340ms var(--sc-ease-out) 60ms backwards; }
  @keyframes tick-draw { from { stroke-dashoffset: 14; } }
  .consent input:checked { animation: box-press 240ms var(--sc-ease-out); }
  .consent input:checked::after { animation: tick-in 300ms var(--sc-ease-out) both; }
  @keyframes box-press { 45% { scale: .86; } }
  @keyframes tick-in { 0% { clip-path: inset(calc(100% - 3px) 100% 0 0); } 45% { clip-path: inset(calc(100% - 3px) 0 0 0); } 100% { clip-path: inset(0); } }
  #co-pay.is-unlocked::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 32%, rgb(255 246 230 / .55) 50%, transparent 68%); animation: sheen 950ms var(--sc-ease-out) 60ms both; }
  @keyframes sheen { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
  .sheet.is-closing .sheet__scrim { animation: fade-out 220ms ease-in forwards; }
  .sheet.is-closing .sheet__panel { animation: sheet-out 220ms ease-in forwards; }
  @keyframes fade-out { to { opacity: 0; } }
  @keyframes sheet-out { to { opacity: 0; transform: translateY(12px) scale(.985); } }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .menu.is-open > * { animation: fade-up 460ms var(--sc-ease-out) backwards; }
  .menu.is-open > :nth-child(1) { animation-delay: 60ms; }
  .menu.is-open > :nth-child(2) { animation-delay: 100ms; }
  .menu.is-open > :nth-child(3) { animation-delay: 140ms; }
  .menu.is-open > :nth-child(4) { animation-delay: 180ms; }
  .menu.is-open > :nth-child(n+5) { animation-delay: 240ms; }
  .sheet__panel { animation: sheet-up 440ms var(--sc-ease-drawer); }
  .sheet.is-closing .sheet__panel { animation: sheet-down 240ms ease-in forwards; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes sheet-down { to { transform: translateY(100%); } }
}

/* ------------------------------------------------------------ the close-up
   viewer.js: the bottle lifts out of the page to fill the screen, over the
   page turned to frosted glass, with a soft studio light behind it */
.viewer { position: fixed; inset: 0; z-index: 90; touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.viewer__glass { position: absolute; inset: 0; overflow: hidden; background: rgb(9 13 32 / .52);
  -webkit-backdrop-filter: blur(30px) saturate(1.45); backdrop-filter: blur(30px) saturate(1.45); opacity: 0; transition: opacity 480ms var(--sc-ease-out); }
.viewer__glass::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(118vw, 112vh); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 228 190 / .17), rgb(255 206 150 / .06) 52%, transparent); }
.viewer__glass::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(158deg, rgb(255 255 255 / .1), transparent 30%, transparent 72%, rgb(255 255 255 / .04)); }
.viewer.is-open .viewer__glass { opacity: 1; }
.viewer.is-closing .viewer__glass { transition-duration: 420ms; }
.viewer__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: grab; outline: none; will-change: transform; }
.viewer__gl:active { cursor: grabbing; }
.viewer__gl.is-shown { opacity: 1; }
.viewer__gl:focus-visible { box-shadow: inset 0 0 0 2px rgb(231 192 142 / .55); }
.viewer__wait { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: rgb(243 234 214 / .75); font-size: var(--sc-t-sm); letter-spacing: .06em; }
.viewer__caption { position: absolute; inset-inline: 1rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); display: grid; justify-items: center; gap: .3rem; text-align: center; pointer-events: none; }
.viewer__name { margin: 0; font-family: var(--sc-font-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: #F3EAD6; text-shadow: 0 1px 12px rgb(0 0 0 / .4); }
.viewer__hint { margin: 0; font-size: var(--sc-t-xs); letter-spacing: .06em; color: rgb(243 234 214 / .72); transition: opacity 600ms ease; }
.viewer.is-touched .viewer__hint { opacity: 0; }
.viewer.is-open.is-zoomed .viewer__caption { opacity: 0; transition-delay: 0s; }
.viewer__btn { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 1rem); min-height: 48px; border-radius: 999px; display: grid; place-items: center;
  color: #F3EAD6; background: rgb(12 16 38 / .42); border: 1px solid rgb(255 255 255 / .24); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  font: 500 var(--sc-t-sm) / 1 var(--sc-font-text); cursor: pointer; transition: background-color 160ms ease, scale 120ms var(--sc-ease-out); }
.viewer__btn:active { scale: .96; }
.viewer__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.viewer__close { inset-inline-end: 1rem; width: 48px; }
.viewer__reset { inset-inline-start: 1rem; padding-inline: 1.1rem; }
.viewer__reset[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .viewer__btn:hover { background: rgb(12 16 38 / .62); } }
.viewer__caption, .viewer__btn { opacity: 0; transition: opacity 280ms ease 260ms, background-color 160ms ease, scale 120ms var(--sc-ease-out); }
.viewer.is-open .viewer__caption, .viewer.is-open .viewer__btn { opacity: 1; }
.viewer.is-closing .viewer__caption, .viewer.is-closing .viewer__btn { transition-delay: 0s; transition-duration: 160ms; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .viewer__gl { transition: opacity 200ms ease; } }
