﻿/* ═══════════════════════════════════════════════════════════
   LANDING.CSS — The Mortensen Wedding Experience
   Real mountain photo + welcome card + red bar layout
   ═══════════════════════════════════════════════════════════ */

.landing-body {
  margin: 0;
  padding: 0;
  background: #f0ebe0;
  overflow-x: hidden;
}

/* ═══════════════════════════════
   LANDING PAGE SHELL
═══════════════════════════════ */
.landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ═══════════════════════════════
   HERO WRAP: image + content
   Image is a real <img> so it shows fully without clipping
═══════════════════════════════ */
.hero-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 32px;
}

/* ── Background image (real mountain photo) ── */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 72vw;
  min-height: 520px;
  max-height: 820px;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  z-index: 0;
}

/* ═══════════════════════════════
   CONTENT COLUMN
═══════════════════════════════ */
.landing-content {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 0;
  gap: 0;
}

/* ── Hero mountain icon (top) ── */
.hero-mountain-icon {
  width: clamp(100px, 18vw, 160px);
  margin-bottom: 10px;
  background: transparent;
  line-height: 0;
}
.hero-mountain-icon img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* ═══════════════════════════════
   NAMES
═══════════════════════════════ */
.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 0 10px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.12s forwards;
}
.name-script {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  color: #b5603a;
  line-height: 1.1;
  display: block;
}

/* ── Countdown ── */
.hero-countdown {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.36s forwards;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 300;
  color: #3e4a30;
  line-height: 1;
}
.countdown-label {
  font-family: var(--font-sans);
  font-size: clamp(0.48rem, 1.2vw, 0.6rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a6a58;
  margin-top: 4px;
}
.countdown-sep {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: rgba(100,90,75,0.35);
  font-weight: 300;
  align-self: flex-start;
  padding-top: 4px;
}

/* ── Tagline ── */
.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 2.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #b5603a;
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin: 0 0 10px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.22s forwards;
}

/* ── Tiny divider + date ── */
.tiny-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.tiny-divider span {
  width: 36px;
  height: 1px;
  background: rgba(120,108,90,0.4);
}
.divider-mountain {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(0.95);
}

.hero-date-loc {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5c4a38;
  margin: 0 0 22px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.36s forwards;
}

/* ── Above-card mountain divider (over photo, no white bg issue) ── */
.above-card-mountain {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 8px;
}
.above-card-line {
  flex: 1;
  height: 1px;
  background: rgba(90,78,60,0.4);
}
.above-card-mountain img {
  width: 52px;
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.44s forwards;
}

/* ═══════════════════════════════
   WELCOME CARD
═══════════════════════════════ */
.welcome-card {
  width: 100%;
  max-width: 420px;
  background: rgba(248,244,236,0.97);
  border: 1px solid rgba(200,190,170,0.35);
  border-radius: 8px;
  box-shadow: 0 14px 52px rgba(44,36,22,0.18);
  padding: 26px 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.48s forwards;
}
.card-mountain-icon {
  width: clamp(120px, 22vw, 180px);
  margin-bottom: 14px;
}
.card-mountain-icon img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}
.welcome-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3e4a30;
  margin: 0 0 12px;
}
.welcome-text {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1.8vw, 0.86rem);
  color: #5c4a38;
  line-height: 1.7;
  margin: 0 0 14px;
}
.top-divider {
  margin-top: 0;
  margin-bottom: 14px;
}
.card-heart-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}
.card-heart-divider span {
  flex: 1;
  height: 1px;
  background: rgba(180,160,130,0.35);
}
.card-heart-divider .divider-mountain { width: 15px; height: 15px; }
.card-heart-divider svg { width: 18px; height: 18px; }

/* ── Form inside card ── */
.entry-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.input-label {
  font-family: var(--font-sans);
  font-size: clamp(0.52rem, 1.3vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5c4a38;
}
.input-wrap {
  position: relative;
  width: 100%;
}
.name-input {
  width: 100%;
  padding: 13px 42px 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #2c2416;
  background: #fff;
  border: 1.5px solid rgba(180,160,130,0.35);
  border-radius: 6px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(44,36,22,0.04);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.name-input::placeholder { color: #b0a090; font-size: 0.85rem; }
.name-input:focus {
  border-color: #8a9a72;
  box-shadow: 0 0 0 3px rgba(138,154,114,0.12);
}
.input-leaf {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 24px;
  pointer-events: none;
}

.enter-btn {
  width: 100%;
  padding: 14px;
  background: #4a5535;
  color: #f0ebe0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(74,85,53,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.enter-btn:hover { background: #5c6844; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(74,85,53,0.42); }
.enter-btn:active { transform: translateY(0); }
.enter-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.lookup-status {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.5;
}
.lookup-status.error { color: #9e4a2a; }

.match-picker { margin-top: 10px; width: 100%; }
.match-picker-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: #4a3828;
  margin-bottom: 8px;
  text-align: center;
}
.match-list { display: flex; flex-direction: column; gap: 6px; }
.match-btn {
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid rgba(180,160,130,0.4);
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #2c2416;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.match-btn:hover { background: #4a5535; color: #fff; }

/* ═══════════════════════════════
   RED BAR
═══════════════════════════════ */
.red-bar {
  position: relative;
  z-index: 4;
  width: 100%;
  background-color: var(--maroon);
  border-top: 1px solid rgba(200,190,170,0.35);
  margin-top: 0;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* Inner wrapper to add gap between card and taglines */
.red-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 0;
}
.red-bar .love-story-label {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f0ebe0;
  margin-bottom: 12px;
  text-align: center;
}
.red-bar .ornament-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.red-bar .orn-line { width: 56px; height: 1px; background: rgba(245,240,230,0.3); }
.red-bar .orn-icon { font-size: 1rem; color: #e8dcc8; letter-spacing: -1px; transform: scaleX(1.4); }

.red-bar .landing-taglines {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 720px;
}
.red-bar .tagline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  flex: 1;
}
.red-bar .tagline-item svg { width: 36px; height: 36px; color: #e8dcc8; }
.red-bar .tagline-script  { font-family: var(--font-sans); font-size: 0.82rem; color: #f0ebe0; line-height: 1.5; text-align: center; }
.red-bar .tagline-script2 { font-family: var(--font-script); font-size: 1.4rem; color: #f0ebe0; line-height: 1.2; }
.red-bar .tagline-sep {
  width: 1px;
  height: 64px;
  background: rgba(245,240,230,0.22);
  align-self: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════
   FOOTER IMAGE + OVERLAY TEXT
═══════════════════════════════ */
.footer-image-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.footer-image-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.footer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 32px 20px 20px;
  background: transparent;
}
.footer-script {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  color: #3e3428;
  line-height: 1.3;
  margin: 0 0 14px;
  text-shadow: 0 1px 10px rgba(248,244,236,0.9), 0 1px 3px rgba(248,244,236,0.7);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.72s forwards;
}
.footer-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.78s forwards;
}
.footer-divider span { width: 40px; height: 1px; background: rgba(90,78,60,0.35); }
.footer-divider .divider-mountain { width: 14px; height: 14px; }
.footer-with-love {
  font-family: var(--font-sans);
  font-size: clamp(0.5rem, 1.3vw, 0.6rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #5c4a38;
  margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(248,244,236,0.9);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.84s forwards;
}
.footer-sig {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: #8f3b31;
  margin: 0;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(248,244,236,0.9), 0 1px 3px rgba(248,244,236,0.7);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

/* ═══════════════════════════════
   ANIMATIONS
═══════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   TABLET (481px – 768px)
═══════════════════════════════ */
@media (max-width: 768px) {
  .landing-content { padding: 28px 20px 0; max-width: 480px; }
  .bg-image { height: 88vw; min-height: 460px; }
  .hero-countdown { gap: 0; }
  .countdown-unit { padding: 0 10px; }
  .red-bar .landing-taglines { flex-wrap: wrap; row-gap: 20px; }
  .red-bar .tagline-item { flex: 0 1 45%; min-width: 140px; }
  .red-bar .tagline-sep { display: none; }
  .envelope-stage { max-width: 92vw; }
  .envelope-container, .open-invitation { max-width: 90vw; }
}

/* ═══════════════════════════════
   MOBILE (≤ 480px)
═══════════════════════════════ */
@media (max-width: 480px) {
  .landing-content { padding: 22px 16px 0; }
  .name-script { font-size: clamp(2.2rem, 12vw, 3.6rem); }
  .hero-tagline { font-size: clamp(0.68rem, 4.2vw, 0.9rem); letter-spacing: 0.28em; }
  .hero-date-loc { font-size: clamp(0.64rem, 3.4vw, 0.8rem); }
  .hero-countdown { gap: 0; margin-bottom: 26px; }
  .countdown-unit { padding: 0 8px; }
  .countdown-num { font-size: clamp(1.5rem, 8vw, 2.2rem); }
  .countdown-sep { font-size: clamp(1.1rem, 5vw, 1.5rem); }
  .welcome-card { padding: 20px 16px 24px; }
  .red-bar { padding: 20px 14px 16px; }
  .red-bar .tagline-item { flex: 1 1 45%; min-width: 0; padding: 0 8px; }
  .footer-script { font-size: clamp(1.1rem, 4.5vw, 1.6rem); }
  .footer-sig { font-size: clamp(1.5rem, 8vw, 2.2rem); }

  /* Envelope / invitation reveal */
  .envelope-stage { gap: 22px; padding: 12px 0 32px; }
  .envelope-steps span { max-width: 56px; font-size: 0.48rem; }
  .open-invitation-name { font-size: clamp(1.15rem, 6.5vw, 1.7rem); top: 40%; }
  .open-invitation .open-portal-btn { font-size: 0.56rem; padding: 11px 6px; letter-spacing: 0.12em; }
}

@media (max-width: 360px) {
  .estep span { display: none; }
  .estep-line { width: 12px; }
  .name-script { font-size: clamp(2rem, 13vw, 3rem); }
}

/* Invitation landing composition. The card stays in document flow;
   the banner overlaps only its reserved, empty top area. */
.landing-page { --banner-overlap: 5rem; }
.hero-wrap { padding-bottom: 0; }
.bg-image { height: 100%; min-height: 0; max-height: none; object-position: center center; }
.landing-content { max-width: 48rem; padding: 2.5rem 1.5rem 0; }
.hero-monogram { width: 7rem; height: 7rem; margin: 0 0 1.25rem; }
.hero-monogram img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) saturate(100%) invert(27%) sepia(17%) saturate(623%) hue-rotate(37deg) brightness(92%); }
.hero-names { color: #454b32; font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.25rem, 9vw, 6.5rem); line-height: .88; letter-spacing: .065em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-names > span { display: block; max-width: 100%; overflow-wrap: anywhere; }
.hero-names > span + span { margin-top: .14em; }
.hero-ampersand { font-family: var(--font-script); font-weight: 400; color: #a94e2f; letter-spacing: 0; text-transform: none; margin-right: .06em; }
.hero-tagline { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: 0; line-height: 1.25; text-transform: none; max-width: none; margin-bottom: .75rem; color: #a34628; }
.tiny-divider { gap: 1rem; margin-bottom: .75rem; }
.tiny-divider span { width: 4rem; background: #bca18a; }
.tiny-divider .divider-mountain { width: 3rem; height: 1.75rem; }
.hero-date-loc { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; font-size: .875rem; letter-spacing: .18em; color: #3e4432; line-height: 1.6; margin-bottom: 1.25rem; }
.hero-date-loc > span { white-space: nowrap; }
.hero-countdown { isolation: isolate; position: relative; flex-wrap: wrap; width: 24rem; max-width: 100%; padding: .8rem .5rem; margin-bottom: 2rem; border-radius: 1rem; background: rgba(255,253,248,.78); box-shadow: 0 0 28px 12px rgba(255,253,248,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); text-shadow: 0 0 7px #fff, 0 1px 2px #fff; }
.countdown-unit { flex: 1 1 4.25rem; padding: .15rem .5rem; min-width: 0; }
.countdown-unit ~ .countdown-unit { border-left: 1px solid #bbb3a3; }
.countdown-num { color: #37412e; font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.countdown-label { color: #444633; font-size: .75rem; letter-spacing: .1em; font-weight: 500; }
.countdown-sep { display: none; }
.welcome-card { max-width: 30rem; padding: 1.75rem 2.5rem 2.25rem; background: #faf7f1; border-color: #e2d9cb; box-shadow: 0 12px 30px rgba(34,29,21,.25); }
.card-mountain-icon { width: 8rem; margin-bottom: .35rem; }
.welcome-title { font-size: 2.75rem; font-weight: 400; letter-spacing: .04em; line-height: 1.1; margin-bottom: .85rem; }
.welcome-text { font-size: 1rem; line-height: 1.6; color: #443f33; margin-bottom: 1.5rem; }
.card-heart-divider { max-width: 18rem; gap: 1rem; margin-bottom: 1.5rem; color: #a34b2e; }
.card-heart-divider svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.card-heart-divider span { background: #c8a48e; }
.entry-form { gap: .85rem; }
.input-label { font-size: .875rem; font-weight: 500; letter-spacing: .12em; color: #454b32; }
.name-input { min-height: 3.4rem; font-size: 1rem; border: 1px solid #afa594; background: rgba(255,255,255,.25); border-radius: 4px; }
.name-input::placeholder { color: #78766d; font-size: 1rem; }
.enter-btn { min-height: 3.5rem; border-radius: 4px; font-size: 1rem; font-weight: 400; letter-spacing: .22em; box-shadow: none; }
.enter-btn[aria-busy="true"] { opacity: 1; background: #68714f; font-size: .875rem; letter-spacing: .08em; line-height: 1.5; }
.lookup-status, .match-picker-label, .match-btn { font-size: 1rem; }
.lookup-status:empty { margin-top: 0; }
.lookup-status:not(:empty) { margin-top: 1rem; }
.match-btn { min-height: 3rem; overflow-wrap: anywhere; }
.red-bar { z-index: 4; margin-top: calc(-1 * var(--banner-overlap)); border: 0; padding: calc(var(--banner-overlap) + 2.5rem) 1.5rem 3rem; background: #89351f; }
/* Put the transparent torn edge ABOVE the solid red surface so mountains,
   not a straight red strip, show through the top of the paper. */
.red-bar::before { --tear-height: clamp(6rem, 14.2627vw, 17rem); content: ''; position: absolute; left: 0; right: 0; top: calc(var(--tear-height) * -.45); height: var(--tear-height); background: url('../assets/border.webp') center top / 100% 100% no-repeat; mask-image: linear-gradient(#000 65%, transparent); pointer-events: none; }
.red-bar .landing-taglines { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 66rem; gap: 0; }
.red-bar .tagline-item { min-width: 0; padding: 0 1rem; gap: 1rem; color: #fff5e8; font-size: .875rem; line-height: 1.7; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.red-bar .tagline-item + .tagline-item { border-left: 1px solid rgba(255,240,214,.3); }
.red-bar .tagline-item svg, .red-bar .tagline-item img { width: 2.75rem; height: 2.75rem; color: #e7c8aa; object-fit: contain; }
.red-bar .tagline-item img { filter: brightness(0) saturate(100%) invert(85%) sepia(18%) saturate(382%) hue-rotate(342deg) brightness(94%); }
.footer-image-wrap { min-height: 22rem; background: #f5f0e6; }
.footer-image-wrap > img { position: absolute; inset: 0; height: 100%; object-position: center bottom; }
.footer-overlay { position: relative; line-height: 1.5; padding: 2.25rem 1.5rem 7rem; background: linear-gradient(rgba(250,247,240,.8), rgba(250,247,240,.15) 70%, transparent); }
.footer-script { font-size: clamp(1.65rem, 3.6vw, 2.35rem); line-height: 1.5; margin-bottom: .5rem; }
.footer-divider .divider-mountain { width: 2.25rem; height: 1.5rem; }
.footer-with-love { font-size: .875rem; font-weight: 400; margin-bottom: .6rem; }
.footer-sig { font-size: 2.75rem; line-height: 1.4; color: #a34b2e; }
/* Below-fold copy must not depend on off-screen animation scheduling. */
.footer-script, .footer-divider, .footer-with-love, .footer-sig { animation: none; opacity: 1; transform: none; }
.landing-page :focus-visible { outline: 3px solid #8a4e29; outline-offset: 4px; }
@media (max-width: 760px) {
  .landing-page { --banner-overlap: 3rem; }
  .landing-content { padding-top: 1.75rem; }
  .red-bar .landing-taglines { max-width: 34rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); row-gap: 2rem; }
  .red-bar .tagline-item { grid-column: auto; padding: 0 .65rem; font-size: .875rem; letter-spacing: .055em; }
  .red-bar .tagline-item + .tagline-item { border-left: 0; }
}
@media (max-width: 480px) {
  .landing-content { padding: 1.25rem 1rem 0; }
  .hero-monogram { width: 4.75rem; height: 4.75rem; margin-bottom: 1rem; }
  .hero-names { font-size: clamp(2rem, 12vw, 3.6rem); letter-spacing: .035em; margin-bottom: 1rem; }
  .hero-tagline { font-size: 2.15rem; }
  .hero-date-loc { font-size: .875rem; letter-spacing: .07em; gap: .35rem .5rem; }
  .hero-countdown { padding: .7rem .25rem; margin-bottom: 1.5rem; }
  .countdown-unit { padding: 0 .55rem; }
  .countdown-num { font-size: 2.15rem; }
  .countdown-label { font-size: .75rem; letter-spacing: .04em; }
  .welcome-card { padding: 1.4rem 1.25rem 1.6rem; }
  .welcome-title { font-size: clamp(1.75rem, 9vw, 2.35rem); }
  .card-mountain-icon { width: 6.5rem; }
  .red-bar { padding-left: 1rem; padding-right: 1rem; }
  .red-bar .tagline-item { grid-column: auto; padding: 0 .35rem; }
  .red-bar .tagline-item:last-child { grid-column: 1 / -1; }
  .footer-overlay { padding: 1.75rem 1.25rem 6rem; }
  .footer-script { max-width: 20rem; font-size: 1.8rem; }
  .footer-sig { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page .animate-fade-up, .landing-page .animate-fade-in,
  .hero-names, .hero-tagline, .hero-date-loc, .hero-countdown, .welcome-card,
  .tiny-divider, .footer-script, .footer-divider, .footer-with-love, .footer-sig {
    animation: none; opacity: 1; transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   ENVELOPE SCREEN STYLES (reused from earlier)
   ═══════════════════════════════════════════════════════════ */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.76), transparent 47%), repeating-radial-gradient(circle at 0 0, rgba(103,82,55,0.035) 0 1px, transparent 1px 5px), #eee7db;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.envelope-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  width: 100%;
  max-width: 700px;
  padding: 20px 0 48px;
}
.skip-invitation { color: var(--olive); font-size: .875rem; line-height: 1.5; text-align: center; text-decoration: underline; text-underline-offset: .2em; padding: .5rem; }
.skip-invitation:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.envelope-steps {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
}
.estep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  opacity: 0.25;
  transition: opacity 0.4s;
}
.estep.active { opacity: 1; }
.estep.done   { opacity: 0.5; }
.estep svg { width: 20px; height: 20px; color: #4a5535; }
.estep span {
  font-family: var(--font-sans);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5c4a38;
  text-align: center;
  line-height: 1.3;
  max-width: 68px;
}
.estep-line { flex-shrink: 0; width: 20px; height: 1px; background: rgba(180,160,130,0.4); margin-bottom: 18px; }

.envelope-container { width: 100%; max-width: 650px; perspective: 1600px; }
.envelope { position: relative; width: 100%; padding-bottom: 66.7%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(0.45,0.05,0.2,1); will-change: transform; }
.envelope.show-back { transform: rotateY(180deg); }
.envelope-face { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgba(133,113,83,0.26); border-radius: 3px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.envelope-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 0 0, rgba(100,80,52,0.04) 0 1px, transparent 1px 5px); mix-blend-mode: multiply; opacity: 0.45; }
.envelope-front { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.envelope-front::after { display: none; }
.env-front-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.envelope-back { overflow: visible; border: 0; border-radius: 0; background: transparent; transform: rotateY(180deg); }
.envelope-back::before, .envelope-back::after { display: none; }
.env-back-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.env-back-sealed { opacity: 1; transition: opacity 0.8s ease; }
.envelope-back.seal-removed .env-back-sealed { opacity: 0; }
.env-flap { position: absolute; top: 0; left: 0; right: 0; height: 44%; transform-origin: top center; transform-style: preserve-3d; z-index: 4; transition: transform 1.05s cubic-bezier(0.4,0,0.2,1); overflow: hidden; }
.env-flap.open { transform: rotateX(-178deg); }
.env-flap svg { width: 100%; height: 100%; filter: drop-shadow(0 5px 4px rgba(70,51,31,0.17)); }
.env-return-mark { position: absolute; top: 21%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 72%; color: #45503a; text-align: center; }
.env-return-mark svg { width: 54px; height: 18px; filter: none; }
.env-return-mark span { font-family: var(--font-serif); font-size: clamp(0.58rem, 1.8vw, 0.8rem); font-weight: 600; letter-spacing: 0.17em; white-space: nowrap; }
.env-return-mark small { font-family: var(--font-sans); font-size: clamp(0.35rem, 1.05vw, 0.47rem); font-weight: 600; letter-spacing: 0.13em; white-space: nowrap; }
.env-liner-inside { position: absolute; inset: 0; pointer-events: none; opacity: 0.23; z-index: 2; }
.env-front-content { position: absolute; top: 46%; left: 12%; width: 76%; z-index: 3; pointer-events: none; text-align: center; }
.env-guest-name { font-family: var(--font-script); font-size: clamp(2rem, 7.5vw, 3.8rem); line-height: 0.95; color: #2d241c; text-shadow: 0 1px rgba(255,255,255,0.72); margin: 0; overflow-wrap: anywhere; }
.env-floral, .env-mountain-line, .env-recipient-label { display: none; }
.wax-seal { position: absolute; top: 43%; left: 50%; transform: translate(-50%, -50%); width: clamp(70px, 18vw, 94px); height: clamp(70px, 18vw, 94px); z-index: 5; filter: drop-shadow(0 7px 9px rgba(44,36,22,0.34)); transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.2,0.8,0.2,1); }
.wax-seal.removed { opacity: 0; transform: translate(-50%, -125%) scale(0.5) rotate(-18deg); pointer-events: none; }
.wax-seal svg { width: 100%; height: 100%; }
.postage-stamp { position: absolute; top: 11%; right: 7%; z-index: 4; transform: rotate(2deg); }
.stamp-inner { display: block; filter: drop-shadow(0 3px 5px rgba(60,45,26,0.23)); }
.stamp-inner img { width: 68px; height: auto; display: block; }

.open-invitation { width: 100%; max-width: 590px; position: relative; line-height: 0; }
.open-invitation-image { display: block; width: 100%; height: auto; }
.open-invitation-name { position: absolute; top: 41%; left: 20%; width: 60%; margin: 0; color: #33291e; font-family: var(--font-script); font-size: clamp(1.4rem, 4.7vw, 2.25rem); line-height: 1; text-align: center; text-shadow: 0 1px rgba(255,255,255,0.7); }
.open-invitation .open-portal-btn { position: absolute; bottom: 12%; left: 24%; width: 52%; margin: 0; padding: 13px 8px; line-height: 1.2; background: linear-gradient(135deg, #586548, #3d4931); color: #fff; font-family: var(--font-sans); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.22); border-radius: 4px; cursor: pointer; box-shadow: 0 6px 14px rgba(55,66,43,0.28); transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.open-invitation .open-portal-btn:hover { background: #5c6844; transform: translateY(-2px); box-shadow: 0 9px 18px rgba(55,66,43,0.34); }
