/* ==========================================================================
   HowSan — design system
   Palette and forms are taken from the product photography: blue-and-white
   porcelain, gilt trim, unbleached paper.
   ========================================================================== */

/* Both are variable fonts. The declared range must match what the file
   actually carries — claiming 100..900 for a 300..700 face makes the browser
   synthesise the missing ends and everything renders hairline. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  /* Porcelain blues */
  --ink-900: #06152b;
  --ink-800: #0a1e3c;
  --ink-700: #12305c;
  --ink-500: #29558f;
  --ink-300: #7d9bc4;

  /* Paper */
  --paper-100: #fdfbf7;
  --paper-200: #f6f1e7;
  --paper-300: #ece3d3;
  --paper-400: #ddd0ba;

  /* Gilt */
  --gold-400: #d9c089;
  --gold-500: #c0a062;
  --gold-600: #9c7f45;

  --bg: var(--paper-200);
  --fg: var(--ink-800);
  --muted: #3d4f68;
  --rule: rgba(18, 48, 92, 0.16);

  --font-display: 'Cormorant Garamond', 'Songti TC', 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-cjk: 'PingFang TC', 'Noto Serif TC', 'Songti TC', var(--font-display);

  /* Fluid type — scales between 360px and 1600px viewports */
  --step--1: clamp(0.78rem, 0.74rem + 0.18vw, 0.88rem);
  --step-0: clamp(0.94rem, 0.89rem + 0.22vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.85vw, 2.1rem);
  --step-3: clamp(1.85rem, 1.4rem + 1.5vw, 2.9rem);
  --step-4: clamp(2.2rem, 1.55rem + 2.4vw, 3.9rem);
  --step-5: clamp(2.5rem, 1.55rem + 3.2vw, 4.6rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 68ch;
  --radius: 2px;

  /* One easing curve family keeps motion feeling like a single system */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 260ms;
  --dur: 620ms;
  --dur-slow: 1100ms;

  --header-h: 84px;
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* While the preloader or age gate is up, the page behind must not scroll. */
body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

::selection { background: var(--ink-700); color: var(--paper-100); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--ink-800);
  color: var(--paper-100);
  padding: 0.75rem 1.25rem;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: min(100% - var(--gutter) * 2, 1360px);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - var(--gutter) * 2, 900px); }

.section { padding-block: clamp(4.5rem, 11vh, 10rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vh, 6rem); }

.section--ink {
  background: var(--ink-900);
  color: var(--paper-200);
  --rule: rgba(217, 192, 137, 0.22);
  --muted: #9db0cb;
}
.section--paper-deep { background: var(--paper-300); }

/* A faint woven-paper texture so large flat areas are not dead */
.section--ink::before,
.section--texture::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
}
.section--texture::before { opacity: 0.35; background-image:
    repeating-linear-gradient(90deg, rgba(18,48,92,0.03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(18,48,92,0.03) 0 1px, transparent 1px 3px); }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

/* ---------------------------------------------------------- typography */

.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}
.section--ink .eyebrow { color: var(--gold-400); }
.eyebrow::before {
  content: '';
  width: clamp(1.5rem, 4vw, 3.5rem);
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: clamp(1.5rem, 4vw, 3.5rem);
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h-display { font-size: var(--step-5); }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.h4 { font-size: var(--step-1); font-family: var(--font-display); }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}
.prose { max-width: var(--measure); color: var(--muted); }
.prose h2, .prose h3 { color: var(--fg); margin: 2.2em 0 0.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--ink-700); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }

.cjk {
  font-family: var(--font-cjk);
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  color: var(--ink-700);
  opacity: 0.75;
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ------------------------------------------------------------- buttons */

.btn {
  --btn-fg: var(--paper-100);
  --btn-bg: var(--ink-800);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: transparent;
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
/* The fill wipes upward on hover rather than cross-fading */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  transform-origin: bottom;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(0); }
.btn:hover, .btn:focus-visible { color: var(--btn-bg); }

.btn__arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--ghost { --btn-fg: var(--ink-800); --btn-bg: var(--ink-800); }
.btn--ghost::before { transform: scaleY(0); }
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { transform: scaleY(1); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--paper-100); }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--ink-900); }
.btn--gold:hover, .btn--gold:focus-visible { color: var(--gold-400); }

.section--ink .btn--ghost { --btn-fg: var(--paper-200); --btn-bg: var(--gold-400); }
.section--ink .btn--ghost:hover { color: var(--ink-900); }

/* Understated text link with a rule that draws in from the left */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur) var(--ease-out);
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link svg { transition: transform var(--dur) var(--ease-out); }
.link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------- header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              height var(--dur) var(--ease-out);
}
.header.is-stuck {
  background: rgba(253, 251, 247, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--rule);
  height: 68px;
}
/* Retreats out of the way when reading downward, returns on scroll up */
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  width: min(100% - var(--gutter) * 2, 1360px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 46px; height: 46px; transition: transform var(--dur) var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.02em; }
.brand__tag { font-size: 0.52rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.6rem); }
.nav__link {
  position: relative;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current='page']::after { transform: scaleX(1); background: var(--gold-500); }

.header__cta { display: inline-flex; }

/* Hamburger — two rules that cross into an X */
.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.burger span:nth-child(1) { transform: translate(-50%, -5px); }
.burger span:nth-child(2) { transform: translate(-50%, 3px); }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translate(-50%, -1px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { transform: translate(-50%, -1px) rotate(-45deg); }

/* --------------------------------------------------------- mobile menu */

.menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--ink-900);
  color: var(--paper-200);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-in-out);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

.menu__list { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu__item { overflow: hidden; }
.menu__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  line-height: 1.25;
  padding: 0.1em 0;
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.menu.is-open .menu__link { transform: translateY(0); }
.menu__link:hover { color: var(--gold-400); }
.menu__meta {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-300);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out) 400ms;
}
.menu.is-open .menu__meta { opacity: 1; }

/* ----------------------------------------------------------- preloader */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--ink-900);
  display: grid;
  place-items: center;
  transition: clip-path var(--dur-slow) var(--ease-in-out), opacity 300ms linear;
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { display: grid; place-items: center; gap: 1.5rem; }
.preloader__mark {
  width: 88px;
  animation: pulse 2.2s var(--ease-in-out) infinite;
}
.preloader__bar { width: 180px; height: 1px; background: rgba(217,192,137,0.25); overflow: hidden; }
.preloader__fill { display: block; height: 100%; width: 0%; background: var(--gold-400); transition: width 200ms linear; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.94); } }

/* ------------------------------------------------------------ age gate */

.gate {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(6, 21, 43, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.gate.is-open { opacity: 1; visibility: visible; }
.gate__panel {
  background: var(--paper-100);
  border: 1px solid var(--gold-500);
  padding: clamp(2rem, 5vw, 3.5rem);
  /* Wide enough to keep the two answers on one line */
  max-width: 580px;
  text-align: center;
  transform: translateY(24px);
  transition: transform var(--dur-slow) var(--ease-out);
}
.gate.is-open .gate__panel { transform: translateY(0); }
.gate__mark { width: 70px; margin: 0 auto 1.5rem; }
.gate__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.gate__deny { font-size: var(--step--1); color: var(--muted); margin-top: 1.5rem; }

/* -------------------------------------------------------------- cursor */

.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 500;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }
/* Nothing to show until the pointer actually moves */
.cursor, .cursor-ring { opacity: 0; transition: opacity 200ms linear; }
body.cursor-ready .cursor, body.cursor-ready .cursor-ring { opacity: 1; }
.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255,255,255,0.55);
  transition: width 300ms var(--ease-out), height 300ms var(--ease-out),
              margin 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
body.cursor-active .cursor-ring {
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-color: rgba(217,192,137,0.9);
}
/* Pointer devices only — a fake cursor on touch is just clutter */
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ------------------------------------------------------ scroll progress */

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 210;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

/* ------------------------------------------------------------- reveals */

/* Base state is applied by JS (adds .reveal-ready) so that a browser with
   JS disabled still shows everything. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal='fade'] { transform: none; }
.reveal-ready [data-reveal='left'] { transform: translateX(-40px); }
.reveal-ready [data-reveal='right'] { transform: translateX(40px); }
.reveal-ready [data-reveal='scale'] { transform: scale(0.94); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* Image that uncovers itself behind a moving panel */
.reveal-img { position: relative; overflow: hidden; }
.reveal-img > img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); }
.reveal-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper-300);
  transform-origin: right;
  transition: transform 1.2s var(--ease-in-out);
}
.section--ink .reveal-img::after { background: var(--ink-800); }
.reveal-ready .reveal-img.is-in > img { transform: scale(1); }
.reveal-ready .reveal-img.is-in::after { transform: scaleX(0); }

/* Headline that rises line by line */
.split-line { display: block; overflow: hidden; }
.split-line > span {
  display: block;
  transform: translateY(100%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--line-delay, 0ms);
}
.reveal-ready .split.is-in .split-line > span,
.split.is-in .split-line > span { transform: translateY(0); }
.reveal-ready .split .split-line > span { transform: translateY(100%); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  background: linear-gradient(180deg, var(--paper-300), var(--paper-200));
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  /* set by JS for parallax */
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.06);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(246,241,231,0.98) 0%, rgba(246,241,231,0.94) 34%, rgba(246,241,231,0.66) 52%, rgba(246,241,231,0.12) 72%, transparent 84%),
    linear-gradient(0deg, rgba(246,241,231,0.6) 0%, transparent 26%);
}
.hero__inner { position: relative; z-index: 2; }
/* Keep the copy in its own column so it never collides with the bottles */
.hero__inner > * { max-width: 41rem; }
.hero__inner > .hero__lead { max-width: 34rem; }
.hero__inner > .hero__notes { max-width: 44rem; }
.hero__title { font-size: var(--step-5); font-weight: 500; }
.hero__title em { font-style: italic; color: var(--ink-700); }
.hero__lead { margin-top: 1.75rem; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.hero__cjk {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.75rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.hero__note { display: flex; align-items: center; gap: 0.7rem; }
.hero__note img { width: 34px; opacity: 0.8; }
.hero__note span {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 2rem;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__line { width: 1px; height: 52px; background: var(--rule); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-500);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* ------------------------------------------------------------- marquee */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: 1.4rem;
  display: flex;
  user-select: none;
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  white-space: nowrap;
  color: var(--muted);
}
.marquee__item::after { content: '✦'; font-size: 0.5em; color: var(--gold-500); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* -------------------------------------------------------- spirit cards */

.spirit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}
.spirit + .spirit { margin-top: clamp(4rem, 10vh, 9rem); }
.spirit--flip > .spirit__media { order: 2; }

.spirit__media { position: relative; }
.spirit__media img { margin-inline: auto; filter: drop-shadow(0 40px 60px rgba(6,21,43,0.22)); }
.spirit__halo {
  position: absolute;
  inset: 8% 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,192,137,0.3), transparent 68%);
  z-index: -1;
}

.spirit__abv {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--rule);
}
.spirit__stat { display: grid; gap: 0.2rem; }
.spirit__stat b { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1; }
.spirit__stat span { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.notes { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.note img { width: 22px; opacity: 0.75; }
.note:hover { border-color: var(--gold-500); background: rgba(217,192,137,0.12); transform: translateY(-2px); }

/* Animated flavour intensity bars */
.profile { display: grid; gap: 0.9rem; margin: 0 0 2rem; }
.profile__row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: center; }
.profile__label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.profile__track { height: 3px; background: var(--rule); position: relative; overflow: hidden; }
.profile__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width 1.4s var(--ease-out);
  transition-delay: var(--bar-delay, 0ms);
}
.profile.is-in .profile__bar { width: var(--level); }

/* --------------------------------------------------------- serve cards */

.serves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.serve {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
  transition: background-color var(--dur) var(--ease-out);
}
.section--ink .serve { background: var(--ink-900); }
.serve:hover { background: var(--paper-300); }
.section--ink .serve:hover { background: var(--ink-800); }
.serve img { width: 56px; transition: transform var(--dur) var(--ease-out); }
.serve:hover img { transform: translateY(-6px) scale(1.06); }
.serve span { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; }

/* ------------------------------------------------------------ pairings */

.pairing {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--rule);
  text-align: center;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.pairing:hover { transform: translateY(-6px); border-color: var(--gold-500); }
.pairing img { width: 74px; margin-inline: auto; }
.pairing__if { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.pairing__then { font-family: var(--font-display); font-size: var(--step-1); }

/* ----------------------------------------------------- cocktail slider */

.rail {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scroll-padding-left: var(--gutter);
}
.rail::-webkit-scrollbar { height: 3px; }
.rail::-webkit-scrollbar-track { background: var(--rule); }
.rail::-webkit-scrollbar-thumb { background: var(--gold-500); }

.cocktail {
  flex: 0 0 clamp(240px, 27vw, 340px);
  scroll-snap-align: start;
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 1rem;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.cocktail:hover { transform: translateY(-8px); border-color: var(--gold-500); }
.cocktail__num { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--gold-500); }
.cocktail__name { font-family: var(--font-display); font-size: var(--step-2); }
.cocktail__recipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.cocktail__recipe li {
  display: flex;
  gap: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}
.cocktail__recipe li:last-child { border-bottom: 0; }
.cocktail__recipe b { color: var(--fg); font-weight: 600; min-width: 3.5rem; }
.section--ink .cocktail__recipe b { color: var(--paper-200); }

.rail-nav { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.rail-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.rail-btn:hover:not(:disabled) { background: var(--ink-800); color: var(--paper-100); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }

/* --------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.stat { text-align: center; display: grid; gap: 0.75rem; justify-items: center; }
.stat img { width: clamp(72px, 9vw, 108px); }
.stat__num { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.stat__label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); max-width: 22ch; }

/* --------------------------------------------------------------- steps */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule);
  align-items: start;
  transition: padding-left var(--dur) var(--ease-out);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step:hover { padding-left: 1rem; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold-500);
  line-height: 1;
}
.step__body h3 { margin-bottom: 0.5rem; }
.step__body p { color: var(--muted); max-width: 56ch; }

/* -------------------------------------------------------------- quotes */

.quote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  text-align: center;
  max-width: 22ch;
  margin-inline: auto;
}
.quote__mark { color: var(--gold-500); display: block; font-size: 2em; line-height: 0.4; margin-bottom: 0.35em; }

/* ---------------------------------------------------------------- form */

.form { display: grid; gap: 1.75rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 1.5rem 0 0.65rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field label {
  position: absolute;
  left: 0; top: 1.25rem;
  font-size: var(--step-0);
  color: var(--muted);
  pointer-events: none;
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
/* Float the label once the field has focus or content */
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(0.72);
  color: var(--gold-600);
}
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--gold-500); }
.field__error { display: block; font-size: 0.72rem; color: #b4452f; margin-top: 0.4rem; min-height: 1rem; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #b4452f; }

.form__note { font-size: var(--step--1); color: var(--muted); }
.form__status {
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold-500);
  background: rgba(217,192,137,0.12);
  font-size: var(--step--1);
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-error {
  border-color: #b4452f;
  background: rgba(180,69,47,0.08);
}

/* Honeypot: off-screen for humans, irresistible to bots. */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- cookies */

.cookie {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 300;
  width: min(420px, calc(100vw - var(--gutter) * 2));
  background: var(--paper-100);
  border: 1px solid var(--ink-800);
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(6,21,43,0.2);
  transform: translateY(calc(100% + var(--gutter)));
  transition: transform var(--dur-slow) var(--ease-out);
}
.cookie.is-open { transform: translateY(0); }
.cookie h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.cookie p { font-size: var(--step--1); color: var(--muted); }
.cookie__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.cookie__actions .btn { padding: 0.8rem 1.4rem; }

/* -------------------------------------------------------------- footer */

.footer {
  background: var(--ink-900);
  color: var(--paper-200);
  padding-block: clamp(3.5rem, 8vh, 6rem) 2rem;
  /* Lift muted text off the dark ground, or the tagline vanishes */
  --muted: #9db0cb;
  --rule: rgba(217, 192, 137, 0.22);
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.footer__brand .brand__name { font-size: 1.7rem; }
.footer__blurb { color: var(--ink-300); max-width: 34ch; margin-top: 1.25rem; font-size: var(--step--1); }
.footer h4 { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-400); font-family: var(--font-body); font-weight: 600; margin-bottom: 1.25rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer a { font-size: var(--step--1); color: var(--paper-200); opacity: 0.75; transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.footer a:hover { opacity: 1; color: var(--gold-400); }
.footer__social { display: flex; gap: 1rem; margin-top: 1.75rem; }
.footer__social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(217,192,137,0.3);
  border-radius: 50%;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.footer__social a:hover { background: var(--gold-500); color: var(--ink-900); transform: translateY(-3px); opacity: 1; }
.footer__bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(217,192,137,0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--ink-300);
}
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------------------------------------------------------- back to top */

.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 180;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper-100);
  color: var(--ink-800);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--ink-800); color: var(--paper-100); }

/* ------------------------------------------------------------ page head */

.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 7rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.page-head__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  object-fit: cover;
  width: 100%; height: 100%;
}
.page-head__title { font-size: var(--step-4); }

/* -------------------------------------------------------------- tables */

.spec { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.spec th, .spec td { text-align: left; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.spec th { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.68rem; color: var(--muted); width: 40%; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .serves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .grid--2, .grid--3, .grid--split { grid-template-columns: minmax(0, 1fr); }
  .spirit { grid-template-columns: minmax(0, 1fr); }
  .spirit--flip > .spirit__media { order: 0; }
  .spirit__media img { max-width: 320px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .hero__cjk { display: none; }
  /* Stacked on a phone the copy sits directly over the photograph, so the
     scrim has to carry far more weight than it does on the wide layout. */
  .hero__scrim {
    background: linear-gradient(180deg, rgba(246,241,231,0.97) 0%, rgba(246,241,231,0.93) 62%, rgba(246,241,231,0.88) 100%);
  }
  .hero__inner > *, .hero__inner > .hero__lead, .hero__inner > .hero__notes { max-width: none; }
  .profile__row { grid-template-columns: 7rem 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .quote { max-width: 100%; }
}

@media (max-width: 520px) {
  .serves { grid-template-columns: minmax(0, 1fr); }
  .spirit__abv { flex-wrap: wrap; gap: 1.25rem; }
  .btn { padding: 0.95rem 1.5rem; }
}

/* --------------------------------------------------- motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Content must be visible, not merely un-animated */
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split-line > span { transform: none !important; }
  .reveal-img::after { display: none; }
  .reveal-img > img { transform: none !important; }
  .profile__bar { width: var(--level) !important; }
  .hero__media img, .hero__media video { transform: none !important; }
  .cursor, .cursor-ring { display: none; }
}

/* Anchored navigation must not land behind the fixed header */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Brand marks and leaf motifs sit in a photo-sized slot; cap them so a small
   icon and a tall calligraphy block both read as deliberate. */
.tea-figure { display: grid; place-items: center; }
.tea-figure > img { max-width: min(100%, 340px); }

/* Keep page-head copy legible over its background photograph */
.page-head::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(246,241,231,0.86) 45%, rgba(246,241,231,0.4) 100%);
}

/* Artwork with its own white ground needs a frame on the dark sections,
   otherwise it reads as a hole punched in the page. */
.plate {
  background: var(--paper-100);
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--rule);
}
