/* =========================
   BASE
========================= */
:root {
  --ink: #211813;
  --ink-soft: #5e5048;
  --cream: #f4eee6;
  --paper: #fffaf3;
  --rose: #7d3446;
  --rose-deep: #552332;
  --green: #1f352d;
  --gold: #b9915c;
  --line: rgba(33, 24, 19, 0.16);
  --white-line: rgba(255,255,255,.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::selection {
  background: var(--rose);
  color: white;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

canvas#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  opacity: .52;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .06;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 34px;
  color: white;
  mix-blend-mode: difference;
}

.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .23em;
  font-weight: 600;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 26px;
  line-height: .7;
}

.music-button {
  border: 0;
  background: transparent;
  color: currentColor;
  font: 500 10px/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  gap: 9px;
  align-items: center;
}

.music-dot {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: .3s ease;
}

.music-button[aria-pressed="true"] .music-dot {
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}

.section {
  position: relative;
  padding: 140px max(6vw, 28px);
}

.section-number {
  position: absolute;
  top: 44px;
  left: max(6vw, 28px);
  font: 500 10px/1 var(--sans);
  letter-spacing: .18em;
  opacity: .45;
}

.section-number.light {
  color: white;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.light-text {
  color: #d9bfa7;
}

.section-heading {
  max-width: 700px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

.section-heading h2 {
  margin: 0;
  font: 500 clamp(44px, 6vw, 78px)/.98 var(--serif);
  letter-spacing: -.035em;
}

.section-copy {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 100px 7vw 70px;
  color: white;
  background:
    radial-gradient(circle at 72% 35%, rgba(170, 91, 102, .22), transparent 28%),
    radial-gradient(circle at 20% 82%, rgba(162, 116, 70, .18), transparent 24%),
    linear-gradient(135deg, #17120f 0%, #2a1719 50%, #151c18 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.06) 50%, transparent 50.1%);
  opacity: .4;
}

.hero-glow {
  position: absolute;
  width: 45vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
}

.hero-glow-one {
  top: -25%;
  left: -12%;
  background: #b85a70;
}

.hero-glow-two {
  right: -18%;
  bottom: -30%;
  background: #d0a06c;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  text-align: center;
}

.hero .eyebrow {
  color: #d9bfa7;
}

.hero-title {
  margin: 0 auto;
  max-width: 980px;
  font: 500 clamp(56px, 8vw, 118px)/.84 var(--serif);
  letter-spacing: -.055em;
}

.hero-title em {
  display: block;
  color: #d9bfa7;
  font-weight: 500;
}

.hero-copy {
  max-width: 550px;
  margin: 34px auto 0;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.9;
}

.scroll-call {
  width: max-content;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,.75), transparent);
  animation: breathe 2.2s ease-in-out infinite;
}

.hero-date {
  position: absolute;
  right: 5vw;
  bottom: 5vh;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 8px;
  color: rgba(255,255,255,.45);
}

.hero-date span {
  font: 500 46px/1 var(--serif);
}

.hero-date small {
  padding-bottom: 5px;
  font-size: 9px;
  letter-spacing: .18em;
}

@keyframes breathe {
  0%, 100% { transform: scaleY(.7); opacity: .45; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* =========================
   CARTA
========================= */
.letter-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(185, 145, 92, .11), transparent 30%),
    var(--cream);
}

.letter-wrap {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 80px;
  align-items: start;
}

.letter-wrap .section-heading {
  position: sticky;
  top: 120px;
}

.letter-card {
  position: relative;
  background: var(--paper);
  padding: 68px 64px;
  box-shadow: 0 34px 80px rgba(49, 31, 23, .11);
  border: 1px solid rgba(83, 60, 47, .08);
  transform: rotate(.4deg);
}

.paper-fold {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 58px;
  height: 58px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(225deg, #dfd3c4 0 50%, transparent 51%);
}

.letter-card p {
  margin: 0 0 24px;
  font: 500 24px/1.55 var(--serif);
  color: #44372f;
}

.letter-card .letter-highlight {
  margin-block: 42px;
  color: var(--rose-deep);
  font-size: 32px;
  font-style: italic;
  line-height: 1.3;
}

.signature {
  padding-top: 18px;
  color: var(--ink-soft) !important;
  font-size: 20px !important;
}

.signature strong {
  font-size: 28px;
  font-weight: 600;
}

/* =========================
   FOTOS
========================= */
.moments-section {
  background: #e8dfd4;
}

.photo-story {
  width: min(1120px, 100%);
  margin: 82px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px 60px;
  align-items: start;
}

.photo {
  margin: 0;
}

.photo-wide {
  margin-top: 130px;
}

.photo-square {
  width: 78%;
  justify-self: end;
  grid-column: 2;
}

.photo-img {
  width: 100%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 65px rgba(57, 42, 34, .13);
  filter: saturate(.83) contrast(.98);
}

.photo-tall .photo-img {
  aspect-ratio: 4/5;
}

.photo-wide .photo-img {
  aspect-ratio: 16/10;
}

.photo-square .photo-img {
  aspect-ratio: 1;
}

.photo-1 {
  background-image:
    linear-gradient(150deg, rgba(74,46,35,.12), rgba(84,34,49,.08)),
    url("fotos/momento-1.jpg"),
    linear-gradient(145deg, #c2a795, #7b6b5d);
}

.photo-2 {
  background-image:
    linear-gradient(150deg, rgba(74,46,35,.10), rgba(84,34,49,.08)),
    url("fotos/momento-2.jpg"),
    linear-gradient(145deg, #929c87, #4f6157);
}

.photo-3 {
  background-image:
    linear-gradient(150deg, rgba(74,46,35,.10), rgba(84,34,49,.08)),
    url("fotos/momento-3.jpg"),
    linear-gradient(145deg, #bea98d, #826959);
}

.photo figcaption {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-top: 15px;
}

.photo figcaption span {
  color: var(--rose);
  font-size: 9px;
  letter-spacing: .12em;
}

.photo figcaption p {
  margin: 0;
  max-width: 390px;
  color: var(--ink-soft);
  font: 500 20px/1.3 var(--serif);
}

/* =========================
   MOTIVOS
========================= */
.reasons-section {
  padding-top: 170px;
  padding-bottom: 170px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(185,145,92,.11), transparent 28%),
    var(--green);
}

.reasons-inner {
  width: min(1150px, 100%);
  margin-inline: auto;
}

.reasons-section .section-heading h2 {
  max-width: 720px;
  color: #f2e9df;
}

.reasons-grid {
  margin-top: 78px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--white-line);
  border-left: 1px solid var(--white-line);
}

.reason {
  min-height: 280px;
  padding: 38px 34px;
  border-right: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
  transition: background .35s ease, transform .35s ease;
}

.reason:hover {
  background: rgba(255,255,255,.055);
}

.reason span {
  color: #d9bfa7;
  font: 500 15px/1 var(--serif);
}

.reason h3 {
  margin: 72px 0 12px;
  color: #fffaf3;
  font: 500 30px/1 var(--serif);
}

.reason p {
  margin: 0;
  color: rgba(255,255,255,.54);
  font-size: 12px;
  line-height: 1.75;
}

/* =========================
   LINHA DO TEMPO
========================= */
.timeline-section {
  background: var(--cream);
}

.timeline {
  width: min(820px, 100%);
  margin: 90px auto 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 70px 60px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--cream);
  border: 1px solid var(--rose);
  border-radius: 50%;
}

.timeline-item.future .timeline-dot {
  background: var(--rose);
  box-shadow: 0 0 0 8px rgba(125, 52, 70, .09);
}

.timeline-kicker {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}

.timeline-item h3 {
  margin: 0;
  max-width: 660px;
  font: 500 34px/1.1 var(--serif);
}

.timeline-item > p:last-child {
  margin: 12px 0 0;
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

/* =========================
   COUNTDOWN
========================= */
.countdown-section {
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(31, 24, 20, .56), rgba(29, 24, 20, .68)),
    url("fotos/futuro.jpg") center/cover,
    linear-gradient(135deg, #65493d, #26392f);
}

.countdown-section::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}

.countdown-content {
  position: relative;
  z-index: 2;
}

.countdown-content h2 {
  margin: 0;
  font: 500 clamp(52px, 7vw, 94px)/.95 var(--serif);
}

.countdown {
  margin-top: 54px;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 70px);
}

.countdown div {
  min-width: 70px;
}

.countdown strong {
  display: block;
  font: 500 clamp(36px, 5vw, 64px)/1 var(--serif);
}

.countdown span {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.52);
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* =========================
   SEGREDO
========================= */
.secret-section {
  min-height: 90vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(125,52,70,.08), transparent 40%),
    var(--cream);
}

.secret-card {
  width: min(780px, 100%);
  text-align: center;
}

.secret-card h2 {
  margin: 0 auto;
  font: 500 clamp(48px, 7vw, 86px)/.92 var(--serif);
}

.secret-button {
  width: 148px;
  height: 148px;
  margin-top: 48px;
  border-radius: 50%;
  border: 1px solid rgba(125,52,70,.38);
  background: transparent;
  color: var(--rose-deep);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-items: center;
  font: 500 10px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: .45s cubic-bezier(.2,.8,.2,1);
}

.secret-button span:last-child {
  font: 500 26px/1 var(--serif);
}

.secret-button:hover {
  transform: scale(1.06) rotate(-2deg);
  color: white;
  background: var(--rose);
  box-shadow: 0 20px 45px rgba(82, 35, 49, .18);
}

.secret-message {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: .7s cubic-bezier(.2,.8,.2,1);
}

.secret-message.open {
  max-height: 360px;
  margin-top: 46px;
  opacity: 1;
  transform: translateY(0);
}

.secret-message p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font: 500 22px/1.5 var(--serif);
}

.secret-message strong {
  color: var(--rose-deep);
  font: italic 500 30px/1.25 var(--serif);
}

footer {
  min-height: 180px;
  padding: 48px max(6vw, 28px);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  color: rgba(255,255,255,.54);
  background: #171310;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

footer strong {
  color: #d9bfa7;
  font-weight: 500;
}

/* =========================
   ANIMAÇÕES
========================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s cubic-bezier(.2,.8,.2,1),
    transform .9s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-line {
    animation: none;
  }

  canvas#particles {
    display: none;
  }
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 860px) {
  .topbar {
    padding: 20px;
  }

  .section {
    padding: 110px 22px;
  }

  .section-number {
    top: 28px;
    left: 22px;
  }

  .hero {
    padding-inline: 22px;
  }

  .hero-title {
    font-size: clamp(54px, 15vw, 84px);
  }

  .hero-date {
    display: none;
  }

  .letter-wrap {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .letter-wrap .section-heading {
    position: static;
  }

  .letter-card {
    padding: 48px 28px;
  }

  .letter-card p {
    font-size: 22px;
  }

  .letter-card .letter-highlight {
    font-size: 29px;
  }

  .photo-story {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 58px;
  }

  .photo-wide,
  .photo-square {
    width: 100%;
    margin-top: 0;
    grid-column: auto;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .reason {
    min-height: 220px;
  }

  .reason h3 {
    margin-top: 46px;
  }

  .countdown {
    gap: 16px;
  }

  .countdown div {
    min-width: 52px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
  }
}

@media (max-width: 520px) {
  .music-button #musicLabel {
    display: none;
  }

  .hero-copy {
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: 48px;
  }

  .countdown {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .countdown strong {
    font-size: 35px;
  }

  .countdown span {
    font-size: 7px;
  }

  .secret-button {
    width: 126px;
    height: 126px;
  }
}
