:root {
  --ink: #26211f;
  --muted: #665f59;
  --soft: #fff8ee;
  --surface: #fffdf8;
  --line: rgba(54, 45, 38, 0.12);
  --accent: #d95745;
  --accent-strong: #b84335;
  --gold: #edbd52;
  --mint: #82b7a7;
  --sky: #8db8d0;
  --shadow: 0 14px 34px rgba(73, 54, 38, 0.13);
  --radius: 22px;
  color-scheme: light;
}

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

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

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff4e6 0%, #fffaf3 46%, #f2f8f4 100%);
}

body.is-locked {
  height: 100svh;
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.25rem, 12vw, 3.45rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  font-weight: 800;
}

h3 {
  font-size: 1.12rem;
}

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  padding: 14px 14px 44px;
  color: #fffdf8;
  background: url("photos/photo-01.svg") center/cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 23, 22, 0.78), rgba(28, 23, 22, 0.64)),
    linear-gradient(120deg, rgba(184, 67, 53, 0.28), rgba(38, 33, 31, 0.36));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.brand,
.nav-download,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 52%;
  min-height: 40px;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  font-weight: 800;
}

.brand span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent), var(--sky));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.32);
}

.nav-download {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 11px 13px;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero-content {
  display: grid;
  align-content: end;
  width: min(100%, 1120px);
  min-height: 520px;
  margin: 0 auto;
  padding-top: 46px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffdfad;
}

.hero-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.92);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #f07a61, #edbd52);
  color: #241a15;
  box-shadow: 0 14px 28px rgba(170, 70, 48, 0.24);
}

.js-disk-link[aria-disabled="true"] {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.72;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #fffdf8;
}

.section,
.final-section {
  width: min(100% - 28px, 1120px);
  max-width: 1120px;
  margin: 0 auto;
}

.section {
  padding: 42px 0;
}

.section-heading,
.section-copy {
  max-width: 720px;
}

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

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.thanks-section {
  display: grid;
  gap: 18px;
}

.thanks-card,
.moment-card,
.final-panel {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.thanks-card {
  border-radius: var(--radius);
  padding: 20px;
}

.thanks-card p,
.final-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.gallery-section {
  overflow: hidden;
}

.gallery-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0 0 34px;
}

.gallery-swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.gallery-swiper .swiper-wrapper {
  align-items: stretch;
}

.gallery-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.swiper-slide {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.photo-card {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.photo-caption {
  padding: 13px 15px 15px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
}

.gallery-control {
  display: none;
}

.swiper-pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: rgba(38, 33, 31, 0.28);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--accent);
}

.moments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.moment-card {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border-radius: 20px;
}

.moment-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(217, 87, 69, 0.12);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.moment-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.final-section {
  padding: 10px 0 42px;
}

.final-panel {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
}

.final-panel p {
  margin-top: 2px;
}

.final-panel .button {
  margin-top: 2px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, 190px);
  aspect-ratio: 1;
  border: 1px dashed rgba(38, 33, 31, 0.26);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(38, 33, 31, 0.07) 10px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(38, 33, 31, 0.07) 10px, transparent 1px) 0 0 / 24px 24px,
    rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.qr-placeholder span {
  font-size: 1.65rem;
  font-weight: 800;
}

.qr-placeholder small {
  max-width: 110px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.lightbox {
  width: min(940px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #171413;
  color: #fffdf8;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.lightbox::backdrop {
  background: rgba(24, 20, 18, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: #171413;
}

.lightbox p {
  margin: 0;
  padding: 13px 16px 16px;
  color: rgba(255, 253, 248, 0.82);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.site-lock {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(38, 33, 31, 0.76), rgba(38, 33, 31, 0.7)),
    url("photos/photo-01.svg") center/cover no-repeat;
}

.site-lock-panel {
  width: min(100%, 520px);
  padding: clamp(24px, 8vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  color: var(--ink);
  text-align: center;
}

.site-lock-panel p {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-lock-panel h1 {
  max-width: none;
  font-size: clamp(2rem, 10vw, 3.35rem);
}

.site-lock-panel span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 520px) {
  .hero {
    padding-inline: 22px;
  }

  .hero-actions {
    display: flex;
    max-width: none;
  }

  .button {
    width: auto;
  }

  .gallery-swiper:not(.swiper-initialized) .swiper-wrapper,
  .moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  h1 {
    max-width: 13ch;
    font-size: clamp(3.4rem, 7vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2.25rem, 4.6vw, 3.7rem);
  }

  .hero {
    padding: 20px 28px 58px;
  }

  .hero-content {
    min-height: 600px;
  }

  .hero-lead {
    font-size: 1.12rem;
  }

  .section {
    padding: 56px 0;
  }

  .thanks-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
  }

  .gallery-shell {
    padding-bottom: 40px;
  }

  .gallery-control {
    position: absolute;
    top: calc(50% - 32px);
    z-index: 3;
    display: block;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: var(--shadow);
    cursor: pointer;
  }

  .gallery-control::before {
    content: "";
    position: absolute;
    inset: 14px 12px;
    border-top: 3px solid var(--ink);
    border-left: 3px solid var(--ink);
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-prev::before {
    transform: rotate(-45deg);
  }

  .gallery-next {
    right: 8px;
  }

  .gallery-next::before {
    transform: rotate(135deg);
  }

  .gallery-swiper {
    padding-inline: 58px;
  }

  .final-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 32px;
  }

  .final-panel .eyebrow,
  .final-panel h2,
  .final-panel p,
  .final-panel .button {
    grid-column: 1;
  }

  .qr-placeholder {
    grid-column: 2;
    grid-row: 1 / span 4;
    width: 170px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 64px 0;
  }

  .moments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .moment-card {
    padding: 22px;
  }

  .final-section {
    padding-bottom: 56px;
  }
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
