@font-face {
  font-family: "CCJ Gowun Batang";
  src: url("fonts/gowun-batang-400-subset.ttf?v=2") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "CCJ Gowun Batang";
  src: url("fonts/gowun-batang-700-subset.ttf?v=2") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "CCJ Noto Sans KR";
  src: url("fonts/noto-sans-kr-400-subset.ttf?v=2") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "CCJ Noto Sans KR";
  src: url("fonts/noto-sans-kr-400-subset.ttf?v=2") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "CCJ Noto Sans KR";
  src: url("fonts/noto-sans-kr-400-subset.ttf?v=2") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "CCJ Noto Sans KR";
  src: url("fonts/noto-sans-kr-700-subset.ttf?v=2") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --wine: #52101d;
  --wine-mid: #6b1728;
  --wine-dark: #26080f;
  --ivory: #f5efe4;
  --paper: #fffaf1;
  --rose: #d8bab6;
  --rose-pale: #ecd9d4;
  --ink: #241b19;
  --ink-soft: #51423e;
  --muted: #806f68;
  --gold: #b99155;
  --line: rgba(55, 32, 27, .15);
  --serif: "CCJ Gowun Batang", "Gowun Batang", AppleMyungjo, Georgia, serif;
  --sans: "CCJ Noto Sans KR", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  background: var(--wine-dark);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--wine-dark);
  font-family: var(--sans);
  word-break: keep-all;
  line-break: strict;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.external-browser-fallback {
  position: fixed;
  z-index: 3000;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  display: none;
  min-height: 44px;
  padding: 12px 20px;
  transform: translate3d(-50%, -18px, 0);
  border: 1px solid rgba(240, 207, 151, .55);
  border-radius: 999px;
  opacity: 0;
  color: #fffaf0;
  background: rgba(45, 6, 14, .94);
  box-shadow: 0 12px 32px rgba(25, 2, 7, .28);
  font-size: 14px;
  transition: opacity .25s ease, transform .25s ease;
}

.is-kakao-webview .external-browser-fallback { display: block; }
.show-external-browser-fallback .external-browser-fallback { opacity: 1; transform: translate3d(-50%, 0, 0); }

.music-toggle {
  position: fixed;
  z-index: 2500;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(239, 208, 154, .48);
  border-radius: 50%;
  color: rgba(255, 250, 241, .88);
  background: rgba(45, 6, 14, .76);
  box-shadow: 0 10px 28px rgba(25, 2, 7, .2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.music-toggle::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(239, 208, 154, .18);
  border-radius: inherit;
}

.music-toggle__note {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font: 400 22px/1 Georgia, serif;
}

.music-toggle__label {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
}

.music-toggle.is-playing {
  color: #fff8e8;
  background: rgba(82, 16, 29, .9);
  box-shadow: 0 10px 28px rgba(25, 2, 7, .28), 0 0 0 4px rgba(185, 145, 85, .08);
}

.music-toggle.is-playing .music-toggle__note { animation: music-note 1.15s ease-in-out infinite alternate; }
.music-toggle:active { transform: scale(.96); }

#message-form { scroll-margin-block: 12svh; }

@keyframes music-note {
  from { transform: translateX(-50%) rotate(-5deg) translateY(1px); }
  to { transform: translateX(-50%) rotate(5deg) translateY(-1px); }
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.opening {
  position: relative;
  height: 300svh;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 248, 231, .13), transparent 33%),
    linear-gradient(165deg, #741a2c 0%, var(--wine) 52%, var(--wine-dark) 100%);
}

.opening__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1500px;
}

.opening__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.opening__hint {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
  color: rgba(255, 250, 240, .76);
  font-size: 13px;
  letter-spacing: .12em;
  transition: opacity .3s ease;
}

.opening__hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 9px auto 0;
  background: currentColor;
  animation: pulse 1.7s ease-in-out infinite;
}

.envelope-wrap {
  position: absolute;
  z-index: 10;
  width: min(86vw, 560px);
  aspect-ratio: 1.37 / 1;
  filter: drop-shadow(0 28px 45px rgba(22, 0, 5, .38));
  transform-origin: 50% 70%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.envelope-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 5px;
  background:
    radial-gradient(circle at 18% 78%, rgba(176, 83, 96, .18), transparent 26%),
    linear-gradient(145deg, #7d2633, #56101d 62%, #3c0711);
}

.envelope-base {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 5px;
  opacity: var(--source-opacity, 1);
}

.envelope-interior {
  position: absolute;
  z-index: 2;
  inset: 1% 1.5% auto;
  height: 62%;
  clip-path: polygon(0 0, 100% 0, 50% 88%);
  background:
    radial-gradient(circle at 50% 75%, rgba(200, 126, 132, .2), transparent 35%),
    linear-gradient(180deg, #26070d, #400a14 74%, #5c101f);
  box-shadow: inset 0 14px 24px rgba(0, 0, 0, .3);
  opacity: var(--constructed-opacity, 0);
}

.envelope-pocket {
  position: absolute;
  z-index: 3;
  inset: 36% 1% 1%;
  clip-path: polygon(0 17%, 50% 78%, 100% 17%, 100% 100%, 0 100%);
  background:
    radial-gradient(circle at 18% 80%, rgba(180, 84, 98, .16), transparent 25%),
    linear-gradient(155deg, #792231, #510d1a 72%);
  opacity: var(--constructed-opacity, 0);
}

.envelope-flap {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  height: 65%;
  display: block;
  transform-origin: 50% 1%;
  transform-style: preserve-3d;
  will-change: transform;
}

.envelope-flap::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 94%;
  width: clamp(78px, 18vw, 124px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #721e2b 0 50%, #641622 74%, rgba(77, 11, 22, .18) 100%);
  box-shadow: 0 0 12px 6px rgba(92, 16, 29, .4);
  opacity: var(--source-opacity, 1);
}

.envelope-flap__texture {
  position: absolute;
  inset: 0;
  display: block;
  clip-path: polygon(0 0, 100% 0, 50% 91%);
  background:
    radial-gradient(circle at 18% 68%, rgba(182, 86, 99, .14), transparent 24%),
    linear-gradient(180deg, #7e2936, #611522 70%, #460a15);
  backface-visibility: visible;
  opacity: var(--constructed-opacity, 0);
}

.seal {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 94%;
  width: clamp(68px, 15vw, 100px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--wine);
  background: radial-gradient(circle at 38% 30%, #fffbe8 0 8%, #e4c994 56%, #b79355 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), 0 3px 10px rgba(38, 8, 14, .4);
  font-family: Georgia, serif;
  font-size: clamp(16px, 3vw, 22px);
  letter-spacing: .04em;
  will-change: opacity, transform;
}

.photo-stack { position: absolute; inset: 0; z-index: 12; pointer-events: none; }

.scatter-photo {
  position: absolute;
  left: 50%;
  top: 49%;
  width: clamp(118px, 30vw, 235px);
  aspect-ratio: 4 / 5;
  padding: 6px 6px 24px;
  background: #fffdf7;
  box-shadow: 0 18px 45px rgba(23, 2, 6, .34);
  opacity: 0;
  transform: translate(-50%, -42%) scale(.35);
  will-change: transform, opacity;
}

.scatter-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.scatter-photo:nth-child(1) img { object-position: 68% 50%; }
.scatter-photo:nth-child(2) img { object-position: 52% 50%; }
.scatter-photo:nth-child(3) img { object-position: 52% 50%; }
.scatter-photo:nth-child(4) img { object-position: 72% 50%; }
.scatter-photo:nth-child(5) img { object-position: 48% 50%; }

.invitation-card {
  position: absolute;
  z-index: 8;
  width: min(82vw, 470px);
  min-height: min(68svh, 620px);
  padding: clamp(42px, 8vh, 78px) 25px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
  box-shadow: 0 25px 80px rgba(22, 0, 6, .32);
  opacity: 0;
  transform: translateY(18vh) scale(.78) rotateX(-14deg);
  will-change: transform, opacity;
}

.eyebrow {
  color: var(--gold);
  font: 600 12px/1.4 Georgia, serif;
  letter-spacing: .18em;
}

.eyebrow--light { color: #d6b786; }

.invitation-card h1 {
  margin-top: 32px;
  font-family: var(--serif);
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 400;
  letter-spacing: -.055em;
}

.invitation-card h1 span {
  display: block;
  margin: 14px 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
}

.date { margin-top: 38px; font-size: 15px; letter-spacing: .08em; }
.venue { margin-top: 10px; color: var(--muted); font-size: 15px; }

.page {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--ivory);
  box-shadow: 0 0 80px rgba(0, 0, 0, .25);
}

.section { position: relative; padding: 112px 24px; }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--rose { background: var(--rose-pale); }
.section--wine { color: var(--paper); background: var(--wine); }
.section--ink { color: var(--paper); background: #181414; }
.section__inner { width: 100%; max-width: 650px; margin: 0 auto; }
.section__inner--narrow { max-width: 560px; }

.section h2 {
  margin-top: 25px;
  font-family: var(--serif);
  font-size: clamp(36px, 9.2vw, 56px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.052em;
}

.section-lead {
  max-width: 480px;
  margin-top: 25px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.story { padding-bottom: 0; }
.story__punch { margin-top: 20px; color: var(--wine); font-size: 21px; font-weight: 750; line-height: 1.55; }
.story__body { margin-top: 58px; padding-left: 24px; border-left: 2px solid var(--wine); }
.story__body p { color: var(--ink-soft); font-size: 17px; line-height: 1.85; }
.story__body p + p { margin-top: 24px; }

.story-photo {
  width: calc(100% + 48px);
  max-width: none;
  margin: 94px -24px 0;
  background: var(--wine);
}

.story-photo img { display: block; width: 100%; height: min(68svh, 680px); object-fit: cover; object-position: 68% 50%; }
.story-photo figcaption { padding: 17px 24px 19px; color: #d8bfa3; font: 600 11px/1.4 Georgia, serif; letter-spacing: .18em; }

.family-lines { margin-top: 52px; padding: 27px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.family-lines p { font-size: 16px; line-height: 1.8; }
.family-lines p + p { margin-top: 5px; }
.family-lines span { color: var(--muted); }
.family-lines strong { margin-left: 6px; color: var(--wine); font-size: 18px; }

.date-poster {
  margin-top: 64px;
  padding: 45px 22px 42px;
  text-align: center;
  color: var(--paper);
  background: var(--wine);
  box-shadow: 0 24px 50px rgba(74, 14, 25, .17);
}

.date-poster__month { color: #d6b786; font: 600 12px/1.4 Georgia, serif; letter-spacing: .24em; }
.date-poster > strong { display: block; margin: 11px 0 4px; font: 400 clamp(92px, 28vw, 150px)/.9 var(--serif); letter-spacing: -.08em; }
.date-poster > p:not(.date-poster__month) { font: 600 12px/1.4 Georgia, serif; letter-spacing: .17em; }
.date-poster > span { display: block; margin-top: 25px; font-size: 17px; }

.countdown { margin: 38px 0 24px; display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 14px; }
.countdown strong { color: var(--wine); font: 400 30px/1 var(--serif); }

.button {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.button:active { transform: translateY(1px); }
.button--wine { color: white; background: var(--wine); }
.button--light { color: var(--wine); background: var(--paper); }

.venue-section h2 { color: white; }
.venue-section__time { margin-top: 28px; color: #e9d8d2; font-size: 17px; line-height: 1.75; }

.venue-card { margin-top: 58px; padding: 34px 26px 28px; color: var(--ink); background: var(--paper); }
.venue-card__label { color: var(--gold); font: 600 11px/1.4 Georgia, serif; letter-spacing: .17em; }
.venue-card > strong { display: block; margin-top: 20px; font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.35; letter-spacing: -.035em; }
.venue-card > p:not(.venue-card__label) { margin-top: 13px; color: var(--muted); font-size: 14px; }
.venue-actions { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.venue-actions a { min-height: 48px; display: grid; place-items: center; border: 1px solid var(--wine); color: var(--wine); font-size: 14px; font-weight: 750; }
.venue-note { margin-top: 19px; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.65; }

.after-guide__grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.after-place {
  position: relative;
  min-height: 282px;
  padding: 27px 0 30px;
  border-bottom: 1px solid var(--line);
}

.after-place__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.after-place__top span {
  color: var(--wine);
  font: 600 12px/1 Georgia, serif;
  letter-spacing: .08em;
}

.after-place__top p {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.after-place h3 {
  margin-top: 27px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.after-place > p {
  max-width: 470px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.after-place > a {
  position: absolute;
  left: 0;
  bottom: 30px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--wine);
  font-size: 14px;
  font-weight: 750;
}

.after-place > a span {
  color: var(--gold);
  font-size: 16px;
  transition: transform .2s ease;
}

.after-place > a:hover span { transform: translate(2px, -2px); }

.groom-picks {
  margin-top: 68px;
  padding-top: 26px;
  border-top: 2px solid var(--wine);
}

.groom-picks__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
}

.groom-picks__heading p {
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
}

.groom-picks__heading h3 {
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.groom-picks__list {
  border-top: 1px solid var(--line);
  list-style: none;
}

.groom-picks__list li { border-bottom: 1px solid var(--line); }

.groom-picks__list a {
  min-height: 92px;
  padding: 21px 0 19px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 7px;
}

.groom-picks__list strong {
  min-width: 0;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.groom-picks__list span {
  min-width: 0;
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.groom-picks__list em {
  grid-column: 2;
  grid-row: 1;
  color: var(--wine);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.groom-picks__list i {
  margin-left: 4px;
  color: var(--gold);
  font-size: 14px;
  font-style: normal;
  transition: transform .2s ease;
}

.groom-picks__list a:hover i { display: inline-block; transform: translate(2px, -2px); }

.after-guide__event {
  margin-top: 56px;
  padding: 29px 25px 27px;
  color: white;
  background: var(--wine);
}

.after-guide__event > span {
  color: #d6b786;
  font: 600 11px/1.4 Georgia, serif;
  letter-spacing: .14em;
}

.after-guide__event p {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.65;
  letter-spacing: -.025em;
}

.after-guide__event a {
  min-height: 44px;
  margin-top: 17px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.55);
  font-size: 14px;
  font-weight: 750;
}

.award-list { margin-top: 56px; border-top: 1px solid rgba(82, 16, 29, .22); }
.award { position: relative; padding: 27px 0 29px 50px; border-bottom: 1px solid rgba(82, 16, 29, .22); }
.award > span { position: absolute; top: 31px; left: 0; color: var(--wine); font: 600 12px/1 Georgia, serif; }
.award h3 { color: var(--wine); font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -.035em; }
.award p { margin-top: 7px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.award-note { margin-top: 29px; color: var(--wine); font-size: 14px; font-weight: 700; line-height: 1.75; }

.form-card { margin-top: 58px; padding: 28px 22px; background: var(--paper); box-shadow: 0 20px 50px rgba(73, 24, 28, .08); }
.photo-open-note { margin: 0 0 26px; padding: 18px 17px; border: 1px solid rgba(82,16,29,.2); color: var(--wine); background: rgba(82,16,29,.055); text-align: center; }
.photo-open-note strong { display: block; font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.65; text-wrap: balance; }
.photo-open-note span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.5; }
.photo-open-note.is-open { border-color: rgba(178,138,80,.46); background: rgba(178,138,80,.09); }
.photo-form__fields { min-inline-size: 0; margin: 0; padding: 0; border: 0; transition: opacity .35s ease; }
.photo-form__fields[disabled] { opacity: .42; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field { display: block; }
.field + .field, .field-row + .field, .field + .upload-box { margin-top: 18px; }
.field > span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.field em { margin-left: 4px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 13px;
  border: 1px solid #d6c9bc;
  border-radius: 0;
  color: var(--ink);
  background: white;
  font-size: 16px;
  outline: none;
}
.field textarea { min-height: 106px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(82,16,29,.1); }
.upload-box { min-height: 116px; padding: 24px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--wine); color: var(--wine); text-align: center; cursor: pointer; }
.upload-box strong { font-size: 16px; }
.upload-box span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.selected-files { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-card .button { margin-top: 22px; }
.form-note { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-status { min-height: 21px; margin-top: 10px; color: var(--wine); font-size: 13px; font-weight: 700; line-height: 1.6; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.guest-gallery h2 { color: white; }
.gallery-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-card { position: relative; min-width: 0; overflow: hidden; background: #292323; }
.gallery-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-card__copy { padding: 13px 12px 15px; }
.gallery-card__copy strong { display: block; color: #e6c79b; font-size: 12px; }
.gallery-card__copy p { margin-top: 5px; color: #d7cfca; font-size: 13px; line-height: 1.5; }
.gallery-card__award { position: absolute; top: 8px; left: 8px; padding: 6px 8px; color: var(--wine); background: var(--paper); font-size: 11px; font-weight: 800; }
.empty-state { grid-column: 1 / -1; padding: 30px 0; color: var(--muted); font-size: 14px; }
.section--ink .empty-state { color: rgba(255,255,255,.56); }

.message-wall { margin-top: 56px; border-top: 1px solid var(--line); }
.message-card { padding: 25px 0 26px; border-bottom: 1px solid var(--line); }
.message-card blockquote { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.65; letter-spacing: -.02em; }
.message-card footer { margin-top: 13px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.message-card__author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.message-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(128, 33, 52, .22);
  border-radius: 999px;
  color: var(--wine);
  background: rgba(185, 139, 80, .1);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.account-tabs { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--wine); }
.account-tab { min-height: 49px; border: 0; color: var(--wine); background: transparent; cursor: pointer; font-size: 14px; font-weight: 750; }
.account-tab.is-active { color: white; background: var(--wine); }
.account-panel { border: 1px solid var(--line); border-top: 0; }
.account-row { min-height: 84px; padding: 17px 13px 17px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-row div { min-width: 0; }
.account-row span { display: block; color: var(--muted); font-size: 12px; }
.account-row strong { display: block; margin-top: 7px; font-size: 16px; letter-spacing: .01em; }
.account-row button { min-width: 58px; min-height: 44px; border: 1px solid var(--wine); color: var(--wine); background: transparent; cursor: pointer; font-size: 13px; font-weight: 750; }
.copy-status { min-height: 24px; margin-top: 12px; color: var(--wine); font-size: 13px; text-align: center; }

.footer { padding-top: 92px; padding-bottom: max(230px, calc(210px + env(safe-area-inset-bottom))); text-align: center; }
.footer__names { font: 400 36px/1.25 var(--serif); }
.footer > p:nth-child(2) { margin-top: 15px; color: rgba(255,255,255,.7); font-size: 14px; }
.footer .button { max-width: 420px; margin-top: 36px; }
.footer__thanks { margin-top: 48px; color: #d6b786; font: 400 21px/1.5 var(--serif); }
.footer__credit { margin-top: 48px; color: rgba(255,255,255,.34); font-size: 11px; line-height: 1.5; letter-spacing: .04em; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); min-width: 180px; max-width: calc(100vw - 40px); padding: 13px 18px; color: white; background: rgba(24, 20, 20, .94); font-size: 13px; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.72,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .45; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@media (min-width: 560px) {
  .section { padding-left: 48px; padding-right: 48px; }
  .story-photo { width: calc(100% + 96px); margin-left: -48px; margin-right: -48px; }
  .after-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .after-place { padding-right: 28px; }
  .after-place:nth-child(odd) { border-right: 1px solid var(--line); }
  .after-place:nth-child(even) { padding-right: 0; padding-left: 28px; }
  .after-place:nth-child(even) > a { left: 28px; }
  .groom-picks__list a { grid-template-columns: minmax(160px, .72fr) minmax(0, 1.5fr) auto; column-gap: 28px; }
  .groom-picks__list span { grid-column: 2; grid-row: 1; }
  .groom-picks__list em { grid-column: 3; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field + .field { margin-top: 0; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

@media (min-width: 900px) {
  .opening__stage::after { content: "J · S"; position: absolute; right: 34px; bottom: 28px; color: rgba(255,255,255,.2); font: 400 18px/1 Georgia, serif; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .opening { height: 100svh; }
  .opening__hint { display: none; }
  .envelope-wrap { --source-opacity: 0; --constructed-opacity: 1; opacity: .16 !important; transform: scale(1.2) !important; }
  .envelope-flap { transform: rotateX(-165deg) !important; }
  .scatter-photo { display: none; }
  .invitation-card { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 2026 editorial edition */
:root {
  --wine: #59101f;
  --wine-mid: #741a2f;
  --wine-dark: #22070e;
  --ivory: #f4efe5;
  --paper: #fffaf0;
  --rose-pale: #ead8d3;
  --ink: #241b19;
  --ink-soft: #544641;
  --muted: #82716a;
  --gold: #b28a50;
  --serif: "CCJ Gowun Batang", "Gowun Batang", AppleMyungjo, Georgia, serif;
  --sans: "CCJ Noto Sans KR", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { text-rendering: optimizeLegibility; }

.opening {
  height: 390svh;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 239, 210, .14), transparent 29%),
    radial-gradient(circle at 20% 72%, rgba(166, 61, 80, .18), transparent 34%),
    linear-gradient(155deg, #771c30 0%, var(--wine) 48%, var(--wine-dark) 100%);
}

.opening__stage { z-index: 2; min-height: 590px; isolation: isolate; perspective: 1600px; }

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

.opening__stage::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(224, 196, 148, .17);
  pointer-events: none;
}

.opening__hint {
  left: 50%;
  bottom: max(25px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  white-space: nowrap;
}

.envelope-wrap {
  width: min(92vw, 620px);
  aspect-ratio: 4 / 3;
  filter: drop-shadow(0 28px 48px rgba(15, 0, 4, .42));
  transform-origin: 50% 58%;
}

.envelope-wrap::before {
  inset: 10.5% 5.3% 2.1%;
  border-radius: 5px;
  background:
    radial-gradient(ellipse at 16% 79%, rgba(211, 119, 124, .14), transparent 27%),
    linear-gradient(148deg, #7d2938 0%, #5b111f 60%, #3b0912 100%);
  box-shadow: inset 0 0 30px rgba(30, 2, 8, .18);
  opacity: var(--constructed-opacity, 0);
}

.envelope-base { object-fit: contain; border-radius: 0; image-rendering: auto; will-change: opacity; }

.envelope-interior {
  top: 10.7%;
  right: 5.4%;
  bottom: auto;
  left: 5.4%;
  height: 56%;
  clip-path: polygon(0 0, 100% 0, 50% 92%);
  background:
    radial-gradient(circle at 50% 82%, rgba(152, 55, 71, .28), transparent 33%),
    linear-gradient(180deg, #21060c, #3c0913 67%, #631522);
}

.photo-stack {
  z-index: 3;
  inset: 10.7% 5.4% 2.2%;
  overflow: visible;
  transform-style: preserve-3d;
}

.scatter-photo {
  top: 31%;
  width: clamp(108px, 29vw, 208px);
  padding: 5px 5px 21px;
  overflow: hidden;
  transform: translate(-50%, 8%) scale(.32);
  transform-origin: 50% 100%;
}

.scatter-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(98, 73, 58, .08);
  pointer-events: none;
}

.envelope-pocket {
  z-index: 4;
  inset: 34.5% 5.4% 2.1%;
  clip-path: polygon(0 15%, 50% 77%, 100% 15%, 100% 100%, 0 100%);
  background:
    radial-gradient(ellipse at 17% 82%, rgba(213, 123, 126, .12), transparent 27%),
    linear-gradient(151deg, #7b2637 0%, #56101e 70%, #430b16 100%);
  box-shadow: inset 0 -12px 25px rgba(28, 1, 7, .14);
}

.envelope-pocket-art {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: polygon(5.2% 36%, 50% 70%, 94.8% 36%, 94.8% 95%, 5.2% 95%);
  opacity: var(--constructed-opacity, 0);
  pointer-events: none;
  will-change: opacity;
}

.envelope-flap {
  z-index: 5;
  top: 10.7%;
  right: 5.4%;
  left: 5.4%;
  height: 55.5%;
}

.envelope-flap::after { content: none; }

.envelope-flap__texture {
  background:
    radial-gradient(ellipse at 15% 73%, rgba(210, 118, 125, .13), transparent 25%),
    linear-gradient(180deg, #7e2939 0%, #601420 67%, #430a14 100%);
}

.seal {
  z-index: 6;
  top: 90%;
  width: clamp(62px, 15vw, 86px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 48% 52% 47% 53% / 53% 48% 52% 47%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.88) 0 5%, transparent 6%),
    radial-gradient(circle at 48% 45%, #fff9df 0 40%, #dfc48e 64%, #ad854a 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.22),
    inset 0 0 0 7px rgba(143,100,48,.13),
    0 4px 14px rgba(32,4,10,.42);
  font-style: italic;
}

.seal i { font-size: clamp(16px, 3.8vw, 23px); font-weight: 400; }
.seal b { margin-top: 1px; color: #9b7640; font-size: clamp(11px, 2.3vw, 14px); font-weight: 400; }

.invitation-card {
  width: min(88vw, 500px);
  min-height: min(88svh, 760px);
  padding: clamp(58px, 9vh, 88px) 24px 48px;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(90,56,38,.018) 8px),
    var(--paper);
  transform: translateY(72vh) scale(.88) rotateX(-7deg);
}

.invitation-card::before,
.invitation-card::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-color: rgba(178,138,80,.45);
  pointer-events: none;
}
.invitation-card::before { top: 17px; left: 17px; border-top: 1px solid; border-left: 1px solid; }
.invitation-card::after { right: 17px; bottom: 17px; border-right: 1px solid; border-bottom: 1px solid; }
.invitation-card__line { width: 1px; height: 52px; margin-bottom: 29px; background: var(--gold); }

.invitation-card__bridge {
  position: absolute;
  z-index: -1;
  top: calc(100% - 3px);
  left: 0;
  width: 100%;
  height: 100svh;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(90,56,38,.018) 8px),
    var(--paper);
  transform: translateZ(0) scaleY(0);
  transform-origin: 50% 0;
  pointer-events: none;
  will-change: transform;
}

.persistent-envelope,
.persistent-envelope-flap {
  --persistent-envelope-drop: 0%;
  --persistent-envelope-lift: 0px;
  --persistent-envelope-compact-drop: 0px;
}

.persistent-envelope {
  --persistent-envelope-drop: 0%;
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: -15vw;
  width: min(92vw, 620px);
  aspect-ratio: 4 / 3;
  opacity: 0;
  transform: translate(-50%, 28px) scale(.84);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 -13px 28px rgba(32, 4, 10, .24));
  pointer-events: none;
  will-change: opacity, transform;
}

.persistent-envelope img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: polygon(5.2% 36%, 50% 70%, 94.8% 36%, 94.8% 95%, 5.2% 95%);
}

.invitation-card h1 { margin-top: 29px; font-size: clamp(35px, 9.4vw, 58px); line-height: 1.2; }
.invitation-card h1 span { color: var(--gold); font-family: Georgia, serif; font-size: 14px; font-style: italic; }
.invitation-card__message { margin-top: 35px; color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 1.9; }
.date { color: var(--wine); font: 600 12px/1.4 Georgia, serif; letter-spacing: .12em; }
.venue { font-size: 13px; line-height: 1.6; }

.section h2 { font-size: clamp(34px, 8.9vw, 55px); line-height: 1.35; }
.section-lead { font-size: 16px; line-height: 1.85; }

.line-reveal span {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  clip-path: inset(0 0 100% 0);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.18,1), clip-path .9s cubic-bezier(.2,.7,.18,1);
}
.line-reveal span + span { transition-delay: .12s; }
.line-reveal.is-visible span { opacity: 1; transform: none; clip-path: inset(0); }

.botanical-corner { position: absolute; z-index: 0; width: 170px; height: 230px; opacity: .33; pointer-events: none; }
.botanical-corner::before { content: ""; position: absolute; left: 83px; top: -14px; width: 1px; height: 270px; background: var(--gold); transform: rotate(28deg); }
.botanical-corner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 18px 42px at 45% 22%, transparent 48%, var(--gold) 51% 54%, transparent 57%),
    radial-gradient(ellipse 19px 45px at 68% 40%, transparent 48%, var(--gold) 51% 54%, transparent 57%),
    radial-gradient(ellipse 19px 45px at 48% 59%, transparent 48%, var(--gold) 51% 54%, transparent 57%),
    radial-gradient(ellipse 17px 40px at 77% 73%, transparent 48%, var(--gold) 51% 54%, transparent 57%);
}
.botanical-corner--left { top: -54px; left: -63px; transform: rotate(-23deg); }
.botanical-corner--right { top: -50px; right: -70px; transform: scaleX(-1) rotate(-18deg); }

.story .section__inner { position: relative; z-index: 1; }
.story__punch { font-family: var(--serif); font-size: 20px; line-height: 1.65; }
.story__body { border-left: 1px solid var(--gold); }
.story__body p { font-family: var(--serif); font-size: 16px; line-height: 2; }
.story-photo figcaption span { margin-right: 12px; color: white; }

.couple-intro { overflow: clip; background: var(--paper); }
.couple-intro::before {
  content: "ABOUT US";
  position: absolute;
  top: 118px;
  right: -18px;
  color: rgba(178,138,80,.12);
  font: 600 54px/1 Georgia, serif;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.profile { position: relative; }
.profile--groom { margin-top: 70px; }
.profile__photo { width: min(88%, 430px); }
.profile--groom .profile__photo { margin-left: auto; }
.profile__photo img { display: block; width: 100%; height: auto; background: #ebe7df; }
.profile__photo figcaption { margin-top: 12px; color: var(--gold); font: 600 11px/1.4 Georgia, serif; letter-spacing: .18em; }
.profile--groom .profile__photo figcaption { text-align: right; }
.profile__copy { margin-top: 47px; }
.profile__role { color: var(--wine); font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.5; }
.profile__role::before { content: ""; display: inline-block; width: 26px; height: 1px; margin: 0 12px 7px 0; background: var(--gold); }
.profile__body { margin-top: 33px; padding-left: 22px; border-left: 1px solid rgba(178,138,80,.55); }
.profile__body p { color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 2; }
.profile__body p + p { margin-top: 25px; }

.bride-teaser {
  padding-top: 150px;
  padding-bottom: 144px;
  color: var(--ink-soft);
  font-family: var(--serif);
}
.bride-teaser::before { content: ""; display: block; width: 1px; height: 66px; margin-bottom: 34px; background: var(--gold); }
.bride-teaser p { font-size: 16px; line-height: 1.8; }
.bride-teaser strong { display: block; margin-top: 12px; color: var(--wine); font-size: clamp(38px, 10vw, 55px); font-weight: 400; line-height: 1.4; letter-spacing: -.055em; }

.bride-photo-reveal {
  position: relative;
  height: 430svh;
  background: var(--paper);
}
.bride-photo-reveal__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.bride-photo-reveal__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, calc((100svh - 72px) * .75));
  margin: 0 auto;
  opacity: var(--bride-photo-opacity, 0);
  transform: translate3d(-50%, -50%, 0) scale(var(--bride-photo-scale, 1));
  will-change: opacity, transform;
}
.bride-photo-reveal__photo img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.bride-photo-reveal__photo--couple-first {
  width: min(100%, calc((100svh - 72px) * .566));
  opacity: var(--bride-couple-first-opacity, 0);
  transform: translate3d(-50%, -50%, 0) scale(var(--bride-couple-first-scale, 1.025));
}
.bride-photo-reveal__photo--couple-first img { aspect-ratio: 1600 / 2829; }
.bride-photo-reveal__photo--couple-final {
  width: min(100%, 760px);
  height: auto;
  aspect-ratio: 3 / 2;
  opacity: var(--bride-couple-final-opacity, 0);
  transform: translate3d(-50%, -50%, 0) scale(var(--bride-couple-final-scale, .94));
}
.bride-photo-reveal__photo--couple-final img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
/* Let the last portrait grow past the paper while the viewport remains the boundary. */
main:has(.page.has-expanded-bride-photo) { overflow-x: clip; }
.page.has-expanded-bride-photo { overflow: visible; clip-path: inset(0 -400vw -160px); }
.page.has-expanded-bride-photo .couple-intro,
.page.has-expanded-bride-photo .bride-photo-reveal__sticky { overflow: visible; }
.bride-photo-reveal__photo--couple-final { pointer-events: none; }
.profile--bride { margin-top: -160px; padding-bottom: 24px; }
.profile--bride .profile__copy { margin-top: 54px; }

.field-report {
  position: relative;
  margin-top: 150px;
  padding-top: 48px;
  border-top: 1px solid rgba(89, 16, 31, .22);
}

.field-report__lead { margin-top: 0; }
.field-report__lead img,
.field-report__evidence img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #e7dfd5;
  filter: saturate(.88) contrast(1.02);
}

.field-report__lead img {
  aspect-ratio: 4 / 3;
  object-position: 62% 50%;
}

.field-report__copy {
  max-width: 570px;
  margin: 58px auto 0;
}

.field-report__copy > p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.field-report__copy > p + p { margin-top: 27px; }
.field-report__opening::first-letter {
  float: left;
  margin: 4px 9px 0 0;
  color: var(--wine);
  font: 400 54px/.78 Georgia, serif;
}

.field-report__evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 72px;
}

.field-report__evidence figure:nth-child(2) { margin-top: 44px; }
.field-report__evidence img { aspect-ratio: 4 / 5; }
.field-report__evidence figure:first-child img { object-position: 59% 50%; }
.field-report__evidence figure:nth-child(2) img { object-position: 73% 50%; }

.portrait-sequence { min-height: 1040px; padding-top: 94px; overflow: hidden; }
.portrait-sequence__copy { position: relative; z-index: 4; width: min(100%, 540px); margin: 0 auto; }
.portrait-sequence__copy > p:last-child { margin-top: 25px; font-family: var(--serif); font-size: clamp(26px, 7vw, 40px); line-height: 1.55; letter-spacing: -.04em; }
.portrait-sequence__grid { position: relative; width: min(100%, 650px); min-height: 720px; margin: 62px auto 0; }
.portrait-card { position: absolute; margin: 0; }
.portrait-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-card figcaption { margin-top: 10px; color: rgba(255,255,255,.58); font: 600 11px/1.4 Georgia, serif; letter-spacing: .17em; }
.portrait-card--tall { top: 0; left: 0; z-index: 1; width: 72%; height: 535px; }
.portrait-card--small { top: 410px; right: -24px; z-index: 3; width: 52%; height: 330px; }
.portrait-sequence__amp { position: absolute; top: 315px; right: 19%; z-index: 2; color: #d7bc8b; font: italic 400 130px/1 Georgia, serif; opacity: .74; }

.calendar-card { margin-top: 62px; padding: 32px 23px 26px; border: 1px solid rgba(178,138,80,.48); background: rgba(255,255,255,.46); box-shadow: 0 22px 45px rgba(77,47,34,.07); }
.calendar-card__head { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.calendar-card__head > div span { display: block; color: var(--gold); font: 600 11px/1.4 Georgia, serif; letter-spacing: .2em; }
.calendar-card__head > div strong { display: block; margin-top: 4px; font: 400 37px/1 var(--serif); letter-spacing: -.05em; }
.calendar-card__head > p { display: flex; align-items: baseline; gap: 8px; color: var(--wine); }
.calendar-card__head > p b { font: 400 54px/.82 var(--serif); }
.calendar-card__head > p span { font: 600 11px/1 Georgia, serif; letter-spacing: .12em; }
.calendar-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px 4px; text-align: center; }
.calendar-grid > span { color: var(--gold); font: 600 11px/1 Georgia, serif; }
.calendar-grid > b { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 500; }
.calendar-grid > b.is-wedding-day { position: relative; color: white; background: var(--wine); }
.calendar-grid > b.is-wedding-day::after { content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.calendar-card__time { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--wine); font-family: var(--serif); font-size: 15px; text-align: center; }

.venue-section { background: linear-gradient(158deg, #671526, #430b17 74%); }
.venue-card { position: relative; }
.venue-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(178,138,80,.3); pointer-events: none; }
.venue-actions { position: relative; z-index: 1; }
.award h3, .upload-box strong { font-family: var(--serif); }
.gallery-card img { aspect-ratio: 4 / 5; }

.reveal { transition: opacity .75s ease, transform .8s cubic-bezier(.2,.7,.18,1); }

@media (max-width: 360px) {
  .opening__stage::after { inset: 10px; }
  .invitation-card { width: 90vw; padding-right: 19px; padding-left: 19px; }
  .invitation-card__message { font-size: 14px; }
  .portrait-card--small { right: -20px; }
}

@media (min-width: 560px) {
  .portrait-card--small { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .opening { height: 100svh; }
  .envelope-wrap { --source-opacity: 0; --constructed-opacity: 1; opacity: .13 !important; transform: translateY(38vh) scale(.86) !important; }
  .line-reveal span { opacity: 1; transform: none; clip-path: none; }
  .invitation-card { transform: translateY(-2vh) !important; }
}

/* PNG envelope cinema — every paper layer sits between the back and front pocket. */
.opening { height: 410svh; }

.opening,
.page { overflow-anchor: none; }

.envelope-scene {
  position: absolute;
  z-index: 10;
  width: min(94vw, 660px);
  aspect-ratio: 4 / 3;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 58%;
  transform-style: preserve-3d;
  filter: drop-shadow(0 28px 48px rgba(15, 0, 4, .42));
  will-change: transform, opacity;
}

.envelope-layer {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.envelope-layer--open-anchor {
  left: 50%;
  bottom: 2%;
  width: min(155.4vw, 1029px);
  aspect-ratio: 1491 / 1055;
  visibility: hidden;
  transform: translateX(-50%);
}

.envelope-layer--closed {
  z-index: 5;
  left: 50%;
  bottom: 2%;
  width: 120.75%;
  height: auto;
  aspect-ratio: 1491 / 1055;
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  transform-origin: 50% 62%;
  will-change: opacity, transform;
}

.persistent-envelope-flap {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  width: min(116.75vw, 820px);
  height: auto;
  aspect-ratio: 1491 / 1055;
  opacity: 1;
  transform: translate3d(-50%, calc(var(--persistent-envelope-drop) + var(--persistent-envelope-lift, 0px)), 3px) rotateX(0deg);
  transform-origin: 50% 10.7%;
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform;
  clip-path: inset(0);
  transition: clip-path .18s cubic-bezier(.2,.72,.18,1);
}

/* Trim the folded flap to the body's own edges: body = 155.4vw x (82.7% - 16.8%), flap box = 116.75vw. 8% left a 4px gap at each screen edge on 390px+ phones. */
.has-compact-envelope .persistent-envelope-flap { clip-path: inset(0 6.2%); }
@media (max-width: 360px) { .has-compact-envelope .persistent-envelope-flap { clip-path: inset(0 8.2%); } }

.envelope-flap-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  transform: scaleX(.943) scaleY(.852);
  transform-origin: 50% 10.7%;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  will-change: opacity;
}

.envelope-closed-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.seal-image {
  position: absolute;
  z-index: 2;
  top: 57.5%;
  left: 50%;
  width: clamp(68px, 16.5vw, 105px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 7px 9px rgba(27, 2, 7, .45));
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.envelope-contents {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: visible;
  clip-path: inset(-120vh -120vw 0 -120vw);
  pointer-events: none;
}

.envelope-scene .photo-stack {
  z-index: 2;
  inset: 0;
  overflow: visible;
}

.envelope-scene .scatter-photo {
  top: 51%;
  width: clamp(104px, 28vw, 205px);
  transform-origin: 50% 100%;
}

.envelope-scene .invitation-card {
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(92vw, 780px);
  min-height: min(86svh, 740px);
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 72vh), 0) rotateX(-4deg);
}

.persistent-envelope {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(155.4vw, 1029px);
  height: auto;
  aspect-ratio: auto;
  opacity: 0;
  transform: translate3d(-50%, calc(var(--persistent-envelope-drop) + var(--persistent-envelope-lift) + var(--persistent-envelope-compact-drop)), 0);
  transform-origin: 50% 100%;
  pointer-events: none;
  will-change: opacity, transform;
}

.persistent-envelope img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.persistent-envelope--back {
  z-index: 1;
  filter: drop-shadow(0 -18px 34px rgba(25, 2, 7, .3));
}
.persistent-envelope--back img { clip-path: inset(38.5% 0 0 0); }

.persistent-envelope--front {
  z-index: 40;
  overflow: visible;
}
.persistent-envelope--front::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 17.3%;
  bottom: -2px;
  left: 16.8%;
  height: calc(5% + 6px);
  background: linear-gradient(180deg, #721b2b 0%, #5a101e 100%);
  pointer-events: none;
}
.persistent-envelope--front img {
  position: relative;
  z-index: 1;
  clip-path: polygon(16.8% 38.7%, 50% 75.3%, 82.7% 38.7%, 82.7% 96.4%, 16.8% 96.4%);
  filter: drop-shadow(0 -7px 8px rgba(31, 3, 9, .22));
}

.persistent-envelope--back img,
.persistent-envelope--front img {
  transition: clip-path .18s cubic-bezier(.2,.72,.18,1);
}

.has-compact-envelope .persistent-envelope--back img { clip-path: inset(57% 0 0 0); }
.has-compact-envelope .persistent-envelope--front img {
  clip-path: polygon(16.8% 56.8%, 50% 88.3%, 82.7% 56.8%, 82.7% 97.2%, 16.8% 97.2%);
}

.page {
  z-index: 2;
  width: min(92vw, 780px);
  max-width: none;
  margin-top: var(--opening-paper-overlap, -11svh);
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, .3), 0 -22px 45px rgba(38, 8, 14, .16);
  transform-origin: 50% 0;
}

.page::before {
  content: "";
  position: absolute;
  z-index: 30;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(90, 56, 38, .018) 8px);
  pointer-events: none;
}

.section { padding-right: 18px; padding-left: 18px; }
.footer { padding-bottom: max(260px, calc(235px + env(safe-area-inset-bottom))); }

.botanical-corner {
  position: absolute;
  z-index: 0;
  display: block;
  width: clamp(116px, 36vw, 185px);
  height: auto;
  max-width: none;
  opacity: .38;
  object-fit: contain;
  pointer-events: none;
  filter: saturate(.72) sepia(.08);
}

.botanical-corner::before,
.botanical-corner::after { content: none; }
.botanical-corner--left { top: -42px; left: -43px; transform: rotate(-15deg); }
.botanical-corner--right { top: -43px; right: -44px; transform: scaleX(-1) rotate(-15deg); }

/* Editorial motion after the envelope. */
.motion-section::after {
  content: "";
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(54%, 310px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178, 138, 80, .5), transparent);
  opacity: var(--section-line, 0);
  transform: translateX(-50%) scaleX(var(--section-line, 0));
  pointer-events: none;
}

.motion-reveal {
  --reveal-x: 0px;
  --reveal-r: 0deg;
  --parallax-y: 0px;
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(var(--reveal-x), calc(46px + var(--parallax-y)), 0) rotate(var(--reveal-r)) scale(.975);
  transition:
    opacity .85s ease var(--motion-delay, 0ms),
    filter .85s ease var(--motion-delay, 0ms),
    transform 1s cubic-bezier(.18,.75,.14,1) var(--motion-delay, 0ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, var(--parallax-y), 0) rotate(0) scale(1);
}

.parallax-media { will-change: transform; }
.motion-card {
  transition: transform .35s cubic-bezier(.2,.75,.18,1), box-shadow .35s ease, border-color .35s ease;
  transform-style: preserve-3d;
}

.motion-card:active { transform: scale(.985); }
.calendar-card.is-visible .is-wedding-day { animation: wedding-day 2.4s ease-in-out 1 .55s; }
.portrait-sequence__amp { will-change: transform; }

@media (hover: none), (pointer: coarse) {
  .motion-reveal {
    filter: none;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity .45s ease var(--motion-delay, 0ms),
      transform .48s cubic-bezier(.2,.72,.18,1) var(--motion-delay, 0ms);
  }

  .motion-reveal.is-visible { filter: none; transform: none; }
  .parallax-media,
  .portrait-sequence__amp,
  .closing-film__frame,
  .closing-film__line { will-change: auto; }
  .motion-card { transform-style: flat; }
  .persistent-envelope--back,
  .persistent-envelope--front img { filter: none; }
}

@keyframes wedding-day {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(89, 16, 31, .25); }
  45% { transform: scale(1.13); box-shadow: 0 0 0 9px rgba(89, 16, 31, 0); }
}

@media (hover: hover) and (pointer: fine) {
  .motion-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(48, 17, 20, .13); }
  .section--wine .motion-card:hover,
  .section--ink .motion-card:hover { box-shadow: 0 24px 54px rgba(0, 0, 0, .3); }
}

@media (min-width: 560px) {
  .section { padding-right: 48px; padding-left: 48px; }
  .field-report__evidence { gap: 24px; }
}

@media (max-width: 360px) {
  .envelope-scene { width: 98vw; }
  .envelope-scene .invitation-card { width: 94vw; min-height: min(84svh, 680px); }
  .persistent-envelope { width: 148vw; }
  .page { width: 94vw; }
  .section { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .opening { height: 100svh; }
  .envelope-scene { transform: translateY(34vh) scale(.83) !important; }
  .envelope-layer--closed { display: none; }
  .envelope-scene .scatter-photo { display: none; }
  .envelope-scene .invitation-card { opacity: 1 !important; transform: translate3d(-50%, -92%, 0) !important; }
  .persistent-envelope { opacity: 1 !important; transform: translate3d(-50%, var(--persistent-envelope-drop), 0) scale(.9) !important; }
  .persistent-envelope-flap { z-index: 1 !important; opacity: 1 !important; transform: translate3d(-50%, var(--persistent-envelope-drop), 0) rotateX(-158deg) scale(.9) !important; }
  .persistent-envelope-flap .envelope-flap-image { opacity: 1 !important; }
  .motion-reveal { opacity: 1; filter: none; transform: none; }
}

/* Guest messages settle into a quieter, roomier list before the closing scene. */
.guestbook .section__inner--narrow { max-width: 590px; }
.message-wall { margin-top: 64px; border-top: 0; }
.message-card {
  margin: 0 4px;
  padding: 31px 14px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  transition: background-color .25s ease;
}
.message-card:last-child { border-bottom: 1px solid var(--line); }
.message-card blockquote { font-size: clamp(18px, 5vw, 21px); line-height: 1.72; }
.message-card footer { margin-top: 18px; }

/* Scroll-led closing film after the guestbook. */
.page { overflow: clip; }

.closing-film {
  position: relative;
  z-index: 3;
  height: 500svh;
  color: var(--paper);
  background: #20070e;
}

.closing-film__stage {
  --closing-opacity: 1;
  --closing-frame-opacity: 0;
  --closing-frame-y: -2svh;
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  opacity: var(--closing-opacity);
  background:
    radial-gradient(circle at 50% 16%, rgba(130, 42, 58, .33), transparent 34%),
    linear-gradient(180deg, #24070e 0%, #130408 100%);
}

.closing-film__stage::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 18px;
  border: 1px solid rgba(185, 145, 85, .24);
  pointer-events: none;
}

.closing-film__stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 4, 8, .52) 0%, rgba(17, 4, 8, .17) 38%, rgba(17, 4, 8, .29) 72%, rgba(17, 4, 8, .68) 100%),
    radial-gradient(circle at 50% 28%, transparent 0%, rgba(18, 4, 8, .24) 76%, rgba(18, 4, 8, .5) 100%);
  pointer-events: none;
}

.closing-film__frame {
  position: absolute;
  z-index: 0;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  margin: 0;
  padding: 0;
  opacity: var(--closing-frame-opacity);
  transform: translate3d(0, var(--closing-frame-y), 0) scale(1.02);
  border: 0;
  background: #13090b;
  box-shadow: none;
  will-change: transform, opacity;
}

.closing-film__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 64px rgba(21, 5, 10, .2);
  pointer-events: none;
}

.closing-film__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-film__copy {
  position: absolute;
  z-index: 3;
  top: 17svh;
  left: 50%;
  width: min(91vw, 540px);
  transform: translateX(-50%);
  text-align: center;
}

.closing-film__line {
  opacity: var(--line-opacity, 0);
  transform: translate3d(0, var(--line-y, 15px), 0);
  color: rgba(255, 252, 246, .96);
  font-family: var(--serif);
  font-size: clamp(17px, min(5.1vw, 2.65svh), 23px);
  line-height: 1.5;
  letter-spacing: -.025em;
  text-shadow: 0 1px 11px rgba(19, 3, 7, .72), 0 2px 26px rgba(19, 3, 7, .46);
  will-change: transform, opacity;
}

.closing-film__line--final {
  margin-top: clamp(17px, 2.4svh, 24px);
  color: #efd09a;
  font-size: clamp(20px, min(5.8vw, 3svh), 27px);
  line-height: 1.42;
}

.footer--after-film {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.72,.18,1);
}

.footer--after-film.is-visible {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .message-card:hover { background: rgba(89, 16, 31, .028); }
}

@media (min-width: 640px) {
  .closing-film__copy {
    top: 14svh;
    width: min(84vw, 680px);
  }

  .closing-film__line {
    font-size: clamp(22px, min(2.8vw, 2.7svh), 27px);
  }

  .closing-film__line--final {
    font-size: clamp(25px, min(3.2vw, 3.1svh), 31px);
  }
}

/* Pointer-based desktop mode also covers zoomed/scaled PC windows below 900 CSS px. */
@media (min-width: 900px), (min-width: 620px) and (hover: hover) and (pointer: fine) {
  :root {
    --desktop-envelope-width: min(1252px, 125svh, calc(116.6vw - 50px));
    --desktop-paper-width: min(876px, 87.5svh, calc(81.5vw - 35px));
    --desktop-flap-width: min(946px, 94.5svh, calc(88vw - 38px));
    --desktop-content-width: min(780px, 78svh, calc(72.5vw - 31px));
  }

  .opening { height: 300svh; }

  .closing-film__copy {
    width: min(76vw, 780px);
  }

  .closing-film__line {
    font-size: clamp(24px, min(1.72vw, 3.05svh), 32px);
  }

  .closing-film__line--final {
    font-size: clamp(27px, min(1.95vw, 3.45svh), 36px);
  }

  .envelope-scene {
    width: var(--desktop-paper-width);
  }

  .envelope-layer--open-anchor,
  .persistent-envelope {
    width: var(--desktop-envelope-width);
  }

  .envelope-layer--closed {
    width: 105%;
  }

  .persistent-envelope-flap {
    width: var(--desktop-flap-width);
  }

  .envelope-scene .invitation-card {
    width: 89%;
    min-height: min(82svh, 740px);
  }

  .page {
    width: var(--desktop-content-width);
  }

  .envelope-flap-image {
    transform: scaleX(.896) scaleY(.852);
  }

  .envelope-scene .scatter-photo {
    width: min(180px, 22svh);
  }

  .has-compact-envelope .persistent-envelope--back img {
    clip-path: inset(61% 0 0 0);
  }

  .has-compact-envelope .persistent-envelope--front img {
    clip-path: polygon(16.8% 63%, 50% 92.5%, 82.7% 63%, 82.7% 97.2%, 16.8% 97.2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .closing-film { height: auto; }
  .closing-film__stage { position: relative; height: auto; min-height: 760px; opacity: 1; }
  .closing-film__frame { opacity: 1; transform: scale(1.02); }
  .closing-film__line { --line-opacity: 1; --line-y: 0px; }
  .footer--after-film { opacity: 1; transform: none; }
  .bride-photo-reveal { height: auto; }
  .bride-photo-reveal__sticky { position: relative; height: auto; }
  .bride-photo-reveal__photo { --bride-photo-opacity: 1; }
  .bride-photo-reveal__photo--couple-first,
  .bride-photo-reveal__photo--couple-final { display: none; }
  .profile--bride { margin-top: 0; }
  .music-toggle.is-playing .music-toggle__note { animation: none; }
}

/* 2026-09-02 review polish (v40): seam shadow, bride photo overlap, Korean drop cap, label contrast. */
:root { --gold-text: #8a6634; }
.eyebrow { color: var(--gold-text); }
.eyebrow--light { color: #d6b786; }
.after-place__top p,
.groom-picks__heading p,
.venue-card__label,
.calendar-card__head > div span,
.calendar-grid > span,
.profile__photo figcaption { color: var(--gold-text); }
.profile__photo figcaption,
.portrait-card figcaption { font-size: 11px; }
.calendar-card__head > div span { font-size: 11px; }
.calendar-grid > span { font-size: 11px; }
.calendar-grid > b { font-size: 12px; }
.footer__credit { color: rgba(255, 255, 255, .5); }

/* "제가" was split into a drop cap "제" + "가". Korean has no drop-cap convention. */
.field-report__opening::first-letter { float: none; margin: 0; color: inherit; font: inherit; }

/* The page's upward box-shadow painted a grey band on the invitation card it joins. */
.page { clip-path: inset(0 -160px -160px); }

/* On wide viewports the sticky bride photo fills the screen, so the -160px pull-up overlapped the photo and caption. */
.bride-photo-reveal__photo { width: min(100%, (100svh - 290px) * .75); }
.profile--bride { margin-top: -120px; }

.botanical-corner--left { top: -64px; }
.botanical-corner--right { top: -64px; }

@media (max-width: 559px) {
  .after-place { min-height: 0; padding-bottom: 27px; }
  .after-place > a { position: static; margin-top: 16px; }
}

/* Folded flap sink: same .18s curve as the compact clip so flap and body move together. */
@property --flap-compact-sink { syntax: '<length>'; inherits: false; initial-value: 0px; }
.persistent-envelope-flap {
  --flap-compact-sink: 0px;
  transition: clip-path .18s cubic-bezier(.2,.72,.18,1), --flap-compact-sink .18s cubic-bezier(.2,.72,.18,1);
}
.has-compact-envelope .persistent-envelope-flap { --flap-compact-sink: calc(20.35vw + 5px); }
@media (max-width: 360px) { .has-compact-envelope .persistent-envelope-flap { --flap-compact-sink: calc(19.4vw + 7px); } }
@media (min-width: 900px), (min-width: 620px) and (hover: hover) and (pointer: fine) {
  .has-compact-envelope .persistent-envelope-flap { --flap-compact-sink: 0px; }
}
