@font-face { font-family: 'EB Garamond'; src: url(vendor/fonts/eb-garamond-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url(vendor/fonts/eb-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url(vendor/fonts/eb-garamond-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(vendor/fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(vendor/fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --peat: #1D2321; --peat2: #262E2B; --mist: #5E6B63; --fog: #B7BDB4; --copper: #B8743A; --cream: #E7DCC6;
  --copper-lit: #D08B4C;
  --m: clamp(16px, 2.6vw, 40px);
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--peat); -webkit-text-size-adjust: 100%; }
body { background: var(--peat); color: var(--cream); font: 400 17px/1.5 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.012em; }
:focus-visible { outline: 2px solid var(--copper-lit); outline-offset: 3px; }
::selection { background: var(--copper); color: var(--peat); }
body.locked { overflow: hidden; }

.btn { display: inline-block; padding: 9px 18px; background: var(--copper); color: var(--peat); font-weight: 500; font-size: 15px; text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.btn:hover { background: var(--copper-lit); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 14px 26px; font-size: 17px; }

.bar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px var(--m); color: var(--peat); }
.bar-note { font-size: 15px; }
.bar nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.bar nav a:not(.btn) { text-decoration: underline transparent; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.bar nav a:not(.btn):hover { text-decoration-color: currentColor; }

.prog { position: fixed; z-index: 30; left: 0; bottom: 0; width: 100%; height: 3px; pointer-events: none; }
.prog-fill { position: absolute; inset: 0; background: var(--copper); transform: scaleX(0); transform-origin: 0 50%; }
.prog-label { position: absolute; right: calc(var(--m) + 196px); bottom: 11px; padding: 9px 12px; font-size: 14px; line-height: 22px; color: var(--cream); background: var(--peat2); white-space: nowrap; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--fog); }
.hero-paint { position: absolute; inset: -3%; will-change: transform; }
.hero-paint img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.name { position: absolute; z-index: 5; left: var(--m); right: var(--m); top: clamp(56px, 8.4vh, 84px); display: flex; justify-content: space-between; font-size: 14.4vw; line-height: .86; font-weight: 400; letter-spacing: -.02em; text-transform: uppercase; color: var(--peat); white-space: nowrap; }
.mask { display: block; overflow: hidden; padding: .04em .02em 0; margin: -.04em -.02em 0; }
.mask > span { display: block; transition: transform 1.3s var(--ease) .15s; }
body.gated .mask > span { transform: translateY(104%); }

.fog { position: absolute; left: -6%; right: -6%; pointer-events: none; will-change: transform; }
.fog i { display: block; width: 200%; height: 100%; background-repeat: repeat-x; background-size: 50% 100%; animation: drift linear infinite; }
.f3 { z-index: 2; top: 36%; height: 40%; opacity: .55; } .f3 i { animation-duration: 150s; }
.f2 { z-index: 3; top: 46%; height: 44%; opacity: .6; } .f2 i { animation-duration: 95s; animation-direction: reverse; }
.f1 { z-index: 6; top: 62%; height: 46%; opacity: .5; } .f1 i { animation-duration: 60s; }
@keyframes drift { to { transform: translateX(-50%); } }

.smoke { position: absolute; z-index: 4; width: 34px; height: 130px; transform: translate(-50%, -100%); pointer-events: auto; }
.smoke svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.smoke path { stroke: var(--cream); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; opacity: .75; transition: stroke-dashoffset 2.4s ease, opacity 1.4s ease 1.4s; }
.smoke:hover path, .smoke.lit path { stroke-dashoffset: 0; }

.hero-foot { position: absolute; z-index: 7; left: var(--m); right: var(--m); bottom: 76px; display: grid; grid-template-columns: 1fr 26em auto; gap: 16px 40px; align-items: end; color: var(--cream); }
.hook { font: 400 clamp(30px, 3.5vw, 52px)/1.05 var(--serif); }
.hero-sub { font-size: 18px; }

/* three */
.three { height: 280vh; position: relative; background: var(--peat); }
.three-stage { position: sticky; top: 0; height: 100svh; display: flex; overflow: hidden; }
.pan { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.pan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pan figcaption { position: absolute; left: var(--m); bottom: clamp(44px, 8vh, 72px); font: 400 clamp(38px, 4.6vw, 68px)/1 var(--serif); color: var(--cream); text-shadow: 0 1px 14px rgba(20, 26, 24, .6); }
.three-text { position: absolute; top: clamp(24px, 6vh, 64px); left: var(--m); max-width: 25em; color: var(--cream); padding: 18px 22px 20px; background: var(--peat); }
.three-text p { margin-top: 8px; }

/* walk */
.walk { height: 620vh; position: relative; background: var(--peat); }
.walk-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--peat); }
.track { --w: max(100vw, 860px); position: absolute; left: 0; bottom: 64px; display: flex; width: calc(var(--w) * 5); will-change: transform; }
.st { flex: 0 0 var(--w); }
.st svg { width: 100%; height: auto; overflow: visible; }
.pipe, .ln path { stroke: var(--copper); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: var(--d, 1); }
.pipe { stroke-width: 3.5; }
.grain path { stroke: var(--cream); stroke-width: 2.5; stroke-linecap: round; }
.steam path { stroke: var(--fog); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 26 200; animation: steam 3.4s linear infinite; }
.steam path:nth-child(2) { animation-delay: -1.2s; } .steam path:nth-child(3) { animation-delay: -2.2s; }
@keyframes steam { from { stroke-dashoffset: 86; opacity: 0; } 30% { opacity: .9; } to { stroke-dashoffset: -60; opacity: 0; } }
.rake path { stroke: var(--cream); stroke-width: 3; stroke-linecap: round; transform-origin: 720px 440px; transform-box: view-box; animation: rake 5s ease-in-out infinite alternate; }
@keyframes rake { from { transform: scaleX(1); } to { transform: scaleX(-1); } }
.liquor path { stroke: var(--copper-lit); stroke-width: 2.5; stroke-linecap: round; }
.bub circle { stroke: var(--cream); stroke-width: 2.5; animation: bub 4s linear infinite; }
.bub circle:nth-child(2n) { animation-duration: 3.1s; animation-delay: -1s; } .bub circle:nth-child(3n) { animation-duration: 5.2s; animation-delay: -2.4s; }
@keyframes bub { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(-210px); opacity: 0; } }
.fire { stroke: var(--copper-lit); stroke-width: 2.5; stroke-linejoin: round; animation: fire 1.3s ease-in-out infinite alternate; transform-origin: 50% 590px; transform-box: view-box; }
@keyframes fire { to { transform: scaleY(.84); } }
.drip { fill: var(--cream); animation: drip 2.2s cubic-bezier(.6, 0, 1, .6) infinite; }
@keyframes drip { 0%, 55% { transform: translateY(-30px) scale(.3); opacity: 0; } 60% { opacity: 1; transform: translateY(-30px); } 92% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
#caskFill { transition: y .9s var(--ease), height .9s var(--ease), fill .9s; }
.st:not(.on) .steam path, .st:not(.on) .bub circle, .st:not(.on) .rake path, .st:not(.on) .fire, .st:not(.on) .drip { animation-play-state: paused; }

.caps { position: absolute; z-index: 3; top: clamp(32px, 7vh, 72px); left: var(--m); width: min(30em, calc(100vw - 2 * var(--m))); height: 15em; }
.cap { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .45s, transform .6s var(--ease), visibility .45s; }
.cap.on { opacity: 1; visibility: visible; transform: none; }
.cap p { margin-top: 10px; }
.clock { position: absolute; z-index: 3; left: var(--m); right: calc(var(--m) + 380px); bottom: 22px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.clock p { display: flex; gap: 12px; align-items: baseline; font-size: 15px; white-space: nowrap; }
.clock strong { font: 400 22px/1 var(--serif); color: var(--cream); font-feature-settings: 'onum'; min-width: 11em; }
.clock-bar { height: 4px; background: var(--peat2); }
.clock-bar i { display: block; height: 100%; background: var(--copper); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }

.mature { position: absolute; z-index: 4; top: clamp(32px, 7vh, 72px); right: var(--m); width: min(560px, 42vw); display: grid; grid-template-columns: 170px 1fr; gap: 12px 28px; align-items: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), visibility .5s; }
.mature.on { opacity: 1; visibility: visible; transform: none; }
.glassln { stroke: var(--cream); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#dram { transition: fill .9s; }
.age { font: 400 clamp(38px, 4.6vw, 68px)/1 var(--serif); font-feature-settings: 'onum'; }
.notes { font: italic 400 24px/1.2 var(--serif); margin-top: 8px; color: var(--cream); }
.share { font-size: 15px; margin-top: 8px; }
.slide { grid-column: 1 / -1; display: block; font-size: 15px; }
.slide input { display: block; width: 100%; height: 44px; margin: 0; appearance: none; background: none; cursor: pointer; }
.slide input::-webkit-slider-runnable-track { height: 3px; background: var(--copper); }
.slide input::-moz-range-track { height: 3px; background: var(--copper); }
.slide input::-webkit-slider-thumb { appearance: none; width: 30px; height: 30px; margin-top: -14px; border-radius: 50%; background: var(--cream); border: 0; transition: transform .2s; }
.slide input::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--cream); border: 0; }
.slide input:active::-webkit-slider-thumb { transform: scale(1.15); }
.ticks { display: flex; justify-content: space-between; margin-top: -4px; }
.ticks b { font: 400 20px/1 var(--serif); font-feature-settings: 'onum'; }

/* bottle */
.bottle { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(80px, 13vh, 150px) var(--m); min-height: 100svh; background: var(--peat); }
.b-show { position: relative; display: flex; justify-content: center; align-items: flex-end; height: min(82vh, 760px, 44vw); overflow: clip; }
.b-img { position: relative; height: 100%; aspect-ratio: 2 / 3; margin: 0 -5%; background: var(--peat); transition: transform .8s var(--ease), opacity .6s; }
.b-img img { width: 100%; height: 100%; }
.b-img:not(.on) { transform: scale(.76) translateY(12%); opacity: .55; transform-origin: 50% 100%; }
/* blank paper on the bottle: position set to match the bottle image */
.lab { --top: 44.1%; --h: 27%; position: absolute; top: var(--top); height: var(--h); left: 27%; width: 46%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--peat); font-family: var(--serif); line-height: 1.05; container-type: inline-size; }
.lab b { font-weight: 500; font-size: 11cqw; text-transform: uppercase; letter-spacing: .08em; }
.lab b { padding-bottom: 3cqw; border-bottom: 1px solid var(--copper); width: 86%; }
.lab i { font-size: 7.4cqw; margin-top: 2cqw; } /* taste-skill-ignore: the fine rule on the bottle label is in the brief */
.lab em { font-style: normal; font-size: 34cqw; line-height: .95; font-feature-settings: 'onum'; color: var(--copper); }
.lab span { font-variant: small-caps; font-size: 8.4cqw; letter-spacing: .06em; }
.lab u { text-decoration: none; font-size: 6.6cqw; margin-top: 2cqw; font-feature-settings: 'onum'; }
.b-form { max-width: 34em; }
.b-form > p { margin-top: 12px; }
fieldset { border: 0; padding: 0; margin-top: 26px; }
legend { padding: 0; font: italic 400 20px/1.2 var(--serif); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 11px 16px; min-height: 44px; background: var(--peat2); transition: background .2s, color .2s, transform .2s var(--ease); }
.chip span { opacity: .8; margin-left: 6px; }
.chip:hover { transform: translateY(-2px); background: #323C38; }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--peat); }
.b-form > .btn { margin-top: 30px; }
.done { margin-top: 28px; padding: 22px 24px; background: var(--cream); color: var(--peat); outline: none; animation: rise .6s var(--ease); }
.done h3 { font-size: 30px; line-height: 1.1; font-feature-settings: 'onum'; }
.done p { margin-top: 8px; }
.done .quiet { font-size: 14px; margin-top: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* questions */
.q { padding: clamp(70px, 12vh, 150px) var(--m); background: var(--peat2); display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.q dl > div { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 40px; padding: 22px 0; }
.q dt { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--serif); }
.q dd { margin: 0; }

/* foot */
.foot { position: relative; min-height: 100svh; overflow: hidden; display: flex; background: var(--peat); }
.foot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foot-in { position: relative; background: linear-gradient(to top, rgba(20, 26, 24, .55), transparent 30%); display: flex; flex-direction: column; justify-content: space-between; width: 100%; padding: clamp(50px, 9vh, 100px) var(--m) 54px; }
.foot-line { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--serif); max-width: 24em; }
.foot-name { margin-top: auto; font: 400 14.4vw/.86 var(--serif); letter-spacing: -.02em; text-transform: uppercase; display: flex; justify-content: space-between; white-space: nowrap; word-spacing: 0; }
.foot-small { margin-top: 18px; display: flex; justify-content: space-between; gap: 18px; font-size: 15px; flex-wrap: wrap; padding-right: 220px; }

/* facts */
.scene { transition: opacity .5s; }
body.factson .scene { opacity: 0; pointer-events: none; }
.facts { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: var(--cream); color: var(--peat); animation: fade .5s; }
@keyframes fade { from { opacity: 0; } }
.facts-in { max-width: 44em; margin: 0 auto; padding: 64px 20px 110px; }
.facts h3 { font-size: 28px; margin-top: 36px; }
.facts ul { margin-top: 18px; padding-left: 1.1em; }
.facts li { margin-top: 6px; }
.facts dt { font: 500 21px/1.2 var(--serif); margin-top: 18px; }
.facts dd { margin: 4px 0 0; }

.switches { position: fixed; z-index: 50; right: var(--m); bottom: 14px; display: flex; gap: 8px; }
.sw { padding: 8px 12px; min-height: 40px; font-size: 14px; background: var(--peat2); color: var(--cream); transition: background .2s, color .2s; }
.sw[aria-pressed="true"] { background: var(--cream); color: var(--peat); }

/* age check */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: var(--fog); color: var(--peat); text-align: center; transition: opacity 1.5s ease; }
.gate.off { opacity: 0; pointer-events: none; }
.gate-in { max-width: 30em; transition: opacity .4s; }
.gate.off .gate-in { opacity: 0; }
.gate h2 { font-size: clamp(38px, 5vw, 68px); text-transform: uppercase; letter-spacing: .02em; }
.gate p { margin-top: 12px; font-size: 18px; }
.gate-b { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.gate .btn { min-width: 110px; }
.gate .btn.no { background: var(--peat); color: var(--cream); }

.cursor { position: fixed; z-index: 70; left: 0; top: 0; width: 16px; height: 16px; margin: -8px; border-radius: 50%; border: 2px solid var(--copper-lit); pointer-events: none; opacity: 0; transition: width .2s, height .2s, margin .2s, background .2s; }
.cursor.on { opacity: 1; } .cursor.hot { width: 44px; height: 44px; margin: -22px; background: rgba(184, 116, 58, .25); }
@media (hover: hover) and (pointer: fine) { body.cur, body.cur a, body.cur button, body.cur input { cursor: none; } }

.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .8s var(--ease); transition-delay: var(--dl, 0ms); }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .bar-note { display: none; } .bar { justify-content: flex-end; }
  .bar nav { gap: 16px; }
  .name { top: 70px; display: block; font-size: 26vw; } .mask { width: fit-content; } .mask + .mask { margin-left: auto; }
  .hero { background: var(--peat); }
  .hero-paint { inset: -3% -3% 27% -3%; }
  .hero-paint img { object-position: 82% 62%; }
  .hero-foot { grid-template-columns: 1fr; gap: 10px; bottom: 62px; }
  .three-stage { flex-direction: column; }
  .pan figcaption { bottom: 12px; }
  .pan[data-p="water"] figcaption { top: auto; }
  .three-text { top: 12px; left: 12px; right: 12px; padding: 12px 14px; }
  .walk { height: 560vh; }
  .caps { height: 13em; top: 22px; }
  .cap p { font-size: 16px; }
  .mature { top: 158px; bottom: auto; left: var(--m); right: var(--m); width: auto; grid-template-columns: 96px 1fr; gap: 0 14px; }
  .notes { font-size: 20px; margin-top: 2px; } .share { font-size: 14px; margin-top: 2px; } .age { font-size: 34px; }
  .clock strong { min-width: 0; }
  .clock { grid-template-columns: 1fr; gap: 6px; }
  .bottle { grid-template-columns: minmax(0, 1fr); padding-bottom: 80px; }
  .b-show { height: auto; overflow: clip; }
  .b-img { height: auto; width: 54vw; margin: 0 -7vw; }
  .lab i, .lab span, .lab u { display: none; }
  .lab b { font-size: 14cqw; line-height: 1; }
  .prog-label { right: auto; left: var(--m); bottom: 11px; }
  .clock { right: var(--m); bottom: 62px !important; }
  .track { bottom: 96px; }
  .q { grid-template-columns: 1fr; }
  .q dl > div { grid-template-columns: 1fr; }
  .foot-name { display: block; font-size: 26vw; white-space: normal; }
  .lab b { text-transform: none; letter-spacing: 0; }
  .foot-small { padding-right: 0; padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .fog i, .steam path, .bub circle, .rake path, .fire, .drip { animation: none; }
  .steam path { stroke-dasharray: none; opacity: .7; }
  .rise { opacity: 1; transform: none; transition: none; }
  .mask > span, .gate { transition: none; }
  .hero-paint, .fog { will-change: auto; }
}
