:root {
  --cream: #f8f2ec;
  --paper: #fffaf6;
  --rose: #b96e63;
  --rose-dark: #8f514b;
  --blush: #ead1c7;
  --gold: #c89e6d;
  --ink: #3f342f;
  --muted: #7d6e67;
  --line: rgba(143, 81, 75, .2);
  --shadow: 0 18px 55px rgba(80, 55, 45, .10);
  --glass: rgba(255, 250, 246, .78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8f2ec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 236, 212, .16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 228, 212, .12), transparent 25%),
    radial-gradient(circle at 50% 78%, rgba(255, 244, 235, .10), transparent 28%);
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: none;
}

.video-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #2e2622;
}
.video-fallback,
.video-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.video-fallback { z-index: 0; }
.video-background video {
  z-index: 1;
  display: block;
  background: transparent;
  opacity: 0;
  transition: opacity .35s ease;
}
.video-background video.is-ready { opacity: 1; }
.video-background.video-failed video { display: none; }
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(31,24,21,.08) 0%, rgba(31,24,21,.04) 34%, rgba(31,24,21,.10) 100%),
    radial-gradient(circle at center, rgba(255, 243, 233, .05), rgba(31,24,21,.02) 60%);
}

header, main, footer {
  position: relative;
  z-index: 2;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.monogram,
.section-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  min-width: 88px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(185,110,99,.22);
  background: rgba(255,250,246,.52);
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(45,31,25,.08);
}
.monogram span,
.section-monogram span { color: var(--gold); letter-spacing: 0; }
.monogram-hero { margin-bottom: 18px; }
.section-monogram { margin-bottom: 14px; }
.footer-monogram { margin: 0 auto 14px; background: rgba(255,250,246,.62); }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: max(32px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(35,27,24,.04), rgba(35,27,24,.09));
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  opacity: .34;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.hero::before {
  left: -65px;
  bottom: -55px;
  background-image: radial-gradient(ellipse at 36% 70%, #d9b8a4 0 4%, transparent 5%), radial-gradient(ellipse at 50% 42%, #d7c2a6 0 3%, transparent 4%);
}
.hero::after {
  right: -70px;
  top: -55px;
  background-image: radial-gradient(ellipse at 48% 55%, #e1b5ac 0 4%, transparent 5%), radial-gradient(ellipse at 62% 34%, #d7c2a6 0 3%, transparent 4%);
}
.hero-inner {
  width: min(680px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(34px, 7vw, 62px) clamp(20px, 5vw, 42px);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 34px;
  background: rgba(255,250,246,.64);
  box-shadow: 0 20px 54px rgba(25,18,15,.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose-dark);
}
.hero-eyebrow { margin-bottom: 12px; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.ornament {
  display: grid;
  grid-template-columns: 58px auto 58px;
  align-items: center;
  gap: 11px;
  margin: 14px 0 5px;
  color: var(--rose);
}
.ornament span { height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament b { font-size: .72rem; }
.hero h1,
.footer-names {
  font-family: "Great Vibes", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  font-weight: 400;
  color: var(--rose-dark);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(3.35rem, 11vw, 5.6rem);
  line-height: .98;
}
.hero h1 em { font-style: normal; color: var(--gold); padding: 0 .07em; }
.hero h1 { text-shadow: 0 2px 14px rgba(255,255,255,.20), 0 1px 0 rgba(255,255,255,.55); }
.hero-note {
  margin: 0 0 24px;
  max-width: 500px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,250,246,.74);
  border: 1px solid rgba(185,110,99,.12);
  box-shadow: 0 10px 24px rgba(45,31,25,.08);
  color: #4e413b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.primary-btn,
.outline-btn,
.text-btn {
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease;
}
.primary-btn {
  min-width: 175px;
  padding: 13px 23px;
  border-radius: 999px;
  background: var(--rose-dark);
  color: white;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(143,81,75,.2);
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(143,81,75,.24); }
.primary-btn.full { width: 100%; }
.scroll-hint {
  margin-top: 15px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #6d5e57;
  font-size: .68rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.scroll-hint span { animation: float 1.7s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform:translateY(0)} 50%{transform:translateY(5px)} }

.section {
  position: relative;
  padding: 90px 18px;
  background: rgba(248,242,236,.38);
}
.section:nth-child(even) { background: rgba(255,250,246,.42); }
.section-inner { width: min(1060px, 100%); margin: 0 auto; text-align: center; }
.section-inner.narrow { width: min(760px, 100%); }
.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 7vw, 4rem);
  line-height: 1.06;
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}
.tiny-heart { color: var(--rose); margin: 12px auto 26px; font-size: .78rem; }
.tiny-heart::before, .tiny-heart::after { content: ""; width: 42px; height: 1px; display: inline-block; vertical-align: middle; background: var(--line); margin: 0 10px; }
.lead, .rsvp-intro {
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.7;
  max-width: 650px;
  color: #594b45;
}

.intro {
  background: rgba(248,242,236,.34);
}
.intro .section-inner.narrow {
  max-width: 760px;
  padding: 34px 28px;
  border-radius: 28px;
  background: rgba(255,250,246,.84);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 14px 34px rgba(45,31,25,.10);
}
.intro h2 {
  color: #3b312d;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.intro .lead {
  color: #544740;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.families {
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  width: min(620px, 100%);
}
.intro .families > div:not(.family-divider) {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248,242,236,.72);
}
.families strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #4a3b35;
}
.families span { display: block; margin-top: 5px; color: #6b5d56; font-size: .82rem; }
.family-divider { height: 64px; width: 1px; background: var(--line); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 40px auto 18px;
}
.countdown-item {
  padding: 23px 10px;
  border: 1px solid rgba(255,255,255,.40);
  background: rgba(255,250,246,.68);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(69,49,39,.09);
}
.countdown-item strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  color: var(--rose-dark);
}
.countdown-item span { display: block; margin-top: 7px; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event-date-line { color: var(--muted); margin: 0 0 48px; font-size: .78rem; letter-spacing: .08em; }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.event-card {
  position: relative;
  padding: 42px 36px 34px;
  background: rgba(255,250,246,.88);
  border: 1px solid rgba(185,110,99,.18);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.event-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--gold));
  opacity: .65;
}
.event-city {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(185,110,99,.08);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .64rem;
  font-weight: 600;
  color: var(--rose-dark);
}
.event-city-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.event-card h3 {
  margin: 14px 0 23px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 500;
}
.event-meta { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 22px; align-items: center; max-width: 260px; margin: 0 auto 18px; }
.event-meta > div:not(.meta-line) { display: flex; flex-direction: column; }
.meta-line { height: 47px; background: var(--line); }
.event-day, .event-time { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 600; color: var(--rose-dark); }
.event-meta span:last-child { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.event-venue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 247, 240, .92);
  color: #664f47;
  font-size: .75rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(143,81,75,.12);
}
.event-card p { color: var(--muted); font-size: .77rem; line-height: 1.8; min-height: 48px; }
.event-actions { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.outline-btn, .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.premium-btn {
  box-shadow: 0 10px 24px rgba(69,49,39,.08);
}
.outline-btn { border: 1px solid rgba(143,81,75,.32); color: var(--rose-dark); background: rgba(255,250,246,.90); }
.outline-btn:hover { background: var(--rose-dark); color: white; }
.text-btn { background: transparent; color: var(--rose-dark); }
.ghost-btn {
  border: 1px solid rgba(143,81,75,.18);
  background: rgba(255,250,246,.72);
}
.text-btn:hover { background: rgba(185,110,99,.10); }

.program-section { background: rgba(248,242,236,.48); }
.timeline { max-width: 760px; margin: 42px auto 0; text-align: left; position: relative; }
.timeline::before { content:""; position:absolute; left: 120px; top: 22px; bottom: 22px; width:1px; background: var(--line); }
.timeline-item { display:grid; grid-template-columns: 95px 50px 1fr; align-items:center; min-height: 104px; margin: 10px 0; }
.timeline-time {
  text-align:right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,250,246,.86);
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:1.45rem;
  font-weight:600;
  color: #6f3f3a;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
  box-shadow: 0 6px 18px rgba(45,31,25,.10);
}
.timeline-dot { position:relative; width:13px; height:13px; border-radius:50%; border:3px solid var(--cream); background:var(--rose); justify-self:center; box-shadow:0 0 0 1px rgba(143,81,75,.25); }
.timeline-copy {
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 16px;
  background: rgba(255,250,246,.86);
  box-shadow: 0 9px 24px rgba(45,31,25,.10);
}
.timeline-copy h3 { margin:0 0 5px; font-family:"Cormorant Garamond", Georgia, serif; font-size:1.6rem; font-weight:700; color: #3f342f; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.timeline-copy p { margin:0; color:#5f514b; font-weight:400; line-height:1.55; font-size:.78rem; }

.invitation-frame {
  width: min(470px, 94vw);
  margin: 42px auto 0;
  padding: 10px;
  background: white;
  border: 1px solid rgba(185,110,99,.18);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(69,49,39,.13);
}
.invitation-frame img { width: 100%; border-radius: 8px; }

.rsvp-form {
  margin: 40px auto 0;
  text-align: left;
  padding: 34px;
  border-radius: 24px;
  background: rgba(255,250,246,.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.rsvp-form label { display:block; }
.rsvp-form label > span { display:block; margin:0 0 8px; font-size:.68rem; font-weight:600; text-transform:uppercase; letter-spacing:.12em; color:var(--rose-dark); }
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width:100%;
  border:1px solid rgba(143,81,75,.2);
  background:#fff;
  color:var(--ink);
  padding:13px 14px;
  border-radius:12px;
  outline:none;
  transition:border .2s ease, box-shadow .2s ease;
  margin-bottom:18px;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus { border-color:rgba(143,81,75,.55); box-shadow:0 0 0 3px rgba(185,110,99,.08); }
.rsvp-form textarea { resize:vertical; }
.form-row { display:grid; grid-template-columns: 2fr 1fr; gap:14px; }
.form-note { margin:12px 0 0; text-align:center; color:var(--muted); font-size:.67rem; line-height:1.6; }

.closing-section {
  background: rgba(255,250,246,.40);
}
.closing-section .section-inner.narrow {
  padding: 36px 28px;
  border-radius: 28px;
  background: rgba(255,250,246,.82);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: var(--shadow);
}
.closing-lead { max-width: 600px; }
.closing-sign {
  margin: 26px 0 0;
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.6;
}
.closing-sign strong {
  font-size: 1.55rem;
  font-weight: 600;
}

.footer {
  padding: 58px 18px 34px;
  text-align:center;
  background:rgba(234,216,207,.66);
  border-top:1px solid rgba(143,81,75,.12);
}
.footer-names { font-size: 2.5rem; }
.footer-names span { color:var(--gold); }
.footer-date { margin:8px 0 25px; font-size:.72rem; letter-spacing:.2em; color:var(--rose-dark); }
.footer nav { display:flex; justify-content:center; flex-wrap:wrap; gap:16px 24px; }
.footer nav a { font-size:.65rem; text-transform:uppercase; letter-spacing:.12em; color:#6e5d56; text-decoration:none; }
.footer nav a:hover { color:var(--rose-dark); }

.music-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(143,81,75,.22);
  border-radius: 999px;
  background: rgba(255,250,246,.88);
  color: var(--rose-dark);
  box-shadow: 0 10px 30px rgba(69,49,39,.14);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: width .2s ease, padding .2s ease, transform .2s ease, background .2s ease;
}
.music-toggle:hover { transform: translateY(-1px); }
.music-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(185,110,99,.10);
  font-size: 1rem;
  line-height: 1;
}
.music-label {
  white-space: nowrap;
}
.music-toggle.playing.compact {
  width: 44px;
  min-width: 44px;
  padding: 0;
  justify-content: center;
}
.music-toggle.playing.compact .music-label {
  display: none;
}
.music-toggle.playing .music-icon {
  animation: musicPulse 1.8s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.music-credit {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: .58rem;
  line-height: 1.6;
  color: #85736b;
}
.music-credit a { color: inherit; }

.toast {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translate(-50%, 18px);
  padding: 11px 16px;
  border-radius: 999px;
  background: #3f342f;
  color: #fff;
  font-size: .72rem;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .85s ease, transform .85s ease;
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js .reveal.visible,
.js .visible-on-load {
  opacity: 1;
  transform: none;
}
.js .reveal > .section-monogram,
.js .reveal > .eyebrow,
.js .reveal > h2,
.js .reveal > .tiny-heart,
.js .reveal > .lead,
.js .reveal > .rsvp-intro,
.js .reveal > .families,
.js .reveal > .countdown,
.js .reveal > .event-date-line,
.js .reveal > .event-grid,
.js .reveal > .timeline,
.js .reveal > .invitation-frame,
.js .reveal > .rsvp-form,
.js .reveal > .closing-sign {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .75s ease, transform .75s ease;
}
.js .reveal.visible > * {
  opacity: 1;
  transform: none;
}
.js .reveal.visible > *:nth-child(1) { transition-delay: .04s; }
.js .reveal.visible > *:nth-child(2) { transition-delay: .10s; }
.js .reveal.visible > *:nth-child(3) { transition-delay: .16s; }
.js .reveal.visible > *:nth-child(4) { transition-delay: .22s; }
.js .reveal.visible > *:nth-child(5) { transition-delay: .28s; }
.js .reveal.visible > *:nth-child(6) { transition-delay: .34s; }
.js .reveal.visible > *:nth-child(7) { transition-delay: .40s; }
.js .reveal.visible > *:nth-child(8) { transition-delay: .46s; }



/* Android fix: Great Vibes renders Turkish ş awkwardly on some Android builds.
   Keep the original iPhone/iOS appearance, use Dancing Script only on Android. */
.is-android .hero h1,
.is-android .footer-names {
  font-family: "Dancing Script", "Segoe Script", cursive;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.is-android .hero h1 {
  font-size: clamp(3.15rem, 10.5vw, 5.3rem);
  line-height: 1.02;
}

@media (max-width: 720px) {
  .music-toggle { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); min-height: 42px; padding: 0 12px; }
  .music-toggle.playing.compact { width: 42px; min-width: 42px; }
  .hero { padding-top: 26px; }
  .hero-inner { width: min(92vw, 560px); border-radius: 26px; background: rgba(255,250,246,.78); }
  .video-overlay { background: linear-gradient(180deg, rgba(31,24,21,.04), rgba(31,24,21,.08) 55%, rgba(31,24,21,.14)); }
  .section { background: rgba(248,242,236,.32); }
  .section:nth-child(even) { background: rgba(255,250,246,.36); }
  .hero h1 { margin-top: 3px; }
  .hero-note { font-size: 1.18rem; padding: 12px 14px; background: rgba(255,250,246,.84); }
  .section { padding: 72px 17px; }
  .intro .section-inner.narrow,
  .closing-section .section-inner.narrow {
    padding: 26px 18px;
    background: rgba(255,250,246,.90);
    border-radius: 22px;
  }
  .intro .lead,
  .closing-lead {
    font-size: 1.22rem;
    line-height: 1.6;
  }
  .families { grid-template-columns:1fr; gap:18px; }
  .intro .families > div:not(.family-divider) { padding: 12px 14px; }
  .family-divider { width:64px; height:1px; margin:0 auto; }
  .countdown { gap:8px; }
  .countdown-item { padding:18px 4px; border-radius:14px; }
  .event-grid { grid-template-columns:1fr; }
  .event-card { padding:36px 22px 28px; }
  .timeline::before { left: 82px; }
  .timeline-item { grid-template-columns: 64px 36px 1fr; min-height: 100px; margin: 12px 0; }
  .timeline-time {
    min-height: 38px;
    padding: 6px 7px;
    font-size: 1.05rem;
    background: rgba(255,250,246,.92);
  }
  .timeline-copy {
    padding: 14px 13px;
    border-radius: 14px;
    background: rgba(255,250,246,.90);
  }
  .timeline-copy h3 { font-size: 1.42rem; }
  .timeline-copy p { font-size: .76rem; }
  .rsvp-form { padding:24px 18px; }
  .form-row { grid-template-columns:1fr; gap:0; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 3.15rem; }
  .countdown-item strong { font-size: 1.75rem; }
  .countdown-item span { font-size: .55rem; }
  .music-toggle.expanded { max-width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
  .reveal, .reveal > * { opacity:1 !important; transform:none !important; }
}


/* Safari / iOS dayanıklılık katmanı */
@supports (-webkit-touch-callout: none) {
  .hero-inner,
  .event-card,
  .rsvp-form {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .video-background {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

/* Mobile browser interaction polish */
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .primary-btn, .outline-btn, .text-btn, .music-toggle { touch-action: manipulation; }
@supports (-webkit-touch-callout: none) {
  html { min-height: -webkit-fill-available; }
  body { min-height: -webkit-fill-available; }
}
