/* The mobile story reads one composed chapter at a time. */
.date-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 3.5rem 1.25rem;
}
.date-section__scroll { align-self: center; margin: 1.25rem auto 0; }
html.scratch-gesture-active { scroll-snap-type: none !important; }
.date-section__intro h2 { font-size: clamp(3.4rem, 6vw, 6.75rem); }
.date-section__intro h2, .chapter h3, .location h2, .location__venue, .closing h2, .closing__signature { word-spacing: .08em; }
.scratch { margin: clamp(2rem, 5vh, 3.5rem) auto 0; }
.scratch__frame { height: clamp(250px, 36vh, 360px); }
.scratch__foil-copy { top: 42%; }
.scratch__canvas { touch-action: none !important; overscroll-behavior: contain; cursor: grab; user-select: none; -webkit-user-select: none; }
.scratch__canvas:active { cursor: grabbing; }
.scratch__guide { position: absolute; z-index: 3; top: 63%; left: 50%; display: grid; width: 42px; height: 42px; transform: translate(-50%,-50%); place-items: center; pointer-events: none; transition: opacity .25s ease; }
.scratch__guide-touch { display: grid; width: 34px; height: 34px; transform-origin: center; place-items: center; border: 1px solid rgba(61,39,25,.64); border-radius: 50%; background: rgba(246,223,180,.68); animation: foil-scratch 1.8s ease-in-out infinite; }
.scratch__guide-touch span { width: 10px; height: 10px; border: 1px solid rgba(61,39,25,.54); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(246,223,180,.8); }
.scratch.is-scratching .scratch__guide, .scratch.is-revealed .scratch__guide { opacity: 0; }
.scratch.is-revealed .scratch__canvas { transition: opacity .92s cubic-bezier(.2,.72,.24,1); }
.scratch.is-revealed .scratch__controls { display: none; }
@keyframes countdown-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes foil-scratch { 0%, 100% { transform: translate(-2px,1px) rotate(-9deg); } 25% { transform: translate(2px,-2px) rotate(6deg); } 50% { transform: translate(-1px,-2px) rotate(-5deg); } 75% { transform: translate(2px,2px) rotate(8deg); } }

.journey__intro { display: none; }
.chapter--first, .chapter--years, .chapter--proposal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 100svh;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(3rem, 7vh, 6rem) clamp(1.5rem, 7vw, 8rem);
}
.chapter__scroll { position: absolute; z-index: 4; bottom: 1.2rem; left: clamp(1.5rem,7vw,8rem); }
.chapter--first .chapter__scroll { color: var(--ivory); }
.chapter h3 { margin-bottom: 1.35rem; font-size: clamp(3.3rem, 5.4vw, 6.6rem); }
.chapter__count { margin-bottom: 1rem; }
.chapter__copy > p:last-of-type, .chapter__years-content > p:last-child, .chapter__proposal-heading > p:last-child { max-width: 27rem; font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.58; }
.chapter--first { background: var(--wine); }
.chapter__image--archive { width: min(100%, 350px); padding: 12px; background: #f7f1e9; transform: rotate(1.3deg); box-shadow: 0 18px 35px rgba(11,2,6,.25); }
.chapter__image--archive img { width: 100%; height: min(61vh, 610px); object-fit: cover; object-position: center; box-shadow: none; }
.chapter__image--archive figcaption { margin-top: .65rem; color: var(--muted); font-size: .96rem; }
.chapter__ornament { display: none; }
.chapter--years { background: var(--ivory-deep); }
.chapter__years-image { justify-self: center; width: min(100%, 440px); height: min(70vh, 660px); min-height: 0; padding: 12px; overflow: hidden; background: #f7f1e9; box-shadow: 0 18px 38px rgba(50,21,31,.13); }
.chapter__years-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.chapter__years-copy { display: block; min-height: 0; padding: 0; }
.chapter__big-number { display: none; }
.chapter--proposal { background: #e5d6c9; }
.chapter__proposal-heading { display: block; width: 100%; max-width: 580px; margin: 0; padding: 0; }
.chapter__proposal-heading .chapter__count { margin-bottom: 1rem; }
.chapter__proposal-heading h3 { margin-bottom: 1.35rem; }
.chapter__proposal-heading > p:last-child { margin: 0; padding: 0; }
.chapter__proposal-image { justify-self: center; width: min(100%, 620px); max-height: none; padding: 12px; overflow: hidden; background: #f7f1e9; box-shadow: 0 18px 38px rgba(50,21,31,.13); }
.chapter__proposal-image img { width: 100%; height: min(61vh, 590px); min-height: 0; object-fit: cover; object-position: 50% center; }

.location { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: 3.5rem clamp(1.4rem, 6vw, 6rem); }
.location__scroll { align-self: flex-start; margin-top: auto; }
.family-note__scroll { margin-top: 1.6rem; }
.location__heading { width: 100%; max-width: 900px; margin-bottom: clamp(2.2rem, 5vh, 4rem); }
.location h2 { font-size: clamp(3.7rem, 6vw, 6.6rem); }
.location__content { display: block; max-width: 900px; }
.location__venue { font-size: clamp(2.3rem, 3.2vw, 3.8rem); }
.location__details > p:nth-child(2) { margin-bottom: 1.7rem; }

.closing { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100svh; padding: 3.5rem 1.5rem 5rem; }
.family-note { scroll-snap-align: start; scroll-snap-stop: always; }
.closing__thread { height: 40px; margin-bottom: 2.2rem; }
.closing__lead { margin-bottom: 1.5rem; }
.closing h2 { margin-bottom: 2rem; font-size: clamp(4.5rem, 8.5vw, 9rem); line-height: .92; }
.closing h2 em { font-weight: 400; }
.closing__signature { margin: 0 0 1.6rem; color: var(--gold-light); font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.5rem); letter-spacing: -.05em; }
.closing__signature span { font-style: italic; }
.closing__date { font-size: clamp(1.6rem, 2.7vw, 2.7rem); }
.closing__note { margin: 1.5rem auto 1.5rem; }
.closing__bottom { position: absolute; right: clamp(1.25rem, 4vw, 4rem); bottom: 4.6rem; left: clamp(1.25rem, 4vw, 4rem); width: auto; margin: 0; }

@media (max-width: 760px) {
  html { scroll-snap-type: y mandatory; }
  .hero, .date-section, .journey > .chapter, .location, .family-note, .closing { scroll-snap-align: start; scroll-snap-stop: always; }
  .date-section { height: auto; min-height: 100svh; padding: 3.5rem 1.15rem 2.4rem; }
  .date-section__intro h2 { font-size: clamp(2.9rem, 11vw, 4rem); }
  .date-section .section-intro { margin-bottom: .7rem; }
  .scratch { margin-top: clamp(1.5rem, 4vh, 2.5rem); }
  .scratch__frame { height: clamp(230px, 34svh, 300px); }
  .scratch__foil-copy { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .scratch__days { font-size: clamp(4.7rem, 19vw, 7rem); }
  .scratch__month { margin-top: .9rem; font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .scratch__city { margin-top: .7rem; font-size: .72rem; }
  .scratch__controls { margin-top: .85rem; }
  .scratch__controls p { max-width: none; }
  .countdown { margin-top: 1.4rem; }
  .countdown__eyebrow { margin-bottom: .7rem; font-size: .62rem; }
  .countdown__unit { min-height: 58px; gap: .25rem; }
  .countdown__unit strong { font-size: clamp(1.65rem,7.5vw,2.15rem); }
  .countdown__unit small { font-size: .5rem; letter-spacing: .07em; }
  .chapter--first, .chapter--years, .chapter--proposal { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: .85rem; height: 100svh; min-height: 0; padding: 3.4rem 1.1rem 4.2rem; overflow: hidden; }
  .chapter h3 { margin-bottom: .9rem; font-size: clamp(2.35rem, 9.1vw, 3.7rem); line-height: .94; }
  .chapter h3 { letter-spacing: -.045em; }
  .chapter__count { margin-bottom: .8rem; font-size: .7rem; line-height: 1.35; }
  .chapter__copy > p:last-of-type, .chapter__years-content > p:last-child, .chapter__proposal-heading > p:last-child { font-size: clamp(.78rem, 3.3vw, .9rem); line-height: 1.48; }
  .chapter__image--archive { align-self: center; width: 100%; padding: 6px; transform: rotate(1deg); }
  .chapter__image--archive img { height: auto; aspect-ratio: 364 / 458; object-fit: contain; object-position: center; }
  .chapter__image--archive figcaption { display: none; }
  .chapter__years-image { grid-column: 1; grid-row: 1; width: 100%; height: min(55svh, 485px); padding: 6px; }
  .chapter__years-image img { transform: none; object-position: 50% 16%; }
  .chapter__years-copy { grid-column: 2; grid-row: 1; min-height: 0; padding: 0; }
  .chapter__proposal-heading { grid-column: 1; grid-row: 1; display: block; padding: 0; }
  .chapter__proposal-heading > p:last-child { margin-top: 0; }
  .chapter__proposal-image { grid-column: 2; grid-row: 1; width: 100%; padding: 6px; }
  .chapter__proposal-image img { height: min(48svh, 430px); min-height: 0; object-position: 50% center; }
  .location { height: 100svh; min-height: 0; padding: 3.5rem 1.25rem 3rem; }
  .location__heading { margin-bottom: 1.7rem; }
  .location h2 { font-size: clamp(3.1rem, 12vw, 5rem); }
  .location__content { display: block; }
  .location__venue { margin-bottom: .7rem; font-size: clamp(2.15rem, 9vw, 3rem); }
  .location__details > p:nth-child(2) { margin-bottom: 1.15rem; font-size: .82rem; }
  .family-note { min-height: 100svh; padding: 3rem 1.35rem; }
  .family-note::before { inset: .8rem; }
  .family-note__ornament { margin-bottom: 1.5rem; }
  .family-note__eyebrow { margin-bottom: 1.2rem; font-size: .66rem; }
  .family-note h2 { font-size: clamp(3.1rem,11.5vw,4.6rem); }
  .family-note__message { max-width: 27rem; margin-top: 1.35rem; font-size: .9rem; line-height: 1.65; }
  .family-note__signature { margin-top: 1.45rem; font-size: .75rem; }
  .family-note__signature span { font-size: 1.9rem; }
  .closing { height: 100svh; min-height: 0; padding: 3rem 1.2rem 6rem; }
  .closing__thread { height: 30px; margin-bottom: 1.7rem; }
  .closing__lead { margin-bottom: 1.2rem; font-size: .8rem; }
  .closing h2 { max-width: none; margin-bottom: 1.4rem; font-size: clamp(3.1rem, 12vw, 5.5rem); }
  .closing__signature { margin-bottom: 1.2rem; font-size: 2.2rem; }
  .closing__date { font-size: 1.7rem; }
  .closing__place { font-size: .75rem; }
  .closing__note { margin: 1.2rem auto; font-size: .82rem; }
  .closing__bottom { margin: 0; font-size: .7rem; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .date-section { padding-top: 2rem; padding-bottom: 1.5rem; }
  .scratch__frame { height: 225px; }
  .chapter--first, .chapter--years, .chapter--proposal { padding-top: 2rem; padding-bottom: 3.5rem; }
  .chapter h3 { font-size: clamp(2.1rem, 8vw, 3rem); }
  .chapter__years-image { height: 53svh; }
  .chapter__proposal-image img { height: 46svh; }
  .location { padding-top: 2rem; padding-bottom: 2rem; }
  .location__heading { margin-bottom: 1rem; }
  .closing__thread { display: none; }
  .family-note { padding-top: 2rem; padding-bottom: 2rem; }
}

@media (max-width: 760px) and (max-height: 600px) {
  .location { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .location__heading { margin-bottom: .65rem; }
  .location h2 { font-size: 2.75rem; }
  .location__content { gap: .7rem; }
  .location__venue { font-size: 1.95rem; }
  .location__details > p:nth-child(2) { margin-bottom: .75rem; }
  .location .button { min-height: 48px; padding: .7rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .scratch__guide-touch { animation: none; }
  .scratch.is-revealed .scratch__canvas { transition: none; }
  .scratch__rosette { opacity: .5; transform: translate(-50%,-50%) scale(1) rotate(0); }
  .scratch__rosette path, .scratch__rosette circle { stroke-dashoffset: 0; }
}
