:root {
  --olive-dark: #626A59;
  --olive-deep: #343b31;
  --olive-soft: #9AA497;
  --olive-pale: #dce3d8;
  --mist: #C6CBCA;
  --off-white: #F4F6F1;
  --paper: #fbfcf7;
  --blush-light: #E8EDE3;
  --blush: #B9C4B1;
  --text-dark: #2F332C;
  --muted: #707568;
  --white: #FFFFFF;
  --shadow: 0 24px 70px rgba(47, 51, 44, .14);
  --shadow-soft: 0 14px 45px rgba(47, 51, 44, .10);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(circle at 12% 8%, rgba(154, 164, 151, .45), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(98, 106, 89, .22), transparent 25rem),
    radial-gradient(circle at 50% 96%, rgba(198, 203, 202, .48), transparent 28rem),
    linear-gradient(180deg, var(--off-white), #eef3ea 45%, var(--blush-light));
  min-height: 100vh;
}

body.locked { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--olive-dark);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

.site-shell { overflow: hidden; }
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.section {
  padding: 88px 0;
  position: relative;
}
.section.compact { padding: 54px 0; }
.eyebrow {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--olive-dark);
  font-size: .78rem;
  font-weight: 800;
  margin: 0 0 14px;
}
.display-title,
.section-title,
.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: .95;
  color: var(--olive-deep);
  margin: 0;
}
.display-title { font-size: clamp(3.8rem, 9vw, 8.5rem); }
.section-title { font-size: clamp(2.35rem, 5vw, 4.5rem); }
.hero-title { font-size: clamp(3rem, 7vw, 7rem); }
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  color: #54594f;
  line-height: 1.7;
  margin: 22px 0 0;
}
.small-note { color: var(--muted); font-size: .95rem; line-height: 1.6; }

.desktop-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(240, 241, 245, .78);
  border-bottom: 1px solid rgba(98, 106, 89, .13);
}
.nav-inner {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  color: var(--olive-deep);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  text-decoration: none;
  color: #4b5146;
  font-weight: 700;
  font-size: .93rem;
  padding: 10px 12px;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a:focus-visible { background: rgba(98, 106, 89, .11); outline: none; }
.nav-links .nav-cta { background: var(--olive-dark); color: white; }
.nav-links .nav-cta:hover { background: var(--olive-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--olive-dark); color: white; }
.btn-primary:hover { background: var(--olive-deep); }
.btn-secondary { background: rgba(255,255,255,.78); color: var(--olive-deep); border: 1px solid rgba(98,106,89,.18); }
.btn-soft { background: var(--blush-light); color: var(--olive-deep); }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.hero-desktop {
  min-height: 760px;
  padding: 46px 0 90px;
  display: flex;
  align-items: center;
}
.hero-frame {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 650px;
  border-radius: 42px;
  background-image:
    linear-gradient(90deg, rgba(47, 51, 44, .75) 0%, rgba(47, 51, 44, .44) 40%, rgba(47, 51, 44, .08) 72%),
    url('/assets/images/desktop-hero.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: grid;
  align-items: end;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 30px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 64px;
  color: white;
}
.hero-content .eyebrow,
.hero-content .hero-title { color: white; }
.hero-content .lead { color: rgba(255,255,255,.88); }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.meta-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px;
}
.meta-pill strong { display: block; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.meta-pill span { display: block; margin-top: 6px; font-weight: 800; }

.mobile-video-hero { display: none; padding: 22px 0 34px; }
.mobile-video-card {
  width: min(560px, calc(100% - 26px));
  margin: 0 auto;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(98,106,89,.13);
  border-radius: 30px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}
.mobile-video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 24px;
  background: var(--olive-dark);
}
.mobile-intro {
  width: min(560px, calc(100% - 36px));
  margin: 24px auto 0;
  text-align: center;
}
.mobile-intro .display-title { font-size: clamp(3.4rem, 17vw, 5.8rem); }
.mobile-intro .lead { margin-top: 14px; }

.mobile-section-nav {
  display: none;
  width: min(620px, calc(100% - 30px));
  margin: 24px auto 0;
}
.mobile-section-nav h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 0 0 12px;
  color: var(--olive-deep);
}
.mobile-section-grid { display: grid; gap: 10px; }
.mobile-section-grid a {
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(98,106,89,.13);
  font-weight: 850;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 22px rgba(47,51,44,.05);
}
.mobile-section-grid a::after { content: "↓"; color: var(--olive-dark); }

.card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(98,106,89,.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 44px);
}
.card.solid { background: var(--paper); }
.split {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 34px;
  align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.info-card {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(98,106,89,.13);
  border-radius: 24px;
  padding: 24px;
}
.info-card h3 { margin: 0 0 10px; color: var(--olive-deep); font-size: 1.22rem; }
.info-card p { margin: 0; color: #555b50; line-height: 1.6; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.count-box {
  text-align: center;
  padding: 22px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(220,227,216,.82));
  border: 1px solid rgba(98,106,89,.13);
}
.count-box strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  color: var(--olive-deep);
  line-height: .95;
}
.count-box span { display: block; margin-top: 8px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }

.timeline {
  margin-top: 28px;
  border-left: 2px solid rgba(98,106,89,.2);
  padding-left: 24px;
  display: grid;
  gap: 18px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--olive-dark);
  position: absolute;
  left: -32px;
  top: 6px;
  box-shadow: 0 0 0 8px rgba(98,106,89,.1);
}
.timeline-item strong { display: block; color: var(--olive-deep); font-size: 1.08rem; }
.timeline-item span { color: var(--muted); line-height: 1.6; }

.form {
  display: grid;
  gap: 16px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 850; color: var(--olive-deep); }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(98,106,89,.22);
  background: rgba(255,255,255,.82);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  color: var(--text-dark);
  transition: border .2s ease, box-shadow .2s ease;
}
textarea { min-height: 116px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--olive-dark);
  box-shadow: 0 0 0 4px rgba(98,106,89,.12);
}
.radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(98,106,89,.17);
  background: rgba(255,255,255,.70);
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
  font-weight: 850;
}
.radio-card input { width: auto; }
.status {
  display: none;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.5;
  font-weight: 750;
}
.status.show { display: block; }
.status.success { background: rgba(154,164,151,.22); color: var(--olive-deep); }
.status.error { background: rgba(177,92,92,.13); color: #7d3333; }
.status.info { background: rgba(198,203,202,.28); color: var(--olive-deep); }

.photo-pair {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 16px;
}
.photo-pair img, .single-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  min-height: 300px;
}
.photo-pair img:nth-child(1) { transform: translateY(28px); }

.details-list { display: grid; gap: 12px; margin-top: 22px; }
.detail-line {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(98,106,89,.13);
}
.detail-line strong { color: var(--olive-deep); }
.detail-line span { color: #575d52; }

.reveal-panel { margin-top: 18px; display: none; }
.reveal-panel.open { display: block; animation: fadeUp .28s ease both; }
.bank-box {
  border-radius: 20px;
  padding: 20px;
  background: rgba(98,106,89,.08);
  border: 1px dashed rgba(98,106,89,.32);
}
.bank-box p { margin: 8px 0; }

.gallery-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.gallery-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(98,106,89,.13);
  box-shadow: 0 10px 26px rgba(47,51,44,.08);
}
.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--mist);
}
.media-card .media-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}
.media-card label { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 750; }
.media-card input[type="checkbox"] { width: auto; }
.download-link { color: var(--olive-deep); font-weight: 850; text-decoration: none; }
.empty-state {
  text-align: center;
  padding: 44px 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.65);
  border: 1px dashed rgba(98,106,89,.26);
  color: var(--muted);
}
.upload-drop {
  border: 2px dashed rgba(98,106,89,.28);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  background: rgba(255,255,255,.58);
}
.upload-drop input { background: white; }
.progress-list { display: grid; gap: 8px; margin-top: 16px; }
.progress-item { background: rgba(255,255,255,.72); border-radius: 14px; padding: 10px 12px; font-size: .93rem; }

.admin-layout { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.admin-sidebar { position: sticky; top: 92px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(98,106,89,.13);
}
.stat strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; color: var(--olive-deep); }
.stat span { color: var(--muted); font-weight: 800; font-size: .85rem; }
.table-wrap { overflow: auto; border-radius: 20px; border: 1px solid rgba(98,106,89,.13); background: rgba(255,255,255,.68); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid rgba(98,106,89,.11); vertical-align: top; }
th { color: var(--olive-deep); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(220,227,216,.58); }
td { color: #4f564c; }
.admin-panel { display: grid; gap: 22px; }
.admin-media-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(98,106,89,.12); }
.admin-media-row img, .admin-media-row video { width: 76px; height: 76px; object-fit: cover; border-radius: 16px; background: var(--mist); }

.footer {
  padding: 54px 0;
  text-align: center;
  color: var(--muted);
}
.footer strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--olive-deep);
  font-size: 2rem;
  margin-bottom: 10px;
}

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero-desktop { display: none; }
  .mobile-video-hero { display: block; }
  .mobile-section-nav { display: block; }
  .section { padding: 62px 0; }
  .split, .grid-2, .grid-3, .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-pair { grid-template-columns: 1fr; }
  .photo-pair img:nth-child(1) { transform: none; }
  .detail-line { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 26px, var(--max)); }
  .card { border-radius: 24px; padding: 22px; }
  .section { padding: 46px 0; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .media-card { border-radius: 16px; }
  .media-card .media-footer { padding: 10px; flex-direction: column; align-items: flex-start; }
  .display-title { font-size: clamp(3.2rem, 15vw, 5.6rem); }
  .section-title { font-size: clamp(2.2rem, 10vw, 3.8rem); }
}

/* Version 2: unified Gallery + olive-focused interface */
.page-hero {
  padding: 50px 0 28px;
}
.page-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 42px;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  align-content: end;
  color: white;
  background:
    linear-gradient(90deg, rgba(52,59,49,.86), rgba(52,59,49,.56) 52%, rgba(52,59,49,.20)),
    url('/assets/images/desktop-hero.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.page-hero-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 30px;
  pointer-events: none;
}
.page-hero-card > * { position: relative; z-index: 1; max-width: 760px; }
.page-hero-card .eyebrow,
.page-hero-card .section-title { color: white; }
.page-hero-card .lead { color: rgba(255,255,255,.88); }
.gallery-card {
  background: linear-gradient(180deg, rgba(251,252,247,.90), rgba(232,237,227,.78));
}
.selection-strip {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(98,106,89,.95);
  color: white;
  box-shadow: var(--shadow-soft);
}
.selection-strip[hidden] { display: none; }
.selection-strip span { font-weight: 850; }
.selection-strip .btn-primary { background: white; color: var(--olive-deep); }
.media-card.selected {
  outline: 3px solid rgba(98,106,89,.60);
  box-shadow: 0 18px 44px rgba(52,59,49,.18);
}
.media-preview-button {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  background: transparent;
  cursor: zoom-in;
}
.media-preview-button:focus-visible {
  outline: 4px solid rgba(98,106,89,.35);
  outline-offset: -4px;
}
.select-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--olive-deep);
  box-shadow: 0 8px 20px rgba(47,51,44,.12);
  font-weight: 850;
  font-size: .88rem;
}
.select-pill input { width: auto; }
.inline-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(47,51,44,.62);
  backdrop-filter: blur(14px);
}
.modal-overlay.open { display: flex; animation: fadeUp .18s ease both; }
.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 0%, rgba(220,227,216,.55), transparent 18rem),
    var(--paper);
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.42);
  padding: clamp(24px, 4vw, 44px);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(98,106,89,.12);
  color: var(--olive-deep);
  font-size: 2rem;
  line-height: 1;
}
.modal-close:hover { background: rgba(98,106,89,.22); }
.media-modal-card { width: min(980px, 100%); padding: 18px; }
.media-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  background: rgba(52,59,49,.08);
  border-radius: 24px;
  overflow: hidden;
}
.media-preview img,
.media-preview video {
  max-height: 68vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
}
.media-modal-footer {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6px 0;
}
.gallery-mobile-nav .mobile-section-grid a:nth-child(3)::after { content: "↓"; }
@media (max-width: 980px) {
  .page-hero { padding: 22px 0 18px; }
  .page-hero-card {
    min-height: auto;
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(52,59,49,.78), rgba(52,59,49,.54)),
      url('/assets/images/hero-fallback.jpg');
    background-size: cover;
    background-position: center;
  }
  .selection-strip { top: 10px; }
}
@media (max-width: 640px) {
  .gallery-actions { width: 100%; }
  .gallery-actions .btn { flex: 1 1 calc(50% - 8px); padding-inline: 12px; }
  #download-selected-media { flex-basis: 100%; }
  .modal-overlay { padding: 8px; align-items: flex-end; }
  .modal-card {
    border-radius: 26px 26px 0 0;
    max-height: 92vh;
    padding: 22px;
  }
  .media-modal-card { border-radius: 26px 26px 0 0; }
  .media-modal-footer { flex-direction: column; align-items: stretch; }
}
.gallery-mobile-nav { width: 100%; margin: 0 0 22px; }

/* Premium wedding visual system */
:root {
  --olive-dark: #626A59;
  --olive-deep: #353b32;
  --olive-soft: #9AA497;
  --olive-pale: #e2e5df;
  --mist: #C6CBCA;
  --off-white: #F0F1F5;
  --paper: #fbfaf7;
  --blush-light: #EFE1DC;
  --blush: #DDBEB5;
  --text-dark: #30352e;
  --muted: #6d7269;
  --shadow: 0 30px 80px rgba(53, 59, 50, .16);
  --shadow-soft: 0 16px 44px rgba(53, 59, 50, .10);
}

body {
  line-height: 1.5;
  background:
    radial-gradient(circle at 8% 12%, rgba(221, 190, 181, .28), transparent 28rem),
    radial-gradient(circle at 92% 30%, rgba(154, 164, 151, .24), transparent 32rem),
    linear-gradient(180deg, #f8f7f3 0%, var(--off-white) 46%, #f4eee9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

.section {
  padding: 104px 0;
}

.section.compact {
  padding: 64px 0;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(180px, 35vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(98, 106, 89, .38), transparent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .22em;
  font-size: .74rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.section-title {
  font-size: clamp(2.65rem, 5vw, 4.9rem);
  letter-spacing: -.035em;
}

.lead {
  max-width: 64ch;
}

.desktop-nav {
  background: rgba(248, 247, 243, .86);
  border-bottom-color: rgba(98, 106, 89, .12);
  box-shadow: 0 8px 30px rgba(53, 59, 50, .04);
}

.nav-inner {
  height: 78px;
}

.brand {
  font-size: 1.7rem;
  letter-spacing: -.025em;
}

.nav-links a {
  padding: 11px 14px;
  font-size: .9rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  padding-inline: 21px;
  box-shadow: 0 9px 24px rgba(98, 106, 89, .22);
}

.btn {
  min-height: 52px;
  padding: 15px 24px;
  box-shadow: 0 7px 18px rgba(53, 59, 50, .06);
}

.btn:focus-visible,
.mobile-section-grid a:focus-visible,
.media-preview-button:focus-visible {
  outline: 3px solid rgba(98, 106, 89, .42);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--olive-dark), #4d5547);
  box-shadow: 0 12px 26px rgba(98, 106, 89, .24);
}

.btn-secondary {
  background: rgba(251, 250, 247, .88);
}

.hero-desktop {
  min-height: calc(100vh - 78px);
  padding: 28px 0 64px;
}

.hero-frame {
  width: min(1420px, calc(100% - 40px));
  min-height: min(760px, calc(100vh - 126px));
  border-radius: 46px;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(37, 42, 35, .80) 0%, rgba(45, 50, 42, .56) 36%, rgba(45, 50, 42, .10) 68%),
    linear-gradient(0deg, rgba(30, 34, 28, .18), transparent 45%),
    url('/assets/images/desktop-hero.jpg');
  background-position: center 44%;
}

.hero-frame::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  left: -150px;
  bottom: -230px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .04);
}

.hero-content {
  padding: clamp(52px, 7vw, 96px);
  max-width: 690px;
}

.hero-title {
  font-size: clamp(5rem, 8vw, 8.5rem);
  letter-spacing: -.055em;
  text-shadow: 0 5px 28px rgba(0, 0, 0, .18);
}

.hero-date {
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .94);
}

.hero-content .btn-secondary {
  color: white;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .34);
  backdrop-filter: blur(12px);
}

.hero-meta {
  gap: 10px;
}

.meta-pill {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .11);
}

.card {
  background: rgba(251, 250, 247, .76);
  border-color: rgba(98, 106, 89, .14);
  backdrop-filter: blur(12px);
}

.card.solid {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .58), transparent 45%),
    var(--paper);
}

.countdown-card {
  text-align: center;
  padding-block: clamp(34px, 5vw, 56px);
}

.countdown-card .eyebrow {
  justify-content: center;
}

.count-box {
  background: linear-gradient(155deg, #fff, #e9e9e5);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
}

.photo-pair {
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(98, 106, 89, .13);
  border-radius: 34px;
  background: rgba(255, 255, 255, .38);
}

.photo-pair img,
.single-photo img {
  border-radius: 24px;
  filter: saturate(.86) contrast(.96);
}

.photo-pair img:first-child {
  aspect-ratio: 4 / 5;
  object-position: center 28%;
}

.photo-pair img:last-child {
  aspect-ratio: 4 / 5;
  object-position: center;
}

.single-photo {
  position: relative;
}

.single-photo::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  z-index: -1;
  border-radius: 30px;
  background: var(--blush-light);
}

.single-photo img {
  min-height: 440px;
  aspect-ratio: 4 / 3;
  object-position: center;
}

.info-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 106, 89, .28);
  box-shadow: var(--shadow-soft);
}

.detail-line {
  padding: 16px 0;
}

.form-card {
  padding: clamp(26px, 4vw, 48px);
}

.form-row {
  gap: 9px;
}

input,
textarea,
select {
  min-height: 52px;
  background: rgba(255, 255, 255, .9);
  border-color: rgba(98, 106, 89, .24);
}

.radio-card {
  min-height: 64px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.radio-card:hover {
  transform: translateY(-2px);
  background: white;
  border-color: var(--olive-soft);
}

.page-section {
  min-height: calc(100vh - 78px);
  padding: clamp(72px, 9vw, 130px) 0;
  display: grid;
  align-items: center;
}

.page-intro {
  position: relative;
  padding: clamp(10px, 3vw, 38px);
}

.page-intro::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin-top: 32px;
  background: linear-gradient(90deg, var(--blush), transparent);
}

.occasion-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.occasion-note span {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--olive-deep);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(98, 106, 89, .14);
  font-size: .9rem;
  font-weight: 750;
}

.page-links {
  display: block;
  width: 100%;
  margin: 24px 0 0;
}

.page-links .mobile-section-grid {
  grid-template-columns: repeat(2, 1fr);
}

.page-hero {
  padding: 28px 0 30px;
}

.page-hero-card {
  min-height: 500px;
  border-radius: 44px;
  background:
    linear-gradient(90deg, rgba(38, 43, 36, .82), rgba(44, 49, 41, .45) 53%, rgba(44, 49, 41, .12)),
    url('/assets/images/desktop-hero.jpg');
  background-size: cover;
  background-position: center 44%;
}

.gallery-card {
  padding: clamp(24px, 4vw, 46px);
  background: rgba(251, 250, 247, .84);
}

.gallery-actions .btn {
  min-height: 48px;
}

.media-card {
  border-radius: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(53, 59, 50, .15);
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(239, 225, 220, .7), transparent 22rem),
    var(--paper);
}

.admin-page {
  align-items: start;
}

#admin-login-card {
  max-width: 760px;
  margin: 0 auto;
}

.admin-panel > .card,
.admin-sidebar {
  border-radius: 26px;
}

.stat {
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(226, 229, 223, .72));
}

.footer {
  margin-top: 24px;
  padding: 66px 0;
  border-top: 1px solid rgba(98, 106, 89, .12);
  background: rgba(251, 250, 247, .34);
}

.fade-in {
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}

.fade-in:nth-child(2) {
  transition-delay: .08s;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding-inline: 9px;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 72px 0;
  }

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

  .mobile-video-hero {
    padding: 14px 0 26px;
  }

  .mobile-video-card {
    width: min(500px, calc(100% - 20px));
    padding: 7px;
    border-radius: 28px;
  }

  .mobile-video-card video {
    max-height: min(68vh, 700px);
    border-radius: 22px;
  }

  .mobile-intro {
    margin-top: 30px;
  }

  .mobile-intro .eyebrow {
    justify-content: center;
  }

  .mobile-intro .lead {
    font-size: 1rem;
  }

  .mobile-countdown-label {
    margin: 26px 0 10px;
    color: var(--olive-dark);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .7rem;
    font-weight: 850;
  }

  .countdown-mobile {
    gap: 7px;
    margin-top: 0;
  }

  .countdown-mobile .count-box {
    padding: 13px 5px;
    border-radius: 16px;
  }

  .countdown-mobile .count-box strong {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .countdown-mobile .count-box span {
    font-size: .6rem;
  }

  #aftelling {
    display: none;
  }

  .mobile-section-nav {
    margin-top: 28px;
  }

  .mobile-section-grid a {
    min-height: 58px;
    padding: 17px 19px;
    background: rgba(251, 250, 247, .88);
  }

  .mobile-section-grid a::after {
    content: "\203A";
    font-size: 1.4rem;
  }

  .photo-pair {
    max-width: 640px;
    margin: 12px auto 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-pair img {
    min-height: 340px;
  }

  .page-section {
    min-height: 100vh;
    padding: 52px 0 68px;
  }

  .page-intro {
    padding: 0;
  }

  .page-links .mobile-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding: 12px 0 18px;
  }

  .page-hero-card {
    min-height: 430px;
    background:
      linear-gradient(180deg, rgba(38, 43, 36, .52), rgba(38, 43, 36, .78)),
      url('/assets/images/desktop-hero.jpg');
    background-position: center;
  }
}

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

  .section {
    padding: 56px 0;
  }

  .section.compact {
    padding: 38px 0;
  }

  .section-title {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .mobile-intro .display-title {
    font-size: clamp(3.15rem, 16vw, 4.8rem);
  }

  .mobile-intro .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-section-nav h2 {
    font-size: 1.45rem;
  }

  .photo-pair {
    padding: 10px;
    gap: 10px;
    border-radius: 24px;
  }

  .photo-pair img {
    min-height: 230px;
    border-radius: 17px;
  }

  .single-photo img {
    min-height: 320px;
  }

  .page-links .mobile-section-grid {
    grid-template-columns: 1fr;
  }

  .occasion-note {
    gap: 6px;
  }

  .occasion-note span {
    font-size: .82rem;
  }

  .form-card {
    padding: 22px;
  }

  .page-hero-card {
    min-height: 500px;
    padding: 28px 24px;
    border-radius: 28px;
    background-position: 47% center;
  }

  .page-hero-card::after {
    inset: 10px;
    border-radius: 20px;
  }

  .gallery-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .gallery-actions .btn {
    width: 100%;
  }

  #download-selected-media {
    grid-column: 1 / -1;
  }

  .admin-media-row {
    grid-template-columns: 58px 1fr;
  }

  .admin-media-row img,
  .admin-media-row video {
    width: 58px;
    height: 58px;
  }

  .admin-media-row > div:last-child {
    grid-column: 1 / -1;
    justify-content: stretch !important;
  }

  .admin-media-row > div:last-child .btn {
    flex: 1;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Phone-friendly admin layout */
@media (max-width: 640px) {
  .admin-page {
    padding-top: 28px;
  }

  #admin-login-card,
  .admin-sidebar,
  .admin-panel > .card {
    padding: 20px;
    border-radius: 22px;
  }

  #admin-login-form .btn,
  .admin-sidebar .btn,
  #expected-form .btn {
    width: 100%;
  }

  .admin-layout,
  .admin-panel {
    gap: 14px;
  }

  .admin-sidebar .form {
    gap: 10px;
  }

  .admin-page .section-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .admin-page .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .admin-page .stat {
    min-width: 0;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .admin-page .stat strong {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    overflow-wrap: anywhere;
  }

  .admin-page .stat span {
    font-size: .72rem;
  }

  .admin-page .info-card {
    padding: 18px;
    border-radius: 18px;
  }

  .admin-page ul {
    padding-left: 18px;
    overflow-wrap: anywhere;
  }

  .admin-rsvp-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .admin-rsvp-table table,
  .admin-rsvp-table tbody,
  .admin-rsvp-table tr,
  .admin-rsvp-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-rsvp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .admin-rsvp-table tr {
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(98, 106, 89, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
  }

  .admin-rsvp-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(98, 106, 89, .1);
    overflow-wrap: anywhere;
  }

  .admin-rsvp-table td:last-child {
    border-bottom: 0;
  }

  .admin-rsvp-table td::before {
    content: attr(data-label);
    color: var(--olive-dark);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .admin-media-row {
    padding: 14px 0;
    gap: 10px;
  }

  .admin-media-row > div:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .admin-media-row > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }

  .admin-media-row > div:last-child .btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 10px;
  }
}
