/* ═══════════════════════════════════════════════════════════════════
   TERROIR COFFEE CO. — style.css
   Archetype: Eco Natural
   ═══════════════════════════════════════════════════════════════════ */

/* 1. CSS Variables ─────────────────────────────────────────────────── */
@import url('https://api.fontshare.com/v2/css?f[]=fraunces@400,700,900&f[]=satoshi@400,500,700&display=swap');

:root {
  /* Palette — Eco Natural */
  --color-bg:        #F4F0E6;
  --color-surface:   #EDE6D6;
  --color-surface-2: #E4DBCA;
  --color-espresso:  #2C1A0E;
  --color-amber:     #C4894F;
  --color-text:      #1A1208;
  --color-muted:     #8C7B6B;
  --color-border:    rgba(44, 26, 14, 0.12);

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Satoshi', system-ui, sans-serif;

  /* Type scale — fluid */
  --text-display: clamp(3.5rem, 11vw, 9rem);
  --text-hero:    clamp(3rem, 8vw, 7rem);
  --text-heading: clamp(2rem, 5vw, 4rem);
  --text-subhead: clamp(1.25rem, 2.5vw, 1.75rem);
  --text-body-lg: clamp(1.125rem, 1.5vw, 1.25rem);
  --text-body:    clamp(1rem, 1.25vw, 1.125rem);
  --text-small:   clamp(0.75rem, 1vw, 0.875rem);

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  8rem;
  --sp-2xl: 12rem;

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);
}

/* 2. Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* 3. Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-heading); }
h3 { font-size: var(--text-subhead); }

p {
  line-height: 1.65;
  color: var(--color-muted);
}

em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-amber);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: var(--sp-sm);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-espresso);
  transition: gap 0.3s var(--ease-out-expo);
}

.btn-text:hover { gap: 0.875rem; }
.btn-text:hover .btn-arrow { transform: translateX(2px); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}

/* Split text — word wrapping */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
}

.word {
  display: inline-block;
  will-change: transform, opacity;
}

/* 4. Grain SVG (hidden, just the filter def) */
.grain-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* 5. Coffee Cup Cursor ─────────────────────────────────────────────── */
.coffee-cursor-container {
  --cup-color: #c97d5b;
  --cup-color-light: #e3a17d;
  --cup-color-dark: #a55d3d;
  --cup-rim: #e8c4ab;
  --coffee-color: #2c1a0e;
  --coffee-surface: #4a2c1a;
  --saucer-color: #d99777;
  --saucer-rim: #b67050;
  --steam-color: rgba(255, 248, 240, 0.85);
  --shadow-color: rgba(44, 26, 14, 0.35);
  position: fixed;
  top: 0; left: 0;
  width: 56px;
  height: 56px;
  pointer-events: none;
  z-index: 2147483647;
  transition: opacity 0.25s ease;
  opacity: 0;
  will-change: transform;
}
.coffee-cursor-container.is-visible { opacity: 1; }
.coffee-cursor-container.is-hidden { opacity: 0; }

.coffee-cursor {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center 75%;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter:
    drop-shadow(0 0 0 rgba(255, 248, 240, 0.9))
    drop-shadow(0 0 2px rgba(255, 248, 240, 0.9))
    drop-shadow(0 4px 8px var(--shadow-color));
}
.coffee-cursor-container.hovering .coffee-cursor {
  transform: rotate(-8deg) scale(1.08);
}
.coffee-cursor-container.clicking .coffee-cursor {
  transform: rotate(-3deg) scale(0.92);
  transition: transform 0.1s ease-out;
}

/* Saucer */
.saucer {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 10px;
  background: radial-gradient(ellipse at center, var(--saucer-color) 0%, var(--saucer-rim) 70%, var(--saucer-color) 100%);
  border-radius: 50%;
  box-shadow:
    inset 0 -1px 2px rgba(0,0,0,0.2),
    inset 0 1px 1px rgba(255,255,255,0.3);
}

/* Cup body */
.cup-body {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 24px;
  background: linear-gradient(180deg, var(--cup-color-light) 0%, var(--cup-color) 45%, var(--cup-color-dark) 100%);
  border-radius: 4px 4px 14px 14px / 4px 4px 10px 10px;
  box-shadow:
    inset -2px 0 3px rgba(0,0,0,0.18),
    inset 2px 0 2px rgba(255,255,255,0.25);
}

/* Cup rim */
.cup-rim {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 5px;
  background: linear-gradient(180deg, var(--cup-rim) 0%, var(--cup-color-light) 100%);
  border-radius: 50%;
  z-index: 2;
}

/* Coffee surface inside cup */
.coffee-surface {
  position: absolute;
  bottom: 29px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 4px;
  background: radial-gradient(ellipse at center, var(--coffee-surface) 0%, var(--coffee-color) 80%);
  border-radius: 50%;
  z-index: 3;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15);
}

/* Handle */
.cup-handle {
  position: absolute;
  bottom: 14px;
  right: 6px;
  width: 8px;
  height: 12px;
  border: 2.5px solid var(--cup-color-dark);
  border-left: none;
  border-radius: 0 8px 8px 0;
  background: transparent;
}

/* Steam */
.steam-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 22px;
  pointer-events: none;
}
.steam-wisp {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, transparent 0%, var(--steam-color) 50%, transparent 100%);
  border-radius: 50%;
  filter: blur(1.2px);
  opacity: 0;
  animation: steamRise 2.6s ease-in-out infinite;
}
.steam-wisp:nth-child(1) { left: 4px;  animation-delay: 0s; }
.steam-wisp:nth-child(2) { left: 10px; animation-delay: 0.6s; height: 16px; }
.steam-wisp:nth-child(3) { left: 16px; animation-delay: 1.2s; }

@keyframes steamRise {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(0.6); }
  25%  { opacity: 0.85; }
  60%  { opacity: 0.5; transform: translateY(-12px) translateX(2px) scale(1); }
  100% { opacity: 0; transform: translateY(-22px) translateX(-2px) scale(1.2); }
}

/* Click ripple */
.click-ripple {
  position: fixed;
  pointer-events: none;
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-amber, #C4894F);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483646;
  animation: rippleOut 0.6s ease-out forwards;
}
@keyframes rippleOut {
  0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.2); }
}

/* 6. Navigation ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--sp-lg);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(244, 240, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-espresso);
  text-decoration: none;
}

.nav__logo {
  display: block;
  flex-shrink: 0;
  color: var(--color-espresso);
}

.nav__brand-sub {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  position: relative;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.75;
  transition: opacity 0.2s;
  padding-bottom: 2px;
}

.nav__link:hover { opacity: 1; }

.nav__indicator {
  position: absolute;
  bottom: -4px;
  height: 1.5px;
  background: var(--color-espresso);
  border-radius: 2px;
  transition: left 0.4s var(--ease-out-expo),
              width 0.4s var(--ease-out-expo),
              opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

/* 7. Loading Screen ────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  transition: opacity 0.7s ease;
}

.loader--hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--color-espresso);
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(20px);
  animation: loaderReveal 0.8s var(--ease-out-expo) 0.2s forwards;
}

.loader__bar-wrap {
  width: 240px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar {
  height: 100%;
  width: 0%;
  background: var(--color-espresso);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.loader__pct {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

@keyframes loaderReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* 8. Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-xl) var(--sp-lg);
  background: linear-gradient(
    to top,
    rgba(26, 18, 8, 0.55) 0%,
    rgba(26, 18, 8, 0.15) 40%,
    transparent 70%
  );
}

.hero__eyebrow {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.7);
  margin-bottom: var(--sp-sm);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  color: var(--color-bg);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-sm);
}

.hero__tagline {
  font-size: var(--text-body-lg);
  color: rgba(244, 240, 230, 0.75);
  font-weight: 400;
  line-height: 1.5;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

.hero__scroll-label {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.6);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(244, 240, 230, 0.4);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(244, 240, 230, 0.9);
  animation: scrollLine 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* 9. Stats ─────────────────────────────────────────────────────────── */
.stats {
  padding: var(--sp-xl) var(--sp-lg);
  background: var(--color-espresso);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  max-width: 1200px;
  margin: 0 auto;
}

.stats__item {
  text-align: center;
  padding: var(--sp-md) 0;
  border-right: 1px solid rgba(244, 240, 230, 0.12);
}

.stats__item:last-child { border-right: none; }

.stats__num-wrap {
  overflow: hidden;
  line-height: 1;
  margin-bottom: var(--sp-sm);
}

.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--color-bg);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats__num--sym {
  font-size: clamp(3rem, 7vw, 6rem);
}

.stats__label {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.5);
}

/* 10. Offerings (Feature Splits) ───────────────────────────────────── */
.offerings {
  padding: var(--sp-2xl) var(--sp-lg);
}

.offerings__header {
  max-width: 1200px;
  margin: 0 auto var(--sp-xl);
  text-align: center;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto var(--sp-2xl);
}

.feature-split--reverse {
  direction: rtl;
}

.feature-split--reverse > * {
  direction: ltr;
}

.feature-split__visual {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.feature-split__img {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s var(--ease-out-expo), box-shadow 0.6s ease;
  will-change: transform;
  box-shadow: 0 8px 40px rgba(44, 26, 14, 0.18);
}

/* Inner image element for parallax zoom */
.feature-split__img-inner {
  position: absolute;
  inset: -10% -5%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s var(--ease-out-expo);
  will-change: transform;
}

.feature-split__visual:hover .feature-split__img {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 24px 64px rgba(44, 26, 14, 0.28);
}

.feature-split__visual:hover .feature-split__img-inner {
  transform: scale(1.06);
}

/* Shine sweep on hover */
.feature-split__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position 0.7s ease;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}

.feature-split__visual:hover .feature-split__img::before {
  background-position: 200% 0;
}

.feature-split__img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-md);
  background: linear-gradient(to top, rgba(26,18,8,0.6) 0%, rgba(26,18,8,0.1) 40%, transparent 70%);
  z-index: 3;
  border-radius: inherit;
  transition: background 0.4s ease;
}

.feature-split__visual:hover .feature-split__img-overlay {
  background: linear-gradient(to top, rgba(26,18,8,0.7) 0%, rgba(26,18,8,0.15) 45%, transparent 70%);
}

.feature-split__img-label {
  font-family: var(--font-display);
  font-size: var(--text-subhead);
  font-weight: 700;
  color: rgba(244, 240, 230, 0.95);
  letter-spacing: -0.02em;
  transform: translateY(4px);
  transition: transform 0.4s var(--ease-out-expo);
}

.feature-split__visual:hover .feature-split__img-label {
  transform: translateY(0);
}

.feature-split__content {
  padding: var(--sp-lg);
}

.feature-split__content h3 {
  margin: var(--sp-sm) 0 var(--sp-md);
  color: var(--color-text);
}

.feature-split__content p {
  margin-bottom: var(--sp-md);
  max-width: 40ch;
}

/* 11. Bento Grid ───────────────────────────────────────────────────── */
.bento {
  padding: var(--sp-xl) var(--sp-lg);
  background: var(--color-surface);
}

.bento__header {
  max-width: 1200px;
  margin: 0 auto var(--sp-xl);
  text-align: center;
}

.bento__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: var(--sp-sm);
  max-width: 1200px;
  margin: 0 auto;
}

.bento__cell {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.bento__cell:hover {
  border-color: rgba(196, 137, 79, 0.4);
  transform: translateY(-2px);
}

/* Glow radial effect (set via JS) */
.bento__cell[data-glow]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 200px at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(196, 137, 79, 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.bento__cell[data-glow]:hover::before {
  opacity: 1;
}

.bento__cell--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.bento__tag {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber);
  display: block;
  margin-bottom: var(--sp-md);
}

.bento__body {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: var(--sp-md);
}

/* Flavor chips */
.bento__flavors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flavor-chip {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
}

.flavor-chip:hover {
  background: var(--color-espresso);
  color: var(--color-bg);
  border-color: var(--color-espresso);
}

/* Processing dots */
.bento__process-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.process-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.process-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.process-note {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-muted);
}

/* Sustainability cell */
.bento__cell--sustain {
  background: var(--color-espresso);
  border-color: transparent;
}

.bento__cell--sustain .bento__tag {
  color: rgba(196, 137, 79, 0.8);
}

.bento__sustain-stat {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--color-bg);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.bento__sustain-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-amber);
  margin-bottom: var(--sp-md);
}

.bento__cell--sustain .bento__body {
  color: rgba(244, 240, 230, 0.65);
  margin-bottom: var(--sp-md);
}

.bento__cell--sustain .btn-text {
  color: var(--color-bg);
}

/* Brew steps */
.bento__brew-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bento__brew-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.4;
}

.brew-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-amber);
  width: 1.25rem;
  flex-shrink: 0;
  line-height: 1.5;
}

/* Origins */
.bento__origins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.origin-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--color-surface);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* 12. Lifestyle Break ──────────────────────────────────────────────── */
.lifestyle {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.lifestyle__inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.lifestyle__img {
  position: absolute;
  inset: -10% 0;          /* oversized so parallax shift stays in frame */
  background-image: url('https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?w=1800&q=80&fit=crop');
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}

.lifestyle__caption {
  position: absolute;
  bottom: var(--sp-xl);
  left: var(--sp-lg);
  overflow: hidden;
}

.lifestyle__line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-bg);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lifestyle__line--italic {
  font-style: italic;
  font-weight: 400;
  color: rgba(244, 240, 230, 0.75);
}

/* 13. CTA ──────────────────────────────────────────────────────────── */
.cta {
  background: var(--color-surface);
  overflow: hidden;
}

.cta__reveal {
  /* clip-path set dynamically by JS */
}

.cta__inner {
  padding: var(--sp-2xl) var(--sp-lg);
  max-width: 800px;
  margin: 0 auto;
}

.cta__heading {
  font-size: var(--text-heading);
  margin-bottom: var(--sp-md);
  color: var(--color-text);
}

.cta__heading em {
  font-size: var(--text-heading);
}

.cta__body {
  max-width: 50ch;
  margin-bottom: var(--sp-lg);
  font-size: var(--text-body-lg);
}

.cta__form {
  margin-bottom: var(--sp-xl);
}

.cta__row {
  display: flex;
  gap: var(--sp-sm);
  max-width: 480px;
  margin-bottom: var(--sp-sm);
}

.cta__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}

.cta__input:focus { border-color: var(--color-espresso); }
.cta__input::placeholder { color: var(--color-muted); }

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  background: var(--color-espresso);
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease-out-expo);
}

.cta__btn:hover {
  background: #1A0E06;
  transform: translateY(-2px);
}

.cta__success {
  font-size: 0.9375rem;
  color: var(--color-amber);
  font-weight: 500;
  padding: 0.75rem 0;
}

.cta__locations {
  display: flex;
  gap: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--color-border);
}

.cta__divider {
  width: 1px;
  background: var(--color-border);
}

.cta__loc-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.cta__loc-addr {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 0.125rem;
}

.cta__loc-hours {
  font-size: 0.875rem;
  color: var(--color-amber);
  font-weight: 500;
}

/* 14. Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--color-espresso);
  padding: var(--sp-xl) var(--sp-lg);
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-bg);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-sm);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(244, 240, 230, 0.5);
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: 0.25rem;
}

.footer__nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(244, 240, 230, 0.65);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--color-bg); }

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 0.25rem;
}

.footer__copy {
  font-size: 0.875rem;
  color: rgba(244, 240, 230, 0.4);
  margin-bottom: 0.25rem;
}

.footer__legal a {
  font-size: 0.875rem;
  color: rgba(244, 240, 230, 0.5);
  transition: color 0.2s;
}

.footer__legal a:hover { color: var(--color-bg); }

/* 15. Animations / Keyframes ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 16. prefers-reduced-motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }

  .hero__canvas { display: none; }
  .hero__video  { display: none; }
  .hero {
    background-image: url('./webp_frames/frame_0001.webp');
    background-size: cover;
    background-position: center;
  }

  .hero__scroll-line::after { display: none; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* 17. Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --sp-lg:  3rem;
    --sp-xl:  6rem;
    --sp-2xl: 8rem;
  }

  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento__cell--lg {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --sp-lg:  1.5rem;
    --sp-xl:  4rem;
    --sp-2xl: 6rem;
  }

  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  .nav {
    padding: 1.25rem var(--sp-lg);
  }

  .nav__links {
    display: none;
  }

  .hero__canvas { display: none; }
  .hero__video  { display: none; }
  .hero {
    background-image: url('./webp_frames/frame_0001.webp');
    background-size: cover;
    background-position: center;
  }

  .hero__overlay {
    padding: var(--sp-lg);
  }

  .hero__scroll { display: none; }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item {
    border-right: none;
    border-bottom: 1px solid rgba(244, 240, 230, 0.12);
    padding: var(--sp-md) 0;
  }

  .stats__item:nth-child(3),
  .stats__item:nth-child(4) {
    border-bottom: none;
  }

  .feature-split {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xl);
  }

  .feature-split--reverse {
    direction: ltr;
  }

  .feature-split__content {
    padding: var(--sp-sm) 0;
  }

  .bento__grid {
    grid-template-columns: 1fr;
  }

  .bento__cell--lg {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lifestyle { height: 70vh; }

  .cta__row { flex-direction: column; }
  .cta__btn { width: 100%; justify-content: center; }

  .cta__locations { flex-direction: column; gap: var(--sp-md); }
  .cta__divider { width: 100%; height: 1px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Scroll Progress Bar ─────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 10001;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-espresso), var(--color-amber));
  transform-origin: left;
  transform: scaleX(0);
}

/* ── Text Scramble Char ──────────────────────────────────────────── */
.scramble-char {
  color: var(--color-amber);
  opacity: 0.6;
  font-style: italic;
}

/* ── Hero Particles Canvas ───────────────────────────────────────── */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Marquee Section ─────────────────────────────────────────────── */
.marquee-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.marquee-row {
  overflow: hidden;
  padding: 0.875rem var(--sp-lg);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-row:last-child { border-bottom: none; }

.marquee-row--dark {
  background: var(--color-espresso);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  white-space: nowrap;
  flex-wrap: wrap;
}

.marquee__track--a {
  animation: marqueeLeft 35s linear infinite;
}

.marquee__track--b {
  animation: marqueeRight 42s linear infinite;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Centered-start variants (track is 3× wide, loop one third = 33.333%) */
@keyframes marqueeLeftCenter {
  from { transform: translateX(-33.333%); }
  to   { transform: translateX(-66.666%); }
}

@keyframes marqueeRightCenter {
  from { transform: translateX(-66.666%); }
  to   { transform: translateX(-33.333%); }
}

.marquee__track span {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  flex-shrink: 0;
}

.marquee-row--dark .marquee__track span {
  color: rgba(244, 240, 230, 0.55);
}

.marquee-dot {
  color: var(--color-amber) !important;
  font-size: 0.625rem !important;
  letter-spacing: 0 !important;
}

/* ── 3D Tilt Card ────────────────────────────────────────────────── */
.tilt-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(196,137,79,0) 0%, transparent 65%);
  transition: background 0.1s;
}

/* ── Spotlight ───────────────────────────────────────────────────── */
.spotlight {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,137,79,0.06) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 0;
  will-change: transform, opacity;
}

/* ── Floating tags already handled by GSAP — just ensure they render ── */
.flavor-chip,
.origin-badge {
  will-change: transform;
}

/* ── Reviews Section ─────────────────────────────────────────────── */
.reviews {
  padding: var(--sp-xl) 0 var(--sp-xl);
  background: var(--color-bg);
}

.reviews__header {
  text-align: center;
  padding: 0 var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.reviews__heading {
  font-size: var(--text-heading);
  color: var(--color-text);
}

/* ── Carousel shell ── */
.reviews__carousel {
  position: relative;
  padding-bottom: var(--sp-lg);
}

.reviews__scroll {
  overflow-x: scroll;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--sp-sm) 0 var(--sp-md);
}

.reviews__scroll::-webkit-scrollbar { display: none; }

.reviews__cards {
  display: flex;
  gap: 1rem;
  padding: 0 max(var(--sp-lg), calc((100vw - 1620px) / 2));
  width: max-content;
}

/* ── Review Card (the tall 21st.dev style) ── */
.review-card {
  flex-shrink: 0;
  width: 320px;
  height: 520px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--color-surface) 0%, #FFF7EA 100%);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(44, 26, 14, 0.10);
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s ease;
  text-align: center;
}

@media (min-width: 768px) {
  .review-card { width: 384px; height: 560px; }
}

.review-card:hover {
  transform: rotate(2deg) scale(1.025) translateY(-4px);
  box-shadow: 0 20px 60px rgba(44, 26, 14, 0.18);
}

/* background photo at low opacity */
.review-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transition: opacity 0.4s;
  pointer-events: none;
}

.review-card:hover .review-card__bg { opacity: 0.26; }

/* circular profile photo */
.review-card__avatar-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(44, 26, 14, 0.25);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  filter: saturate(0.35) sepia(0.3);
  margin-bottom: 1.25rem;
}

.review-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* quote text on card (truncated) */
.review-card__quote {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(26, 18, 8, 0.72);
  line-height: 1.5;
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
}

.review-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(26, 18, 8, 0.75);
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.2;
}

.review-card__desig {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(26, 18, 8, 0.5);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  position: relative;
  z-index: 1;
  margin: 0.375rem 0 0;
}

/* ── Arrow buttons ── */
.reviews__arrows {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 0 var(--sp-lg);
  margin-top: 0.5rem;
}

.reviews__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-espresso);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.2s var(--ease-out-expo);
}

.reviews__arrow:hover:not(:disabled) {
  background: #1A0E06;
  transform: scale(1.08);
}

.reviews__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Lightbox ── */
.reviews__lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
}

.reviews__lightbox[hidden] { display: none; }

.reviews__lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 8, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reviews__lightbox-panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, var(--color-surface) 0%, #FFF7EA 100%);
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 3.5rem;
  box-shadow: 0 32px 80px rgba(44, 26, 14, 0.25);
  scrollbar-width: none;
}

.reviews__lightbox-panel::-webkit-scrollbar { display: none; }

.reviews__lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-espresso);
  color: var(--color-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reviews__lightbox-close:hover {
  background: #1A0E06;
  transform: scale(1.08);
}

.reviews__lb-desig {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(26, 18, 8, 0.5);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  margin-bottom: 0.5rem;
}

.reviews__lb-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(26, 18, 8, 0.72);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.reviews__lb-quote-wrap {
  position: relative;
}

.reviews__lb-quote-icon {
  color: var(--color-espresso);
  margin-bottom: 0.75rem;
}

.reviews__lb-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(26, 18, 8, 0.7);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .reviews__lightbox-panel { padding: 2rem 1.5rem; }
  .review-card { width: 260px; height: 480px; }
}
