@media (max-width: 1180px) {
  .chapter-rail {
    display: none;
  }

  .hero-title {
    font-size: 7.6rem;
  }

  .section-title {
    font-size: 5rem;
  }
}

@media (max-width: 899px) {
  :root {
    --topbar-height: 64px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .brand-mark,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .scene-counter {
    right: 14px;
    bottom: 18px;
    font-size: 0.68rem;
  }

  .scene-nav-controls {
    bottom: 12px;
  }

  .scene-arrow {
    width: 46px;
    height: 46px;
  }

  .progress-shell {
    top: 0;
    bottom: auto;
  }

  .menu-overlay {
    padding: 12px;
  }

  .menu-panel {
    width: min(620px, calc(100vw - 24px));
    max-height: calc(100svh - 24px);
    overflow: auto;
    padding: 26px 20px;
  }

  .menu-chapter {
    grid-template-columns: 42px 1fr;
    min-height: 52px;
  }

  .menu-chapter strong {
    font-size: 1.45rem;
  }

  .display-title {
    font-size: clamp(3.2rem, 11vw, 5.3rem);
  }

  .hero-title,
  .section-title {
    font-size: clamp(2.2rem, 8.4vw, 4.4rem);
  }

  .body-copy {
    font-size: clamp(0.78rem, 2.2vw, 0.96rem);
    line-height: 1.45;
  }

  .eyebrow {
    font-size: 0.64rem;
  }

  .intro-lockup {
    gap: 12px;
    padding: 70px 22px 70px;
  }

  .scene-intro .monogram-seal {
    width: clamp(96px, 18vw, 140px);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(170px, 0.76fr);
    min-height: 100svh;
    gap: 14px;
    padding: 74px 18px 72px;
  }

  .hero-copy {
    align-self: center;
    padding-bottom: 0;
  }

  .hero-copy::before {
    display: none;
  }

  .hero-title {
    max-width: 320px;
    line-height: 0.86;
  }

  .hero-subtitle {
    max-width: 260px;
    margin: 14px 0 18px;
    font-size: clamp(0.78rem, 2.3vw, 0.98rem);
    line-height: 1.45;
  }

  .boarding-pass {
    width: min(48vw, 310px);
    min-height: auto;
    justify-self: end;
    padding: 20px;
    border-radius: 8px 8px 28px 8px;
    --base-rotate: 0deg;
  }

  .ticket-main {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 26px 0 18px;
  }

  .ticket-main h3 {
    font-size: clamp(2.05rem, 7.8vw, 3.3rem);
  }

  .ticket-date {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid rgba(200, 169, 106, 0.32);
    border-left: 0;
  }

  .ticket-date strong {
    font-size: 1.22rem;
  }

  .ticket-topline,
  .ticket-footer,
  .ticket-route {
    gap: 8px;
    font-size: 0.58rem;
  }

  .ticket-route {
    margin: 10px 0 18px;
  }

  .flight-detail-card {
    display: none;
  }

  .story-layout {
    grid-template-columns: minmax(150px, 0.82fr) minmax(170px, 1fr);
    min-height: 100svh;
    gap: 18px;
    padding: 76px 18px 70px;
  }

  .photo-stack {
    min-height: 0;
    align-self: center;
  }

  .photo-card {
    width: min(36vw, 220px);
    padding: 10px;
  }

  .photo-left {
    left: 0;
    top: 8%;
  }

  .photo-right {
    right: -4vw;
    bottom: 5%;
    width: min(26vw, 160px);
  }

  .photo-placeholder,
  .photo-placeholder.has-real-image img {
    min-height: min(48svh, 310px);
  }

  .photo-placeholder span {
    font-size: 2.6rem;
  }

  .photo-card figcaption {
    font-size: 0.56rem;
  }

  .editorial-copy {
    align-self: center;
    max-width: none;
    padding: 0 0 0 12px;
  }

  .editorial-copy::before {
    display: none;
  }

  .editorial-copy .section-title {
    max-width: 280px;
    font-size: clamp(2.35rem, 8vw, 4rem);
  }

  .editorial-copy .body-copy {
    max-height: 34svh;
    overflow: auto;
    padding-right: 8px;
  }

  .stamp {
    margin-top: 14px;
    padding: 8px 12px;
    font-size: 0.58rem;
  }

  .date-layout {
    min-height: 100svh;
    padding: 72px 18px 70px;
  }

  .date-layout::before {
    width: calc(100vw - 40px);
    height: calc(100svh - 120px);
  }

  .date-large {
    max-width: 520px;
    margin: 12px 0 18px;
    font-size: clamp(2.7rem, 10vw, 5.1rem);
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(66px, 1fr));
    width: min(620px, calc(100vw - 56px));
  }

  .count-card {
    min-height: 92px;
  }

  .count-card strong {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .schedule-layout {
    grid-template-columns: minmax(120px, 0.48fr) minmax(210px, 1fr) minmax(120px, 0.42fr);
    min-height: 100svh;
    gap: 12px;
    padding: 72px 18px 70px;
  }

  .itinerary {
    gap: 10px;
  }

  .itinerary-card {
    grid-template-columns: 38px 70px minmax(120px, 1fr);
    min-height: 116px;
    gap: 6px 10px;
    padding: 14px;
  }

  .itinerary-card .line-icon {
    width: 30px;
    height: 30px;
  }

  .itinerary-card h3 {
    font-size: clamp(1.35rem, 4.4vw, 2.1rem);
  }

  .itinerary-card p:last-child {
    max-width: 320px;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .dress-card {
    min-height: auto;
    padding: 16px;
    transform: none;
  }

  .dress-card h3 {
    font-size: clamp(1.3rem, 4.2vw, 2rem);
  }

  .location-layout {
    grid-template-columns: minmax(190px, 1fr) minmax(160px, 0.7fr);
    min-height: 100svh;
    gap: 16px;
    padding: 74px 18px 70px;
  }

  .map-card {
    padding: 12px;
    --base-rotate: 0deg;
  }

  .map-card.has-real-map img,
  .fake-map {
    min-height: min(54svh, 420px);
  }

  .map-card::before {
    left: 20px;
    top: 18px;
    font-size: 0.56rem;
  }

  .map-card::after {
    width: 76px;
    height: 76px;
  }

  .venue-name {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .location-copy {
    align-self: center;
  }

  .rsvp-layout {
    grid-template-columns: minmax(150px, 0.62fr) minmax(210px, 1fr);
    min-height: 100svh;
    gap: 16px;
    padding: 72px 18px 70px;
  }

  .rsvp-copy {
    align-self: center;
  }

  .rsvp-form {
    align-self: center;
    max-height: calc(100svh - 128px);
    overflow: auto;
    padding: 22px 18px;
  }

  .rsvp-form::before {
    right: 16px;
    top: 14px;
    font-size: 2.2rem;
  }

  .form-row {
    gap: 5px;
  }

  input,
  textarea {
    padding: 10px 11px;
  }

  textarea {
    min-height: 64px;
  }

  .gifts-layout {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.62fr);
    min-height: 100svh;
    gap: 16px;
    padding: 72px 18px 70px;
  }

  .luggage-tag {
    align-self: center;
    min-height: auto;
    max-height: calc(100svh - 128px);
    overflow: auto;
    padding: 26px 22px;
    border-radius: 8px 8px 36px 8px;
  }

  .luggage-tag h2 {
    font-size: clamp(2.5rem, 8vw, 4.6rem);
  }

  .luggage-tag p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .yappy-list {
    gap: 8px;
    margin: 16px 0;
  }

  .upload-box {
    min-height: 56px;
  }

  .gift-copy {
    align-self: center;
  }

  .closing-photo {
    left: 5vw;
    top: 22svh;
    width: min(35vw, 270px);
  }

  .photo-placeholder.wide,
  .photo-placeholder.wide.has-real-image img {
    min-height: min(46svh, 300px);
  }

  .closing-layout {
    min-height: 100svh;
    padding: 72px 18px 70px 38vw;
  }

  .closing-layout .section-title {
    font-size: clamp(2.3rem, 8vw, 4rem);
  }

  .leaf,
  .flower,
  .foreground-branch,
  .foreground-veil,
  .hero-vellum-card,
  .hero-atlas-panel,
  .hero-paper-cut,
  .story-paper-coast,
  .date-poster-shadow,
  .schedule-paper-route,
  .location-paper-island,
  .rsvp-ticket-shadow,
  .gift-string-line,
  .closing-paper-sail {
    opacity: 0.28;
  }

  .mobile-cta {
    display: none !important;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  .rotate-hint {
    display: block;
  }

  .topbar {
    padding: 8px 10px;
  }

  .brand-mark,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .scene-arrow {
    width: 42px;
    height: 42px;
  }

  .display-title {
    font-size: 3.25rem;
  }

  .hero-title,
  .section-title,
  .editorial-copy .section-title,
  .closing-layout .section-title {
    font-size: 2.45rem;
  }

  .hero-layout,
  .story-layout,
  .schedule-layout,
  .location-layout,
  .rsvp-layout,
  .gifts-layout {
    padding: 64px 12px 66px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(138px, 0.72fr);
    gap: 10px;
  }

  .boarding-pass {
    width: 44vw;
    padding: 16px 14px;
  }

  .ticket-main h3 {
    font-size: 2rem;
  }

  .ticket-topline,
  .ticket-footer,
  .ticket-route {
    font-size: 0.5rem;
  }

  .hero-subtitle {
    max-width: 190px;
    font-size: 0.76rem;
  }

  .story-layout {
    grid-template-columns: 0.72fr 1fr;
  }

  .photo-card {
    width: 34vw;
  }

  .photo-right {
    display: none;
  }

  .editorial-copy .body-copy {
    max-height: 40svh;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(66px, 1fr));
    width: min(260px, calc(100vw - 40px));
  }

  .count-card {
    min-height: 78px;
  }

  .schedule-layout {
    grid-template-columns: 0.42fr 1fr;
  }

  .dress-card {
    display: none;
  }

  .itinerary-card {
    grid-template-columns: 30px 1fr;
  }

  .itinerary-card .ticket-label,
  .itinerary-card h3,
  .itinerary-card p:last-child {
    grid-column: 2;
  }

  .itinerary-card h3 {
    justify-self: start;
    text-align: left;
  }

  .location-layout,
  .rsvp-layout,
  .gifts-layout {
    grid-template-columns: 1fr 1fr;
  }

  .map-card.has-real-map img,
  .fake-map {
    min-height: 44svh;
  }

  .rsvp-form,
  .luggage-tag {
    max-height: calc(100svh - 110px);
    padding: 18px 14px;
  }

  .form-row label,
  .form-row legend {
    font-size: 0.62rem;
  }

  input,
  textarea {
    padding: 8px 9px;
  }

  .yappy-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .parallax-item,
  [data-tilt] {
    transform: none !important;
  }
}
