@font-face { font-family: "Bodoni Moda"; src: url(fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(fonts/bodoni-moda-latin-500-normal.woff2) format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url(fonts/jost-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #0d0c0b;
  --silk: #171513;
  --graphite: #36322c;
  --gold: #d6b46a;
  --gold-hi: #f0d79a;
  --text: #ece6da;
  --text-2: #aaa192;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --body: "Jost", "Futura", "Century Gothic", sans-serif;
  --gutter: clamp(1.25rem, 6vw, 7.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--graphite) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--gold); color: var(--ground); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--graphite); border-radius: 999px; border: 3px solid var(--ground); }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
h1, h2, p, dl, dd { margin: 0; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .6rem 1rem; background: var(--gold); color: var(--ground); border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* Stage: the fixed bottle behind every section */
.stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stage__poster, .stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__poster { object-fit: cover; object-position: 72% 50%; transition: opacity 900ms var(--ease); }
.stage__gl { opacity: 0; transition: opacity 900ms var(--ease); }
.is-live .stage__gl { opacity: 1; }
.is-live .stage__poster { opacity: 0; }

/* The gold cord: accent and scroll control */
.cord { position: fixed; left: clamp(.75rem, 2.2vw, 2rem); top: 6.5rem; bottom: 6.5rem; width: 1px; background: var(--graphite); z-index: 5; }
.cord__pull { position: absolute; inset: 0; background: linear-gradient(var(--gold-hi), var(--gold)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.cord__pull::after { content: ""; position: absolute; left: -3px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: scaleY(calc(1 / max(var(--p, 0), .001))); transform-origin: bottom; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem var(--gutter); }
.nav::before { content: ""; position: absolute; inset: 0 0 -2.5rem; background: linear-gradient(var(--ground) 20%, transparent); opacity: .85; z-index: -1; pointer-events: none; }
.nav__mark { font: 500 .9375rem/1 var(--body); letter-spacing: .38em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.nav__links { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--text-2); transition: color 180ms var(--ease); }
.nav__links a:hover { color: var(--gold-hi); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .45rem .45rem .45rem 1.6rem; min-height: 3.25rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: var(--ground);
  font: 500 .875rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgb(214 180 106 / .55);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.btn:not(:has(.btn__icon)) { padding-right: 1.6rem; }
.btn:hover { background: var(--gold-hi); }
.btn:active { transform: scale(.98); }
.btn__icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: rgb(13 12 11 / .12); transition: transform 220ms var(--ease); }
.btn__icon svg { width: 1rem; height: 1rem; }
.btn:hover .btn__icon { transform: translateY(2px); }
.link { color: var(--text); font-size: .9375rem; letter-spacing: .04em; text-decoration-color: var(--gold); }
.link:hover { color: var(--gold-hi); }

/* Hero */
.hero { min-height: 100dvh; display: grid; align-items: center; padding: 7rem var(--gutter) 5rem; }
.hero__copy { max-width: 31rem; }
.hero__title {
  font: italic 400 clamp(4.25rem, 10vw, 6rem)/1.05 var(--display);
  letter-spacing: -.01em; color: var(--text);
  padding-bottom: .1em;
}
.hero__lede { margin-top: 1.25rem; max-width: 31ch; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--text-2); }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

/* Notes */
.note { min-height: 135dvh; display: grid; align-items: center; padding: 6rem var(--gutter); }
.note--right { justify-items: end; }
.note__copy { max-width: 26rem; }
.note h2 { font: italic 400 clamp(3.5rem, 8vw, 6rem)/1.05 var(--display); color: var(--gold); padding-bottom: .08em; }
.note__lead { margin-top: .75rem; font: 500 clamp(1.25rem, 2vw, 1.5rem)/1.35 var(--body); color: var(--text); }
.note__copy p:last-child { margin-top: .9rem; color: var(--text-2); max-width: 34ch; }

/* Lift the cap: one large statement beside the bottle while the cap is off */
.lift { min-height: 165dvh; display: grid; align-items: center; padding: 6rem var(--gutter); }
.lift__copy { max-width: 25rem; }
.lift h2 { font: italic 400 clamp(3.5rem, 8vw, 6rem)/1.02 var(--display); color: var(--gold); padding-bottom: .08em; text-wrap: balance; }
.lift p { margin-top: 1.1rem; color: var(--text-2); max-width: 32ch; }

/* How it wears: a drawn chart, the one data moment on the page */
.wear { min-height: 125dvh; display: grid; align-items: center; padding: 6rem var(--gutter); }
.wear__inner { position: relative; max-width: min(44rem, 58vw); }
.wear__inner::before { content: ""; position: absolute; inset: -4rem -6rem -4rem calc(-1 * var(--gutter)); z-index: -1; background: radial-gradient(closest-side, rgb(13 12 11 / .92), rgb(13 12 11 / .7) 65%, transparent); pointer-events: none; }
.wear h2 { font: italic 400 clamp(2.5rem, 5.4vw, 4.5rem)/1.05 var(--display); color: var(--text); padding-bottom: .08em; }
.wear__read { margin-top: 1rem; color: var(--text-2); max-width: 46ch; }
.chart { margin: 2.25rem 0 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__axis { stroke: #6a6152; stroke-width: 1; }
.chart__tick { stroke: var(--graphite); stroke-width: 1; }
.chart__hour { fill: var(--text-2); font: 400 13px var(--body); letter-spacing: .04em; }
.chart__axislabel { fill: var(--text-2); font: 500 11px var(--body); letter-spacing: .22em; text-transform: uppercase; }
.chart__line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart__line--top { stroke: var(--gold-hi); }
.chart__line--heart { stroke: var(--gold); stroke-width: 3; }
.chart__line--base { stroke: #b39250; stroke-width: 3.5; }
.chart__label { font: italic 400 22px var(--display); }
.chart__label--top { fill: var(--gold-hi); }
.chart__label--heart { fill: var(--gold); }
.chart__label--base { fill: #c7a65f; }
.chart figcaption { margin-top: 1rem; font-size: .875rem; color: var(--text-2); }

/* Bottle facts */
.bottle { min-height: 130dvh; display: grid; align-items: end; padding: 6rem var(--gutter) 18dvh; }
.bottle__copy { max-width: 40rem; }
.bottle h2, .reserve h2 { font: italic 400 clamp(2.5rem, 5.4vw, 4.5rem)/1.08 var(--display); color: var(--text); text-wrap: balance; padding-bottom: .08em; }
.bottle__facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; border-top: 1px solid var(--graphite); padding-top: 1.5rem; }
.bottle__facts dt { font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.bottle__facts dd { margin-top: .5rem; color: var(--text-2); font-size: .975rem; line-height: 1.55; }

.sizes { margin-top: 2rem; display: grid; gap: .7rem; justify-items: start; }
.sizes__label { font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.sizes__opts { display: inline-flex; gap: .3rem; padding: .3rem; border: 1px solid #4a443b; border-radius: 999px; background: rgb(23 21 19 / .85); }
.sizes__btn {
  min-height: 2.75rem; min-width: 5.25rem; padding: 0 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); font: 500 .9375rem/1 var(--body); letter-spacing: .06em;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 160ms var(--ease);
}
.sizes__btn:hover { background: rgb(214 180 106 / .12); }
.sizes__btn:active { transform: scale(.97); }
.sizes__btn[aria-pressed="true"] { background: var(--gold); color: var(--ground); }
.sizes__note { color: var(--text-2); font-size: .9375rem; min-height: 1.5em; }

/* Reserve */
.reserve { min-height: 100dvh; display: grid; align-items: center; padding: 8rem var(--gutter); }
.reserve__copy { max-width: 33rem; }
.reserve__copy > p { margin-top: 1rem; color: var(--text-2); }
.form { margin-top: 2.25rem; display: grid; gap: .6rem; }
.form label { font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.form__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.form input {
  flex: 1 1 14rem; min-height: 3.25rem; padding: 0 1.4rem;
  background: rgb(23 21 19 / .85); color: var(--text);
  border: 1px solid #5a5247; border-radius: 999px;
  font: 400 1rem/1 var(--body);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.form input::placeholder { color: #8d8576; }
.form input:hover { border-color: #7a705f; }
.form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(214 180 106 / .22); }
.form input[aria-invalid="true"] { border-color: #e0876b; }
.form__help { font-size: .875rem; color: var(--text-2); }
.form__msg { min-height: 1.5em; font-size: .9375rem; color: var(--gold-hi); }
.form__msg.is-error { color: #f0a088; }

/* Footer and credit */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 3rem; padding: 3rem var(--gutter) 6.5rem; border-top: 1px solid var(--graphite); background: var(--ground); }
.foot__brand { font: 500 .875rem/1 var(--body); letter-spacing: .38em; text-transform: uppercase; }
.foot__credit { color: var(--text-2); font-size: .9375rem; max-width: 52ch; }
.foot__credit a:hover { color: var(--gold-hi); }
.credit {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 20;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 999px;
  background: rgb(23 21 19 / .88); border: 1px solid #3f3a33; color: var(--text-2);
  font-size: .75rem; letter-spacing: .08em; text-decoration: none;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.credit svg { width: .85rem; height: .85rem; }
.credit:hover { color: var(--gold-hi); border-color: var(--gold); }

/* Entrance: content is visible by default; only hidden once JS has armed it */
.js-motion .note__copy, .js-motion .lift__copy, .js-motion .wear__inner, .js-motion .bottle__copy, .js-motion .reserve__copy {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease), filter 1000ms var(--ease);
}
.js-motion .is-in .note__copy, .js-motion .is-in .lift__copy, .js-motion .is-in .wear__inner, .js-motion .is-in .bottle__copy, .js-motion .is-in .reserve__copy { opacity: 1; transform: none; filter: none; }
.js-motion .chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease) 400ms; }
.js-motion .chart__line--heart { transition-delay: 650ms; }
.js-motion .chart__line--base { transition-delay: 900ms; }
.js-motion .is-in .chart__line { stroke-dashoffset: 0; }
.js-motion .chart__label { opacity: 0; transition: opacity 700ms var(--ease) 1700ms; }
.js-motion .is-in .chart__label { opacity: 1; }

/* Phone: bottle sits in the upper half, copy rides a scrim below it */
@media (max-width: 767px) {
  .nav { padding: 1rem 1.25rem; }
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: .6875rem; letter-spacing: .16em; }
  .nav__mark { font-size: .8125rem; letter-spacing: .3em; }
  .cord { left: auto; right: .6rem; top: 5rem; bottom: 5rem; }
  .stage__poster { object-position: 50% 30%; }
  .hero { align-items: end; padding: 6rem 1.25rem 5.5rem; }
  .hero__copy, .note__copy, .lift__copy, .bottle__copy, .reserve__copy { position: relative; }
  .hero__copy::before, .note__copy::before, .lift__copy::before, .bottle__copy::before, .reserve__copy::before {
    content: ""; position: absolute; inset: -3rem -1.25rem -2rem; z-index: -1;
    background: linear-gradient(transparent, rgb(13 12 11 / .9) 35%, var(--ground));
  }
  .note, .bottle, .lift, .wear { min-height: 120dvh; align-items: end; padding: 6rem 1.25rem calc(8dvh + 4rem); }
  .lift { min-height: 150dvh; }
  .wear__inner { max-width: none; }
  .wear__inner::before { inset: -3rem -1.25rem -2rem; background: linear-gradient(transparent, rgb(13 12 11 / .94) 18%, var(--ground)); }
  .chart__hour { font-size: 15px; }
  .sizes__opts { width: 100%; }
  .sizes__btn { flex: 1; min-width: 0; }
  .note--right { justify-items: start; }
  .bottle__facts { grid-template-columns: 1fr; gap: 1.25rem; }
  .reserve { padding: 6rem 1.25rem; align-items: end; }
  .foot { padding: 2.5rem 1.25rem 5.5rem; }
  .credit { left: 1rem; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .stage__gl { display: none; }
  .stage__poster { opacity: 1 !important; }
}
