/* ==========================================================================
   Donna Cerimonial & Eventos — Bio Link
   Direção: convite de casamento de luxo · hot stamping dourado sobre preto
   ========================================================================== */

/* Fontes (SIL Open Font License) ------------------------------------------ */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations"),
       url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2-variations"),
       url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
}

/* Tokens ------------------------------------------------------------------- */
:root {
  --ink: #050505;
  --graphite: #151515;
  --gold: #D4AF37;
  --gold-light: #F5D778;
  --gold-deep: #8F671C;
  --ivory: #F5F2EA;
  /* Preto absoluto: só atrás da logo, para que a sombra original do arquivo desapareça */
  --logo-backing: #000;

  --ivory-soft: rgba(245, 242, 234, .74);
  --ivory-faint: rgba(245, 242, 234, .58);
  --line: rgba(212, 175, 55, .30);
  --line-soft: rgba(212, 175, 55, .15);

  --gold-foil: linear-gradient(115deg, #B8922C 0%, #D4AF37 26%, #EBCB68 50%, #D4AF37 74%, #B8922C 100%);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --gutter: 18px;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(110% 55% at 50% -12%, rgba(212, 175, 55, .09), transparent 62%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }

::selection { background: rgba(212, 175, 55, .35); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Moldura de convite (borda dupla + losangos nos cantos) -------------------- */
.frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--logo-backing);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.frame::after {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5Z' fill='%23D4AF37'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5Z' fill='%23D4AF37'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5Z' fill='%23D4AF37'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5Z' fill='%23D4AF37'/%3E%3C/svg%3E");
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-size: 9px 9px;
  background-repeat: no-repeat;
}

/* Texto em hot stamping dourado -------------------------------------------- */
.foil {
  font-style: italic;
  color: var(--gold);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil {
    background-image:
      linear-gradient(105deg, transparent 43%, rgba(255, 247, 222, .95) 50%, transparent 57%),
      linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 48%, #B48E2C 100%);
    background-size: 300% 100%, 100% 100%;
    background-position: 0% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* evita o corte das hastes do itálico */
    padding-right: .06em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}

/* ==========================================================================
   1 · Apresentação
   ========================================================================== */
.hero {
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0;
}

.hero__spread {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.invite {
  padding: 40px 22px 32px;
  text-align: center;
}

/* A logo original é o título principal da página */
.brand {
  line-height: 0;
}

.brand__logo {
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto;
}

.invite__headline {
  max-width: 15ch;
  margin: 26px auto 0;
  font-family: var(--serif);
  font-size: clamp(29px, 7.8vw, 46px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.invite__lead {
  max-width: 31ch;
  margin: 16px auto 0;
  color: var(--ivory-soft);
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.invite__place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.invite__place .icon {
  font-size: 14px;
  stroke-width: 1.75;
}

/* ==========================================================================
   2 · Links principais
   ========================================================================== */
.links__list {
  display: grid;
  gap: 12px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 14px 18px 14px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 21, 21, .78);
  color: var(--ivory);
  text-decoration: none;
  transition:
    border-color .45s var(--ease),
    background-color .45s var(--ease),
    box-shadow .45s var(--ease),
    transform .3s var(--ease);
}

.link__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 21px;
  transition: border-color .45s var(--ease), background-color .45s var(--ease);
}

.link__icon .icon {
  transition: transform .5s var(--ease);
}

.link__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.link__title {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
}

.link__hint {
  color: var(--ivory-soft);
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.35;
}

.link__arrow {
  color: var(--gold);
  font-size: 18px;
  transition: transform .45s var(--ease);
}

.link:active { transform: scale(.985); }

/* Botão principal: dourado, texto escuro */
.link--primary {
  min-height: 86px;
  border-color: rgba(245, 215, 120, .7);
  background: var(--gold-foil);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 210, .45),
    0 12px 32px -14px rgba(212, 175, 55, .45);
}

.link--primary .link__icon {
  border-color: rgba(5, 5, 5, .32);
  background: rgba(5, 5, 5, .05);
  color: var(--ink);
}

.link--primary .link__title {
  font-size: 17.5px;
  font-weight: 600;
}

.link--primary .link__hint { color: rgba(5, 5, 5, .74); }
.link--primary .link__arrow { color: var(--ink); }

/* Reflexo de luz que atravessa os botões dourados */
.link--primary::after,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 251, 236, .6) 50%, transparent 68%);
  transform: translateX(-120%);
  pointer-events: none;
}

@media (hover: hover) {
  .link:hover {
    border-color: rgba(212, 175, 55, .62);
    background-color: rgba(30, 28, 22, .92);
  }
  .link:hover .link__icon {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, .08);
  }
  .link:hover .link__icon .icon { transform: scale(1.08); }
  .link:hover .link__arrow { transform: translate(3px, -3px); }

  .link--primary:hover {
    border-color: var(--gold-light);
    background: var(--gold-foil);
    box-shadow:
      inset 0 1px 0 rgba(255, 244, 210, .55),
      0 0 0 1px rgba(245, 215, 120, .35),
      0 16px 44px -12px rgba(212, 175, 55, .6);
  }
  .link--primary:hover .link__icon {
    border-color: rgba(5, 5, 5, .55);
    background-color: rgba(5, 5, 5, .08);
  }

  .link--primary:hover::after,
  .cta:hover::after {
    transform: translateX(120%);
    transition: transform 1.1s var(--ease);
  }
}

/* ==========================================================================
   Divisor entre seções
   ========================================================================== */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 0 0;
}

.rule::before,
.rule::after {
  content: "";
  width: 72px;
  height: 1px;
  transition: transform 1.2s var(--ease) .1s;
}

.rule::before {
  background: linear-gradient(90deg, transparent, var(--line));
  transform-origin: right;
}

.rule::after {
  background: linear-gradient(90deg, var(--line), transparent);
  transform-origin: left;
}

.rule span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ==========================================================================
   Cabeçalhos de seção
   ========================================================================== */
.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 0 var(--gutter);
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  padding-left: .32em;
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(31px, 8.2vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

.section-title em,
.closing__title em {
  color: var(--gold);
  font-style: italic;
}

/* ==========================================================================
   3 · Experiências Donna
   ========================================================================== */
.experiences {
  padding-top: 40px;
}

/* Celular: cartões deslizáveis */
.moments {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.moments::-webkit-scrollbar { display: none; }

.moments:focus-visible { outline-offset: -2px; }

.moments__list {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 2px var(--gutter) 6px;
}

.moment {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(80vw, 320px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 60% at 85% 8%, rgba(212, 175, 55, .10), transparent 70%),
    linear-gradient(180deg, #171717 0%, #0d0d0d 100%);
  scroll-snap-align: start;
}

.moment::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.moment__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.moment__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.moment__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 22%, rgba(5, 5, 5, .5) 55%, rgba(5, 5, 5, .92) 100%);
  opacity: 0;
}

/* Cartão com fotografia real */
.moment--photo .moment__media::after,
.moment:has(img) .moment__media::after { opacity: 1; }
.moment--photo .moment__mono,
.moment:has(img) .moment__mono { display: none; }
.moment--photo .moment__text { color: rgba(245, 242, 234, .86); }
.moment--photo .moment__body { text-shadow: 0 1px 12px rgba(5, 5, 5, .55); }

/* Monograma de papelaria fina, visível enquanto não há fotografia */
.moment__mono {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: -1;
  color: transparent;
  font-family: var(--serif);
  font-size: 128px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.04em;
  -webkit-text-stroke: 1px rgba(212, 175, 55, .34);
  user-select: none;
}

.moment__body {
  padding: 0 24px 24px;
}

.moment__title {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

.moment__title::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 10px 0 9px;
  background: var(--gold);
}

.moment__text {
  max-width: 26ch;
  color: var(--ivory-soft);
  font-size: 14px;
  line-height: 1.55;
}

@media (hover: hover) {
  .moment:hover .moment__media img { transform: scale(1.04); }
}

/* Galeria de registros reais */
.gallery__title {
  margin: 40px auto 18px;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + .3em);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-align: center;
  text-transform: uppercase;
}

.gallery {
  max-width: 1120px;
  margin: 0 auto 8px;
  padding: 0 var(--gutter);
}

.gallery__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery__item:first-child { grid-column: 1 / -1; }

.gallery__item figure {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--graphite);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.gallery__item figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 58%, rgba(5, 5, 5, .72) 100%);
  pointer-events: none;
}

.gallery__item figcaption {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 1;
  color: var(--ivory);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(5, 5, 5, .7);
}

@media (hover: hover) {
  .gallery__item figure:hover img { transform: scale(1.04); }
}

/* ==========================================================================
   4 · Diferenciais
   ========================================================================== */
.values {
  padding-top: 40px;
  padding-bottom: 24px;
}

.values__list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.value {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 18px;
  padding: 24px 4px;
  border-top: 1px solid var(--line-soft);
}

.value:last-child { border-bottom: 1px solid var(--line-soft); }

.value__icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}

.value__icon .icon {
  stroke-width: 1.35;
  transition: transform .5s var(--ease);
}

.value__title {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.value__text {
  color: var(--ivory-soft);
  font-size: 15px;
  line-height: 1.6;
}

@media (hover: hover) {
  .value:hover .value__icon {
    border-color: var(--gold);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, .06);
  }
  .value:hover .value__icon .icon { transform: translateY(-2px); }
}

/* ==========================================================================
   5 · Chamada final
   ========================================================================== */
.closing {
  padding: 72px var(--gutter) 88px;
}

.closing__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 18px 48px;
  text-align: center;
  /* brilho discreto atrás do título, abaixo do ornamento */
  background:
    radial-gradient(70% 50% at 50% 64%, rgba(212, 175, 55, .09), transparent 72%),
    var(--logo-backing);
}

.closing__ornament {
  width: min(100%, 290px);
  height: auto;
  margin: 0 auto 30px;
}

.closing__title {
  max-width: 14ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(32px, 8.6vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.closing__text {
  max-width: 32ch;
  margin: 18px auto 32px;
  color: var(--ivory-soft);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  min-height: 60px;
  padding: 16px 20px;
  overflow: hidden;
  border: 1px solid rgba(245, 215, 120, .7);
  border-radius: var(--radius);
  background: var(--gold-foil);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .13em;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 210, .45),
    0 12px 32px -14px rgba(212, 175, 55, .45);
  transition: box-shadow .45s var(--ease), transform .3s var(--ease);
}

.cta .icon {
  font-size: 20px;
  stroke-width: 1.6;
}

.cta:active { transform: scale(.985); }

@media (hover: hover) {
  .cta:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 244, 210, .55),
      0 0 0 1px rgba(245, 215, 120, .35),
      0 16px 44px -12px rgba(212, 175, 55, .6);
  }
}

/* ==========================================================================
   6 · Rodapé
   ========================================================================== */
.footer {
  padding: 52px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: var(--logo-backing);
  text-align: center;
}

.footer__logo {
  width: 210px;
  height: auto;
  margin: 0 auto 20px;
}

.footer__place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory-soft);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.footer__place .icon {
  color: var(--gold);
  font-size: 14px;
  stroke-width: 1.75;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin: 20px 0 24px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ivory);
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .35s var(--ease);
}

.footer__links .icon {
  color: var(--gold);
  font-size: 16px;
  transition: transform .45s var(--ease);
}

@media (hover: hover) {
  .footer__links a:hover { color: var(--gold-light); }
  .footer__links a:hover .icon { transform: translateY(-1px) scale(1.08); }
}

.footer__note {
  max-width: 30ch;
  margin: 0 auto;
  color: var(--ivory-faint);
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.5;
}

/* ==========================================================================
   Movimento
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes foil-sweep {
  from { background-position: 100% 0, 0 0; }
  to   { background-position: 0% 0, 0 0; }
}

@keyframes sheen {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Abertura: a moldura surge, depois a marca, o texto e os botões */
  .invite             { animation: fade 1.1s var(--ease) both; }
  .brand              { animation: rise 1.1s var(--ease) .15s both; }
  .invite__headline   { animation: rise 1s var(--ease) .45s both; }
  .invite__lead       { animation: rise 1s var(--ease) .6s both; }
  .invite__place      { animation: rise 1s var(--ease) .7s both; }
  .links__list > li   { animation: rise .9s var(--ease) both; }
  .links__list > li:nth-child(1) { animation-delay: .75s; }
  .links__list > li:nth-child(2) { animation-delay: .84s; }
  .links__list > li:nth-child(3) { animation-delay: .93s; }

  /* Um único reflexo de luz no título e, em seguida, no botão principal */
  .foil { animation: foil-sweep 1.8s ease-in-out 1.5s; }
  .link--primary::after { animation: sheen 1.3s var(--ease) 2.5s; }

  /* Revelação ao rolar (ativada pelo JavaScript) */
  .js [data-reveal],
  .js [data-reveal-group] > * > * {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity .9s var(--ease) calc(var(--i, 0) * 90ms),
      transform .9s var(--ease) calc(var(--i, 0) * 90ms);
  }

  .js [data-reveal].is-in,
  .js [data-reveal-group].is-in > * > * {
    opacity: 1;
    transform: none;
  }

  /* Divisores: linhas que se abrem a partir do losango */
  .js .rule[data-reveal] { transform: none; }
  .js .rule[data-reveal]::before,
  .js .rule[data-reveal]::after { transform: scaleX(0); }
  .js .rule[data-reveal].is-in::before,
  .js .rule[data-reveal].is-in::after { transform: scaleX(1); }

}

/* ==========================================================================
   Celulares estreitos (até 359px)
   ========================================================================== */
@media (max-width: 359px) {
  :root { --gutter: 14px; }

  .invite { padding: 28px 16px 24px; }
  .invite__headline { margin-top: 20px; font-size: 27px; }
  .invite__lead { font-size: 15px; }
  .invite__place { letter-spacing: .2em; }

  .link { gap: 12px; padding: 12px 14px 12px 12px; }
  .link__icon { width: 40px; height: 40px; font-size: 19px; }
  .link__title { font-size: 15.5px; }
  .link--primary .link__title { font-size: 16px; }
  .link__hint { font-size: 13.5px; }

  .cta { padding: 16px 14px; font-size: 12px; letter-spacing: .1em; }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .invite { padding: 52px 40px 40px; }
  .brand__logo { width: 340px; }

  .rule { padding-top: 72px; }
  .experiences,
  .values { padding-top: 48px; }
  .section-head { margin-bottom: 44px; }

  .closing { padding: 96px var(--gutter) 112px; }
  .closing__inner { padding: 72px 48px 64px; }

  .cta {
    padding: 16px 32px;
    font-size: 13.5px;
    letter-spacing: .2em;
  }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 960px) {
  .hero { padding-top: 0; }

  /* Convite à esquerda, cartão de resposta à direita */
  .hero__spread {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 56px;
    max-width: 1120px;
    min-height: min(100vh, 780px);
    padding: 64px 0 24px;
  }

  .invite { padding: 68px 52px 56px; }
  .brand__logo { width: 380px; }

  .links__list { gap: 14px; }
  .link { min-height: 88px; padding: 18px 24px 18px 18px; gap: 18px; }
  .link--primary { min-height: 96px; }
  .link__icon { width: 50px; height: 50px; }
  .link__hint { font-size: 15.5px; }

  .rule { padding-top: 40px; }

  /* Grade editorial: fotografias em destaque, demais tipos de evento abaixo */
  .moments { overflow: visible; }

  .moments__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    width: auto;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .moment {
    grid-column: span 2;
    width: auto;
    aspect-ratio: 3 / 2;
  }

  .moment__mono { top: 8px; right: 20px; font-size: 96px; }

  .moment--photo { grid-column: span 3; }
  .moment--photo .moment__body { padding: 0 32px 32px; }
  .moment--photo .moment__title { font-size: 34px; }
  .moment--photo .moment__text { font-size: 15.5px; }

  .gallery__title { margin-top: 56px; }
  .gallery__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .gallery__item:first-child { grid-column: auto; }
  .gallery__item figcaption { bottom: 14px; left: 16px; font-size: 11px; }


  .values__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .value {
    display: block;
    padding: 12px 40px;
    border-top: 0;
    text-align: center;
  }

  .value:last-child { border-bottom: 0; }
  .value + .value { border-left: 1px solid var(--line-soft); }

  .value__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    font-size: 26px;
  }

  .value__title { margin-bottom: 10px; font-size: 25px; }
  .value__text { max-width: 30ch; margin: 0 auto; }

  .closing { padding: 128px var(--gutter) 136px; }
  .closing__inner { padding: 88px 64px 80px; }
  .closing__ornament { width: 340px; }
}

/* ==========================================================================
   Movimento reduzido: tudo visível, sem animação
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
