/* ==============================
   Breakpoint large desktop 1440px
   ============================== */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Breakpoint desktop 1100px
   ============================== */
@media (max-width: 1100px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-quote {
    min-height: 280px;
  }

  .counters-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .stat-card--guests {
    grid-column: 1 / -1;
  }

  .stat-card__right {
    display: none;
  }

  .day-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-chapters {
    grid-template-columns: 1fr;
  }

  .chapter-card,
  .chapter-card:nth-child(1),
  .chapter-card:nth-child(2),
  .chapter-card:nth-child(3) {
    min-height: 320px;
  }

  .hero {
    cursor: auto;
  }

  .hero-halo {
    width: 420px;
    height: 280px;
  }

  .hero-fog {
    opacity: 0.42;
  }

  .hero-title {
    font-size: clamp(52px, 8vw, 80px);
    letter-spacing: clamp(4px, 1.2vw, 12px);
  }
}

/* ==============================
   Breakpoint tablette 1024px
   ============================== */
@media (max-width: 1024px) {
  .counters-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .stat-card--total {
    grid-column: 1 / -1;
  }

  .stat-card__inner--split {
    grid-template-columns: 1fr;
  }

  .stat-card__right {
    display: none;
  }

  .letter-paper {
    padding: 40px 36px;
  }

  .letter-floral {
    display: none;
  }

  .polaroids {
    gap: 20px;
  }

  .polaroid {
    width: 160px;
  }

  .polaroid-media {
    width: 136px;
    height: 136px;
  }
}

/* ==============================
   Breakpoint tablette 768px
   ============================== */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  #custom-cursor,
  #custom-cursor-follower {
    display: none;
  }

  .floating-nav {
    top: 10px;
  }

  .nav-inner {
    min-height: 70px;
    border-radius: 22px;
  }

  .monogram {
    font-size: 1.5rem;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(290px, 88vw);
    border-radius: 18px;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    background: linear-gradient(165deg, rgba(200, 222, 240, 0.96), rgba(184, 207, 224, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 28px rgba(46, 79, 110, 0.2);
    transform: translateX(115%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .nav-links.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-indicator {
    display: none;
  }

  .nav-link {
    color: var(--text-main);
    width: 100%;
    padding: 0.42rem 0.55rem;
    border-radius: 10px;
  }

  .nav-link.is-active,
  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(122, 157, 192, 0.2);
    color: var(--lavender-night);
  }

  .hero-content {
    padding: 1.4rem 1rem;
  }

  .hero {
    cursor: auto;
  }

  .hero-halo {
    width: 320px;
    height: 220px;
  }

  .hero-copy {
    font-size: 24px;
    gap: 0.7rem;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 42px;
    letter-spacing: 4px;
    line-height: 1.12;
    max-width: 100%;
    text-wrap: balance;
    white-space: normal;
  }

  .hero-title .hero-line {
    display: block;
  }

  .hero-title .hero-line + .hero-line {
    margin-left: 0;
  }

  .hero-date-wrap {
    gap: 0.45rem;
    width: min(100%, 460px);
    margin-bottom: 1.6rem;
  }

  .ornament {
    width: clamp(54px, 16vw, 100px);
    min-width: 54px;
  }

  .hero-cta {
    padding: 16px 36px;
    width: auto;
    max-width: none;
  }

  .hero-scroll-indicator {
    margin-top: 1.6rem;
  }

  .day-timeline {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .day-scene {
    min-width: min(78vw, 300px);
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .day-header {
    margin-bottom: 36px;
  }

  .day-ornament svg {
    width: 200px;
  }

  .counters-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.85rem;
  }

  .stat-card--guests,
  .stat-card--total {
    grid-column: auto;
  }

  .stat-card__inner--banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stat-banner__sep {
    flex-direction: row;
  }

  .stat-sep__line {
    width: 34px;
    height: 1px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .letter-section::before,
  .letter-section::after {
    display: none;
  }

  .letter-card {
    padding: 1.4rem;
  }

  .lightbox {
    padding-inline: 0.5rem;
  }

  .lightbox-figure {
    max-width: 100%;
  }
}

/* ==============================
   Breakpoint mobile 480px
   ============================== */
@media (max-width: 480px) {
  .section {
    padding: 3.9rem 0;
  }

  .section + .section::before {
    width: 100px;
  }

  .hero-title {
    font-size: 42px;
    letter-spacing: 4px;
  }

  .hero-script {
    font-size: 22px;
    letter-spacing: 0.1em;
  }

  .hero-date {
    letter-spacing: 0.35em;
    font-size: 11px;
  }

  .ornament {
    min-width: 40px;
    max-width: 92px;
  }

  .hero-cta {
    width: auto;
    max-width: min(290px, 88vw);
  }

  .hero .btn.hero-cta {
    width: auto;
    max-width: min(290px, 88vw);
  }

  .timeline-icon::after {
    width: 26px;
  }

  .timeline-item h3 {
    font-size: 1.24rem;
  }

  .timeline-item p {
    font-size: 0.86rem;
  }

  .hero-halo {
    opacity: 0.65;
  }

  .hero-fog {
    opacity: 0.3;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: clamp(1.8rem, 11vw, 2.4rem);
  }

  .stat-poem {
    display: none;
  }

  .stat-unit,
  .stat-microlabel {
    letter-spacing: 0.2em;
    font-size: 0.58rem;
  }

  .stat-pb__labels {
    font-size: 0.52rem;
    gap: 0.22rem;
  }

  .carousel-track {
    min-height: 270px;
  }

  .footer-socials a {
    width: 36px;
    height: 36px;
  }

  .finale-content .btn {
    max-width: 320px;
  }
}

/* ==============================
   Breakpoint mobile 600px
   ============================== */
@media (max-width: 600px) {
  .letter-paper {
    padding: 28px 20px;
    border-radius: 4px;
  }

  .letter-paper__title {
    font-size: 40px;
    letter-spacing: 4px;
  }

  .letter-text p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    color: inherit;
  }

  .letter-seal {
    width: 40px;
    height: 40px;
    right: 20px;
    bottom: -20px;
  }

  .couple-monogram {
    width: 80px;
    height: 80px;
  }

  .couple-monogram__inner {
    font-size: 26px;
  }

  .script-quote {
    font-size: 28px;
  }

  .polaroids {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .polaroid,
  .polaroid--left,
  .polaroid--right {
    width: 180px;
    transform: rotate(0deg);
  }

  .polaroid-media {
    width: 156px;
    height: 156px;
  }

  .footer-monogram {
    font-size: 56px;
  }

  .farewell-petals span:nth-child(n + 3) {
    display: none;
  }
}
