:root {
  --ink: #573c43;
  --ink-soft: #80636a;
  --berry: #b83e66;
  --rose: #d8708e;
  --blush: #f3c5cf;
  --powder: #f9e4e7;
  --ivory: #fffaf4;
  --cream: #fbf2e7;
  --lavender: #d9c8de;
  --line: rgba(112, 65, 78, 0.18);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Parisienne", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  color: white;
  background: var(--berry);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--berry);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - 64px));
  height: 92px;
  margin-inline: auto;
  border-bottom: 1px solid rgba(102, 56, 70, 0.14);
}

.monogram {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(122, 65, 83, 0.32);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.05rem;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
}

nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:not(.nav-date)::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--berry);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-date {
  padding: 9px 14px;
  border: 1px solid rgba(122, 65, 83, 0.28);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background: #fbf1e9;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 250, 244, 0.05), transparent 55%), url("assets/camilla-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  animation: settle 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(680px, calc(100% - 48px));
  margin: 90px auto 70px clamp(6vw, 9vw, 160px);
  text-align: center;
}

.eyebrow,
.section-kicker,
.event-type {
  margin: 0 0 18px;
  color: var(--berry);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.invited {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 8.2vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.76;
}

h1 span,
h1 strong {
  display: block;
  font-weight: 400;
}

h1 strong {
  position: relative;
  z-index: 1;
  color: var(--berry);
  font-family: var(--script);
  font-size: 0.7em;
  letter-spacing: -0.03em;
  transform: rotate(-3deg);
}

.title-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px auto 10px;
}

.title-rule span {
  width: 52px;
  height: 1px;
  background: var(--rose);
}

.title-rule i {
  color: var(--rose);
  font-style: normal;
}

.occasion {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.occasion i {
  color: var(--berry);
  font-family: var(--script);
  font-size: 1.4em;
  text-transform: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--berry);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--berry);
  box-shadow: 0 10px 25px rgba(148, 48, 80, 0.2);
}

.button-quiet {
  color: var(--berry);
  background: rgba(255, 250, 244, 0.68);
  backdrop-filter: blur(8px);
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
  animation: bob 1.8s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--rose);
  border: 1px solid rgba(184, 62, 102, 0.22);
  border-radius: 50%;
}

.orbit-one {
  top: 24%;
  left: 48%;
}

.orbit-two {
  bottom: 19%;
  left: 8%;
}

.intro {
  position: relative;
  padding: clamp(100px, 13vw, 180px) 24px;
  overflow: hidden;
  text-align: center;
}

.intro h2,
.gallery h2,
.countdown-section h2,
.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.97;
}

h2 em {
  color: var(--berry);
  font-family: var(--script);
  font-weight: 400;
}

.intro-note {
  max-width: 620px;
  margin: 38px auto 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
}

.floating-flower {
  position: absolute;
  color: var(--blush);
  font-size: clamp(2rem, 4vw, 4rem);
  opacity: 0.6;
}

.flower-one {
  top: 18%;
  left: 8%;
  transform: rotate(-15deg);
}

.flower-two {
  right: 10%;
  bottom: 14%;
  color: var(--lavender);
  transform: rotate(18deg);
}

.date-story {
  padding: 55px max(24px, 6vw) 130px;
  background: var(--cream);
}

.giant-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 50px);
  max-width: 1100px;
  margin: 0 auto 90px;
}

.giant-date > span {
  font-family: var(--serif);
  font-size: clamp(8rem, 19vw, 18rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.giant-date p {
  margin: 0;
  padding-left: clamp(18px, 3vw, 45px);
  border-left: 1px solid var(--rose);
}

.giant-date b,
.giant-date small {
  display: block;
}

.giant-date b {
  color: var(--berry);
  font-family: var(--script);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.8;
}

.giant-date small {
  margin-top: 22px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.event-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: center;
  max-width: 1160px;
  margin-inline: auto;
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 28px;
  min-height: 400px;
  align-content: start;
  padding: 46px clamp(25px, 4vw, 56px);
}

.event-church {
  background: var(--berry);
  color: white;
  clip-path: polygon(0 4%, 92% 0, 100% 92%, 7% 100%);
}

.event-reception {
  color: var(--ink);
  border: 1px solid rgba(112, 65, 78, 0.26);
  background: rgba(255, 250, 244, 0.78);
  transform: rotate(1.8deg);
}

.event-number {
  position: absolute;
  top: 18px;
  right: 28px;
  font-family: var(--serif);
  font-size: 3.5rem;
  opacity: 0.16;
}

.event-icon svg {
  width: 62px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.event-copy {
  padding-top: 6px;
}

.event-church .event-type {
  color: #ffd3df;
}

.event h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.event-time {
  margin: 22px 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event address,
.reception-note {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-style: normal;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.reception-note {
  max-width: 270px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-style: italic;
}

.journey-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  color: var(--berry);
}

.journey-line span {
  width: 1px;
  height: 74px;
  background: var(--rose);
}

.journey-line i {
  font-style: normal;
}

.gallery {
  padding: clamp(100px, 12vw, 170px) max(24px, 5vw);
  overflow: hidden;
  background: #fbf7f0;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  max-width: 1250px;
  margin: 0 auto 80px;
}

.gallery-heading .section-kicker {
  grid-column: 1 / -1;
}

.gallery-heading h2 {
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.gallery-heading > p:last-child {
  max-width: 340px;
  justify-self: end;
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.featured-moment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  max-width: 1160px;
  margin: 0 auto clamp(130px, 16vw, 210px);
}

.featured-moment::before {
  position: absolute;
  top: 4%;
  right: -12%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(243, 197, 207, 0.35);
  content: "";
  filter: blur(2px);
}

.featured-copy {
  position: relative;
  z-index: 2;
}

.featured-date {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  color: var(--berry);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured-date span {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

.featured-copy h3 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.featured-copy h3 em {
  color: var(--berry);
  font-family: var(--script);
  font-weight: 400;
}

.featured-copy > p:last-child {
  max-width: 410px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.featured-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  margin: 0;
  padding: 14px 14px 52px;
  background: white;
  box-shadow: 0 35px 75px rgba(93, 60, 65, 0.18), 0 3px 10px rgba(93, 60, 65, 0.08);
  transform: rotate(1.4deg);
}

.featured-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--powder);
}

.featured-photo,
.monthly-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}

.featured-photo {
  object-position: var(--featured-photo-position, center);
}

[data-photo-frame].has-photo .featured-photo,
[data-photo-frame].has-photo .monthly-photo {
  opacity: 1;
}

.featured-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 24px;
  overflow: hidden;
  color: #9b6876;
  background:
    radial-gradient(circle at 75% 18%, rgba(255,255,255,.9) 0 3%, transparent 3.5%),
    radial-gradient(circle at 18% 77%, rgba(255,255,255,.68) 0 5%, transparent 5.5%),
    linear-gradient(155deg, #f8d7de, #fff3e8 52%, #dfcfe5);
  text-align: center;
  text-transform: uppercase;
  transition: opacity 300ms ease;
}

.featured-placeholder::before,
.featured-placeholder::after {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 62, 102, 0.15);
  border-radius: 50%;
  content: "";
}

.featured-placeholder::before {
  top: -20%;
  right: -14%;
}

.featured-placeholder::after {
  bottom: -30%;
  left: -15%;
}

.featured-placeholder span,
.featured-placeholder strong,
.featured-placeholder small {
  display: block;
}

.featured-placeholder span {
  font-family: var(--script);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: none;
}

.featured-placeholder strong {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.featured-placeholder small {
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

[data-photo-frame].has-photo .featured-placeholder,
[data-photo-frame].has-photo .photo-placeholder {
  opacity: 0;
}

.featured-frame figcaption {
  position: absolute;
  right: 22px;
  bottom: 16px;
  left: 22px;
  color: var(--ink-soft);
  font-family: var(--script);
  font-size: 1.15rem;
  text-align: center;
}

.timeline-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  max-width: 780px;
  margin: 0 auto 80px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.timeline-heading::before,
.timeline-heading::after {
  width: min(16vw, 130px);
  height: 1px;
  background: var(--line);
  content: "";
}

.timeline-heading i {
  color: var(--berry);
  font-style: normal;
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(42px, 6vw, 86px) clamp(20px, 3vw, 42px);
  max-width: 1160px;
  margin-inline: auto;
}

.photo-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px 10px 46px;
  background: white;
  box-shadow: 0 22px 50px rgba(93, 60, 65, 0.13), 0 2px 6px rgba(93, 60, 65, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.photo-frame:nth-child(3n + 1) {
  margin-top: clamp(36px, 5vw, 70px);
  rotate: -1.2deg;
}

.photo-frame:nth-child(3n + 2) {
  rotate: 0.8deg;
}

.photo-frame:nth-child(3n) {
  margin-top: clamp(70px, 8vw, 115px);
  rotate: -0.5deg;
}

.photo-frame:hover {
  z-index: 2;
  box-shadow: 0 30px 60px rgba(93, 60, 65, 0.2);
  rotate: 0deg;
  transform: translateY(-7px);
}

.photo-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--powder);
}

.photo-frame:nth-child(4n + 2) .photo-stage,
.photo-frame:nth-child(4n + 3) .photo-stage {
  aspect-ratio: 4 / 5.55;
}

.photo-frame:nth-child(6n) .photo-stage {
  aspect-ratio: 1 / 1;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  overflow: hidden;
  color: #9b6b78;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.9) 0 5%, transparent 5.5%),
    linear-gradient(145deg, #f7d5dc, #f8ebdf 48%, #ddcde3);
  text-align: center;
  transition: opacity 300ms ease;
}

.photo-placeholder::before,
.photo-placeholder::after {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(184, 62, 102, 0.15);
  border-radius: 50%;
  content: "";
}

.photo-placeholder::before {
  top: -50px;
  right: -30px;
}

.photo-placeholder::after {
  bottom: -70px;
  left: -20px;
}

.photo-placeholder span {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1;
  opacity: 0.62;
}

.photo-placeholder small {
  margin-top: 8px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.photo-frame figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-hint {
  margin: clamp(100px, 12vw, 160px) auto 0;
  color: var(--ink-soft);
  font-family: var(--script);
  font-size: 1.6rem;
  text-align: center;
}

.countdown-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(500px, 1.15fr);
  min-height: 670px;
  overflow: hidden;
  background: var(--powder);
}

.countdown-teddy {
  min-height: 600px;
  background-image: url("assets/camilla-hero.png");
  background-position: 83% center;
  background-size: auto 105%;
  clip-path: ellipse(76% 72% at 20% 50%);
}

.countdown-content {
  align-self: center;
  padding: 80px clamp(28px, 7vw, 110px) 80px clamp(30px, 5vw, 80px);
}

.countdown-section h2 {
  max-width: 650px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  max-width: 620px;
  margin: 48px 0 36px;
  border-block: 1px solid rgba(112, 65, 78, 0.18);
}

.countdown div {
  position: relative;
  padding: 23px 10px 20px;
  text-align: center;
}

.countdown div:not(:last-child)::after {
  position: absolute;
  top: 30%;
  right: 0;
  width: 1px;
  height: 40%;
  background: rgba(112, 65, 78, 0.18);
  content: "";
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
}

.countdown span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.closing {
  position: relative;
  padding: clamp(110px, 14vw, 190px) 24px;
  overflow: hidden;
  background: var(--ivory);
  text-align: center;
}

.closing h2 {
  margin-bottom: 28px;
}

.closing > p:not(.section-kicker) {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.closing .button {
  margin-top: 24px;
}

.closing-clouds {
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 520px;
  height: 420px;
  background-image: url("assets/camilla-hero.png");
  background-position: right bottom;
  background-size: 920px auto;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle, black 10%, transparent 72%);
  mask-image: radial-gradient(circle, black 10%, transparent 72%);
  pointer-events: none;
}

footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 25px;
  color: rgba(255,255,255,.85);
  background: #6c3f4c;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.music-control {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 7px;
  color: var(--ink);
  border: 1px solid rgba(130, 79, 93, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 12px 30px rgba(93, 60, 65, 0.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.music-control:hover,
.music-control:focus-visible {
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 16px 38px rgba(93, 60, 65, 0.22);
  transform: translateY(-2px);
}

.music-control:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}

.music-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose), var(--berry));
  box-shadow: 0 5px 14px rgba(184, 62, 102, 0.25);
}

.music-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.music-label {
  min-width: 76px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.music-wave {
  display: flex;
  height: 16px;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.music-wave i {
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: var(--berry);
}

.music-control.is-playing .music-icon {
  animation: music-glow 2.2s ease-in-out infinite;
}

.music-control.is-playing .music-wave {
  opacity: 1;
}

.music-control.is-playing .music-wave i {
  animation: music-wave 0.9s ease-in-out infinite alternate;
}

.music-control.is-playing .music-wave i:nth-child(2) {
  animation-delay: 180ms;
}

.music-control.is-playing .music-wave i:nth-child(3) {
  animation-delay: 360ms;
}

.music-control.is-unavailable {
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes settle {
  from { opacity: 0; transform: scale(1.07); }
  to { opacity: 1; transform: scale(1.01); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes music-glow {
  0%, 100% { box-shadow: 0 5px 14px rgba(184, 62, 102, 0.25); }
  50% { box-shadow: 0 5px 22px rgba(184, 62, 102, 0.5); }
}

@keyframes music-wave {
  from { height: 5px; }
  to { height: 15px; }
}

@media (max-width: 1000px) {
  .hero-copy {
    width: 55%;
    margin-left: 4vw;
  }

  .event-flow {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .journey-line {
    height: 100px;
  }

  .journey-line span {
    height: 24px;
  }

  .event-reception {
    transform: rotate(0.7deg);
  }

  .featured-moment {
    grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
    gap: 50px;
  }

  .photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-frame:nth-child(3n + 1),
  .photo-frame:nth-child(3n) {
    margin-top: 0;
  }

  .photo-frame:nth-child(even) {
    margin-top: clamp(44px, 7vw, 76px);
  }

  .countdown-section {
    grid-template-columns: 0.7fr 1.3fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 34px);
    height: 74px;
  }

  nav a:not(.nav-date) {
    display: none;
  }

  .hero {
    min-height: 790px;
  }

  .hero-art {
    background-position: 72% center;
  }

  .hero-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,250,244,.18) 30%, rgba(255,250,244,.88) 67%, #fffaf4 100%);
    content: "";
  }

  .hero-copy {
    align-self: end;
    width: calc(100% - 34px);
    margin: 260px auto 98px;
    padding: 22px 10px;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  .invited {
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 5.4rem);
  }

  .occasion {
    font-size: 1.08rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions .button {
    min-height: 46px;
    padding-inline: 16px;
    font-size: 0.64rem;
  }

  .scroll-cue {
    display: none;
  }

  .orbit-one {
    top: 14%;
    left: 11%;
  }

  .intro {
    padding-block: 100px;
  }

  .date-story {
    padding: 60px 16px 100px;
  }

  .giant-date {
    margin-bottom: 70px;
  }

  .giant-date > span {
    font-size: 8rem;
  }

  .giant-date b {
    font-size: 3.2rem;
  }

  .giant-date small {
    margin-top: 14px;
    font-size: 0.56rem;
  }

  .event {
    grid-template-columns: 52px 1fr;
    gap: 16px;
    min-height: 380px;
    padding: 44px 24px;
  }

  .event-icon svg {
    width: 46px;
  }

  .event-church {
    clip-path: polygon(0 2%, 95% 0, 100% 96%, 4% 100%);
  }

  .gallery {
    padding-inline: 16px;
  }

  .gallery-heading {
    display: block;
    margin-bottom: 60px;
  }

  .gallery-heading > p:last-child {
    margin: 24px 0 0;
  }

  .featured-moment {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 130px;
  }

  .featured-copy {
    max-width: 520px;
  }

  .featured-frame {
    width: min(88%, 520px);
    justify-self: end;
  }

  .timeline-heading {
    gap: 12px;
    margin-bottom: 55px;
  }

  .photo-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 46px 14px;
  }

  .photo-frame {
    padding: 7px 7px 40px;
  }

  .photo-frame:nth-child(even) {
    margin-top: 60px;
  }

  .countdown-section {
    display: block;
    min-height: 0;
    padding-top: 290px;
  }

  .countdown-teddy {
    position: absolute;
    inset: 0 0 auto;
    min-height: 330px;
    background-position: 80% 57%;
    background-size: auto 170%;
    clip-path: ellipse(74% 86% at 50% 5%);
  }

  .countdown-content {
    position: relative;
    padding: 65px 18px 90px;
    text-align: center;
  }

  .countdown {
    margin-inline: auto;
  }

  .countdown div {
    padding-inline: 4px;
  }

  .countdown strong {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  footer {
    gap: 10px;
    font-size: 0.55rem;
  }

  .music-control {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
  }

  .featured-frame {
    width: 94%;
  }

  .timeline-heading span {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .photo-wall {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .photo-frame {
    width: 92%;
    max-width: 390px;
    margin: 0 !important;
  }

  .photo-frame:nth-child(even) {
    justify-self: end;
  }

  .photo-frame:nth-child(odd) {
    justify-self: start;
  }

  .photo-frame:nth-child(4n + 2) .photo-stage,
  .photo-frame:nth-child(4n + 3) .photo-stage {
    aspect-ratio: 4 / 5;
  }

  .music-label {
    min-width: 70px;
    font-size: 0.59rem;
  }
}

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