/* ============================================================
   Le Lee Wine — brand stylesheet
   Direction: light-luxury parchment · wine-red · gold crest
   ============================================================ */

:root {
  /* palette */
  --parchment:      #f3e9d6;
  --parchment-deep: #ece0c7;
  --paper:          #faf5ea;
  --ink:            #2c211a;
  --ink-soft:       #4a382c;
  --ink-mute:       #6a5442;
  --wine:           #7c1d1c;
  --wine-deep:      #5a1414;
  --wine-soft:      #a23a28;
  --gold:           #c39a3c;
  --gold-light:     #e7cd82;
  --gold-deep:      #9a6f22;
  --charcoal:       #1a1512;
  --line:           rgba(124, 29, 28, 0.18);

  /* type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui:      "Jost", -apple-system, "Segoe UI", sans-serif;

  --text-hero:  clamp(3.4rem, 1.5rem + 8vw, 9rem);
  --text-h2:    clamp(2.1rem, 1.2rem + 3.4vw, 4rem);
  --text-lead:  clamp(1.15rem, 1rem + 0.6vw, 1.5rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gold-grad: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 38%, var(--gold-light) 62%, var(--gold-deep) 100%);
  --gold-grad-hero: linear-gradient(120deg, #6f4d15 0%, #9a6f22 30%, #c19236 55%, #a2761f 78%, #7a5417 100%);

  /* motion — strong curves, short UI durations, longer only for marketing reveals */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease:        var(--ease-out);
  --dur-press:   140ms;
  --dur-hover:   200ms;
  --dur-ui:      240ms;
  --dur-reveal:  640ms;
  --dur-clip:    900ms;
  --stagger:     60ms;

  --nav-h: 5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--wine); color: var(--paper); }

/* paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(124,29,28,0.05) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(154,111,34,0.05) 0, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

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

/* every control: no 300ms tap delay, no long-press selection, press feedback below */
a, button, [role="button"] { touch-action: manipulation; }
button, .btn, .nav-links a, .nav-toggle {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}

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

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--wine);
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap { width: min(1180px, 90vw); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* section rhythm; anchors land below the fixed nav */
section { position: relative; z-index: 2; padding-block: var(--space-section); scroll-margin-top: var(--nav-h); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1rem 2.1rem; border-radius: 2px; text-decoration: none;
  cursor: pointer; position: relative;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-hover) ease,
    border-color var(--dur-hover) ease,
    color var(--dur-hover) ease,
    box-shadow var(--dur-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn-solid {
  background: var(--wine); color: var(--paper);
  border: 1px solid var(--wine);
  box-shadow: 0 10px 30px -12px rgba(124,29,28,0.6);
}
.btn-ghost {
  background: transparent; color: var(--wine);
  border: 1px solid var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--wine-deep); box-shadow: 0 14px 32px -12px rgba(124,29,28,0.7); }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 3rem);
  padding-top: calc(1.1rem + env(safe-area-inset-top));
  transition: background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.nav.scrolled {
  background: rgba(243,233,214,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(44,33,26,0.5);
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-brand img { height: 46px; width: auto; }
.nav-brand .name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--wine); line-height: 1;
}
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; font-weight: 500;
  position: relative; padding-block: 0.3rem;
  transition: color var(--dur-hover) ease, opacity var(--dur-press) ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out);
}
.nav-links a:active { opacity: 0.6; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--wine); }
  .nav-links a:hover::after { transform: scaleX(1); }
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; color: var(--wine);
  padding: 0.4rem; margin: -0.4rem; border-radius: 4px;
  transition: transform var(--dur-press) var(--ease-out);
}
.nav-toggle:active { transform: scale(0.92); }
.nav-toggle svg line { transition: transform var(--dur-ui) var(--ease-in-out), opacity var(--dur-press) ease; transform-origin: center; }
.nav[aria-expanded="true"] .nav-toggle .l1 { transform: translateY(5px) rotate(45deg); }
.nav[aria-expanded="true"] .nav-toggle .l2 { opacity: 0; }
.nav[aria-expanded="true"] .nav-toggle .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav { background: rgba(243,233,214,0.92); box-shadow: 0 1px 0 var(--line); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.6rem clamp(1.2rem, 5vw, 3rem) 1rem;
    background: rgba(243,233,214,0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 32px -28px rgba(44,33,26,0.55);
    /* closed: faded, nudged up, and out of the tab order. exit is faster than enter. */
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity 160ms ease, transform 160ms var(--ease-out), visibility 0s linear 160ms;
  }
  .nav[aria-expanded="true"] .nav-links {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out), visibility 0s;
  }
  .nav-links a { width: 100%; padding: 0.85rem 0; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh; display: grid; place-items: center;
  text-align: center; padding-top: 6rem; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 70vw; height: 70vw; max-width: 780px; max-height: 780px;
  top: 50%; left: 50%; transform: translate(-50%, -46%);
  background:
    radial-gradient(circle at 50% 45%, rgba(162,58,40,0.20) 0, rgba(162,58,40,0.10) 30%, transparent 62%),
    radial-gradient(circle at 60% 60%, rgba(195,154,60,0.16) 0, transparent 55%);
  filter: blur(6px);
}
/* first-screen entrance: once per visit, so it may breathe; still ease-out so movement is immediate */
.hero .eyebrow  { animation: rise 700ms var(--ease-out) 60ms both; }
.hero h1        { animation: rise 700ms var(--ease-out) 140ms both; }
.hero .hero-tag { animation: rise 700ms var(--ease-out) 220ms both; }
.hero .hero-cta { animation: rise 700ms var(--ease-out) 300ms both; }
.pour-scene     { animation: rise 800ms var(--ease-out) 260ms both; }

.hero-logo { margin: 1.2rem 0 0.4rem; line-height: 0; }
.hero-logo img {
  width: clamp(240px, 26vw, 400px); height: auto;
  filter: drop-shadow(0 10px 24px rgba(122, 84, 23, 0.22));
}
.hero-tag {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-lead); color: var(--ink);
  max-width: 34ch; margin: 1.4rem auto 0;
}
.hero-tag .hero-made { display: block; margin-top: 0.4em; white-space: nowrap; }
.hero-tag .nep { display:block; font-family: var(--font-ui); font-style: normal; font-size: 0.62em; letter-spacing: 0.3em; color: var(--gold-deep); margin-top: 0.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.hero-scroll {
  position: absolute; bottom: calc(2rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wine);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.7;
}
.hero-scroll span { width: 1px; height: 34px; background: linear-gradient(var(--wine), transparent); animation: pulse 2s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- hero layout with pour animation ---------- */

.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; text-align: left; }
.hero-copy { max-width: 40ch; }
.hero-copy .eyebrow, .hero-copy h1, .hero-copy .hero-tag, .hero-copy .hero-cta { margin-left: 0; margin-right: 0; }
.hero-copy .hero-tag { margin-inline: 0; max-width: 38ch; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-copy h1 .line2 { text-align: left; }

.pour-scene {
  position: relative; width: min(430px, 78vw); aspect-ratio: 42 / 54;
  margin-inline: auto;
}
.pour-bottle {
  position: absolute; left: 50%; top: 41%; height: 54%; width: auto;
  transform-origin: 50% 8%;
  transform: translate(-50%, 0) rotate(152deg);
  filter: drop-shadow(0 18px 26px rgba(44, 33, 26, 0.4));
  animation: pourTilt 8s var(--ease-in-out) infinite;
  z-index: 3;
}
.pour-cork {
  position: absolute; left: 50%; top: 40%; width: 20px; height: 26px;
  margin-left: -10px; border-radius: 5px 5px 4px 4px;
  background: linear-gradient(#c8a06a, #9c6b34); opacity: 0; z-index: 4;
  box-shadow: inset 0 -3px 4px rgba(0,0,0,0.25);
  animation: corkPop 8s var(--ease-out) infinite;
}
.pour-stream {
  position: absolute; left: 50%; top: 47%; width: 6px; height: 14%;
  margin-left: -3px; transform-origin: 50% 0; opacity: 0; z-index: 2;
  border-radius: 3px;
  background: linear-gradient(var(--wine-soft), var(--wine) 40%, var(--wine-deep));
  animation: pourStream 8s var(--ease-in-out) infinite;
}
.pour-glass { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); width: 46%; height: 52%; z-index: 1; }
.pour-glass svg { width: 100%; height: 100%; overflow: visible; }
.glass-body { fill: rgba(255,255,255,0.04); stroke: rgba(90,60,20,0.35); stroke-width: 2; }
.glass-shine { fill: rgba(255,255,255,0.14); }
.pour-wine { fill: url(#wineGrad); }
.pour-glass::after {
  content: ""; position: absolute; left: 50%; bottom: -2%; width: 70%; height: 8%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124,29,28,0.22), transparent 70%);
}

@keyframes pourTilt {
  0%, 7%   { transform: translate(-50%, 0) rotate(150deg); }
  20%      { transform: translate(-50%, 0) rotate(159deg); }
  68%      { transform: translate(-50%, 0) rotate(161deg); }
  84%,100% { transform: translate(-50%, 0) rotate(150deg); }
}
@keyframes corkPop {
  0%   { opacity: 0; transform: translateY(0) rotate(0); }
  3%   { opacity: 1; transform: translateY(-4px) rotate(-8deg); }
  9%   { opacity: 1; transform: translateY(-46px) rotate(24deg); }
  15%  { opacity: 0; transform: translateY(-74px) rotate(46deg); }
  100% { opacity: 0; }
}
@keyframes pourStream {
  0%, 19%  { opacity: 0; transform: scaleY(0); }
  24%      { opacity: 1; transform: scaleY(1); }
  66%      { opacity: 1; transform: scaleY(1); }
  73%      { opacity: 0; transform: scaleY(0.25); }
  100%     { opacity: 0; }
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 4rem; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.5rem; }
  .hero-copy { max-width: 46ch; }
  .hero-copy .hero-cta { justify-content: center; }
  .hero-logo img { width: clamp(220px, 64vw, 300px); }
  .pour-scene { width: min(260px, 62vw); margin-top: 0.5rem; margin-bottom: 0; }
  .hero-scroll { display: none; }
}

/* ============================================================
   HERITAGE
   ============================================================ */

.heritage { background: var(--paper); }
.heritage-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.heritage-copy .eyebrow { display: block; margin-bottom: 1rem; }
.heritage-copy h2 { font-size: var(--text-h2); color: var(--wine); margin-bottom: 1.4rem; }
.heritage-copy p { margin-bottom: 1.1rem; max-width: 46ch; color: var(--ink-soft); }
.heritage-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stat .num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-top: 0.3rem; }
.heritage-visual { position: relative; }
.heritage-visual .badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--wine); color: var(--paper); padding: 1.1rem 1.5rem;
  border-radius: 3px; box-shadow: 0 20px 40px -20px rgba(124,29,28,0.7); max-width: 220px;
}
.heritage-visual .badge strong { font-family: var(--font-display); font-size: 1.15rem; display: block; letter-spacing: 0.04em; }
.heritage-visual .badge span { font-size: 0.72rem; letter-spacing: 0.08em; opacity: 0.85; }

.heritage-visual > img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 52%;
  border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(44,33,26,0.6);
}
/* thin gold keyline inset on the photo, like a label border */
.heritage-visual::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(231,205,130,0.55);
  border-radius: 2px; pointer-events: none; z-index: 1;
}
.heritage-visual .badge { z-index: 2; }

/* ============================================================
   COLLECTION
   ============================================================ */

.collection { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 3.4rem; }
.section-head .eyebrow { display: block; margin-bottom: 0.9rem; }
.section-head h2 { font-size: var(--text-h2); color: var(--wine); margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); }

.wine-spot {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; text-align: left; padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.wine-spot + .wine-spot { border-top: 1px solid var(--line); }
.wine-spot.flip .wine-spot-visual { order: 2; }

.wine-spot-visual {
  position: relative; display: grid; place-items: center;
  min-height: clamp(380px, 46vw, 560px);
}
.wine-spot-visual img {
  position: relative; z-index: 2; height: clamp(360px, 44vw, 540px); width: auto;
  filter: drop-shadow(0 30px 36px rgba(44,33,26,0.38));
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .wine-spot:hover .wine-spot-visual img { transform: translateY(-6px) rotate(-1deg); }
}
.wine-spot-glow {
  position: absolute; z-index: 1; width: 82%; aspect-ratio: 1; top: 50%; left: 50%;
  transform: translate(-50%, -50%); border-radius: 50%; filter: blur(10px);
}
.glow-gold { background: radial-gradient(circle, rgba(195,154,60,0.32), rgba(231,205,130,0.14) 45%, transparent 70%); }
.glow-wine { background: radial-gradient(circle, rgba(162,58,40,0.30), rgba(124,29,28,0.12) 45%, transparent 70%); }
.wine-spot-numeral {
  position: absolute; z-index: 0; top: 0; left: 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(6rem, 14vw, 11rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(154,111,34,0.35);
  letter-spacing: -0.02em; user-select: none;
}
.wine-spot.flip .wine-spot-numeral { left: auto; right: 0; }
.wine-spot-copy .kind { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.wine-spot-copy h3 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); color: var(--wine); margin: 0.6rem 0 0.9rem; }
.wine-spot-copy .lead { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ink); margin-bottom: 0.9rem; }
.wine-spot-copy p { color: var(--ink-soft); max-width: 50ch; margin-bottom: 1rem; }
.wine-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem;
  margin: 1.6rem 0; padding-block: 1.4rem; border-block: 1px solid var(--line);
}
.wine-facts dt { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 0.2rem; }
.wine-facts dd { font-size: 0.92rem; color: var(--ink); }
.wine-spot-copy .notes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wine-spot-copy .notes span {
  font-size: 0.68rem; letter-spacing: 0.06em; padding: 0.35rem 0.75rem;
  border: 1px solid var(--line); border-radius: 20px; color: var(--wine); background: rgba(124,29,28,0.03);
}

/* ============================================================
   NATURAL / PROCESS
   ============================================================ */

.natural { background: linear-gradient(165deg, var(--charcoal), var(--wine-deep)); color: var(--paper); }
.natural::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.35; mix-blend-mode: screen;
  background: radial-gradient(circle at 78% 20%, rgba(195,154,60,0.35) 0, transparent 45%);
}
.natural .wrap { position: relative; z-index: 1; }
.natural .section-head h2 { color: var(--paper); }
.natural .section-head .eyebrow { color: var(--gold-light); }
.natural .section-head p { color: rgba(250,245,234,0.75); }
.natural-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature {
  border: 1px solid rgba(231,205,130,0.2); border-radius: 4px; padding: 1.8rem 1.5rem;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out);
  background: rgba(255,255,255,0.02);
}
@media (hover: hover) and (pointer: fine) {
  .feature:hover { background: rgba(231,205,130,0.06); border-color: rgba(231,205,130,0.4); transform: translateY(-3px); }
}
.feature .ico { width: 30px; height: 30px; margin-bottom: 1rem; color: var(--gold-light); }
.feature .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.35rem; color: var(--gold-light); margin-bottom: 0.5rem; }
.feature p { font-size: 0.9rem; color: rgba(250,245,234,0.72); }

/* ============================================================
   COMMUNITY — the story, chapter by chapter
   ============================================================ */

.community { background: var(--paper); text-align: center; }
.community .section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.story { list-style: none; position: relative; text-align: left; }
/* the thread that ties the chapters together */
.story::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  opacity: 0.55;
}
.story-chapter {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; padding-block: clamp(2rem, 4vw, 3.5rem); position: relative;
}
.story-chapter.flip .story-text { order: 2; }
.story-text { max-width: 44ch; justify-self: end; }
.story-chapter.flip .story-text { justify-self: start; }
.story-num {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--gold-deep);
  border: 1px solid var(--gold); background: var(--paper); margin-bottom: 1.1rem;
}
.story-text h3 { font-size: clamp(1.8rem, 1rem + 2.2vw, 2.7rem); color: var(--wine); margin-bottom: 0.9rem; }
.story-text p { color: var(--ink-soft); margin-bottom: 1rem; }
/* the one word that carries the chapter */
.story-text .theirs {
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.35em;
  color: var(--wine); line-height: 1; padding-inline: 0.05em;
  background: linear-gradient(transparent 62%, rgba(195,154,60,0.38) 62%, rgba(195,154,60,0.38) 92%, transparent 92%);
}
.story-text .btn { margin-top: 0.6rem; }
.story-points { display: flex; gap: 1.2rem 1.8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.story-points > div { flex: 1 1 150px; }
.story-points strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--wine); }
.story-points span { font-size: 0.82rem; color: var(--ink-mute); }
.story-points > div + div { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.story-text .quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  color: var(--wine); border-left: 3px solid var(--gold); padding-left: 1.1rem; margin: 1.4rem 0 0;
}

.story-figure {
  position: relative; margin: 0; overflow: hidden; border-radius: 5px;
  box-shadow: 0 28px 56px -32px rgba(44,33,26,0.55); background: var(--parchment-deep);
}
.story-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.story-figure img.focus-top { object-position: center 12%; }
/* single figure: portrait window */
.story-chapter > .story-figure { aspect-ratio: 4 / 5; max-height: 72vh; }
/* a landscape photo shown uncropped, in its own proportions */
.story-chapter > .story-figure.whole { aspect-ratio: 3 / 2; max-height: none; align-self: center; }
.story-figure.whole img { object-fit: contain; object-position: center; }
/* two figures stacked with an offset so they read as a sequence */
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: start; }
.story-pair .story-figure { aspect-ratio: 4 / 5; }
.story-pair .story-figure:nth-child(2) { margin-top: 2.4rem; }
.story-pair .story-figure.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.story-pair .story-figure.wide + .story-figure { margin-top: 0; grid-column: 2; aspect-ratio: 3 / 4; }
/* three portraits */
.story-trio { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.9rem; }
.story-trio .story-figure:first-child { grid-row: 1 / span 2; }
.story-trio .story-figure { min-height: 180px; }
.story-trio .story-figure:first-child { aspect-ratio: 3 / 4; }

@media (max-width: 860px) {
  .story::before { display: none; }
  .story-chapter, .story-chapter.flip { grid-template-columns: 1fr; gap: 1.4rem; }
  .story-chapter.flip .story-text { order: 0; }
  .story-text { justify-self: start; }
  .story-chapter > .story-figure { aspect-ratio: 4 / 3; }
  .story-chapter > .story-figure.whole { aspect-ratio: 3 / 2; }
  .story-pair .story-figure:nth-child(2) { margin-top: 0; }
  .story-pair .story-figure.wide + .story-figure { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .story-trio { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .story-trio .story-figure:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer { background: var(--charcoal); color: rgba(250,245,234,0.7); padding-block: 4rem calc(2rem + env(safe-area-inset-bottom)); text-align: center; }
.footer img { height: 120px; width: auto; margin: 0 auto 1.4rem; }
.footer .name { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-light); letter-spacing: 0.1em; }
.footer .tag { font-style: italic; font-family: var(--font-display); font-size: 1.1rem; color: rgba(250,245,234,0.8); margin: 0.4rem 0 1.6rem; }
.footer-meta { display: flex; gap: 1.5rem 2.5rem; justify-content: center; flex-wrap: wrap; font-size: 0.8rem; letter-spacing: 0.05em; margin-bottom: 1.8rem; }
.footer-meta span { color: rgba(250,245,234,0.6); }
.footer-meta a, .footer-legal a {
  color: var(--gold-light); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-hover) ease, opacity var(--dur-press) ease;
}
.footer-meta a:active, .footer-legal a:active { opacity: 0.6; }
@media (hover: hover) and (pointer: fine) {
  .footer-meta a:hover, .footer-legal a:hover { text-decoration-color: currentColor; }
}
.footer-legal { font-size: 0.72rem; color: rgba(250,245,234,0.4); border-top: 1px solid rgba(231,205,130,0.15); padding-top: 1.6rem; max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   SCROLL REVEALS
   ------------------------------------------------------------
   .reveal       fade + short rise, ease-out so movement is immediate
   .reveal-clip  image wipes up from its bottom edge (clip-path, composited)
   --i           stagger index set by the script for grid children
   ============================================================ */

.reveal {
  opacity: 0; transform: translateY(14px);
  transition:
    opacity var(--dur-reveal) ease calc(var(--i, 0) * var(--stagger)),
    transform var(--dur-reveal) var(--ease-out) calc(var(--i, 0) * var(--stagger));
}
.reveal.in { opacity: 1; transform: none; }

/* the observed element stays unclipped (a fully clipped box never "intersects");
   the wipe runs on the image inside it */
.reveal-clip > img, .clip-group > img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-clip) var(--ease-in-out) calc(var(--i, 0) * var(--stagger));
}
.reveal-clip.in > img, .clip-group.in > img { clip-path: inset(0 0 0 0); }
.story-figure.reveal-clip, .heritage-visual.reveal-clip > img { box-shadow: none; }
.story-figure.reveal-clip.in { box-shadow: 0 28px 56px -32px rgba(44,33,26,0.55); }
.heritage-visual.reveal-clip.in > img { box-shadow: 0 40px 80px -40px rgba(44,33,26,0.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .heritage-grid, .community-grid { grid-template-columns: 1fr; }
  .heritage-visual { order: -1; }
  .natural-grid { grid-template-columns: 1fr 1fr; }
  .wine-spot, .wine-spot.flip { grid-template-columns: 1fr; gap: 1.5rem; }
  .wine-spot.flip .wine-spot-visual { order: 0; }
  .wine-spot-visual { min-height: auto; }
  .wine-spot-visual img { height: clamp(300px, 60vw, 420px); }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 2rem, 1180px); }
  .nav { padding: 0.9rem 1rem; padding-top: calc(0.9rem + env(safe-area-inset-top)); }
  .nav-brand img { height: 52px; }
  .nav-brand .name { font-size: 2rem; }
  .hero-tag { font-size: 1.45rem; line-height: 1.7; }
  .hero-cta { width: 100%; }
  .btn { width: 100%; padding-inline: 1rem; }
  .heritage-visual .badge { left: 0.8rem; bottom: -1rem; max-width: 200px; padding: 0.9rem 1.1rem; }
  .natural-grid { grid-template-columns: 1fr; }
  .wine-facts { grid-template-columns: 1fr; }
  .heritage-stats { gap: 1.6rem; }
}

/* ============================================================
   REDUCED MOTION — fewer and gentler, not none.
   Keep the fades that aid comprehension; drop movement and loops.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero h1, .hero .hero-tag, .hero .hero-cta, .pour-scene { animation: fadeOnly 300ms ease both; }
  .pour-bottle, .pour-cork, .pour-stream, .hero-scroll span { animation: none; }
  .pour-stream { opacity: 1; transform: none; }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .reveal-clip > img, .clip-group > img { clip-path: none; transition: none; }
  .btn, .wine-spot-visual img, .feature, .nav-links, .nav-toggle svg line { transition-duration: 0ms; }
  .btn:active, .nav-toggle:active { transform: none; }
}
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
