/* SayVow — editorial-luxury Latino wedding landing.
   Dark cinematic hero · clay-rose/espresso/brass palette · Cormorant + Inter.
   Heavy-but-tasteful parallax & scroll choreography. Reduced-motion safe. */

:root {
  --ivory: #f1e8df;
  --ivory-2: #ece1d3;
  --ivory-3: #e3d6c5;
  --clay: #c46b5b;
  --clay-deep: #9c4a35;
  --rose: #e1a39a;
  --espresso: #221610;
  --espresso-2: #2c1d14;
  --ink: #3a2418;
  --ink-muted: rgba(58, 36, 24, 0.62);
  --ink-faint: rgba(58, 36, 24, 0.38);
  --brass: #b08a4a;
  --brass-light: #d8b275;
  --on-dark: #f4ebe1;
  --on-dark-soft: rgba(244, 235, 225, 0.74);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.16, .84, .28, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01';
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--clay); color: var(--ivory); }

/* ── Type ──────────────────────────────────────────────────────────────── */
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 9vw, 142px); line-height: .98; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.h1 em { font-style: italic; color: var(--rose); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 92px); line-height: 1.03; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
.h2 em { font-style: italic; color: var(--clay); }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -.012em; margin: 0; }
.h3 em { font-style: italic; color: var(--clay); }
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--brass); }
.body { font-family: var(--sans); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.62; color: var(--ink-muted); max-width: 54ch; text-wrap: pretty; }
.lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.4; color: var(--ink); max-width: 38ch; text-wrap: balance; margin: 0; }

/* ── Reveal choreography ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1.15s var(--ease-out), transform 1.15s var(--ease-out), filter 1.15s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="true"] {
  padding-top: 14px; padding-bottom: 14px;
  background: color-mix(in oklab, var(--ivory) 84%, transparent);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: color-mix(in oklab, var(--ink) 10%, transparent);
}
.nav-logo { height: 30px; width: auto; filter: brightness(1.18) drop-shadow(0 1px 6px rgba(0,0,0,.35)); transition: filter .5s var(--ease), height .5s var(--ease); }
.nav[data-scrolled="true"] .nav-logo { height: 26px; filter: none; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-link { position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--on-dark-soft); transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; opacity: .6; transition: right .4s var(--ease-out); }
.nav-link:hover { color: var(--on-dark); }
.nav-link:hover::after { right: 0; }
.nav[data-scrolled="true"] .nav-link { color: var(--ink-muted); }
.nav[data-scrolled="true"] .nav-link:hover { color: var(--ink); }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(244,235,225,.32); background: rgba(244,235,225,.08);
  transition: border-color .4s, background .4s;
}
.nav[data-scrolled="true"] .lang { border-color: color-mix(in oklab, var(--ink) 18%, transparent); background: color-mix(in oklab, var(--ivory) 60%, transparent); }
.lang a { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); padding: 7px 12px; border-radius: 999px; transition: background .3s, color .3s; }
.nav[data-scrolled="true"] .lang a { color: var(--ink-muted); }
.lang a[aria-current="true"] { background: var(--on-dark); color: var(--espresso); }
.nav[data-scrolled="true"] .lang a[aria-current="true"] { background: var(--ink); color: var(--ivory); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media { will-change: transform; }
.hero-media img {
  width: 100%; height: 152%; object-fit: cover; object-position: 62% 38%;
  transform: scale(1.04); will-change: transform;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 72% 30%, transparent 0%, rgba(34,22,16,.30) 55%, rgba(34,22,16,.66) 100%),
    linear-gradient(180deg, rgba(34,22,16,.55) 0%, rgba(34,22,16,.12) 30%, rgba(34,22,16,.05) 55%, rgba(34,22,16,.82) 100%),
    linear-gradient(90deg, rgba(34,22,16,.58) 0%, rgba(34,22,16,.10) 46%, transparent 70%);
}
.hero-petal { position: absolute; z-index: -1; width: 14px; height: 14px; border-radius: 60% 40% 55% 45%; background: rgba(244,235,225,.5); filter: blur(.4px); opacity: 0; animation: petal 14s linear infinite; }
.hero-petal:nth-child(1){ left: 12%; animation-delay: 0s;  transform: scale(.7); }
.hero-petal:nth-child(2){ left: 28%; animation-delay: 4s;  background: rgba(225,163,154,.55); }
.hero-petal:nth-child(3){ left: 44%; animation-delay: 8s;  transform: scale(.55); }
.hero-petal:nth-child(4){ left: 63%; animation-delay: 2.5s; }
.hero-petal:nth-child(5){ left: 78%; animation-delay: 6.5s; background: rgba(216,178,117,.5); transform: scale(.6); }
.hero-petal:nth-child(6){ left: 90%; animation-delay: 10s; transform: scale(.5); }
@keyframes petal {
  0% { top: -6%; opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .7; }
  100% { top: 106%; opacity: 0; transform: translateX(40px) rotate(220deg); }
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(120px,18vh,200px) var(--pad) 40px;
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  gap: clamp(28px,5vw,90px); align-items: end;
}
.hero-left { will-change: transform, opacity; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 9px 18px; border: 1px solid rgba(216,178,117,.55); border-radius: 999px;
  font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light);
  background: rgba(34,22,16,.28); backdrop-filter: blur(6px);
}
.hero-badge .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--brass-light); box-shadow: 0 0 0 4px rgba(216,178,117,.22); animation: pulse 2.6s ease-in-out infinite; }
.hero-title { color: var(--on-dark); text-shadow: 0 2px 30px rgba(34,22,16,.45); }
.hero-title .es {
  display: block; margin-top: 16px; font-size: .42em; font-style: italic; font-weight: 400;
  letter-spacing: .01em; color: rgba(244,235,225,.7);
}
.hero-side { padding-bottom: 10px; }
.hero-side p {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px,1.5vw,23px); line-height: 1.42;
  color: rgba(244,235,225,.92); max-width: 34ch; margin: 0 0 30px; text-wrap: balance;
}

/* Email capture */
.email {
  display: flex; align-items: stretch; gap: 0; max-width: 470px; padding: 6px;
  border-radius: 999px; border: 1px solid rgba(244,235,225,.30); background: rgba(244,235,225,.09);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.email:focus-within { border-color: var(--brass-light); background: rgba(244,235,225,.15); box-shadow: 0 0 0 4px rgba(216,178,117,.14); }
.email input {
  flex: 1 1 0; min-width: 110px; appearance: none; border: 0; outline: 0; background: transparent;
  padding: 0 18px; color: var(--on-dark); font: 400 14px/1 var(--sans); letter-spacing: .01em;
}
.email input::placeholder { color: rgba(244,235,225,.5); }
.email button {
  flex: 0 0 auto; appearance: none; border: 0; cursor: pointer; white-space: nowrap;
  padding: 15px 26px; border-radius: 999px; background: var(--brass); color: var(--espresso);
  font: 700 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  position: relative; overflow: hidden; transition: background .3s var(--ease), transform .25s var(--ease);
}
.email button::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.email button:hover { background: var(--brass-light); }
.email button:hover::after { transform: translateX(130%); }
.email button[disabled] { opacity: .6; cursor: progress; }
.email-ok { align-self: center; padding: 13px 24px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--brass-light); }
.email[data-light] { background: rgba(58,36,24,.045); border-color: color-mix(in oklab, var(--ink) 22%, transparent); backdrop-filter: none; }
.email[data-light] input { color: var(--ink); }
.email[data-light] input::placeholder { color: var(--ink-faint); }
.email[data-light]:focus-within { background: rgba(255,255,255,.6); border-color: var(--clay); box-shadow: 0 0 0 4px rgba(196,107,91,.12); }
.email[data-light] .email-ok { color: var(--clay-deep); }
.email-err { min-height: 14px; margin-top: 10px; font: 400 12px/1.3 var(--sans); color: var(--rose); }
.email[data-light] ~ .email-err { color: var(--clay-deep); }

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(216,178,117,.22); }
  50% { box-shadow: 0 0 0 9px rgba(216,178,117,.04); }
}

/* Scroll cue + marquee */
.hero-foot { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 0 26px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: rgba(244,235,225,.62);
}
.scroll-cue .ln { width: 1px; height: 46px; background: linear-gradient(180deg, rgba(244,235,225,.6), transparent); position: relative; overflow: hidden; }
.scroll-cue .ln::after { content: ""; position: absolute; inset: 0; background: rgba(244,235,225,.9); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 20px 0;
  border-top: 1px solid rgba(244,235,225,.16); border-bottom: 1px solid rgba(244,235,225,.16);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marq 58s linear infinite; will-change: transform; }
.marquee-track > span { display: inline-flex; gap: 56px; align-items: center; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(22px,2.4vw,36px); color: rgba(244,235,225,.66); }
.marquee-track > span::after { content: "✦"; font-style: normal; font-size: 13px; color: var(--brass-light); transform: translateY(-3px); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── Trust strip (honest, replaces fake press) ─────────────────────────── */
.trust { background: var(--espresso); color: var(--on-dark-soft); }
.trust-row {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px;
  font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.trust-row span { display: inline-flex; align-items: center; gap: 14px; }
.trust-row span:not(:last-child)::after { content: "·"; color: var(--brass); }

/* ── Section primitives ────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(86px,14vh,180px) var(--pad); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }

/* Problem */
.problem { text-align: center; padding-bottom: clamp(40px,6vh,80px); }
#story { padding-top: clamp(46px,7vh,96px); }
.problem .qm { font-family: var(--serif); font-style: italic; font-size: 130px; line-height: 0; color: var(--clay); opacity: .42; user-select: none; }
.problem-body { font-family: var(--serif); font-size: clamp(30px,3.8vw,58px); line-height: 1.2; letter-spacing: -.012em; color: var(--ink); max-width: 21ch; margin: 26px auto 0; text-wrap: balance; }
.problem-body em { font-style: italic; color: var(--clay); }
.problem-tag { margin-top: 34px; font-family: var(--serif); font-style: italic; font-size: clamp(18px,1.4vw,22px); color: var(--ink-muted); text-wrap: balance; }

/* What — vignettes with real screenshots */
.what-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,120px); align-items: end; margin-bottom: clamp(54px,9vh,120px); }
.what-head .r { text-align: right; padding-bottom: 12px; }
.vignettes { display: grid; gap: clamp(70px,11vh,150px); }
.vignette { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,104px); align-items: center; }
.vignette[data-flip] .v-media { order: 2; }
.vignette[data-flip] .v-copy { order: 1; }
.v-num { font-family: var(--serif); font-style: italic; font-size: clamp(38px,4vw,56px); color: var(--brass); line-height: 1; display: inline-block; margin-bottom: 26px; }
.v-num::before { content: "— "; color: var(--brass); }
.v-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px,3.6vw,52px); line-height: 1.03; letter-spacing: -.012em; color: var(--ink); margin: 0 0 22px; }
.v-title em { font-style: italic; color: var(--clay); }
.v-es { margin-top: 18px; font-family: var(--serif); font-style: italic; color: var(--clay); font-size: clamp(17px,1.3vw,20px); line-height: 1.4; max-width: 42ch; }
.v-media {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--ivory-3);
  box-shadow: 0 2px 4px rgba(34,22,16,.06), 0 30px 70px -28px rgba(34,22,16,.40);
  aspect-ratio: 4/5;
}
.v-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(34,22,16,.07); border-radius: 14px; pointer-events: none; }
.v-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transform: scale(1.07); transition: transform 1.4s var(--ease-out);
  will-change: transform;
}
.vignette.in .v-media img { transform: scale(1); }
.v-shot { position: absolute; left: 16px; bottom: 16px; z-index: 2; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; color: rgba(244,235,225,.92); background: rgba(34,22,16,.55); padding: 7px 11px; border-radius: 5px; backdrop-filter: blur(6px); }

/* Features (4 icons) */
.features { background: var(--ivory-2); }
.features-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px,8vh,90px); }
.features-head .h2 { margin: 22px 0 18px; }
.features-head p { margin: 0 auto; }
.feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
.feat { padding: 44px 30px 8px; border-right: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); text-align: center; }
.feat:last-child { border-right: 0; }
.feat-ic { width: 40px; height: 40px; margin: 0 auto 22px; color: var(--clay); }
.feat-ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.feat h3 { font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.feat p { font-size: 14px; line-height: 1.55; color: var(--ink-muted); margin: 0; }

/* Traditions (dark) */
.trad { background: var(--espresso); color: var(--on-dark); position: relative; overflow: hidden; }
.trad::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 26%, rgba(176,138,74,.08), transparent 55%), radial-gradient(circle at 84% 72%, rgba(196,107,91,.09), transparent 55%); }
.trad .eyebrow { color: rgba(244,235,225,.72); }
.trad .eyebrow::before { background: var(--brass-light); }
.trad-h { font-family: var(--serif); font-weight: 500; font-size: clamp(40px,6vw,94px); line-height: 1.04; letter-spacing: -.018em; color: var(--on-dark); max-width: 17ch; margin: 24px 0 26px; text-wrap: balance; }
.trad-h em { font-style: italic; color: var(--rose); }
.trad-lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px,1.6vw,26px); line-height: 1.4; color: rgba(244,235,225,.78); max-width: 36ch; }
.trad-grid { margin-top: clamp(54px,8vh,100px); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(244,235,225,.16); }
.trad-card { padding: 32px 28px 36px 0; border-right: 1px solid rgba(244,235,225,.16); }
.trad-card:last-child { border-right: 0; padding-right: 0; }
.trad-card:not(:last-child) { padding-right: 28px; }
.trad-card .es { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(27px,3vw,42px); color: var(--rose); line-height: 1; margin-bottom: 7px; }
.trad-card .en { display: block; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(244,235,225,.55); margin-bottom: 18px; }
.trad-card p { font-size: 14.5px; line-height: 1.56; color: rgba(244,235,225,.78); margin: 0; }
.trad-strip { margin-top: clamp(60px,9vh,110px); display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 18px; height: clamp(300px,42vh,500px); }
.trad-strip figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: rgba(244,235,225,.04); }
.trad-strip img { position: absolute; inset: 0; width: 100%; height: 128%; object-fit: cover; will-change: transform; }

/* Herencia color block */
.herencia { background: var(--clay-deep); color: var(--on-dark); }
.herencia-wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; max-width: var(--max); margin: 0 auto; }
.herencia-copy { padding: clamp(72px,12vh,150px) clamp(28px,5vw,90px) clamp(72px,12vh,150px) var(--pad); }
.herencia .eyebrow { color: rgba(244,235,225,.7); }
.herencia .eyebrow::before { background: var(--brass-light); }
.herencia h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px,5.4vw,86px); line-height: 1.03; letter-spacing: -.018em; color: var(--on-dark); margin: 22px 0 26px; text-wrap: balance; }
.herencia h2 em { font-style: italic; color: var(--rose); }
.herencia p.intro { font-family: var(--serif); font-style: italic; font-size: clamp(19px,1.5vw,24px); color: rgba(244,235,225,.85); max-width: 34ch; margin: 0 0 36px; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.promise li { display: flex; gap: 16px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: rgba(244,235,225,.9); }
.promise li::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--brass-light);
  -webkit-mask: no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
          mask: no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
/* Photo sits as a framed plate inside the terracotta block — the clay shows
   as an editorial mat. No gradient fog (reads cheap). */
.herencia-media { position: relative; padding: clamp(36px,5vw,72px); padding-left: 0; }
.herencia-figure { position: relative; height: 100%; min-height: 340px; overflow: hidden; border-radius: 4px; }
.herencia-figure::after { content: ""; position: absolute; inset: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(244,235,225,.22); pointer-events: none; }
.herencia-media img {
  position: absolute; inset: 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 35%;
  transform: scale(1.06); transition: transform 1.6s var(--ease-out); will-change: transform;
}
.herencia-copy.in ~ .herencia-media img { transform: scale(1); }

/* Dashboard showcase — opens the product story, before the vignettes */
.story-showcase { margin: clamp(8px,2vh,28px) 0 clamp(64px,10vh,140px); }
.showcase-frame {
  position: relative; max-width: 1200px; margin: 0 auto;
  border-radius: 16px; overflow: hidden; background: var(--ivory-3);
  box-shadow: 0 2px 6px rgba(34,22,16,.07), 0 56px 100px -38px rgba(34,22,16,.46);
  aspect-ratio: 16/10;
  clip-path: inset(0 round 16px);
}
.showcase-frame::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(34,22,16,.08); pointer-events: none; }
.showcase-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transform: scale(1.08); transition: transform 1.7s var(--ease-out); will-change: transform;
}
.story-showcase.in .showcase-frame img { transform: scale(1); }
.showcase-cap {
  max-width: 760px; margin: clamp(26px,4vh,42px) auto 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(18px,1.5vw,24px);
  line-height: 1.4; color: var(--ink-muted); text-wrap: balance;
}
.showcase-cap em { color: var(--clay); }
@media (max-width: 700px) { .showcase-frame { aspect-ratio: 4/5; } .showcase-frame img { object-position: top left; } }

/* Coming soon */
.cs { background: var(--ivory-2); text-align: center; }
.cs-meta { display: inline-flex; align-items: center; gap: 14px; font: 600 11.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 28px; }
.cs-meta .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px color-mix(in oklab, var(--clay) 24%, transparent); animation: pulse 2.6s ease-in-out infinite; }
.cs h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px,6.6vw,112px); line-height: 1.06; letter-spacing: -.02em; max-width: 22ch; margin: 0 auto 40px; text-wrap: balance; }
.cs h2 em { font-style: italic; color: var(--clay); }
.cs-sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px,1.6vw,26px); color: var(--ink-muted); max-width: 40ch; margin: 0 auto 42px; text-wrap: balance; }
.cs-form { max-width: 480px; margin: 0 auto; }
.cs-social { margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-muted); }
.cs-social a { color: var(--clay); border-bottom: 1px solid color-mix(in oklab, var(--clay) 40%, transparent); }
.cs-social a:hover { color: var(--clay-deep); }
.cs-plat { display: inline-flex; gap: 22px; margin-top: 36px; font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.cs-plat span { display: inline-flex; align-items: center; gap: 8px; }
.cs-plat span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* Brand closer — full-bleed OG lockup before the footer */
.brand-closer { position: relative; height: clamp(280px,46vh,540px); overflow: hidden; background: var(--espresso); }
.brand-closer img { position: absolute; inset: 0; width: 100%; height: 122%; object-fit: cover; object-position: center; will-change: transform; }
.brand-closer::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px 10px rgba(34,22,16,.5); pointer-events: none; }

/* Footer */
.footer { background: var(--ivory); border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); padding: 54px var(--pad) 40px; }
.footer-row { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.footer-logo { height: 26px; width: auto; opacity: .85; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-muted); }
.footer-tag .hb { color: var(--clay); font-style: normal; }
.footer-legal { display: flex; gap: 24px; font: 400 12px/1 var(--sans); letter-spacing: .04em; color: var(--ink-faint); }
.footer-legal a:hover { color: var(--ink); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-right .nav-link { display: none; }
  .hero-inner { grid-template-columns: 1fr; align-items: start; gap: 38px; }
  .hero-side { padding-bottom: 0; }
  .what-head { grid-template-columns: 1fr; gap: 22px; }
  .what-head .r { text-align: left; padding-bottom: 0; }
  .vignette { grid-template-columns: 1fr; gap: 30px; }
  .vignette[data-flip] .v-media { order: 1; }
  .vignette[data-flip] .v-copy { order: 2; }
  .v-media { aspect-ratio: 16/11; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(2) { border-right: 0; }
  .feat { border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
  .trad-grid { grid-template-columns: 1fr 1fr; }
  .trad-card { border-right: 0; padding: 26px 0; border-bottom: 1px solid rgba(244,235,225,.16); }
  .trad-card:nth-child(odd) { padding-right: 16px; border-right: 1px solid rgba(244,235,225,.16); }
  .trad-strip { grid-template-columns: 1fr; height: auto; gap: 14px; }
  .trad-strip figure { aspect-ratio: 3/2; }
  .trad-strip img { height: 100%; }
  .herencia-wrap { grid-template-columns: 1fr; }
  .herencia-media { min-height: 320px; order: -1; }
  .herencia-media::after { background: linear-gradient(0deg, var(--clay-deep) 0%, transparent 30%); }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat { border-right: 0; }
  .trad-grid { grid-template-columns: 1fr; }
  .trad-card:nth-child(odd) { padding-right: 0; border-right: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .hero-title .es { font-size: .46em; }
  .email { padding: 5px; }
  .email input { min-width: 0; padding: 0 12px; }
  .email button { padding: 14px 18px; font-size: 10.5px; letter-spacing: .1em; }
  .problem-body { max-width: 16ch; }
  .herencia-copy { padding-left: var(--pad); padding-right: var(--pad); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: scale(1.04); }
  .hero-petal, .scroll-cue .ln::after, .marquee-track, .cs-meta .pip, .hero-badge .pip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-petal { display: none; }
}
