/* Philia Gifts — Angeline & Ivann blue and neutral wedding theme */
:root {
  --powder-blue: #B0D9F0;
  --sky-blue: #87CEEB;
  --baby-blue: #89CFF0;
  --light-gray: #D3D3D3;
  --beige: #E8DCC8;
  --cream: #FFFDD0;
  --accent: var(--sky-blue);
  --accent-dark: #4F7890;
  --accent-deep: #35566B;
  --accent-pale: #EAF5FB;
  --paper: #FFF9EF;
  --ink: #34434D;
  --muted: #78838A;
  --line: #D3D3D3;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --content: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #B0D9F0; outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 1rem; z-index: 1000; background: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { height: 76px; padding: 0 max(5vw, 22px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,248,.96); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(89,102,80,.12); }
.brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; text-decoration: none; color: var(--accent-deep); }
.brand span { font-style: italic; color: var(--accent); }
.site-nav { display: flex; gap: clamp(1.2rem, 3vw, 2.8rem); align-items: center; }
.site-nav a { text-decoration: none; font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover { color: var(--accent-dark); }
.site-nav .nav-rsvp { border: 1px solid var(--accent-dark); padding: .65rem 1.2rem; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .6rem; }
.hero { min-height: min(790px, calc(100svh - 76px)); position: relative; display: grid; place-items: center; color: white; text-align: center; overflow: hidden; background: var(--accent-deep); }
.hero-image, .hero-shade { position: absolute; inset: 0; }

.hero-image {
  background: url("./images/hero/hero-desktop.png") center center / cover no-repeat;
  transform: none;
}


.hero-shade {
  background: transparent;
}


.hero {
  color: var(--ink);
  background: var(--paper);
}

.hero h1 em {
  font-weight: 400;
  color: var(--accent-dark);
}

.hero-rule {
  color: var(--accent);
}

.hero-rule::before,
.hero-rule::after {
  background: var(--accent);
}

.hero-date {
  color: var(--ink);
}

.button-light {
  color: var(--accent-deep);
  border-color: var(--accent-dark);
  background: transparent;
}

.button-light:hover {
  background: var(--accent-pale);
}

.scroll-cue {
  color: var(--accent-deep);
}

.scroll-cue span {
  background: var(--accent-dark);
}


.hero-content { position: relative; z-index: 1; padding: 5rem 1.5rem; width: min(100%, 900px); }
.eyebrow { margin: 0 0 1rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; }
.eyebrow.light {
  color: #DCEBF2;
}
.hero h1 { font: 400 clamp(3.6rem, 10vw, 7.7rem)/1.08 var(--serif); margin: .7rem 0 1rem; letter-spacing: -.045em; }
.hero h1 em { font-weight: 400; color: #B0D9F0; }
.hero-subtitle { font: italic 1.15rem var(--serif); margin: 0; }
.hero-rule { margin: 2rem auto 1.3rem; display: flex; align-items: center; gap: .8rem; width: 120px; color: #B0D9F0; }
.hero-rule::before, .hero-rule::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.65); }
.hero-date { letter-spacing: .17em; font-size: .75rem; margin: 0 0 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid transparent; padding: .9rem 1.7rem; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { color: white; border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }
.button-light:hover { background: rgba(255,255,255,.18); }
.button-dark { background: var(--accent-deep); color: white; width: 100%; }
.button-dark:hover { background: var(--accent-dark); }
.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; align-items: center; gap: .7rem; color: white; text-decoration: none; font-size: .6rem; letter-spacing: .2em; white-space: nowrap; }
.scroll-cue span { height: 30px; width: 1px; background: rgba(255,255,255,.75); }
.section-pad { padding: 20px; }
.welcome, .details, .gallery-section, .attire, .closing { text-align: center; }
.welcome { background: var(--accent-pale); }
h2 { font: 25px/1.15 var(--serif); letter-spacing: -.025em; margin: 0 0 1.2rem; }
.intro-copy, .section-intro { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 16px; }
.flourish { color: var(--accent); font: 3rem var(--serif); margin: 1.4rem 0 1.5rem; }
.countdown-wrap { max-width: 650px; margin: 0 auto; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.3rem; }
.countdown div { display: flex; flex-direction: column; gap: .2rem; border-right: 1px solid #D3D3D3; }
.countdown div:last-child { border: 0; }
.countdown strong { font: 400 clamp(2rem, 5vw, 3.1rem) var(--serif); color: var(--accent-deep); }
.countdown span { font-size: .67rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; max-width: 1400px; margin: 0 auto; }
.story-photo {
  width: 80%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  background-image: url("images/h&j.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.photo-one { background-image: url("images/h&j.png"); }
.story-copy { max-width: 520px; padding: 2rem 0; }
.story-copy h2 { margin-bottom: 1.5rem; }
.story-copy p:not(.eyebrow):not(.signature) { color: var(--muted); font-size: .95rem; }
.signature { color: #4F7890; font: italic 1.5rem var(--serif); margin-top: 2rem; }
.details { background: var(--cream); }

.details-grid {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 3rem auto 5rem;
}

.detail-card {
  background: transparent;
  padding: 2.5rem 2rem;
  border: 0;
  text-align: center;
}

.detail-card + .detail-card {
  border-left: 1px solid var(--line);
}


.detail-icon {
  color: var(--accent);
  font: 1.8rem var(--serif);
  margin-bottom: 1.2rem;
  opacity: .7;
}

.detail-card .eyebrow { margin-bottom: .6rem; }
.detail-card h3, .schedule-block h3 { font: 400 1.7rem var(--serif); margin: .4rem 0; }
.detail-card p:not(.eyebrow) { color: var(--muted); margin: .35rem 0; }
.text-link { display: inline-block; margin-top: .7rem; color: var(--accent-dark); font-size: .78rem; text-underline-offset: 4px; }
.schedule-block { max-width: 620px; margin: 0 auto; }
.schedule-block h3 { margin-bottom: 1.5rem; }
.schedule { margin-top: 1.5rem; text-align: left; border-top: 1px solid var(--line); }
.schedule-item { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1rem .4rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.schedule-item time { color: var(--accent-dark); font-weight: 700; font-size: .8rem; }
.gallery-section { max-width: 1440px; margin: 0 auto; }
.gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 12px; max-width: 1000px; margin: 3rem auto 1rem; }
.gallery-item { display: block; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--accent-pale); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-tall { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-note { color: var(--muted); font-size: .72rem; }
.attire { background: var(--accent-pale); }
.palette { display: flex; justify-content: center; margin: 2rem auto 1rem; }
.palette span { display: block; width: 48px; height: 48px; border-radius: 50%; margin-left: -5px; background: var(--swatch); border: 3px solid var(--accent-pale); box-shadow: 0 0 0 1px rgba(50,50,50,.08); }
.attire-note { color: var(--muted); font-size: .85rem; }
.rsvp-section { background: var(--accent-dark); color: white; }
.rsvp-inner { max-width: 560px; margin: 0 auto; }
.rsvp-inner h2 { text-align: center; }
.rsvp-inner > .eyebrow, .rsvp-copy { text-align: center; }
.rsvp-copy { color: #EAF5FB; margin: 0 auto 2rem; }
.rsvp-form { display: grid; gap: .65rem; }
.rsvp-form > label, .rsvp-form legend { font-size: .8rem; letter-spacing: .03em; }
.optional { color: #D3D3D3; font-size: .72rem; }
.rsvp-form input:not([type="radio"]):not([type="checkbox"]), .rsvp-form select, .rsvp-form textarea { width: 100%; padding: .85rem 1rem; background: #FFF9EF; border: 1px solid transparent; font-size: 12px; border-radius: 0; color: var(--ink); }
.rsvp-form fieldset { border: 1px solid rgba(255,255,255,.35); padding: 1rem; margin: .7rem 0; display: grid; gap: .7rem; }
.rsvp-form legend { padding: 0 .4rem; }
.radio-option { display: flex; gap: .6rem; align-items: center; font-size: .86rem; }
.radio-option input, .consent input { accent-color: var(--accent-deep); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .72rem !important; color: #EAF5FB; margin: .7rem 0; }
.consent input { margin-top: .35rem; flex-shrink: 0; }
.form-status { min-height: 1.5rem; font-size: .85rem; }
.demo-note { color: #EAF5FB; font-size: .72rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1rem; }
.closing { background: #fef8ee; }
.closing-flower { color: #4F7890; font-size: 2rem; margin-bottom: 1rem; }
.closing h2 { font-size: 16px; }
.site-footer { padding: 2rem 1.5rem; text-align: center; background: var(--accent-deep); color: white; font-size: .8rem; }
.site-footer p { margin: .2rem; }
.footer-tagline { color: #DCEBF2; font-size: .7rem; }
.music-button { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .7rem 1rem; display: flex; align-items: center; gap: .55rem; background: rgba(62,73,58,.94); color: white; box-shadow: 0 5px 20px rgba(0,0,0,.12); cursor: pointer; font-size: .72rem; }
.music-icon { font-size: 1.1rem; }
.lightbox { width: min(92vw, 1100px); max-height: 90vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20,25,19,.9); }
.lightbox img { max-height: 85vh; width: 100%; object-fit: contain; }
.lightbox-close { position: absolute; right: -10px; top: -45px; border: 0; background: transparent; color: white; font-size: 2rem; cursor: pointer; }
@media (max-width: 800px) {
  .site-header { height: 68px; }
  .menu-toggle { display: block; z-index: 52; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 25px; height: 1px; background: var(--accent-deep); position: relative; transition: transform .2s; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -7px; }
  .menu-lines::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 68px 0 auto; background: var(--paper); padding: 1.4rem 1.5rem 2rem; display: flex; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); transform: translateY(-130%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: .95rem .2rem; border-bottom: 1px solid var(--line); }
  .site-nav .nav-rsvp { text-align: center; margin-top: .8rem; border: 1px solid var(--accent-dark); }
  .hero { min-height: calc(100svh - 68px); }
  .hero-image {
  background-position: center center;
  background-size: auto 100%;
}
  .hero-content { padding: 4rem 1.2rem; }
  .story { grid-template-columns: 1fr; gap: 1.5rem; }
  .story-photo { min-height: 380px; }
  .story-copy { padding: 0; }
  .details-grid { grid-template-columns: 1fr; max-width: 460px; margin-bottom: 4rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 170px 170px; }
  .gallery-tall { grid-row: span 2; }
  .gallery-item:nth-child(4) { grid-column: 1 / 3; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-date { font-size: .64rem; }
  .countdown { gap: .2rem; }
  .countdown strong { font-size: 1.8rem; }
  .countdown span { font-size: .56rem; letter-spacing: .08em; }
  .story-photo { min-height: 300px; }
  .schedule-item { grid-template-columns: 90px 1fr; gap: .7rem; font-size: .82rem; }
  .gallery { grid-template-rows: 170px 140px 140px; gap: 7px; }
  .gallery-note { font-size: .66rem; }
  .music-button { right: .7rem; bottom: .7rem; }
  .intro-copy, .section-intro { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.story-photo {
  min-height: 580px;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
 
}



@media (prefers-reduced-motion: reduce) {
  .story-photo {
    clip-path: none;
    transition: none;
  }
}


/* Our Story photo reveal */
.story-photo {
  animation: story-photo-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes story-photo-reveal {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-photo {
    animation: none;
  }
}


/* Wedding Day scroll reveal */
.details .detail-card,
.details .schedule-block {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.details .detail-card.is-revealed,
.details .schedule-block.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .details .detail-card,
  .details .schedule-block {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* Wedding Day botanical corner artwork */
.details {
  position: relative;
  isolation: isolate;
}

.details::before,
.details::after {
  content: "";
  position: absolute;
  top: 0;
  width: min(26vw, 330px);
  height: 320px;
  background-image: url("images/wedding-botanical.png");
  background-repeat: no-repeat;
  background-size: 200% auto;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
}

.details::before {
  left: 0;
  background-position: left top;
}

.details::after {
  right: 0;
  background-position: right top;
}

@media (max-width: 700px) {
  .details::before,
  .details::after {
    width: 42vw;
    height: 240px;
    opacity: 0.28;
  }
}


/* Garden Formal background illustration */
.attire {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: url("images/garden-formal.png");
  background-size: auto 100%;
background-position: center bottom;
background-color: #EAF5FB;
  background-repeat: no-repeat;
  min-height: 650px;
}

.attire > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .attire {
    background-size: auto;
    min-height: 580px;
  }
}


/* Elegant monetary gift section */
.gift-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 90px 24px 100px;
  background-color: #F1E8D9;
  background-image: url("images/gift-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 650px;
}

.gift-section > * {
  position: relative;
  z-index: 1;
}

.gift-section h2 {
  max-width: 950px;
  margin: 18px auto 24px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.1;
}

.gift-message {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.9;
  color: #77796d;
  font-size: 1.05rem;
}

.gift-signature {
  margin: 28px 0 0;
  color: #5d6654;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
}

@media (max-width: 600px) {
  .gift-section {
    padding: 70px 22px 76px;
    background-position: center;
  }

  .gift-section h2 {
    font-size: 2.6rem;
  }

  .gift-message {
    font-size: 0.98rem;
  }
}


.hero {
  position: relative;
  min-height: min(790px, calc(100svh - 76px));
  overflow: hidden;
  background: var(--paper);
}


.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-mobile {
  display: none;
}

.hero-video-desktop {
  display: block;
}

@media (max-width: 800px) {
  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
  }
}


/* Mobile layout: 300px–500px */
@media (max-width: 500px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    min-height: calc(100svh - 68px);
    overflow: hidden;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .container,
  .section-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    overflow-wrap: break-word;
  }
}


.story-video-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.story-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-video-desktop {
  display: block;
}

.story-video-mobile {
  display: none;
}

/* Mobile video: screens 800px and below */
@media (max-width: 800px) {
  .story-video-desktop {
    display: none !important;
  }

  .story-video-mobile {
    display: block !important;
  }
}
/* OUR STORY VIDEO */
.story {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.story-video-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.story-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.story-video-desktop {
  display: block;
}

.story-video-mobile {
  display: none;
}

@media (max-width: 800px) {
  .story-video-desktop {
    display: none;
  }

  .story-video-mobile {
    display: block;
  }
}

/* OUR STORY — full-width video */
.story {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

.story-layout {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.story-video-wrap {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.story-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-video-desktop {
  display: block;
}

.story-video-mobile {
  display: none;
}

/* Switch video on smaller screens */
@media (max-width: 800px) {
  .story-video-wrap {
    aspect-ratio: auto;
    height: auto;
  }

  .story-video-desktop {
    display: none;
  }

  .story-video-mobile {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: center;
  }
}

/* Small phones */
@media (max-width: 500px) {
  .story,
  .story-layout,
  .story-video-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .story-video-mobile {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }
}

/* FIX: OUR STORY VIDEO MUST FILL FULL WIDTH */
#story.story {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
}

#story .story-layout {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

#story .story-video-wrap {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

#story .story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#story .story-video-desktop {
  display: block;
}

#story .story-video-mobile {
  display: none;
}

@media (max-width: 800px) {
  #story .story-video-wrap {
    aspect-ratio: auto;
  }

  #story .story-video-desktop {
    display: none;
  }

  #story .story-video-mobile {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* WEDDING DAY VIDEO */
#details.details {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
}

.details-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.details-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.details-video-desktop {
  display: block;
}

.details-video-mobile {
  display: none;
}

@media (max-width: 800px) {
  .details-video-wrap {
    aspect-ratio: auto;
  }

  .details-video-desktop {
    display: none;
  }

  .details-video-mobile {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* GALLERY VIDEO SECTION */
#gallery.gallery-section {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  background: var(--paper);
}

.gallery-video-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.gallery-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-video-desktop {
  display: block;
}

.gallery-video-mobile {
  display: none;
}

/* Mobile video — same breakpoint as Hero */
@media (max-width: 800px) {
  .gallery-video-desktop {
    display: none;
  }

  .gallery-video-mobile {
    display: block;
  }
}


/* ATTIRE VIDEO SECTION */
#attire.attire {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  background: var(--paper);
}

.attire-video-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.attire-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.attire-video-desktop {
  display: block;
}

.attire-video-mobile {
  display: none;
}

@media (max-width: 800px) {
  .attire-video-desktop {
    display: none;
  }

  .attire-video-mobile {
    display: block;
  }
}


/* FIX: ATTIRE TO RSVP GAP */
#attire.attire {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#attire .attire-video-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0;
}

#attire .attire-video {
  vertical-align: bottom;
}

#rsvp.rsvp-section,
.rsvp-section {
  margin-top: 20px !important;
}


/* FIX ATTIRE VIDEO AND RSVP GAP */
#attire.attire {
  display: flow-root;
  height: auto;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}

#attire .attire-video-wrap {
  display: block;
  height: auto;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  overflow: hidden;
  line-height: 0;
}

#attire .attire-video {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

#rsvp.rsvp-section {
  margin-top: 0 !important;
  padding-top: 25px;
}


/* FIX MOBILE ATTIRE VIDEO */
@media (max-width: 800px) {
  #attire .attire-video-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
  }

  #attire .attire-video-desktop {
    display: none;
  }

  #attire .attire-video-mobile {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: top center;
  }
}

/* ATTIRE — DESKTOP AND MOBILE VIDEO SWITCH */
#attire .attire-video-desktop {
  display: block !important;
}

#attire .attire-video-mobile {
  display: none !important;
}

@media screen and (max-width: 800px) {
  #attire .attire-video-desktop {
    display: none !important;
  }

  #attire .attire-video-mobile {
    display: block !important;
  }
}

/* Angeline & Ivann — final blue and neutral theme overrides */
:root {
  --accent: #87CEEB;
  --accent-dark: #4F7890;
  --accent-deep: #35566B;
  --accent-pale: #EAF5FB;
  --cream: #FFFDD0;
  --paper: #FFF9EF;
  --ink: #34434D;
  --muted: #78838A;
  --line: #D3D3D3;
}

.site-header {
  border-bottom-color: rgba(79, 120, 144, 0.16);
}

.site-header .brand,
.site-header .brand span,
.site-nav a:hover,
.site-nav .nav-rsvp {
  color: var(--accent-dark) !important;
}

.site-nav .nav-rsvp {
  border-color: var(--accent-dark) !important;
}

.welcome,
.attire {
  background-color: var(--accent-pale);
}

.eyebrow,
.flourish {
  color: var(--accent-dark);
}

.countdown div {
  border-right-color: var(--line);
}

.countdown strong {
  color: var(--accent-deep);
}

.countdown span {
  color: var(--muted);
}

.rsvp-section,
.faq-section {
  background: var(--accent-dark);
  color: var(--paper);
}

.rsvp-section .eyebrow,
.rsvp-section .eyebrow.light,
.faq-section .eyebrow {
  color: var(--powder-blue, #B0D9F0);
}

.rsvp-copy,
.consent,
.demo-note,
.faq-intro,
.faq-answer {
  color: #EAF5FB;
}

.rsvp-form input:not([type="radio"]):not([type="checkbox"]),
.rsvp-form select,
.rsvp-form textarea {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline-color: var(--powder-blue, #B0D9F0);
}

.rsvp-form fieldset {
  border-color: rgba(255, 249, 239, 0.45);
}

.radio-option input,
.consent input {
  accent-color: var(--accent-deep);
}

.button-dark {
  background: var(--accent-deep);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--accent-dark);
}

.site-footer {
  background: var(--accent-deep);
  color: var(--paper);
}

.footer-tagline {
  color: #DCEBF2;
}

.music-button {
  background: rgba(53, 86, 107, 0.95);
  color: var(--paper);
  border-color: rgba(255, 249, 239, 0.45);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: var(--powder-blue, #B0D9F0);
}

/* FAQ layout and matching theme */
.faq-section {
  padding: 48px 24px;
}

.faq-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.faq-section .eyebrow {
  text-align: center;
  letter-spacing: 2px;
  font-size: 10px;
  margin-bottom: 10px;
}

.faq-section h2 {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 28px;
  color: var(--paper);
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.2;
}

.faq-intro {
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  margin: -12px auto 24px;
  max-width: 480px;
}

.faq-list {
  border-top: 1px solid rgba(255, 249, 239, 0.2);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 249, 239, 0.2);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 3px;
  list-style: none;
  cursor: pointer;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--powder-blue, #B0D9F0);
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--powder-blue, #B0D9F0);
  outline-offset: 3px;
}

.faq-answer {
  padding: 0 28px 16px 3px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
}

.closing {
  background: var(--beige, #E8DCC8);
}

.closing-flower,
.signature {
  color: var(--accent-dark);
}

@media (max-width: 600px) {
  .faq-section {
    padding: 36px 20px;
  }

  .faq-section h2 {
    font-size: 28px;
    margin-bottom: 22px;
  }

  .faq-intro {
    margin-bottom: 20px;
  }

  .faq-item summary {
    padding: 13px 2px;
    font-size: 15px;
  }

  .faq-item summary::after {
    font-size: 21px;
  }

  .faq-answer {
    padding-right: 10px;
    font-size: 12px;
  }
}


/* OUR JOURNEY THROUGH TIME — full-width video section */
#journey.journey-video-section {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

#journey .journey-video-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

#journey .journey-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#journey .journey-video-desktop {
  display: block;
}

#journey .journey-video-mobile {
  display: none;
}

@media (max-width: 800px) {
  #journey .journey-video-wrap {
    aspect-ratio: auto;
  }

  #journey .journey-video-desktop {
    display: none;
  }

  #journey .journey-video-mobile {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}


/* DESKTOP ONLY — reduce the height of video-led sections.
   Mobile sizing and layout remain unchanged. */
@media screen and (min-width: 801px) {
  .hero {
    height: min(90vh, 950px);
    min-height: 0;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #story .story-video-wrap,
  #details .details-video-wrap,
  #gallery .gallery-video-wrap,
  #entourage .entourage-video-wrap,
  #attire .attire-video-wrap,
  #journey .journey-video-wrap {
    height: min(95vh, 1000px);
    max-height: 1000px;
    aspect-ratio: auto;
  }

  #story .story-video,
  #details .details-video,
  #gallery .gallery-video,
  #entourage .entourage-video,
  #attire .attire-video,
  #journey .journey-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* MUSIC BUTTON — vinyl record disk only */
.music-button .music-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  overflow: hidden;
  font-size: 0;
  line-height: 1;
  background:
    radial-gradient(circle at center,
      #f5f5f5 0 2px,
      #c9c9c9 2.5px 6px,
      transparent 6.5px),
    repeating-radial-gradient(circle at center,
      #343434 0 1px,
      #171717 1.8px 3px,
      #292929 3.6px 4.4px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 5px rgba(0, 0, 0, 0.28);
}

.music-button .music-icon::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8e8e8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.music-button .music-icon::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-42%, -50%);
  color: #202020;
  font-size: 15px;
  line-height: 1;
}

.music-button[aria-pressed="true"] .music-icon {
  animation: music-vinyl-spin 3s linear infinite;
}

.music-button[aria-pressed="true"] .music-icon::after {
  content: "Ⅱ";
  transform: translate(-50%, -50%);
  font-size: 7px;
}

@keyframes music-vinyl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .music-button .music-icon {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
}
}

/* MUSIC BUTTON — show only the larger vinyl disk */
.music-button {
  width: 92px;
  height: 92px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.music-button #music-label {
  display: none;
}

.music-button .music-icon {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
}

.music-button .music-icon::before {
  width: 30px;
  height: 30px;
}

.music-button .music-icon::after {
  font-size: 20px;
}

.music-button[aria-pressed="true"] .music-icon::after {
  font-size: 9px;
}

@media (max-width: 600px) {
  .music-button {
    width: 72px;
    height: 72px;
  }

  .music-button .music-icon {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}


/* MUSIC BUTTON — brief "Tap to play music" hint only */
.music-button {
  position: fixed;
}

.music-button::before {
  content: "Tap to play music ♫";
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(53, 86, 107, 0.95);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: music-tooltip-intro 6s ease 1s both;
}

.music-button:hover::before,
.music-button:focus-visible::before {
  opacity: 1;
  animation: none;
}

@keyframes music-tooltip-intro {
  0%,
  10% {
    opacity: 0;
    transform: translateY(4px);
  }
  20%,
  75% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-3px);
  }
}

/* ENTOURAGE VIDEO SECTION — matches the other full-width video sections */
#entourage.entourage-video-section {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

#entourage .entourage-video-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

#entourage .entourage-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#entourage .entourage-video-desktop {
  display: block;
}

#entourage .entourage-video-mobile {
  display: none;
}

@media (max-width: 800px) {
  #entourage .entourage-video-wrap {
    aspect-ratio: auto;
  }

  #entourage .entourage-video-desktop {
    display: none;
  }

  #entourage .entourage-video-mobile {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* Wedding hashtag beneath the couple's closing signature */
.closing .wedding-hashtag {
  margin: 1.2rem 0 0;
  color: var(--accent-dark);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
}

