:root {
  --white: #ffffff;
  --ivory: #fffdf8;
  --beige: #f5eddf;
  --soft-gold: #efe3c7;
  --gold: #c7a45b;
  --gold-dark: #9a7633;
  --ink: #27231d;
  --muted: #746b5c;
  --line: rgba(199, 164, 91, .24);
  --line-strong: rgba(199, 164, 91, .42);
  --shadow: 0 24px 70px rgba(154, 118, 51, .1);
}

html {
  background: var(--ivory);
  scroll-behavior: smooth;
  width: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  background: var(--ivory);
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

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

[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

#rsvp,
#details,
#timeline,
#locations {
  scroll-margin-top: 24px;
}

section:not(.hero) {
  padding: 110px 20px;
  background: var(--ivory);
}

section:not(.hero) + section:not(.hero) {
  border-top: 1px solid var(--line);
}

.container {
  width: min(100%, 1080px);
  max-width: 100%;
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 72px 20px;
  background:
    linear-gradient(180deg, rgba(39, 35, 29, .38), rgba(39, 35, 29, .26)),
    linear-gradient(90deg, rgba(39, 35, 29, .5), rgba(39, 35, 29, .08) 48%, rgba(39, 35, 29, .34)),
    url('../../assets/images/1.jpg');
  background-size: cover;
  background-position: center;
  color: var(--ink);
  text-align: center;
}

.hero .badge,
.hero h1,
.hero p {
  color: var(--white);
  text-shadow:
    0 2px 12px rgba(0, 0, 0, .72),
    0 10px 36px rgba(0, 0, 0, .42);
}

.hero .badge {
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .78);
}

.hero-content {
  width: min(100%, 820px);
}

.badge,
.eyebrow,
.location-type,
.accommodation-type,
label,
.timeline-time {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(60px, 11vw, 126px);
  line-height: .9;
  overflow-wrap: anywhere;
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  overflow: hidden;
}

.hero-name,
.hero-name-separator {
  display: inline-block;
}

.hero-name-left {
  animation: heroNameFromLeft 1.05s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-name-right {
  animation: heroNameFromRight 1.05s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-name-separator {
  animation: heroNameSeparator .8s ease-out .28s both;
}

@keyframes heroNameFromLeft {
  from {
    opacity: 0;
    transform: translate3d(-46vw, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroNameFromRight {
  from {
    opacity: 0;
    transform: translate3d(46vw, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroNameSeparator {
  from {
    opacity: 0;
    transform: scale(.82);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

h2 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .96;
  text-align: center;
}

h3 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

h4 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .98;
  text-align: center;
}

.hero p,
.text,
.detail-editorial-content p,
.timeline-content p,
.location-content p,
.gift-side p,
.accommodation-left p,
.confirmation-modal p,
footer p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.hero p {
  width: min(100%, 620px);
  margin: 26px auto 0;
  color: var(--soft-gold);
  font-size: clamp(17px, 2vw, 21px);
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.btn,
.btn-primary,
.location-btn,
.gift-btn,
.accommodation-btn,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .22s ease, color .22s ease, transform .22s ease;
  text-align: center;
  white-space: normal;
}

.btn:hover,
.btn-primary:hover,
.location-btn:hover,
.gift-btn:hover,
.accommodation-btn:hover,
.submit-btn:hover {
  background: transparent;
  color: var(--gold-dark);
  transform: translateY(-2px);
}

.details-heading,
.gifts-section,
.accommodation-section,
.locations-section,
.timeline-section {
  text-align: center;
}

.details-reveal {
  position: relative;
  padding-bottom: 28px;
  overflow: hidden;
}

.details-reveal::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(180px, 42vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%) scaleX(var(--details-line-scale, 0));
  transform-origin: center;
}

.details-reveal .eyebrow,
.details-reveal h2 {
  will-change: opacity, transform;
}

section.details,
section.timeline-section,
section.gifts-section,
section.rsvp {
  background: var(--white);
}

section.story-section,
section.locations-section,
section.accommodation-section,
footer {
  background: var(--beige);
}

.details-shell {
  max-width: 920px;
}

.details-editorial-list {
  display: grid;
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.detail-editorial-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  will-change: opacity, transform;
}

.detail-number {
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  line-height: 1;
  will-change: opacity, transform;
}

.detail-mini-icon,
.gift-icon {
  display: none;
}

.detail-editorial-content h3,
.timeline-content h3,
.location-content h3,
.gift-side h3,
.accommodation-left h3 {
  margin: 0 0 12px;
}

.detail-editorial-content p {
  margin: 0;
}

.detail-editorial-content h3,
.detail-editorial-content p {
  will-change: opacity, transform;
}

.story-grid,
.rsvp-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: center;
}

.story-grid > div:first-child,
.rsvp-grid > div:first-child {
  text-align: left;
}

.story-grid h2,
.rsvp-grid h2 {
  margin-left: 0;
  text-align: left;
}

.story-carousel {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ivory);
}

.story-carousel-track,
.story-carousel-slide,
.story-carousel-slide img {
  width: 100%;
  height: 100%;
}

.story-carousel-track {
  position: absolute;
  inset: 0;
}

.story-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .5s ease, transform .7s ease;
}

.story-carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.story-carousel-slide img {
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.story-carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(154, 118, 51, .14));
}

.story-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(39, 35, 29, .38);
  color: var(--white);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background .2s ease, border-color .2s ease;
}

.story-carousel-btn:hover {
  background: rgba(39, 35, 29, .62);
  border-color: var(--white);
}

.story-carousel-prev {
  left: 18px;
}

.story-carousel-next {
  right: 18px;
}

.story-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.story-carousel-dots button {
  width: 9px;
  height: 9px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.story-carousel-dots button.is-active {
  background: var(--white);
}

.wedding-timeline {
  max-width: 760px;
  margin: 58px auto 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-content {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.timeline-item {
  backface-visibility: hidden;
}

.timeline-time {
  margin-bottom: 10px;
}

.locations-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.location-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  min-width: 0;
  transform: translateY(0);
  transition:
    border-color .38s ease,
    box-shadow .38s ease,
    transform .38s ease;
  isolation: isolate;
}

.location-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(199, 164, 91, .58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    inset 0 0 34px rgba(199, 164, 91, .12);
  opacity: 0;
  transform: scale(.985);
  transition:
    opacity .42s ease,
    transform .62s ease;
  pointer-events: none;
}

.location-image {
  min-height: 260px;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition:
    filter .55s ease,
    transform .7s cubic-bezier(.22, 1, .36, 1);
}

.location-content {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.location-content p {
  margin-bottom: 24px;
}

.location-card:hover,
.location-card.is-location-active {
  border-color: var(--line-strong);
  box-shadow: 0 30px 86px rgba(154, 118, 51, .18);
  transform: translateY(-8px);
}

.location-card:hover::before,
.location-card.is-location-active::before {
  opacity: 1;
  transform: scale(1);
}

.location-card:hover .location-image,
.location-card.is-location-active .location-image {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.045);
}

.location-card:hover .location-btn,
.location-card.is-location-active .location-btn {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

.gift-banner {
  max-width: 900px;
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 34px;
}

.gift-side {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gift-vector {
  display: inline-block;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  background: var(--gold);
  mask: var(--gift-icon-url) center / contain no-repeat;
  -webkit-mask: var(--gift-icon-url) center / contain no-repeat;
}

.gift-vector-gift {
  --gift-icon-url: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 28h40v26H12z'/%3E%3Cpath d='M8 18h48v10H8zM32 18v36'/%3E%3Cpath d='M31 18s-12 0-12-8c0-4 4-6 8-4 5 2 4 12 4 12zM33 18s12 0 12-8c0-4-4-6-8-4-5 2-4 12-4 12z'/%3E%3C/g%3E%3C/svg%3E");
}

.gift-vector-envelope {
  --gift-icon-url: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 18h44v30H10z'/%3E%3Cpath d='m12 20 20 16 20-16M12 46l15-14M52 46 37 32'/%3E%3C/g%3E%3C/svg%3E");
}

.gift-vector-heart {
  --gift-icon-url: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 53S10 39 10 23c0-8 6-13 13-13 4 0 8 2 9 6 1-4 5-6 9-6 7 0 13 5 13 13 0 16-22 30-22 30z' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.gift-vector-card {
  --gift-icon-url: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='18' width='44' height='30' rx='4'/%3E%3Cpath d='M10 28h44M18 38h12M38 38h8'/%3E%3C/g%3E%3C/svg%3E");
}

.gift-vector-home {
  --gift-icon-url: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 31 32 12l22 19'/%3E%3Cpath d='M16 28v26h32V28M27 54V39h10v15'/%3E%3C/g%3E%3C/svg%3E");
}

.gift-vector-plane {
  --gift-icon-url: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M54 10 28 36'/%3E%3Cpath d='M54 10 38 54 28 36 10 26 54 10z'/%3E%3C/g%3E%3C/svg%3E");
}

.gift-vector-sparkle {
  --gift-icon-url: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 6l6 18 18 8-18 8-6 18-6-18-18-8 18-8 6-18zM50 6v12M44 12h12M14 46v10M9 51h10'/%3E%3C/g%3E%3C/svg%3E");
}

.gift-divider {
  width: 1px;
  background: var(--line);
}

.gift-side p {
  margin: 14px 0 0;
}

.gift-btn {
  margin-top: 24px;
}

.accommodation-intro {
  max-width: 680px;
  margin: 22px auto 0;
}

.accommodation-list {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.accommodation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.accommodation-left p {
  margin: 0;
}

.rsvp {
  background: var(--white);
}

.form-card {
  padding: 34px;
  background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}

.field {
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 9px;
}

input,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 14px 15px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(116, 107, 92, .62);
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 164, 91, .12);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.phone-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.phone-input span {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: var(--gold-dark);
  font-weight: 700;
}

.phone-input input {
  border: 0;
  box-shadow: none;
}

.submit-btn {
  width: 100%;
}

.family-title {
  margin: 30px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.checkbox-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
}

.checkbox-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
  position: relative;
}

.checkbox-item input[type="checkbox"]:checked {
  background: var(--gold);
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-item span {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.message-helper {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.success-message,
.qr-card {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--gold-dark);
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(39, 35, 29, .42);
  backdrop-filter: blur(8px);
}

.confirmation-modal {
  width: min(100%, 460px);
  padding: 34px;
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: center;
}

.confirmation-modal h3 {
  margin: 0 0 14px;
  font-size: 38px;
}

.confirmation-modal p {
  margin: 0 0 24px;
}

footer {
  padding: 100px 20px 74px;
  background: var(--beige);
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
}

footer .names {
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

footer p:last-child {
  margin-top: 14px;
  color: var(--ink);
}

.footer-branding {
  display: inline-block;
  margin-top: 28px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-branding:hover {
  color: var(--ink);
}

@media (max-width: 1100px) {
  section:not(.hero) {
    padding: 96px 28px;
  }

  .container {
    width: min(100%, 900px);
  }

  .hero {
    min-height: 92svh;
    padding: 70px 28px;
    background-position: center top;
  }

  .story-grid,
  .rsvp-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .story-grid > div:first-child,
  .rsvp-grid > div:first-child,
  .story-grid h2,
  .rsvp-grid h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .story-carousel {
    min-height: 460px;
    order: -1;
  }

  .form-card {
    width: min(100%, 680px);
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  section:not(.hero) {
    padding: 82px 22px;
  }

  .locations-grid,
  .gift-banner,
  .accommodation-row {
    grid-template-columns: 1fr;
  }

  .locations-grid,
  .gift-banner {
    gap: 22px;
  }

  .location-image {
    min-height: 320px;
  }

  .gift-divider {
    display: none;
  }

  .accommodation-right,
  .accommodation-btn {
    width: 100%;
  }

  .accommodation-row {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 58px 18px;
    background-position: center top;
  }

  .hero-content {
    width: min(100%, 360px);
  }

  h1 {
    font-size: clamp(42px, 13.5vw, 58px);
    line-height: .94;
  }

  .hero-names {
    flex-wrap: wrap;
    gap: 0 12px;
  }

  h2,
  h4 {
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1;
  }

  h3 {
    font-size: clamp(26px, 9vw, 34px);
  }

  .badge,
  .eyebrow,
  .location-type,
  .accommodation-type,
  label,
  .timeline-time {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero p,
  .text,
  .detail-editorial-content p,
  .timeline-content p,
  .location-content p,
  .gift-side p,
  .accommodation-left p,
  .confirmation-modal p,
  footer p {
    font-size: 15px;
    line-height: 1.75;
  }

  .actions {
    margin-top: 30px;
  }

  .detail-editorial-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .location-image,
  .story-carousel {
    min-height: 280px;
  }

  .form-card,
  .gift-side,
  .location-content {
    padding: 22px;
  }

  .location-card,
  .gift-side,
  .form-card {
    box-shadow: none;
  }

  input,
  textarea {
    font-size: 16px;
  }

  .btn,
  .btn-primary,
  .location-btn,
  .gift-btn,
  .accommodation-btn,
  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  section:not(.hero) {
    padding: 64px 14px;
  }

  .hero {
    padding: 44px 14px;
  }

  .hero-content {
    width: 100%;
  }

  h1 {
    max-width: 330px;
    font-size: clamp(40px, 13vw, 52px);
  }

  .hero-name {
    flex: 0 1 auto;
  }

  h2,
  h4 {
    font-size: clamp(32px, 10.5vw, 42px);
  }

  h3 {
    font-size: clamp(24px, 8vw, 30px);
  }

  .details-editorial-list,
  .wedding-timeline,
  .locations-grid,
  .gift-banner,
  .accommodation-list {
    margin-top: 40px;
  }

  .story-grid,
  .rsvp-grid {
    gap: 30px;
  }

  .story-carousel,
  .location-image {
    min-height: 220px;
  }

  .form-card,
  .gift-side,
  .location-content,
  .confirmation-modal {
    padding: 18px;
  }

  .phone-input {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .checkbox-item {
    align-items: start;
  }

  footer {
    padding: 76px 16px 58px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 42px 22px;
  }

  h1 {
    font-size: clamp(42px, 9vw, 72px);
  }

  .hero p {
    margin-top: 16px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-name-left,
  .hero-name-right,
  .hero-name-separator {
    animation: none;
  }

  .timeline-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
