/* =============================================================================
   Lauriane & Murilo — 22.05.2027
   Direção de arte: "Le Faire-Part" — um convite parisiense em movimento.
   Papel creme · tinta · verde-oliva do monograma · interlúdios de cinema.
   Mobile first.
   ========================================================================== */

/* Fontes hospedadas no próprio site (subconjunto latino, woff2) */
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/bodoni-moda-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/bodoni-moda-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jost.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mrs Saint Delafield";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mrs-saint-delafield.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Paleta (oliva e creme extraídos do monograma original) */
  --papier: #F4EEE3;
  --papier-2: #ECE3D2;
  --ivoire: #FBF8F1;
  --encre: #17140F;
  --encre-soft: #4A4339;
  --nuit: #0E0C09;
  --nuit-2: #16120D;
  --olive: #768835;
  --olive-deep: #4F5C22;
  --olive-pale: #B9C48A;
  --laiton: #C2A374;
  --hair: rgba(23, 20, 15, .16);
  --hair-strong: rgba(23, 20, 15, .38);
  --hair-light: rgba(244, 238, 227, .2);

  --f-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --f-ui: "Jost", "Futura", "Avenir Next", "Century Gothic", sans-serif;
  --f-script: "Mrs Saint Delafield", "Snell Roundhand", cursive;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --pad: clamp(22px, 6vw, 72px);
  --sec: clamp(80px, 18vw, 170px);

  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .12 0 0 0 0 .06 0 0 0 .9 -.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .96 0 0 0 0 .9 0 0 0 .8 -.34'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --verge:
    repeating-linear-gradient(90deg, rgba(110, 90, 40, .045) 0 1px, transparent 1px 27px),
    repeating-linear-gradient(0deg, rgba(110, 90, 40, .03) 0 1px, transparent 1px 5px);
  --treillage:
    repeating-linear-gradient(45deg, rgba(244, 238, 227, .16) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-45deg, rgba(244, 238, 227, .16) 0 1px, transparent 1px 13px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--nuit); scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  /* A Bodoni Moda já vem com o tamanho óptico fixo em 20 no próprio arquivo (hastes mais firmes, boa leitura
     sobre vídeo). Não usar font-variation-settings: além de inútil aqui, força um caminho lento de
     medição de texto no Chrome — o layout da página ia de 4 ms para 800 ms num celular fraco. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--ivoire); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }

[hidden] { display: none !important; }
/* enquanto o envelope está na tela, só o hero existe — as fotos da página não disputam a conexão com ele */
.is-sealed main > :not(.hero), .is-sealed .fin, .is-sealed .menu, [data-wait] { display: none !important; }
.js.is-gated, .js.is-gated body, .menu-open, .menu-open body { overflow: hidden; }
.js.is-gated, .js.is-gated body { height: 100%; }
.mono { color: var(--olive); }
.mono use { fill: currentColor; }
.script { font-family: var(--f-script); font-weight: 400; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografia de sistema */
.eyebrow {
  display: block;
  margin: 0 0 20px;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.eyebrow--light { color: var(--olive-pale); }
.title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 11.5vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.015em;
}
.title em { font-style: italic; color: var(--olive); }
.title--light { color: var(--papier); }
.title--light em { color: var(--olive-pale); }
.sec-sub { margin: 22px 0 0; font-size: 18px; font-style: italic; color: var(--encre-soft); }
.sec-head { padding: 0 var(--pad); margin-bottom: clamp(40px, 10vw, 96px); }

/* Botões: retangulares, como numa maison */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--f-ui);
  font-size: 11.5px;
  font-weight: 450;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.btn--light:hover { background: var(--papier); border-color: var(--papier); color: var(--encre); }
.btn--solid { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.btn--solid:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn--gift { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--papier); }
.btn--gift:hover { background: var(--olive); border-color: var(--olive); color: var(--ivoire); }
.btn--cream { background: var(--papier); border-color: var(--papier); color: var(--encre); }
.btn--cream:hover { background: var(--ivoire); border-color: var(--ivoire); color: var(--encre); }
.btn svg { width: 14px; height: 14px; flex: none; }

/* ---------- Revelações no scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] {
  opacity: 1; transform: none;
  clip-path: inset(14% 0 14% 0);
  transition: clip-path 1.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="img"] img, .js [data-reveal="img"] video { transform: scale(1.14); transition: transform 2.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"].is-in img, .js [data-reveal="img"].is-in video { transform: scale(1); }

/* =============================================================================
   0. O ENVELOPE (portão de entrada)
   ========================================================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: max(26px, env(safe-area-inset-top)) 20px max(30px, env(safe-area-inset-bottom));
  color: var(--papier);
  background: var(--nuit);
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.no-js .gate { display: none; }
/* imagem minúscula já desfocada e escurecida (320 bytes) — nenhum filtro calculado no aparelho */
.gate__backdrop { position: absolute; inset: 0; z-index: 0; background: var(--nuit) url("video/gate-fundo.webp") center / cover; }
.gate__backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 46% at 50% 52%, rgba(194, 163, 116, .2), transparent 72%), linear-gradient(rgba(14, 12, 9, .25), rgba(14, 12, 9, .7)); }
.gate::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: var(--grain-light); opacity: .5; pointer-events: none; }
.gate > :not(.gate__backdrop) { position: relative; z-index: 2; }
.gate__top { text-align: center; opacity: 0; transform: translateY(-8px); transition: opacity 1.2s .3s var(--ease-out), transform 1.2s .3s var(--ease-out); }
.gate__top .eyebrow { margin: 0; color: rgba(244, 238, 227, .72); }
.gate__top .eyebrow i { font-family: var(--f-display); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--olive-pale); padding: 0 .2em; }
.gate__stage { align-self: center; display: flex; flex-direction: column; align-items: center; gap: clamp(30px, 5.5vh, 48px); width: 100%; }

/* Chamada para abrir — logo abaixo do envelope */
.gate__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transform: translateY(12px); transition: opacity 1s 1.2s var(--ease-out), transform 1s 1.2s var(--ease-out); }
.gate__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 54px; padding: 0 28px 0 24px;
  border: 1px solid rgba(244, 238, 227, .55);
  background: rgba(244, 238, 227, .07);
  color: var(--papier);
  font-family: var(--f-ui); font-size: 12px; font-weight: 450; letter-spacing: .3em; text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out);
}
.gate__btn::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--olive-pale); opacity: 0; pointer-events: none; }
.gate.is-ready:not(.is-opening) .gate__btn::after { animation: halo 2.6s 2.4s var(--ease-out) infinite; }
.gate__btn:hover, .gate__btn:focus-visible { background: var(--papier); border-color: var(--papier); color: var(--encre); }
.gate__btn:hover .gate__pulse, .gate__btn:focus-visible .gate__pulse { background: var(--olive); }
.gate__pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--olive-pale); }
.gate__pulse::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--olive-pale); animation: pulse 1.8s var(--ease-out) infinite; }
.gate__sound { margin: 0; font-style: italic; font-size: 15px; color: rgba(244, 238, 227, .55); }
.gate.is-ready .gate__top, .gate.is-ready .gate__cta { opacity: 1; transform: none; }
.gate.is-opening .gate__top, .gate.is-opening .gate__cta { opacity: 0; transform: translateY(8px); transition-delay: 0s; transition-duration: .45s; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes halo { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.12, 1.5); opacity: 0; } }

/* Envelope */
.env-wrap { width: min(90vw, 540px); container-type: inline-size; }
.env {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 7;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(40px) rotate(-3deg) scale(.96);
  transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.gate.is-ready .env { opacity: 1; transform: none; }
.gate.is-ready:not(.is-opening) .env { animation: floaty 5s 1.8s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -7px; rotate: .4deg; } }
@media (hover: hover) and (pointer: fine) {
  .gate.is-ready:not(.is-opening) .env:hover { transform: translateY(-8px) scale(1.012); transition: transform .6s var(--ease-out); }
}

.env__front, .env__back { position: absolute; inset: 0; border-radius: 3px; }
.env__front {
  overflow: hidden;
  background: linear-gradient(162deg, #F8F2E6 0%, #F0E7D6 55%, #E5D9C2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(120, 100, 60, .12), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 16px 32px -14px rgba(0, 0, 0, .7);
  transform-origin: 50% 50%;
}
.env__front::before { content: ""; position: absolute; inset: 0; background-image: var(--grain-dark); opacity: .45; mix-blend-mode: multiply; pointer-events: none; }
.env__return { position: absolute; left: 6.5cqw; top: 7cqw; display: flex; align-items: center; gap: 2.4cqw; color: var(--olive-deep); }
.env__return svg { width: 7.4cqw; height: auto; color: var(--olive); }
.env__return span { font-family: var(--f-ui); font-size: max(7px, 1.9cqw); letter-spacing: .3em; text-transform: uppercase; line-height: 1.5; }

.stamp {
  --r: .9cqw;
  position: absolute;
  right: 6cqw;
  top: 6cqw;
  width: 15.5cqw;
  aspect-ratio: 4 / 5;
  padding: 1.5cqw;
  background: #FBF8F1;
  transform: rotate(3.5deg);
  filter: drop-shadow(0 1px 1.5px rgba(60, 40, 10, .28));
  -webkit-mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) content-box;
}
.stamp__inner { position: relative; width: 100%; height: 100%; overflow: hidden; background: #EFEBDD; }
.stamp__inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; filter: saturate(.9) contrast(1.02); }
.stamp__val { position: absolute; left: .8cqw; top: .5cqw; font-family: var(--f-display); font-size: 2.6cqw; font-style: italic; color: var(--olive-deep); }
.stamp__lbl { position: absolute; left: 0; right: 0; bottom: .6cqw; text-align: center; font-family: var(--f-ui); font-size: max(5px, 1.3cqw); letter-spacing: .22em; color: #2F3A12; text-transform: uppercase; }
.postmark { position: absolute; right: 13.5cqw; top: 11cqw; width: 33cqw; color: rgba(36, 30, 22, .58); transform: rotate(-9deg); pointer-events: none; mix-blend-mode: multiply; }
.postmark text { font-family: var(--f-ui); letter-spacing: .14em; }

.env__address { position: absolute; left: 13cqw; right: 8cqw; bottom: 15cqw; }
.env__to { display: block; font-family: var(--f-ui); font-size: max(8px, 2.3cqw); letter-spacing: .34em; text-transform: uppercase; color: var(--olive-deep); margin-bottom: .6cqw; }
.env__name { display: block; font-size: calc(12.5cqw * var(--name-scale, 1)); line-height: 1.05; color: #221C14; padding-left: 4cqw; white-space: nowrap; }
.env__name.is-plain { font-family: var(--f-display); font-style: italic; font-size: 9cqw; padding-left: 1.5cqw; letter-spacing: -.01em; }
.env__rule { display: block; height: 1px; margin-top: 1.4cqw; background: linear-gradient(90deg, rgba(23, 20, 15, .35), rgba(23, 20, 15, .08)); }
.env__line2 { display: block; margin-top: 1.6cqw; font-family: var(--f-display); font-style: italic; font-size: max(9px, 2.9cqw); color: var(--encre-soft); }

/* Verso: liner, cartão, bolso, aba, lacre */
.env__back { visibility: hidden; transform: rotateY(-90deg); }
.env__liner {
  position: absolute; inset: 0; border-radius: 3px;
  background: var(--treillage), linear-gradient(170deg, #66762C, #4A571E);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 16px 32px -14px rgba(0, 0, 0, .7);
}
.env__card {
  position: absolute; left: 5.5%; right: 5.5%; top: 6%; height: 89%;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 7cqw;
  text-align: center;
  color: var(--encre);
  background: var(--verge), linear-gradient(180deg, #FDFBF6, #F6F1E6);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.env__card::before { content: ""; position: absolute; inset: 2.4cqw; border: 1px solid rgba(118, 136, 53, .45); outline: 1px solid rgba(118, 136, 53, .2); outline-offset: -1.2cqw; pointer-events: none; }
.env__card svg { width: 13cqw; height: auto; color: var(--olive); }
.env__card-kicker { margin: 3cqw 0 0; font-style: italic; font-size: 5.2cqw; line-height: 1.1; }
.env__card-names { margin: 2.2cqw 0 0; font-family: var(--f-ui); font-size: max(7px, 2.1cqw); letter-spacing: .32em; text-transform: uppercase; color: var(--olive-deep); }

.env__pocket { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.env__pocket i, .env__pocket b { position: absolute; inset: 0; display: block; }
.env__pocket .p-l { clip-path: polygon(0 0, 52% 57%, 0 100%); background: linear-gradient(105deg, #F1E9D8, #E3D7BF); }
.env__pocket .p-r { clip-path: polygon(100% 0, 48% 57%, 100% 100%); background: linear-gradient(255deg, #EFE6D4, #DFD2B9); }
.env__pocket .p-b { filter: drop-shadow(0 -1.5px 2.5px rgba(40, 30, 10, .2)); }
.env__pocket .p-b b { clip-path: polygon(0 100%, 50% 45%, 100% 100%); background: linear-gradient(0deg, #F6F0E3, #EAE0CC); }
.env__pocket::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background-image: var(--grain-dark); opacity: .4; mix-blend-mode: multiply; clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); }

.env__flapshade { position: absolute; left: 0; top: 0; width: 100%; height: 61%; z-index: 4; clip-path: polygon(0 0, 100% 0, 50% 100%); background: rgba(30, 22, 8, .28); filter: blur(3px); transform: translateY(1.5%); pointer-events: none; }
.env__flap { position: absolute; left: 0; top: 0; width: 100%; height: 60%; z-index: 5; transform-origin: 50% 0; transform-style: preserve-3d; pointer-events: none; }
.env__flap i { position: absolute; inset: 0; display: block; clip-path: polygon(0 0, 100% 0, 50.6% 99%, 50% 100%, 49.4% 99%); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.env__flap .flap-out { background: linear-gradient(180deg, #F8F2E6 0%, #EDE3D0 100%); }
.env__flap .flap-out::after { content: ""; position: absolute; inset: 0; background-image: var(--grain-dark); opacity: .4; mix-blend-mode: multiply; }
.env__flap .flap-in { transform: rotateX(180deg); background: var(--treillage), linear-gradient(0deg, #66762C, #4A571E); }

.seal { position: absolute; left: 50%; top: calc(60% - 13cqw); width: 25cqw; aspect-ratio: 1; z-index: 6; transform: translateX(-50%); filter: drop-shadow(0 .8cqw 1cqw rgba(20, 14, 4, .45)); pointer-events: none; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1.5px solid rgba(118, 136, 53, .8); opacity: 0; pointer-events: none; }
.gate.is-back:not(.is-opening) .seal__ring { animation: ripple 2.4s var(--ease-out) infinite; }
.gate.is-back:not(.is-opening) .seal__ring + .seal__ring { animation-delay: 1.2s; }
.gate.is-back:not(.is-opening) .seal svg { animation: breathe 2.4s ease-in-out infinite; }
@keyframes ripple { 0% { transform: scale(.92); opacity: .95; } 100% { transform: scale(1.85); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.env__cta {
  position: absolute; left: 0; right: 0; bottom: 5.5cqw; z-index: 6; margin: 0;
  text-align: center; font-family: var(--f-ui); font-size: max(10px, 2.5cqw); font-weight: 450; letter-spacing: .3em; text-transform: uppercase;
  color: var(--olive-deep); opacity: 0; transition: opacity .7s .35s var(--ease-out); pointer-events: none;
}
.gate.is-back:not(.is-opening) .env__cta { opacity: 1; }
.gate.is-opening .env__cta { transition: opacity .25s; opacity: 0; }
.seal__l { clip-path: polygon(0 0, 53% 0, 47% 17%, 55% 33%, 46% 50%, 54% 68%, 47% 84%, 52% 100%, 0 100%); }
.seal__r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 52% 100%, 47% 84%, 54% 68%, 46% 50%, 55% 33%, 47% 17%); }

/* =============================================================================
   Barra superior, menu, som, toast
   ========================================================================== */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) var(--pad) 12px;
  color: var(--papier);
  border-bottom: 1px solid transparent;
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s, opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.is-gated .bar { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.bar.is-solid, .menu-open .bar { background: rgba(244, 238, 227, .9); color: var(--encre); border-bottom-color: var(--hair); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.bar__mono { display: block; width: 36px; flex: none; margin-right: auto; color: inherit; }
.bar__mono svg { width: 100%; height: auto; }
.bar.is-solid .bar__mono, .menu-open .bar__mono { color: var(--olive); }
.bar__date { position: absolute; left: 50%; transform: translateX(-50%); display: none; font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .6s; pointer-events: none; }
.bar.is-solid .bar__date { opacity: .75; }
.bar__btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 2px 0 12px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.bar__burger { position: relative; width: 22px; height: 9px; }
.bar__burger::before, .bar__burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.bar__burger::before { top: 0; }
.bar__burger::after { top: 8px; }
.menu-open .bar__burger::before { top: 4px; transform: rotate(45deg); }
.menu-open .bar__burger::after { top: 4px; transform: rotate(-45deg); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 1.5px; height: 100%; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.2); transition: transform .4s; }
.is-sound-on .sound__bars i { animation: eq 1.1s ease-in-out infinite; }
.is-sound-on .sound__bars i:nth-child(2) { animation-delay: -.35s; }
.is-sound-on .sound__bars i:nth-child(3) { animation-delay: -.7s; }
.is-sound-on .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.menu {
  position: fixed; inset: 0; z-index: 65;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(84px + env(safe-area-inset-top)) var(--pad) max(32px, env(safe-area-inset-bottom));
  background: var(--papier) var(--grain-dark);
  color: var(--encre);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { border-bottom: 1px solid var(--hair); opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.menu.is-open li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.menu ol a { display: grid; grid-template-columns: 38px 1fr; align-items: baseline; padding: 14px 0 13px; text-decoration: none; }
.menu ol a em { font-style: italic; font-size: 15px; color: var(--olive-deep); }
.menu ol a span { font-size: clamp(30px, 8.8vw, 56px); line-height: 1.05; letter-spacing: -.01em; }
.menu ol a small { grid-column: 2; margin-top: 4px; font-family: var(--f-ui); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--encre-soft); }
.menu__foot { display: grid; gap: 18px; }
.menu__ctas { display: grid; grid-template-columns: 1fr; gap: 8px; }
.menu__ctas .btn { padding: 0 10px; font-size: 10.5px; letter-spacing: .18em; }
.menu__foot p { margin: 0; font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--encre-soft); }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90;
  padding: 14px 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--encre); color: var(--papier);
  font-family: var(--f-ui); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================================
   1. HERO — o filme
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: var(--nuit); color: var(--papier); }
.hero__film { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; background: var(--nuit); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(14, 12, 9, .55) 0%, rgba(14, 12, 9, 0) 20%), linear-gradient(0deg, rgba(14, 12, 9, .92) 0%, rgba(14, 12, 9, .55) 26%, rgba(14, 12, 9, 0) 54%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: var(--grain-light); opacity: .28; animation: grain 1.2s steps(5) 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); } }
.hero__endcard { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; align-content: center; gap: 18px; background: var(--nuit); opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.hero__endcard svg { width: clamp(84px, 24vw, 150px); color: var(--olive-pale); }
.hero__endcard p { margin: 0; font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .4em; text-transform: uppercase; color: rgba(244, 238, 227, .6); }
.hero.is-endcard .hero__endcard { opacity: 1; }
.hero__content { position: absolute; left: var(--pad); right: var(--pad); bottom: max(40px, calc(env(safe-area-inset-bottom) + 26px)); z-index: 2; }
.hero__eyebrow { margin: 0 0 14px; font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .4em; text-transform: uppercase; color: rgba(244, 238, 227, .78); }
.hero__motto { margin: 0 0 10px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.45rem, 6.4vw, 2.5rem); line-height: 1.1; letter-spacing: .005em; text-transform: none; color: var(--olive-pale); text-shadow: 0 1px 18px rgba(14, 12, 9, .6); }
.hero__names { margin: 0; font-weight: 470; font-style: italic; font-size: clamp(4rem, 19.5vw, 11.5rem); line-height: .84; letter-spacing: -.02em; text-shadow: 0 2px 28px rgba(14, 12, 9, .45); }
.hero__names .line { display: block; }
.hero__names .line + .line { padding-left: .55em; }
.hero__names .amp { font-size: .62em; color: var(--olive-pale); margin-right: .2em; vertical-align: .06em; }
.hero__meta { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-family: var(--f-ui); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.hero__meta i { flex: 0 0 30px; height: 1px; background: currentColor; opacity: .55; }
.hero__cue { position: absolute; right: var(--pad); bottom: max(40px, calc(env(safe-area-inset-bottom) + 26px)); z-index: 2; width: 1px; height: 64px; background: rgba(244, 238, 227, .25); overflow: hidden; }
.hero__cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--papier); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }

/* Coreografia de entrada do hero */
.js .hero__eyebrow, .js .hero__meta, .js .hero__cue { opacity: 0; transform: translateY(14px); transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out); }
.js .hero__names .ch { display: inline-block; opacity: 0; transform: translateY(.42em) rotate(5deg); filter: blur(8px); transition: opacity 1.3s var(--ease-out), transform 1.6s var(--ease-out), filter 1.3s var(--ease-out); transition-delay: calc(.35s + var(--i) * .055s); }
.js .hero__names .amp { opacity: 0; transition: opacity 1.6s 1.1s var(--ease-out); }
.is-revealed .hero__names .ch { opacity: 1; transform: none; filter: none; }
.is-revealed .hero__names .amp { opacity: 1; }
.is-revealed .hero__eyebrow { opacity: 1; transform: none; transition-delay: .15s; }
.is-revealed .hero__meta { opacity: 1; transform: none; transition-delay: 1.5s; }
.is-revealed .hero__cue { opacity: 1; transform: none; transition-delay: 2s; }

/* =============================================================================
   2. O CONVITE (cartão)
   ========================================================================== */
.invite { position: relative; padding: var(--sec) 0 calc(var(--sec) * .8); background: var(--papier); overflow: hidden; }
.invite::before { content: ""; position: absolute; inset: 0; background-image: var(--grain-dark); opacity: .5; mix-blend-mode: multiply; pointer-events: none; }
.invite__photo { position: relative; width: 76%; margin: 0 calc(var(--pad) - 4px) 0 auto; aspect-ratio: 2 / 3; overflow: hidden; }
.invite__photo img { width: 100%; height: 100%; object-fit: cover; }
.invite__photo figcaption { position: absolute; left: 14px; top: 14px; font-family: var(--f-ui); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244, 238, 227, .85); }
.card {
  position: relative; z-index: 2;
  width: calc(100% - 2 * var(--pad) + 8px);
  max-width: 560px;
  margin: -34% auto 0;
  padding: 58px 26px 46px;
  text-align: center;
  background: var(--verge), linear-gradient(180deg, #FDFBF6, #F7F2E8);
  box-shadow: 0 1px 1px rgba(60, 45, 20, .08), 0 30px 60px -28px rgba(60, 45, 20, .45), 0 8px 18px -10px rgba(60, 45, 20, .25);
}
.card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(118, 136, 53, .5); pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(118, 136, 53, .22); pointer-events: none; }
.card__mono { width: 64px; margin: 0 auto 26px; color: var(--olive); }
.card .eyebrow { margin-bottom: 30px; }
.card__names { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(2.9rem, 13.5vw, 4.6rem); line-height: .92; letter-spacing: -.02em; }
.card__names span { display: block; }
.card__names em { display: block; font-size: .56em; color: var(--olive); margin: .12em 0 .08em; }
.card__lead { margin: 30px auto 0; max-width: 21em; font-size: 18px; line-height: 1.5; color: var(--encre-soft); }
.card__lead--2 { margin-top: 4px; }
.card__guest { display: none; margin: 10px 0 2px; font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: 1.15; color: var(--encre); }
.has-guest .card__guest { display: block; }
.has-guest .card__you { display: none; }
.card__orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 34px auto 30px; color: var(--olive); }
.card__orn::before, .card__orn::after { content: ""; width: 54px; height: 1px; background: currentColor; opacity: .6; }
.card__orn i { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.dateblock { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 330px; margin: 0 auto; }
.dateblock__side { padding: 11px 0; border-block: 1px solid var(--hair-strong); font-family: var(--f-ui); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.dateblock__day { padding: 0 18px; font-size: 78px; line-height: .9; letter-spacing: -.03em; }
.dateblock__month { grid-column: 1 / -1; margin-top: 12px; font-family: var(--f-ui); font-size: 11.5px; letter-spacing: .42em; text-transform: uppercase; }
.card__venue { margin: 34px 0 0; font-size: 26px; font-style: italic; line-height: 1.2; }
.card__city { margin: 8px 0 0; font-family: var(--f-ui); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--encre-soft); }
.card__note { margin: 34px auto 0; padding-top: 18px; max-width: 22em; border-top: 1px solid var(--hair); font-size: 15.5px; font-style: italic; line-height: 1.5; color: var(--encre-soft); }

/* =============================================================================
   3. J–xxx (contagem regressiva)
   ========================================================================== */
.countdown { position: relative; isolation: isolate; overflow: hidden; padding: var(--sec) var(--pad); text-align: center; background: var(--nuit); color: var(--papier); }
.countdown__bg { position: absolute; inset: 0; z-index: -2; }
.countdown__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: .42; }
.countdown__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 46% at 50% 46%, rgba(14, 12, 9, .55), rgba(14, 12, 9, .88) 85%), linear-gradient(var(--nuit), transparent 22%, transparent 78%, var(--nuit)); }
.jcount__pre { margin: 6px 0 0; font-style: italic; font-size: 24px; color: var(--olive-pale); }
.jcount.is-text { font-size: clamp(4.4rem, 21vw, 11rem); font-style: italic; }
.countdown::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain-light); opacity: .3; pointer-events: none; }
.jcount { margin: 4px 0 0; font-weight: 450; font-size: clamp(7rem, 38vw, 19rem); line-height: .86; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: lining-nums; }
.jcount em { font-style: italic; color: var(--olive-pale); }
.jcount__dash { display: inline-block; margin: 0 .02em; font-weight: 400; opacity: .55; transform: translateY(-.04em); }
.countdown__sub { margin: 18px 0 0; font-size: 20px; font-style: italic; color: rgba(244, 238, 227, .82); }
.countdown__sub em { color: var(--olive-pale); }
.ticker { display: flex; justify-content: center; margin: 44px auto 46px; padding: 0; list-style: none; max-width: 520px; }
.ticker li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 4px; }
.ticker li + li { border-left: 1px solid var(--hair-light); }
.ticker b { font-weight: 400; font-size: clamp(28px, 8vw, 40px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.ticker span { font-family: var(--f-ui); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244, 238, 227, .6); }
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 0 auto; }
.cal .btn { padding: 0 12px; font-size: 10.5px; letter-spacing: .2em; }

/* =============================================================================
   5. LE JOUR J — programa + dress code
   ========================================================================== */
.day { position: relative; isolation: isolate; padding: var(--sec) var(--pad); background: var(--nuit-2); color: var(--papier); overflow: hidden; }
.day::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain-light); opacity: .25; pointer-events: none; }
.day .sec-head { padding: 0; }
.day .sec-sub { color: rgba(244, 238, 227, .7); }
.timeline { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair-light); }
.timeline li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 34px 0 36px; border-top: 1px solid var(--hair-light); }
.timeline time { font-size: clamp(4rem, 19vw, 7.4rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.timeline time small { font-size: .42em; font-style: italic; letter-spacing: 0; color: var(--olive-pale); margin-left: .08em; }
.timeline time.is-soft { font-size: clamp(2.6rem, 12vw, 4.8rem); font-style: italic; }
.timeline h3 { margin: 12px 0 0; font-family: var(--f-ui); font-weight: 450; font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--olive-pale); }
.timeline p { margin: 8px 0 0; max-width: 24em; font-size: 18px; font-style: italic; color: rgba(244, 238, 227, .78); }
.day__notes { display: grid; gap: 14px; margin-top: clamp(56px, 14vw, 110px); }
.dress { position: relative; padding: 40px 28px 44px; text-align: center; border: 1px solid rgba(185, 196, 138, .4); }
.dress::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(185, 196, 138, .16); pointer-events: none; }
.dress .eyebrow { margin-bottom: 16px; }
.dress h3 { margin: 0; font-weight: 400; font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1; }
.dress h3 em { color: var(--olive-pale); }
.dress p:not(.eyebrow) { margin: 18px auto 0; max-width: 22em; font-size: 17px; font-style: italic; color: rgba(244, 238, 227, .78); }
.day__note { margin: 22px auto 0; max-width: 23em; text-align: center; font-size: 17px; font-style: italic; line-height: 1.5; color: rgba(244, 238, 227, .74); text-wrap: balance; }
.day__note .eyebrow { margin-bottom: 10px; font-style: normal; }
.dress__list { margin: 28px auto 0; max-width: 26em; text-align: left; }
.dress__list div { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 15px 0 14px; border-top: 1px solid rgba(185, 196, 138, .22); }
.dress__list div:last-child { border-bottom: 1px solid rgba(185, 196, 138, .22); }
.dress__list dt { padding-top: 5px; font-family: var(--f-ui); font-size: 10.5px; font-weight: 450; letter-spacing: .3em; text-transform: uppercase; color: var(--olive-pale); }
.dress__list dd { margin: 0; font-size: 17px; line-height: 1.45; color: rgba(244, 238, 227, .88); }
.dress p.dress__note { margin-top: 22px; }

/* =============================================================================
   6. RENDEZ-VOUS AU JARDIN — o local
   ========================================================================== */
.place { position: relative; padding: var(--sec) 0 calc(var(--sec) * .85); background: var(--papier); text-align: center; overflow: hidden; }
.place::before { content: ""; position: absolute; inset: 0; background-image: var(--grain-dark); opacity: .45; mix-blend-mode: multiply; pointer-events: none; }
.place .sec-head { margin-bottom: 8px; }
.place .title em { display: block; }
.place__art { position: relative; margin: 0 auto; max-width: 980px; mix-blend-mode: multiply; }
/* esmaece os quatro lados até zero → nenhuma borda do recorte aparece */
.place__art img {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 76%, transparent 100%);
  mask-composite: intersect;
}
.place__addr { position: relative; margin: 4px auto 0; padding: 0 var(--pad); font-style: normal; font-size: 18px; line-height: 1.6; }
.place__addr strong { display: block; margin-bottom: 10px; font-weight: 400; font-style: italic; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.05; }
.place__addr span { display: block; color: var(--encre-soft); }
.place__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; margin: 34px auto 0; padding: 0 var(--pad); }
.place__actions .btn { padding: 0 6px; font-size: 10.5px; letter-spacing: .18em; }
.place__copy { margin-top: 18px; }

/* =============================================================================
   7. ET PUIS, ON DANSE — vídeo em arco
   ========================================================================== */
.dance { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 54px; padding: var(--sec) var(--pad); background: var(--nuit); color: var(--papier); text-align: center; overflow: hidden; }
.dance::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain-light); opacity: .25; pointer-events: none; }
.dance__frame { position: relative; width: min(62vw, 360px); }
.dance__frame::before { content: ""; position: absolute; inset: -14px -14px -14px; border: 1px solid rgba(185, 196, 138, .42); border-radius: 50% 50% 0 0 / 27% 27% 0 0; pointer-events: none; }
.dance__arch { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 50% 50% 0 0 / 28.2% 28.2% 0 0; background: #1a1510; }
.dance__arch video { width: 100%; height: 100%; object-fit: cover; }
.dance__text p:not(.eyebrow) { margin: 20px auto 34px; max-width: 20em; font-size: 19px; font-style: italic; color: rgba(244, 238, 227, .8); }
.dance .title { font-size: clamp(3.6rem, 17vw, 8rem); }

/* =============================================================================
   8. CONFIRMAÇÃO — aviso (a confirmação é feita pela cerimonialista)
   ========================================================================== */
.notice { position: relative; padding: calc(var(--sec) * .8) var(--pad); background: var(--papier); overflow: hidden; }
.notice::before { content: ""; position: absolute; inset: 0; background-image: var(--grain-dark); opacity: .45; mix-blend-mode: multiply; pointer-events: none; }
.notice__card {
  position: relative; max-width: 560px; margin: 0 auto; padding: 56px 28px 52px; text-align: center;
  background: var(--verge), linear-gradient(180deg, #FDFBF6, #F7F2E8);
  box-shadow: 0 1px 1px rgba(60, 45, 20, .08), 0 30px 60px -28px rgba(60, 45, 20, .45), 0 8px 18px -10px rgba(60, 45, 20, .25);
}
.notice__card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(118, 136, 53, .5); pointer-events: none; }
.notice__card::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(118, 136, 53, .22); pointer-events: none; }
.notice__title { margin: 0; font-weight: 400; font-size: clamp(2.4rem, 10.5vw, 3.6rem); line-height: 1.02; letter-spacing: -.01em; }
.notice__title em { color: var(--olive); }
.notice .card__orn { margin: 26px auto 24px; }
.notice__text { margin: 0 auto; max-width: 21em; font-size: 19px; font-style: italic; line-height: 1.5; color: var(--encre-soft); }

/* =============================================================================
   9. LA LISTE — presentes (em breve)
   ========================================================================== */
.gifts {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: 88vh; min-height: 88svh;
  padding: var(--sec) var(--pad);
  text-align: center; color: var(--papier);
  background: #2F3812;
}
.gifts__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.gifts__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.08) brightness(.86); }
/* duotom no verde-oliva da identidade */
.gifts__bg::before { content: ""; position: absolute; inset: 0; background: #56652A; mix-blend-mode: multiply; }
.gifts__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 62% at 50% 52%, rgba(34, 41, 11, .58), rgba(22, 27, 7, .9)); }
.gifts__inner { max-width: 640px; }
.gifts__mono { width: clamp(58px, 16vw, 84px); margin: 0 auto 26px; color: #DCE3B8; }
.gifts .eyebrow { color: rgba(244, 238, 227, .8); }
.gifts .title { font-size: clamp(3.3rem, 15vw, 7.4rem); }
.gifts .title em { color: #DCE3B8; display: block; }
.gifts__text { margin: 24px auto 0; max-width: 20em; font-size: 20px; font-style: italic; line-height: 1.45; color: rgba(244, 238, 227, .9); }
.gifts__action { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
.gifts__action .btn { min-height: 60px; padding: 0 36px; font-size: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.pix { display: grid; justify-items: center; gap: 10px; max-width: 420px; margin: 26px auto 0; padding: 26px 22px 24px; border: 1px solid rgba(244, 238, 227, .42); background: rgba(14, 12, 9, .3); }
.pix__label { font-family: var(--f-ui); font-size: 10.5px; font-weight: 450; letter-spacing: .34em; text-transform: uppercase; color: #DCE3B8; }
.pix__key { font-size: clamp(1.75rem, 8.4vw, 2.4rem); line-height: 1.1; letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; color: var(--papier); -webkit-user-select: all; user-select: all; }
.pix__copy { margin-top: 8px; min-height: 58px; padding: 0 32px; font-size: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.pix__hint { font-size: 15px; font-style: italic; line-height: 1.4; color: rgba(244, 238, 227, .75); }

/* =============================================================================
   10. FIN
   ========================================================================== */
.fin { position: relative; isolation: isolate; padding: clamp(96px, 22vw, 180px) var(--pad) max(44px, calc(env(safe-area-inset-bottom) + 24px)); background: var(--nuit); color: var(--papier); text-align: center; overflow: hidden; }
.fin::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain-light); opacity: .25; pointer-events: none; }
.fin__mono { width: clamp(90px, 26vw, 140px); margin: 0 auto 34px; color: var(--olive-pale); }
.fin__names { margin: 0; font-style: italic; font-size: clamp(2.4rem, 11vw, 4.4rem); line-height: 1; }
.fin__names em { color: var(--olive-pale); font-size: .7em; }
.fin__meta { margin: 18px 0 0; font-family: var(--f-ui); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: rgba(244, 238, 227, .6); }
.fin__sign { margin: 44px 0 0; font-size: clamp(3rem, 15vw, 4.6rem); line-height: 1; color: var(--olive-pale); }
.fin__small { margin: 70px 0 0; font-family: var(--f-ui); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244, 238, 227, .35); }

/* Textura de papel sempre por baixo do conteúdo */
.invite, .place, .notice { isolation: isolate; }
.invite::before, .place::before, .notice::before { z-index: -1; }

/* Quebras de linha equilibradas */
.title, .sec-sub, .card__lead, .countdown__sub, .notice__text, .card__note, .timeline p, .dress p, .gifts p, .dance__text p, .place__addr span { text-wrap: balance; }

/* =============================================================================
   Parallax por scroll (progressivo — onde houver suporte)
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .countdown__bg img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    .gifts__bg img { animation: drift-sm linear both; animation-timeline: view(); animation-range: cover; }
    .invite__photo img { animation: drift-sm linear both; animation-timeline: view(); animation-range: cover; }
  }
  @keyframes drift { from { transform: translateY(-8%) scale(1.18); } to { transform: translateY(8%) scale(1.18); } }
  @keyframes drift-sm { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
}

/* =============================================================================
   Tablet / Desktop
   ========================================================================== */
@media (min-width: 760px) {
  body { font-size: 18px; }
  .bar__date { display: block; }
  .place__addr { font-size: 19px; }
  .env-wrap { width: min(64vw, 600px); }
  .hero__names { font-size: clamp(5rem, 12vw, 11.5rem); }
  .hero__content { bottom: 64px; }
  .hero__cue { bottom: 64px; }

  .invite { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; padding-inline: var(--pad); }
  .invite__photo { grid-column: 1 / span 6; grid-row: 1; width: 100%; margin: 0; }
  .card { grid-column: 6 / span 7; grid-row: 1; width: auto; margin: 0; padding: 72px 56px 60px; max-width: none; }

  .cal { grid-template-columns: auto auto; justify-content: center; }
  .cal .btn { padding: 0 26px; }


  .day .sec-head, .timeline, .dress { max-width: 1180px; margin-inline: auto; }
  .day__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 100px); align-items: start; max-width: 1180px; margin: 0 auto; }
  .day__grid .day__notes { margin-top: 0; }
  .timeline li { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 32px; }
  .timeline li > div { padding-bottom: 8px; }

  .place__grid { display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 24px; max-width: 1280px; margin: 0 auto; padding-inline: var(--pad); text-align: left; }
  .place__grid .place__addr, .place__grid .place__actions { padding: 0; margin-left: 0; }
  .place__actions { grid-template-columns: repeat(3, auto); justify-content: start; }
  .place__actions .btn { padding: 0 22px; }

  .dance { grid-template-columns: 5fr 6fr; align-items: center; justify-items: start; text-align: left; max-width: none; padding-inline: max(var(--pad), calc((100vw - 1180px) / 2)); }
  .dance__frame { justify-self: center; }
  .dance__text p { margin-left: 0; }
}



/* =============================================================================
   Filme: botão manual (conexão muito lenta, economia de dados ou de bateria)
   ========================================================================== */
.hero__play {
  position: absolute; left: 50%; top: 40%; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transform: translate(-50%, -50%);
  border: 0; padding: 10px; background: none; color: var(--papier); cursor: pointer;
  font-family: var(--f-ui); font-size: 11px; font-weight: 450; letter-spacing: .3em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.hero__play-ring { position: relative; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; border: 1px solid rgba(244, 238, 227, .75); background: rgba(14, 12, 9, .38); transition: background-color .4s var(--ease-out), color .4s var(--ease-out); }
.hero__play-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--olive-pale); animation: ring 2.4s var(--ease-out) infinite; }
.hero__play svg { width: 22px; height: 22px; margin-left: 4px; fill: currentColor; }
.hero__play:hover .hero__play-ring, .hero__play:focus-visible .hero__play-ring { background: var(--papier); color: var(--encre); }
@keyframes ring { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.55); opacity: 0; } }

/* =============================================================================
   Modo leve — aparelhos com pouca memória/processador (detectado no script)
   Mesmo visual; só saem os efeitos que custam caro para a placa de vídeo.
   ========================================================================== */
.lite .bar.is-solid, .lite.menu-open .bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(244, 238, 227, .97); }
.lite .gate__btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(244, 238, 227, .1); }
.lite .hero::after { animation: none; }
.lite .hero__names .ch { filter: none; }
.lite .invite::before, .lite .place::before, .lite .notice::before,
.lite .env__front::before, .lite .env__pocket::after, .lite .env__flap .flap-out::after { display: none; }
.lite [data-reveal="img"] { clip-path: none; opacity: 0; transition: opacity 1s var(--ease-out); transition-delay: var(--d, 0s); }
.lite [data-reveal="img"].is-in { opacity: 1; }
.lite [data-reveal="img"] img, .lite [data-reveal="img"] video { transform: none; transition: none; }
.lite .countdown__bg img, .lite .gifts__bg img, .lite .invite__photo img { animation: none; }
/* o lacre tem filtros de textura em SVG: no modo leve ele não "respira" (os anéis continuam pulsando) */
.lite .gate.is-back:not(.is-opening) .seal svg { animation: none; }
/* menu: desliza (transform, acelerado pela GPU) em vez de recorte animado */
.lite .menu { clip-path: none; transform: translateY(-100%); transition: transform .7s var(--ease-io), visibility 0s linear .7s; }
.lite .menu.is-open { transform: none; transition: transform .7s var(--ease-io), visibility 0s; }

/* =============================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
