/* =========================================================
   António & Margarida — álbum do pedido
   ========================================================= */
:root {
  --beige: #f8f6f1;      /* base clara */
  --sand: #edece6;       /* cinza muito claro */
  --grey: #b4b8a2;       /* verde seco */
  --stone: #dddcd4;
  --paper: #fbfaf7;
  --ink: #33352f;
  --ink-soft: #6b6d63;
  --sage: #737a60;       /* verde seco escuro */
  --rose: #737a60;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --noise: 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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .22 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");
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .22 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.1vw + 12px, 21px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main, footer { overflow-x: clip; }
body.loading { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }


/* ---------- tipografia ---------- */
.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  padding: 0 .2em .08em;   /* espaço para os floreados da caligrafia */
}
.eyebrow {
  font-size: .72em;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.big { font-size: clamp(3rem, 8vw, 6.5rem); margin: 0; color: var(--ink); }
.big.intro-title { font-size: clamp(2.2rem, 5vw, 3rem); }
.intro-kicker {
  font-size: clamp(3.2rem, 8vw, 5rem);
  line-height: 1.1;
  margin: 0 0 .1em;
  color: #9a9d8f;          /* mais clara que o texto principal */
}
.band.intro { padding: clamp(56px, 9vw, 120px) 0 clamp(104px, 17vw, 230px); }
.mid { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; color: var(--sage); text-align: center; }
.lead {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  max-width: 30ch;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
}
.lead.small { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 36ch; }

/* ---------- bandas / texturas ---------- */
.band { position: relative; padding: clamp(80px, 14vw, 180px) 0; isolation: isolate; }
.beige { background-color: var(--beige); }
.sand  { background-color: var(--sand); }
.grey  { background-color: var(--grey); }
.grey .eyebrow, .grey .count-list span, .grey figcaption { color: #4b4e42; }
.grey .count-list b.script { color: var(--paper); }
.grey .count-list li + li::before { background: rgba(51,53,47,.25); }

.stripes {
  height: clamp(48px, 7vw, 90px);
  background: repeating-linear-gradient(90deg,
    var(--beige) 0 clamp(28px, 4vw, 56px),
    var(--grey) clamp(28px, 4vw, 56px) clamp(56px, 8vw, 112px));
}

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.narrow { width: min(820px, 100%); }
.center { text-align: center; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  pointer-events: none;
}
.loader-panel {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background-color: var(--beige);
  transition: transform 1.4s var(--ease-io);
}
.lp-left { left: 0; }
.lp-right { right: 0; }
.loader.open .lp-left { transform: translateX(-100%); }
.loader.open .lp-right { transform: translateX(100%); }

.loader-inner { position: relative; text-align: center; padding: 0 16px; }
.loader-eyebrow, .loader-date {
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0; opacity: 0;
  animation: fadeIn 1.2s .3s var(--ease) forwards;
}
.loader-date { animation-delay: 2.3s; margin-top: 1rem; }
.loader-title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 1.25;
  margin: .2em 0 .1em;
  padding: 0 .25em;
  color: var(--ink);
  clip-path: inset(-20% 100% -20% 0);
  animation: write 2.4s .5s cubic-bezier(.55, .1, .35, 1) forwards;
}
.loader-title .ch {
  display: inline-block;
  transition: transform 1.1s var(--ease), opacity 1s ease, filter 1s ease;
  transition-delay: calc(var(--i) * 35ms);
}
/* ao desaparecer, as letras sobem: tirar o recorte para não cortarem */
.loader.out .loader-title { animation: none; clip-path: none; }
.loader.out .loader-title .ch {
  transform: translateY(-.5em) rotate(var(--r, 0deg));
  opacity: 0;
  filter: blur(8px);
}
.loader-line {
  display: block; width: 120px; height: 1px; margin: 0 auto;
  background: var(--ink-soft); opacity: .5;
  transform: scaleX(0);
  animation: grow 1.4s 1.8s var(--ease) forwards;
}
.loader.out .loader-eyebrow, .loader.out .loader-date, .loader.out .loader-line {
  transition: opacity .6s; opacity: 0 !important;
}
.loader.gone { display: none; }

@keyframes write { to { clip-path: inset(-20% -10% -20% 0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- hero ---------- */
body.sealed { overflow: hidden; height: 100vh; }

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--beige);
  --card: #8d9476;        /* verde seco, mais escuro */
  --lace: #f4efe4;
}

/* portas da carta */
.hero-panel {
  position: absolute; top: 0; height: 100%; width: 50.2%;
  z-index: 2;
  background-color: var(--card);
  transition: transform 1.8s cubic-bezier(.75, 0, .2, 1);
  will-change: transform;
}
.hero-left { left: 0; box-shadow: inset -18px 0 30px -18px rgba(30, 32, 22, .45); }
.hero-right { right: 0; box-shadow: inset 18px 0 30px -18px rgba(30, 32, 22, .45); }

/* textura de cartão: grão fino + manchas suaves + fibras */
.hero-panel::before, .hero-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-panel::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .13 0 0 0 0 .08 0 0 0 .9 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .16 0 0 0 0 .1 0 0 0 .55 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  opacity: .55;
  mix-blend-mode: multiply;
}
.hero-panel::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='.012 .35' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 .95 0 0 0 1.4 -.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  opacity: .22;
  mix-blend-mode: soft-light;
}
/* linha gravada à volta, como numa carta */
.hero-panel .edge {
  position: absolute; inset: clamp(14px, 2.4vw, 28px);
  border: 1px solid rgba(244, 239, 228, .28);
  pointer-events: none;
}
.hero-left .edge { right: 0; border-right: 0; }
.hero-right .edge { left: 0; border-left: 0; }

/* fita de renda horizontal */
.ribbon {
  position: absolute; left: 0; right: 0; top: 50%;
  height: clamp(34px, 4.4vw, 50px);
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='50' viewBox='0 0 36 50'%3E%3Cg fill='%23f4efe4'%3E%3Crect x='0' y='8' width='36' height='34'/%3E%3Ccircle cx='9' cy='8' r='6'/%3E%3Ccircle cx='27' cy='8' r='6'/%3E%3Ccircle cx='9' cy='42' r='6'/%3E%3Ccircle cx='27' cy='42' r='6'/%3E%3C/g%3E%3Cg fill='%238d9476' fill-opacity='.55'%3E%3Ccircle cx='9' cy='5' r='1.6'/%3E%3Ccircle cx='27' cy='5' r='1.6'/%3E%3Ccircle cx='9' cy='45' r='1.6'/%3E%3Ccircle cx='27' cy='45' r='1.6'/%3E%3Ccircle cx='18' cy='25' r='4.2'/%3E%3Ccircle cx='18' cy='16' r='1.5'/%3E%3Ccircle cx='18' cy='34' r='1.5'/%3E%3Ccircle cx='9' cy='25' r='1.5'/%3E%3Ccircle cx='27' cy='25' r='1.5'/%3E%3Ccircle cx='4' cy='17' r='1.1'/%3E%3Ccircle cx='32' cy='17' r='1.1'/%3E%3Ccircle cx='4' cy='33' r='1.1'/%3E%3Ccircle cx='32' cy='33' r='1.1'/%3E%3C/g%3E%3Cpath d='M0 13h36M0 37h36' stroke='%238d9476' stroke-opacity='.35' stroke-width='.6' stroke-dasharray='1.5 2'/%3E%3C/svg%3E");
  background-size: auto 100%;
  background-repeat: repeat-x;
  filter: drop-shadow(0 3px 4px rgba(30, 32, 22, .28));
}
.hero-left .ribbon { background-position: right center; }
.hero-right .ribbon { background-position: left center; }

/* laço */
.bow {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: clamp(190px, 24vw, 290px);
  padding: 0; border: 0; background: none;
  transform: translate(-50%, -42%);
  cursor: pointer;
  filter: drop-shadow(0 8px 10px rgba(30, 32, 22, .35));
  transition: transform 1s var(--ease), opacity .8s ease;
  -webkit-tap-highlight-color: transparent;
}
.bow svg { display: block; width: 100%; height: auto; overflow: visible; }
.bow:hover { transform: translate(-50%, -42%) scale(1.05) rotate(-2deg); }
.bow:focus-visible { outline: 1px dashed var(--lace); outline-offset: 10px; }
.bow .loops { transform-origin: 120px 92px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.035); } }

.open-hint {
  position: absolute; left: 50%; bottom: clamp(28px, 8vh, 80px); z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--lace); white-space: nowrap;
  opacity: .85;
  animation: hintPulse 2.6s ease-in-out infinite;
  transition: opacity .5s;
}
@keyframes hintPulse { 50% { opacity: .4; } }

/* a abrir */
.hero.open .hero-left { transform: translateX(-106%); }
.hero.open .hero-right { transform: translateX(106%); }
.hero.open .bow {
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -42%) scale(1.35) rotate(-10deg);
}
.hero.open .open-hint { opacity: 0; animation: none; }

/* conteúdo atrás */
.hero-center {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 clamp(16px, 8vw, 120px);
}
.hero-center > * {
  opacity: 0; transform: translateY(24px); filter: blur(8px);
  transition: opacity 1.2s ease, transform 1.4s var(--ease), filter 1.2s ease;
}
.hero.open .hero-center > * { opacity: 1; transform: none; filter: none; }
.hero.open .hero-center > :nth-child(1) { transition-delay: 1s; }
.hero.open .hero-center > :nth-child(2) { transition-delay: 1.35s; }
.hero-script { font-size: clamp(3rem, 9vw, 8rem); margin: 0; color: var(--ink); }
.hero-date { font-size: clamp(.75rem, 1.3vw, .95rem); letter-spacing: .45em; color: var(--ink-soft); margin: 1.6rem 0 0; padding-left: .45em; }
.hero .scroll-hint { color: var(--ink-soft); text-shadow: none; }
.hero .scroll-hint i { background: rgba(51, 53, 47, .18); }

/* ---------- cards sobrepostos ---------- */
.stack-band { padding-top: 0; }
.stack { position: relative; height: 400vh; margin-bottom: clamp(40px, 8vw, 120px); }
.stack-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
/* folhas em relevo, subtis, por trás dos cards */
.stack-sticky::before {
  content: ""; position: absolute; inset: -4%;
  background: url("images/folhas.svg") center / cover no-repeat;
  opacity: .13;
  pointer-events: none;
}
.card {
  position: absolute; left: 50%; top: 50%;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(40, 42, 32, .5), 0 2px 6px rgba(40, 42, 32, .08);
  opacity: 0;
  transform: translate(-50%, -50%) translateY(90vh);
  will-change: transform, opacity;
  pointer-events: none;
}
.card img { display: block; width: 100%; object-fit: cover; }
/* tamanhos limitados pela altura para sobrar espaço às frases em cima e em baixo */
.card.v { width: min(345px, 58vw, 39vh); }
.card.v img { aspect-ratio: 2 / 3; }
.card.h { width: min(550px, 82vw, 80vh); }
.card.h img { aspect-ratio: 3 / 2; }
.card.p { width: min(340px, 58vw, 46vh); }
.card.p img { aspect-ratio: 4 / 5; }
.card.bw img { filter: grayscale(1) contrast(1.05); }

/* frases escritas à mão no fim dos cards */
.stack-note {
  position: absolute; z-index: 5; margin: 0;
  font-size: clamp(1.9rem, min(4vw, 7vh), 3.6rem);
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  clip-path: inset(-40% 100% -40% -10%);
  transition: clip-path .6s ease;
}
/* --ch = metade da altura de um card vertical; as frases ficam logo acima / abaixo da pilha */
.stack-sticky { --ch: min(258.75px, 43.5vw, 29.25vh); }
/* encostadas à pilha: a de cima termina um pouco depois do centro, a de baixo começa um pouco antes */
.note-left  { right: 47%; bottom: calc(50% + var(--ch) + 1vh + 12px); }
.note-right { left: 47%;  top: calc(50% + var(--ch) + 2.5vh + 16px); }
.stack.written .stack-note {
  clip-path: inset(-40% -10% -40% -10%);
  transition: clip-path 1s cubic-bezier(.55, .1, .35, 1);
}
.stack.written .note-right { transition-delay: 1.3s; }
@media (max-width: 640px) {
  .stack-note { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
  .note-left  { right: auto; left: 50%; transform: translateX(-62%); }
  .note-right { left: 50%; transform: translateX(-38%); }
}

.scroll-hint {
  position: absolute; bottom: clamp(20px, 4vh, 40px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #fff; font-size: .7rem; letter-spacing: .35em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity 1s;
}
.scroll-hint.on { opacity: 1; }
.scroll-hint i { width: 1px; height: 46px; background: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.scroll-hint i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--ink); animation: drip 2s infinite var(--ease-io);
}
@keyframes drip { to { top: 100%; } }

/* ---------- fotos ---------- */
.photo { margin: 0; position: relative; }
.frame {
  position: relative; overflow: hidden;
  border-radius: 5px;
  background: var(--stone);
  box-shadow: 0 30px 60px -40px rgba(60, 50, 40, .5);
}
.photo.v .frame { aspect-ratio: 2 / 3; }
.photo.h .frame { aspect-ratio: 3 / 2; }
.photo.p .frame { aspect-ratio: 4 / 5; }
.frame img {
  position: absolute; left: 0; top: -8%;
  width: 100%; height: 116%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0);
  transition: filter 1.2s ease, scale 1.6s var(--ease);
  scale: 1.04;
}
.photo:hover .frame img { scale: 1.08; }
.photo.bw .frame img { filter: grayscale(1) contrast(1.05) brightness(1.02); }
.photo.bw:hover .frame img { filter: grayscale(.15); }
/* secção inteira a preto e branco; cada foto ganha cor ao passar por cima */
.bw-band .frame img { filter: grayscale(1) contrast(1.05) brightness(1.02); }
.bw-band .photo:hover .frame img { filter: none; }

.photo figcaption {
  margin-top: .9rem;
  font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft);
}
.photo figcaption.script { font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--rose); text-align: center; }


/* layouts */
.full { margin-bottom: clamp(60px, 10vw, 140px); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 5vw, 80px); align-items: start; }
.pair .offset { margin-top: clamp(40px, 14vw, 180px); }
.pair.reverse { grid-template-columns: 1.4fr 1fr; align-items: end; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 6vw, 90px); align-items: center; }
.split-col { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 40px); align-items: start; }
.trio > :nth-child(2) { margin-top: clamp(40px, 9vw, 120px); }
.trio > :nth-child(3) { margin-top: clamp(20px, 4vw, 50px); }

.masonry { columns: 3; column-gap: clamp(14px, 2.5vw, 34px); }
.masonry .photo { break-inside: avoid; margin-bottom: clamp(14px, 2.5vw, 34px); }

/* ---------- galeria assimétrica (grelha de 12 colunas) ---------- */
.photo[style*="--ar"] .frame { aspect-ratio: var(--ar); }
.photo[data-speed] { translate: 0 var(--dy, 0px); }
.g {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(12px, 2.4vw, 32px);
  align-items: start;
}
/* A — horizontal larga à esquerda, vertical a descer à direita */
.g-a { margin-top: clamp(20px, 4vw, 60px); }
.g-a > :nth-child(1) { grid-column: 1 / 9; }
.g-a > :nth-child(2) { grid-column: 9 / 13; margin-top: clamp(80px, 16vw, 240px); }
/* B — trio desencontrado: larga em cima, vertical alta ao lado, outra a subir por baixo */
.g-b > :nth-child(1) { grid-column: 1 / 8; grid-row: 1; margin-top: clamp(30px, 6vw, 90px); }
.g-b > :nth-child(2) { grid-column: 9 / 13; grid-row: 1 / 3; margin-top: clamp(140px, 22vw, 320px); }
.g-b > :nth-child(3) { grid-column: 3 / 7; grid-row: 2; margin-top: clamp(60px, 8vw, 120px); }
/* solo — cresce e arredonda com o scroll */
.g-solo-band { padding-top: clamp(60px, 10vw, 140px); }
.grow { width: min(100%, 1000px); margin: 0 auto; scale: var(--g, .82); transform-origin: center top; }
.g-solo-note { text-align: right; margin-top: clamp(14px, 2vw, 28px); padding-right: 6%; }
/* C — vertical pequena alta, horizontal grande mais abaixo */
.g-c { align-items: end; }
.g-c > :nth-child(1) { grid-column: 2 / 6; margin-bottom: clamp(80px, 14vw, 200px); }
.g-c > :nth-child(2) { grid-column: 6 / 13; }
/* D — três tamanhos em degraus */
.g-d > :nth-child(1) { grid-column: 1 / 6; }
.g-d > :nth-child(2) { grid-column: 6 / 10; margin-top: clamp(100px, 18vw, 260px); }
.g-d > :nth-child(3) { grid-column: 10 / 13; margin-top: clamp(40px, 7vw, 100px); }
/* E — retrato pequeno em cima à esquerda, vertical maior à direita */
.g-e > :nth-child(1) { grid-column: 1 / 5; margin-top: clamp(30px, 5vw, 70px); }
.g-e > :nth-child(2) { grid-column: 6 / 12; margin-top: clamp(120px, 20vw, 300px); }

@media (max-width: 700px) {
  .g { row-gap: 0; }
  .g-a > :nth-child(1) { grid-column: 1 / 13; }
  .g-a > :nth-child(2) { grid-column: 5 / 13; margin-top: 28px; }
  .g-b > :nth-child(1) { grid-column: 1 / 13; grid-row: auto; margin-top: 0; }
  .g-b > :nth-child(2) { grid-column: 7 / 13; grid-row: 2; margin-top: 28px; }
  .g-b > :nth-child(3) { grid-column: 1 / 7; grid-row: 2; margin-top: 110px; }
  .g-c > :nth-child(1) { grid-column: 1 / 8; margin-bottom: 0; }
  .g-c > :nth-child(2) { grid-column: 3 / 13; margin-top: 28px; }
  .g-c { align-items: start; }
  .g-d > :nth-child(1) { grid-column: 1 / 8; }
  .g-d > :nth-child(2) { grid-column: 6 / 13; margin-top: 28px; }
  .g-d > :nth-child(3) { grid-column: 2 / 7; margin-top: 28px; }
  .g-e > :nth-child(1) { grid-column: 1 / 9; margin-top: 0; }
  .g-e > :nth-child(2) { grid-column: 4 / 13; margin-top: 28px; }
  .grow { scale: var(--g, .9); }
  .g-solo-note { padding-right: 0; }
}

/* citação */
.quote-mark { display: block; font-family: var(--serif); font-size: 7rem; line-height: .6; color: var(--grey); }
blockquote {
  margin: 0; font-style: italic; font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.3;
}

/* números */
.count-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.count-list li { display: flex; flex-direction: column; align-items: center; gap: .4rem; position: relative; }
.count-list li + li::before {
  content: ""; position: absolute; left: -12px; top: 15%; bottom: 15%; width: 1px; background: rgba(62,58,53,.18);
}
.count-list b { font-weight: 300; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; font-variant-numeric: lining-nums; }
.count-list b.script { color: var(--rose); font-size: clamp(3rem, 7vw, 5.5rem); }
.count-list span { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* paisagem */
.landscape {
  position: relative; height: 115vh; min-height: 600px;
  display: grid; place-items: center; overflow: hidden;
}
.landscape-bg { position: absolute; inset: 0; }
.landscape-bg img {
  position: absolute; left: 0; top: -15%; width: 100%; height: 130%;
  object-fit: cover;
  filter: saturate(.7) sepia(.12) brightness(.95);
  transform: translate3d(0, var(--py, 0px), 0);
}
.landscape::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(248,246,241,.2), rgba(248,246,241,0) 30%, rgba(248,246,241,0) 70%, rgba(248,246,241,.25));
}
.vellum {
  position: relative; z-index: 1;
  width: min(560px, calc(100% - 32px));
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 60px);
  text-align: center;
  background: rgba(244, 240, 232, .32);
  -webkit-backdrop-filter: blur(14px) saturate(.9); backdrop-filter: blur(14px) saturate(.9);
  border: 1px solid rgba(255,255,255,.55);
  outline: 1px solid rgba(255,255,255,.35); outline-offset: -12px;
  color: #fff;
  text-shadow: 0 1px 14px rgba(40,35,30,.25);
}
.vellum .eyebrow { color: rgba(255,255,255,.9); }
.vellum .big { color: #fff; }
.vellum-sub { font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: .3rem 0 1.4rem; }
.vellum-date { font-size: .7rem; letter-spacing: .4em; }

/* download */
.btn {
  margin-top: 2.6rem;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 34px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent;
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  transition: background .4s, color .4s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-note { font-size: .78rem; color: var(--ink-soft); font-style: italic; margin-top: 1rem; }

/* footer */
.footer {
  background-color: var(--grey);
  text-align: center;
  padding: 44px 16px calc(44px + env(safe-area-inset-bottom));
  font-size: .8rem; letter-spacing: .08em; color: #4b4e42;
}
.footer p { margin: 0; }
.footer .script { font-size: 1.5em; color: var(--ink); letter-spacing: 0; padding-left: .1em; }

/* ---------- revelações ---------- */
.reveal {
  opacity: 0;
  transition:
    opacity 1.1s ease,
    transform 1.4s var(--ease),
    filter 1.2s ease,
    clip-path 1.6s var(--ease-io);
  transition-delay: var(--d, 0s);
}
.reveal[data-anim="up"]    { transform: translateY(60px); }
.reveal[data-anim="left"]  { transform: translateX(-70px); }
.reveal[data-anim="right"] { transform: translateX(70px); }
.reveal[data-anim="zoom"]  { transform: scale(.9); }
.reveal[data-anim="blur"]  { filter: blur(14px); transform: translateY(20px); }
.reveal[data-anim="clip"]  { clip-path: inset(14% 14% 14% 14%); opacity: .3; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-anim="clip"].in { clip-path: inset(0 0 0 0); }
/* cortina de baixo para cima */
/* o recorte vai na moldura e não na figura: uma figura toda recortada nunca é "vista" pelo observer */
.reveal[data-anim="wipe"] { transform: translateY(40px); opacity: 1; }
.reveal[data-anim="wipe"] .frame { clip-path: inset(100% 0 0 0 round 5px); transition: clip-path 1.6s var(--ease-io); transition-delay: var(--d, 0s); }
.reveal[data-anim="wipe"].in .frame { clip-path: inset(0 0 0 0 round 5px); }
.reveal[data-anim="wipe"] img { transition: scale 2s var(--ease), filter 1.2s ease; }
.reveal[data-anim="wipe"]:not(.in) img { scale: 1.25; }
/* a sair, mais rápido e sem atraso */
.reveal:not(.in) { transition-delay: 0s; transition-duration: .7s; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 999px;
  font-size: .85rem; letter-spacing: .05em;
  transition: opacity .4s, transform .4s var(--ease);
  pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > .photo { width: 78%; }
  .masonry { columns: 2; }
  .count-list { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .count-list li:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .hero-center { padding: 0 15vw; }
  .pair { gap: 14px; }
  .pair.reverse { grid-template-columns: 1fr; }
  .pair.reverse > :last-child { width: 72%; margin-left: auto; }
  .trio { grid-template-columns: 1fr; gap: 40px; }
  .trio > * { width: 76%; margin-top: 0 !important; }
  .trio > :nth-child(2) { margin-left: auto; }
  .trio > :nth-child(3) { margin: 0 auto; }
  .split > .photo { width: 100%; }
  .landscape { height: 95vh; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { transition: opacity .6s ease; transform: none !important; filter: none !important; clip-path: none !important; }
  .loader-title { animation-duration: .8s; }
}
