/* BWI — bottle studio. A warm photo sweep, one bottle, the ink sets the accent. */
:root {
  --sweep-1: #f2efea;
  --sweep-2: #ebe8e2;
  --sweep-3: #d8d3ca;
  --text: #151515;
  --text-2: #4e4a45;
  --text-3: #79736b;
  --panel: rgba(250, 248, 244, .72);
  --line: rgba(21, 21, 21, .12);
  --ink: #2a56aa;
  --ink-text: #fff;
  --ink-soft: color-mix(in oklab, var(--ink) 18%, var(--sweep-1));

  --display: 'Syne', 'Inter Tight', system-ui, sans-serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --bn: 'Anek Bangla', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
body {
  margin: 0; color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
  background: radial-gradient(120% 80% at 50% 38%, var(--sweep-1) 0%, var(--sweep-2) 45%, var(--sweep-3) 100%) fixed, var(--sweep-2);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--ink-text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 99px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }

/* the bottle stage sits between the hero title and everything else */
.stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage.no-gl { display: grid; place-items: center; }
.stage.no-gl img { width: min(46vw, 420px); mix-blend-mode: multiply; }
main > *, .foot, .top { position: relative; z-index: 2; }
main > .hero { z-index: auto; }
.hero__foot { position: relative; z-index: 2; }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--text); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.pill:active { transform: scale(.97); }
.pill--dark { background: var(--text); color: #fff; }
.pill--dark:hover { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.pill--ink { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.pill--ink:hover { background: var(--text); border-color: var(--text); color: #fff; }
.pill--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.pill[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* ---------- top ---------- */
.top { position: fixed; inset: 0 0 auto; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); background: linear-gradient(var(--sweep-1) 55%, color-mix(in srgb, var(--sweep-1) 0%, transparent)); }
.brand { display: inline-flex; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.top__nav { margin-left: auto; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top__nav a { padding: 10px 16px; border-radius: 99px; font-size: 14px; text-decoration: none; transition: background-color .25s; }
.top__nav a:hover { background: rgba(21,21,21,.07); }
@media (max-width: 760px) { .top__nav { display: none; } .brand img { height: 38px; } .top .pill { margin-left: auto; min-height: 40px; } }

/* ---------- headings ---------- */
.h2 { font: 800 clamp(40px, 1.6rem + 4vw, 96px)/.95 var(--display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 90px var(--gutter) 28px; position: relative; }
.hero__title { position: relative; z-index: 0; margin: 0; align-self: center; font: 800 clamp(64px, 1rem + 12.5vw, 250px)/.86 var(--display); letter-spacing: -.055em; display: grid; }
.hero__title span:first-child { justify-self: start; }
.hero__title span:last-child { justify-self: end; text-align: right; }
.hero.ready .hero__title span { animation: rise 1.2s var(--ease) both; }
.hero.ready .hero__title span:last-child { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(.18em); } }
.hero__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.hero__lede { margin: 0; max-width: 32ch; color: var(--text-2); font-size: 16px; }
.hero__bn { display: block; font: 600 18px/1.3 var(--bn); color: var(--text); margin-top: 6px; }
.picker { display: flex; gap: 8px; padding: 8px; border-radius: 99px; background: var(--panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.swatch { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; transition: transform .35s var(--ease); }
.swatch::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--text); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s var(--ease); }
.swatch:hover { transform: translateY(-3px); }
.swatch[aria-checked="true"]::after { opacity: 1; transform: none; }
.now { justify-self: end; text-align: right; display: grid; justify-items: end; gap: 6px; }
.now p { margin: 0; }
.now__name { font: 700 26px/1 var(--display); letter-spacing: -.02em; }
.now__bn { font: 600 18px/1 var(--bn); color: var(--text-3); margin-left: 4px; }
.now__meta { color: var(--text-3); margin-bottom: 8px !important; }
@media (max-width: 900px) {
  .hero { grid-template-rows: auto 1fr; }
  .hero__foot { align-self: end; }
  .hero__title { align-self: start; margin-top: 20px; }
  .hero__foot { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
  .picker { order: -1; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 26px; }
  .picker::-webkit-scrollbar { display: none; }
  .swatch { flex: none; }
  .now { justify-self: stretch; text-align: left; justify-items: start; grid-template-columns: 1fr auto; align-items: end; }
  .now__meta { grid-row: 2; }
  .now .pill { grid-row: 1 / 3; grid-column: 2; }
  .hero__lede { display: none; }
}

/* ---------- chapters: copy on one side, the bottle on the other ---------- */
.chapter { min-height: 110svh; display: grid; align-items: center; padding: 120px var(--gutter); }
.chapter__copy { width: min(560px, 46vw); }
.chapter--right .chapter__copy { justify-self: end; }
.chapter__copy > p { color: var(--text-2); font-size: clamp(17px, .3vw + 15px, 19px); margin: 24px 0 0; max-width: 46ch; }
.ticks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 2px; }
.ticks li { display: grid; gap: 2px; padding: 16px 20px; border-radius: 18px; background: var(--panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ticks li::before { content: ''; width: 22px; height: 4px; border-radius: 2px; background: var(--ink); margin-bottom: 8px; transition: background-color .6s; }
.ticks span { color: var(--text-2); font-size: 15px; }
.swab { margin-top: 34px; height: 240px; border-radius: 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 18px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 38%, #fbf8f2) 0%, color-mix(in oklab, var(--ink) 70%, #fbf8f2) 55%, var(--ink) 88%, color-mix(in oklab, var(--ink) 85%, #000) 100%), #fbf8f2;
  box-shadow: inset 0 0 0 10px #fbf8f2; transition: background .8s; }
.swab span { color: #fff; mix-blend-mode: difference; }
.swab span:first-child { color: var(--text-2); mix-blend-mode: normal; }
@media (max-width: 900px) {
  .chapter { min-height: 0; padding: 70vh var(--gutter) 90px; }
  .chapter__copy { width: auto; padding: 26px 22px; border-radius: 26px; background: var(--panel); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .ticks li { background: rgba(255,255,255,.5); }
}

/* ---------- range ---------- */
.range { min-height: 100svh; padding: 140px var(--gutter) 120px; text-align: center; }
.range__title { max-width: 14ch; margin-inline: auto; }
.names { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: 1fr minmax(240px, 30vw) 1fr; grid-auto-flow: dense; row-gap: 2px; }
.names li:nth-child(odd) { grid-column: 1; text-align: left; }
.names li:nth-child(even) { grid-column: 3; text-align: right; }
.names button { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 700 clamp(22px, .8rem + 1.6vw, 40px)/1.05 var(--display); letter-spacing: -.03em; color: var(--text-3); transition: color .25s; display: inline-flex; align-items: baseline; gap: .4em; }
.names button small { font: 400 13px/1 var(--mono); letter-spacing: 0; color: var(--text-3); }
.names button:hover, .names button[aria-pressed="true"] { color: var(--text); }
.names button[aria-pressed="true"]::before { content: ''; width: .5em; height: .5em; border-radius: 50%; background: var(--ink); align-self: center; }
.range__hint { color: var(--text-3); margin-top: 40px; }
@media (max-width: 900px) {
  .names { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .names li:nth-child(odd) { grid-column: 1; } .names li:nth-child(even) { grid-column: 2; }
  .names button { font-size: 22px; }
  .names button small { display: none; }
}

/* ---------- story ---------- */
.story__photo { margin: 34px 0 0; width: min(280px, 60%); border-radius: 22px; overflow: hidden; }
.story__photo img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* ---------- set builder ---------- */
.set { padding: 140px var(--gutter); }
.set__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.set__head p { margin: 0; color: var(--text-2); max-width: 30ch; }
.set__panel { margin-top: 46px; display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slot { position: relative; aspect-ratio: .9; border-radius: 28px; background: var(--panel); border: 1.5px dashed rgba(21,21,21,.18); display: grid; place-items: center; overflow: hidden; transition: border-color .3s, background-color .3s; }
.slot.full { border-style: solid; border-color: transparent; background: rgba(255,255,255,.66); }
.slot img { width: 86%; height: 78%; object-fit: contain; mix-blend-mode: multiply; animation: drop .7s var(--ease) both; }
@keyframes drop { from { transform: translateY(-30%) rotate(-6deg); opacity: 0; } }
.slot__n { position: absolute; left: 16px; top: 14px; color: var(--text-3); }
.slot__x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(21,21,21,.07); cursor: pointer; font-size: 18px; line-height: 1; }
.slot__x:hover { background: var(--text); color: #fff; }
.slot__name { position: absolute; left: 16px; bottom: 14px; font: 700 17px/1 var(--display); }
.set__sum { border-radius: 28px; background: var(--text); color: #fff; padding: 26px; display: grid; align-content: space-between; gap: 22px; }
.set__sum p { margin: 0; }
.set__sum .mono { color: #b9b3aa; }
.set__total { display: grid; gap: 8px; font: 800 clamp(44px, 4vw, 64px)/1 var(--display); letter-spacing: -.03em; }
.set__total .mono { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.set__sum .pill--dark { background: #fff; color: var(--text); border-color: #fff; }
.set__sum .pill--dark:hover { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.shelf { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.shelf button { width: 100%; border: 0; border-radius: 22px; background: rgba(255,255,255,.5); padding: 12px 8px 14px; cursor: pointer; display: grid; justify-items: center; gap: 8px; transition: background-color .3s, transform .4s var(--ease); }
.shelf button:hover { background: #fff; transform: translateY(-4px); }
.shelf img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.shelf b { font: 600 14px/1.1 var(--sans); }
.shelf .mono { font-size: 12px; color: var(--text-3); }
@media (max-width: 900px) {
  .set__panel { grid-template-columns: 1fr; }
  .slots { gap: 8px; } .slot { border-radius: 20px; } .slot__name { font-size: 13px; left: 10px; bottom: 10px; } .slot__n { left: 10px; top: 10px; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}

/* ---------- credit ---------- */
.meter { margin-top: 34px; padding: 26px; border-radius: 28px; background: var(--panel); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.meter p { margin: 0; }
.meter__big { font: 800 clamp(64px, 6vw, 108px)/.9 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.meter__big small { font-size: .35em; margin-left: .15em; letter-spacing: 0; }
.meter .mono { color: var(--text-2); margin-top: 10px !important; }
.meter__ctl { display: grid; gap: 14px; margin-top: 24px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p, 20%), rgba(21,21,21,.12) var(--p, 20%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--text); box-shadow: 0 4px 10px rgba(0,0,0,.15); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--text); }

/* ---------- field ---------- */
.field { padding: 120px 0; }
.field__title { padding-inline: var(--gutter); }
.marquee { margin-top: 46px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: max-content; animation: slide 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee img { width: clamp(180px, 20vw, 280px); aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

/* ---------- club ---------- */
.club { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 140px var(--gutter) 90px; }
.club p { margin: 0 0 22px; color: var(--text-2); max-width: 34ch; }
.club > div, .club > p { margin-top: auto; }

/* ---------- foot ---------- */
.foot { background: var(--text); color: #f2efea; padding: clamp(70px, 9vw, 130px) var(--gutter) 30px; display: grid; grid-template-columns: 1fr auto; gap: 50px; border-radius: 36px 36px 0 0; }
.foot__big { margin: 0; font: 800 clamp(40px, 1rem + 5vw, 104px)/.95 var(--display); letter-spacing: -.04em; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: end; }
.foot__links a { text-decoration: none; color: #c9c3b9; }
.foot__links a:hover { color: #fff; }
.foot__note { grid-column: 1 / -1; color: #8f897f; border-top: 1px solid #2c2a27; padding-top: 18px; margin: 0; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* reveal */
.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }
