/* ============ Fonts ============ */
@font-face { font-family: "Barlow Condensed"; src: url("assets/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/instrument-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/dm-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ============ Tokens ============ */
:root {
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;

  --paper: #f6ede3;
  --paper-2: #efe2d4;
  --ink: #1d1216;
  --ink-soft: #5d4a50;
  --cream: #fbf3ea;
  --gold: #cfa968;
  --gold-ink: #2a1b0b;

  --rose-bg: #5c0f2a;
  --rose-bg-2: #8a1a40;
  --rose-disc: #e46d93;
  --rose-accent: #f39bb6;
  --blue-bg: #0b2148;
  --blue-bg-2: #163c7c;
  --blue-disc: #4f8fe6;
  --blue-accent: #8fc0ff;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, .72, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 99px; }
.skip-link:focus { top: 12px; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-content: center; gap: 22px; justify-items: center;
  background: var(--rose-bg); color: var(--cream);
  transition: clip-path 1s var(--ease) .1s;
  clip-path: inset(0 0 0 0);
  animation: loader-failsafe 0s linear 4s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; pointer-events: none; } }
body:not(.is-loading) .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-mark { width: clamp(120px, 14vw, 180px); height: auto; color: var(--cream); }
.loader-bar { width: 160px; height: 1px; background: #fff3; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--cream); transform-origin: left; animation: load 1.1s var(--ease) forwards; transform: scaleX(0); }
@keyframes load { to { transform: scaleX(1); } }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  color: var(--cream);
  transition: color .4s, transform .5s var(--ease);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.on-light { color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 16px; }
.logo-mark { height: 56px; width: auto; }
.logo-word { height: 20px; width: auto; }
.nav {
  display: flex; gap: 4px; padding: 5px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 99px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav a { padding: 9px 18px; border-radius: 99px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: background .3s; }
.nav a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 99px;
  font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { font-family: var(--mono); transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateY(3px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-ghost { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-gold { background: var(--gold); color: var(--gold-ink); padding: 14px 24px; }

/* ============ Shared type ============ */
.eyebrow { display: flex; align-items: center; gap: 14px; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.eyebrow b { font: 800 22px/1 var(--display); letter-spacing: 0; }
.rule { width: 48px; height: 1px; background: currentColor; opacity: .6; }
.kicker { font: 400 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px; }
.big-title { font: 800 clamp(48px, 8.4vw, 136px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.big-title em { display: block; text-transform: none; font-size: .78em; line-height: 1; letter-spacing: -.01em; }
.hero-italic { font: italic 400 clamp(24px, 2.4vw, 36px)/1.15 var(--serif); }

/* ============ HERO ============ */
.hero { position: relative; height: 300vh; color: var(--cream); }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 70% 50%, var(--bg-2) 0%, transparent 70%),
    var(--bg-1);
  transition: background-color .9s var(--ease);
}
.hero[data-active="0"] { --bg-1: var(--rose-bg); --bg-2: var(--rose-bg-2); --disc: var(--rose-disc); --accent: var(--rose-accent); }
.hero[data-active="1"] { --bg-1: var(--blue-bg); --bg-2: var(--blue-bg-2); --disc: var(--blue-disc); --accent: var(--blue-accent); }
@property --bg-1 { syntax: "<color>"; inherits: true; initial-value: #5c0f2a; }
@property --bg-2 { syntax: "<color>"; inherits: true; initial-value: #8a1a40; }
@property --disc { syntax: "<color>"; inherits: true; initial-value: #e46d93; }
.hero { transition: --bg-1 1s var(--ease), --bg-2 1s var(--ease), --disc 1s var(--ease); }

.particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.particles .p { position: absolute; top: 0; left: 0; will-change: transform; transition: opacity .8s; }
.particles .petal { width: var(--s); opacity: 0; }
.particles .drop {
  width: var(--s); aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, #fff 0 8%, #ffffff55 18%, #ffffff10 55%, #ffffff30 100%);
  box-shadow: inset 0 0 0 1px #ffffff40;
}
.hero[data-active="0"] .petal { opacity: .9; }
.hero[data-active="1"] .drop { opacity: .85; }

.hero-grid {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  padding: 90px var(--gutter) 110px; gap: 24px;
}
.hero-copy { position: relative; display: grid; align-content: center; min-height: 480px; }
.slide { grid-area: 1 / 1; display: grid; gap: 18px; align-content: start; pointer-events: none; }
.slide.is-active { pointer-events: auto; }
.hero-title { font: 800 clamp(72px, min(10.5vw, 21vh), 190px)/.82 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin-top: 6px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ch { display: inline-block; will-change: transform; }
.wd { display: inline-block; white-space: nowrap; }
.hero-body { max-width: 34ch; font-size: 17px; opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border: 1px solid #ffffff40; border-radius: 99px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.slide .eyebrow, .slide .hero-italic, .slide .hero-body, .slide .chips { will-change: transform, opacity; }
.hero-actions { grid-area: 2 / 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stage { position: relative; height: 100%; max-height: 760px; display: grid; place-items: center; touch-action: pan-y; }
.disc {
  position: absolute; width: min(36vw, 64vh); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--disc) 75%, white) 0%, var(--disc) 45%, color-mix(in srgb, var(--disc) 60%, black) 100%);
  box-shadow: 0 40px 120px -20px color-mix(in srgb, var(--disc) 50%, black);
}
.ring { position: absolute; width: min(46vw, 82vh); aspect-ratio: 1; overflow: visible; animation: spin 40s linear infinite; }
.ring text { fill: var(--cream); font: 500 15px var(--mono); letter-spacing: .34em; opacity: .85; }
@keyframes spin { to { rotate: 360deg; } }
.bottle-wrap { position: relative; height: min(68vh, 640px); aspect-ratio: 409 / 1400; perspective: 1200px; }
.bottle-tilt { position: relative; height: 100%; transform-style: preserve-3d; will-change: transform; }
.bottle { position: absolute; inset: 0; height: 100%; width: auto; margin: auto; filter: drop-shadow(0 30px 40px #0006); user-select: none; -webkit-user-drag: none; opacity: 0; }
.bottle.is-on { opacity: 1; }
.bottle-shadow { position: absolute; left: 10%; right: 10%; bottom: -14px; height: 22px; border-radius: 50%; background: #0007; filter: blur(12px); z-index: -1; }
.drag-hint { position: absolute; bottom: -1%; font: 400 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; opacity: .6; }

.hero-foot {
  position: absolute; inset: auto var(--gutter) 26px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.switch { display: flex; gap: 8px; flex-wrap: wrap; }
.switch button {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px;
  border: 1px solid #ffffff40; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transition: background .35s, color .35s;
}
.switch button[aria-selected="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot-rose { background: #e46d93; box-shadow: 0 0 0 2px #e46d9333; }
.dot-vinegar { background: #4f8fe6; box-shadow: 0 0 0 2px #4f8fe633; }
.progress { width: min(260px, 22vw); height: 1px; background: #ffffff30; }
.progress i { display: block; height: 100%; background: var(--cream); transform-origin: left; transform: scaleX(var(--p, 0)); }
.scroll-cue { justify-self: end; padding-left: 16px; border-left: 1px solid #ffffff50; font: 400 12px/2 var(--mono); letter-spacing: .24em; text-transform: uppercase; }

/* ============ MANIFESTO ============ */
.manifesto { padding: clamp(110px, 18vw, 240px) var(--gutter) clamp(80px, 12vw, 160px); max-width: 1320px; margin: 0 auto; }
.manifesto-text { font: 400 clamp(32px, 5vw, 76px)/1.08 var(--serif); letter-spacing: -.01em; }
.manifesto-text em { font-style: italic; }
.manifesto-text .c-rose { color: #b2365f; }
.manifesto-text .c-blue { color: #2559a8; }
.manifesto-text .w { opacity: .14; transition: opacity .2s; }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; border-block: 1px solid #1d121620; padding: 22px 0; background: var(--paper-2); }
.marquee-track { display: flex; width: max-content; gap: 40px; align-items: center; will-change: transform; }
.marquee-track span { font: 800 clamp(40px, 6vw, 88px)/1 var(--display); text-transform: uppercase; }
.marquee-track span:nth-of-type(3n+2) { font: italic 400 clamp(40px, 6vw, 88px)/1 var(--serif); text-transform: none; }
.marquee-track i { font-style: normal; font-size: clamp(24px, 3vw, 40px); color: #b2365f; }

/* ============ RANGE ============ */
.range { padding: clamp(90px, 12vw, 170px) var(--gutter) 40px; max-width: 1440px; margin: 0 auto; }
.section-head { margin-bottom: clamp(60px, 8vw, 120px); }
.big-title .ch { display: inline-block; }
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center;
  margin-bottom: clamp(100px, 14vw, 200px);
}
.product-vinegar .product-media { order: 2; }
.product-media { position: relative; }
.product-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; clip-path: inset(0 0 0 0 round 28px); }
.product-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.product-float { position: absolute; height: 72%; width: auto; bottom: -8%; filter: drop-shadow(0 30px 30px #0005); pointer-events: none; }
.product-rose .product-float { right: -9%; }
.product-vinegar .product-float { left: -9%; }
.product-info { display: grid; gap: 20px; max-width: 520px; }
.product-rose .product-info { color: #4a0c22; }
.product-vinegar .product-info { color: #0e2550; }
.product-title { font: 800 clamp(72px, 10vw, 160px)/.84 var(--display); text-transform: uppercase; }
.product-rose .product-title { color: #8a1a40; }
.product-vinegar .product-title { color: #163c7c; }
.product-info > p:not(.eyebrow):not(.hero-italic) { font-size: 17px; color: var(--ink-soft); }
.uses { display: grid; margin-top: 10px; border-top: 1px solid #1d121622; }
.uses div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #1d121622; }
.uses dt { font: 400 12px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.uses dd { color: var(--ink-soft); }

/* ============ AT THE TABLE ============ */
.table-section { background: var(--ink); color: var(--cream); }
.table-pin { height: 100vh; height: 100svh; display: flex; align-items: center; gap: clamp(40px, 5vw, 80px); padding: 0 var(--gutter); overflow: hidden; }
.table-head { flex: 0 0 min(420px, 34vw); }
.table-head .kicker { color: #f6ede399; }
.table-head .big-title em { color: var(--gold); }
.table-lede { margin-top: 24px; max-width: 30ch; color: #f6ede3b0; }
.cards { display: flex; gap: 28px; will-change: transform; }
.card { flex: 0 0 clamp(280px, 28vw, 400px); background: #2a1c21; border-radius: 24px; overflow: hidden; }
.card-img { aspect-ratio: 4 / 4.2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px 26px 30px; display: grid; gap: 12px; }
.card-body h3 { font: 800 40px/.95 var(--display); text-transform: uppercase; }
.card-body p:last-child { color: #f6ede3b8; font-size: 15px; }
.tag { display: flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #f6ede3c0; }

/* ============ CLOSING ============ */
.closing { position: relative; height: 110vh; overflow: hidden; color: var(--cream); display: grid; align-items: center; }
.closing-photo { position: absolute; inset: -10% 0; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.closing-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1d1216e6 0%, #1d121680 45%, transparent 75%); }
.closing-copy { position: relative; padding: 0 var(--gutter); display: grid; gap: 28px; justify-items: start; }
.closing-copy .kicker { color: #f6ede3b0; margin: 0; }
.closing-title { font: 800 clamp(64px, 10vw, 170px)/.86 var(--display); text-transform: uppercase; }
.closing-title em { text-transform: none; color: var(--gold); font-size: .8em; }

/* ============ FOOTER ============ */
.footer { background: var(--rose-bg); color: var(--cream); padding: 40px var(--gutter) 28px; overflow: hidden; }
.footer-word { font: 800 clamp(120px, 31vw, 520px)/.78 var(--display); letter-spacing: -.01em; text-align: center; color: transparent; -webkit-text-stroke: 1px #f6ede355; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f6ede330; font: 400 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 84px var(--gutter) 96px; gap: 0; }
  .hero-copy { min-height: 0; order: 2; }
  .hero-stage { order: 1; height: 38vh; }
  .disc { width: min(64vw, 34vh); }
  .ring { width: min(84vw, 44vh); }
  .bottle-wrap { height: 34vh; }
  .drag-hint { display: none; }
  .hero-title { font-size: clamp(64px, 19vw, 120px); }
  .hero-italic { font-size: 22px; }
  .hero-body { font-size: 15px; }
  .slide { gap: 10px; }
  .chips { display: none; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn { padding: 13px 20px; }
  .hero-foot { grid-template-columns: 1fr; bottom: 18px; }
  .progress, .scroll-cue { display: none; }
  .product { grid-template-columns: 1fr; }
  .product-vinegar .product-media { order: 0; }
  .product-float { height: 62%; }
  .product-rose .product-float { right: -2%; }
  .product-vinegar .product-float { left: -2%; }
  .table-pin { height: auto; display: block; padding: 90px 0; }
  .table-head { padding: 0 var(--gutter); margin-bottom: 40px; }
  .cards { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .card { flex-basis: 78vw; scroll-snap-align: start; }
  .closing { height: 90vh; }
  .closing-photo::after { background: linear-gradient(0deg, #1d1216f0 10%, #1d121640 70%); }
  .closing { align-items: end; padding-bottom: 70px; }
}
@media (max-width: 520px) {
  .logo { gap: 12px; }
  .logo-mark { height: 44px; }
  .logo-word { height: 15px; }
  .header-cta { padding: 11px 16px; font-size: 11px; }
  .uses div { grid-template-columns: 90px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .manifesto-text .w { opacity: 1; }
}
