/**
 * templates/sample01 — 정적 데모용 (Our Story는 our-story.css + hourglass-static.bundle)
 * App.css 전체가 아닌, 이 페이지에 필요한 토큰·레이아웃만 최소 재현합니다.
 */
:root {
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --display: "Cormorant Garamond", "Noto Serif KR", serif;
  --shell-max: 430px;
  --section-pad-x: clamp(18px, 5.5vw, 28px);
  --section-pad-y: clamp(72px, 14vw, 120px);
  --stage: #000;
  --body-palette-tone-en: rgb(220 220 220);
  --ink: #2a2622;
  --muted: #6f675e;
  --line: rgba(42, 38, 34, 0.12);
  --card-surface: color-mix(in srgb, var(--body-palette-tone-en) 12%, rgb(252 250 247) 88%);
  --gold: #d4bc91;
  --color-text-invitation-body: rgb(118 112 106);
  --color-section-watermark: rgb(220 220 220);
  --color-border-card: rgb(232 232 232);
  --paper: #f7f7f7;
  --color-calendar-day: #333;
  --color-calendar-muted: #b8b0a8;
  --rsvp-accent: color-mix(in srgb, var(--body-palette-tone-en) 58%, rgb(42 38 34) 42%);
  --wcal-highlight: var(--rsvp-accent);
  --color-text-on-contrast: #fff;
  --color-text-on-contrast-muted: rgb(255 255 255 / 0.82);
}

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

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--stage);
}

#wedding-scene {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.desktop-stage {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--stage);
}

.desktop-stage__phone-wrap {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  container-type: size;
  isolation: isolate;
}

.paper-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.phone-shell {
  width: 100%;
  max-width: var(--shell-max);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  overflow-x: hidden;
  background: #fff;
  position: relative;
  color: var(--ink);
  font-family: var(--serif);
}

.phone-shell,
.phone-shell * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.phone-shell::-webkit-scrollbar,
.phone-shell *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.phone-shell.phone-shell--wedding-hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  --wedding-hero-h: 100dvh;
  background: #000;
  color: #f4f0eb;
}

@supports (height: 1cqh) {
  .phone-shell.phone-shell--wedding-hero {
    --wedding-hero-h: 100cqh;
  }
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-scroll-inner {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  min-height: min-content;
  background: #fff;
}

/* `phone-wrap` 직속 — 스크롤(`phone-shell`)과 분리해 폰 하단에 고정 */
.desktop-stage__phone-wrap > .wedding-floating-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 30000;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 max(var(--section-pad-x), env(safe-area-inset-right)) 0 max(var(--section-pad-x), env(safe-area-inset-left));
  overflow: visible;
  pointer-events: none;
}

.desktop-stage__phone-wrap > .wedding-floating-actions > * {
  pointer-events: auto;
}

.wedding-floating-actions__trailing {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky {
  position: sticky;
  top: 0;
  z-index: 0;
  flex-shrink: 0;
  height: var(--wedding-hero-h);
  overflow: hidden;
  width: 100%;
  pointer-events: none;
}

@keyframes wedding-hero-img-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.035);
  }

  33% {
    transform: translate3d(0.45%, -0.85%, 0) scale(1.035);
  }

  66% {
    transform: translate3d(-0.4%, 0.55%, 0) scale(1.035);
  }
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #fff;
  position: relative;
  z-index: 0;
  transform-origin: center center;
  will-change: transform;
  animation: wedding-hero-img-float 16s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .phone-shell.phone-shell--wedding-hero .wedding-hero-img {
    animation: none;
    will-change: auto;
    transform: none;
  }

  .phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__scroll-cue-box span {
    animation: none;
    opacity: 0.92;
  }

  .hero-sakura-petals {
    display: none;
  }
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__paper-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: url(#roughpaper);
  mix-blend-mode: multiply;
  opacity: 0.48;
}

/* `HeroSakuraPetals.tsx` / `HeroSakuraPetals.css` — 히어로 벚꽃 낙하 */
.hero-sakura-petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}

.hero-sakura-petals__petal {
  position: absolute;
  top: var(--petal-top);
  left: -32px;
  width: var(--petal-size);
  height: var(--petal-size);
  border-radius: 65% 20% 65% 0;
  background: rgb(255 255 255 / 0.94);
  box-shadow:
    inset 2px 2px 4px rgb(255 255 255 / 0.72),
    0 1px 6px rgb(0 0 0 / 0.08);
  opacity: var(--petal-opacity);
  transform: translate3d(0, 0, var(--petal-z)) rotate(var(--petal-rotate));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation: hero-sakura-fall var(--petal-duration) linear infinite;
  animation-delay: var(--petal-delay);
}

.hero-sakura-petals__petal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgb(255 255 255 / 0.88);
  transform: rotateY(180deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.hero-sakura-petals__petal:nth-child(1) {
  --petal-top: 4%;
  --petal-size: 9px;
  --petal-z: 120px;
  --petal-rotate: 12deg;
  --petal-opacity: 0.72;
  --petal-duration: 11s;
  --petal-delay: -1.2s;
  --petal-drift-y: 28dvh;
  --petal-drift-z: 180px;
  --petal-spin: 360deg;
}

.hero-sakura-petals__petal:nth-child(2) {
  --petal-top: 12%;
  --petal-size: 12px;
  --petal-z: 300px;
  --petal-rotate: -24deg;
  --petal-opacity: 0.82;
  --petal-duration: 14s;
  --petal-delay: -6.8s;
  --petal-drift-y: 18dvh;
  --petal-drift-z: 460px;
  --petal-spin: 520deg;
}

.hero-sakura-petals__petal:nth-child(3) {
  --petal-top: 22%;
  --petal-size: 8px;
  --petal-z: -120px;
  --petal-rotate: 44deg;
  --petal-opacity: 0.58;
  --petal-duration: 12.5s;
  --petal-delay: -3.4s;
  --petal-drift-y: -10dvh;
  --petal-drift-z: -260px;
  --petal-spin: 620deg;
}

.hero-sakura-petals__petal:nth-child(4) {
  --petal-top: 30%;
  --petal-size: 11px;
  --petal-z: 80px;
  --petal-rotate: 76deg;
  --petal-opacity: 0.76;
  --petal-duration: 16s;
  --petal-delay: -10.1s;
  --petal-drift-y: -18dvh;
  --petal-drift-z: 260px;
  --petal-spin: 720deg;
}

.hero-sakura-petals__petal:nth-child(5) {
  --petal-top: 42%;
  --petal-size: 7px;
  --petal-z: 240px;
  --petal-rotate: -58deg;
  --petal-opacity: 0.62;
  --petal-duration: 10.5s;
  --petal-delay: -5.2s;
  --petal-drift-y: 16dvh;
  --petal-drift-z: 320px;
  --petal-spin: 430deg;
}

.hero-sakura-petals__petal:nth-child(6) {
  --petal-top: 55%;
  --petal-size: 13px;
  --petal-z: -80px;
  --petal-rotate: 18deg;
  --petal-opacity: 0.7;
  --petal-duration: 18s;
  --petal-delay: -12.5s;
  --petal-drift-y: -24dvh;
  --petal-drift-z: -180px;
  --petal-spin: 840deg;
}

.hero-sakura-petals__petal:nth-child(7) {
  --petal-top: 68%;
  --petal-size: 9px;
  --petal-z: 420px;
  --petal-rotate: -12deg;
  --petal-opacity: 0.84;
  --petal-duration: 13s;
  --petal-delay: -8.6s;
  --petal-drift-y: -30dvh;
  --petal-drift-z: 520px;
  --petal-spin: 700deg;
}

.hero-sakura-petals__petal:nth-child(8) {
  --petal-top: 78%;
  --petal-size: 10px;
  --petal-z: 160px;
  --petal-rotate: 32deg;
  --petal-opacity: 0.66;
  --petal-duration: 15s;
  --petal-delay: -2.8s;
  --petal-drift-y: -36dvh;
  --petal-drift-z: 120px;
  --petal-spin: 540deg;
}

.hero-sakura-petals__petal:nth-child(9) {
  --petal-top: 86%;
  --petal-size: 8px;
  --petal-z: -220px;
  --petal-rotate: -46deg;
  --petal-opacity: 0.5;
  --petal-duration: 12s;
  --petal-delay: -7.2s;
  --petal-drift-y: -42dvh;
  --petal-drift-z: -320px;
  --petal-spin: 760deg;
}

.hero-sakura-petals__petal:nth-child(10) {
  --petal-top: 8%;
  --petal-size: 7px;
  --petal-z: -60px;
  --petal-rotate: 8deg;
  --petal-opacity: 0.55;
  --petal-duration: 17s;
  --petal-delay: -14.4s;
  --petal-drift-y: 34dvh;
  --petal-drift-z: 80px;
  --petal-spin: 680deg;
}

.hero-sakura-petals__petal:nth-child(11) {
  --petal-top: 18%;
  --petal-size: 11px;
  --petal-z: 360px;
  --petal-rotate: 65deg;
  --petal-opacity: 0.78;
  --petal-duration: 11.8s;
  --petal-delay: -9.9s;
  --petal-drift-y: 12dvh;
  --petal-drift-z: 400px;
  --petal-spin: 580deg;
}

.hero-sakura-petals__petal:nth-child(12) {
  --petal-top: 36%;
  --petal-size: 9px;
  --petal-z: 40px;
  --petal-rotate: -32deg;
  --petal-opacity: 0.68;
  --petal-duration: 14.4s;
  --petal-delay: -4.7s;
  --petal-drift-y: -8dvh;
  --petal-drift-z: -120px;
  --petal-spin: 500deg;
}

.hero-sakura-petals__petal:nth-child(13) {
  --petal-top: 48%;
  --petal-size: 12px;
  --petal-z: 220px;
  --petal-rotate: 24deg;
  --petal-opacity: 0.73;
  --petal-duration: 19s;
  --petal-delay: -16s;
  --petal-drift-y: -20dvh;
  --petal-drift-z: 300px;
  --petal-spin: 780deg;
}

.hero-sakura-petals__petal:nth-child(14) {
  --petal-top: 60%;
  --petal-size: 8px;
  --petal-z: -180px;
  --petal-rotate: -72deg;
  --petal-opacity: 0.52;
  --petal-duration: 13.8s;
  --petal-delay: -11.3s;
  --petal-drift-y: -28dvh;
  --petal-drift-z: -260px;
  --petal-spin: 900deg;
}

.hero-sakura-petals__petal:nth-child(15) {
  --petal-top: 72%;
  --petal-size: 10px;
  --petal-z: 140px;
  --petal-rotate: 52deg;
  --petal-opacity: 0.64;
  --petal-duration: 16.5s;
  --petal-delay: -6.1s;
  --petal-drift-y: -34dvh;
  --petal-drift-z: 180px;
  --petal-spin: 640deg;
}

.hero-sakura-petals__petal:nth-child(16) {
  --petal-top: 82%;
  --petal-size: 13px;
  --petal-z: 480px;
  --petal-rotate: -18deg;
  --petal-opacity: 0.8;
  --petal-duration: 12.8s;
  --petal-delay: -1.6s;
  --petal-drift-y: -44dvh;
  --petal-drift-z: 560px;
  --petal-spin: 860deg;
}

.hero-sakura-petals__petal:nth-child(17) {
  --petal-top: 26%;
  --petal-size: 7px;
  --petal-z: -300px;
  --petal-rotate: 38deg;
  --petal-opacity: 0.46;
  --petal-duration: 18.6s;
  --petal-delay: -13.2s;
  --petal-drift-y: 4dvh;
  --petal-drift-z: -360px;
  --petal-spin: 740deg;
}

.hero-sakura-petals__petal:nth-child(18) {
  --petal-top: 94%;
  --petal-size: 9px;
  --petal-z: 60px;
  --petal-rotate: -8deg;
  --petal-opacity: 0.58;
  --petal-duration: 15.6s;
  --petal-delay: -8s;
  --petal-drift-y: -52dvh;
  --petal-drift-z: 140px;
  --petal-spin: 560deg;
}

@keyframes hero-sakura-fall {
  0% {
    transform: translate3d(-8vw, 0, var(--petal-z)) rotate(var(--petal-rotate));
  }

  100% {
    transform: translate3d(112vw, var(--petal-drift-y), var(--petal-drift-z))
      rotate3d(1, 0.35, 0.5, var(--petal-spin));
  }
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__hero-tagline {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 2.2dvh, 28px);
  padding: clamp(20px, 5.5dvh, 56px) clamp(14px, 4.5vw, 28px) 0;
  pointer-events: none;
  container-type: inline-size;
  container-name: wedding-hero-tagline;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__en-names {
  width: 100%;
  max-width: min(100% - 12px, 26rem);
  margin: 0;
  font-family: "Cinzel Decorative", "Bodoni Moda", serif;
  font-weight: 700;
  font-size: clamp(0.7rem, min(8.5cqw, 5.4vw), 2.75rem);
  letter-spacing: clamp(0.01em, 0.55cqw, 0.08em);
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__en-names[data-hero-bw-tone="black"] {
  color: var(--ink);
  text-shadow:
    0 0 1px rgb(255 253 249 / 0.9),
    0 1px 2px rgb(255 253 249 / 0.55),
    0 0 20px rgb(255 253 249 / 0.35);
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__en-names[data-hero-bw-tone="white"] {
  color: rgb(255 253 249 / 0.96);
  text-shadow:
    0 0 1px rgb(42 38 34 / 0.45),
    0 1px 3px rgb(0 0 0 / 0.5),
    0 0 28px rgb(0 0 0 / 0.25);
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__en-names[data-hero-bw-tone="darkIvory"] {
  color: rgb(198 188 170 / 0.96);
  text-shadow:
    0 0 1px rgb(0 0 0 / 0.35),
    0 1px 3px rgb(0 0 0 / 0.42),
    0 0 22px rgb(255 253 245 / 0.16);
}

@keyframes wedding-hero-scroll-cue-pulse {
  0% {
    opacity: 0;
    transform: rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) translate(10px, 10px);
  }

  100% {
    opacity: 0;
    transform: rotate(45deg);
  }
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(5% + (10 - var(--wedding-hero-scroll-cue-pos, 2)) / 9 * 90%);
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__scroll-cue-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__scroll-cue-box span {
  width: 20px;
  height: 20px;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: -10px;
  animation: wedding-hero-scroll-cue-pulse 2s infinite;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__scroll-cue-box span:nth-child(2) {
  animation-delay: -0.2s;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__scroll-cue-box span:nth-child(3) {
  animation-delay: -0.4s;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__scroll-cue[data-hero-bw-tone="black"] {
  color: var(--ink);
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__scroll-cue[data-hero-bw-tone="white"] {
  color: rgb(255 253 249 / 0.95);
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__event-info {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(24px, 6.5dvh, 64px);
  width: min(100% - 40px, 24rem);
  translate: -50% 0;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(0.82rem, 3.4vw, 1rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__event-info p {
  margin: 0;
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__event-info[data-hero-bw-tone="black"] {
  color: var(--ink);
  text-shadow:
    0 0 1px rgb(255 253 249 / 0.9),
    0 1px 2px rgb(255 253 249 / 0.55),
    0 0 20px rgb(255 253 249 / 0.35);
}

.phone-shell.phone-shell--wedding-hero .wedding-hero-sticky__event-info[data-hero-bw-tone="white"] {
  color: rgb(255 253 249 / 0.96);
  text-shadow:
    0 0 1px rgb(42 38 34 / 0.45),
    0 1px 3px rgb(0 0 0 / 0.5),
    0 0 28px rgb(0 0 0 / 0.25);
}

.content.content--wedding-hero {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  --hero-block-gap: clamp(72px, 20vw, 112px);
  padding-left: 0;
  padding-right: 0;
}

.phone-shell.phone-shell--wedding-hero section.wedding-main-stack {
  margin-top: 0;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  background-image: none;
}

.content {
  position: relative;
  padding-top: 0;
  padding-bottom: var(--section-pad-y);
  background: rgb(250 248 244);
  color: var(--ink);
}

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

/* 섹션 공통: 제목 블록 / 본문 블록 (`App.css`) */
.wedding-section__title,
.wedding-section__content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wedding-section__title {
  text-align: center;
  margin-bottom: 28px;
  container-type: inline-size;
  overflow: visible;
}

.section h2,
.wedding-section__title > h2 {
  position: relative;
  isolation: isolate;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink);
}

.invitation {
  text-align: center;
  background-color: #ffffff;
}

.invitation .wedding-section__title {
  margin-bottom: 0;
}

.invitation .wedding-section__title > h2,
.invitation h2 {
  margin-bottom: clamp(78px, 18vw, 118px);
  color: var(--ink);
}

.invitation__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 7vw, 42px);
  max-width: min(25rem, 100%);
  margin: 0 auto;
  font-family: var(--serif);
  color: var(--color-text-invitation-body);
  font-size: clamp(0.78rem, 3vw, 0.9rem);
  font-weight: 500;
  line-height: 2.35;
  letter-spacing: 0.06em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.invitation__body p {
  margin: 0;
}

.invitation__gallery-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.invitation .profile-circular-gallery {
  --profile-gallery-pull-l: max(var(--section-pad-x), env(safe-area-inset-left, 0px));
  --profile-gallery-pull-r: max(var(--section-pad-x), env(safe-area-inset-right, 0px));
  width: calc(100% + var(--profile-gallery-pull-l) + var(--profile-gallery-pull-r));
  max-width: none;
  margin-top: clamp(24px, 6.5vw, 40px);
  margin-bottom: 0;
  margin-left: calc(-1 * var(--profile-gallery-pull-l));
  margin-right: calc(-1 * var(--profile-gallery-pull-r));
  background-color: #fff;
}

.invitation .profile-circular-gallery .circular-gallery {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

h2[data-title-en] {
  position: relative;
  isolation: isolate;
  overflow: visible;
  /* 워터마크(::before)가 한글 제목 위·아래로 나가도 잘리지 않게 */
  padding-block: 0.55em;
  box-sizing: content-box;
}

h2[data-title-en]::before {
  content: attr(data-title-en);
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: max-content;
  max-width: 100cqi;
  box-sizing: border-box;
  font-family: "Cinzel Decorative", "Bodoni Moda", serif;
  font-size: min(calc(3em - 3px), calc(100cqi / 7.5));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: var(--color-section-watermark);
  opacity: 0.5;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  overflow: visible;
}

@property --k {
  syntax: "<number>";
  initial-value: 0;
  inherits: true;
}

/* `WeddingCircularGallery.css` */
.circular-gallery {
  --n: 10;
  --f: 1.68;
  --ring-shift: min(15.5vmin, 186px);
  --z-depth-extra: 0px;
  --circular-gallery-visual-offset-y: 0px;
  --cg-card-max-h: min(36vh, min(300px, 58vw));
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  color: var(--ink, #2a2622);
  font-family: var(--serif, "Apple SD Gothic Neo", serif);
}

.circular-gallery.circular-gallery--loading .circular-gallery__scene {
  min-height: min(36vw, 180px);
}

.circular-gallery.circular-gallery--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(36vw, 180px);
}

.circular-gallery__empty-placeholder {
  width: min(40%, 120px);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 2px dashed rgb(0 0 0 / 0.12);
  background: rgb(250 248 244);
}

.circular-gallery__scene {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  perspective: min(110em, 240vw);
  perspective-origin: 50% 50%;
  min-height: min(44vh, 360px);
  padding: 10px 0 12px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.circular-gallery__scene:active {
  cursor: grabbing;
}

.circular-gallery__assembly,
.circular-gallery__card {
  transform-style: preserve-3d;
}

.circular-gallery__assembly {
  --w: clamp(6.5em, min(52vw, 38vh), 22em);
  --z: calc(var(--f) * -0.5 * var(--w) / tan(0.5turn / var(--n)));
  display: grid;
  place-items: center;
  align-content: center;
  flex: 0 0 auto;
  translate: 0 var(--circular-gallery-visual-offset-y) 0
    calc(var(--z) * 0.98 - var(--z-depth-extra) + var(--ring-shift));
  rotate: 0 1 0 calc((var(--k) + 0.5) * -1turn + 180deg);
  transform-origin: center center;
}

.circular-gallery__card {
  --j: calc(var(--i) / var(--n));
  grid-area: 1 / 1;
  place-self: center;
  width: var(--w);
  max-width: 100%;
  transform-origin: center center;
  min-height: min(22vw, 140px);
  transform: rotate3d(0, 1, 0, calc(var(--j) * 1turn)) translatez(var(--z));
}

.circular-gallery__card--sized {
  --card-eff-w: min(var(--w), calc(var(--cg-card-max-h) * var(--aw) / var(--ah)));
  width: var(--card-eff-w);
  max-height: var(--cg-card-max-h);
  aspect-ratio: var(--aw) / var(--ah);
  min-height: unset;
}

@supports not (scale: abs(-1)) {
  .circular-gallery__card {
    --abs-lin: max(var(--dif-lin), calc(-1 * var(--dif-lin)));
    --abs-mid: max(var(--dif-mid), calc(-1 * var(--dif-mid)));
  }
}

.circular-gallery__card-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  min-height: inherit;
}

.circular-gallery__card:not(.circular-gallery__card--sized) .circular-gallery__card-figure {
  min-height: min(22vw, 140px);
}

.circular-gallery__card--sized .circular-gallery__card-figure {
  height: 100%;
  min-height: 0;
}

.circular-gallery__card-book {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
}

.circular-gallery__card--sized .circular-gallery__card-book {
  position: absolute;
  inset: 0;
  height: 100%;
}

.circular-gallery__card-face {
  border-radius: 0.5em;
  overflow: hidden;
  backface-visibility: hidden;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.98), rgb(246 242 235 / 0.96));
  --cg-shadow-w: var(--w);
  box-shadow:
    calc(0.028 * var(--cg-shadow-w)) calc(0.05 * var(--cg-shadow-w)) calc(0.12 * var(--cg-shadow-w)) rgb(0 0 0 / 0.2),
    calc(0.012 * var(--cg-shadow-w)) calc(0.022 * var(--cg-shadow-w)) calc(0.045 * var(--cg-shadow-w)) rgb(0 0 0 / 0.1);
}

.circular-gallery__card--sized .circular-gallery__card-face {
  --cg-shadow-w: var(--card-eff-w);
}

.circular-gallery__card-face--front {
  position: relative;
  width: 100%;
  min-height: 0;
}

.circular-gallery__card-face--front img {
  opacity: var(--face-op, 1);
}

.circular-gallery__card-face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.circular-gallery__card--sized .circular-gallery__card-face--front,
.circular-gallery__card--sized .circular-gallery__card-face--back {
  position: absolute;
  inset: 0;
}

.circular-gallery__card-face img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  vertical-align: top;
  pointer-events: none;
}

.circular-gallery__card--sized .circular-gallery__card-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* `WeddingCircularGallery.css` — Y축 회전 시 뒷면(흐릿·어두운 동일 사진) */
.circular-gallery__card-face--back img {
  opacity: calc(0.38 * var(--face-op, 1));
  filter: brightness(0.72);
}

.profile-circular-gallery {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto var(--hero-block-gap, clamp(72px, 20vw, 112px));
}

.profile-circular-gallery .circular-gallery {
  --f: 1.24;
  --ring-shift: min(30vmin, 360px);
  --circular-gallery-visual-offset-y: min(3.2vmin, 16px);
  --cg-card-max-h: min(20vh, min(150px, 44vw));
}

.profile-circular-gallery .circular-gallery__scene {
  min-height: min(34vh, 300px);
  padding: clamp(10px, 2.4vmin, 18px) 0;
}

.profile-circular-gallery .circular-gallery__assembly {
  --w: clamp(3.25em, min(26vw, 19vh), 11em);
}

.profile-circular-gallery .circular-gallery__card {
  min-height: min(11vw, 70px);
}

.profile-circular-gallery .circular-gallery__card:not(.circular-gallery__card--sized) .circular-gallery__card-figure {
  min-height: min(11vw, 70px);
}

#profile .wedding-section__title {
  margin-bottom: 0;
}

#parents-contact .hero-parents-contact .wedding-section__title {
  margin-bottom: 0;
}

.hero-couple-intro {
  margin: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.hero-couple-intro__title {
  margin: 0 0 clamp(54px, 13vw, 80px);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: center;
}

.hero-couple-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  justify-items: center;
  max-width: min(100%, 22rem);
  margin: 0 auto;
}

@media (max-width: 340px) {
  .hero-couple-intro__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero-couple-intro__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 11.25rem;
  min-width: 0;
  min-height: 262px;
  padding: 25px 16px 24px;
  border: 1px solid var(--body-palette-ui-border, var(--color-border-card));
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.hero-couple-intro__label {
  margin: 0 0 27px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  color: rgb(178 178 178);
}

.hero-couple-intro__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  font-size: clamp(16px, 4.6vw, 19px);
  line-height: 1.25;
}

.hero-couple-intro__head-names {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.hero-couple-intro__head-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-couple-intro__col--groom .hero-couple-intro__role {
  color: rgb(128 128 128);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-couple-intro__col--bride .hero-couple-intro__role {
  color: rgb(128 128 128);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-couple-intro__name {
  font-weight: 700;
  color: rgb(40 40 40);
  letter-spacing: -0.02em;
}

.hero-couple-intro__tel-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  translate: 0 1px;
  color: rgb(168 168 168);
  text-decoration: none;
  border-radius: 4px;
}

.hero-couple-intro__sms-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  translate: 0 1px;
  color: rgb(168 168 168);
  text-decoration: none;
  border-radius: 4px;
}

.hero-couple-intro__col--groom .hero-couple-intro__tel-link:hover,
.hero-couple-intro__col--groom .hero-couple-intro__tel-link:focus-visible,
.hero-couple-intro__col--groom .hero-couple-intro__sms-link:hover,
.hero-couple-intro__col--groom .hero-couple-intro__sms-link:focus-visible {
  color: rgb(68 68 68);
}

.hero-couple-intro__col--bride .hero-couple-intro__tel-link:hover,
.hero-couple-intro__col--bride .hero-couple-intro__tel-link:focus-visible,
.hero-couple-intro__col--bride .hero-couple-intro__sms-link:hover,
.hero-couple-intro__col--bride .hero-couple-intro__sms-link:focus-visible {
  color: rgb(68 68 68);
}

.hero-couple-intro__tel-link:focus-visible,
.hero-couple-intro__sms-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.hero-couple-intro__tel {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.hero-couple-intro__sms {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.hero-couple-intro__profile-box {
  width: 100%;
  margin: 31px auto 0;
  padding: 31px 9px 28px;
  border-radius: 18px;
  background: #fff;
  border: none;
  box-shadow:
    0 4px 14px rgb(0 0 0 / 0.07),
    0 12px 32px rgb(40 40 40 / 0.06);
}

.hero-couple-intro__mbti {
  margin: 0;
  font-size: clamp(11px, 2.9vw, 12.5px);
  line-height: 1.5;
  color: rgb(76 76 76);
  letter-spacing: -0.02em;
}

.hero-couple-intro__mbti-code {
  color: rgb(88 88 88);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-couple-intro__accent {
  margin: 7px 0 0;
  font-size: clamp(11px, 2.9vw, 12.5px);
  line-height: 1.5;
  color: rgb(76 76 76);
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-couple-intro__desc {
  margin: 7px 0 0;
  font-size: clamp(10.5px, 2.75vw, 12px);
  line-height: 1.5;
  color: rgb(96 96 96);
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-couple-intro__parents {
  margin: 13px 0 0;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1.35;
  color: rgb(158 158 158);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-couple-intro__parents strong {
  font-weight: 500;
}

.hero-parents-contact {
  margin: clamp(40px, 11vw, 88px) 0 0;
  padding: 0;
  border-radius: 0;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

#parents-contact .hero-parents-contact {
  margin-top: 0;
}

.hero-parents-contact__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hero-parents-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  justify-items: center;
  max-width: min(100%, 22rem);
  margin: 0 auto;
}

@media (max-width: 340px) {
  .hero-parents-contact__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.hero-parents-contact__col {
  width: 100%;
  max-width: 11.25rem;
  min-height: 192px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 14px 22px;
  border: 1px solid var(--body-palette-ui-border, var(--color-border-card));
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.hero-parents-contact__side-label {
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  color: rgb(178 178 178);
}

.hero-parents-contact__side-label--groom {
  color: rgb(178 178 178);
}

.hero-parents-contact__side-label--bride {
  color: rgb(178 178 178);
}

.hero-parents-contact__person-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 8px 16px;
  border-radius: 18px;
  background: #fff;
  border: none;
  box-shadow:
    0 4px 14px rgb(0 0 0 / 0.07),
    0 12px 32px rgb(40 40 40 / 0.06);
}

.hero-parents-contact__person {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.hero-parents-contact__name-line {
  margin: 0;
  font-size: clamp(11.5px, 3vw, 13px);
  line-height: 1.35;
  color: rgb(76 76 76);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-parents-contact__role {
  font-weight: 400;
  color: rgb(128 128 128);
}

.hero-parents-contact__role--groom {
  color: rgb(128 128 128);
}

.hero-parents-contact__role--bride {
  color: rgb(128 128 128);
}

.hero-parents-contact__name {
  font-weight: 700;
  color: rgb(40 40 40);
  letter-spacing: -0.02em;
}

.hero-parents-contact__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.hero-parents-contact__actions[hidden],
.hero-parents-contact__person--deceased .hero-parents-contact__actions {
  display: none !important;
}

.hero-parents-contact__person--deceased .hero-parents-contact__icon-btn {
  display: none !important;
}

.hero-parents-contact__actions--groom {
  color: rgb(168 168 168);
}

.hero-parents-contact__actions--bride {
  color: rgb(168 168 168);
}

.hero-parents-contact__icon-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hero-parents-contact__icon-btn:hover {
  opacity: 1;
  color: rgb(68 68 68);
}

.hero-parents-contact__icon-btn:active {
  transform: scale(0.96);
}

#wedding-date .wedding-section__title {
  margin-bottom: 0;
}


#rsvp .wedding-section__title {
  margin-bottom: 0;
  text-align: center;
}

#rsvp .wedding-section__content {
  text-align: center;
}

#rsvp .rsvp-attendance {
  margin-top: 0;
  margin-bottom: 0;
}

#rsvp.section.wedding-main-stack {
  background: color-mix(in srgb, var(--body-palette-tone-en, rgb(158 158 158)) 54%, rgb(42 40 38));
  background-image: none;
}

[data-scroll-fade] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-scroll-fade].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll-fade] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 520px) {
  .phone-shell {
    max-width: none;
  }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.92);
  color: #f4f0eb;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.toast.is-on {
  opacity: 1;
}
