:root {
  --bg-dark: #232220;
  --bg-dark-soft: #2d2c29;
  --bg-paper: #f3efe9;
  --bg-light: #fbf8f3;
  --card-light: rgba(255, 255, 255, 0.78);
  --card-dark: rgba(255, 255, 255, 0.05);
  --text-dark: #161514;
  --text-muted: rgba(22, 21, 20, 0.68);
  --text-light: #f8f4ef;
  --text-light-soft: rgba(248, 244, 239, 0.78);
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(22, 21, 20, 0.1);
  --accent: #d8c9d0;
  --accent-soft: #efe6e9;
  --shadow-soft: 0 22px 55px rgba(28, 26, 24, 0.08);
  --shadow-strong: 0 30px 90px rgba(10, 10, 10, 0.22);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(180deg, #232220 0%, #2a2826 16%, #f3efe9 41%, #fbf8f3 100%);
  color: var(--text-dark);
  overflow-x: hidden;
}

body.is-locked,
body.is-modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.page-shell {
  position: relative;
}

.section {
  position: relative;
  padding: 82px 0;
}

.section--dark {
  background: transparent;
  color: var(--text-light);
}

.section--paper {
  background: transparent;
}

.section--light {
  background: transparent;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section-heading--light h2 {
  color: var(--text-light);
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  color: rgba(248, 244, 239, 0.72);
}

.eyebrow--dark {
  color: rgba(22, 21, 20, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

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

.reveal--zoom {
  transform: translateY(18px) scale(0.9);
}

.reveal--fade {
  transform: scale(0.92);
}

.reveal--line {
  opacity: 0;
  transform: scaleY(0.28);
  transform-origin: top center;
}

.reveal--line.is-visible {
  transform: scaleY(1);
}

[data-parallax] {
  --px: 0px;
  --py: 0px;
  --sy: 0px;
  will-change: transform;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 190px;
  min-height: 58px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text-dark);
  color: var(--text-light);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(22, 21, 20, 0.15);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.button--outline {
  background: transparent;
  color: var(--text-dark);
  border-color: rgba(22, 21, 20, 0.18);
}

.unlock-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(23, 22, 20, 0.66), rgba(23, 22, 20, 0.9)),
    url("./assets/couple-collage-20260608.jpg?v=3")
      center center / cover no-repeat;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.unlock-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.unlock-screen__frame {
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(248, 244, 239, 0.16);
  border-radius: 34px;
}

.unlock-screen__glow {
  position: absolute;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
}

.unlock-screen__glow--left {
  left: 10%;
  top: 18%;
  background: rgba(233, 220, 225, 0.8);
}

.unlock-screen__glow--right {
  right: 8%;
  bottom: 14%;
  background: rgba(199, 212, 224, 0.7);
}

.unlock-screen__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 30px;
  min-height: 320px;
  align-content: center;
  transition: transform 0.65s ease, opacity 0.65s ease;
}

.unlock-screen.is-unlocking .unlock-screen__content {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.unlock-screen__eyebrow {
  margin: 0;
  color: rgba(248, 244, 239, 0.66);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
}

.unlock-screen__art {
  display: grid;
  place-items: center;
  width: min(380px, calc(100vw - 88px));
  min-height: 440px;
  padding: 12px;
  border: 1px solid rgba(248, 244, 239, 0.22);
  background: transparent;
  overflow: hidden;
}

.art-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.unlock-screen__art:empty::after,
.hero__art:empty::after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.045), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.unlock-screen__button {
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}

.unlock-screen__button-circle {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(248, 244, 239, 0.72);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.unlock-screen__button:hover .unlock-screen__button-circle {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
}

.unlock-screen__button-circle svg {
  width: 38px;
  height: 38px;
  stroke: rgba(248, 244, 239, 0.92);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unlock-screen__label {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: fit-content;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(248, 244, 239, 0.24);
  border-radius: 999px;
  background: rgba(22, 21, 20, 0.78);
  color: var(--text-light);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.sound-toggle:hover {
  transform: translateY(-2px);
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle__mute-line {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sound-toggle.is-muted {
  background: rgba(22, 21, 20, 0.58);
  border-color: rgba(248, 244, 239, 0.16);
}

.sound-toggle.is-muted .sound-toggle__wave {
  opacity: 0.18;
}

.sound-toggle.is-muted .sound-toggle__mute-line {
  opacity: 1;
}

.sound-toggle__text {
  font-size: 0.92rem;
  font-weight: 600;
}

.sound-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(100%, 720px);
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(248, 244, 239, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.sound-note__copy {
  display: grid;
  gap: 6px;
}

.sound-note__title,
.sound-note__text {
  margin: 0;
}

.sound-note__title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-light);
}

.sound-note__text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(248, 244, 239, 0.72);
}

.hero {
  min-height: 100svh;
  overflow: hidden;
}

.hero__background,
.hero__texture,
.hero__veil,
.hero__dust {
  position: absolute;
  inset: 0;
}

.hero__background {
  background:
    linear-gradient(180deg, rgba(35, 34, 32, 0.2), rgba(35, 34, 32, 0.6)),
    url("./assets/couple-collage-20260608.jpg?v=3")
      center center / cover no-repeat;
  transform: translate3d(var(--px), calc(var(--py) + var(--sy)), 0) scale(1.08);
}

.hero__texture {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.1), transparent 22%),
    radial-gradient(circle at 84% 26%, rgba(255, 255, 255, 0.07), transparent 16%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(35, 34, 32, 0.78), rgba(35, 34, 32, 0.45), rgba(35, 34, 32, 0.76)),
    linear-gradient(180deg, rgba(35, 34, 32, 0.08), rgba(35, 34, 32, 0.78));
}

.hero__dust {
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  transform: translate3d(var(--px), calc(var(--py) + var(--sy)), 0);
}

.hero__dust--one {
  inset: 12% auto auto 8%;
  background: rgba(233, 223, 230, 0.68);
}

.hero__dust--two {
  inset: auto 10% 18% auto;
  background: rgba(203, 213, 223, 0.55);
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  justify-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

body.is-locked .hero__copy,
body.is-locked .hero__art {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
}

.hero__copy,
.hero__art {
  transition: opacity 1s ease, transform 1s ease;
}

.hero__copy {
  max-width: 660px;
  align-self: center;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 8vw, 8.7rem);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.hero__title span {
  color: rgba(248, 244, 239, 0.66);
}

.hero__date {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-light-soft);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 720px);
  margin-top: 40px;
}

.countdown__item {
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: 18px 18px 24px;
  justify-items: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(248, 244, 239, 0.16);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  align-content: start;
}

.countdown__value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.88;
  color: var(--text-light);
  transform: translateY(-4px);
}

.countdown__label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 244, 239, 0.58);
}

.hero__art {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  min-height: 340px;
  margin: 22px auto 0;
  padding: 14px;
  border: 1px solid rgba(248, 244, 239, 0.18);
  background: transparent;
  overflow: hidden;
}

.scroll-hint {
  display: inline-flex;
  margin-top: 28px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: rgba(248, 244, 239, 0.72);
}

#invitation {
  position: relative;
  z-index: 3;
  margin-top: clamp(-32px, -4vw, -56px);
  padding-top: 0;
}

.intro-card,
.calendar-card,
.venue-card,
.dresscode-card,
.rsvp-card,
.contacts-card,
.venue-preview {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-light);
  background: var(--card-light);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.intro-card {
  padding: 42px 44px;
  background:
    radial-gradient(circle at top right, rgba(216, 201, 208, 0.32), transparent 34%),
    rgba(255, 255, 255, 0.68);
  text-align: center;
  overflow: hidden;
}

.section__lead,
.section__text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.section__lead {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 0.98;
}

.section__text {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--text-muted);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 22px;
  align-items: stretch;
}

.calendar-copy__text {
  max-width: 500px;
  margin: 0;
  line-height: 1.7;
  color: var(--text-muted);
}

.calendar-card {
  padding: 24px 24px 26px;
}

.calendar-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-grid--weekdays {
  margin-bottom: 12px;
}

.calendar-grid--weekdays span {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: rgba(22, 21, 20, 0.48);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.calendar-day {
  display: grid;
  place-items: center;
  min-height: 54px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: rgba(248, 244, 239, 0.78);
  color: var(--text-dark);
}

.calendar-day--muted {
  color: rgba(22, 21, 20, 0.28);
}

.calendar-day--accent {
  background: #c91f1f;
  color: #fff8f7;
  box-shadow: 0 12px 24px rgba(201, 31, 31, 0.22);
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 8px 0 0;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 56px;
  bottom: 38px;
  width: 2px;
  background: rgba(22, 21, 20, 0.9);
  transform-origin: top center;
}

.timeline-event {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 170px 1fr;
  align-items: center;
  min-height: 156px;
}

.timeline-event__side {
  max-width: 360px;
}

.timeline-event__side h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-event__side p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-muted);
}

.timeline-event__side--left {
  justify-self: end;
  text-align: right;
  padding-right: 42px;
}

.timeline-event__side--right {
  justify-self: start;
  text-align: left;
  padding-left: 42px;
}

.timeline-event__center {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
}

.timeline-event__marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111111;
  box-shadow: 0 0 0 8px rgba(17, 17, 17, 0.08);
}

.timeline-event__time {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.9;
  transform: translateY(-50%);
  white-space: nowrap;
}

.timeline-event--left .timeline-event__time {
  transform: translate(30px, -50%);
}

.timeline-event--right .timeline-event__time {
  transform: translate(calc(-100% - 30px), -50%);
}

.venue-card,
.dresscode-card,
.rsvp-card {
  padding: 54px 50px;
}

.venue-card__title,
.map-modal__address {
  margin: 0;
}

.venue-card__subtitle {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  color: rgba(22, 21, 20, 0.74);
}

.venue-card__title {
  font-size: 0.98rem;
  color: rgba(22, 21, 20, 0.58);
}

.map-modal__address {
  margin-top: 10px;
  color: var(--text-muted);
}

.venue-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 540px);
  gap: 32px;
  align-items: stretch;
}

.venue-card__copy {
  display: grid;
  align-content: center;
}

.venue-card .button {
  margin-top: 28px;
  width: fit-content;
}

.venue-preview {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(22, 21, 20, 0.08);
  border-radius: 26px;
  background: #ebe6df;
}

.venue-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.palette {
  display: grid;
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
}

.palette__row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.palette__row--bottom {
  padding-left: 76px;
}

.palette__color {
  flex: 0 0 auto;
  width: 168px;
  height: 42px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.06)),
    var(--swatch);
  border: 1px solid rgba(22, 21, 20, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 14px 26px rgba(22, 21, 20, 0.08);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.choice-stack {
  display: grid;
  gap: 10px;
}

.drink-inline-options {
  display: grid;
  gap: 10px;
  margin: -2px 0 2px;
  padding: 0 8px 0 14px;
}

.drink-inline-options[hidden] {
  display: none;
}

.drink-inline-options__label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.drink-inline-options__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attendance-inline-options__grid {
  display: grid;
  gap: 14px;
}

.attendance-inline-options__field .field__label {
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 500;
}

.attendance-inline-options__field .field__control {
  min-height: 52px;
}

.drink-inline-option {
  position: relative;
  display: inline-flex;
}

.drink-inline-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drink-inline-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(22, 21, 20, 0.12);
  background: rgba(255, 255, 255, 0.82);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.drink-inline-option input:checked + span {
  border-color: rgba(22, 21, 20, 0.28);
  background: var(--accent-soft);
  box-shadow: 0 10px 22px rgba(22, 21, 20, 0.08);
  transform: translateY(-1px);
}

.rsvp-form {
  display: grid;
  gap: 24px;
}

.field,
.field-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label,
.field-group__legend {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
}

.field__control {
  width: 100%;
  min-height: 60px;
  padding: 16px 18px;
  border: 1px solid rgba(22, 21, 20, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-dark);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.field__control:focus {
  outline: none;
  border-color: rgba(22, 21, 20, 0.34);
  box-shadow: 0 0 0 4px rgba(216, 201, 208, 0.34);
  transform: translateY(-1px);
}

.field__control--textarea {
  min-height: 150px;
  resize: vertical;
}

.option-grid,
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.option-grid .attendance-inline-options {
  margin: -2px 0 6px;
}

.choice-card {
  display: block;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card__box {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(22, 21, 20, 0.12);
  background: rgba(255, 255, 255, 0.78);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.choice-card__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(22, 21, 20, 0.28);
  position: relative;
}

.choice-card__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--text-dark);
  transform: scale(0);
  transition: transform 0.22s ease;
}

.choice-card__text {
  line-height: 1.55;
}

.choice-card input:checked + .choice-card__box {
  border-color: rgba(22, 21, 20, 0.28);
  background: var(--accent-soft);
  box-shadow: 0 16px 30px rgba(22, 21, 20, 0.08);
  transform: translateY(-2px);
}

.choice-card input:checked + .choice-card__box .choice-card__mark::after {
  transform: scale(1);
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(22, 21, 20, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--text-dark);
  flex: 0 0 auto;
}

.form-message {
  min-height: 24px;
  margin: -6px 0 0;
  color: var(--text-muted);
}

.form-message.is-error {
  color: #8b3030;
}

.form-message.is-success {
  color: #285c2f;
}

.contacts-section {
  padding-top: 72px;
}

.contacts-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.contacts-card .section-heading h2 {
  color: var(--text-dark);
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact {
  display: grid;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(22, 21, 20, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.contact__role {
  color: rgba(22, 21, 20, 0.48);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.contact__value {
  font-size: 1.15rem;
  color: var(--text-dark);
  text-decoration: none;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.contact__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 21, 20, 0.08);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.contact__action:hover {
  transform: translateY(-1px);
  background: rgba(22, 21, 20, 0.12);
}

  .contact__action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.map-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 15, 14, 0.72);
  backdrop-filter: blur(10px);
}

.map-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  padding: 28px;
  border-radius: 32px;
  background: rgba(251, 248, 243, 0.98);
  box-shadow: 0 32px 80px rgba(10, 10, 10, 0.24);
}

.map-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 21, 20, 0.08);
  cursor: pointer;
}

.map-modal__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--text-dark);
}

.map-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.map-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-modal__header {
  margin-bottom: 22px;
  padding-right: 48px;
}

.map-modal__header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 0.96;
}

.map-modal__embed {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(22, 21, 20, 0.1);
  background: #e9e5df;
}

.map-modal__embed iframe {
  width: 100%;
  height: min(70vh, 560px);
  border: 0;
}

.map-modal .button {
  margin-top: 22px;
}

@media (max-width: 1080px) {
  .hero__inner,
  .calendar-layout,
  .venue-card__grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    gap: 36px;
    justify-items: center;
    text-align: center;
  }

  .hero__copy {
    max-width: 760px;
  }
}

@media (max-width: 860px) {
  .unlock-screen__frame {
    inset: 18px;
    border-radius: 26px;
  }

  .section {
    padding: 68px 0;
  }

  .countdown,
  .contacts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .timeline {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 0;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 207px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: #111111;
  }

  .timeline__line {
    display: none !important;
  }

  .timeline-event {
    grid-template-columns: 160px 48px minmax(0, 1fr);
    column-gap: 24px;
    align-items: center;
    min-height: 0;
    padding: 18px 0;
  }

  .timeline-event__center {
    display: contents;
  }

  .timeline-event__marker {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
  }

  .timeline-event__time {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: auto;
    left: auto;
    justify-self: end;
    align-self: center;
    padding-right: 12px;
    transform: none;
    text-align: right;
  }

  .timeline-event--left .timeline-event__time,
  .timeline-event--right .timeline-event__time {
    transform: none;
  }

  .timeline-event__side,
  .timeline-event__side--left,
  .timeline-event__side--right {
    grid-column: 3;
    grid-row: 1;
    justify-self: stretch;
    align-self: center;
    max-width: none;
    padding: 0;
    text-align: left;
  }

  .timeline-event__side:empty {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .unlock-screen__frame {
    inset: 12px;
    border-radius: 22px;
  }

  .section {
    padding: 58px 0;
  }

  .intro-card,
  .calendar-card,
  .venue-card,
  .dresscode-card,
  .rsvp-card,
  .map-modal__dialog {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .unlock-screen__button-circle {
    width: 76px;
    height: 76px;
  }

  .unlock-screen__art {
    width: min(276px, calc(100vw - 52px));
    min-height: 340px;
    padding: 10px;
  }

  .hero__inner {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 16px;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
  }

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

  .countdown__item {
    min-height: 94px;
    gap: 6px;
    padding: 12px 8px;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .countdown__value {
    font-size: clamp(2.1rem, 8.5vw, 3rem);
    transform: none;
  }

  .countdown__label {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
  }

  .hero__art {
    width: min(100%, 250px);
    min-height: 250px;
    margin-top: 18px;
    padding: 10px;
  }

  .timeline {
    position: relative;
    max-width: 390px;
    margin: 0 auto;
    padding: 10px 0;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 140px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: #111111;
  }

  .timeline__line {
    display: none !important;
  }

  .timeline-event {
    grid-template-columns: 104px 38px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    min-height: 0;
    padding: 16px 0;
  }

  .timeline-event__center {
    display: contents;
  }

  .timeline-event__marker {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    justify-self: center;
    align-self: center;
    transform: none;
    z-index: 1;
  }

  .timeline-event__time {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    margin: 0;
    justify-self: end;
    align-self: center;
    text-align: right;
    padding-right: 10px;
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 0.9;
    transform: none;
    white-space: nowrap;
    z-index: 1;
  }

  .timeline-event--left .timeline-event__time,
  .timeline-event--right .timeline-event__time {
    transform: none;
  }

  .timeline-event__side {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    min-height: 0;
    display: grid;
    gap: 8px;
    padding: 0;
  }

  .timeline-event__side h3 {
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .timeline-event__side p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .timeline-event__side--left,
  .timeline-event__side--right {
    grid-column: 3;
    justify-self: stretch;
    text-align: left;
    padding: 0;
    max-width: none;
  }

  .timeline-event__side:empty {
    display: none;
  }

  .palette {
    gap: 10px;
    max-width: 100%;
  }

  .palette__row {
    gap: 8px;
    justify-content: center;
  }

  .palette__row--bottom {
    padding-left: 14px;
  }

  .palette__color {
    width: 56px;
    height: 30px;
  }

  .dresscode-card .section-heading {
    margin-bottom: 18px;
  }

  .dresscode-card .section-heading h2 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
    line-height: 0.96;
  }

  .button {
    width: 100%;
  }

  .calendar-day {
    min-height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }

  .venue-preview {
    min-height: 280px;
  }

  .venue-preview iframe {
    min-height: 280px;
  }

  .map-modal {
    padding: 12px;
  }

  .sound-note {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 16px 18px;
    text-align: left;
  }

  .sound-note__title {
    font-size: 0.9rem;
  }

  .sound-note__text {
    font-size: 0.78rem;
  }

  .sound-toggle {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px;
  }

  .sound-toggle__text {
    font-size: 0.84rem;
  }

  .map-modal__close {
    top: 14px;
    right: 14px;
  }
}
