/* VULOIR collection showcase: integrated prototype v2. Brand tokens: brand.css. */

@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(214, 168, 108, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-stage); color: var(--c-text);
  font-family: var(--f-sans); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--gutter);
}
.nav-links { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav-link { font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--c-text-muted); padding: 8px 0; transition: color .3s var(--ease); }
.nav-link:hover { color: var(--c-text); }
.wordmark { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; line-height: 1; letter-spacing: var(--wm-tracking); margin-right: calc(-1 * var(--wm-tracking)); }
.wordmark__o { background: linear-gradient(90deg, var(--wm-o-lit) 0 44%, var(--wm-o-shadow) 64%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 30px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: none; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
.menu-icon { display: grid; gap: 6px; width: 22px; }
.menu-icon i { display: block; height: 1px; background: currentColor; }
.menu-icon i:last-child { width: 14px; }

/* ------------------------------------------------------------ showcase layout
   Desktop: three grid rows. The stage takes whatever height the text and the
   selector do not need, so they can never overlap; the script sizes the
   bottles from the stage's measured height. Very short windows scroll. */
.showcase {
  position: relative;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto auto;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  background: var(--c-stage);
  transition: --glow 1s var(--ease);
}
.glow-layer {
  position: absolute; inset: -4%; pointer-events: none;
  background:
    radial-gradient(ellipse 30% 44% at 50% 32%, var(--glow), transparent 72%),
    radial-gradient(ellipse 75% 26% at 50% 62%, rgba(214, 170, 112, 0.05), transparent 70%);
  will-change: transform;
}

/* ------------------------------------------------------------ stage + bottles */
.stage {
  position: relative; z-index: 1;
  touch-action: pan-y pinch-zoom;        /* vertical scroll and zoom stay with the browser */
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.stage.is-dragging { cursor: grabbing; }
.reduce-motion .stage, .no-drag .stage { cursor: default; }
.stage__track { position: absolute; inset: 0; }

.bottle {
  position: absolute; left: 50%;
  top: calc(var(--floor, 60%) - 0.81 * var(--bh, 100px));
  height: var(--bh, 100px); aspect-ratio: 4 / 5;
  margin-left: calc(var(--bh, 100px) * -0.4);
  transform-origin: 50% 81%;          /* the bottle's base line */
  will-change: transform, filter, opacity;
  pointer-events: none;
}
.bottle::before {
  content: ""; position: absolute; inset: 14% 6% 10%; z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 55%, var(--aura), transparent 70%);
}
.bottle img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
/* Cropped turn frames sit exactly where they were in the full 500x625 frame. */
.bottle canvas { position: absolute; display: block; }
.bottle__hit {
  position: absolute; left: 28%; width: 44%; top: 16%; height: 68%;
  pointer-events: auto; cursor: pointer; border: 0; padding: 0; background: none;
}
.bottle.is-centre .bottle__hit { cursor: inherit; }
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 20; pointer-events: none;
  top: calc(var(--floor, 60%) + 6px); height: 11vh;
  background: linear-gradient(to bottom, transparent, var(--c-stage) 88%);
}

/* ------------------------------------------------------------ copy */
.copy {
  position: relative; z-index: 25;
  display: grid; justify-items: center; text-align: center;
  padding: 1.2vh var(--gutter) 0;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .75rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--c-text-muted); }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; margin: 0 4px; background: var(--c-accent); }
.name {
  margin: .1em 0 .08em; max-width: 16ch;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.75rem, min(11vh, 9vw), 8rem); line-height: 1; letter-spacing: .01em;
  text-wrap: balance;
}
.notes { margin: 0; max-width: 62ch; font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-text-muted); text-wrap: balance; }
.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 30px; margin-top: 2.6vh; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-width: 290px; min-height: 52px; padding: 0 32px;
  background: var(--c-text); color: var(--c-bg-deep);
  font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .35s var(--ease);
}
.btn:hover { background: var(--c-accent); }
.btn svg { width: 18px; height: 10px; flex: none; }
.price-link { padding: 10px 0; font-size: .9375rem; background: linear-gradient(var(--c-accent), var(--c-accent)) left calc(100% - 6px) / 100% 1px no-repeat; }
.price-link span { color: var(--c-text-muted); }

/* ------------------------------------------------------------ selector bar */
.selector-bar {
  position: relative; z-index: 25;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.8vh var(--gutter) 22px;
}
.counter { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); color: var(--c-text-muted); }
.counter strong { font-weight: 400; font-size: 1.75rem; color: var(--c-text); min-width: 1.4em; }
.counter i { width: 40px; height: 1px; background: var(--c-line); }
.selector { display: flex; align-items: center; gap: 8px; }
.arrow { width: 44px; height: 44px; flex: none; border: 1px solid var(--c-line); border-radius: 50%; background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--c-text-muted); transition: color .3s var(--ease), border-color .3s var(--ease); }
.arrow:hover { color: var(--c-text); border-color: rgba(236, 230, 219, .4); }
.arrow svg { width: 16px; height: 10px; }
.tabs-viewport { margin: 0 14px; }
.tabs { display: flex; gap: 6px; }
.tab { position: relative; flex: none; padding: 14px 14px 12px; border: 0; background: none; cursor: pointer; font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--c-text-muted); transition: color .4s var(--ease); }
.tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--c-accent); transform: scaleX(0); transition: transform .5s var(--ease); }
.tab:hover, .tab[aria-selected="true"] { color: var(--c-text); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.demo-badge { justify-self: end; margin: 0; padding: 7px 12px; border: 1px solid var(--c-line); border-radius: 999px; font-size: .6875rem; letter-spacing: .06em; color: var(--c-text-muted); }

/* ------------------------------------------------------------ misc */
.after { max-width: 760px; margin: 0 auto; padding: 120px 24px 160px; border-top: 1px solid var(--c-line); }
.after__kicker { margin: 0; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--c-accent); }
.after__title { margin: 14px 0 18px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; }
.after__text, .after__list { color: var(--c-text-muted); max-width: 62ch; }
.after__list { padding-left: 1.1em; }
.after__list li { margin: 8px 0; }
.hud { position: absolute; left: 16px; top: 84px; z-index: 40; padding: 8px 10px; background: rgba(0, 0, 0, .55); border: 1px solid var(--c-line); font: 500 12px/1.5 ui-monospace, Consolas, monospace; color: var(--c-accent); white-space: pre; }
.bottle__note { display: none; }
.annotate .bottle__note { display: block; position: absolute; left: 50%; top: 9%; transform: translateX(-50%); padding: 4px 8px; background: #c8b27e; color: #0b0a09; white-space: nowrap; font: 600 10px/1.3 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------------ mobile */
@media (max-width: 760px) {
  .site-header { padding: 12px 20px; }
  .nav-links, .header-actions .nav-link { display: none; }
  .menu-btn { display: inline-flex; margin: -10px; }
  .wordmark { font-size: 1.1875rem; }

  .showcase {
    display: flex; flex-direction: column; align-items: center;
    height: auto; min-height: 100svh; padding: 56px 20px 16px;
  }
  .stage { flex: none; width: calc(100% + 40px); height: 51svh; margin: 0 -20px; }
  .stage::after { top: auto; bottom: -3svh; height: 10svh; background: linear-gradient(to bottom, transparent, rgba(15, 13, 11, .88) 50%, transparent); }
  .copy, .selector-bar { display: contents; }
  .eyebrow { order: 1; position: relative; z-index: 25; margin-top: 1.2svh; font-size: .6875rem; letter-spacing: .22em; }
  .eyebrow::before, .eyebrow::after { width: 20px; }
  .name { order: 2; font-size: clamp(2.6rem, 13vw, 3.75rem); margin: .12em 0 .1em; }
  .notes { order: 3; font-size: .6875rem; letter-spacing: .16em; }
  .selector { order: 4; width: calc(100% + 40px); margin: 1.6svh -20px 0; justify-content: center; }
  .actions { order: 5; width: 100%; margin-top: 2svh; display: grid; gap: 2px; justify-items: center; }
  .demo-badge { order: 6; margin: 6px 0 0; border: 0; padding: 0; justify-self: center; }
  .counter, .arrow { display: none; }
  .tabs-viewport {
    width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24%, #000 76%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 24%, #000 76%, transparent);
  }
  .tabs-viewport::-webkit-scrollbar { display: none; }
  .tabs { gap: 0; padding: 0 calc(50% - 60px); width: max-content; }
  .tab { padding: 12px 14px 10px; font-size: .6875rem; }
  .btn { width: 100%; min-width: 0; }
  .after { padding: 80px 20px 120px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .stage { height: 44svh; }
  .name { font-size: 2.6rem; }
  .selector { margin-top: .6svh; }
  .actions { margin-top: 1.2svh; }
  .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase, .tab, .tab::after, .nav-link, .btn, .arrow { transition: none; }
}
.reduce-motion .showcase, .reduce-motion .tab, .reduce-motion .tab::after { transition: none; }
