:root {
  --bg: #f5f1eb;
  --bg-soft: #f8f5f0;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #241f1b;
  --muted: #7e746b;
  --line: rgba(36, 31, 27, 0.12);
  --line-strong: rgba(36, 31, 27, 0.22);
  --accent: #b79b82;
  --accent-soft: rgba(183, 155, 130, 0.14);
  --shadow: 0 24px 80px rgba(25, 21, 18, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 48px));
  --transition: 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 32%),
    linear-gradient(180deg, #f8f5f0 0%, #f5f1eb 100%);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

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

button,
a,
img {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

main,
.hero,
.section,
.closing-section {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* ── Keyframes ── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Site Loader ── */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(248, 245, 240, 0.82);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  width: min(88vw, 420px);
  display: grid;
  gap: 24px;
  justify-items: center;
}

.site-loader__monogram {
  filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.04));
  animation: scale-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.monogram-mark {
  --monogram-size: 6rem;
  position: relative;
  display: block;
  width: var(--monogram-size);
  height: var(--monogram-size);
}

.monogram-mark__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.monogram-mark span {
  position: absolute;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.82;
}

.monogram-mark__k {
  top: 0;
  left: 0;
  font-size: calc(var(--monogram-size) * 0.68);
}

.monogram-mark__slash {
  top: 9%;
  left: 50%;
  transform: translateX(-50%) rotate(16deg);
  font-size: calc(var(--monogram-size) * 0.92);
  font-weight: 500;
}

.monogram-mark__m {
  right: 0;
  bottom: 0;
  font-size: calc(var(--monogram-size) * 0.66);
}

.monogram-mark--loader {
  --monogram-size: min(54vw, 210px);
}

.monogram-mark--brand {
  --monogram-size: 45px;
}

.monogram-mark--hero {
  --monogram-size: 132px;
}

.site-loader__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fade-up 0.9s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-loader__track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(36, 31, 27, 0.1);
  overflow: hidden;
  animation: fade-up 0.9s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-loader__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(36, 31, 27, 0.45), rgba(36, 31, 27, 1));
}

/* ── Topbar ── */

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(250, 247, 242, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(22, 18, 16, 0.08);
  border-radius: 999px;
  z-index: 1000;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.topbar__brand-mark {
  flex-shrink: 0;
  color: #45403b;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar__nav::-webkit-scrollbar {
  display: none;
}

.topbar__nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 15px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  background: rgba(36, 31, 27, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

/* Hamburger button — hidden on desktop */
.topbar__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(36, 31, 27, 0.14);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: background var(--transition), transform var(--transition);
}

.topbar__menu-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.06);
}

.topbar__menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, width 0.28s ease;
}

.topbar--open .topbar__menu-btn span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.topbar--open .topbar__menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.topbar--open .topbar__menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 132px 0 44px;
}

.hero__image-wrap,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image-wrap {
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 36%;
  transform: scale(1.06);
  filter: saturate(0.92) contrast(0.96);
  transition: transform 9s cubic-bezier(0.0, 0.0, 0.2, 1);
}

body:not(.is-loading) .hero__image {
  transform: scale(1);
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(22, 18, 16, 0.18) 0%, rgba(22, 18, 16, 0.06) 18%, rgba(22, 18, 16, 0.35) 68%, rgba(22, 18, 16, 0.64) 100%),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.12), transparent 32%);
}

.hero__content,
.closing-section__content {
  position: relative;
  z-index: 2;
}

.hero__content {
  display: grid;
  align-content: end;
  align-items: end;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  color: #fffaf4;
  width: min(var(--container), 100%);
  min-height: calc(100svh - 188px);
  padding-top: 0;
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.closing-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero h1 {
  display: block;
  width: auto;
  max-width: 100%;
  font-size: clamp(2.25rem, 4.2vw, 3.7rem);
  font-weight: 500;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  margin-inline: auto;
  text-align: center;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: nowrap;
}

.hero h1 span {
  font-weight: 400;
  display: inline;
}

.hero__meta {
  margin: 8px 0 0;
  font-size: clamp(0.74rem, 1.45vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 250, 244, 0.92);
  line-height: 1.35;
  white-space: nowrap;
}

.hero__meta span {
  padding: 0 0.45em;
  color: rgba(255, 250, 244, 0.54);
}

.hero__actions {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: normal;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

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

.button--primary {
  background: rgba(255, 250, 244, 0.94);
  color: #1f1a16;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.button--ghost {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #fffaf4;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  font-weight: 600;
  font-size: 0.84rem;
}

.button--inline {
  align-self: flex-start;
  padding-inline: 0;
  min-height: auto;
  border-radius: 0;
  border-bottom: 1px solid rgba(36, 31, 27, 0.24);
  font-weight: 700;
}

/* ── Sections ── */

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

.section--tight {
  padding-top: 58px;
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, #f7f4ef 0%, #f3eee7 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading--centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading .eyebrow {
  color: var(--muted);
  margin: -4px 0 12px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: break-word;
}

#details,
#party {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(245, 241, 235, 0.7));
}

#timeline {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #f1ebe3 0%, #ece5dc 100%);
}

/* ── Cards base ── */

.countdown-card,
.note-card,
.contact-card,
.detail-tile,
.venue-card,
.party-card,
.story-layout__figure,
.timeline-item__content {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* ── Countdown ── */

.countdown-card {
  padding: clamp(24px, 5vw, 40px);
  border-radius: var(--radius-xl);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.countdown-item {
  padding: clamp(20px, 3vw, 30px) 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 31, 27, 0.08);
  text-align: center;
}

.countdown-item span {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 0.9;
}

.countdown-item small,
.detail-tile__label,
.venue-card__eyebrow,
.party-card__role,
.contact-card__label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

/* ── Details ── */

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.detail-tile {
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}

.detail-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

/* ── Venues ── */

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

.venue-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 30px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7)),
    linear-gradient(135deg, rgba(183, 155, 130, 0.12), transparent 58%);
}

.venue-card__number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 4vw, 4rem);
  color: rgba(36, 31, 27, 0.18);
  line-height: 1;
}

.venue-card__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.venue-card h3,
.party-card h3,
.timeline-item__content h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.venue-card p,
.timeline-item__content p,
.story-layout__text p,
.note-card p,
.party-card p,
.confirmation-layout__main p {
  margin: 0;
  color: #4c433d;
  line-height: 1.82;
  font-size: 1rem;
}

.venue-card__meta {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.venue-card__travel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(183, 155, 130, 0.12);
  color: #403732;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.venue-card__pin {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(183, 155, 130, 0.12);
}

.venue-card__map-ornament {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(183, 155, 130, 0.25);
  background:
    radial-gradient(circle at center, rgba(183, 155, 130, 0.15), transparent 55%),
    repeating-radial-gradient(circle at center, transparent 0 18px, rgba(183, 155, 130, 0.08) 19px 20px);
  opacity: 0.7;
  pointer-events: none;
}

.venue-card__map-ornament::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 36px;
  left: 74px;
  border-radius: 50% 50% 50% 0;
  background: rgba(183, 155, 130, 0.62);
  transform: rotate(-45deg);
}

.venue-card__map-ornament--second::after {
  top: 78px;
  left: 96px;
}

.button--venue {
  width: fit-content;
  margin-top: 4px;
  background: #241f1b;
  color: #fffaf4;
  box-shadow: 0 18px 36px rgba(36, 31, 27, 0.18);
}

/* ── Timeline ── */

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 152px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(36, 31, 27, 0.12), rgba(36, 31, 27, 0.26), rgba(36, 31, 27, 0.12));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 147px;
  top: 28px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(183, 155, 130, 0.14);
}

.timeline-item__time {
  padding-top: 18px;
  text-align: right;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-item__content {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  min-width: 0;
}

/* ── Story ── */

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.story-layout__figure {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 560px;
}

.story-layout__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* ── Party Slider ── */

.party-slider-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
}

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

.party-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.party-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.party-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: transform 0.8s ease;
}

.party-card__image img.party-card__portrait--thodoris {
  object-position: center 18%;
}

.party-card__image img.party-card__portrait--nektaria {
  object-position: 42% 36%;
}

.party-card:hover .party-card__image img,
.party-card:focus-within .party-card__image img,
.gallery-card:hover img {
  transform: scale(1.04);
}

.party-card__content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 24px 28px;
  min-width: 0;
}

.party-card__role {
  margin-top: 0;
}

.party-card h3 {
  display: grid;
  gap: 0.04em;
  width: 100%;
  max-width: none;
  margin-top: 0;
  font-size: clamp(1.34rem, 2.15vw, 1.86rem);
  line-height: 1.02;
}

.party-card h3 span {
  display: block;
  white-space: nowrap;
}

.slider-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(22, 18, 16, 0.06);
  display: none;
}

/* ── Gallery ── */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 16px;
}

.gallery-card {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  min-height: 280px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-card--large {
  grid-row: span 2;
  min-height: 640px;
}

.gallery-card--tall {
  min-height: 360px;
}

/* ── Confirmation ── */

.confirmation-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.confirmation-layout__contacts {
  display: grid;
  gap: 14px;
}

.contact-card {
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}

.contact-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.contact-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

/* ── Note ── */

.note-card {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.note-card p + p {
  margin-top: 12px;
}

/* ── Gifts ── */

.gift-section {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.gift-section__intro,
.gift-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(183, 155, 130, 0.14), transparent 64%);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gift-section__intro {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
}

.note-card .gift-section__intro {
  width: 100%;
  max-width: 760px;
  margin: 26px auto 0;
}

.gift-section__intro::after,
.gift-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.gift-section__intro::after {
  top: -72px;
  right: -54px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(183, 155, 130, 0.16), transparent 68%);
}

.gift-section__kicker,
.gift-card__eyebrow,
.gift-card__label {
  display: inline-block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

.gift-section__intro p,
.gift-card__hint {
  margin: 0;
  color: #4c433d;
  line-height: 1.82;
  font-size: 1rem;
}

.gift-section__toggle {
  margin-top: 6px;
}

.gift-card {
  padding: clamp(28px, 4vw, 40px);
}

.gift-card::after {
  right: -44px;
  bottom: -52px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(183, 155, 130, 0.2);
  background:
    radial-gradient(circle at center, rgba(183, 155, 130, 0.14), transparent 52%),
    repeating-radial-gradient(circle at center, transparent 0 16px, rgba(183, 155, 130, 0.08) 17px 18px);
}

.gift-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.gift-card__header h3 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.95rem, 4vw, 2.9rem);
  line-height: 1.02;
}

.gift-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(183, 155, 130, 0.12);
  color: #403732;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gift-card__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.gift-card__item {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(36, 31, 27, 0.08);
}

.gift-card__item--wide {
  grid-column: 1 / -1;
}

.gift-card__item strong {
  display: block;
  margin-top: 10px;
  font-size: 1.04rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.gift-card__value {
  letter-spacing: 0.08em;
}

.gift-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.gift-card__hint {
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.gift-copy-button.is-copied {
  background: #241f1b;
  color: #fffaf4;
}

/* ── Closing ── */

.closing-section {
  position: relative;
  min-height: 84svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.closing-section__image-wrap,
.closing-section__overlay {
  position: absolute;
  inset: 0;
}

.closing-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 46%;
  filter: saturate(0.94) contrast(0.95);
}

.closing-section__overlay {
  background:
    linear-gradient(180deg, rgba(21, 17, 15, 0.18) 0%, rgba(21, 17, 15, 0.28) 25%, rgba(21, 17, 15, 0.55) 100%),
    radial-gradient(circle at center, rgba(255, 232, 202, 0.16), transparent 42%);
}

.closing-section__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  justify-content: center;
  text-align: center;
  color: #fffaf4;
  width: min(calc(100vw - 48px), 30rem);
  max-width: 30rem;
  padding-inline: 0;
  margin: 0;
  z-index: 2;
}

.closing-section__content.reveal,
.closing-section__content.reveal--visible {
  transform: translate(-50%, -50%);
}

.closing-section .eyebrow {
  margin-bottom: 0;
}

.closing-section h2 {
  width: 100%;
  margin: 0;
  font-size: clamp(2.55rem, 5.8vw, 4.6rem);
  line-height: 1.02;
  text-align: center;
  text-wrap: balance;
  justify-self: center;
}

.closing-section__title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.closing-section__signature {
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
  width: min(100%, 18rem);
  margin-inline: auto;
  justify-self: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.closing-section__signature span {
  display: block;
}

/* ── Footer ── */

/* ── Scroll reveal ── */

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

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

.reveal--stagger-1 {
  transition-delay: 70ms;
}

.reveal--stagger-2 {
  transition-delay: 150ms;
}

/* ── 1100px ── */

@media (min-width: 861px) {
  #timeline .section-heading {
    margin-bottom: 28px;
  }

  .timeline-item {
    gap: 52px;
  }

  .section-heading .eyebrow {
    margin: -8px 0 8px;
  }

  .closing-section h2 {
    font-size: clamp(2.15rem, 4.8vw, 3.7rem);
  }
}

@media (max-width: 1100px) {
  .details-grid,
  .venues-grid,
  .story-layout,
  .confirmation-layout,
  .party-slider,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-layout,
  .confirmation-layout {
    grid-template-columns: 1fr;
  }

  .gift-card__grid {
    grid-template-columns: 1fr;
  }

  .gift-card__item--wide {
    grid-column: auto;
  }

  .story-layout__figure {
    min-height: 500px;
  }

  .gallery-card--large {
    grid-row: auto;
    min-height: 440px;
  }
}

/* ── 860px ── */

@media (max-width: 860px) {
  :root {
    --container: min(1000px, calc(100% - 24px));
    --radius-xl: 28px;
    --radius-lg: 22px;
  }

  /* Topbar: slim pill, brand + hamburger only */
  .topbar {
    top: 14px;
    width: min(240px, calc(100% - 150px));
    border-radius: 999px;
    padding: 6px 7px 6px 12px;
    align-items: center;
    flex-direction: row;
  }

  .topbar__brand-mark {
    --monogram-size: 39px;
  }

  .topbar--open {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100svh;
    justify-content: center;
    align-items: flex-start;
    gap: 265px;
    padding: 34px 0 0;
    border-radius: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar--open .topbar__brand {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 3;
  }

  .topbar--open .topbar__menu-btn {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    z-index: 3;
  }

  .topbar--open .topbar__menu-btn:hover {
    transform: scale(1.06);
  }

  .topbar__menu-btn {
    display: flex;
    width: 38px;
    height: 38px;
    gap: 4px;
  }

  .topbar__menu-btn span {
    width: 16px;
  }

  /* Mobile nav: fullscreen overlay */
  .topbar__nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: grid;
    align-content: center;
    justify-items: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 88px 24px 88px;
    overflow-x: visible;
    isolation: isolate;
    background:
      radial-gradient(circle at top center, rgba(255, 255, 255, 0.9), transparent 34%),
      linear-gradient(180deg, rgba(248, 245, 240, 0.98), rgba(241, 235, 227, 0.96));
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s ease, visibility 0.38s ease;
  }

  .topbar__nav::before,
  .topbar__nav::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .topbar__nav::before {
    z-index: -2;
    background:
      radial-gradient(circle at center, rgba(183, 155, 130, 0.12), transparent 40%),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.56), transparent 58%);
  }

  .topbar__nav::after {
    z-index: -1;
    inset: 50%;
    width: min(64vw, 340px);
    height: min(64vw, 340px);
    transform: translate(-50%, -50%);
    background: url("assets/images/initialsf.png") center / contain no-repeat;
    opacity: 0.16;
    filter: sepia(0.2) saturate(0.82);
  }

  .topbar--open .topbar__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .topbar__nav a {
    font-family: "Cormorant Garamond", Georgia, serif;
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    font-size: clamp(1.85rem, 7vw, 2.7rem);
    font-weight: 500;
    color: var(--text);
    padding: 0;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.4s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.22s ease,
      background 0.22s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease;
  }

  .topbar--open .topbar__nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .topbar--open .topbar__nav a:nth-of-type(1) { transition-delay: 60ms; }
  .topbar--open .topbar__nav a:nth-of-type(2) { transition-delay: 115ms; }
  .topbar--open .topbar__nav a:nth-of-type(3) { transition-delay: 170ms; }
  .topbar--open .topbar__nav a:nth-of-type(4) { transition-delay: 225ms; }

  .topbar__nav a:hover,
  .topbar__nav a:focus-visible {
    background: transparent;
    color: var(--text);
    transform: translateY(-1px);
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding: 112px 0 26px;
  }

  .section {
    padding: 42px 0 50px;
  }

  .section--tight {
    padding-top: 36px;
  }

  .hero__content {
    min-height: calc(100svh - 172px);
    padding-top: 0;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(1.66rem, 5.9vw, 2.3rem);
    line-height: 1.08;
    text-wrap: nowrap;
  }

  .hero__meta {
    font-size: 0.68rem;
    line-height: 1.2;
    max-width: none;
    white-space: nowrap;
  }

  .hero__image {
    object-position: 42% 50%;
  }

  .hero__actions {
    gap: 6px;
    margin-top: 38px;
  }

  /* Grids */
  .countdown-grid,
  .details-grid,
  .venues-grid {
    grid-template-columns: 1fr;
  }

  .detail-tile {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  /* Timeline */
  .timeline::before {
    left: 12px;
    top: 20px;
    bottom: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 36px;
  }

  .timeline-item::after {
    left: 7px;
    top: 22px;
  }

  .timeline-item__time {
    text-align: left;
    padding-top: 0;
  }

  /* Party slider */
  .party-slider-wrap {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .slider-button {
    display: none;
  }

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

  .party-slider::-webkit-scrollbar {
    display: none;
  }

  .party-card {
    scroll-snap-align: unset;
  }

  .party-card__content {
    gap: 10px;
    padding: 18px 16px 22px;
  }

  .story-layout__figure {
    min-height: 420px;
  }

  .gift-card__header,
  .gift-card__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .gift-card__actions .button {
    width: 100%;
  }

  .closing-section {
    min-height: 72svh;
  }

  .closing-section__image {
    object-position: 48% 50%;
  }

  .closing-section h2 {
    width: 100%;
    font-size: clamp(1.72rem, 6.3vw, 2.7rem);
  }

  .closing-section .eyebrow {
    margin-bottom: 0;
  }

  .closing-section__signature {
    width: min(100%, 15rem);
    margin-top: 12px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .venue-card__travel {
    width: 100%;
    border-radius: 18px;
  }

  .button--venue {
    width: 100%;
  }
}

/* ── 620px ── */

@media (max-width: 620px) {
  .site-loader__inner {
    gap: 18px;
  }

  .site-loader__eyebrow,
  .eyebrow {
    letter-spacing: 0.24em;
  }

  .hero__actions {
    width: 100%;
    gap: 6px;
  }

  .topbar__brand {
    padding-left: 2px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 30px 0 36px;
  }

  .section--tight {
    padding-top: 26px;
  }

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

  .section-heading .eyebrow {
    margin: 0 0 10px;
  }

  .section-heading h2 {
    line-height: 1.08;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-item {
    padding-inline: 10px;
  }

  .hero__content {
    gap: 0;
    min-height: calc(100svh - 164px);
    padding-top: 0;
    padding-bottom: 26px;
  }

  .hero h1 {
    font-size: clamp(1.48rem, 5.9vw, 2rem);
    line-height: 1.08;
    text-wrap: nowrap;
  }

  .topbar {
    top: 12px;
    width: min(208px, calc(100% - 150px));
  }

  .topbar--open {
    top: 0;
    left: 0;
    width: 100%;
    gap: 260px;
    padding-top: 36px;
  }

  .topbar--open .topbar__menu-btn:hover {
    transform: scale(1.06);
  }

  .topbar__nav {
    padding-inline: 20px;
  }

  .topbar__nav::after {
    width: min(72vw, 300px);
    height: min(72vw, 300px);
  }

  .hero__meta {
    max-width: none;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .hero__image {
    object-position: 40% 50%;
  }

  .button {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .button--ghost {
    font-size: 0.78rem;
  }

  .detail-tile,
  .venue-card,
  .timeline-item__content,
  .contact-card,
  .note-card,
  .gift-section__intro,
  .gift-card,
  .party-card__content {
    padding-inline: 18px;
  }

  .gift-section {
    gap: 16px;
  }

  .note-card .gift-section__intro {
    margin-top: 20px;
  }

  .gift-card__grid {
    gap: 12px;
    margin-top: 20px;
  }

  .gift-card__item {
    padding: 16px 16px 18px;
  }

  .gift-card__header h3 {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
  }

  .gift-card__hint {
    font-size: 0.84rem;
  }

  .venue-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .venue-card__number {
    font-size: 2.8rem;
  }

  .story-layout__figure {
    min-height: 300px;
  }

  .party-card h3,
  .venue-card h3,
  .timeline-item__content h3 {
    font-size: clamp(1.18rem, 5vw, 1.46rem);
  }

  .party-card h3 {
    font-size: clamp(1rem, 4.8vw, 1.32rem);
  }

  .closing-section__content {
    gap: 12px;
    width: min(calc(100vw - 40px), 21rem);
  }

  .closing-section .eyebrow {
    margin-bottom: 0;
  }

  .closing-section h2 {
    width: 100%;
    font-size: clamp(1.48rem, 5.9vw, 2.15rem);
  }

  .closing-section__signature {
    width: min(100%, 13.5rem);
    margin-top: 12px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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