/* DV73 MOLTEN CART · FORNACE product page. One theme of its own (warm dark); never follows the OS.
   Sizes follow the 1600×1000 concept through --u = min(1vw, 1.6svh): a value of N px in the concept is calc(var(--u) * N/16). */
:root {
  --u: min(1vw, 1.6svh);
  --ink: #f1e7dc; --ink-2: #c9b8a9; --body: #a8998d; --muted: #8a7b70; --eyebrow: #c58d62; --accent: #ffb97c;
  --page: #1d1411; --page-2: #2a1a14; --line: rgba(241, 231, 220, .16);
  --focus: #ffb97c; --err: #ff8a70;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 90% at 30% 45%, #2b1c16 0%, #22160f 45%, #170f0c 100%); overflow-x: clip; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #1d1411; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* the room: warm light from the molten glass spreads over the right half of the page */
.room { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.room i { position: absolute; inset: 0; }
.r-warm { background: radial-gradient(55% 60% at 70% 64%, rgba(130, 62, 26, .42), rgba(90, 40, 18, .16) 50%, transparent 78%); }
.r-grain { opacity: .05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }

/* ---- nav */
.nav { position: relative; z-index: 10; overflow-x: clip; height: max(56px, calc(var(--u) * 86/16)); display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--u) * 60/16); }
.logo { display: inline-flex; align-items: center; min-height: 44px; font: 600 max(17px, calc(var(--u) * 21/16))/1 'Cormorant Garamond', serif; letter-spacing: .34em; text-decoration: none; }
.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: calc(var(--u) * 40/16); }
.links a { font: 500 max(11px, calc(var(--u) * 12.5/16))/1 'Inter'; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: rgba(241, 231, 220, .62); display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; transition: color .2s; }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.cart-wrap { position: relative; }
.cart { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px 8px 12px; margin-right: -10px;
  border: 0; background: none; border-radius: 22px; font: 500 max(11px, calc(var(--u) * 12.5/16))/1 'Inter'; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(241, 231, 220, .82); transition: color .2s, background-color .2s; }
.cart:hover { color: var(--ink); background: rgba(241, 231, 220, .05); }
.bag { width: 24px; height: 24px; will-change: transform; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.cart.got .bag { animation: bag .6s var(--ease); }
@keyframes bag { 0% { transform: rotate(0); } 25% { transform: rotate(-9deg) translateY(1px); } 55% { transform: rotate(6deg); } 80% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
.badge { position: absolute; right: -9px; top: -7px; width: 30px; height: 30px; display: grid; place-items: center; pointer-events: none; will-change: transform; }
.badge-fx { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); }
.badge b { position: relative; font: 700 12.5px/1 'Inter'; letter-spacing: 0; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 8px rgba(0, 0, 0, .5); }
.badge.pop { animation: pop .55s cubic-bezier(.3, 1.7, .5, 1); }
.badge::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none; opacity: 0; will-change: opacity;
  background: radial-gradient(closest-side, rgba(255, 170, 90, .75), rgba(255, 120, 40, .35) 45%, transparent 100%); }
.badge.pop::after { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { 0% { transform: scale(1.55); } 100% { transform: scale(1); } }
.no-fx .badge::before { content: ''; position: absolute; inset: 1px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #c8bfb6 14%, #5d544d 48%, #1b1715 78%, #8f857c 100%);
  box-shadow: 0 0 14px rgba(255, 140, 50, .45); }

/* mini cart */
.cart-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); padding: 18px 18px 14px; border-radius: 18px;
  background: rgba(36, 25, 20, .9); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(241, 231, 220, .1) inset, 0 24px 60px rgba(0, 0, 0, .55); z-index: 30; text-transform: none; letter-spacing: 0; }
.cart-pop[hidden] { display: none; }
.cp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cp-head h2 { margin: 0; font: 500 24px/1 'Cormorant Garamond', serif; }
.cp-x { width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: none; border-radius: 22px; display: grid; place-items: center; color: var(--ink-2); }
.cp-x:hover { background: rgba(241, 231, 220, .07); color: var(--ink); }
.cp-x svg, .cp-rm svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.cp-list { list-style: none; margin: 0; padding: 0; }
.cp-list li { display: grid; grid-template-columns: 30px 1fr auto 44px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(241, 231, 220, .08); }
.cp-list li.fresh { animation: fresh 1.4s var(--ease); }
@keyframes fresh { 0% { background: rgba(255, 150, 70, .16); } 100% { background: transparent; } }
.cp-dot { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 60%, var(--c3)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.cp-name { font: 500 14px/1.25 'Inter'; } .cp-name small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cp-price { font: 500 14px/1 'Inter'; color: var(--ink-2); }
.cp-rm { width: 44px; height: 44px; border: 0; background: none; border-radius: 22px; display: grid; place-items: center; color: var(--muted); }
.cp-rm:hover { color: var(--ink); background: rgba(241, 231, 220, .07); }
.cp-empty { margin: 14px 0; color: var(--body); font-size: 14px; }
.cp-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 12px; font: 500 14px/1 'Inter'; color: var(--ink-2); }
.cp-foot b { font: 600 18px/1 'Inter'; color: var(--ink); }
.cp-go { width: 100%; min-height: 48px; border: 0; border-radius: 24px; background: var(--ink); color: #22160f; font: 600 13px/1 'Inter'; letter-spacing: .16em; text-transform: uppercase; }
.cp-go:hover { background: #fff; }
.cp-demo { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ---- product */
.pdp { position: relative; z-index: 2; display: grid; grid-template-columns: calc(var(--u) * 656/16) minmax(0, calc(var(--u) * 560/16));
  column-gap: calc(var(--u) * 104/16); align-items: center; padding: 0 calc(var(--u) * 104/16);
  min-height: calc(100svh - var(--u) * 86/16 * 2); margin-top: calc(var(--u) * -4/16); overflow-x: clip; overflow-clip-margin: 0; }
.stage { position: relative; margin: 0; width: 100%; aspect-ratio: 656/680; border-radius: calc(var(--u) * 28/16); overflow: hidden;
  background: #120c0a; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(241, 231, 220, .05); }
.stage canvas, .vase-fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vase-fallback { display: none; }
.no-fx .vase-fx { display: none; } .no-fx .vase-fallback { display: block; }

.info { position: relative; min-width: 0; padding-top: calc(var(--u) * 8/16); }
.eyebrow { margin: 0; font: 600 max(10px, calc(var(--u) * 11/16))/1.2 'Inter'; letter-spacing: .3em; text-transform: uppercase; color: var(--eyebrow); }
h1 { margin: calc(var(--u) * 18/16) 0 calc(var(--u) * 14/16); font: 500 max(42px, calc(var(--u) * 76/16))/.95 'Cormorant Garamond', serif; letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--accent); }
.price { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.price .now { font: 500 max(22px, calc(var(--u) * 26/16))/1 'Inter'; letter-spacing: -.01em; }
.price s { color: var(--muted); font: 400 max(15px, calc(var(--u) * 17/16))/1 'Inter'; }
.desc { margin: calc(var(--u) * 20/16) 0 calc(var(--u) * 28/16); max-width: 30em; font: 400 max(14px, calc(var(--u) * 15.5/16))/1.6 'Inter'; color: var(--body); }
.opts { display: flex; align-items: flex-end; gap: calc(var(--u) * 28/16); margin-bottom: calc(var(--u) * 34/16); }
.lbl { display: block; margin: 0 0 10px; padding: 0; font: 600 max(10px, calc(var(--u) * 10.5/16))/1 'Inter'; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.glass { border: 0; margin: 0; padding: 0; min-width: 0; }
.glass legend { white-space: nowrap; }
.glass-name { color: var(--ink-2); letter-spacing: .12em; margin-left: 6px; }
.sw { display: flex; gap: 2px; margin: -5px -5px; }
.swatch { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 60%, var(--c3));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 3px 8px rgba(0, 0, 0, .35); transition: box-shadow .25s var(--ease), transform .25s var(--ease); pointer-events: none; }
.swatch:hover i { transform: scale(1.06); }
.swatch input:checked + i { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 0 2px #22160f, 0 0 0 3.5px var(--accent); }
.swatch input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 5px; }
.swatch:nth-child(3) i::after { content: ''; position: absolute; width: 1.5px; height: 40px; background: rgba(241, 231, 220, .55); transform: rotate(45deg);
  left: 50%; top: 50%; margin: -20px 0 0 -.75px; border-radius: 1px; }
.qty { display: flex; align-items: center; height: 46px; border-radius: 23px; box-shadow: 0 0 0 1px rgba(241, 231, 220, .18) inset; }
.qty button { width: 46px; height: 46px; border: 0; background: none; border-radius: 23px; display: grid; place-items: center; color: var(--ink); transition: background-color .2s; }
.qty button:hover:not(:disabled) { background: rgba(241, 231, 220, .07); }
.qty button:disabled { color: rgba(241, 231, 220, .28); cursor: default; }
.qty svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.qty input { width: 44px; height: 44px; border: 0; background: none; text-align: center; font: 600 16px/1 'Inter'; padding: 0; border-radius: 8px; }
.qty input:focus-visible { outline-offset: 0; }

/* ---- the molten button */
.buy { position: relative; }
.add-wrap { --bw: clamp(280px, calc(var(--u) * 500/16), 560px); --bh: calc(var(--bw) * 104/500); --m: calc(var(--bh) * 1.05);
  position: relative; width: var(--bw); max-width: 100%; height: var(--bh); }
.spill { position: absolute; left: 50%; top: 50%; width: calc(var(--bw) * 2.2); height: calc(var(--bh) * 6); transform: translate(-50%, -46%); pointer-events: none; will-change: opacity;
  background: radial-gradient(closest-side, rgba(255, 122, 40, .3), rgba(255, 100, 30, .12) 42%, rgba(255, 90, 30, .04) 70%, transparent 100%); opacity: 1; transition: opacity .6s var(--ease); }
.molten-fx { position: absolute; left: calc(var(--m) * -1); top: calc(var(--m) * -1); width: calc(100% + var(--m) * 2); height: calc(100% + var(--m) * 2); pointer-events: none; }
.add { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; padding: 0 24px; border: 0; background: transparent;
  border-radius: calc(var(--bh) / 2); font: 700 max(13px, calc(var(--bw) * 16/500))/1 'Inter'; letter-spacing: .2em; text-transform: uppercase; touch-action: manipulation; }
.add .lab { grid-area: 1 / 1; display: inline-block; white-space: nowrap; will-change: opacity, transform; transition: opacity .35s var(--ease), transform .35s var(--ease), color .5s; }
.lab-add { color: rgba(66, 14, 0, .86); text-shadow: 0 1px 0 rgba(255, 226, 170, .4); }
.lab-busy, .lab-done, .lab-out { opacity: .001; transform: translateY(6px); color: #fff6ec;
  text-shadow: 0 0 2px rgba(50, 12, 0, .9), 0 0 12px rgba(50, 12, 0, .8), 0 1px 1px rgba(0, 0, 0, .6); }
.lab-done svg { width: 1.35em; height: 1.35em; margin-right: .5em; vertical-align: -.33em; filter: drop-shadow(0 0 3px rgba(50, 12, 0, .8)); stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.add[data-state=cooling] .lab-add, .add[data-state=done] .lab-add, .add[data-state=out] .lab-add { opacity: .001; transform: translateY(-6px); }
.add[data-state=cooling] .lab-busy, .add[data-state=done] .lab-done, .add[data-state=out] .lab-out { opacity: 1; transform: none; }
.add[data-state=reheat] .lab-add { color: rgba(66, 14, 0, .86); }
.add[data-state=out] { cursor: not-allowed; }
.add[data-state=out] .lab-out { color: rgba(241, 231, 220, .7); }
.add[data-state=error] .lab-add { color: rgba(40, 0, 0, .9); }
.add:focus-visible { outline: 2px solid var(--focus); outline-offset: calc(var(--bh) * .14); }
.add:active { transform: none; }
.msg { min-height: 1.5em; margin: 14px 0 0; font: 500 13.5px/1.45 'Inter'; color: var(--ink-2); }
.msg.err { color: var(--err); }
.msg:empty { margin-top: 0; min-height: 0; }
.notes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: calc(var(--u) * 22/16) 0 0; padding: 0; font: 400 max(12px, calc(var(--u) * 13/16))/1.35 'Inter'; color: var(--muted); }
.notes b { color: var(--ink-2); font-weight: 500; }

/* no WebGL: a molten glass bar in CSS */
.no-fx .molten-fx { display: none; }
.no-fx .add { background: radial-gradient(60% 70% at 50% 48%, #fff4c8 0%, #ffd06a 26%, #f39226 52%, #b4430d 78%, #5a1a05 100%);
  box-shadow: inset 0 2px 0 rgba(255, 240, 210, .55), inset 0 -10px 22px rgba(80, 20, 0, .55), 0 0 40px rgba(255, 110, 30, .45), 0 0 120px rgba(255, 90, 20, .2); transition: background .6s, box-shadow .6s; }
.no-fx .add[data-state=done], .no-fx .add[data-state=cooling] { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 220, 190, .06) 45%, rgba(255, 255, 255, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px rgba(0, 0, 0, .4); }
.no-fx .add[data-state=out] { background: linear-gradient(180deg, #3a3532, #1a1716); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 30px rgba(0, 0, 0, .4); }
.no-fx .add[data-state=error] { background: radial-gradient(60% 70% at 50% 48%, #ffb0a0 0%, #e0402a 45%, #6a0c05 100%); }

/* the jewel in flight */
.flight { position: fixed; left: 0; top: 0; width: 84px; height: 84px; z-index: 40; pointer-events: none; display: grid; place-items: center; opacity: .001; will-change: transform, opacity; }
.flight.on { opacity: 1; }
.flight canvas { position: absolute; left: 50%; top: 50%; width: 160%; height: 160%; transform: translate(-50%, -50%); }
.flight b { position: relative; font: 700 30px/1 'Inter'; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 14px rgba(0, 0, 0, .45); }
.no-fx .flight::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, #ffe2c4 16%, #c97a3e 50%, #3c1a0a 82%, #e6b48a 100%); box-shadow: 0 0 30px rgba(255, 140, 50, .55); }

/* caption + brandmark */
.cap { position: absolute; z-index: 3; left: calc(var(--u) * 48/16); bottom: calc(var(--u) * 40/16); margin: 0; pointer-events: none; }
.cap p { margin: 0; }
.cap-k { font: 600 max(10.5px, calc(var(--u) * 12/16))/1 'Inter'; letter-spacing: .22em; text-transform: uppercase; color: rgba(241, 231, 220, .55); margin-bottom: 10px !important; }
.cap-t { font: 500 max(15px, calc(var(--u) * 17/16))/1.3 'Inter'; letter-spacing: -.005em; }
.cap-d { font: 400 max(12px, calc(var(--u) * 13/16))/1.45 'Inter'; color: rgba(241, 231, 220, .55); margin-top: 4px !important; }
.brandmark { position: absolute; z-index: 3; right: calc(var(--u) * 48/16); bottom: calc(var(--u) * 40/16); margin: 0; font: 600 11px/1 'Inter'; letter-spacing: .3em; text-transform: uppercase; color: rgba(241, 231, 220, .38); pointer-events: none; }
body { position: relative; }

/* short landscape screens (phones on their side, small laptops): drop the description */
@media (max-height: 560px) and (min-width: 761px) {
  .desc { display: none; }
  .opts { margin-bottom: 16px; }
  .notes { margin-top: 10px; }
  .cap, .brandmark { display: none; }
  .pdp { min-height: calc(100svh - var(--u) * 86/16); }
}

/* ---- phone + portrait tablets: one column */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  :root { --u: 16px; }
  .nav { height: 64px; padding: 0 20px; }
  .links { display: none; }
  .logo { font-size: 19px; }
  .cart { font-size: 12px; }
  .pdp { display: block; min-height: 0; margin: 0 auto; padding: 4px 20px 0; max-width: 620px; }
  .stage { aspect-ratio: auto; height: clamp(190px, 100svh - 400px, min(440px, 116vw)); border-radius: 26px; }
  .info { display: flex; flex-direction: column; padding-top: 0; margin-top: -2px; }
  .info > * { order: 0; } .opts { order: 1; } .buy { order: 2; } .notes { order: 3; } .desc { order: 4; }
  .eyebrow { position: relative; margin-top: -2px; padding-top: 14px; font-size: 10.5px; }
  h1 { font-size: clamp(40px, 11.8vw, 64px); margin: 10px 0 8px; }
  .price { margin-bottom: 0; }
  .price .now { font-size: 24px; }
  .opts { justify-content: space-between; margin: 16px 0 18px; gap: 12px; }
  .lbl { margin-bottom: 8px; }
  .add-wrap { --bw: 100%; --bh: clamp(68px, 21vw, 92px); width: 100%; }
  .add { font-size: clamp(12.5px, 3.6vw, 16px); }
  .spill { width: 150%; }
  .notes { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
  .desc { margin: 22px 0 0; font-size: 15px; }
  .cap { position: relative; left: auto; bottom: auto; padding: 30px 20px 40px; max-width: 620px; margin: 0 auto; }
  .brandmark { display: none; }
}
@media (max-width: 360px) {
  .opts { flex-wrap: wrap; }
  .notes { grid-template-columns: 1fr; }
}

/* reduced motion: no transitions that move; the shader holds still (app.js) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
