/* =========================================================
   S & L — THE WEDDING FILES
   A playful, editorial wedding archive curated by a cat.
   ========================================================= */

:root {
  color-scheme: light;
  --cream: #f6efe3;
  --cream-2: #fbf7ef;
  --paper: #f0e6d5;
  --ink: #211d1a;
  --ink-soft: #413a33;
  --muted: #776f64;
  --wine: #6b2b2b;
  --wine-deep: #2a1717;
  --gold: #b08a55;
  --gold-light: #d8c09a;
  --sage: #7f8b73;
  --sage-deep: #4d5747;
  --line: rgba(33, 29, 26, 0.16);
  --line-strong: rgba(33, 29, 26, 0.3);
  --line-light: rgba(246, 239, 227, 0.18);
  --serif: "Bodoni Moda", "Noto Serif SC", "Songti SC", "STSong", "STZhongsong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --hand: "Caveat", "Noto Serif SC", cursive;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 32px 80px -64px rgba(33, 29, 26, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--wine) var(--cream);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--cream);
  border-radius: 99px;
  background: var(--wine);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.5), transparent 28%),
    var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 300;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--wine);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
}

.mono {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hand-note {
  font-family: var(--hand);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--wine);
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--wine), var(--gold));
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Shared layout ---------- */

.section {
  position: relative;
  padding: clamp(88px, 10vw, 152px) clamp(22px, 6vw, 92px);
  overflow: hidden;
  overflow: clip;
}

.section-inner {
  position: relative;
  width: min(100%, 1320px);
  margin-inline: auto;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 32px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-eyebrow > span:first-child {
  color: var(--wine);
}

.section-eyebrow .rule {
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-eyebrow-light {
  color: rgba(246, 239, 227, 0.58);
}

.section-eyebrow-light > span:first-child {
  color: var(--gold-light);
}

.display {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.12;
}

.display em {
  color: var(--wine);
  font-style: normal;
}

.display-light {
  color: var(--cream);
}

.display-light em {
  color: var(--gold-light);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(246, 239, 227, 0.9);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled::before,
.menu-open .site-header::before {
  border-color: var(--line);
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(100%, 1480px);
  margin-inline: auto;
  padding: 19px clamp(22px, 4.5vw, 64px);
  transition: padding 0.4s var(--ease);
}

.site-header.is-scrolled .header-inner {
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 122px;
  gap: 4px;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-mark em {
  margin: 0 0.07em;
  color: var(--wine);
  font-size: 0.82em;
  font-style: italic;
}

.brand-sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.17em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.site-nav a {
  position: relative;
  padding: 7px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.stamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.stamp-pill .icon {
  width: 14px;
  height: 14px;
  color: var(--wine);
  fill: currentColor;
}

.stamp-pill small {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.stamp-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.stamp-pill:hover .icon {
  color: var(--gold-light);
}

.stamp-pill:hover small {
  color: rgba(246, 239, 227, 0.62);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: max(92px, 13vh) clamp(24px, 8vw, 64px) 30px;
  background: var(--cream);
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0s;
}

.mobile-menu-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: auto;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-top > span:last-child {
  color: var(--wine);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu nav a small {
  color: var(--wine);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.mobile-menu-note {
  margin-top: 30px;
  margin-bottom: auto;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 22px;
}

/* ---------- Case rail ---------- */

.case-rail {
  position: fixed;
  top: 50%;
  right: 17px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
}

.rail-word {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.rail-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.rail-dot.is-earned {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--cream);
}

.rail-count {
  color: var(--wine);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(116px, 14vh, 152px) clamp(22px, 6vw, 92px) 46px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: radial-gradient(rgba(33, 29, 26, 0.11) 0.7px, transparent 0.7px);
  background-size: 23px 23px;
  opacity: 0.3;
  mask-image: linear-gradient(90deg, black, transparent 45%, transparent 55%, black);
  -webkit-mask-image: linear-gradient(90deg, black, transparent 45%, transparent 55%, black);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(176, 138, 85, 0.11), transparent 65%);
  pointer-events: none;
}

.hero-ghost {
  position: absolute;
  right: 4%;
  bottom: 8%;
  z-index: 0;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(160px, 27vw, 420px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.7;
  opacity: 0.12;
  -webkit-text-stroke: 1px var(--wine);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  width: min(100%, 1340px);
  margin-inline: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.file-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tape-stamp {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--wine);
  color: var(--wine);
  font-size: 7px;
  letter-spacing: 0.18em;
  transform: rotate(-2deg);
}

.hero-kicker {
  margin-top: clamp(28px, 4vh, 46px);
  margin-left: 3px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.hero-title {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.09em;
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(47px, 5.9vw, 86px);
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
}

.hero-title span {
  display: inline-block;
}

.hero-title em {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 0.72em;
  font-style: italic;
  font-weight: 400;
}

.hero-title span:first-child {
  animation: title-in 0.9s var(--ease-out) 0.2s both;
}

.hero-title span:last-child {
  animation: title-in 0.9s var(--ease-out) 0.34s both;
}

.hero-title em {
  animation: soft-in 0.8s var(--ease) 0.5s both;
}

.hero-tagline {
  margin-top: 22px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 23px);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.hero-desc {
  max-width: 460px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.035em;
  line-height: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  border-color: var(--wine);
  background: var(--wine);
  box-shadow: 4px 4px 0 rgba(107, 43, 43, 0.15);
  transform: translate(-1px, -1px);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  border-color: var(--wine);
  background: var(--wine);
}

.btn-primary:hover {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(176, 138, 85, 0.24);
}

.btn-small {
  min-height: 38px;
  padding: 10px 14px;
  font-size: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.text-link:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.hero-meta {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(30px, 4.5vh, 46px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-meta > div {
  padding: 14px 22px;
  border-right: 1px solid var(--line);
}

.hero-meta > div:first-child {
  padding-left: 0;
}

.hero-meta > div:last-child {
  border-right: 0;
}

.hero-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.hero-meta strong {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* hero visual */

.hero-visual {
  position: relative;
  min-height: min(70vh, 720px);
  perspective: 1200px;
}

.orbit-wrap {
  position: absolute;
  top: 49%;
  left: 51%;
  width: min(42vw, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(176, 138, 85, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-wrap::before {
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(176, 138, 85, 0.38);
  border-radius: 50%;
  content: "";
  animation: orbit-spin 60s linear infinite;
}

.orbit-text {
  display: none;
}

.polaroid-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 455px);
  height: 590px;
  transform: translate(-50%, -50%) rotateX(0) rotateY(0);
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

.polaroid {
  position: absolute;
  margin: 0;
  padding: 10px 10px 37px;
  border: 1px solid rgba(33, 29, 26, 0.12);
  background: var(--cream-2);
  box-shadow: 0 22px 50px -34px rgba(33, 29, 26, 0.65);
  transform-origin: center;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    var(--paper);
  overflow: hidden;
}

.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) sepia(0.08) contrast(1.01);
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.polaroid:hover .polaroid-img img {
  filter: saturate(0.92) sepia(0.03) contrast(1.01);
  transform: scale(1.035);
}

.polaroid figcaption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1;
}

.polaroid figcaption span:last-child {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.pol-a {
  top: 40px;
  left: 72px;
  z-index: 2;
  width: 310px;
  height: 395px;
  transform: rotate(3.2deg);
}

.pol-b {
  bottom: 22px;
  left: 0;
  z-index: 3;
  width: 225px;
  height: 285px;
  transform: rotate(-7deg);
}

.pol-c {
  top: 76px;
  right: 8px;
  z-index: 1;
  width: 230px;
  height: 295px;
  transform: rotate(7.5deg);
}

.pol-a .polaroid-img {
  aspect-ratio: 4 / 5;
}

.pol-b .polaroid-img {
  aspect-ratio: 4 / 5;
}

.pol-c .polaroid-img {
  aspect-ratio: 4 / 5;
}

.tape {
  position: absolute;
  z-index: 4;
  width: 74px;
  height: 20px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 6px),
    rgba(213, 188, 146, 0.62);
  border: 1px solid rgba(176, 138, 85, 0.2);
  box-shadow: 0 2px 5px rgba(33, 29, 26, 0.06);
  opacity: 0.9;
}

.tape-a {
  top: -7px;
  left: 29px;
  transform: rotate(-5deg);
}

.tape-b {
  top: -8px;
  right: 22px;
  transform: rotate(4deg);
}

.tape-c {
  top: 12px;
  left: -20px;
  transform: rotate(-22deg);
}

.round-stamp {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px solid var(--wine);
  border-radius: 50%;
  color: var(--wine);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-10deg);
}

.round-stamp::before {
  position: absolute;
  inset: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.5;
}

.round-stamp small {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  letter-spacing: 0.09em;
}

.hero-stamp {
  position: absolute;
  right: 23px;
  bottom: 66px;
  z-index: 5;
  background: rgba(246, 239, 227, 0.7);
  box-shadow: 0 0 0 8px rgba(246, 239, 227, 0.3);
}

.cat-peek {
  position: absolute;
  bottom: -15px;
  left: 48%;
  z-index: 6;
  width: 132px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}

.cat-peek svg {
  width: 100%;
  height: auto;
  color: var(--ink);
  filter: drop-shadow(0 10px 14px rgba(33, 29, 26, 0.12));
}

.cat-peek:hover {
  transform: translateX(-50%) translateY(-4px) rotate(-2deg);
}

.cat-tag {
  display: inline-block;
  margin-top: -4px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--wine);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}

.cat-bubble {
  position: absolute;
  right: 15px;
  bottom: 126px;
  z-index: 8;
  max-width: 220px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  background: var(--cream-2);
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 20px;
  line-height: 1.2;
  box-shadow: 4px 4px 0 rgba(107, 43, 43, 0.08);
  transform: rotate(-2deg);
  animation: bubble-in 0.3s var(--ease);
}

.cat-bubble::after {
  position: absolute;
  right: 28px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--cream-2);
  content: "";
  transform: rotate(45deg);
}

.hero-visual > .hand-note {
  position: absolute;
  right: 6px;
  bottom: -6px;
  z-index: 7;
  max-width: 210px;
  font-size: 21px;
  text-align: right;
  transform: rotate(-3deg);
}

.hero-visual > .hand-note span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.doodle {
  position: absolute;
  color: var(--wine);
  pointer-events: none;
}

.doodle-star {
  top: 40px;
  right: 26px;
  width: 30px;
  height: 30px;
  opacity: 0.6;
  transform: rotate(12deg);
}

.doodle-squiggle {
  bottom: 214px;
  left: -26px;
  width: 82px;
  height: 34px;
  color: var(--gold);
  opacity: 0.7;
}

.scroll-cue {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin: 32px auto 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 30px;
  background: var(--line);
  overflow: hidden;
}

.scroll-line::after {
  position: absolute;
  top: -45%;
  left: 0;
  width: 100%;
  height: 45%;
  content: "";
  background: var(--wine);
  animation: scroll-line 2.6s var(--ease) infinite;
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 48px;
  background: var(--wine);
  color: var(--cream);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 30px;
  padding-right: 30px;
  white-space: nowrap;
}

.ticker-group span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.ticker-group i {
  color: var(--gold-light);
  font-size: 7px;
  font-style: normal;
}

/* ---------- Brief ---------- */

.brief {
  background:
    radial-gradient(circle at 90% 15%, rgba(176, 138, 85, 0.11), transparent 34%),
    linear-gradient(180deg, var(--cream) 0%, #f9f3e8 60%, var(--cream) 100%);
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(42px, 7vw, 108px);
}

.brief-aside {
  position: sticky;
  top: 105px;
}

.brief-aside .display {
  font-size: clamp(38px, 4.4vw, 64px);
  margin-bottom: 18px;
}

.brief-hand {
  margin-bottom: 26px;
  font-size: 26px;
}

.brief-stamp {
  position: relative;
  margin-bottom: 40px;
  background: rgba(246, 239, 227, 0.5);
}

.brief-photo {
  position: relative;
  width: min(100%, 345px);
  margin: 0;
  padding: 9px 9px 38px;
  background: var(--cream-2);
  border: 1px solid rgba(33, 29, 26, 0.1);
  box-shadow: var(--shadow);
  transform: rotate(-3.5deg);
}

.brief-photo > .tape {
  top: -9px;
  left: 42%;
  transform: rotate(2deg);
}

.brief-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.75) sepia(0.12) contrast(1.02);
}

.brief-photo figcaption {
  position: absolute;
  right: 11px;
  bottom: 12px;
  left: 11px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1;
}

.letter-card {
  position: relative;
  padding: clamp(30px, 4.6vw, 58px);
  border: 1px solid rgba(33, 29, 26, 0.18);
  background:
    linear-gradient(90deg, rgba(176, 138, 85, 0.04) 1px, transparent 1px) 38px 0 / 1px 100% no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 45%),
    var(--cream-2);
  box-shadow: var(--shadow);
  transform: rotate(-0.35deg);
}

.letter-card::before {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 29px;
  width: 1px;
  content: "";
  background: rgba(107, 43, 43, 0.12);
}

.letter-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(34px, 5vw, 54px);
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.letter-lead {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 2.7vw, 37px);
  line-height: 1.4;
}

.letter-card > p:not(.letter-lead) {
  max-width: 620px;
  margin-bottom: 15px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.035em;
  line-height: 2.1;
}

.letter-sign {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.letter-sign i {
  color: var(--wine);
  font-size: 24px;
  font-style: italic;
}

.letter-sign small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.letter-ps {
  max-width: 500px;
  margin-top: 30px;
  padding-top: 12px;
  padding-right: 86px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-family: var(--hand);
  font-size: 21px;
  line-height: 1.25;
}

.letter-ps b {
  color: var(--wine);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.letter-seal {
  position: absolute;
  right: clamp(22px, 4vw, 44px);
  bottom: clamp(20px, 3.2vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 49% 51% 47% 53% / 53% 48% 52% 47%;
  background: radial-gradient(circle at 35% 28%, #8a4a43, #6b2b2b 55%, #481d1d);
  box-shadow: 0 8px 18px -12px rgba(107, 43, 43, 0.7);
  color: var(--cream);
  transform: rotate(9deg);
}

.letter-seal svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.letter-seal small {
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.08em;
}

.detail-kicker {
  margin-bottom: 8px;
  color: var(--wine);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}
/* ---------- Vault ---------- */

.vault {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, var(--cream) 0%, #f2eadc 100%);
}

.vault-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.vault-note {
  max-width: 220px;
  padding-bottom: 7px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
  text-align: right;
}

.vault-shell {
  position: relative;
  margin-top: clamp(32px, 4vw, 46px);
}

.vault-gallery {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(33, 29, 26, 0.18);
  background: var(--cream-2);
  box-shadow: var(--shadow);
  animation: gallery-in 0.8s var(--ease-out) both;
}

.vault-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}

.gallery-item {
  min-width: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: photo-in 0.8s var(--ease-out) forwards;
}

.gallery-item:nth-child(2) { animation-delay: .06s; }
.gallery-item:nth-child(3) { animation-delay: .12s; }
.gallery-item:nth-child(4) { animation-delay: .18s; }
.gallery-item:nth-child(5) { animation-delay: .24s; }
.gallery-item:nth-child(6) { animation-delay: .3s; }
.gallery-item:nth-child(7) { animation-delay: .36s; }
.gallery-item:nth-child(8) { animation-delay: .42s; }

.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 7px;
  border: 1px solid rgba(33, 29, 26, 0.13);
  background: var(--cream);
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) sepia(0.08) contrast(1.01);
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.gallery-media.is-missing::after {
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  content: "IMAGE LOST / 年糕吃了";
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.35), transparent 55%),
    var(--paper);
  color: var(--wine);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
}

.gallery-button:hover .gallery-media img {
  filter: saturate(0.95) sepia(0.02) contrast(1.01);
  transform: scale(1.045);
}

.gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 7px;
  border: 1px solid rgba(246, 239, 227, 0.7);
  background: rgba(33, 29, 26, 0.38);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-button:hover .gallery-zoom,
.gallery-button:focus-visible .gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  color: var(--wine);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.gallery-note {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.5;
}

.gallery-foot {
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--hand);
  font-size: 21px;
  text-align: right;
}

/* ---------- Details ---------- */

.details {
  background:
    radial-gradient(circle at 88% 18%, rgba(176, 138, 85, 0.12), transparent 30%),
    var(--paper);
}

.details-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.details-side {
  max-width: 240px;
  padding-bottom: 7px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
  text-align: right;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: stretch;
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(30px, 4vw, 46px);
}

.invite-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 410px;
  border: 1px solid rgba(33, 29, 26, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 40%),
    var(--cream-2);
  box-shadow: var(--shadow);
  transform: rotate(-0.25deg);
  overflow: hidden;
}

.ticket-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 12px;
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 192, 154, 0.14), transparent 34%),
    var(--wine);
  color: var(--cream);
}

.ticket-stub::after {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  content: "";
  background-image: linear-gradient(var(--cream) 50%, transparent 50%);
  background-size: 1px 10px;
}

.stub-top {
  color: rgba(246, 239, 227, 0.58);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.ticket-stub strong {
  margin: 12px 0 1px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(83px, 8vw, 118px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.72;
}

.stub-month {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.stub-time {
  margin-top: 26px;
  padding-top: 9px;
  border-top: 1px solid rgba(246, 239, 227, 0.25);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.ticket-main {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 38px);
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-right: 104px;
  color: var(--wine);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.ticket-main h3 {
  margin-top: 17px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 34px);
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.ticket-address {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.ticket-info {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.ticket-info > div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 13px;
  align-items: baseline;
}

.ticket-info dt {
  color: var(--wine);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ticket-info dd {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.ticket-barcode {
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 82px;
  height: 23px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4px, var(--ink) 4px 5px, transparent 5px 8px);
  opacity: 0.36;
}

.ticket-approved {
  position: absolute;
  top: 17px;
  right: 21px;
  padding: 5px 8px;
  border: 1px solid var(--wine);
  color: var(--wine);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  transform: rotate(5deg);
}

/* scratch */

.scratch-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 85% 10%, rgba(216, 192, 154, 0.12), transparent 34%),
    var(--wine-deep);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.scratch-card .detail-kicker {
  color: var(--gold-light);
}

.scratch-card h3 {
  margin-top: 8px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.scratch-card > p:nth-of-type(1) {
  max-width: 320px;
  margin-top: 10px;
  color: rgba(246, 239, 227, 0.65);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
}

.scratch-wrap {
  position: relative;
  min-height: 195px;
  margin-top: 22px;
  border: 1px solid rgba(246, 239, 227, 0.2);
  overflow: hidden;
}

.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 30%, rgba(176, 138, 85, 0.16), transparent 58%),
    var(--wine-deep);
  text-align: center;
}

.scratch-reveal > p:first-child {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.scratch-reveal strong {
  margin: 7px 0 5px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.scratch-reveal p:not(:first-child) {
  color: rgba(246, 239, 227, 0.7);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
}

.scratch-reveal span {
  margin-top: 9px;
  color: rgba(246, 239, 227, 0.45);
  font-family: var(--hand);
  font-size: 18px;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.5s var(--ease);
}

.scratch-canvas.is-cleared {
  opacity: 0;
  pointer-events: none;
}

.scratch-button {
  align-self: flex-start;
  margin-top: 14px;
  color: var(--gold-light);
  border-bottom-color: rgba(246, 239, 227, 0.3);
  font-size: 8px;
}

.scratch-button:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.scratch-button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* dress widget */

.dress-widget {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.48);
}

.dress-cat {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--wine);
}

.dress-cat svg {
  width: 27px;
  height: 27px;
  fill: none;
}

.dress-copy {
  flex: 1;
}

.dress-copy > p:first-child {
  margin-bottom: 3px;
  color: var(--wine);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.dress-copy > p:last-child {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ---------- RSVP ---------- */

.rsvp {
  background:
    radial-gradient(circle at 4% 20%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(180deg, var(--cream) 0%, #f2e8d8 100%);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(42px, 7vw, 102px);
}

.rsvp-copy {
  position: sticky;
  top: 112px;
}

.rsvp-lede {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 2;
}

.rsvp-lede strong {
  color: var(--wine);
  font-weight: 400;
}

.rsvp-meta {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.rsvp-meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.rsvp-meta span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.rsvp-meta strong {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: right;
}

.rsvp-hand {
  margin-top: 30px;
  font-size: 20px;
}

.rsvp-hand span {
  color: var(--muted);
  font-size: 17px;
}

.rsvp-card {
  position: relative;
  padding: clamp(26px, 4.2vw, 48px);
  border: 1px solid rgba(33, 29, 26, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    var(--cream-2);
  box-shadow: var(--shadow);
  transform: rotate(0.25deg);
}

.rsvp-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 138, 85, 0.18);
  content: "";
  pointer-events: none;
}

.rsvp-card::after {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 50px;
  border: 1px dashed rgba(107, 43, 43, 0.3);
  content: "S&L";
  color: rgba(107, 43, 43, 0.38);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 50px;
  text-align: center;
  transform: rotate(6deg);
}

.rsvp-card form {
  position: relative;
  z-index: 1;
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--wine);
}

.field {
  position: relative;
  margin-bottom: 18px;
}

.field label,
.attendance-group legend,
.reason-group legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.field label > span,
.attendance-group legend > span {
  color: var(--wine);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  outline: 0;
  transition: border-color 0.3s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(119, 111, 100, 0.68);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
}

.field select {
  padding-right: 25px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23776f64' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 10px 7px;
  cursor: pointer;
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--wine);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

.field input[aria-invalid="true"] {
  border-color: #9a4a3e;
}

.field-error {
  margin-top: 5px;
  color: #94493c;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.5;
}

.attendance-group {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.attendance-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.attendance-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.attendance-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.attendance-choice > span {
  display: block;
  padding: 12px 13px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.16);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.attendance-choice strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.attendance-choice small {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.5;
}

.attendance-choice input:checked + span {
  border-color: var(--wine);
  background: rgba(107, 43, 43, 0.07);
  box-shadow: inset 0 0 0 1px var(--wine);
}

.attendance-choice input:focus-visible + span {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.attendance-choice input:checked + span strong::after {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--wine);
  content: "";
  vertical-align: 2px;
}

.attendance-group[aria-invalid="true"] .attendance-choice > span {
  border-color: rgba(154, 74, 62, 0.6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-row.is-hidden {
  display: none;
}

.reason-group {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.reason-group legend small {
  margin-left: 5px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reason-chips label {
  position: relative;
  cursor: pointer;
}

.reason-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.reason-chips span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.2;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.reason-chips span:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.reason-chips input:checked + span {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--cream);
}

.reason-chips input:focus-visible + span {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.field-textarea {
  margin-bottom: 16px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.submit-button .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.submit-button:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.submit-button:hover .icon {
  transform: translateX(3px);
}

.form-note {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.rsvp-success {
  position: relative;
  z-index: 1;
  padding: 26px 4px 4px;
  text-align: center;
  outline: 0;
  animation: success-in 0.6s var(--ease-out) both;
}

.success-stamp {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid var(--wine);
  color: var(--wine);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  transform: rotate(-4deg);
}

.rsvp-success > .mono {
  color: var(--wine);
}

.rsvp-success h3 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 3.1vw, 40px);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.rsvp-success > p:not(.mono) {
  max-width: 390px;
  margin-inline: auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 2;
}

.success-meta {
  margin: 22px 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: clamp(72px, 8vw, 112px) clamp(22px, 6vw, 92px) 26px;
  background:
    radial-gradient(circle at 50% 108%, rgba(176, 138, 85, 0.15), transparent 40%),
    var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: clamp(22px, 6vw, 92px);
  left: clamp(22px, 6vw, 92px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 192, 154, 0.45), transparent);
}

.footer-inner {
  position: relative;
  width: min(100%, 1320px);
  margin-inline: auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
}

.footer-script {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(25px, 2.8vw, 38px);
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-note {
  max-width: 320px;
  color: rgba(246, 239, 227, 0.55);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 2;
  text-align: right;
}

.footer-names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  padding: clamp(42px, 6vw, 66px) 0 clamp(30px, 4vw, 44px);
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(66px, 13vw, 190px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.footer-names i {
  color: var(--gold);
  font-size: 0.6em;
  font-style: italic;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: rgba(246, 239, 227, 0.46);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

.footer-share {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer-share:hover {
  border-color: currentColor;
  color: var(--gold-light);
}

.footer-cat {
  position: absolute;
  right: 0;
  bottom: -5px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(246, 239, 227, 0.38);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.footer-cat svg {
  width: 27px;
  height: 27px;
  fill: none;
}

/* ---------- Dialogs / toast ---------- */

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(26, 18, 16, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 92vh;
  background: var(--ink);
  color: var(--cream);
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
  color: var(--gold-light);
}

.lightbox-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(246, 239, 227, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
}

.lightbox-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.lightbox-body figure {
  min-width: 0;
  text-align: center;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 66vh;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox-body figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 3px 2px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 13px;
  text-align: left;
}

.lightbox-body figcaption small {
  color: var(--gold-light);
  font-size: 6px;
}

.lightbox-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(246, 239, 227, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 18px;
  line-height: 1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox-arrow:hover {
  background: var(--cream);
  color: var(--ink);
}

.lightbox-thumbs {
  display: flex;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  padding: 0 14px 15px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.lightbox-thumbs:empty {
  display: none;
}

.lightbox-thumb {
  flex: none;
  width: 52px;
  height: 64px;
  padding: 3px;
  border: 1px solid rgba(246, 239, 227, 0.2);
  background: transparent;
  opacity: 0.52;
  cursor: pointer;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) sepia(0.08);
}

.lightbox-thumb:hover,
.lightbox-thumb.is-active {
  border-color: var(--gold-light);
  opacity: 1;
}

.lightbox-thumb.is-active {
  box-shadow: 0 0 0 1px var(--gold-light) inset;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 300;
  max-width: min(90vw, 380px);
  padding: 12px 17px;
  border: 1px solid rgba(246, 239, 227, 0.24);
  background: var(--wine-deep);
  color: var(--cream);
  font-family: var(--hand);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

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

@keyframes title-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes soft-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes scroll-line {
  0% { transform: translateY(-130%); }
  55%, 100% { transform: translateY(240%); }
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px) rotate(-2deg) scale(0.97); }
  to { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
}

@keyframes stamp-in {
  0% { opacity: 0; transform: translateX(-50%) rotate(-10deg) scale(1.8); }
  55% { opacity: 1; transform: translateX(-50%) rotate(-12deg) scale(0.94); }
  100% { opacity: 1; transform: translateX(-50%) rotate(-12deg) scale(1); }
}

@keyframes gallery-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes photo-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes unlock-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.55; transform: scale(0.9) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .hero-title {
    font-size: clamp(45px, 5.7vw, 77px);
  }

  .case-rail {
    display: none;
  }

  .hero-inner {
    gap: 34px;
  }

  .pol-a {
    left: 55px;
  }

  .pol-c {
    right: -5px;
  }
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(44px, 5.8vw, 68px);
  }

  .polaroid-stack {
    transform: translate(-50%, -50%) scale(0.9);
  }

  .hero-stamp {
    right: 0;
  }

.details-grid {
    grid-template-columns: 1fr;
  }

  .scratch-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    column-gap: 28px;
    align-items: start;
  }

  .scratch-card .detail-kicker,
  .scratch-card h3,
  .scratch-card > p {
    grid-column: 1;
  }

  .scratch-wrap {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin-top: 0;
  }

  .scratch-button {
    grid-column: 1;
  }
}

@media (max-width: 960px) {
  .site-nav,
  .stamp-pill {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
    padding-bottom: 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    text-align: center;
  }

  .file-line,
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-kicker {
    margin-left: 0;
  }

  .hero-title {
    justify-content: center;
    font-size: clamp(47px, 9vw, 74px);
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-meta {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 620px;
  }

  .polaroid-stack {
    transform: translate(-50%, -50%) scale(0.96);
  }

  .scroll-cue {
    margin-top: 28px;
  }

  .brief-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .brief-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    column-gap: 40px;
    align-items: start;
  }

  .brief-aside .section-eyebrow {
    grid-column: 1 / -1;
  }

  .brief-aside .display,
  .brief-hand {
    grid-column: 1;
  }

  .brief-stamp {
    grid-column: 1;
    margin-top: 6px;
  }

  .brief-photo {
    grid-column: 2;
    grid-row: 2 / span 3;
    width: 100%;
    margin-top: 0;
  }


  .vault-head,
  .details-head {
    align-items: flex-start;
  }

.stamp-row {
    justify-content: space-between;
    gap: 12px;
  }

.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rsvp-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .rsvp-copy {
    position: static;
  }

  .rsvp-meta {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 70px 20px;
  }

  .hero {
    padding: 108px 20px 52px;
  }

  .hero-ghost {
    right: -4%;
    bottom: 18%;
    font-size: 46vw;
    opacity: 0.08;
  }

  .hero-kicker {
    margin-top: 27px;
    font-size: 12px;
  }

  .hero-title {
    flex-wrap: nowrap;
    gap: 0.05em;
    font-size: clamp(38px, 10.6vw, 58px);
  }

  .hero-tagline {
    margin-top: 16px;
    font-size: 17px;
  }

  .hero-desc {
    font-size: 12px;
  }

  .hero-actions {
    gap: 16px;
    margin-top: 23px;
  }

  .hero-meta > div {
    padding: 11px 13px;
  }

  .hero-meta > div:first-child {
    padding-left: 0;
  }

  .hero-meta > div:last-child {
    padding-right: 0;
  }

  .hero-meta strong {
    font-size: 12px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-inner {
    gap: 34px;
  }

  .polaroid-stack {
    transform: translate(-50%, -50%) scale(0.76);
  }

  .cat-peek {
    top: -18px;
    right: 2px;
    bottom: auto;
    left: auto;
    width: 104px;
    transform: none;
  }

  .cat-peek:hover {
    transform: translateY(-3px) rotate(-2deg);
  }

  .cat-tag {
    font-size: 6px;
  }

  .cat-bubble {
    top: 82px;
    right: 0;
    bottom: auto;
    max-width: 185px;
    font-size: 18px;
  }

  .hero-visual > .hand-note {
    right: 4px;
    bottom: -32px;
    font-size: 18px;
  }

  .scroll-cue {
    font-size: 7px;
  }

  .ticker {
    height: 42px;
  }

  .ticker-group {
    gap: 22px;
    padding-right: 22px;
  }

  .ticker-group span {
    font-size: 8px;
  }

  .brief-aside {
    display: block;
  }

  .brief-stamp {
    margin-top: 22px;
  }

  .brief-photo {
    width: min(100%, 330px);
    margin-top: 28px;
  }

  .brief-photo {
    display: none;
  }

  .letter-card {
    padding: 28px 22px;
  }

  .letter-card::before {
    left: 14px;
  }

  .letter-top {
    margin-bottom: 30px;
  }

  .letter-ps {
    padding-right: 60px;
  }

  .letter-seal {
    right: 18px;
    bottom: 17px;
    width: 58px;
    height: 58px;
  }


  .vault-head,
  .details-head {
    display: block;
  }


  .vault-note,
  .details-side {
    max-width: 100%;
    margin-top: 19px;
    padding-bottom: 0;
    text-align: left;
  }

.vault-gallery {
    padding: 18px 14px;
  }

  .vault-gallery-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .gallery-media {
    padding: 5px;
  }

  .gallery-note {
    font-size: 10px;
  }

  .gallery-foot {
    text-align: left;
    font-size: 19px;
  }

  .invite-ticket {
    grid-template-columns: 105px minmax(0, 1fr);
    min-height: 0;
  }

  .ticket-stub strong {
    font-size: 78px;
  }

  .stub-top {
    font-size: 6px;
  }

  .ticket-main {
    padding: 24px 18px;
  }

  .ticket-top {
    padding-right: 0;
  }

  .ticket-approved {
    display: none;
  }

  .ticket-main h3 {
    margin-top: 18px;
    font-size: 25px;
  }

  .ticket-info {
    margin-top: 18px;
  }

  .ticket-info > div {
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }

  .ticket-barcode {
    right: 18px;
    bottom: 21px;
  }

  .scratch-card {
    display: block;
    padding: 24px 19px;
  }

  .scratch-wrap {
    margin-top: 19px;
  }

  .scratch-card h3 {
    font-size: 35px;
  }

  .dress-widget {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 15px;
  }

  .dress-copy {
    min-width: 0;
    flex: 1;
  }

  .dress-widget > .text-link {
    width: 100%;
    margin-left: 59px;
  }

  .rsvp-card {
    padding: 26px 19px;
  }

  .rsvp-card::after {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .attendance-row {
    grid-template-columns: 1fr;
  }

  .rsvp-hand {
    font-size: 19px;
  }

  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-footer::before {
    right: 20px;
    left: 20px;
  }

  .footer-top {
    display: block;
  }

  .footer-note {
    margin-top: 17px;
    text-align: left;
  }

  .footer-names {
    padding: 38px 0 28px;
    font-size: clamp(55px, 14.5vw, 86px);
  }

  .footer-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 16px;
    padding-top: 15px;
    font-size: 6px;
  }

  .footer-bottom a {
    width: 100%;
    margin-top: 5px;
  }

  .footer-cat {
    position: static;
    margin-top: 22px;
  }

  .lightbox-body {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 4px;
    padding: 8px;
  }

  .lightbox-arrow {
    width: 31px;
    height: 31px;
    font-size: 15px;
  }

  .lightbox-body figcaption {
    display: block;
    font-size: 12px;
  }

  .lightbox-body figcaption small {
    display: block;
    margin-top: 3px;
  }

  .lightbox-thumbs {
    justify-content: flex-start;
    gap: 5px;
    padding: 0 8px 9px;
  }

  .lightbox-thumb {
    width: 42px;
    height: 52px;
    padding: 2px;
  }

  .footer-share {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 37px;
  }

  .hero-meta strong {
    font-size: 11px;
  }

  .hero-meta span {
    font-size: 6px;
  }

  .polaroid-stack {
    transform: translate(-50%, -50%) scale(0.68);
  }

  .hero-visual {
    min-height: 444px;
  }

.invite-ticket {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .ticket-stub strong {
    font-size: 66px;
  }

  .ticket-main h3 {
    font-size: 22px;
  }

  .footer-names {
    font-size: 54px;
  }
}

@media (max-height: 620px) {
  .mobile-menu {
    padding-top: 82px;
    padding-bottom: 24px;
  }

  .mobile-menu nav a {
    padding: 12px 0;
    font-size: 27px;
  }

  .mobile-menu-note {
    margin-top: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .fx-canvas {
    display: none;
  }

  .ticker-track {
    animation: none;
  }
}

/* =========================================================
   POSTER HERO / 请你搂席
   ========================================================= */

.poster-hero {
  --poster-red: #8b1717;
  --poster-red-deep: #5c0b0b;
  --poster-red-bright: #a51f1f;
  --poster-paper: #fbf3e4;
  --poster-ink: #2b1511;
  --poster-gold: #c39a5e;
  --poster-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --poster-sans: "Archivo Black", "Arial Black", Impact, sans-serif;
  position: relative;
  padding: 96px clamp(14px, 4vw, 60px) 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.4), transparent 32%),
    radial-gradient(circle at 82% 14%, rgba(201, 163, 94, 0.18), transparent 26%),
    radial-gradient(circle at 18% 82%, rgba(139, 23, 23, 0.1), transparent 30%),
    radial-gradient(circle at 50% 48%, rgba(255, 247, 230, 0.32), transparent 55%),
    radial-gradient(circle at 92% 78%, rgba(96, 28, 20, 0.08), transparent 42%),
    #e6d9c4;
}

.poster-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(82, 39, 22, 0.2) 0.6px, transparent 0.8px);
  background-size: 5px 5px;
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

.poster-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(139, 23, 23, 0.28);
  background-color: var(--poster-paper);
  background-image:
    linear-gradient(90deg, rgba(105, 45, 24, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(105, 45, 24, 0.035) 1px, transparent 1px);
  background-size: 7px 7px;
  box-shadow:
    0 34px 80px rgba(61, 25, 17, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.poster-shell::before {
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 1px solid rgba(139, 23, 23, 0.14);
  content: "";
  pointer-events: none;
}

.poster-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px clamp(12px, 2vw, 22px);
  border-top: 3px double rgba(255, 247, 231, 0.55);
  border-bottom: 3px double rgba(255, 247, 231, 0.55);
  background: var(--poster-red);
  color: var(--poster-paper);
}

.poster-banner-cn {
  font-family: var(--poster-display);
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.poster-banner-en {
  flex: none;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  opacity: 0.78;
}

.poster-head {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3.2vw, 38px) 0 0;
  text-align: center;
}

.poster-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--poster-red);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.poster-file span {
  padding: 3px 6px;
  border: 1px solid var(--poster-red);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.poster-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.02em;
  margin: 8px 0 4px;
  color: var(--poster-red);
  font-family: var(--poster-display);
  font-size: clamp(68px, 13vw, 174px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-rendering: geometricPrecision;
}

.poster-title span,
.poster-title strong {
  font-weight: 900;
}

.poster-title strong {
  color: var(--poster-red-deep);
}

.poster-subtitle {
  margin: 18px 0 0;
  color: var(--poster-red-deep);
  font-family: var(--poster-sans);
  font-size: clamp(12px, 1.65vw, 22px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.poster-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 4.4vw, 72px);
  align-items: center;
  margin-top: clamp(20px, 2.6vw, 32px);
  padding: clamp(20px, 3vw, 34px) 0 clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(139, 23, 23, 0.24);
}

.poster-copy {
  min-width: 0;
}

.poster-extra {
  display: inline-block;
  margin: 0 0 4px;
  color: var(--poster-red-bright);
  font-family: var(--poster-display);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.85;
  transform: rotate(-5deg);
  transform-origin: left center;
}

.poster-couple {
  margin: 6px 0 0;
  color: var(--poster-red);
  font-family: var(--poster-display);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.poster-couple span {
  color: var(--poster-gold);
  font-family: var(--serif);
  font-style: italic;
}

.poster-news {
  width: fit-content;
  margin: 2px 0 0;
  background: linear-gradient(transparent 64%, rgba(139, 23, 23, 0.14) 64%);
  color: var(--poster-red);
  font-family: var(--poster-display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.poster-names {
  margin: 17px 0 0;
  color: var(--poster-ink);
  font-family: var(--poster-display);
  font-size: clamp(24px, 2.9vw, 40px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.poster-names em {
  color: var(--poster-red);
  font-family: var(--serif);
  font-weight: 400;
}

.poster-desc {
  max-width: 430px;
  margin: 12px 0 0;
  color: #5d4d43;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.9;
}

.poster-invite {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 480px;
  margin-top: 20px;
}

.poster-happiness {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  width: clamp(92px, 8vw, 116px);
  padding: 8px 7px;
  border: 2px solid var(--poster-red-deep);
  background: var(--poster-red);
  color: var(--poster-paper);
  font-family: var(--poster-display);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(92, 11, 11, 0.14);
  transform: rotate(-1.5deg);
}

.poster-happiness span + span {
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid rgba(251, 243, 228, 0.28);
}

.poster-date-card {
  min-width: 0;
  flex: 1;
  padding: 9px 13px 10px;
  border: 1px solid var(--poster-red);
  background: rgba(255, 250, 240, 0.62);
}

.poster-date-label {
  display: block;
  margin-bottom: 3px;
  color: var(--poster-red);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.poster-date-card strong {
  display: block;
  color: var(--poster-ink);
  font-family: var(--poster-sans);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.poster-date-card strong i {
  margin-left: 4px;
  color: var(--poster-red);
  font-family: var(--mono);
  font-size: 0.64em;
  font-style: normal;
  letter-spacing: 0.02em;
}

.poster-date-card small {
  display: block;
  margin-top: 5px;
  color: #6d5b4e;
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.poster-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px 20px;
  margin-top: 20px;
}

.poster-actions .btn-primary {
  background: var(--poster-red);
  box-shadow: 4px 4px 0 rgba(92, 11, 11, 0.16);
}

.poster-actions .btn-primary:hover {
  background: var(--poster-red-deep);
}

.poster-actions .text-link {
  color: var(--poster-red);
}

.poster-picture {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: clamp(480px, 48vw, 620px);
  place-items: center;
}

.poster-picture::before {
  position: absolute;
  inset: 7% 3%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.2), transparent 66%);
  content: "";
  filter: blur(20px);
  pointer-events: none;
}

.poster-red-panel {
  position: absolute;
  top: 5%;
  left: 4%;
  width: 92%;
  height: 86%;
  border: 1px solid rgba(251, 243, 228, 0.3);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 247, 231, 0.17) 1px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(145deg, var(--poster-red-bright), var(--poster-red-deep));
  box-shadow: 18px 20px 0 rgba(92, 11, 11, 0.1);
  clip-path: polygon(4% 0, 100% 5%, 95% 97%, 0 92%);
  transform: rotate(-7deg);
}

.poster-photo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(74%, 380px);
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 9px 9px 13px;
  border: 1px solid rgba(92, 11, 11, 0.25);
  background: #fcf7ec;
  box-shadow:
    12px 17px 0 rgba(92, 11, 11, 0.15),
    0 20px 40px rgba(66, 28, 16, 0.12);
  transform: rotate(3.2deg);
}

.poster-photo img {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  filter: saturate(0.92) contrast(1.05);
}

.poster-photo::before {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 88px;
  height: 19px;
  background: rgba(210, 185, 142, 0.54);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.poster-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  color: var(--poster-red);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.poster-outline {
  position: absolute;
  z-index: 3;
  color: transparent;
  font-family: var(--poster-sans);
  font-size: clamp(15px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(62, 6, 6, 0.28));
  -webkit-text-stroke: 1.4px rgba(251, 243, 228, 0.86);
}

.poster-outline-a {
  top: 22%;
  left: 8%;
  transform: rotate(-18deg);
}

.poster-outline-b {
  right: 6%;
  bottom: 40%;
  color: var(--poster-paper);
  text-shadow: 0 2px 0 rgba(92, 11, 11, 0.2);
  transform: rotate(12deg);
  -webkit-text-stroke: 0;
}

.poster-photo-stamp {
  position: absolute;
  top: 4%;
  left: 8%;
  z-index: 4;
  display: flex;
  width: clamp(76px, 8vw, 98px);
  height: clamp(76px, 8vw, 98px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px solid var(--poster-paper);
  border-radius: 50%;
  background: var(--poster-red);
  box-shadow: 0 0 0 1px var(--poster-red-deep);
  color: var(--poster-paper);
  font-family: var(--poster-display);
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-13deg);
}

.poster-photo-stamp small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 4.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.poster-star {
  position: absolute;
  z-index: 4;
  color: var(--poster-gold);
  font-size: clamp(15px, 2vw, 25px);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.poster-star-a {
  top: 2%;
  right: 10%;
  transform: rotate(12deg);
}

.poster-star-b {
  bottom: 8%;
  left: 5%;
  font-size: clamp(10px, 1.2vw, 15px);
  transform: rotate(-10deg);
}

.poster-star-c {
  top: 48%;
  right: 2%;
  font-size: clamp(9px, 1vw, 13px);
  transform: rotate(20deg);
}

.poster-picture .cat-peek {
  top: auto;
  right: 17%;
  bottom: 17%;
  left: auto;
  width: 96px;
  transform: none;
}

.poster-picture .cat-peek:hover {
  transform: translateY(-4px) rotate(-2deg);
}

.poster-picture .cat-peek svg {
  color: var(--poster-ink);
  filter: drop-shadow(0 9px 12px rgba(50, 14, 10, 0.16));
}

.poster-picture .cat-tag {
  border-color: rgba(139, 23, 23, 0.35);
  background: var(--poster-paper);
  color: var(--poster-red);
}

.poster-picture .cat-bubble {
  top: auto;
  right: 17%;
  bottom: 228px;
  border-color: rgba(139, 23, 23, 0.34);
  background: var(--poster-paper);
  color: var(--poster-red-deep);
}

.poster-picture .cat-bubble::after {
  border-color: rgba(139, 23, 23, 0.34);
  background: var(--poster-paper);
}

.poster-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-top: 17px;
  border-top: 1px solid rgba(139, 23, 23, 0.3);
}

.poster-slogan {
  margin: 0;
  color: var(--poster-red);
  font-family: var(--poster-display);
  font-size: clamp(31px, 6.2vw, 92px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.poster-slogan em {
  color: var(--poster-red-deep);
  font-style: normal;
}

.poster-foot-meta {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 4px;
  color: #756354;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-align: right;
}

.poster-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 16px auto 0;
  color: var(--poster-red);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.poster-scroll i {
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(139, 23, 23, 0.4);
}

.poster-scroll:hover {
  color: var(--poster-red-deep);
}

@media (max-width: 1180px) {
  .poster-stage {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
  }

  .poster-title {
    font-size: clamp(68px, 13.2vw, 150px);
  }

  .poster-picture {
    min-height: 530px;
  }

  .poster-photo {
    width: min(76%, 360px);
  }

  .poster-outline-a {
    left: -3%;
  }

  .poster-outline-b {
    right: -4%;
  }
}

@media (max-width: 980px) {
  .poster-hero {
    padding-top: 88px;
  }

  .poster-shell {
    padding: 14px;
  }

  .poster-stage {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 24px;
  }

  .poster-picture {
    order: -1;
    width: 100%;
    max-width: 590px;
    min-height: 500px;
    margin: 0 auto;
  }

  .poster-copy {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
  }

  .poster-title {
    font-size: clamp(68px, 14vw, 140px);
  }

  .poster-picture .cat-bubble {
    right: 2%;
  }

  .poster-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .poster-foot-meta {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .poster-hero {
    padding: 82px 10px 24px;
  }

  .poster-shell {
    padding: 10px;
  }

  .poster-shell::before {
    inset: 5px;
  }

  .poster-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
  }

  .poster-banner-cn {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .poster-banner-en {
    font-size: 6px;
  }

  .poster-head {
    padding-top: 18px;
  }

  .poster-file {
    gap: 7px;
    font-size: 6px;
    letter-spacing: 0.08em;
  }

  .poster-title {
    gap: 0;
    margin-top: 8px;
    font-size: clamp(62px, 17.5vw, 92px);
  }

  .poster-subtitle {
    margin-top: 11px;
    font-size: clamp(11px, 3.2vw, 15px);
  }

  .poster-stage {
    gap: 22px;
    margin-top: 17px;
    padding: 18px 0 22px;
  }

  .poster-picture {
    min-height: 420px;
  }

  .poster-red-panel {
    left: 5%;
    width: 90%;
  }

  .poster-photo {
    width: min(76%, 300px);
    padding: 7px 7px 10px;
    box-shadow: 8px 12px 0 rgba(92, 11, 11, 0.15);
  }

  .poster-photo-stamp {
    top: 0;
    left: 3%;
    width: 68px;
    height: 68px;
    font-size: 10px;
  }

  .poster-photo-stamp small {
    font-size: 4px;
  }

  .poster-outline {
    font-size: clamp(12px, 4vw, 20px);
  }

  .poster-outline-a {
    top: 26%;
    left: 0;
  }

  .poster-outline-b {
    right: 0;
    bottom: 35%;
  }

  .poster-picture .cat-peek {
    right: 0;
    bottom: -12px;
    width: 80px;
  }

  .poster-picture .cat-tag {
    font-size: 5px;
  }

  .poster-picture .cat-bubble {
    right: 0;
    bottom: 78px;
    max-width: 170px;
    padding: 9px 12px;
    font-size: 18px;
  }

  .poster-extra {
    font-size: 48px;
  }

  .poster-couple {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .poster-news {
    font-size: 21px;
  }

  .poster-names {
    margin-top: 13px;
    font-size: 25px;
  }

  .poster-desc {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.8;
  }

  .poster-invite {
    gap: 8px;
    margin-top: 16px;
  }

  .poster-happiness {
    width: 88px;
    padding: 6px;
    font-size: 11px;
  }

  .poster-date-card {
    padding: 7px 9px 8px;
  }

  .poster-date-card strong {
    font-size: 18px;
  }

  .poster-date-card small {
    font-size: 8px;
  }

  .poster-actions {
    gap: 12px 16px;
    margin-top: 17px;
  }

  .poster-actions .btn {
    padding: 12px 16px;
    font-size: 10px;
  }

  .poster-actions .text-link {
    font-size: 10px;
  }

  .poster-foot {
    padding-top: 14px;
  }

  .poster-slogan {
    font-size: clamp(28px, 8.1vw, 48px);
  }

  .poster-foot-meta {
    gap: 2px;
    font-size: 5px;
  }

  .poster-scroll {
    margin-top: 13px;
    font-size: 5px;
  }

  .poster-scroll i {
    width: 28px;
  }
}

@media (max-width: 380px) {
  .poster-title {
    font-size: 59px;
  }

  .poster-picture {
    min-height: 380px;
  }

  .poster-photo {
    width: 78%;
  }

  .poster-invite {
    flex-wrap: wrap;
  }

  .poster-date-card {
    flex-basis: 190px;
  }

  .poster-slogan {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-hero *,
  .poster-hero *::before,
  .poster-hero *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   BACKGROUND MUSIC
   ========================================================= */

.bg-music {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(139, 23, 23, 0.34);
  background: rgba(251, 243, 228, 0.94);
  box-shadow:
    0 14px 30px -18px rgba(54, 17, 12, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  color: var(--wine);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.music-toggle[hidden] {
  display: none;
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px -17px rgba(54, 17, 12, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.music-toggle:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.music-disc {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #3c1713 0 1px, #210b09 1px 3px);
  box-shadow:
    0 0 0 1px rgba(139, 23, 23, 0.34),
    inset 0 0 0 3px rgba(246, 239, 227, 0.04);
  transition: transform 0.4s var(--ease);
}

.music-disc::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(216, 192, 154, 0.34);
  border-radius: 50%;
  content: "";
}

.music-disc-label {
  position: relative;
  z-index: 2;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--wine-deep);
  font-family: var(--mono);
  font-size: 3.5px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.music-disc-hole {
  position: absolute;
  z-index: 3;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cream);
}

.music-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}

.music-kicker {
  color: #8b7258;
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.music-state {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.music-eq {
  display: flex;
  height: 12px;
  flex: none;
  align-items: flex-end;
  gap: 2px;
  margin-left: 2px;
}

.music-eq i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--wine);
  opacity: 0.5;
  transform-origin: bottom;
}

.music-eq i:nth-child(2) {
  height: 8px;
}

.music-eq i:nth-child(3) {
  height: 6px;
}

.music-eq i:nth-child(4) {
  height: 10px;
}

.music-toggle.is-playing .music-disc {
  animation: music-spin 9s linear infinite;
}

.music-toggle.is-playing .music-eq i {
  opacity: 1;
  animation: music-level 0.82s ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-eq i:nth-child(2) {
  animation-delay: 0.18s;
}

.music-toggle.is-playing .music-eq i:nth-child(3) {
  animation-delay: 0.36s;
}

.music-toggle.is-playing .music-eq i:nth-child(4) {
  animation-delay: 0.54s;
}

.music-toggle.is-prompt {
  animation: music-prompt 2.4s ease-in-out infinite;
}

.music-prompt {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 89;
  max-width: 220px;
  padding: 8px 11px;
  border: 1px solid rgba(139, 23, 23, 0.34);
  background: var(--cream-2);
  box-shadow: 4px 4px 0 rgba(92, 11, 11, 0.08);
  color: var(--wine);
  font-family: var(--hand);
  font-size: 19px;
  line-height: 1.12;
  transform: rotate(-2deg);
}

.music-prompt[hidden] {
  display: none;
}

.music-prompt::after {
  position: absolute;
  right: 22px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(139, 23, 23, 0.34);
  border-bottom: 1px solid rgba(139, 23, 23, 0.34);
  background: var(--cream-2);
  content: "";
  transform: rotate(45deg);
}

@media (max-width: 620px) {
  .music-toggle {
    right: 12px;
    bottom: 12px;
    gap: 7px;
    padding: 5px 8px 5px 5px;
  }

  .music-disc {
    width: 30px;
    height: 30px;
  }

  .music-disc::before {
    inset: 4px;
  }

  .music-disc-label {
    width: 11px;
    height: 11px;
    font-size: 3px;
  }

  .music-kicker {
    font-size: 4.5px;
  }

  .music-state {
    font-size: 9px;
  }

  .music-eq {
    height: 10px;
  }

  .music-prompt {
    right: 12px;
    bottom: 62px;
    max-width: 205px;
    padding: 7px 9px;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .music-kicker {
    display: none;
  }

  .music-toggle {
    gap: 6px;
  }
}

@keyframes music-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes music-level {
  0% {
    transform: scaleY(0.35);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes music-prompt {
  0%, 100% {
    box-shadow:
      0 14px 30px -18px rgba(54, 17, 12, 0.65),
      0 0 0 0 rgba(139, 23, 23, 0);
  }
  50% {
    box-shadow:
      0 14px 30px -18px rgba(54, 17, 12, 0.65),
      0 0 0 5px rgba(139, 23, 23, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle,
  .music-disc,
  .music-eq i {
    animation: none !important;
  }
}

/* =========================================================
   HEARTS, LACE & ATMOSPHERE
   ========================================================= */

.inline-heart {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin: 0 0.16em;
  fill: currentColor;
  vertical-align: -0.04em;
}

.tiny-heart {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  fill: currentColor;
  vertical-align: -1px;
}

.poster-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 9px 0 0;
  color: var(--poster-red);
  opacity: 0.72;
}

.poster-hearts i {
  display: block;
  width: clamp(26px, 4vw, 50px);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.poster-hearts i:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.poster-hearts svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.poster-hearts svg:nth-of-type(2) {
  width: 12px;
  height: 12px;
  color: var(--poster-gold);
}

.poster-love {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.poster-love span {
  position: absolute;
  display: block;
  color: var(--poster-red);
  opacity: 0.22;
  animation: love-drift 11s ease-in-out infinite alternate;
}

.poster-love svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.poster-love-a {
  top: 18%;
  left: 3.5%;
  width: 19px;
  height: 19px;
  animation-delay: -2s;
}

.poster-love-b {
  top: 12%;
  right: 4%;
  width: 12px;
  height: 12px;
  color: var(--poster-gold) !important;
  opacity: 0.36 !important;
  animation-delay: -6s;
}

.poster-love-c {
  top: 53%;
  left: 2%;
  width: 10px;
  height: 10px;
  opacity: 0.16 !important;
  animation-delay: -4s;
}

.poster-love-d {
  right: 2.4%;
  bottom: 25%;
  width: 16px;
  height: 16px;
  color: var(--poster-gold) !important;
  opacity: 0.3 !important;
  animation-delay: -8s;
}

.poster-love-e {
  bottom: 17%;
  left: 7%;
  width: 9px;
  height: 9px;
  opacity: 0.16 !important;
  animation-delay: -1s;
}

.poster-love-f {
  top: 37%;
  right: 3.5%;
  width: 9px;
  height: 9px;
  opacity: 0.14 !important;
  animation-delay: -9s;
}

.poster-photo::after {
  position: absolute;
  right: -7px;
  bottom: -7px;
  z-index: 10;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(251, 243, 228, 0.8);
  border-radius: 50%;
  background: var(--poster-red);
  box-shadow: 0 3px 8px rgba(64, 10, 10, 0.24);
  color: var(--poster-paper);
  content: "♥";
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  transform: rotate(8deg);
}

.poster-hearts svg:nth-of-type(2) {
  animation: heart-beat 2.8s ease-in-out infinite;
  transform-origin: center;
}

.detail-kicker::before,
.letter-top > span:first-child::before {
  display: inline-block;
  margin-right: 5px;
  color: currentColor;
  content: "♥";
  font-family: var(--serif);
  font-size: 0.9em;
  line-height: 1;
}

@keyframes heart-beat {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.24);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.13);
  }
  48% {
    transform: scale(1);
  }
}

.poster-photo-stamp .stamp-heart {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto 2px;
  fill: currentColor;
  opacity: 0.8;
}

.poster-date-label {
  display: flex;
  align-items: center;
}

.poster-shell::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 35%, transparent 58%, rgba(110, 43, 24, 0.065) 100%);
  content: "";
  pointer-events: none;
}

:is(.poster-shell, .letter-card, .dress-widget, .couple-whispers, .rsvp-card) > .lace-frame {
  position: absolute;
  inset: 6px;
  z-index: 9;
  border: 15px solid transparent;
  border-image: var(--lace-wine, url("assets/lace-wine.svg")) 24 round;
  opacity: 0.84;
  pointer-events: none;
}

.lace-frame.is-tight {
  inset: 3px;
  border-width: 10px;
}

:is(.letter-card, .invite-ticket, .scratch-card, .rsvp-card) {
  position: relative;
}

.section-eyebrow::before {
  display: inline-block;
  color: var(--wine);
  content: "♥";
  font-family: var(--serif);
  font-size: 8px;
  line-height: 1;
  transform: translateY(-1px);
}

.section-eyebrow-light::before {
  color: var(--gold-light);
}

.footer-heart {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  fill: var(--gold-light);
  vertical-align: -1px;
}

@keyframes love-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.9);
  }
  50% {
    transform: translate3d(4px, -9px, 0) rotate(7deg) scale(1.06);
  }
  100% {
    transform: translate3d(-3px, 3px, 0) rotate(-4deg) scale(1);
  }
}

@media (max-width: 620px) {
  .poster-hearts {
    margin-top: 7px;
  }

  .poster-hearts i {
    width: 23px;
  }

  .poster-hearts svg {
    width: 7px;
    height: 7px;
  }

  .poster-hearts svg:nth-of-type(2) {
    width: 9px;
    height: 9px;
  }

  .lace-frame {
    border-width: 11px;
  }

  .lace-frame.is-tight {
    border-width: 8px;
  }

  .poster-love span {
    opacity: 0.16;
  }

  .poster-photo::after {
    right: -4px;
    bottom: -4px;
    width: 19px;
    height: 19px;
    font-size: 9px;
  }

  .poster-hearts svg:nth-of-type(2) {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-love span {
    animation: none;
  }
}

/* ---------- Romantic keepsakes & candlelit paper ---------- */

.poster-shell {
  padding: clamp(20px, 2.5vw, 32px);
  isolation: isolate;
  background-image:
    radial-gradient(ellipse at 4% 29%, rgba(223, 151, 139, 0.13), transparent 40%),
    radial-gradient(ellipse at 93% 76%, rgba(221, 180, 100, 0.14), transparent 37%),
    linear-gradient(90deg, rgba(105, 45, 24, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(105, 45, 24, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 7px 7px, 7px 7px;
}

.poster-lace {
  inset: 3px;
  border-width: 19px;
  opacity: 0.8;
}

.poster-shell::before {
  inset: 22px;
  border-color: rgba(139, 23, 23, 0.12);
}

.wedding-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.65;
  animation: candle-glow 12s ease-in-out infinite alternate;
}

.glow-rose {
  top: 10%;
  left: -22%;
  background: radial-gradient(circle, rgba(208, 128, 117, 0.2), transparent 68%);
}

.glow-gold {
  right: -20%;
  bottom: 0;
  background: radial-gradient(circle, rgba(230, 184, 99, 0.25), transparent 68%);
  animation-delay: -6s;
}

.ambient-mote {
  position: absolute;
  top: var(--mote-y, 20%);
  left: var(--mote-x, 12%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c6a266;
  box-shadow: 0 0 9px 3px rgba(216, 184, 120, 0.35);
  animation: warm-mote 7s ease-in-out infinite;
}

.ambient-mote:nth-of-type(3) { --mote-x: 8%; --mote-y: 28%; animation-delay: -1s; }
.ambient-mote:nth-of-type(4) { --mote-x: 29%; --mote-y: 15%; animation-delay: -4s; }
.ambient-mote:nth-of-type(5) { --mote-x: 87%; --mote-y: 26%; animation-delay: -2s; }
.ambient-mote:nth-of-type(6) { --mote-x: 93%; --mote-y: 48%; animation-delay: -6s; }
.ambient-mote:nth-of-type(7) { --mote-x: 5%; --mote-y: 64%; animation-delay: -3s; }
.ambient-mote:nth-of-type(8) { --mote-x: 43%; --mote-y: 78%; animation-delay: -5s; }
.ambient-mote:nth-of-type(9) { --mote-x: 71%; --mote-y: 89%; animation-delay: -1.5s; }
.ambient-mote:nth-of-type(10) { --mote-x: 25%; --mote-y: 93%; animation-delay: -3.5s; }

.love-garland {
  position: absolute;
  top: 24px;
  width: clamp(90px, 13vw, 170px);
  height: auto;
  color: var(--poster-red);
  opacity: 0.6;
  pointer-events: none;
  transform-origin: top center;
  animation: garland-sway 8s ease-in-out infinite alternate;
}

.garland-left { left: 1%; }
.garland-right { right: 0; scale: -1 1; animation-delay: -4s; }

.poster-hearts {
  gap: 9px;
  margin-top: 14px;
}

.poster-love span { opacity: 0.38; }
.poster-love-a { top: 27%; left: 6%; width: 23px; height: 23px; }
.poster-love-b { top: 19%; right: 7%; width: 17px; height: 17px; }
.poster-love-c { top: 48%; left: 44%; width: 13px; height: 13px; }
.poster-love-e { left: 40%; bottom: 16%; width: 15px; height: 15px; }
.poster-love-g { top: 24%; left: 15%; width: 60px; height: 60px; rotate: -18deg; opacity: 0.27 !important; }
.poster-love-h { right: 8%; bottom: 12%; width: 80px; height: 80px; rotate: 16deg; opacity: 0.28 !important; }
.poster-love-i { top: 34%; left: 48%; width: 9px; height: 9px; animation-delay: -5s; }
.poster-love-j { top: 82%; left: 4%; width: 11px; height: 11px; animation-delay: -7s; }

.poster-banner {
  box-shadow: 0 4px 14px rgba(100, 20, 20, 0.1);
}

.poster-stage {
  border-top-style: dashed;
}

.poster-date-card {
  position: relative;
  padding: 14px 17px;
}

.poster-photo {
  padding: 16px 16px 19px;
  background: #fffaef;
}

.poster-photo::before {
  z-index: 11;
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 235, 0.2) 0 1px, transparent 1px 4px),
    rgba(210, 185, 142, 0.65);
}

.picture-love-sketch {
  position: absolute;
  top: 1%;
  right: 6%;
  z-index: 3;
  width: 66px;
  height: 66px;
  color: var(--poster-red);
  rotate: 16deg;
  pointer-events: none;
}

.photo-love-note {
  position: absolute;
  right: 7%;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--poster-red);
  font-family: var(--hand);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.2;
  rotate: -5deg;
  pointer-events: none;
}

.photo-love-note svg { width: 13px; height: 13px; }

.section-romance {
  position: absolute;
  top: 25px;
  left: 50%;
  width: clamp(160px, 19vw, 230px);
  color: var(--wine);
  opacity: 0.48;
  transform: translateX(-50%);
  pointer-events: none;
}

.section-romance svg { display: block; width: 100%; height: auto; }

.section > .section-inner { z-index: 1; }

.section::after {
  position: absolute;
  right: -140px;
  bottom: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 162, 114, 0.12), transparent 68%);
  content: "";
  pointer-events: none;
}

.brief-photo { padding: 15px 15px 38px; }
.brief-photo img { height: auto; }
.letter-love-flourish { display: block; width: 160px; height: 43px; margin: 26px auto 0; color: var(--wine); opacity: 0.58; }
.rsvp-love-sketch { width: 104px; height: 104px; margin: 28px 0 0 16px; color: var(--wine); opacity: 0.5; rotate: -13deg; }

:is(.dress-widget, .gallery-media) {
  position: relative;
}

:is(.btn, .submit-button, .poster-happiness) { position: relative; }
.btn { padding-inline: 23px; }
.btn-small { padding-inline: 17px; }
.letter-card,
.rsvp-card {
  box-shadow: 0 22px 60px -35px rgba(103, 51, 34, 0.3), 0 2px 8px rgba(122, 77, 48, 0.035);
}

.poster-foot { border-top: 3px double rgba(139, 23, 23, 0.28); }

@keyframes candle-glow {
  from { opacity: 0.4; transform: translate3d(-3%, 0, 0) scale(0.95); }
  to { opacity: 0.85; transform: translate3d(3%, 3%, 0) scale(1.08); }
}

@keyframes warm-mote {
  0%, 100% { opacity: 0.15; transform: translate3d(0, 6px, 0) scale(0.65); }
  50% { opacity: 0.8; transform: translate3d(5px, -14px, 0) scale(1); }
}

@keyframes garland-sway {
  from { transform: rotate(-3deg); }
  to { transform: rotate(3deg); }
}

@media (min-width: 981px) {
  .poster-title { padding-inline: 12%; }
}

@media (max-width: 980px) {
  .love-garland { top: 14px; width: 84px; opacity: 0.44; }
  .poster-love-g { top: 14%; left: 6%; width: 40px; height: 40px; }
  .poster-love-h { right: 4%; bottom: 17%; width: 48px; height: 48px; }
  .picture-love-sketch { right: 7%; width: 50px; height: 50px; }
}

@media (max-width: 620px) {
  .poster-shell { padding: 17px; }
  .poster-shell::before { inset: 13px; }
  .poster-lace { border-width: 12px; inset: 2px; }
  .poster-banner { padding-inline: 8px; }
  .poster-banner-cn { font-size: 10px; letter-spacing: 0.035em; }
  .poster-file { gap: 4px; font-size: 5px; letter-spacing: 0.02em; }
  .poster-title { font-size: clamp(52px, 16.8vw, 90px); }
  .love-garland { display: none; }
  .poster-love-g { top: 14%; left: 3%; width: 32px; height: 32px; }
  .poster-love-h { bottom: 15%; width: 38px; height: 38px; opacity: 0.2 !important; }
  .poster-love-a { left: 7%; top: 12%; width: 10px; height: 10px; }
  .poster-love-c, .poster-love-i, .poster-love-j { display: none; }
  .poster-photo { padding: 12px 12px 15px; }
  .picture-love-sketch { top: 1%; right: 2%; width: 43px; height: 43px; }
  .photo-love-note { right: auto; bottom: -8px; left: 4px; max-width: calc(100% - 84px); font-size: 16px; }
  .photo-love-note svg { width: 9px; height: 9px; flex: none; }
  .poster-date-card { padding: 12px; }
  .poster-invite { gap: 8px; }
  .poster-date-card strong { font-size: 18px; }
  .poster-date-card strong i { margin-left: 0; }
  .poster-date-label { font-size: 5px; letter-spacing: 0.02em; }
  .poster-date-label .tiny-heart { width: 6px; height: 6px; margin-right: 1px; }
  .poster-happiness { width: 79px; font-size: 11px; }
  .section-romance { top: 20px; width: 155px; }
  .rsvp-love-sketch { width: 65px; height: 65px; margin-top: 20px; }
  .letter-love-flourish { width: 130px; margin-top: 18px; }
  .ambient-mote:nth-of-type(even) { display: none; }
}

@media (max-width: 380px) {
  .poster-shell { padding: 14px; }
  .poster-title { font-size: clamp(46px, 16.3vw, 62px); }
  .poster-banner-cn { font-size: 9px; }
  .poster-invite { flex-wrap: wrap; }
  .poster-happiness { flex: 1; flex-direction: row; gap: 12px; }
  .poster-happiness span + span { margin: 0; padding: 0; border: 0; }
  .poster-date-card { flex-basis: 100%; }
  .poster-date-label { font-size: 6px; }
  .poster-date-card strong { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow, .ambient-mote, .love-garland { animation: none; }
  .ambient-mote { opacity: 0.45; }
}

/* ---------- A handwritten note from the couple ---------- */

.couple-whispers {
  --whisper-coral: #b94f40;
  position: relative;
  margin-top: clamp(40px, 6vw, 76px);
  padding: clamp(32px, 5vw, 68px);
  border: 1px solid rgba(185, 79, 64, .2);
  background: radial-gradient(ellipse at top left, rgba(255, 223, 209, .4), transparent 55%), #fff5ef;
  color: #674d40;
  box-shadow: 0 20px 60px -45px rgba(107, 43, 43, .28);
}
.couple-whispers > .lace-frame { opacity: .4; }
.whispers-head { max-width: 660px; margin-inline: auto; text-align: center; }
.whispers-eyebrow { margin-bottom: 18px; color: var(--whisper-coral); font-family: var(--mono); font-size: 9px; letter-spacing: .17em; }
.whispers-title-wrap { position: relative; display: inline-block; padding: 5px 20px 12px; isolation: isolate; }
.whispers-title-wrap::before {
  position: absolute;
  z-index: -1;
  top: 38%;
  right: 1px;
  bottom: 0;
  left: 1px;
  border-radius: 45% 32% 42% 25% / 40% 45% 35% 42%;
  background: #e0edf0;
  transform: rotate(-2deg);
  content: "";
}
.whispers-title-wrap h3 { color: var(--whisper-coral); font-family: var(--hand); font-size: clamp(34px, 3.9vw, 54px); font-weight: 500; letter-spacing: .07em; line-height: 1.45; }
.whispers-bow { position: absolute; top: 4px; left: -50px; width: 64px; height: 77px; color: var(--whisper-coral); transform: rotate(-12deg); }
.whispers-heart { position: absolute; top: -8px; right: -36px; width: 40px; height: 40px; color: var(--whisper-coral); transform: rotate(12deg); }
.whispers-intro { margin-top: 22px; font-family: var(--serif); font-size: 14px; line-height: 1.9; }
.whispers-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 74px); row-gap: 30px; margin: 36px 0 0; padding: 0; list-style: none; }
.whispers-note { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 14px; padding-top: 26px; border-top: 1px dashed rgba(185, 79, 64, .24); }
.whispers-emoji { padding-top: 2px; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 26px; line-height: 1.4; }
.whispers-note h4 { margin-bottom: 12px; color: #8a4337; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.6; }
.whispers-note p { font-family: var(--hand); font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.whispers-foot { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 22px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(185, 79, 64, .18); }
.whispers-foot p { font-family: var(--hand); font-size: 19px; line-height: 1.8; }
.whispers-foot p > span { display: block; margin-top: 8px; font-family: var(--serif); font-size: 15px; }
.whispers-foot i { padding-inline: 5px; color: var(--whisper-coral); font-size: 21px; }
.whispers-link { display: inline-block; padding: 10px 0 6px; border-bottom: 1px solid currentColor; color: #8a4337; font-size: 13px; text-decoration: none; }
.whispers-link > span { margin-left: 12px; }
.whispers-link:hover { color: var(--whisper-coral); }
.whispers-link:focus-visible { outline: 2px solid var(--whisper-coral); outline-offset: 5px; }
.couple-whispers, #message { scroll-margin-top: 90px; }

@media (max-width: 760px) {
  .couple-whispers { padding: 32px 24px; }
  .couple-whispers > .lace-frame { border-width: 10px; }
  .whispers-title-wrap { padding-inline: 9px; }
  .whispers-title-wrap h3 { font-size: clamp(25px, 6.9vw, 36px); }
  .whispers-bow { top: 7px; left: -30px; width: 36px; height: 44px; }
  .whispers-heart { top: -9px; right: -23px; width: 25px; height: 25px; }
  .whispers-eyebrow { font-size: 8px; letter-spacing: .09em; }
  .whispers-intro { margin-top: 18px; font-size: 13px; }
  .whispers-list { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 26px; }
  .whispers-note { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding-top: 22px; }
  .whispers-emoji { font-size: 21px; }
  .whispers-note h4 { margin-bottom: 8px; font-size: 16px; }
  .whispers-note p { font-size: 16px; line-height: 1.95; }
  .whispers-foot { align-items: start; gap: 12px; margin-top: 28px; padding-top: 22px; }
  .whispers-foot p { font-size: 17px; }
}

/* ---------- Gathering guide ---------- */

.gathering {
  background: radial-gradient(ellipse at 0 100%, rgba(216, 192, 154, .08), transparent 50%), var(--wine-deep);
  color: var(--cream);
}
.gathering .section-romance { color: var(--gold-light); }
.gathering-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.gathering-intro { color: rgba(246, 239, 227, .7); font-family: var(--serif); font-size: 15px; line-height: 2; }
.gathering-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(30px, 5vw, 72px); }
.gathering-grid > * { min-width: 0; }
.gathering-scene { position: relative; overflow: hidden; min-height: 540px; height: 100%; }
.gathering-scene img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.gathering-scene::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(25, 18, 14, .8)); content: ""; }
.gathering-scene figcaption { position: absolute; z-index: 1; right: 32px; bottom: 32px; left: 32px; display: grid; gap: 12px; }
.gathering-scene figcaption > span { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; }
.gathering-scene strong { font-family: var(--serif); font-size: clamp(70px, 8vw, 112px); font-weight: 400; line-height: 1; }
.gathering-scene strong span { color: var(--gold-light); }
.gathering-list { list-style: none; padding: 0; margin: 0; }
.gathering-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px; align-items: start; gap: 16px; padding: 28px 0; border-top: 1px solid rgba(216, 192, 154, .25); }
.gathering-item:first-child { padding-top: 22px; }
.gathering-number { padding-top: 3px; color: var(--gold-light); font-family: var(--mono); font-size: 11px; }
.gathering-kicker { margin-bottom: 8px; color: var(--gold-light); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; overflow-wrap: anywhere; }
.gathering-item h3 { margin-bottom: 12px; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 29px); font-weight: 400; line-height: 1.5; }
.gathering-item h3 + p { color: rgba(246, 239, 227, .75); font-size: 14px; line-height: 1.95; }
.gathering-item time { color: var(--cream); }
.gathering-icon { width: 26px; height: 26px; margin-top: 22px; color: var(--gold-light); opacity: .7; }
.gathering-item:first-child .gathering-icon { width: 18px; height: 18px; margin-left: 4px; }
.gathering-link { display: inline-block; padding: 12px 0 4px; color: var(--gold-light); font-size: 12px; text-decoration: none; border-bottom: 1px solid rgba(216, 192, 154, .4); }
.gathering-link span { margin-left: 10px; }
.gathering-link:hover { color: var(--cream); border-color: currentColor; }
.gathering-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.gathering-note { display: block; margin-top: 12px; color: var(--gold-light); font-family: var(--serif); font-size: 13px; }
.gathering-foot { display: flex; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(216, 192, 154, .25); color: var(--gold-light); font-family: var(--hand); font-size: 20px; line-height: 1.6; }
.gathering-foot svg { flex: none; width: 12px; height: 12px; }
.gallery-label { color: var(--wine); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.vault-gallery-head { flex-wrap: wrap; }

@media (max-width: 960px) {
  .gathering-head { display: block; margin-bottom: 30px; }
  .gathering-intro { margin-top: 22px; }
  .gathering-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gathering-scene { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .gathering-scene img { object-position: center 62%; }
  .gathering-scene figcaption { right: 26px; bottom: 26px; left: 26px; gap: 8px; }
  .gathering-scene strong { font-size: clamp(54px, 14vw, 100px); }
  .gathering-scene figcaption > span { font-size: 9px; }
}
@media (max-width: 600px) {
  .gathering .display { font-size: clamp(34px, 9vw, 46px); line-height: 1.25; }
  .gathering-intro { font-size: 14px; }
  .gathering-intro br { display: none; }
  .gathering-item { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .gathering-item h3 { font-size: 22px; }
  .gathering-icon { display: none; }
  .gathering-foot { font-size: 17px; }
  .gathering-scene { aspect-ratio: 4 / 3; }
  .gathering-scene figcaption { right: 22px; bottom: 22px; left: 22px; }
  .vault-gallery { padding: 20px 16px; }
}

/* ---------- Invitation: content follows the reading order on smaller screens ---------- */

.brief-grid {
  grid-template-areas: "heading letter" "photo letter";
  grid-template-rows: auto 1fr;
  row-gap: 30px;
}
.brief-grid > * { min-width: 0; max-width: 100%; }
.brief-aside {
  grid-area: heading;
  position: static;
  display: block;
}
.brief-aside .display { line-height: 1.25; overflow-wrap: anywhere; }
.brief-stamp { margin-bottom: 0; }
.brief .brief-photo {
  grid-area: photo;
  display: block;
  justify-self: start;
  width: min(100%, 345px);
  margin: 0;
  padding: 15px;
  transform: none;
}
.brief-photo figcaption {
  position: static;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.brief .letter-card { grid-area: letter; transform: none; }
.letter-top { flex-wrap: wrap; gap: 8px 16px; }
.letter-top > span { min-width: 0; overflow-wrap: anywhere; }
.letter-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.letter-footer .letter-ps {
  flex: 1 1 180px;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.letter-footer .letter-seal { position: static; flex: none; margin: 5px; }

@media (max-width: 960px) {
  .brief-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "letter" "photo";
    grid-template-rows: auto;
    gap: 28px;
    max-width: 680px;
  }
  .brief-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    align-items: center;
    gap: 12px 14px;
  }
  .brief-aside .section-eyebrow { grid-column: 1 / -1; margin-bottom: 6px; }
  .brief-aside .display { grid-column: 1 / -1; margin: 0; font-size: clamp(28px, 7.8vw, 44px); }
  .brief-aside .brief-hand { grid-column: 1; margin: 0; font-size: clamp(18px, 4.7vw, 23px); }
  .brief-aside .brief-stamp {
    grid-column: 2;
    width: 64px;
    height: 64px;
    margin: 0;
    font-size: 6px;
  }
  .brief-stamp small { font-size: 5px; }
  .brief .brief-photo { justify-self: center; width: min(100%, 440px); }
}

@media (max-width: 760px) {
  .brief { padding: 68px 18px 52px; }
  .brief .letter-card { padding: 28px 24px; }
  .letter-top { margin-bottom: 24px; letter-spacing: .07em; }
  .letter-card > p:not(.letter-lead) { font-size: 15px; line-height: 1.95; }
  .letter-sign { gap: 8px 14px; font-size: 17px; }
  .letter-footer { gap: 14px; margin-top: 24px; }
  .letter-footer .letter-ps { flex-basis: 150px; font-size: 19px; }
  .letter-footer .letter-seal { width: 52px; height: 52px; margin-left: auto; }
  .brief .letter-love-flourish { max-width: 100%; }
}

/* ---------- Poster typography, character entrance and framed photographs ---------- */

.poster-copy { padding-left: clamp(16px, 1.8vw, 28px); padding-right: 8px; }
.poster-title { line-height: 1.15; gap: 0; }
.poster-title .title-invite { display: inline-block; }
.poster-title .title-tug { position: relative; display: inline-flex; flex: none; gap: .025em; align-items: baseline; }
.poster-title .title-puller, .poster-title .title-seat { position: relative; display: inline-block; width: 1em; transform-origin: 50% 90%; }
.poster-title .title-glyph { position: relative; display: block; line-height: 1; }
.title-limbs, .title-seat-feet { position: absolute; top: -.02em; left: -.1em; width: 1.2em; height: 1.4em; overflow: visible; opacity: 0; pointer-events: none; }
.title-rope { position: absolute; z-index: 3; left: .88em; top: .48em; width: .39em; height: .24em; color: var(--poster-red); opacity: 0; overflow: visible; }
.title-pending .title-invite, .title-pending .title-puller, .title-pending .title-seat { opacity: 0; }
.title-animating .title-invite { animation: title-welcome 650ms cubic-bezier(.2, .8, .3, 1.3) both; }
.title-animating .title-tug { animation: title-tug-journey 5600ms linear both; }
.title-animating .title-puller { animation: title-puller-effort 5600ms linear both; }
.title-animating .title-seat { animation: title-seat-drag 5600ms linear both; }
.title-animating .title-limbs { animation: title-limbs-show 5600ms linear both; }
.title-animating :is(.title-seat-feet, .title-rope) { animation: title-tether-show 5600ms linear both; }
.title-animating .title-leg { transform-box: fill-box; transform-origin: 50% 0; animation: title-walk 280ms ease-in-out infinite alternate; }
.title-animating .title-leg-b { animation-delay: -280ms; }
.title-animating .title-arm { transform-box: fill-box; transform-origin: left top; animation: title-arm-pull 560ms ease-in-out infinite alternate; }

@keyframes title-welcome {
  from { opacity: 0; transform: translateY(.2em) rotate(-5deg) scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes title-tug-journey {
  0%, 22% { transform: translateX(0); }
  40%, 45% { transform: translateX(calc(100vw + 2em)); }
  56% { transform: translateX(32vw); }
  66% { transform: translateX(20vw); }
  76% { transform: translateX(9vw); }
  86% { transform: translateX(.3em); }
  92% { transform: translateX(-.06em); }
  100% { transform: translateX(0); }
}
@keyframes title-puller-effort {
  0%, 4% { opacity: 0; transform: translateY(.15em) scale(.8); }
  13%, 21% { opacity: 1; transform: none; }
  30%, 40% { opacity: 1; transform: translateY(-.04em) rotate(12deg); }
  45% { transform: rotate(-15deg); }
  55% { transform: translateY(-.04em) rotate(-12deg); }
  62% { transform: rotate(-16deg); }
  70% { transform: translateY(-.03em) rotate(-20deg); }
  76% { transform: rotate(-12deg); }
  82% { transform: translateY(-.04em) rotate(-15deg); }
  88% { transform: rotate(4deg); }
  95%, 100% { opacity: 1; transform: none; }
}
@keyframes title-seat-drag {
  0%, 40% { opacity: 0; transform: translateX(.15em) rotate(12deg); }
  45% { opacity: 1; transform: translateX(.12em) rotate(9deg); }
  62% { opacity: 1; transform: translateY(.04em) rotate(6deg); }
  70% { transform: translateX(.09em) rotate(12deg); }
  82% { transform: translateY(.03em) rotate(7deg); }
  88% { transform: rotate(-5deg); }
  95%, 100% { opacity: 1; transform: none; }
}
@keyframes title-limbs-show {
  0%, 18% { opacity: 0; }
  23%, 84% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes title-tether-show {
  0%, 40% { opacity: 0; }
  45%, 84% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes title-walk { from { transform: rotate(-23deg); } to { transform: rotate(24deg); } }
@keyframes title-arm-pull { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }

.gallery-media {
  padding: clamp(10px, 1.3vw, 18px);
  border: 8px ridge #ab7b4b;
  background: linear-gradient(135deg, #fffaf0, #e9dcc6);
  box-shadow: 0 8px 16px -8px rgba(68, 42, 23, .42), inset 0 0 0 1px #d0ba97, inset 3px 3px 8px rgba(83, 55, 30, .12);
}
.gallery-media::before { position: absolute; inset: 6px; border: 1px solid rgba(139, 105, 65, .24); content: ""; pointer-events: none; }
.gallery-mat { width: 100%; height: 100%; overflow: hidden; border: 1px solid #a18b6b; box-shadow: 0 0 0 3px #fffbf3, 2px 2px 6px rgba(62, 42, 23, .25); }
.gallery-button { padding-bottom: 6px; }
.gallery-button:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.gallery-item figcaption { padding: 13px 3px 0; }
.gallery-grid { gap: 28px 22px; }
@media (max-width: 620px) {
  .poster-copy { padding-left: 18px; padding-right: 6px; }
  .gallery-grid { gap: 22px 16px; }
  .gallery-media { padding: 9px; border-width: 6px; }
  .gallery-media::before { inset: 4px; }
}
@media (max-width: 360px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gallery-media { aspect-ratio: 4 / 5; padding: 16px; border-width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .poster-title * { animation: none !important; }
  .title-limbs, .title-seat-feet, .title-rope { display: none; }
}

/* ---------- Film opening: fixed invitation background + independent portraits ---------- */

.cinema-opening {
  --cinema-red: #a7160f;
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--cinema-red);
  color: #f5e9d3;
}

.cinema-screen {
  position: relative;
  width: min(100%, calc(100vh * 1290 / 2190));
  width: min(100%, calc(100svh * 1290 / 2190));
  aspect-ratio: 1290 / 2190;
  overflow: hidden;
  background: var(--cinema-red) var(--invitation-background, url("assets/invitation-background.jpg")) center / 100% 100% no-repeat;
}

.cinema-invitation, .cinema-video-layer, .cinema-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cinema-invitation { visibility: hidden; }
.cinema-portrait { position: absolute; left: 0; width: 100%; overflow: hidden; }
.cinema-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.cinema-portrait-top { top: 0; height: calc(959 / 2169 * 100%); }
.cinema-portrait-bottom { bottom: 0; height: calc(659 / 2169 * 100%); }
.cinema-portrait-top img { transform: translateY(-102%); }
.cinema-portrait-bottom img { transform: translateY(102%); }

.cinema-video-layer {
  z-index: 2;
  opacity: 1;
  transition: opacity 480ms ease;
}
.cinema-video { display: block; object-fit: contain; background: transparent; pointer-events: none; }
.cinema-video::-webkit-media-controls { display: none !important; }

.cinema-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 14vw, 84px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(245, 233, 211, .85);
  border-radius: 50%;
  background: rgba(119, 14, 12, .8);
  color: #f5e9d3;
  box-shadow: 0 0 0 6px rgba(245, 233, 211, .1), 0 8px 28px rgba(70, 8, 8, .2);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.cinema-play[hidden] { display: none; }
.cinema-play svg { width: 30px; height: 30px; }
.cinema-play:hover { background: rgba(100, 10, 10, .95); }
.cinema-play:focus-visible { outline: 3px solid #f5e9d3; outline-offset: 10px; }
.cinema-play { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cinema-play:is(.is-holding, .is-ready) { background: #7c2119; box-shadow: 0 0 0 8px rgba(245, 233, 211, .2), 0 0 32px rgba(245, 233, 211, .2); }
.cinema-start { width: clamp(88px, 22vw, 104px); border-color: rgba(245, 233, 211, .28); box-shadow: 0 8px 28px rgba(70, 8, 8, .2); }
.cinema-start:not(.is-unlocked) .cinema-play-icon { transform: translateY(-9px); }
.cinema-hold { position: absolute; bottom: 20%; left: 0; width: 100%; color: #f5e9d3; text-align: center; font-size: 11px; line-height: 1; letter-spacing: .04em; pointer-events: none; font-variant-numeric: tabular-nums; }
.cinema-hold[hidden] { display: none; }
.cinema-hold-ring { position: absolute; top: 50%; left: 50%; width: calc(clamp(88px, 22vw, 104px) + 12px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; color: #f5e9d3; }
.cinema-hold-ring[hidden] { display: none; }
.cinema-hold-ring svg { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.cinema-hold-ring circle { fill: none; stroke: currentColor; stroke-width: 2.5; }
.cinema-hold-ring .cinema-ring-track { opacity: .2; }
.cinema-hold-ring .cinema-ring-fill { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100px - var(--hold-progress, 0) * 100px); filter: drop-shadow(0 0 3px rgba(245, 233, 211, .45)); }
.cinema-pause {
  top: auto;
  left: auto;
  right: 20px;
  bottom: 20px;
  width: 48px;
  transform: none;
}
.cinema-pause svg { width: 23px; height: 23px; }

.cinema-opening:is([data-state="revealing"], [data-state="complete"]) .cinema-invitation { visibility: visible; }
.cinema-opening:is([data-state="revealing"], [data-state="complete"]) .cinema-video-layer { opacity: 0; pointer-events: none; }
.cinema-opening:is([data-state="revealing"], [data-state="complete"]) .cinema-portrait img {
  transform: translateY(0);
  transition: transform 1500ms cubic-bezier(.18, .7, .2, 1) 160ms;
}
.cinema-opening:is([data-state="revealing"], [data-state="complete"]) .cinema-portrait-bottom img { transition-delay: 280ms; }
.cinema-opening[data-state="complete"] .cinema-portrait img { will-change: auto; }

.cinema-opening .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.opening-in-view :is(.site-header, .case-rail, .music-toggle, .music-prompt, .scroll-progress) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cinema-opening *, .cinema-opening *::before, .cinema-opening *::after { transition: none !important; }
}

/* Preserve line breaks entered in the visual invitation editor. */
[data-copy].copy-multiline { white-space: pre-line; }
