@media (max-width: 1100px) {
  .experience-shell {
    grid-template-columns: 1fr;
  }

  .chapter-rail {
    display: none;
  }

  .mobile-progress {
    display: block;
  }

  .topbar {
    align-items: center;
  }

  .photo-hero,
  .section-grid,
  .story-layout,
  .countdown-layout,
  .date-layout,
  .location-layout,
  .place-layout,
  .dress-layout,
  .gift-layout,
  .verse-layout,
  .final-layout,
  .farewell-layout {
    grid-template-columns: 1fr;
  }

  .photo-hero {
    position: relative;
    inset: auto;
  }

  .photo-hero__photo {
    min-height: 40vh;
  }

  .date-portrait,
  .date-photo-frame,
  .map-card__canvas--large,
  .final-art--portrait,
  .final-verse-card,
  .farewell-art {
    min-height: 320px;
  }

  .date-layout--mockup {
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 1.25rem;
    align-content: start;
  }

  .date-frame-art {
    width: min(100%, 480px);
    max-height: 46vh;
  }

  .date-photo-stage {
    min-height: 42vh;
  }

  .date-photo-frame {
    width: min(72vw, 330px);
    min-height: 0;
  }
}

@media (max-width: 780px) {
  html,
  body {
    overflow: hidden;
  }

  .scene {
    padding: 0.75rem;
  }

  .scene__content {
    border-radius: 24px;
  }

  .scene__inner {
    min-height: calc(100vh - 92px);
    padding: 1rem;
  }

  .hero-scene .scene__inner {
    padding: 0.55rem 0.5rem 2.2rem;
  }

  .envelope-stage {
    min-height: 52vh;
    padding: 0.25rem 0 2.6rem;
  }

  .envelope {
    width: min(86vw, 360px);
    aspect-ratio: 1.78;
    overflow: visible;
  }

  .envelope__lantern {
    width: 42px;
    height: 66px;
  }

  .seal-trigger {
    width: clamp(108px, 30vw, 140px);
  }

  .seal-caption {
    bottom: -2.45rem;
    width: min(100%, 320px);
    font-size: 0.68rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-layout {
    gap: 1rem;
  }

  .map-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .scroll-card {
    min-height: 360px;
  }

  .scroll-card__content {
    max-width: 74%;
  }

  .welcome-message__name {
    font-size: clamp(3.4rem, 16vw, 6rem);
  }

  .ink-lettering p {
    font-size: clamp(1.18rem, 5vw, 1.55rem);
  }

  .quote-block--story .quote-block__quote {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .location-copy .scene__title {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .gift-card__money {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .gift-art--official img {
    width: min(75%, 310px);
  }

  .scene__decor--countdown-silk {
    top: 30%;
    left: -28%;
    width: 150%;
    opacity: 0.32;
  }

  .map-card__canvas--large,
  .map-card__canvas--large img {
    min-height: 300px;
  }

  .farewell-layout {
    gap: 1rem;
  }

  .farewell-message h2 {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .farewell-art {
    min-height: 280px;
  }

  .date-layout--mockup {
    padding: 0.75rem;
  }

  .date-layout--mockup::before {
    inset: 0.65rem;
  }

  .date-frame-art {
    width: 100%;
    max-height: 42vh;
  }

  .date-photo-stage {
    min-height: 40vh;
  }

  .date-photo-frame {
    width: min(76vw, 300px);
    min-height: 0;
  }

  .seal-caption {
    bottom: -3.15rem;
    width: 100%;
    font-size: 0.62rem;
    line-height: 1.45;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 52px;
    padding: 0.45rem 0.75rem;
  }

  .floating-nav {
    right: 0.65rem;
    gap: 0.7rem;
  }

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

  .scene__title {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }

  .scene__script {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .photo-frame__image,
  .profile-shot,
  .side-photo {
    aspect-ratio: 0.9;
  }

  .countdown-card__ring {
    width: 92px;
  }

  .gift-art,
  .verse-art,
  .final-art,
  .dress-art {
    aspect-ratio: 0.88;
  }
}

/* Mobile scenes stay inside the app shell but can scroll internally when content needs it. */
@media (max-width: 780px) {
  .stage-shell {
    min-height: 100svh;
  }

  .experience {
    min-height: 0;
  }

  .scene {
    align-items: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.65rem;
    scrollbar-width: thin;
  }

  .scene__content {
    width: 100%;
    min-height: 100%;
    border-radius: 20px;
  }

  .scene__inner {
    min-height: auto;
  }

  .topbar__eyebrow {
    font-size: 0.52rem;
    white-space: nowrap;
  }

  .topbar__brand strong {
    font-size: 0.92rem;
  }

  .scene__eyebrow {
    font-size: 0.68rem;
    gap: 0.45rem;
    letter-spacing: 0.12em;
  }

  .scene__eyebrow::before,
  .scene__eyebrow::after {
    width: 18px;
  }

  .welcome-message {
    min-height: 0;
  }

  .story-layout,
  .date-layout,
  .location-layout,
  .dress-layout,
  .gift-layout,
  .verse-layout,
  .final-layout,
  .farewell-layout {
    min-height: 0;
  }

  .story-layout,
  .location-layout,
  .dress-layout,
  .gift-layout,
  .verse-layout,
  .final-layout,
  .farewell-layout {
    gap: 1rem;
    padding: 1rem;
  }

  .photo-frame--ornate,
  .date-photo-frame,
  .final-art--portrait,
  .farewell-art {
    max-height: 58vh;
  }

  .date-layout--mockup {
    min-height: 0;
  }

  .date-frame-art {
    max-height: 40vh;
  }

  .date-photo-stage {
    min-height: 38vh;
  }

  .date-photo-frame {
    min-height: 0;
    max-height: 48vh;
  }

  .location-copy {
    padding: 0.5rem;
  }

  .map-card__canvas--large,
  .map-card__canvas--large img {
    min-height: 260px;
  }

  .dress-card,
  .gift-card,
  .verse-card,
  .final-card {
    padding: 1rem;
  }

  .gift-art--official img {
    width: min(68%, 270px);
  }

  .countdown-layout {
    padding: 1rem;
  }

  .countdown-card {
    min-width: 0;
  }

  .countdown-card__value {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .final-verse-card .scene__title {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .final-verse {
    font-size: clamp(1.45rem, 6vw, 2.2rem);
  }

  .mobile-progress {
    position: relative;
    z-index: 5;
  }
}

@media (max-width: 390px) {
  .scene {
    padding: 0.45rem;
  }

  .topbar {
    min-height: 48px;
    padding: 0.4rem 0.6rem;
  }

  .topbar__eyebrow {
    font-size: 0.5rem;
    letter-spacing: 0.15em;
  }

  .nav-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-scene .scene__inner {
    padding-inline: 0.4rem;
  }

  .envelope {
    width: calc(100% - 0.7rem);
    max-width: 340px;
  }

  .seal-caption {
    bottom: -2.55rem;
    font-size: 0.62rem;
  }

  .ink-lettering--parchment {
    min-height: 230px;
    padding: 3.5rem 3.2rem;
  }

  .ink-lettering--parchment p {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
  }

  .date-layout--mockup {
    padding: 0.5rem;
  }

  .date-frame-art {
    max-height: 50vh;
  }

  .date-photo-frame {
    width: min(86vw, 300px);
  }
}

@media (max-width: 780px) {
  .ink-lettering--parchment {
    min-height: 300px;
    padding: 4.8rem 3.8rem;
  }

  .ink-lettering--parchment p {
    font-size: clamp(0.98rem, 4.15vw, 1.25rem);
    line-height: 1.28;
  }

  .story-layout {
    gap: 0.4rem;
    padding-top: 0.7rem;
  }

  .story-layout .photo-frame--ornate {
    max-height: 43vh;
  }

  .quote-block--story {
    padding: 0.45rem 0.65rem 1.2rem;
  }

  .quote-block--story .quote-block__quote {
    margin-top: 0.55rem;
    font-size: clamp(1.7rem, 7vw, 2.45rem);
    line-height: 1.16;
  }

  .date-layout--mockup .date-photo-stage {
    display: grid;
    position: relative;
    z-index: 2;
    min-height: 38vh;
    margin-top: 0.35rem;
  }

  .date-layout--mockup .date-photo-frame,
  .date-layout--mockup .date-photo-cutout,
  .date-layout--mockup .date-photo-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .date-layout--mockup .date-photo-frame {
    min-height: 0 !important;
    height: min(86vw, 390px);
    aspect-ratio: 2 / 3;
  }

  .date-layout--mockup .date-photo-cutout {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 8 !important;
    width: 78%;
    height: 100%;
    transform: translateX(-50%);
  }

  .date-layout--mockup .date-photo-petals {
    z-index: 6;
    opacity: 0.28;
  }

  .dress-layout .dress-card {
    padding: 1rem;
  }

  .dress-layout .scene__title {
    margin: 0.45rem 0 0.35rem;
    font-size: clamp(1.8rem, 8.7vw, 2.85rem);
    line-height: 0.96;
  }

  .dress-layout .scene__script {
    font-size: clamp(1.65rem, 7.2vw, 2.45rem);
  }

  .dress-layout .scene__copy {
    margin-bottom: 0;
    font-size: 1.08rem;
    line-height: 1.48;
  }

  .dress-layout .dress-card__important {
    margin-top: 1rem;
    max-width: 100%;
    padding: 0.85rem 0.9rem;
    font-size: clamp(1.2rem, 5.4vw, 1.7rem);
    line-height: 1.24;
  }

  .dress-layout .dress-art {
    aspect-ratio: 0.9;
    min-height: 0;
  }

  .gift-layout .gift-card {
    order: -1;
    min-height: 0;
    padding: 1.2rem 1rem;
  }

  .gift-card__title {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
    line-height: 1.12;
  }

  .gift-card__message {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
    line-height: 1.35;
  }

  .gift-layout .gift-art--official {
    min-height: 300px;
    aspect-ratio: 1.05;
  }

  .gift-envelope-fan {
    top: 9%;
    width: min(96%, 350px);
    height: 70%;
  }

  .gift-envelope-fan .gift-envelope-copy {
    width: min(58%, 190px);
    height: 80%;
  }

  .gift-art--official .gift-envelope-main {
    width: min(48%, 170px);
    height: 68%;
  }

  .countdown-layout {
    gap: 1rem;
  }

  .countdown-stack {
    gap: 0.6rem;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .countdown-card {
    padding: 0.45rem 0.12rem;
    border-radius: 16px;
  }

  .countdown-card__ring {
    width: min(100%, 64px);
    margin-bottom: 0.4rem;
    border-width: 1px;
    box-shadow: inset 0 0 0 4px rgba(212, 175, 55, 0.05), 0 0 16px rgba(212, 175, 55, 0.08);
  }

  .countdown-card__value {
    font-size: clamp(1.2rem, 6vw, 2rem);
  }

  .countdown-card__label {
    font-size: clamp(0.42rem, 1.8vw, 0.62rem);
    letter-spacing: 0.08em;
  }

  .countdown-layout .side-photo {
    display: block;
    width: min(100%, 330px);
    min-height: 300px;
    aspect-ratio: 0.82;
    margin: 0 auto;
  }

  .final-layout--verse .final-art--portrait {
    min-height: 320px;
    max-height: 48vh;
  }

  .final-layout--verse .final-verse-card {
    order: -1;
    min-height: 0;
    padding: 1.1rem;
  }

  .final-layout--verse .final-verse-card .scene__title {
    margin: 0.55rem 0 0.8rem;
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .final-layout--verse .final-verse {
    color: #f4dfb1;
    font-size: clamp(1.2rem, 5.4vw, 1.75rem);
    line-height: 1.34;
  }

  .final-art--verse-photo img {
    filter: saturate(0.98) contrast(1.02) brightness(1.02);
  }

  .final-art--verse-photo .final-art__shade {
    background: linear-gradient(90deg, rgba(7, 2, 3, 0.04), rgba(7, 2, 3, 0.12));
    mix-blend-mode: normal;
  }

  .farewell-layout .farewell-message {
    order: -1;
  }

  .farewell-layout .farewell-art {
    min-height: 260px;
    max-height: 42vh;
  }

  .farewell-layout .farewell-art img {
    object-fit: contain;
    object-position: center bottom;
  }
}
