/* ==========================================================================
   Quinta da Lagoa Velha — design system
   Paleta extraída da própria quinta: o vermelho da adega, o bronze do
   emblema, a ardósia das portas e o creme dos rótulos.
   ========================================================================== */

:root {
  --ink: #120e0c;
  --ink-2: #1b1512;
  --ink-3: #261d19;
  --paper: #f1ebe1;
  --paper-2: #e7ded0;
  --red: #a8372b;
  --red-deep: #6e1f19;
  --bronze: #b4895a;
  --bronze-soft: #d6b98f;
  --slate: #3d4a52;

  --fg: var(--paper);
  --fg-muted: rgba(241, 235, 225, 0.62);
  --fg-faint: rgba(241, 235, 225, 0.16);
  --bg: var(--ink);

  --serif: 'Marcellus', 'Optima', Georgia, serif;
  --accent: var(--bronze-soft);
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --label: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1680px;
  --header-h: 112px;
  --glass-gap: 16px;
  --glass-side: max(10px, calc(var(--gutter) - 28px));

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.6rem, 1.1rem + 2vw, 2.8rem);
  --fs-2xl: clamp(2.4rem, 1.4rem + 4.4vw, 5.6rem);
  --fs-3xl: clamp(3.2rem, 1.2rem + 8vw, 10rem);
  --fs-mega: clamp(4.5rem, 1rem + 15vw, 19rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-synthesis: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

/* ---------- Theme scopes ---------- */
.theme-paper {
  --fg: var(--ink);
  --fg-muted: rgba(18, 14, 12, 0.64);
  --fg-faint: rgba(18, 14, 12, 0.14);
  --bg: var(--paper);
  --accent: var(--red);
  background: var(--bg);
  color: var(--fg);
}
.theme-red {
  --fg: var(--paper);
  --fg-muted: rgba(241, 235, 225, 0.72);
  --fg-faint: rgba(241, 235, 225, 0.22);
  --bg: var(--red);
  --accent: var(--ink);
  background: var(--bg);
  color: var(--fg);
}
.theme-ink { --bg: var(--ink); background: var(--bg); color: var(--fg); }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-optical-sizing: auto; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-3xl);
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.display em, .h1 em, .h2 em, .h3 em { font-style: normal; font-weight: 400; color: var(--accent); }
.mega {
  font-family: var(--serif);
  font-size: var(--fs-mega);
  line-height: 0.82;
  letter-spacing: 0;
  font-weight: 400;
}
.h1 { font-family: var(--serif); font-size: var(--fs-2xl); line-height: 0.98; letter-spacing: 0; font-weight: 400; }
.h2 { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.06; letter-spacing: 0; font-weight: 400; }
.h3 { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.2; letter-spacing: 0; font-weight: 400; }
.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--fg); max-width: 38ch; }
.body { color: var(--fg-muted); max-width: 62ch; }
.body p + p { margin-top: 1em; }
.eyebrow {
  font-family: var(--label);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.mono { font-family: var(--label); font-size: var(--fs-sm); letter-spacing: 0.02em; }
.accent { color: var(--bronze); }
.terroir { font-family: var(--serif); color: var(--accent); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 14vw, 220px) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 128px) 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }
.rule { height: 1px; background: var(--fg-faint); border: 0; margin: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  --b-bg: var(--paper);
  --b-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-fg);
  font-family: var(--label);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform 160ms var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 420ms var(--ease-out);
  z-index: -1;
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: var(--paper); }
  .btn:hover::before { clip-path: inset(0 0 0 0); }
  .btn:hover .arrow { transform: translateX(4px); }
}
.btn--ghost { --b-bg: transparent; --b-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-faint); }
.btn--red { --b-bg: var(--red); --b-fg: var(--paper); }
.btn--red::before { background: var(--ink); }
.theme-paper .btn:not(.btn--ghost) { --b-bg: var(--ink); --b-fg: var(--paper); }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--label);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 6px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleX(0); }
}
.arrow { width: 18px; height: 10px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: transform 500ms var(--ease-out);
}
/* Sticky: ao fazer scroll surge uma cápsula de vidro destacada do topo e das margens */
.site-header::before {
  content: "";
  position: absolute;
  inset: var(--glass-gap) var(--glass-side);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)), rgba(18, 14, 12, 0.58);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 300ms ease, transform 500ms var(--ease-out);
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; transform: none; }
.menu-open .site-header::before { opacity: 0; }
.site-header .wrap { position: relative; }
.site-header .brand-logo { transform-origin: left center; transition: transform 500ms var(--ease-out); }
.site-header.is-scrolled .brand-logo { transform: scale(0.74); }
.menu-open .site-header .brand-logo { transform: none; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
/* Logótipo original (emblema + assinatura), o mesmo do rodapé */
.site-header .brand-logo { display: block; height: 84px; aspect-ratio: 713 / 444; background: currentColor; -webkit-mask: url(../img/logo-white.png) center / contain no-repeat; mask: url(../img/logo-white.png) center / contain no-repeat; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  position: relative;
  font-family: var(--label);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%) scale(0);
  transition: transform 250ms var(--ease-out);
}
.nav a[aria-current='page']::after { transform: translateX(-50%) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: translateX(-50%) scale(1); }
}
/* Nota legal do custo da chamada, junto a cada número de telefone */
.call-note { display: block; margin-top: 4px; font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.04em; line-height: 1.4; color: var(--fg-muted); }
/* Seletor de idioma PT / EN */
.nav .lang-switch, .lang-switch { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font-family: var(--label); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.nav .lang-switch::after { display: none; }
.lang-switch:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .lang-switch:hover { background: #fff; color: var(--ink); } }
.mobile-menu .meta .lang-switch { justify-self: start; margin-bottom: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform 400ms var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--red);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 600ms var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu a.big { font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.05; letter-spacing: 0; display: block; }
.mobile-menu li { overflow: hidden; }
.mobile-menu li a { transform: translateY(100%); transition: transform 600ms var(--ease-out); }
.menu-open .mobile-menu li a { transform: none; }
.mobile-menu .meta { font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.1em; opacity: 0.8; display: grid; gap: 6px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  :root { --header-h: 84px; --glass-gap: 10px; --glass-side: 6px; }
  .site-header .brand-logo { height: 60px; }
}

/* ---------- Page transition ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--red);
  pointer-events: none;
  display: grid;
  place-items: center;
  clip-path: inset(0 0 0 0);
}
.curtain .brand-mark { width: 56px; height: 56px; color: var(--paper); opacity: 0; }
html.is-ready .curtain { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out) 100ms; }
html.is-leaving .curtain { clip-path: inset(0 0 0 0); transition: clip-path 550ms var(--ease-in-out); }
html.is-leaving .curtain .brand-mark { opacity: 1; transition: opacity 300ms ease 250ms; }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: rgba(18, 14, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: var(--gutter);
  opacity: 1;
  transition: opacity 400ms ease;
}
.age-gate[hidden] { display: none; }
.age-gate.is-closing { opacity: 0; }
.age-card {
  width: min(520px, 100%);
  background: var(--paper);
  color: var(--ink);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  display: grid;
  gap: 24px;
  justify-items: center;
  transition: transform 400ms var(--ease-out), opacity 400ms var(--ease-out);
}
@starting-style {
  .age-card { transform: translateY(16px) scale(0.98); opacity: 0; }
}
.age-card .brand-logo { width: 180px; aspect-ratio: 713 / 444; background: var(--ink); -webkit-mask: url(../img/logo-white.png) center / contain no-repeat; mask: url(../img/logo-white.png) center / contain no-repeat; }
.age-card h2 { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; letter-spacing: 0; }
.age-actions { display: flex; gap: 12px; }
.age-actions .btn { min-width: 120px; justify-content: center; }
.age-actions .btn:not(.btn--ghost) { --b-bg: var(--ink); --b-fg: var(--paper); }
.age-remember { display: inline-flex; gap: 10px; align-items: center; font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(18,14,12,.6); cursor: pointer; }
.age-remember input { accent-color: var(--red); width: 16px; height: 16px; }
.age-denied { font-size: var(--fs-sm); color: var(--red); }

/* ---------- Reveal primitives ---------- */
.line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.line > span { display: block; will-change: transform; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.media { position: relative; overflow: hidden; background: var(--ink-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media[data-parallax] img { height: 120%; margin-top: -10%; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
}
.hero canvas, .hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero .hero-fallback { object-fit: cover; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,14,12,.55) 0%, rgba(18,14,12,0) 30%, rgba(18,14,12,0) 55%, rgba(18,14,12,.85) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding-bottom: clamp(32px, 5vw, 64px);
}
.hero-title { font-size: clamp(2.6rem, 1rem + 11.5vw, 15.5rem); line-height: 0.9; letter-spacing: 0; }
.hero-title .line > span { white-space: nowrap; }
.hero-title .line:nth-child(2) { padding-left: 0.9em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(24px, 4vw, 48px); }
.hero-bottom .lead { max-width: 30ch; font-size: var(--fs-base); color: var(--fg-muted); }
.hero-index { display: flex; align-items: center; gap: 16px; font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.12em; }
.hero-index .bar { width: 96px; height: 1px; background: var(--fg-faint); position: relative; overflow: hidden; }
.hero-index .bar i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 40px; background: var(--fg-faint); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--paper); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 720px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 13.5vw; }
  .hero-title .line:nth-child(2) { padding-left: 0.4em; }
}

/* Manifesto */
.manifesto { position: relative; }
.manifesto-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 120px); align-items: start; }
.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1rem + 2.4vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: 0;
}
.manifesto-quote .w { opacity: 0.14; transition: none; }
.manifesto-sign { margin-top: 48px; display: flex; gap: 20px; align-items: center; }
.manifesto-sign .sig { font-family: var(--serif); letter-spacing: 0.04em; font-size: 1.6rem; }
.manifesto-media { position: sticky; top: calc(var(--header-h) + 40px); aspect-ratio: 4 / 5; }
.manifesto-media .tag { position: absolute; left: 16px; bottom: 16px; z-index: 2; color: var(--paper); }
@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-media { position: relative; top: 0; max-width: 420px; }
}

/* Year block */
.year-block { overflow: hidden; }
.year-block .mega { color: var(--red); white-space: nowrap; }
.year-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); align-items: end; margin-top: clamp(32px, 5vw, 80px); }
.year-grid .a { grid-column: 1 / span 4; aspect-ratio: 1; }
.year-grid .b { grid-column: 6 / span 3; aspect-ratio: 1; margin-bottom: 18%; }
.year-grid .t { grid-column: 9 / span 4; display: grid; gap: 28px; }
@media (max-width: 900px) {
  .year-grid .a { grid-column: 1 / span 7; }
  .year-grid .b { grid-column: 8 / span 5; margin-bottom: 0; }
  .year-grid .t { grid-column: 1 / -1; margin-top: 24px; }
}

/* Horizontal wines rail */
.rail-section { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(24px, 4vh, 48px); }
@media (max-width: 720px) { .rail-head { flex-direction: column; align-items: flex-start; } }
.btn { white-space: nowrap; }
.rail-head .h1 { font-size: clamp(2.4rem, 1rem + 4.4vh, 5rem); }
.rail { display: flex; gap: clamp(16px, 2.4vw, 40px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.rail-card {
  position: relative;
  --stage-h: clamp(300px, 52vh, 560px);
  width: calc(var(--stage-h) * 0.74);
  flex: none;
  display: grid;
  grid-template-rows: auto auto;
  gap: 20px;
}
.rail-card .stage {
  position: relative;
  height: var(--stage-h);
  background: var(--ink-2);
  display: grid;
  place-items: end center;
  overflow: hidden;
  padding-bottom: 7%;
}
.rail-card .stage::before {
  content: '';
  position: absolute;
  left: 50%; top: 58%;
  width: 90%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgba(168,55,43,.55)), transparent);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.7;
  transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out);
}
.rail-card .stage img { position: absolute; left: 0; right: 0; bottom: 7%; margin: 0 auto; height: 82%; width: auto; max-width: none; filter: drop-shadow(0 30px 30px rgba(0,0,0,.45)); transition: transform 700ms var(--ease-out); }
.rail-card .meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.rail-card .meta .h3 { font-size: 1.5rem; }
.rail-card .num { position: absolute; top: 18px; left: 18px; z-index: 1; font-family: var(--label); font-size: var(--fs-xs); color: var(--fg-muted); }
@media (hover: hover) and (pointer: fine) {
  .rail-card:hover .stage::before { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  .rail-card:hover .stage img { transform: translateY(-10px) rotate(-2deg); }
}
.rail-progress { margin-top: clamp(24px, 4vh, 48px); height: 1px; background: var(--fg-faint); position: relative; }
.rail-progress i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--fg-faint); }
.stat { padding: 32px 24px 0 0; border-right: 1px solid var(--fg-faint); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: clamp(3rem, 2rem + 4vw, 6.5rem); line-height: 1; letter-spacing: -0.015em; }
.stat .num sup { font-size: 0.35em; vertical-align: top; position: relative; top: 0.4em; margin-left: 4px; font-family: var(--label); letter-spacing: 0; }
.stat p { margin-top: 12px; color: var(--fg-muted); font-size: var(--fs-sm); max-width: 26ch; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--fg-faint); }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.full-media { position: relative; height: clamp(420px, 90vh, 1000px); overflow: hidden; }
.full-media > img, .full-media > .media { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Perlage band */
.perlage-band { position: relative; overflow: hidden; background: #0c0a08; }
.perlage-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.perlage-band .bg { position: absolute; inset: 0; opacity: 0.3; }
.perlage-band .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,10,8,.2), rgba(12,10,8,.85) 70%); }
.perlage-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.perlage-band .wrap { position: relative; z-index: 2; }
.perlage-year { font-family: var(--serif); font-size: var(--fs-mega); line-height: 0.8; letter-spacing: 0; color: transparent; -webkit-text-stroke: 1px var(--bronze-soft); }

/* Visit CTA */
.visit { position: relative; min-height: 110vh; display: grid; align-items: end; overflow: hidden; }
.visit .media { position: absolute; inset: 0; }
.visit .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,14,12,.9), rgba(18,14,12,.1) 60%); }
.visit .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vw, 120px); }
.xp-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--fg-faint); margin-top: 48px; }
.xp-list li { padding: 24px 24px 0 0; display: grid; gap: 8px; }
.xp-list li + li { padding-left: 24px; border-left: 1px solid var(--fg-faint); }
.xp-list .n { font-family: var(--label); font-size: var(--fs-xs); color: var(--fg-muted); }
@media (max-width: 720px) {
  .xp-list { grid-template-columns: 1fr; }
  .xp-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--fg-faint); }
  .xp-list li { padding: 20px 0; }
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(64px, 12vw, 180px)) 0 clamp(48px, 6vw, 96px); overflow: hidden; }
.page-hero .display { font-size: clamp(3.8rem, 1rem + 13vw, 17rem); }
.page-hero-meta { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: clamp(32px, 4vw, 64px); }
.page-hero-media { margin-top: clamp(32px, 4vw, 64px); height: clamp(360px, 78vh, 900px); }
@media (max-width: 720px) { .page-hero-meta { flex-direction: column; align-items: flex-start; } }

/* Chapters (passado / presente / futuro) */
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); }
.chapters-media { position: sticky; top: calc(var(--header-h) + 24px); height: calc(100vh - var(--header-h) - 48px); }
.chapters-media .media { position: absolute; inset: 0; }
.chapters-media .media + .media { clip-path: inset(100% 0 0 0); }
.chapter { min-height: 90vh; display: grid; align-content: center; gap: 24px; }
.chapter .idx { font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.14em; color: var(--fg-muted); }
.chapter .mega { font-size: clamp(4rem, 2rem + 8vw, 11rem); }
@media (max-width: 900px) {
  .chapters { grid-template-columns: 1fr; }
  .chapters-media { display: none; }
  .chapter { min-height: auto; padding: 48px 0; }
  .chapter .inline-media { display: block !important; aspect-ratio: 4/3; margin-bottom: 8px; }
}
.chapter .inline-media { display: none; }

/* Timeline */
.timeline { position: relative; overflow: hidden; }
.timeline-track { display: flex; width: max-content; gap: 0; padding: 0 var(--gutter); }
.tl-item { width: clamp(300px, 34vw, 560px); flex: none; padding: 0 clamp(24px, 3vw, 56px) 0 0; position: relative; }
.tl-item .yr { font-family: var(--serif); font-size: clamp(4rem, 2rem + 6vw, 9rem); line-height: 1; letter-spacing: -0.015em; }
.tl-item .dot { height: 1px; background: var(--fg-faint); margin: 28px 0; position: relative; }
.tl-item .dot::before { content: ''; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); }
.tl-item p { color: var(--fg-muted); max-width: 36ch; }
.tl-item .tag { margin-bottom: 10px; }
.timeline-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--fg-faint); }
@media (max-width: 720px) {
  .timeline-track { flex-direction: column; width: 100%; gap: 48px; }
  .tl-item { width: 100%; }
  .timeline-line { display: none; }
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.member { display: grid; gap: 14px; }
.member .media { aspect-ratio: 3 / 4; }
.member .media img { filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: filter 600ms ease, transform 900ms var(--ease-out); }
.member .role { font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.member .h3 { font-size: 1.45rem; }
.member:first-child { grid-column: span 2; grid-row: span 2; }
.member:first-child .media { aspect-ratio: auto; height: 100%; min-height: 420px; }
.member:first-child { grid-template-rows: 1fr auto auto; }
@media (hover: hover) and (pointer: fine) {
  .member:hover .media img { filter: grayscale(0); transform: scale(1.06); }
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .member:first-child { grid-column: span 2; grid-row: auto; }
  .member:first-child .media { min-height: 0; aspect-ratio: 4/5; }
}

/* Castas */
.castas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.casta-list li { font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3vw, 4.4rem); line-height: 1.1; letter-spacing: 0; border-bottom: 1px solid var(--fg-faint); padding: 10px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.casta-list li .mono { color: var(--fg-muted); font-size: var(--fs-xs); }
.casta-list li.star { color: var(--red); }
@media (max-width: 720px) { .castas { grid-template-columns: 1fr; } }

/* Drag strip */
.strip { display: flex; gap: clamp(12px, 2vw, 24px); overflow-x: auto; padding: 0 var(--gutter) 8px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging * { pointer-events: none; }
.strip figure { flex: none; width: clamp(240px, 30vw, 460px); scroll-snap-align: start; }
.strip .media { aspect-ratio: 16 / 10; }
.strip figcaption { margin-top: 12px; }

/* Data table */
.data-table { display: grid; }
.data-table > div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--fg-faint); }
.data-table > div:last-child { border-bottom: 1px solid var(--fg-faint); }
.data-table dt { font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); padding-top: 4px; }
.data-table dd { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }

/* Marcos */
.marcos { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 120px); align-items: start; }
.marcos-portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.marcos-portrait .media { aspect-ratio: 532 / 720; }
.marcos-portrait figcaption { margin-top: 12px; font-size: var(--fs-xs); color: var(--fg-muted); }
.marco { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--fg-faint); }
.marco .yr { font-family: var(--serif); font-size: 4rem; line-height: 0.9; letter-spacing: -0.015em; color: var(--red); }
@media (max-width: 900px) {
  .marcos { grid-template-columns: 1fr; }
  .marcos-portrait { position: relative; top: 0; max-width: 320px; }
  .marco { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================================
   VINHOS — catálogo
   ========================================================================== */
.filters { position: relative; display: inline-flex; padding: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--fg-faint); flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  position: relative;
  z-index: 1;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--label);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-muted);
  transition: color 250ms ease;
}
.filters button[aria-pressed='true'] { color: var(--ink); }
.filters .pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--paper); transition: transform 450ms var(--ease-out), width 450ms var(--ease-out); }
.filters button sup { font-size: 0.6rem; margin-left: 4px; opacity: 0.6; }

.wine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(40px, 5vw, 72px); }
.wine-card { position: relative; display: grid; gap: 18px; transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.wine-card.is-hidden { display: none; }
.wine-card .stage {
  position: relative;
  aspect-ratio: 3 / 4.2;
  background: var(--tone, var(--ink-2));
  overflow: hidden;
  display: grid;
  place-items: end center;
  padding-bottom: 8%;
}
.wine-card .stage::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 7%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.wine-card .stage img { position: absolute; z-index: 1; left: 0; right: 0; bottom: 9%; margin: 0 auto; height: 76%; width: auto; max-width: none; transition: transform 700ms var(--ease-out); }
.wine-card[data-size='magnum'] .stage img { height: 84%; }
.wine-card[data-size='box'] .stage img { height: auto; width: 82%; max-height: 66%; object-fit: contain; }
.wine-card .badge { position: absolute; z-index: 2; top: 16px; left: 16px; font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--fg-faint); color: var(--fg-muted); background: rgba(18,14,12,.25); }
.wine-card .badge.new { background: var(--red); color: var(--paper); box-shadow: none; }
.wine-card .info { display: grid; gap: 6px; }
.wine-card .info .h3 { font-size: 1.4rem; }
.wine-card .info .sub { display: flex; justify-content: space-between; font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--fg-muted); text-transform: uppercase; }
.wine-card .hover-castas { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .wine-card:hover .stage img { transform: translateY(-14px) scale(1.03); }
  .wine-card:hover .hover-castas { opacity: 1; transform: none; }
}
.wine-card:active .stage { transform: scale(0.99); }
.cat-heading { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 48px 0 8px; border-bottom: 1px solid var(--fg-faint); }
.cat-heading:first-child { padding-top: 0; }
.cat-heading.is-hidden { display: none; }
@media (max-width: 1100px) { .wine-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .wine-grid { grid-template-columns: repeat(2, 1fr); } .wine-card .info .h3 { font-size: 1.1rem; } }

/* ==========================================================================
   VINHO — ficha
   ========================================================================== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.pdp-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--tone, var(--ink-2));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pdp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdp-stage .glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow, rgba(180,137,90,.35)), transparent); }
.pdp-stage img { position: relative; z-index: 1; height: 74vh; width: auto; filter: drop-shadow(0 40px 40px rgba(0,0,0,.5)); }
.pdp-stage[data-size='box'] img { height: auto; width: 78%; max-height: 70vh; object-fit: contain; }
.pdp-stage[data-size='magnum'] img { height: 82vh; }
.pdp-stage .yr-ghost { position: absolute; bottom: -0.12em; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 32vw; line-height: 1; letter-spacing: 0; color: rgba(241,235,225,.04); white-space: nowrap; pointer-events: none; }
.pdp-info { padding: calc(var(--header-h) + 64px) var(--gutter) 96px; display: grid; gap: 48px; align-content: start; }
.pdp-title { font-family: var(--serif); font-size: clamp(2.8rem, 1rem + 4.5vw, 6.4rem); line-height: 0.95; letter-spacing: -0.015em; font-weight: 400; }
.pdp-title em { display: block; font-size: 0.5em; color: var(--bronze); margin-top: 0.2em; letter-spacing: 0; }
.pdp-block { display: grid; gap: 16px; }
.pdp-block .body { font-size: 1.12rem; color: var(--fg); opacity: 0.86; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--fg-faint); display: inline-flex; align-items: center; font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.06em; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--fg-faint); }
.specs > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--fg-faint); }
.specs dt { font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.specs dd { font-family: var(--serif); font-size: 1.5rem; margin-top: 6px; line-height: 1.1; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sold-out { font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.pdp-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--fg-faint); }
.pdp-nav a { padding: 24px 0; display: grid; gap: 6px; }
.pdp-nav a + a { text-align: right; border-left: 1px solid var(--fg-faint); padding-left: 24px; }
.pdp-nav .h3 { font-size: 1.3rem; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-stage { position: relative; height: 82svh; }
  .pdp-stage img { height: 64svh; }
  .pdp-stage[data-size='magnum'] img { height: 70svh; }
  .pdp-info { padding-top: 48px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Enoturismo
   ========================================================================== */
.xp-rows { border-top: 1px solid var(--fg-faint); }
.xp-row { position: relative; display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 44px) 0; border-bottom: 1px solid var(--fg-faint); }
.xp-row .n { font-family: var(--label); font-size: var(--fs-xs); color: var(--fg-muted); }
.xp-row .h1 { font-size: clamp(2rem, 1rem + 4vw, 5.2rem); transition: transform 500ms var(--ease-out), color 300ms ease; }
.xp-row .mono { color: var(--fg-muted); text-align: right; max-width: 28ch; }
@media (hover: hover) and (pointer: fine) {
  .xp-row:hover .h1 { transform: translateX(16px); color: var(--red); }
}
.xp-float { position: fixed; z-index: 40; top: 0; left: 0; width: 300px; aspect-ratio: 3/4; pointer-events: none; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity 250ms ease, transform 400ms var(--ease-out); }
.xp-float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.xp-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
.xp-float img.is-on { opacity: 1; }
@media (max-width: 720px) {
  .xp-row { grid-template-columns: 40px 1fr; }
  .xp-row .mono { grid-column: 2; text-align: left; }
  .xp-float { display: none; }
}
.gallery-3 { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: clamp(12px, 1.6vw, 24px); align-items: end; }
.gallery-3 .media { aspect-ratio: 400 / 659; }
.gallery-3 .media:nth-child(2) { margin-bottom: 12%; }
@media (max-width: 720px) { .gallery-3 { grid-template-columns: 1fr 1fr; } .gallery-3 .media:nth-child(3) { display: none; } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 8px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--fg-faint);
  padding: 10px 0 12px;
  border-radius: 0;
  transition: border-color 200ms ease;
  appearance: none;
  width: 100%;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fg); }
.field .err { font-size: var(--fs-xs); color: var(--bronze-soft); min-height: 1em; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--bronze-soft); }
.theme-paper .field .err { color: var(--red); }
.theme-paper .field.invalid input, .theme-paper .field.invalid textarea, .theme-paper .field.invalid select { border-color: var(--red); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--fg-faint); font-size: var(--fs-sm); transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.check input:checked + span { background: var(--fg); color: var(--bg); box-shadow: none; }
.check input:focus-visible + span { outline: 1px solid var(--bronze); outline-offset: 3px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.form-foot small { color: var(--fg-muted); max-width: 46ch; }
.form-success { display: none; padding: 40px 0; }
.form.is-sent { display: none; }
.form.is-sent + .form-success { display: grid; gap: 16px; animation: fadeUp 600ms var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

/* Contactos */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 120px); }
.contact-list { display: grid; gap: 40px; align-content: start; }
.contact-list .big { font-family: var(--serif); font-size: clamp(1.6rem, 1rem + 1.8vw, 2.6rem); line-height: 1.15; letter-spacing: 0; display: inline-block; }
.contact-list .eyebrow { display: flex; }
.copy-btn { display: inline-flex; gap: 10px; align-items: baseline; text-align: left; }
.copy-btn .mono { font-size: var(--fs-xs); color: var(--fg-muted); transition: color 200ms ease; }
.copy-btn.copied .mono { color: var(--red); }
/* Mapa — OpenStreetMap invertido e aquecido para a paleta (tinta, bronze, vermelho da adega) */
.map-frame { position: relative; aspect-ratio: 16 / 8; min-height: 480px; isolation: isolate; }
.map { position: absolute; inset: 0; z-index: 0; background: var(--ink-2); font-family: var(--sans); }
.map .leaflet-tile-pane { filter: grayscale(1) invert(1) sepia(0.55) hue-rotate(-14deg) saturate(1.4) brightness(0.82) contrast(1.12); }
.map-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 65% 50%, transparent 40%, rgba(18, 14, 12, 0.55) 100%); }
.map-pin { width: 56px; height: 56px; }
.map-pin .dot { position: absolute; inset: 8px; border-radius: 50%; background: var(--red); color: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(168, 55, 43, 0.25), 0 10px 30px rgba(0, 0, 0, 0.45); }
.map-pin .dot svg { width: 22px; height: 22px; }
.map-pin .pulse { position: absolute; inset: 8px; border-radius: 50%; background: var(--red); opacity: 0.45; animation: pin-pulse 2.6s var(--ease-out) infinite; }
@keyframes pin-pulse { from { transform: scale(1); opacity: 0.45; } to { transform: scale(2.6); opacity: 0; } }
.map-card, .map-zoom {
  position: absolute; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(18, 14, 12, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 50px rgba(0, 0, 0, 0.35);
  color: var(--paper);
}
.map-card { left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); width: min(380px, calc(100% - 32px)); padding: clamp(24px, 2.4vw, 36px); border-radius: 24px; display: grid; gap: 14px; justify-items: start; }
.map-card .btn { margin-top: 8px; }
.map-zoom { right: clamp(16px, 2.4vw, 32px); top: clamp(16px, 2.4vw, 32px); display: grid; border-radius: 999px; padding: 4px; }
.map-zoom button { width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem; line-height: 1; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.map-zoom button:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .map-zoom button:hover { background: rgba(255, 255, 255, 0.1); } }
.map .leaflet-control-attribution { background: rgba(18, 14, 12, 0.6); color: var(--fg-muted); font-family: var(--label); font-size: 10px; letter-spacing: 0.04em; padding: 2px 10px; border-top-left-radius: 8px; }
.map .leaflet-control-attribution a { color: var(--paper); }
@media (max-width: 720px) {
  .map-frame { aspect-ratio: auto; min-height: 0; }
  .map { position: relative; height: 420px; }
  .map-frame::after { bottom: auto; height: 420px; }
  .map-card { position: relative; left: auto; bottom: auto; width: auto; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink-3); }
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: clamp(80px, 10vw, 160px) 0 32px; background: var(--ink); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-top h4 { font-family: var(--label); font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 18px; }
.footer-top li + li { margin-top: 6px; }
.footer-top a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-top a:hover { color: var(--bronze-soft); } }
.footer-cta .h1 { max-width: 12ch; }
.footer-word { margin-top: clamp(64px, 10vw, 160px); width: 100%; aspect-ratio: 713 / 444; max-height: 46vh; background: var(--paper); -webkit-mask: url(../img/logo-white.png) center bottom / contain no-repeat; mask: url(../img/logo-white.png) center bottom / contain no-repeat; opacity: 0.94; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--fg-faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--fg-muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.funding { margin-top: 32px; background: #000; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.funding img { height: 28px; width: auto; }
.funding a { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--fg-faint); display: grid; place-items: center; transition: background-color 200ms ease, color 200ms ease; }
.socials svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: var(--paper); color: var(--ink); } }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-cta { grid-column: 1 / -1; margin-bottom: 24px; } }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; background: var(--paper); color: var(--ink); padding: 14px 22px; border-radius: 999px; font-family: var(--label); font-size: var(--fs-xs); letter-spacing: 0.08em; transition: transform 400ms var(--ease-out), visibility 0s 400ms; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 400ms var(--ease-out); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--fg-faint); padding: 20px 0; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(1.6rem, 1rem + 2vw, 3rem); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
  .manifesto-quote .w { opacity: 1; }
  html.is-ready .curtain, html.is-leaving .curtain { transition-duration: 200ms; }
}
