:root {
  color-scheme: dark;
  --bg: #160706;
  --bg-soft: #210b0a;
  --cream: #fff4e4;
  --muted: #cbb7a4;
  --gold: #f1a646;
  --pink: #ff637b;
  --line: rgba(255, 244, 228, 0.1);
  --panel: rgba(255, 244, 228, 0.025);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #070606;
  color: var(--cream);
  font-family: Inter, Arial, sans-serif;
}

.phone-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(113, 36, 28, 0.26), transparent 34rem),
    var(--bg);
}

.hero,
.counter-section,
.story,
.cinema,
.letter {
  min-height: 100vh;
  padding: 88px 30px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  isolation: isolate;
}

.photo-frame {
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(rgba(22, 7, 6, 0.05), rgba(22, 7, 6, 0.78)),
    linear-gradient(135deg, #70808a 0%, #d2a27c 52%, #201313 100%);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(7, 6, 6, 0.24), rgba(7, 6, 6, 0.58)),
    radial-gradient(circle at 50% 42%, rgba(22, 7, 6, 0.02), rgba(7, 6, 6, 0.62) 74%),
    url("assets/topo.jpg");
  background-position: center 64%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-photo::after {
  display: none;
}

.hero-content {
  text-align: center;
}

.kicker,
.date,
.scroll-hint {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  line-height: 1.8;
  text-transform: uppercase;
}

.kicker {
  color: var(--cream);
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-top: 82px;
  font-size: clamp(4.1rem, 17vw, 5.8rem);
  line-height: 0.82;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

.quote {
  max-width: 340px;
  margin: 34px auto 0;
  color: rgba(255, 244, 228, 0.75);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.55;
}

.heart {
  display: block;
  margin-top: 44px;
  color: var(--pink);
  font-size: 1.65rem;
}

.scroll-hint {
  margin-top: 18px;
  color: rgba(255, 244, 228, 0.72);
}

.counter-section {
  display: grid;
  align-content: center;
}

.counter-section h2,
.story-header h2,
.cinema h2 {
  margin-top: 22px;
  font-size: clamp(2.55rem, 10vw, 4.15rem);
  line-height: 1;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.time-card {
  min-height: 136px;
  display: grid;
  place-items: center;
  padding: 22px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.time-card strong {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 0.8;
}

.time-card span {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.music-section {
  min-height: auto;
  padding: 80px 30px 96px;
}

.music-section h2 {
  margin-top: 22px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1;
}

.music-intro {
  max-width: 680px;
  margin: 24px auto 0;
  color: #deccb7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
}

.music-carousel {
  position: relative;
  width: min(420px, 100%);
  margin: 42px auto 0;
  padding: 0 0 34px;
  overflow: hidden;
}

.music-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow: hidden;
  transition: transform 420ms ease;
}

.music-slide {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(241, 166, 70, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 244, 228, 0.06), rgba(255, 244, 228, 0.018));
  text-align: left;
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

.music-slide::before {
  display: none;
}

.music-slide.is-active {
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.track-cover {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(rgba(22, 7, 6, 0.04), rgba(22, 7, 6, 0.66)),
    linear-gradient(135deg, #2b0d12, #d1763e 48%, #f0d09a);
}

.track-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090606;
}

.track-cover span {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 244, 228, 0.28);
  border-radius: 50%;
  background: rgba(22, 7, 6, 0.34);
  color: var(--cream);
  font-size: 2.4rem;
}

.track-info {
  padding: 20px 4px 2px;
  text-align: center;
}

.song-label,
.song-artist {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.track-info h3 {
  margin-top: 12px;
  color: var(--cream);
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  line-height: 0.95;
}

.song-artist {
  margin-top: 12px;
  color: var(--muted);
}

.music-play {
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 0;
  border: 1px solid rgba(255, 244, 228, 0.12);
  border-radius: 7px;
  background: rgba(255, 244, 228, 0.08);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.music-play span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1b0908;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.music-carousel .slider-button {
  top: 34%;
  z-index: 4;
  background: rgba(22, 7, 6, 0.74);
  backdrop-filter: blur(12px);
}

.music-carousel .dots {
  bottom: 0;
}

.carousel.is-single .slider-button,
.carousel.is-single .dots {
  display: none;
}

.story {
  padding-top: 108px;
}

.story-header {
  margin-bottom: 58px;
  text-align: center;
}

.chapter {
  margin-bottom: 82px;
}

.story-photo,
.museum-slider {
  width: 100%;
  min-height: 244px;
  margin-bottom: 42px;
  display: grid;
  place-items: center;
  color: rgba(255, 244, 228, 0.76);
  font-weight: 700;
}

.start-photo {
  position: relative;
  min-height: 360px;
  margin: 0 0 42px;
  background:
    linear-gradient(rgba(22, 7, 6, 0.02), rgba(22, 7, 6, 0.28)),
    linear-gradient(135deg, #b9d5e8, #d6b195 58%, #26201f);
}

.start-photo::before {
  content: "";
  position: absolute;
  inset: -22px;
  background-image:
    linear-gradient(rgba(22, 7, 6, 0.08), rgba(22, 7, 6, 0.34)),
    var(--start-bg);
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  opacity: 0.76;
  transform: scale(1.08);
}

.start-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 360px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.ring-photo {
  background:
    linear-gradient(rgba(22, 7, 6, 0.03), rgba(22, 7, 6, 0.38)),
    linear-gradient(135deg, #2d1511, #bd823f 52%, #f3cf8e);
}

.proposal-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.proposal-slider {
  position: relative;
  display: block;
  min-height: 420px;
  margin-bottom: 42px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 99, 123, 0.18), transparent 34%),
    linear-gradient(135deg, #080505, #2b0d12 52%, #090606);
}

.proposal-photo,
.proposal-video {
  position: relative;
  min-height: 260px;
  margin: 0;
  background:
    linear-gradient(rgba(22, 7, 6, 0.14), rgba(22, 7, 6, 0.5)),
    linear-gradient(135deg, #2c1714, #7e2b34 48%, #f0a45b);
}

.proposal-photo img,
.proposal-video video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.proposal-photo img[src$="pedido-dormindo.jpg"],
.proposal-photo img[src$="pedido-aliancas.jpg"] {
  color: transparent;
}

.proposal-photo::after,
.proposal-video::after {
  position: absolute;
  inset: auto 18px 16px;
  color: rgba(255, 244, 228, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.6;
  text-transform: uppercase;
  pointer-events: none;
}

.proposal-photo:first-child::after {
  content: "Depois do pedido";
}

.proposal-photo:nth-child(2)::after {
  content: "As alianças";
}

.proposal-video {
  min-height: 360px;
  margin-bottom: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 244, 228, 0.16);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 99, 123, 0.22), transparent 34%),
    linear-gradient(135deg, #080505, #2b0d12 52%, #090606);
}

.proposal-video::after {
  content: "";
}

.proposal-video video {
  position: relative;
  z-index: 1;
  min-height: 360px;
  max-height: 520px;
  object-fit: contain;
  background: #090606;
}

.proposal-slide {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.proposal-slide video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 420px;
  display: block;
  object-fit: contain;
  background: #090606;
}

.video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid rgba(255, 244, 228, 0.22);
  border-radius: 999px;
  background: rgba(22, 7, 6, 0.72);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}

.date {
  margin-bottom: 18px;
  color: var(--gold);
  letter-spacing: 0.34em;
}

.chapter h3 {
  color: var(--cream);
  font-size: clamp(2.35rem, 11vw, 3.45rem);
  line-height: 1.03;
}

.chapter p:not(.date) {
  margin: 32px 0 0;
  color: #deccb7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.7;
}

.museum-slider {
  position: relative;
  display: block;
  min-height: 420px;
  background: var(--bg-soft);
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  height: 420px;
  overflow: hidden;
  transition: transform 420ms ease;
}

.slide {
  position: relative;
  min-height: 420px;
  display: block;
  margin: 0;
  overflow: hidden;
  transition: transform 420ms ease;
  background: #090606;
}

.slide::before {
  content: "";
  position: absolute;
  inset: -22px;
  background-image:
    linear-gradient(rgba(22, 7, 6, 0.1), rgba(22, 7, 6, 0.32)),
    var(--slide-bg);
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.82;
}

.slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 244, 228, 0.26);
  border-radius: 50%;
  background: rgba(22, 7, 6, 0.66);
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
  transform: translateY(-50%);
}

.slider-button[data-prev],
#prevPhoto {
  left: 12px;
}

.slider-button[data-next],
#nextPhoto {
  right: 12px;
}

.dots {
  position: absolute;
  right: 0;
  bottom: -24px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 244, 228, 0.26);
}

.dots button.active {
  background: var(--gold);
}

.carousel-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(255, 244, 228, 0.16);
  border-radius: 999px;
  background: rgba(22, 7, 6, 0.72);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.carousel-count::before {
  content: "deslize ";
  color: var(--gold);
}

.food-section,
.cinema {
  min-height: auto;
  padding-top: 76px;
  padding-bottom: 84px;
}

.food-section {
  padding-right: 30px;
  padding-left: 30px;
}

.food-section h2 {
  margin-top: 22px;
  font-size: clamp(2.55rem, 10vw, 4.15rem);
  line-height: 1;
}

.food-intro {
  margin: 26px 0 34px;
  color: #deccb7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
}

.food-slider {
  position: relative;
  display: block;
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 28%, rgba(241, 166, 70, 0.2), transparent 34%),
    linear-gradient(135deg, #080505, #31100c 52%, #090606);
}

.food-slide {
  min-height: 420px;
}

.cinema {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cinema h2 {
  width: 100%;
  max-width: min(980px, 100%);
  margin-top: 20px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(3rem, 6.8vw, 5.6rem);
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}

.cinema-intro {
  width: 100%;
  max-width: min(900px, 100%);
  margin: 34px auto 0;
  color: #deccb7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-style: italic;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}

.cinema-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 42px auto 0;
}

.cinema-stats span {
  padding: 11px 15px;
  border: 1px solid rgba(241, 166, 70, 0.24);
  border-radius: 999px;
  background: rgba(255, 244, 228, 0.035);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.movie-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 38px auto 0;
}

.movie-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ead8c5;
  background: rgba(255, 244, 228, 0.035);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.35;
  user-select: none;
}

.movie-list span.is-selected {
  border-color: rgba(241, 166, 70, 0.72);
  background: rgba(241, 166, 70, 0.16);
  color: var(--gold);
}

.favorites-game {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
  text-align: center;
}

.favorites-game h2 {
  margin-top: 20px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
}

.game-intro {
  max-width: 760px;
  margin: 28px auto 0;
  color: #deccb7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-style: italic;
  line-height: 1.6;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.pick-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 244, 228, 0.025);
  text-align: left;
}

.pick-panel h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.pick-count {
  margin: 12px 0 20px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.movie-main-count {
  margin-top: 42px;
  margin-bottom: 18px;
  text-align: center;
}

.pick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pick-options button {
  padding: 10px 12px;
  border: 1px solid rgba(255, 244, 228, 0.14);
  border-radius: 999px;
  background: rgba(255, 244, 228, 0.04);
  color: var(--cream);
  cursor: pointer;
  font-weight: 700;
}

.pick-options button.is-selected {
  border-color: rgba(241, 166, 70, 0.72);
  background: rgba(241, 166, 70, 0.16);
  color: var(--gold);
}

.reveal-button {
  margin-top: 30px;
  padding: 14px 18px;
  border: 1px solid rgba(241, 166, 70, 0.42);
  border-radius: 999px;
  background: rgba(241, 166, 70, 0.14);
  color: var(--cream);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.my-favorites {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  text-align: left;
}

.my-favorites[hidden],
.letter.is-locked {
  display: none;
}

.my-favorites > div {
  padding: 24px;
  border: 1px solid rgba(255, 244, 228, 0.12);
  border-radius: 7px;
  background: rgba(255, 244, 228, 0.025);
}

.my-favorites ol {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #deccb7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
}

.my-favorites > .reveal-button {
  grid-column: 1 / -1;
  justify-self: center;
}

@media (max-width: 760px) {
  .game-board,
  .my-favorites {
    grid-template-columns: 1fr;
  }
}

.letter {
  min-height: 92vh;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 244, 228, 0.018);
  text-align: center;
}

.letter blockquote {
  margin-top: 56px;
  color: #f2e3d2;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-style: italic;
  line-height: 1.45;
}

.signature {
  margin: 46px 0 0;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
}

@media (min-width: 431px) {
  body {
    padding: 10px 0;
  }

  .phone-page {
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .hero,
  .counter-section,
  .story,
  .cinema,
  .letter {
    padding-right: 22px;
    padding-left: 22px;
  }

  h1 {
    font-size: 3.8rem;
  }

  .time-card strong {
    font-size: 3rem;
  }
}

/* Wide-site layout: keeps the romantic style without locking the page to a phone frame. */
body {
  padding: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(113, 36, 28, 0.22), transparent 34rem),
    #070606;
}

.phone-page {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.hero {
  border-radius: 0;
  padding: clamp(84px, 9vw, 150px) max(32px, calc((100vw - 1180px) / 2));
}

.hero-content {
  max-width: 820px;
  text-align: left;
}

h1 {
  max-width: 9ch;
  font-size: clamp(5rem, 11vw, 10rem);
}

.quote {
  max-width: 620px;
  margin-left: 0;
}

.counter-section,
.music-section,
.story,
.food-section,
.cinema,
.letter {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.letter {
  width: min(980px, calc(100% - 48px));
}

.counter-section h2,
.story-header h2,
.food-section h2,
.cinema h2 {
  max-width: 860px;
}

.counter-section,
.music-section,
.food-section {
  text-align: center;
}

.counter-section h2,
.food-section h2 {
  margin-right: auto;
  margin-left: auto;
}

.food-intro {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 760px) {
  .time-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .song-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  }

  .song-cover {
    min-height: 100%;
  }

  .food-slider,
  .museum-slider,
  .proposal-slider,
  .slider-track,
  .slide,
  .slide img,
  .proposal-slide,
  .proposal-slide video {
    min-height: 540px;
    height: 540px;
  }
}

@media (min-width: 960px) {
  .story-header {
    text-align: left;
  }

  .chapter {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: clamp(42px, 6vw, 82px);
    align-items: center;
    min-height: 680px;
  }

  .chapter > .story-photo,
  .chapter > .museum-slider,
  .chapter > .proposal-slider {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .chapter > .date,
  .chapter > h3,
  .chapter > p {
    grid-column: 2;
  }

  .chapter > .date {
    align-self: end;
  }

  .chapter > p:not(.date) {
    margin-top: 20px;
  }

  .start-photo,
  .start-photo img {
    min-height: 560px;
    height: 560px;
  }

  .movie-list {
    max-width: 1040px;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 920px;
  }

  .counter-section,
  .music-section,
  .story,
  .food-section,
  .cinema {
    width: min(1240px, calc(100% - 80px));
  }
}

.hero .hero-content {
  max-width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  max-width: none;
}

.hero .quote {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

/* Lovable-inspired compact trajectory layout. */
@media (min-width: 900px) {
  .story {
    width: min(1120px, calc(100% - 80px));
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .story-header {
    margin-bottom: 58px;
    text-align: center;
  }

  .story-header h2 {
    max-width: none;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
  }

  .story .chapter {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(58px, 7vw, 96px);
    align-items: center;
    min-height: auto;
    margin-bottom: 96px;
  }

  .story .chapter > .story-photo,
  .story .chapter > .museum-slider,
  .story .chapter > .proposal-slider {
    grid-row: 1 / span 3;
    width: 100%;
    margin: 0;
  }

  .story .chapter:nth-of-type(1) > .story-photo,
  .story .chapter:nth-of-type(3) > .proposal-slider {
    grid-column: 1;
  }

  .story .chapter:nth-of-type(1) > .date,
  .story .chapter:nth-of-type(1) > h3,
  .story .chapter:nth-of-type(1) > p,
  .story .chapter:nth-of-type(3) > .date,
  .story .chapter:nth-of-type(3) > h3,
  .story .chapter:nth-of-type(3) > p {
    grid-column: 2;
  }

  .story .chapter:nth-of-type(2) > .museum-slider {
    grid-column: 2;
  }

  .story .chapter:nth-of-type(2) {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .story .chapter:nth-of-type(2) > .date,
  .story .chapter:nth-of-type(2) > h3,
  .story .chapter:nth-of-type(2) > p {
    grid-column: 1;
  }

  .story .chapter > .date {
    margin-bottom: 8px;
    align-self: end;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
  }

  .story .chapter h3 {
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    line-height: 1.08;
  }

  .story .chapter p:not(.date) {
    max-width: 480px;
    margin-top: 24px;
    font-size: 1.28rem;
    line-height: 1.65;
  }

  .story .start-photo,
  .story .start-photo img,
  .story .museum-slider,
  .story .proposal-slider,
  .story .slider-track,
  .story .slide,
  .story .slide img,
  .story .proposal-slide,
  .story .proposal-slide video {
    min-height: 420px;
    height: 420px;
    border: 0;
    border-radius: 7px;
  }

  .story .photo-frame {
    border: 0;
    background: transparent;
  }

  .story .start-photo::before,
  .story .slide::before {
    display: none;
  }

  .story .start-photo img,
  .story .slide img {
    object-fit: cover;
  }

  .story .slider-button {
    width: 34px;
    height: 34px;
    font-size: 1.45rem;
  }

  .story .dots {
    bottom: -20px;
  }
}

/* Image carousel repair: keep museum and food photos visible after layout overrides. */
.museum-slider,
.food-slider,
.proposal-slider {
  position: relative;
  overflow: hidden;
  border: 0;
  background: transparent;
  touch-action: pan-y;
  cursor: grab;
}

.museum-slider:active,
.food-slider:active,
.proposal-slider:active {
  cursor: grabbing;
}

.museum-slider .slider-track,
.food-slider .slider-track,
.proposal-slider .slider-track {
  width: 100%;
  height: 420px;
  min-height: 420px;
  border: 0;
  overflow: hidden;
}

.museum-slider .slide,
.food-slider .slide,
.proposal-slider .slide {
  width: 100%;
  height: 420px;
  min-height: 420px;
  overflow: hidden;
  flex: none;
  background: transparent;
}

.museum-slider .slide::before,
.food-slider .slide::before,
.proposal-slider .slide::before {
  display: none;
}

.museum-slider .slide img,
.food-slider .slide img,
.proposal-slider .slide img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

@media (min-width: 900px) {
  .story .museum-slider .slide::before,
  .story .proposal-slider .slide::before {
    display: none;
  }

  .story .museum-slider .slide img,
  .story .proposal-slider .slide img {
    object-fit: contain;
  }
}

.ambient-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 244, 228, 0.16);
  border-radius: 999px;
  background: rgba(22, 7, 6, 0.76);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.ambient-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 8px;
  border: 1px solid rgba(255, 244, 228, 0.14);
  border-radius: 999px;
  background: rgba(255, 244, 228, 0.08);
  color: var(--cream);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ambient-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1b0908;
  font-size: 1rem;
  letter-spacing: 0;
}

.ambient-toggle[aria-pressed="true"] .ambient-icon {
  background: var(--pink);
}

.ambient-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ambient-volume input {
  width: 96px;
  accent-color: var(--gold);
}

@media (max-width: 640px) {
  .ambient-player {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: space-between;
    border-radius: 14px;
  }

  .ambient-toggle {
    flex: 1;
    justify-content: center;
  }

  .ambient-volume input {
    width: 74px;
  }

  .museum-slider .slider-button,
  .food-slider .slider-button,
  .proposal-slider .slider-button {
    display: none;
  }

  .proposal-slider video {
    pointer-events: none;
  }
}
