/* ============================================================
   XAVIER JOSHUA - editorial system
   Type: Fraunces (display serif) / Archivo (sans)
   Palette: ivory #F5F1E9 · ink #171717 · charcoal #30302F
            stone #AAA49B · brass #A8703A
   Corners: square throughout
   ============================================================ */

:root {
  --ivory: #F5F1E9;
  --ink: #171717;
  --charcoal: #30302F;
  --stone: #AAA49B;
  --brass: #A8703A;
  --peach: #E3CDBB;
  --ocean: #8FA3A8;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Archivo', Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  /* horizontal gutter: grows with the viewport, then caps so content
     stays centered and never stretches edge-to-edge on ultra-wide screens */
  --gutter: max(clamp(1.25rem, 4vw, 4rem), calc((100% - 1680px) / 2));
  --scene: clamp(5.5rem, 11vw, 10rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* anchor targets clear the fixed header when navigated to */
section[id] { scroll-margin-top: 4.5rem; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--brass); color: var(--ivory); }

/* ---------- keyboard focus (desktop) ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- type utilities ---------- */

h1, h2, h3, .ghost-word, .interlude-line { text-wrap: balance; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.serif-display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.narrow-copy {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  color: var(--ivory);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.solid {
  background: rgba(245, 241, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.08);
}

.brand {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.main-nav { display: flex; gap: 2.2rem; }

.main-nav a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.main-nav a { position: relative; }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ivory);
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 9vw, 3.5rem);
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.mobile-menu a:last-child { border-bottom: 0; }

.mobile-menu .eyebrow {
  color: var(--stone);
  margin-bottom: 1.5rem;
}

/* ---------- hero / scene one ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  animation: heroZoom 7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(23, 23, 23, 0.75) 0%, rgba(23, 23, 23, 0.42) 50%, rgba(23, 23, 23, 0.18) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(3.5rem, 7vh, 5.5rem);
  width: 100%;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-eyebrow {
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::after {
  content: "";
  width: clamp(40px, 6vw, 90px);
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 13vw, 12rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero h1 .line-two {
  display: block;
  margin-left: clamp(1.5rem, 9vw, 9rem);
}

.hero .line { display: block; overflow: hidden; }

.hero .line-inner {
  display: block;
  transform: translateY(115%);
  animation: lineUp 1.3s cubic-bezier(0.19, 1, 0.22, 1) 0.15s forwards;
}

.hero .line-two .line-inner { animation-delay: 0.32s; }

@keyframes lineUp {
  to { transform: translateY(0); }
}

.hero h1 em {
  font-style: italic;
  font-weight: 350;
}

.hero-sub {
  margin-top: 1.8rem;
  margin-left: clamp(1.5rem, 9vw, 9rem);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero .btn {
  padding: 1rem 2.6rem;
  margin-top: 2.4rem;
  margin-left: clamp(1.5rem, 9vw, 9rem);
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.5rem, 7vh, 5.5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--ivory);
  opacity: 0.85;
}

.scroll-cue .eyebrow {
  writing-mode: vertical-rl;
  font-size: 0.5625rem;
  letter-spacing: 0.42em;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: cueDrop 2.4s ease-in-out infinite;
}

@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.4rem;
  border: 1px solid currentColor;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.btn-solid { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-solid:hover { background: var(--brass); border-color: var(--brass); color: var(--ivory); }

/* ---------- scene scaffolding ---------- */

.scene { padding: var(--scene) var(--gutter); }

.scene-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.scene-head .rule {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
}

.scene-head .eyebrow { opacity: 0.65; white-space: nowrap; }

.dark-scene { background: var(--charcoal); color: var(--ivory); }
.ink-scene { background: var(--ink); color: var(--ivory); }

.ghost-word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 1;
  color: var(--peach);
  opacity: 0.5;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- scene two : the artist ---------- */

.artist-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
}

.artist-visual {
  grid-column: 1 / span 6;
  position: relative;
}

.artist-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.artist-copy {
  grid-column: 8 / span 5;
  padding-top: clamp(1rem, 4vw, 4rem);
}

.artist-copy h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 1.4rem 0 1.8rem;
}

.artist-copy h2 em { font-style: italic; font-weight: 350; }

.artist-copy p {
  max-width: 38ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.artist-signature {
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brass);
}



/* ---------- scene three : the sound ---------- */

.sound-scene .scene-head { color: var(--ivory); }

.sound-scene h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.sound-scene h2 em { font-style: italic; font-weight: 350; }

.sound-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.sound-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.sound-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.35);
  pointer-events: none;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: clamp(84px, 9vw, 116px);
  height: clamp(84px, 9vw, 116px);
  border-radius: 50%;
  border: 1px solid var(--ivory);
  background: rgba(23, 23, 23, 0.25);
  color: var(--ivory);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.play-btn:hover { background: var(--brass); border-color: var(--brass); transform: translate(-50%, -50%) scale(1.05); }

.play-btn svg { width: 26px; height: 26px; margin-left: 4px; }

.sound-caption {
  margin-top: 1.2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ---------- scene four : occasions ---------- */

.occasion-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.occasion-row:last-child { margin-bottom: 0; }

.occasion-media { position: relative; }

/* one shared frame shape for every occasion - keeps the four rows
   on an even rhythm instead of each photo dictating its own height */
.occasion-media.tall,
.occasion-media.wide { aspect-ratio: 4 / 3; }

.occasion-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.occasion-media:hover img { transform: scale(1.03); }

.occasion-copy .index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brass);
}

.occasion-copy h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0.5rem 0 0.9rem;
}

.occasion-copy p {
  max-width: 36ch;
  color: var(--charcoal);
  line-height: 1.7;
}

/* a thin brass rule anchors every copy block the same way,
   so the four entries read as one composed series */
.occasion-copy::before {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--brass);
  margin-bottom: 1.4rem;
}

.inquiry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.35rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.inquiry-link:hover { color: var(--brass); border-color: var(--brass); }

.inquiry-link svg { width: 14px; height: 14px; }

/* row rhythm - one consistent composition, mirrored left and right.
   photo spans 7 columns, copy sits in a 4-column track with a full
   empty gutter between them, and the sides alternate per row */

.row-a .occasion-media { grid-column: 1 / span 7; }
.row-a .occasion-copy { grid-column: 9 / span 4; }

.row-b .occasion-media { grid-column: 6 / span 7; order: 2; }
.row-b .occasion-copy { grid-column: 1 / span 4; order: 1; }

.row-c .occasion-media { grid-column: 1 / span 7; }
.row-c .occasion-copy { grid-column: 9 / span 4; }

.row-d .occasion-media { grid-column: 6 / span 7; order: 2; }
.row-d .occasion-copy { grid-column: 1 / span 4; order: 1; }

/* ---------- scene five : journal ---------- */

.journal-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--gutter) clamp(2.5rem, 5vw, 4.5rem);
}

.journal-intro p {
  max-width: 40ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--charcoal);
}

.journal-section { padding-top: var(--scene); }

/* ---------- interlude ---------- */

.interlude {
  position: relative;
  height: clamp(420px, 72vh, 640px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interlude img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.48);
  z-index: 1;
}

.interlude-line {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ivory);
  text-align: center;
  padding: 0 var(--pad);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.interlude-line em {
  font-style: italic;
  font-weight: 350;
  color: var(--peach);
}

/* ---------- scene six : invitation + form ---------- */

.invite h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 12ch;
}

.invite h2 em { font-style: italic; font-weight: 350; }

.invite .invite-sub {
  margin-top: 1.6rem;
  font-size: 1.0625rem;
  color: var(--stone);
}

.invite-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.invite-details .detail-block { margin-bottom: 2.4rem; }

.invite-details .eyebrow { color: var(--stone); display: block; margin-bottom: 0.7rem; }

.invite-details a {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 233, 0.35);
  padding-bottom: 0.2rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.invite-details a:hover { color: var(--brass); border-color: var(--brass); }

.invite-details .plain { font-family: var(--sans); font-size: 1rem; border: 0; }

/* form */

/* render native controls (date picker icon, dropdown) in light-on-dark */
.inquiry-form { color-scheme: dark; }

/* restore a visible dropdown arrow now that appearance is stripped */
.inquiry-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23AAA49B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.inquiry-form label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.55rem;
  transition: color 0.3s ease;
}

.field-group:focus-within label { color: var(--brass); }

.field-group { margin-bottom: 1.9rem; }

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 241, 233, 0.3);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.5rem 0 0.75rem;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.inquiry-form select option { color: var(--ink); background: var(--ivory); }

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}

.inquiry-form textarea { min-height: 96px; resize: vertical; }

.inquiry-form ::placeholder { color: rgba(245, 241, 233, 0.35); }

.inquiry-form .btn { background: var(--ivory); color: var(--ink); border-color: var(--ivory); margin-top: 0.5rem; }
.inquiry-form .btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ivory); }

#formStatus { margin-top: 1.2rem; font-size: 0.875rem; letter-spacing: 0.04em; }
#formStatus p { color: var(--stone); }
#formStatus .ok { color: #B8C9A8; }
#formStatus .err { color: #D9A08A; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: 3.5rem var(--gutter) 2.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245, 241, 233, 0.12);
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.8rem; }

.footer-nav a {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover { color: var(--ivory); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.footer-bottom a { color: inherit; text-decoration: none; }

/* ---------- reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* mask instead of clip-path: Chrome measures visibility through clip-path, so a fully clipped photo never triggered the reveal or its lazy load */
.reveal-img {
  -webkit-mask-image: linear-gradient(#000 50%, transparent 50%);
  mask-image: linear-gradient(#000 50%, transparent 50%);
  -webkit-mask-size: 100% 200%;
  mask-size: 100% 200%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transition: -webkit-mask-position 1.2s cubic-bezier(0.22, 0.61, 0.36, 1), mask-position 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-img.in { -webkit-mask-position: 0 0; mask-position: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-img { -webkit-mask-image: none; mask-image: none; transition: none; }
  .occasion-media img, .play-btn, .btn { transition: none; }
  .hero-media img, .hero .line-inner, .scroll-cue::after { animation: none; }
  .hero .line-inner { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  .artist-grid { grid-template-columns: 1fr; }
  .artist-visual { margin-bottom: 4rem; }
  .artist-copy { grid-column: auto; padding-top: 0; max-width: 560px; }

  .occasion-row { grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 4.5rem; }
  .row-b .occasion-media,
  .row-d .occasion-media { order: 1; }
  .row-b .occasion-copy,
  .row-d .occasion-copy { order: 2; }
  .row-a .occasion-media,
  .row-a .occasion-copy,
  .row-b .occasion-media,
  .row-b .occasion-copy,
  .row-c .occasion-media,
  .row-c .occasion-copy,
  .row-d .occasion-media,
  .row-d .occasion-copy { grid-column: auto; }
  .row-c .occasion-copy,
  .row-d .occasion-copy { padding-left: 0; }

  /* keep asymmetry alive on small screens through staggered offsets */
  .row-a .occasion-media,
  .row-c .occasion-media { width: 88%; }
  .row-b .occasion-media,
  .row-d .occasion-media { width: 88%; margin-left: auto; }

  .invite-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 .line-two,
  .hero-sub,
  .hero .btn { margin-left: clamp(1rem, 7vw, 3rem); }

  .scroll-cue { display: none; }

  .sound-frame { aspect-ratio: 4 / 3; }

  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .field-pair .field-group + .field-group { margin-top: 1.9rem; }
}

/* ---------- floating music player ---------- */
#ytAudioHost {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.music-player {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(23, 23, 23, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 112, 58, 0.55);
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  color: var(--ivory);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-family: var(--sans);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.music-player.visible { opacity: 1; transform: translateY(0); }

.music-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ivory);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.music-toggle:hover { transform: scale(1.06); }
.music-toggle svg { width: 18px; height: 18px; }

.music-info { display: flex; flex-direction: column; line-height: 1.25; }
.music-title { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; }
.music-artist {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--peach);
  opacity: 0.85;
}

.music-mute {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--stone);
  cursor: pointer;
  transition: color 0.3s ease;
}
.music-mute:hover { color: var(--ivory); }
.music-mute svg { width: 18px; height: 18px; }

/* icon swapping */
.music-player .icon-pause { display: none; }
.music-player.playing .icon-pause { display: block; }
.music-player.playing .icon-play { display: none; }
.music-player .icon-muted { display: none; }
.music-player.muted .icon-muted { display: block; }
.music-player.muted .icon-vol { display: none; }

/* gentle pulsing ring while playing */
.music-player.playing .music-toggle::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  animation: musicPulse 2.2s ease-out infinite;
  pointer-events: none;
}
.music-toggle { position: relative; }
@keyframes musicPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 480px) {
  .music-player {
    bottom: 0.75rem;
    right: 0.75rem;
    gap: 0.55rem;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  }
  .music-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  .music-player.playing .music-toggle::after { width: 38px; height: 38px; }
  .music-title { font-size: 0.75rem; }
  .music-artist { font-size: 0.625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .music-player { transition: none; }
  .music-player.playing .music-toggle::after { animation: none; opacity: 0; }
  .music-toggle:hover { transform: none; }
}

/* ---------- scene six : testimonials ---------- */

#testimonials h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

#testimonials h2 em { font-style: italic; font-weight: 350; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.testimonial {
  border-top: 1px solid rgba(168, 112, 58, 0.45);
  padding-top: 1.5rem;
}

.testimonial-mark {
  display: block;
  font-family: var(--serif);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 0.5rem;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ivory);
  margin-bottom: 1.75rem;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.testimonial-rule {
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--brass);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
