/* ==========================================================================
   Romántica — estilos
   Paleta: papel crema, sepia, verde oliva, oro viejo
   ========================================================================== */

:root {
  --paper: #efe7d6;
  --paper-2: #e6dcc6;
  --paper-3: #f6f1e6;
  --ink: #33291d;
  --ink-soft: #5a4a37;
  --sepia: #7a5a3a;
  --olive: #3f4a2c;
  --olive-2: #56623b;
  --olive-deep: #2f3820;
  --gold: #b08d57;
  --cream: #f3ecdc;
  --error: #8c3b2a;

  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --f-display: 'Italiana', 'Cormorant Garamond', Georgia, serif;
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: clamp(18px, 1.15vw + 12px, 21px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--olive); color: var(--cream); }

/* ---------- Grano de película (toda la página) ---------- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 100;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Textura de papel reutilizable */
.paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255,250,238,.7), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(176,141,87,.14), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: .72em;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.script { font-family: var(--f-script); font-weight: 400; line-height: 1; }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: .08em; line-height: 1; }
.fleuron { color: var(--gold); font-size: 1.1em; letter-spacing: 0; }
em, .italic { font-style: italic; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px var(--gutter) 80px;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}
.hero__painting {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  z-index: -3;
  object-fit: cover;
  object-position: 50% 30%;
  filter: blur(1.2px) saturate(.9) sepia(.22) brightness(1.02);
  animation: breathe 22s var(--ease) infinite alternate;
}
/* Trama de lienzo sobre la pintura */
.canvas-texture {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  opacity: .22; mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 1px, transparent 1px 3px);
}
/* Borde de papel rasgado */
.torn { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(22px, 3vw, 44px); fill: #221a12; z-index: 1; filter: drop-shadow(0 -2px 3px rgba(30,20,8,.35)); }
@keyframes breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.045) translateY(-0.6%); }
}
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(60,40,20,.0), rgba(40,28,14,.45) 90%),
    linear-gradient(to bottom, rgba(60,44,24,.32), rgba(60,44,24,.08) 45%, rgba(35,30,18,.35));
}
.hero__leak {
  position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax;
  left: 45%; top: -25%;
  background: radial-gradient(circle, rgba(255,214,160,.35), rgba(255,190,120,.08) 45%, transparent 70%);
  mix-blend-mode: screen;
  animation: leak 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes leak {
  0%   { transform: translate(0, 0); opacity: .7; }
  50%  { opacity: 1; }
  100% { transform: translate(-18%, 10%); opacity: .55; }
}

/* Pájaros */
.birds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bird {
  position: absolute;
  width: var(--s, 34px);
  color: rgba(38, 30, 20, .75);
  filter: blur(var(--b, 1px));
  animation: fly var(--d, 40s) linear infinite;
  animation-delay: var(--delay, 0s);
  offset-rotate: 0deg;
}
.bird svg { animation: flap var(--f, .9s) ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes fly {
  from { transform: translate(-10vw, 0); }
  to   { transform: translate(115vw, var(--dy, -8vh)); }
}
@keyframes flap {
  from { transform: scaleY(1); }
  to   { transform: scaleY(-.55); }
}

/* Motas de polvo en la luz */
.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dust span {
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 236, 200, .7);
  box-shadow: 0 0 6px rgba(255, 220, 170, .7);
  animation: float var(--d, 14s) ease-in-out infinite alternate;
  opacity: 0;
}
@keyframes float {
  0%   { transform: translate(0, 0); opacity: 0; }
  20%  { opacity: .8; }
  80%  { opacity: .6; }
  100% { transform: translate(var(--x, 40px), var(--y, -80px)); opacity: 0; }
}

/* Cabecera */
.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  color: var(--cream);
  z-index: 2;
}
.topbar__brand { font-family: var(--f-script); font-size: 34px; text-decoration: none; line-height: 1; }
.topbar__meta { font-size: 12px; letter-spacing: .25em; opacity: .85; text-decoration: none; border-bottom: 1px solid transparent; transition: opacity .3s, border-color .3s; }
.topbar__links { display: flex; gap: 28px; align-items: center; }
.topbar__links .topbar__meta:first-child { letter-spacing: .3em; text-transform: uppercase; }
.topbar__meta:hover { opacity: 1; border-color: currentColor; }

.hero__inner { text-align: center; max-width: 1100px; width: 100%; text-shadow: 0 1px 22px rgba(40,26,10,.5); }
.hero .card { text-shadow: none; }
.hero__eyebrow { color: rgba(243,236,220,.9); margin-bottom: 18px; }
.hero__title { margin: 0; position: relative; }
.hero__title .script {
  display: block;
  font-size: clamp(64px, 11vw, 150px);
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(30,22,12,.35);
  margin-bottom: -.12em;
  position: relative; z-index: 1;
}
.hero__title .display {
  display: block;
  font-size: clamp(34px, 7.4vw, 104px);
  letter-spacing: .14em;
  padding-left: .14em;
  color: rgba(243,236,220,.95);
}
.hero__title .display .star { color: var(--gold); font-size: .6em; vertical-align: .35em; margin: 0 .1em; }
.hero__lede {
  max-width: 600px;
  margin: 26px auto 0;
  font-style: italic;
  font-size: clamp(19px, 1.5vw + 12px, 24px);
  color: rgba(243,236,220,.92);
  line-height: 1.45;
}
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(243,236,220,.75); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 38px;
  background: linear-gradient(rgba(243,236,220,.8), transparent);
  animation: drip 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================================
   FORMULARIO (tarjeta de papel con clip)
   ========================================================================== */
.card {
  position: relative;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 34px clamp(20px, 4vw, 44px) 30px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 30px 60px -20px rgba(20,14,6,.55), 0 2px 6px rgba(20,14,6,.2);
  transform: rotate(-.6deg);
}
.card::before {
  /* doble filete interior */
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(122,90,58,.35);
  outline: 1px solid rgba(122,90,58,.18); outline-offset: 3px;
  pointer-events: none;
}
.card__clip {
  position: absolute; top: -26px; left: 34px; width: 34px;
  transform: rotate(-6deg);
  filter: drop-shadow(1px 2px 1px rgba(0,0,0,.3));
}
.card__title { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 30px); letter-spacing: .06em; margin: 0 0 4px; text-align: center; }
.card__sub { margin: 0 0 22px; text-align: center; font-style: italic; color: var(--ink-soft); font-size: .95em; }

.form { position: relative; z-index: 1; }
.form__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sepia); }
.field input {
  font: inherit;
  font-size: 19px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(90,74,55,.55);
  padding: 8px 2px 8px;
  border-radius: 0;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.field input::placeholder { color: rgba(90,74,55,.5); font-style: italic; }
.field input:focus { outline: none; border-color: var(--olive); background: rgba(255,255,255,.25); }
.field input[aria-invalid="true"] { border-color: var(--error); }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 18px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0;
  border: 1px solid var(--sepia); background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.consent input::after { content: '✓'; font-size: 13px; color: var(--olive); opacity: 0; transform: scale(.4); transition: .3s var(--ease); }
.consent input:checked::after { opacity: 1; transform: scale(1); }
.consent input:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.consent a { color: var(--sepia); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  --bg: var(--olive);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  margin-top: 22px;
  padding: 17px 28px;
  font-family: var(--f-serif);
  font-size: 15px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--cream);
  background: var(--bg);
  border: 0; border-radius: 1px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: background .5s var(--ease), transform .3s var(--ease), box-shadow .5s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(243,236,220,.15), 0 10px 20px -12px rgba(30,40,15,.8);
}
.btn::after {
  /* destello de luz al pasar */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,240,210,.25) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 1.1s var(--ease);
}
.btn:hover { background: var(--olive-deep); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn .quill { width: 18px; height: 18px; }
.btn--ghost { --bg: transparent; color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.btn--ghost:hover { background: var(--olive); color: var(--cream); }

.form__msg { min-height: 1.4em; margin: 12px 0 0; font-size: 15px; font-style: italic; color: var(--error); text-align: center; }
.form__note { margin: 10px 0 0; font-size: 13px; text-align: center; color: var(--ink-soft); letter-spacing: .04em; }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 12vw, 150px) var(--gutter); }
.section__head { text-align: center; max-width: 980px; margin: 0 auto clamp(48px, 7vw, 80px); }
.section__head .eyebrow { color: var(--sepia); }
.section__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 5.5vw, 72px); letter-spacing: .06em; line-height: 1.05; margin: 16px 0 0; }
.section__title .script { font-size: 1.25em; color: var(--olive); letter-spacing: 0; display: inline-block; margin: 0 .05em; transform: translateY(.08em); }
.section__lede { font-style: italic; color: var(--ink-soft); margin: 18px auto 0; max-width: 600px; }

/* Lo que encontrarás */
.chapters {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1140px; margin: 0 auto;
}
.chapter { text-align: center; padding: 0 8px; }
.cameo { margin: 0 auto 22px; width: 172px; }
.cameo img {
  width: 172px; height: 222px; object-fit: cover; border-radius: 50%;
  filter: sepia(.22) saturate(.9) contrast(.96);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold), 0 0 0 11px var(--paper), 0 0 0 12px rgba(122,90,58,.45), 0 24px 34px -14px rgba(40,28,12,.55);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.chapter:hover .cameo img { transform: scale(1.03); filter: sepia(.05) saturate(1) contrast(1); }
.cameo figcaption { margin-top: 18px; font-size: 12px; font-style: italic; letter-spacing: .08em; color: var(--sepia); opacity: .8; }
.chapter__num { font-family: var(--f-display); font-size: 15px; letter-spacing: .4em; color: var(--gold); }
.chapter h3 { font-family: var(--f-serif); font-weight: 500; font-style: italic; font-size: clamp(24px, 2vw, 30px); margin: 6px 0 10px; line-height: 1.2; }
.chapter p { margin: 0; color: var(--ink-soft); font-size: .95em; }
.rule { width: 60px; height: 1px; background: var(--gold); margin: 16px auto; opacity: .7; }

/* Póster "musa": Rossetti arriba, verde oliva abajo, encaje grabado en la unión */
.muse { --art-h: clamp(400px, 64vh, 660px); position: relative; background: var(--olive); color: var(--cream); overflow: hidden; isolation: isolate; }
.muse__art { position: relative; height: var(--art-h); overflow: hidden; }
.muse__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.92) sepia(.12) contrast(.98); transform: scale(1.06); transition: transform 2.5s var(--ease); }
.muse.is-in .muse__art img, .muse__art:hover img { transform: scale(1); }
.craquelure {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: multiply; opacity: .38;
  background-size: 520px 520px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='turbulence' baseFrequency='.022' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .16 0 0 0 0 .08 -9 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
}
.muse__name {
  position: absolute; top: -.2em; left: -.05em; margin: 0;
  font-size: clamp(120px, 21vw, 320px); white-space: nowrap;
  color: #efe6d2; text-shadow: 0 2px 30px rgba(40,26,10,.25);
  pointer-events: none;
}
.muse__green {
  position: relative;
  padding: clamp(90px, 12vw, 150px) var(--gutter) clamp(80px, 10vw, 120px);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(120,135,80,.35), transparent 60%),
    radial-gradient(ellipse at 80% 85%, rgba(20,26,12,.45), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 .9 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.muse__lace {
  position: absolute; z-index: 2; pointer-events: none;
  width: min(560px, 82vw); left: 50%; top: var(--art-h);
  transform: translate(-50%, -50%);
  opacity: .75;
  animation: spin 240s linear infinite;
}
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.verse__words {
  position: relative;
  max-width: 1000px; margin: 0 auto;
  height: clamp(300px, 38vw, 420px);
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1;
}
.verse__words span { position: absolute; white-space: nowrap; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.verse__words .w1 { left: 0; top: 4%; }
.verse__words .w2 { right: 2%; top: 0; }
.verse__words .w3 { left: 10%; top: 40%; }
.verse__words .w4 { right: 8%; top: 36%; font-family: var(--f-script); font-style: normal; font-size: 1.25em; color: #e9dcbf; }
.verse__words .w5 { left: 34%; top: 72%; }
.verse__foot { text-align: center; max-width: 620px; margin: 30px auto 0; font-size: 16px; line-height: 1.55; opacity: .85; }

/* Nora: sala de proyección con sus ilustraciones como fotogramas */
.screening {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(90px, 12vw, 150px) var(--gutter);
  background: #221a12; color: var(--cream);
}
.screening .eyebrow { color: #c9a878; }
.screening .section__title { color: var(--cream); }
.screening .section__title .script { color: #d9b98a; }
.screening__light {
  position: absolute; z-index: -1; inset: -20% 10% auto; height: 120%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,210,150,.16), transparent 60%);
  animation: projector 5s steps(2) infinite;
  pointer-events: none;
}
@keyframes projector { 0%, 100% { opacity: 1; } 50% { opacity: .82; } 51% { opacity: .95; } }
.stills { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); max-width: 1180px; margin: 0 auto; align-items: start; }
.still { margin: 0; }
.still--2 { margin-top: clamp(40px, 10vw, 140px); }
.still__frame {
  position: relative; aspect-ratio: 3 / 2; background: #120d08;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.8), 0 0 0 1px rgba(255,230,190,.08);
  overflow: hidden;
}
.still__frame img { width: 100%; height: 100%; object-fit: cover; animation: flicker 7s infinite; }
@keyframes flicker { 0%, 100% { filter: brightness(1); } 3% { filter: brightness(1.06); } 6% { filter: brightness(.97); } 9% { filter: brightness(1); } }
.still__frame:not(:has(img))::before {
  content: 'Nora’s illustration\A public/' attr(data-missing);
  white-space: pre; position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-style: italic; font-size: 15px; color: rgba(243,236,220,.45);
  border: 1px dashed rgba(243,236,220,.2); margin: 12%;
}
.still figcaption { margin-top: 14px; font-style: italic; font-size: 17px; color: rgba(243,236,220,.8); }
.still figcaption span { font-style: normal; font-family: var(--f-display); letter-spacing: .3em; font-size: 12px; color: #c9a878; margin-right: 12px; }
.nora-note { max-width: 620px; margin: clamp(56px, 8vw, 90px) auto 0; text-align: center; font-style: italic; font-size: clamp(19px, 1.5vw + 10px, 23px); line-height: 1.55; color: rgba(243,236,220,.9); }
.signature { font-family: var(--f-script); font-size: clamp(54px, 6vw, 76px); line-height: 1; margin: 18px 0 0; color: #e3c99c; transform: rotate(-4deg); display: inline-block; }
.signature--letter { color: var(--olive); margin: -18px 0 0 40px; font-size: clamp(60px, 7vw, 86px); }
.thanks__sign { margin-top: 56px; }
.thanks__sign .thanks__credits { margin: 0; }
.thanks__sign .signature { color: var(--olive); margin: 4px 0 14px; }
.thanks__lily {
  position: absolute; z-index: -1; right: max(-60px, calc(50% - 760px)); bottom: -20px;
  width: clamp(180px, 22vw, 330px); opacity: .55;
  transform-origin: 50% 100%; animation: sway-lily 9s ease-in-out infinite alternate;
}

/* Escritorio: carta + lámina pegada + lirio */
.desk { overflow: hidden; }
.print {
  position: absolute; z-index: 0; margin: 0;
  left: max(16px, calc(50% - 700px)); top: 110px;
  width: clamp(200px, 20vw, 280px);
  padding: 12px 12px 14px; background: #f5efe2;
  box-shadow: 0 22px 40px -18px rgba(40,28,12,.55), 0 1px 3px rgba(40,28,12,.25);
  transform: rotate(-5deg);
}
.print.is-in { transform: rotate(-5deg); }
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(.15); }
.print figcaption { font-size: 12px; font-style: italic; color: var(--sepia); text-align: center; margin-top: 8px; }
.tape { position: absolute; width: 92px; height: 26px; background: rgba(226,214,186,.75); box-shadow: 0 1px 2px rgba(0,0,0,.08); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.tape--1 { top: -12px; left: -22px; transform: rotate(-32deg); }
.tape--2 { bottom: -10px; right: -20px; transform: rotate(-28deg); }
.desk__lily {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(-30px, calc(50% - 760px)); bottom: 30px;
  width: clamp(200px, 22vw, 320px);
  opacity: .9;
  transform: rotate(7deg);
  animation: sway-lily 9s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
@keyframes sway-lily { from { transform: rotate(6deg); } to { transform: rotate(9deg); } }
.desk .letter { z-index: 1; }

/* Grabado de Piranesi detrás del sobre */
.final { overflow: hidden; isolation: isolate; }
.etching { position: absolute; inset: 0; z-index: -1; }
.etching img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  mix-blend-mode: multiply; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 55%, #000 35%, transparent 80%);
}
.final .section__head, .final .envelope { position: relative; z-index: 1; }
.final .section__head { background: radial-gradient(ellipse, rgba(239,231,214,.85), transparent 70%); padding: 10px 0; }

/* Carta */
.letter {
  max-width: 760px; margin: 0 auto;
  position: relative;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 6vw, 80px);
  box-shadow: 0 30px 60px -30px rgba(40,28,12,.45);
  transform: rotate(.4deg);
}
.letter::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(122,90,58,.3); pointer-events: none; }
.letter__date { text-align: right; font-style: italic; color: var(--sepia); font-size: .9em; }
.letter p { margin: 0 0 1em; }
.letter .dropcap::first-letter {
  float: left; font-family: var(--f-display);
  font-size: 4.2em; line-height: .8; padding: .08em .1em 0 0; color: var(--olive);
}
.letter__sign { font-family: var(--f-script); font-size: clamp(34px, 4vw, 44px); color: var(--olive); margin: 10px 0 0 !important; line-height: 1; }
.letter__stamp { position: absolute; right: 36px; bottom: 28px; width: 150px; transform: rotate(-12deg); }

/* CTA final con sobre */
.final { text-align: center; }
.envelope {
  position: relative;
  max-width: 680px; margin: 0 auto;
  padding: clamp(70px, 9vw, 96px) clamp(22px, 5vw, 56px) clamp(36px, 5vw, 50px);
  background: linear-gradient(#ece2cd, #e4d8bd);
  box-shadow: 0 40px 70px -35px rgba(40,28,12,.6), inset 0 0 0 1px rgba(122,90,58,.2);
}
.envelope__flap {
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  pointer-events: none;
}
.envelope .seal {
  position: absolute; top: 46px; left: 50%;
  width: 104px; transform: translateX(-50%) rotate(-8deg);
  z-index: 2;
}
.envelope .card { margin-top: 30px; transform: none; box-shadow: none; background: transparent; padding: 0; }
.envelope .card::before { display: none; }
.envelope .card__title { margin-top: 84px; }

/* Sello de lacre */
.seal { filter: drop-shadow(0 6px 8px rgba(30,30,10,.35)); }
.seal.is-stamping { animation: stamp .7s var(--ease) both; }
@keyframes stamp {
  0%   { transform: translateX(-50%) rotate(-8deg) scale(1); }
  35%  { transform: translateX(-50%) rotate(-2deg) scale(1.25) translateY(-14px); filter: drop-shadow(0 20px 18px rgba(30,30,10,.3)); }
  70%  { transform: translateX(-50%) rotate(-10deg) scale(.94); }
  100% { transform: translateX(-50%) rotate(-8deg) scale(1); }
}

/* Pie */
.footer {
  text-align: center;
  padding: 70px var(--gutter) 50px;
  color: var(--sepia);
  font-size: 14px;
  border-top: 1px solid rgba(122,90,58,.2);
}
.emblem { display: inline-flex; align-items: center; gap: 18px; font-family: var(--f-serif); letter-spacing: .25em; font-size: 14px; color: var(--sepia); }
.emblem svg { width: 44px; color: var(--sepia); }
.footer__brand { font-family: var(--f-script); font-size: 46px; color: var(--olive); margin: 14px 0 0; line-height: 1; }
.footer__tag { letter-spacing: .3em; text-transform: uppercase; font-size: 11px; margin: 10px 0 24px; }
.footer__links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 13px; letter-spacing: .12em; }
.footer__links a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer__links a:hover { border-color: currentColor; }
.footer__inquiries { margin: 30px auto 0; font-size: 15px; font-style: italic; line-height: 1.6; }
.footer__inquiries a { font-style: normal; letter-spacing: .12em; color: var(--olive); text-decoration: none; border-bottom: 1px solid rgba(63,74,44,.35); }
.footer__credits { margin: 34px auto 0; max-width: 640px; font-size: 12px; line-height: 1.7; font-style: italic; opacity: .75; }

/* ==========================================================================
   Animaciones de aparición (como una foto revelándose)
   ========================================================================== */
.reveal {
  opacity: 0;
  filter: blur(6px) sepia(.4);
  transform: translateY(18px);
  transition: opacity 1.4s var(--ease), filter 1.6s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--rd, 0s);
}
.reveal.is-in { opacity: 1; filter: none; transform: none; }
.hero .reveal { transition-duration: 2s, 2.4s, 2s; }

.spread { display: inline-block; animation: spread 3s var(--ease) both; animation-delay: .3s; }
@keyframes spread { from { letter-spacing: .5em; opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }

/* Trazos que se dibujan solos */
.draw path, .draw line, .draw circle, .draw ellipse {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset 3.2s var(--ease);
}
.is-in .draw path, .is-in .draw line, .is-in .draw circle, .is-in .draw ellipse { stroke-dashoffset: 0; }

/* ==========================================================================
   Página de gracias
   ========================================================================== */
.thanks {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 100px var(--gutter) 60px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.shadows {
  position: absolute; inset: -10%; z-index: -1;
  width: 120%; height: 120%;
  opacity: .5;
  filter: blur(18px);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.shadows .branch { transform-origin: 0 0; animation: sway 9s ease-in-out infinite alternate; }
.shadows .branch.b2 { animation-duration: 12s; animation-delay: -4s; }
.shadows .branch.b3 { animation-duration: 10s; animation-delay: -7s; }
@keyframes sway { from { transform: rotate(-2.2deg) translate(0, 0); } to { transform: rotate(2.4deg) translate(12px, -8px); } }
.thanks__sun {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,246,226,.9), transparent 60%);
  animation: leak 14s ease-in-out infinite alternate;
}
.thanks__inner { max-width: 720px; }
.thanks__title { font-family: var(--f-display); font-weight: 400; color: #6b4524; font-size: clamp(64px, 12vw, 150px); line-height: 1; margin: 10px 0 0; letter-spacing: .02em; }
.thanks__title .script { font-size: .5em; display: block; color: var(--olive); margin-bottom: -.1em; }
.thanks__text { color: #6b4524; font-size: clamp(19px, 1.6vw + 10px, 24px); line-height: 1.5; margin: 24px auto 0; max-width: 520px; }
.thanks__hint { font-style: italic; color: var(--ink-soft); font-size: 16px; margin: 18px auto 0; max-width: 460px; }
.thanks .seal-wrap { width: 110px; margin: 0 auto; }
.thanks .btn { width: auto; min-width: min(360px, 100%); margin-top: 34px; }
.thanks__credits { margin-top: 70px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--sepia); line-height: 2; }
.thanks__credits b { color: #6b4524; font-weight: 500; }

/* Privacidad / texto legal */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); letter-spacing: .05em; line-height: 1.1; margin: 0 0 24px; }
.prose h2 { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 26px; margin: 36px 0 8px; color: var(--olive); }
.back { display: inline-block; margin-bottom: 40px; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--sepia); text-decoration: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .chapters { grid-template-columns: 1fr; max-width: 460px; }
  .stills { grid-template-columns: 1fr; }
  .still--2 { margin-top: 0; }
  .print { position: relative; left: auto; top: auto; display: block; margin: 0 auto 40px; width: min(260px, 70vw); }
  .desk__lily { width: 160px; right: -30px; bottom: -10px; opacity: .6; }
  .verse__words { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .1em .35em; text-align: center; }
  .verse__words span { position: static; }
  .letter__stamp { width: 90px; right: 4px; bottom: -30px; }
}
@media (max-width: 700px) {
  .muse { --art-h: 112vw; }
  .muse__name { font-size: 34vw; }
  .craquelure { opacity: .22; background-size: 300px 300px; }
  .muse__lace { opacity: .5; }
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
  .topbar__links .topbar__meta:not(:first-child) { display: none; }
  .card { transform: none; }
  .card__clip { left: 18px; width: 26px; top: -20px; }
  .card__title { padding: 0 18px; }
  .btn { letter-spacing: .2em; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; filter: none; transform: none; }
  .draw path, .draw line, .draw circle, .draw ellipse { stroke-dashoffset: 0; }
  .bird, .dust { display: none; }
}
