/* Domaine la Prut — v2, built from design-system/domaine-la-prut (MASTER + pages/home overrides).
   Pattern: Scroll-Triggered Storytelling · Style: Motion-Driven + Vintage Analog / Retro Film. */

@font-face { font-family: "Cinzel"; src: url(../fonts/cinzel-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cinzel"; src: url(../fonts/cinzel-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Josefin Sans"; src: url(../fonts/josefin-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Josefin Sans"; src: url(../fonts/josefin-sans-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

:root {
  /* MASTER palette */
  --color-primary: #7C2D12;
  --color-on-primary: #FFFFFF;
  --color-secondary: #B91C1C;
  --color-accent: #A16207;
  --color-on-accent: #FFFFFF;
  --color-background: #FEF2F2;
  --color-foreground: #450A0A;
  --color-card: #FFFFFF;
  --color-card-foreground: #450A0A;
  --color-muted: #ECEDF0;
  --color-muted-foreground: #475569;
  --color-border: #FECACA;
  --color-destructive: #DC2626;
  --color-ring: #7C2D12;

  /* pages/home chapter overrides */
  --night: #1C0507;
  --gold-text: #E0B158;
  --film: #1A120B;
  --cream: #F5E6C8;
  --sepia: #D4A574;
  --teal: #163536;
  --teal-mid: #4A7B7C;
  --pink: #E8B4B8;
  --error-on-dark: #FECACA;
  --film-frame: #0D0906;
  --film-gate: #241810;
  --film-glow: #4A3220;
  --polaroid-paper: #FFFDF8;

  /* label colours of each bottle (wine card panels) */
  --label-contessa: #2E5A45;
  --label-duchessa: #E8B4B8;
  --label-symphonie: #1D5560;
  --label-prestige: #7A1D2C;
  --label-grand: #141110;
  --label-brut: #D4A574;

  /* z-index scale */
  --z-content: 1;
  --z-flash: 80;
  --z-grain: 90;
  --z-menu: 55;
  --z-nav: 60;
  --z-modal: 200;
  --z-skip: 300;

  /* vintage analog variables (style: vintage-analog-retro-film) */
  --sepia-amount: 20%;
  --contrast: 1.1;
  --saturation: .8;
  --grain-opacity: .15;
  --light-leak-color: rgba(255, 200, 100, .2);

  /* MASTER spacing, density 3 */
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* MASTER shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, .1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, .15);

  --font-heading: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Josefin Sans", "Futura", system-ui, sans-serif;
  --nav-h: 72px;
  --pad: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
a, button, select, summary, [role="tab"], .card { cursor: pointer; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -64px; z-index: var(--z-skip); padding: 12px 16px; background: var(--color-card); color: var(--color-foreground); border-radius: 8px; box-shadow: var(--shadow-lg); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--gold-text); color: var(--night); }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .ch-journey :focus-visible, .ch-wines :focus-visible, .climax :focus-visible, .foot :focus-visible, .nav :focus-visible, .menu :focus-visible { outline-color: var(--gold-text); }

/* Film grain (vintage analog) */
.grain { position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; overflow: hidden; }
.grain::before {
  content: ""; position: absolute; inset: -50%; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) 5; /* five seconds of flicker, then still (WCAG 2.2.2) */
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}

/* ── Buttons (MASTER spec) ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: .04em; line-height: 1.2; text-decoration: none;
  transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-md); }
.btn--primary:hover { opacity: .9; transform: translateY(-1px); }
.btn:active, .chip:active, [role="tab"]:active, .lang button:active { scale: .98; }
.btn--primary:active { transform: translateY(0); opacity: 1; }
a, button, select, input, textarea, [role="tab"] { touch-action: manipulation; }
.btn--secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn--secondary:hover { background: color-mix(in srgb, var(--color-primary) 8%, transparent); transform: translateY(-1px); }
.btn--on-dark { color: var(--cream); border-color: color-mix(in srgb, var(--cream) 70%, transparent); }
.btn--on-dark:hover { background: color-mix(in srgb, var(--cream) 10%, transparent); border-color: var(--cream); }
.btn--ring { box-shadow: 0 0 0 2px var(--cream), var(--shadow-md); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
.btn .icon { width: 18px; height: 18px; transition: transform 200ms ease; }
.btn:hover .icon { transform: translateX(3px); }

/* ── Language switch ───────────────────────────────────────────────── */
.lang { display: inline-flex; gap: 2px; }
.lang button { min-width: 44px; min-height: 44px; padding: 0 8px; font-weight: 600; font-size: .85rem; letter-spacing: .12em; opacity: .65; border-radius: 6px; transition: opacity 200ms ease, background-color 200ms ease; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold-text); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang button:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.lang--dark button:hover { background: color-mix(in srgb, var(--color-primary) 8%, transparent); }
.lang--dark button[aria-pressed="true"] { text-decoration-color: var(--color-primary); }

/* ── Navigation + progress indicator ───────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav); height: var(--nav-h);
  display: flex; align-items: center; gap: var(--space-lg); padding-inline: var(--pad);
  color: var(--cream); transition: background-color 300ms ease, box-shadow 300ms ease;
}
.nav.is-solid { background: rgba(28, 5, 7, .94); box-shadow: var(--shadow-lg); }
@supports (backdrop-filter: blur(8px)) { .nav.is-solid { background: rgba(28, 5, 7, .82); backdrop-filter: blur(8px); } }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.nav__brand svg { width: 22px; height: 31px; color: var(--gold-text); }
.nav__brand span { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; }
.nav__links { display: flex; gap: var(--space-md); margin-inline: auto; }
.nav__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: .95rem; font-weight: 500; letter-spacing: .04em; text-decoration: none; opacity: .82; transition: opacity 200ms ease; position: relative; }
.nav__links a b { font-family: var(--font-heading); font-weight: 600; color: var(--gold-text); }
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a[aria-current="true"]::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 2px; background: var(--gold-text); border-radius: 2px; }
.nav__end { display: flex; align-items: center; gap: var(--space-sm); }
.nav__menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; }
.nav__menu .icon { width: 24px; height: 24px; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(245, 230, 200, .12); }
.progress i { display: block; height: 100%; background: var(--gold-text); transform-origin: left; transform: scaleX(var(--p, 0)); }

.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--night); color: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: var(--space-xl); padding: calc(var(--nav-h) + var(--space-lg)) var(--pad) var(--space-xl); }
.menu nav { display: grid; gap: var(--space-sm); }
.menu nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; font-family: var(--font-heading); font-size: clamp(1.6rem, 7vw, 2.4rem); text-decoration: none; }
.menu nav a b { color: var(--gold-text); font-weight: 600; min-width: 2.2ch; }

/* ── Modal (MASTER spec): age gate + wine dialog ───────────────────── */
.gate, .overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--space-md); background: rgba(0, 0, 0, .5); }
@supports (backdrop-filter: blur(4px)) { .gate, .overlay { backdrop-filter: blur(4px); } }
.gate { background: rgba(28, 5, 7, .88); }
.modal { position: relative; background: var(--color-card); color: var(--color-card-foreground); border-radius: 16px; padding: var(--space-lg); box-shadow: var(--shadow-xl); width: 90%; max-width: 500px; }
.gate__modal { display: grid; justify-items: center; text-align: center; gap: var(--space-md); }
.gate__crest { width: 48px; height: 67px; color: var(--color-primary); }
.gate__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.6rem; letter-spacing: .08em; }
.gate__modal > p { max-width: 30ch; }
.gate__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }
.btn--on-light { min-width: 120px; }
.gate__no { color: var(--color-primary); font-weight: 600; }

/* ── Hero / intro hook ─────────────────────────────────────────────── */
.hero { position: relative; background: var(--night); color: var(--cream); }
.hero__pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; align-items: center; }
.hero__layer { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: sepia(var(--sepia-amount)) contrast(var(--contrast)) saturate(var(--saturation)) brightness(.55); }
.hero__shade { background: linear-gradient(90deg, rgba(28, 5, 7, .92) 0%, rgba(28, 5, 7, .6) 45%, rgba(28, 5, 7, .15) 100%), linear-gradient(0deg, rgba(28, 5, 7, .85) 0%, transparent 40%); }
.leak {
  pointer-events: none; mix-blend-mode: screen; opacity: .9;
  background: radial-gradient(40% 55% at 85% 20%, var(--light-leak-color), transparent 70%), radial-gradient(30% 40% at 10% 90%, rgba(185, 28, 28, .18), transparent 70%);
  animation: leak 5s ease-in-out 1 both;
}
@keyframes leak { 0% { opacity: .55; transform: translate3d(0, 0, 0); } 100% { opacity: 1; transform: translate3d(-4%, 3%, 0); } }
.hero__content { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin-inline: auto; padding: calc(var(--nav-h) + var(--space-lg)) var(--pad) var(--space-2xl); }
.hero__crest { width: 44px; height: 62px; color: var(--gold-text); margin-bottom: var(--space-md); }
.hero__title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.8rem, 8vw, 7rem); line-height: 1; letter-spacing: .03em; max-width: 9ch; }
.hero__script { font-family: var(--font-heading); font-size: clamp(.85rem, 1.1vw, 1rem); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-text); margin-top: var(--space-md); }
.hero__tag { font-family: var(--font-heading); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.25; margin-top: var(--space-lg); }
.hero__lede { max-width: 42ch; margin-top: var(--space-sm); color: color-mix(in srgb, var(--cream) 88%, var(--night)); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero__bottle { position: absolute; z-index: 1; right: clamp(4%, 9vw, 12%); bottom: -4vh; height: 86vh; pointer-events: none; }
.hero__bottle img { height: 100%; width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.hero__cue { position: absolute; z-index: 2; left: 50%; bottom: var(--space-md); translate: -50% 0; display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; padding: 0 var(--space-sm); font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--cream); opacity: .85; }
.hero__cue .icon { animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Chapters ──────────────────────────────────────────────────────── */
.chapter { position: relative; padding-block: clamp(var(--space-2xl), 12vw, 10rem); }
.chapter, .climax { overflow-x: clip; } /* rotated polaroids must not widen the page */
.chapter__head { margin-bottom: var(--space-2xl); max-width: min(100%, 900px); }
.chapter__num { font-weight: 600; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-md); }
.h2 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.08; letter-spacing: .01em; text-wrap: balance; }
.h3 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; margin-bottom: var(--space-md); }
.lead { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.5; }
.mini-cta { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 48px; margin-top: var(--space-2xl); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: gap 200ms ease, color 200ms ease; }
.mini-cta:hover { gap: var(--space-md); }
.mini-cta--dark { color: var(--gold-text); }

/* I · The land */
.ch-land { background: var(--color-background); color: var(--color-foreground); }
.land__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.land__text { display: grid; gap: var(--space-md); max-width: 58ch; }
.polaroids { position: relative; min-height: 460px; }
.polaroid { position: absolute; margin: 0; background: var(--polaroid-paper); padding: 12px 12px 44px; box-shadow: var(--shadow-xl), 0 2px 4px rgba(0, 0, 0, .08); }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: sepia(var(--sepia-amount)) contrast(var(--contrast)) saturate(var(--saturation)); }
.polaroid figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: .95rem; color: var(--color-muted-foreground); }
.polaroid--a { width: min(78%, 440px); top: 0; left: 0; transform: rotate(-4deg); }
.polaroid--b { width: min(58%, 320px); right: 0; bottom: 0; transform: rotate(3.5deg); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin: var(--space-3xl) 0 0; padding-top: var(--space-xl); border-top: 1px solid var(--color-border); }
.stats div { display: flex; flex-direction: column-reverse; gap: var(--space-xs); }
.stats dt { font-size: .95rem; color: var(--color-muted-foreground); }
.stats dd { margin: 0; font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.origins { margin-top: var(--space-3xl); }
.origins__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-lg); }
.origins__label { font-weight: 600; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-sm); }
.origins__list { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.6; }

/* II · The journey (film strip) */
.ch-journey { background: var(--film); color: var(--cream); padding-block: 0 clamp(var(--space-2xl), 10vw, 8rem); }
.ch-journey .chapter__num { color: var(--sepia); }
.journey__pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: var(--space-xl); padding-block: calc(var(--nav-h) + var(--space-lg)) var(--space-xl); overflow: hidden; }
.journey__head { max-width: 1200px; }
.journey__head .h2 { max-width: 900px; }
.film { position: relative; }
.film__track { display: flex; gap: var(--space-md); padding-inline: var(--pad); width: max-content; }
.frame {
  position: relative; flex: none; width: min(62vw, 640px); background: var(--film-frame); padding: 34px 18px 18px; border-radius: 4px;
  box-shadow: var(--shadow-xl);
}
.frame::before, .frame::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(245, 230, 200, .55) 10px 22px, transparent 22px 32px);
  -webkit-mask: linear-gradient(#000, #000); border-radius: 2px; opacity: .5;
}
.frame::before { top: 12px; }
.frame::after { display: none; }
.frame__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--film-gate); }
.frame__img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(45%) contrast(var(--contrast)) saturate(.7); }
.frame--bottles .frame__img { display: flex; align-items: flex-end; justify-content: center; gap: 8%; background: radial-gradient(60% 70% at 50% 60%, var(--film-glow), var(--film-gate)); }
.frame--bottles .frame__img img { width: auto; height: 92%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .6)); }
.frame__no { margin-top: var(--space-md); font-weight: 600; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sepia); font-variant-numeric: tabular-nums; }
.frame__cap { margin-top: var(--space-xs); font-family: var(--font-heading); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.35; max-width: 34ch; }
.journey__after { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-lg); }
.journey__after .mini-cta { margin-top: 0; }
.people { display: grid; gap: 0; max-width: 640px; }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: var(--space-md) 0; border-top: 1px solid rgba(245, 230, 200, .18); }
.people__name { font-family: var(--font-heading); font-size: 1.35rem; }
.people__role { font-size: .95rem; color: var(--sepia); text-align: right; }

/* III · The wines */
.ch-wines { background: var(--teal); color: var(--cream); }
.ch-wines .chapter__num { color: var(--gold-text); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.chip { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(245, 230, 200, .45); font-weight: 600; font-size: .95rem; letter-spacing: .04em; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip:hover { border-color: var(--cream); background: rgba(245, 230, 200, .08); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--teal); border-color: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: var(--color-background); color: var(--color-card-foreground); box-shadow: var(--shadow-md);
  transition: box-shadow 200ms ease, translate 200ms ease;
}
.card:hover, .card:focus-within { box-shadow: var(--shadow-xl); translate: 0 -2px; }
.card:active { scale: .98; }
.card__hit { position: absolute; inset: 0; z-index: 2; border-radius: 12px; }
.card__hit:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.card__panel { position: relative; aspect-ratio: 4 / 4.4; background: var(--panel); overflow: hidden; }
.card__panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 40%, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none; }
.card__panel img { position: absolute; z-index: 1; left: 50%; bottom: -2%; height: 88%; width: auto; max-width: none; translate: -50% 0; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .35)); transition: transform 300ms var(--ease-out); }
.card:hover .card__panel img, .card:focus-within .card__panel img { transform: translateY(-10px) rotate(-2deg); }
.card__body { display: grid; gap: var(--space-xs); padding: var(--space-md); }
.card__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.card__kind { font-size: .95rem; color: var(--color-muted-foreground); }
.card__more, .card__badge { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-sm); font-weight: 600; font-size: .95rem; color: var(--color-primary); }
.card__more .icon, .card__badge .icon { width: 18px; height: 18px; }
.card__badge { color: var(--color-accent); }
.card.is-out { display: none; }
.tbc { font-size: .6em; font-weight: 700; margin-left: 2px; vertical-align: super; line-height: 0; color: inherit; }

.recog { margin-top: var(--space-3xl); }
.recog__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-xl); margin: 0; }
.recog__list div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding: var(--space-md) 0; border-top: 1px solid rgba(245, 230, 200, .2); }
.recog__list dt { font-family: var(--font-heading); font-weight: 600; font-size: 1.6rem; color: var(--gold-text); white-space: nowrap; }
.recog__list dd { margin: 0; }
.range { margin-top: var(--space-2xl); }
.range__list { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.7; max-width: 60ch; color: color-mix(in srgb, var(--cream) 92%, var(--teal)); }

/* Climax CTA */
.climax { background: var(--color-primary); color: var(--color-on-primary); padding-block: clamp(var(--space-2xl), 12vw, 10rem); }
.climax__title { max-width: 900px; margin-bottom: var(--space-2xl); }
.climax__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.tabs [role="tab"] { min-height: 44px; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; letter-spacing: .04em; color: rgba(255, 255, 255, .82); transition: background-color 200ms ease, color 200ms ease; }
.tabs [role="tab"]:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tabs [role="tab"][aria-selected="true"] { background: var(--cream); color: var(--color-primary); }
.panel { display: grid; gap: var(--space-lg); }
.partner { display: grid; gap: var(--space-sm); padding: var(--space-md); border-radius: 12px; background: rgba(0, 0, 0, .16); border: 1px solid rgba(255, 255, 255, .14); }
.partner strong { font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; }
.partner__row { display: flex; align-items: flex-start; gap: 10px; min-height: 28px; }
a.partner__row { min-height: 44px; align-items: center; width: fit-content; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
a.partner__row:hover { text-decoration-color: #fff; }
.partner__row .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-text); }
a.partner__row .icon { margin-top: 0; }
.partners__lede { margin: calc(var(--space-sm) * -1) 0 var(--space-lg); color: rgba(255, 255, 255, .88); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide, .form__end, .form__done { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--gold-text); margin-left: 2px; }
.form__req { grid-column: 1 / -1; font-size: .95rem; color: rgba(255, 255, 255, .85); margin-top: calc(var(--space-sm) * -1); }
.input {
  width: 100%; padding: 12px 16px; border: 1px solid #E2E8F0; border-radius: 8px; font: inherit; font-size: 16px;
  background: #fff; color: var(--color-foreground); transition: border-color 200ms ease, box-shadow 200ms ease;
}
.input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px #7C2D1220, 0 0 0 3px var(--gold-text); }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237C2D12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m5 8 5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.input[aria-invalid="true"] { border-color: var(--color-destructive); box-shadow: 0 0 0 2px var(--error-on-dark); }
.err { font-size: .95rem; font-weight: 600; color: var(--error-on-dark); }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-sm); }
.form__help { font-size: .95rem; color: rgba(255, 255, 255, .85); max-width: 34ch; }
.form__done { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md); border-radius: 8px; background: rgba(0, 0, 0, .18); font-weight: 600; }

/* Footer */
.foot { background: var(--night); color: var(--cream); padding-block: var(--space-3xl) var(--space-lg); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-xl); }
.foot__brand svg { width: 36px; height: 50px; color: var(--gold-text); margin-bottom: var(--space-sm); }
.foot__word { font-family: var(--font-heading); font-size: 1.3rem; letter-spacing: .1em; }
.foot__script { font-size: .9rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text); margin-top: 4px; }
.foot__addr { display: grid; gap: 4px; color: color-mix(in srgb, var(--cream) 88%, var(--night)); }
.foot__addr strong { color: var(--cream); }
.foot__addr a, .foot__nav a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }
.foot__nav { display: grid; align-content: start; }
.foot__nav a { text-decoration: none; opacity: .9; }
.foot__nav a:hover { opacity: 1; text-decoration: underline; }
.foot__legal { display: grid; gap: var(--space-xs); margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: 1px solid rgba(245, 230, 200, .15); font-size: .9rem; color: color-mix(in srgb, var(--cream) 80%, var(--night)); }

/* Wine dialog */
.wine-modal { max-width: 880px; width: 92%; padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-height: calc(100svh - 48px); }
.wine-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--color-foreground); box-shadow: var(--shadow-md); transition: background-color 200ms ease; }
.wine-modal__close:hover { background: #fff; }
.wine-modal__panel { background: var(--panel, var(--teal)); display: grid; place-items: center; padding: var(--space-lg); min-height: 320px; }
.wine-modal__panel img { max-height: min(60svh, 520px); width: auto; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .4)); }
.wine-modal__body { padding: var(--space-xl) var(--space-lg) var(--space-lg); overflow-y: auto; display: grid; gap: var(--space-sm); align-content: start; }
.wine-modal__name { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; padding-right: 44px; }
.wine-modal__kind { color: var(--color-muted-foreground); font-size: .95rem; }
.wine-modal__notes { margin-top: var(--space-sm); }
.wine-modal__spec { display: grid; gap: 0; margin: var(--space-sm) 0 var(--space-md); }
.wine-modal__spec div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-md); padding: 12px 0; border-top: 1px solid var(--color-border); }
.wine-modal__spec dt { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--color-muted-foreground); }
.wine-modal__spec dt .icon { width: 18px; height: 18px; color: var(--color-primary); }
.wine-modal__spec dd { margin: 0; }
.bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--color-border); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--color-primary); border-radius: 3px; transform-origin: left; }

.grape { display: block; }
.grape + .grape { margin-top: 8px; }
.leak-flash { position: fixed; inset: 0; z-index: var(--z-flash); pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(60% 50% at 80% 10%, rgba(255, 200, 100, .35), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(255, 140, 80, .2), transparent 70%); }

/* ── Responsive (375 / 768 / 1024 / 1440) ──────────────────────────── */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__end { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__bottle { right: 2%; height: 70vh; opacity: .9; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__end .lang, .nav__cta { display: none; }
  .hero__bottle { display: none; }
  .hero__shade { background: linear-gradient(0deg, rgba(28, 5, 7, .95) 10%, rgba(28, 5, 7, .55) 60%, rgba(28, 5, 7, .4) 100%); }
  .land__grid, .climax__grid, .journey__after { grid-template-columns: 1fr; }
  .polaroids { min-height: 0; display: grid; gap: var(--space-md); }
  .polaroid { position: relative; width: calc(100% - 16px) !important; justify-self: center; transform: rotate(-1.5deg); }
  .polaroid--b { transform: rotate(1.5deg); width: 82% !important; justify-self: end; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-lg); }
  .origins__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  /* film strip: frames stack vertically on small screens (no horizontal swipe on main content) */
  .journey__pin { min-height: 0; padding-block: var(--space-2xl) var(--space-lg); }
  .film__track { flex-direction: column; width: auto; gap: var(--space-lg); }
  .frame { width: 100%; }
  .recog__list { grid-template-columns: 1fr; }
  .wine-modal { grid-template-columns: 1fr; }
  .wine-modal__panel { min-height: 0; padding: var(--space-md); }
  .wine-modal__panel img { max-height: 32svh; }
  .foot__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}
@media (max-width: 600px) {
  .chapter__num, .origins__label, .frame__no, .hero__script, .hero__cue { font-size: .9rem; }
  .cards { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .people li { flex-direction: column; gap: 4px; }
  .people__role { text-align: left; }
  .wine-modal__spec div { grid-template-columns: 1fr; gap: 2px; }
  .recog__list div { grid-template-columns: 4.6rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}
