@font-face { font-family: Archivo Black; src: url("assets/archivo-black.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Instrument Sans; src: url("assets/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --ink: #152536;
  --blue: #243de0;
  --cream: #f7f3ea;
  --ice: #dce7f1;
  --rule: #15253634;
  --muted: #485669;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Instrument Sans", Arial, sans-serif;
  --gutter: clamp(17px, 5vw, 76px);
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.45 var(--body);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
.skip { position: fixed; inset: 12px auto auto 12px; z-index: 5; padding: 9px 12px; color: white; background: var(--blue); transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1450px); margin-inline: auto; }
section { scroll-margin-top: 12px; }
.mast { position: relative; z-index: 1; background: #e9eff5; }
.mast-inner { min-height: 71px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--rule); }
.wordmark { width: fit-content; font: 20px/.85 var(--display); letter-spacing: -.09em; color: var(--ink); }
.wordmark span { display: block; }
.mast nav { display: flex; gap: clamp(15px, 3.1vw, 48px); font-size: 14px; font-weight: 600; }
.mast nav a:hover, .footer > a:last-child:hover { text-decoration: underline; text-underline-offset: 4px; }
.bag-toggle { justify-self: end; background: transparent; border: 1px solid var(--rule); display: flex; align-items: center; gap: 14px; padding: 4px 5px 4px 12px; font-size: 14px; font-weight: 700; }
.bag-toggle:hover { border-color: var(--blue); }
#bag-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding-inline: 4px; background: white; font-variant-numeric: tabular-nums; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg,#e9eff5bd 2%,#e9eff558 38%,transparent 66%), url("assets/studio-set.webp") center / 100% 100% no-repeat #d4e2ee;
}
.hero-grid { min-height: clamp(575px, calc(95svh - 71px), 780px); display: grid; grid-template-columns: .78fr 1.18fr; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding-block: 48px 55px; }
.label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.tasting { color: #30467c; display: flex; align-items: center; gap: 9px; }
.tasting::before { content: ""; height: 1px; width: 26px; background: currentColor; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.082em; line-height: .86; }
.hero h1 { font-size: clamp(79px, 10vw, 164px); margin: 21px 0 28px -.061em; }
.hero h1 span { color: var(--blue); }
.featured { max-width: 365px; border-top: 1px solid var(--rule); padding-top: 12px; }
.featured h2 { font: 700 clamp(19px, 2vw, 30px)/1.08 var(--body); letter-spacing: -.037em; }
#hero-note { margin-top: 6px; color: var(--muted); }
.feature-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.feature-heat, .heat-marks { display: inline-flex; align-items: center; }
.feature-heat { gap: 8px; }
.heat-marks { gap: 3px; }
.heat-marks i { width: 6px; height: 6px; border: 1px solid #526685; border-radius: 50%; }
.heat-marks i[data-filled] { background: #283e74; border-color: #283e74; }
.feature-size { padding-left: 12px; border-left: 1px solid var(--rule); color: var(--muted); line-height: 1; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 17px; margin-top: 19px; }
.hero-buy { display: inline-flex; min-height: 53px; padding: 0; align-items: stretch; border: 1px solid var(--ink); border-radius: 5px; background: var(--cream); color: var(--ink); font-weight: 700; white-space: nowrap; }
.hero-buy-action { display: inline-flex; align-items: center; gap: 9px; padding: 0 12px; font-size: 14px; }
.hero-buy-plus { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: white; }
.hero-buy-plus::before, .hero-buy-plus::after { content: ""; grid-area: 1 / 1; width: 10px; height: 1.5px; background: currentColor; }
.hero-buy-plus::after { rotate: 90deg; }
.hero-buy-price { display: grid; place-items: center; min-width: 69px; padding-inline: 10px; border-left: 1px dashed #15253668; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--sauce-label, #dcdf84) 49%, var(--cream)); font-size: 15px; font-variant-numeric: tabular-nums; }
.hero-buy:hover { background: #fffdf8; }
.hero-buy:hover .hero-buy-plus { background: var(--blue); }
.hero-buy:active { box-shadow: inset 0 0 0 1px var(--ink); }
.hero-actions a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.hero-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.primary { min-height: 49px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 14px; background: var(--blue); color: white; border: 1px solid transparent; font-weight: 700; font-size: 14px; }
.primary:hover:enabled { background: #172ca8; }
.primary:disabled { background: #c2ccdc; color: #384960; }
.primary span { font-size: 19px; line-height: 1; }
.text-action { min-height: 44px; border: 0; border-bottom: 1px solid var(--blue); display: inline-flex; align-items: center; gap: 20px; color: var(--blue); background: transparent; padding: 0; font-weight: 700; }
.text-action:hover { color: #192a94; }

.product-stage { position: relative; min-height: 510px; height: 100%; isolation: isolate; overflow: hidden; }
.stage-plate { position: absolute; z-index: -1; inset: 0; }
.stage-plate::before {
  content: "";
  position: absolute;
  inset: 73% 11% 18% 28%;
  translate: calc(var(--bottle-shadow-x, 0%) * 1.64) 0;
  transform: skewX(-27deg) rotate(-5deg);
  background: radial-gradient(ellipse at 53% 66%, #2c4c685e 16%, transparent 66%);
  filter: blur(10px);
}
.stage-plate::after {
  content: "";
  position: absolute;
  inset: 77.8% 37% 18.9%;
  translate: calc(var(--bottle-shadow-x, 0%) * 3.85) 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #193649aa 0%, #25415744 50%, transparent 72%);
  filter: blur(4px);
}
.bottle-view, .bottle-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.bottle-view { touch-action: pan-y; cursor: grab; visibility: hidden; }
.bottle-view:active { cursor: grabbing; }
.bottle-poster { object-fit: contain; padding: 7% 8%; }
.is-rendered .bottle-view, .is-rendered #box-view { visibility: visible; }
.is-rendered .bottle-poster, .box-display.is-rendered .box-fallback { visibility: hidden; }
.bottle-grab { position: absolute; inset: 7% 22% 16%; cursor: grab; touch-action: none; visibility: hidden; }
.product-stage.is-rendered .bottle-grab { visibility: visible; }
.bottle-grab:active, .product-stage[data-action="held"] .bottle-grab { cursor: grabbing; }
.product-stage[data-action="falling"] .bottle-grab,
.product-stage[data-action="impact"] .bottle-grab,
.product-stage[data-action="broken"] .bottle-grab,
.product-stage[data-action="rebuilding"] .bottle-grab { cursor: default; }
.scene-hint { position: absolute; right: clamp(8px, 2vw, 24px); bottom: clamp(8px, 2vw, 20px); padding: 6px 9px; color: #23364d; background: #edf3f8d9; font-size: 12px; font-weight: 650; pointer-events: none; }
#bottle-hint { border-left: 2px solid #283e74; background: #e9eff3ed; }
.product-stage:has(#bottle-hint:not([hidden])) .bottle-grab:focus-visible,
.food-scene:has(#dish-hint:not([hidden])) canvas:focus-visible { outline: none; }
.product-stage:has(.bottle-grab:focus-visible) #bottle-hint,
.food-scene:has(canvas:focus-visible) #dish-hint { outline: 2px solid var(--ink); outline-offset: 2px; }
.view-tools { position: absolute; z-index: 1; bottom: 20px; right: 0; display: flex; align-items: center; gap: 10px; padding: 3px; background: #e9f0f7e8; border: 1px solid var(--rule); font-size: 12px; font-weight: 650; }
.view-tools button { display: grid; place-items: center; width: 42px; height: 39px; background: #fff8; border: 0; font-size: 19px; }
.view-tools button:hover { background: white; color: var(--blue); }

.flavours { background: #e7edf2; padding-block: clamp(51px, 7.5vw, 110px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 32px; }
.section-head h2, .pairing-copy h2, .box-copy h2 { font-size: clamp(52px, 7.5vw, 108px); }
.section-head > p { max-width: 33ch; color: var(--muted); }
.product-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.product-shelf button { min-width: 0; padding: 0; background: transparent; border: 0; border-right: 1px solid var(--rule); text-align: left; }
.product-shelf button:first-child { border-left: 1px solid var(--rule); }
.product-shelf button[aria-pressed="true"] { box-shadow: inset 0 -3px var(--blue); }
.product-tile { display: grid; place-items: center; background: var(--tile); }
.product-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-shelf button:hover .product-tile { filter: brightness(1.035); }
.product-name { display: block; padding: 13px 12px 15px; font-size: clamp(13px, 1.5vw, 20px); font-weight: 700; line-height: 1.2; }
.product-name small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.flavour-info { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 17px; }
.flavour-info b { font-size: 15px; }
.flavour-info p { color: var(--muted); font-size: 13px; }
.flavour-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 17px; }

.pairings { padding-block: clamp(48px, 8.4vw, 124px); background: var(--cream); }
.pairing-grid { display: grid; grid-template-columns: 1.29fr .77fr; align-items: center; gap: clamp(24px, 6vw, 104px); }
.food-scene { position: relative; min-width: 0; aspect-ratio: 1.25; margin: 0; isolation: isolate; overflow: hidden; border: 1px solid var(--rule); background: radial-gradient(ellipse at 44% 32%, #eff5fb 5%, #c6d5e6 71%, #b5c8dc); }
.dish-unavailable { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; color: var(--ink); font-size: 14px; }
.pairing-copy h2 { margin-bottom: 21px; }
.food-tabs { display: flex; margin-bottom: 20px; border-block: 1px solid var(--rule); }
.food-tabs button { flex: 1; min-height: 44px; background: transparent; border: 0; font-size: 14px; font-weight: 650; }
.food-tabs button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--blue); color: var(--blue); }
.food-tabs button:hover { background: #e7eaf5; }
.pairing-copy h3 { font-size: clamp(19px, 2vw, 28px); letter-spacing: -.055em; }
.pairing-copy p { min-height: 3em; margin: 5px 0 13px; color: var(--muted); }

.box-section {
  padding-block: clamp(45px, 7vw, 100px);
  background: radial-gradient(ellipse at 77% 47%, #eef4fc 0%, #dce7f5 44%, #c6d6eb 100%);
  border-top: 1px solid #a7bbd5;
}
.box-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(18px, 5vw, 70px); align-items: center; }
.box-copy h2 { margin-block: 14px 18px; }
.box-copy > p:not(.label) { max-width: 36ch; color: #334864; }
.box-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 420px; margin-top: 19px; }
.box-options button { min-width: 0; min-height: 44px; padding: 6px 8px; display: flex; align-items: center; justify-content: space-between; gap: 5px; border: 1px solid #839ab9; background: #ebf0f9; font-size: 12px; font-weight: 700; text-align: left; }
.box-options button:hover:enabled { border-color: var(--blue); background: white; }
.box-options button:disabled { opacity: .62; }
.box-options span { color: var(--blue); }
.box-status { margin-block: 12px; font-size: 13px; }
.box-display { position: relative; isolation: isolate; min-width: 0; display: flex; flex-direction: column; }
.box-display::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 62% 6% 14%;
  border-radius: 50%;
  background: #354f6d61;
  filter: blur(25px);
  transform: skewX(-24deg) scaleY(.65);
}
#box-view { width: 100%; height: clamp(234px, 36vw, 580px); visibility: hidden; }
.box-fallback { position: absolute; inset: 12% 2% 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6%; border-bottom: 14px solid #526da3; background: #b3c5dd; }
.box-fallback i { background-color: #d4e0ef; background-position: center; background-size: contain; background-repeat: no-repeat; }
.box-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.box-slots li { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 4px; padding: 4px 6px; border-top: 1px solid #829ab9; color: #3b4c67; font-size: 12px; }
.box-slots button { flex: none; min-width: 33px; min-height: 35px; padding: 0; border: 0; background: transparent; font-size: 21px; }
.box-slots button:hover { color: var(--blue); }

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 20px; padding-block: 22px; }
.footer p, .footer > a:last-child { font-size: 12px; color: var(--muted); }
dialog { max-height: 100dvh; padding: 24px; border: 1px solid var(--rule); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: #1423368b; }
#bag { width: min(460px, 100%); height: 100dvh; max-width: 100%; margin: 0 0 0 auto; }
#order { width: min(450px, calc(100% - 22px)); }
.viewer-dialog { width: min(680px, calc(100% - 24px)); }
.viewer-dialog .bag-head h2 { font: 700 clamp(20px, 3.4vw, 34px)/1.14 var(--body); letter-spacing: -.05em; }
.inspector-model { position: relative; height: min(54svh, 465px); min-height: 215px; background: #dce7f1 url("assets/studio-set.webp") right / 160% 100% no-repeat; }
.inspector-model .view-tools { right: 10px; bottom: 10px; }
#inspector-ingredients { margin-top: 12px; color: var(--muted); font-size: 13px; }
.food-scene.is-rendered::before {
  content: "";
  position: absolute;
  inset: 60% 13% 12% 16%;
  border-radius: 50%;
  background: #31537278;
  filter: blur(19px);
  transform: skew(-18deg) scaleY(.7);
}
.bag-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.bag-head h2 { font-size: clamp(28px, 4vw, 45px); }
.bag-head button { min-width: 44px; min-height: 44px; background: transparent; border: 0; font-size: 29px; }
#bag-items > p, #order > p { padding-block: 13px; color: var(--muted); }
.bag-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.bag-row p { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.bag-row button { background: transparent; border: 0; min-width: 40px; min-height: 40px; padding: 0; font-size: 18px; }
.bag-row button:hover { color: var(--blue); }
.quantity { display: inline-flex; align-items: center; grid-column: 1; width: fit-content; border: 1px solid var(--rule); }
.bag-total { display: flex; justify-content: space-between; padding-top: 15px; }
#checkout-note { margin-block: 10px 14px; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero-buy, .hero-buy-plus { transition: background-color .16s ease; }
  .hero-actions a span { transition: translate .16s ease; }
  .hero-actions a:hover span { translate: 0 3px; }
  .hero-copy { animation: arrive .66s cubic-bezier(.2,.75,.2,1) both; }
  .product-stage { animation: turn-on .8s .08s ease-out both; }
  #bag[open] { animation: drawer .25s ease-out both; }
  @keyframes arrive { from { opacity: .3; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  @keyframes turn-on { from { opacity: .3; filter: brightness(.85); } to { opacity: 1; filter: brightness(1); } }
  @keyframes drawer { from { translate: 100% 0; } to { translate: 0 0; } }
}
@media (max-width: 840px) {
  .mast-inner { min-height: 63px; }
  .hero-grid { min-height: 590px; }
  .hero h1 { font-size: clamp(70px, 12vw, 100px); }
  .product-stage { min-height: 0; }
  .section-head { align-items: start; }
}
@media (max-width: 650px) {
  .mast-inner { grid-template-columns: auto 1fr auto; gap: 8px; }
  .mast nav { justify-content: center; gap: 10px; font-size: 11px; }
  .mast nav a:nth-child(2) { display: none; }
  .bag-toggle { gap: 6px; padding-left: 6px; font-size: 12px; }
  #bag-count { min-width: 23px; height: 24px; }
  .wordmark { font-size: 18px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 0 0; }
  .hero h1 { font-size: clamp(67px, 16.5vw, 104px); margin: 14px 0 17px -.054em; }
  .featured { max-width: 100%; }
  .hero-actions { column-gap: 13px; margin-top: 12px; }
  .product-stage { min-height: 270px; height: clamp(295px, 89vw, 490px); }
  .hero { background: linear-gradient(159deg,#edf3f7,#d6e4ef); }
  .product-stage { background: url("assets/studio-set.webp") right center / 230% 100% no-repeat; }
  .view-tools { bottom: 8px; right: 0; gap: 7px; }
  .view-tools button { width: 37px; height: 35px; }
  .section-head { display: block; margin-bottom: 20px; }
  .section-head > p { margin-top: 14px; }
  .product-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-shelf button:nth-child(3) { border-left: 1px solid var(--rule); }
  .product-shelf button:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .flavour-info { align-items: flex-start; flex-direction: column; }
  .pairing-grid, .box-grid { grid-template-columns: 1fr; }
  .food-scene { aspect-ratio: 1.32; }
  .box-display { grid-row: 2; }
  .footer p { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
