html {
  scroll-behavior: smooth;
}

:root {
  --paper-solid: #fffaf6;
  --paper: rgba(255, 251, 247, 0.82);
  --ink: #3d2d2a;
  --muted: #7f6b66;
  --line: rgba(78, 50, 42, 0.12);
  --line-strong: rgba(78, 50, 42, 0.2);
  --accent: #b96f63;
  --accent-strong: #905247;
  --gold: #c9a36b;
  --gold-soft: rgba(201, 163, 107, 0.24);
  --sage: #8f9d8a;
  --cream: #fff6ef;
  --shadow: 0 30px 70px rgba(107, 76, 68, 0.14);
  --shadow-strong: 0 38px 88px rgba(94, 64, 57, 0.18);
  --radius-lg: 32px;
  --radius-md: 22px;
  --content-width: min(1100px, calc(100vw - 32px));
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at bottom left, rgba(208, 176, 126, 0.16), transparent 26%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.38) 0%, transparent 22%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at top right, rgba(221, 190, 173, 0.45), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, #fbf7f2 0%, #f5ede5 42%, #f2e8dd 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
  border-radius: 50%;
}

body::before {
  top: 8%;
  left: -6rem;
  width: 16rem;
  height: 16rem;
  background: rgba(214, 171, 155, 0.28);
  animation: ambientFloat 18s ease-in-out infinite alternate;
}

body::after {
  right: -5rem;
  bottom: 12%;
  width: 15rem;
  height: 15rem;
  background: rgba(178, 196, 178, 0.24);
  animation: ambientFloat 20s ease-in-out infinite alternate-reverse;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.section-nav {
  position: sticky;
  top: 20px;
  z-index: 18;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  width: min(var(--content-width), calc(100vw - 24px));
  max-width: min(var(--content-width), calc(100vw - 24px));
  margin: 20px auto 0;
  padding: 0.45rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 248, 241, 0.62)),
    linear-gradient(90deg, rgba(201, 163, 107, 0.08), transparent 28%, transparent 72%, rgba(201, 163, 107, 0.08));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 14px 32px rgba(95, 66, 55, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 0 1px rgba(201, 163, 107, 0.08);
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 0.62rem 0.92rem;
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--ink);
  background: rgba(201, 163, 107, 0.1);
  outline: none;
}

.section-nav a.is-active {
  color: var(--accent-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 240, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(201, 163, 107, 0.22),
    0 8px 18px rgba(149, 104, 78, 0.08);
}

@media (max-width: 759px) {
  .section-nav {
    justify-content: flex-start;
  }
}

.section {
  padding: 5.5rem 0 0;
}

.section:last-of-type {
  padding-bottom: 6rem;
}

.section__inner {
  width: var(--content-width);
  margin: 0 auto;
}

.section__inner.is-reveal-ready,
.page-footer.is-reveal-ready {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(8px);
  transition: opacity 820ms ease, transform 820ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 820ms ease;
}

.section__inner.is-visible,
.page-footer.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.section__inner--narrow {
  width: min(760px, calc(100vw - 32px));
}

.section__inner--intro {
  width: min(940px, calc(100vw - 32px));
}

.hero {
  padding-top: 2.2rem;
}

.hero__inner,
.family-grid,
.schedule-layout,
.location-layout,
.transport-grid,
.notice-grid,
.account-grid {
  display: grid;
  gap: 1rem;
}

.hero__visual-wrap,
.hero__content {
  position: relative;
}

.hero__visual-wrap::before,
.hero__content::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero__visual-wrap::before {
  top: 14%;
  right: 2%;
  width: 6rem;
  height: 6rem;
  background: rgba(185, 111, 99, 0.14);
}

.hero__content::before {
  top: 0.45rem;
  bottom: 0.45rem;
  left: 0;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(185, 111, 99, 0), rgba(185, 111, 99, 0.55), rgba(143, 157, 138, 0));
}

.hero__visual-frame,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 240, 0.72)),
    linear-gradient(135deg, rgba(201, 163, 107, 0.06), transparent 28%, transparent 72%, rgba(201, 163, 107, 0.06));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(201, 163, 107, 0.08);
}

.panel {
  position: relative;
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 107, 0.76), transparent);
}

.panel::after {
  content: "";
  position: absolute;
  top: -12%;
  left: -30%;
  width: 26%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%) rotate(14deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 720ms ease, opacity 260ms ease;
}

.panel:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 163, 107, 0.18);
  box-shadow:
    var(--shadow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 0 0 1px rgba(201, 163, 107, 0.1);
}

.panel:hover::after {
  opacity: 1;
  transform: translateX(420%) rotate(14deg);
}

.hero__visual-frame {
  position: relative;
  padding: 1rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 420ms ease, box-shadow 420ms ease;
}

.hero__visual-frame::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 0;
  border-radius: calc(var(--radius-lg) - 10px);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 247, 231, 0.42), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 239, 222, 0.04) 45%, rgba(255, 255, 255, 0.18));
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
  animation: heroLightSweep 14s ease-in-out infinite;
}

.hero__visual-frame::after {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 1;
  border-radius: calc(var(--radius-lg) - 10px);
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.04) 0%, rgba(10, 12, 16, 0.12) 52%, rgba(10, 12, 16, 0.22) 100%);
  pointer-events: none;
}

.hero__visual-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 88px rgba(88, 59, 52, 0.2);
}

.hero__visual {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  transform-origin: center center;
  animation: heroImageDrift 18s ease-in-out infinite alternate;
}

.hero__sparkles {
  position: absolute;
  inset: 1rem;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 10px);
}

.hero__sparkle {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 248, 235, 0.96) 0%, rgba(255, 223, 196, 0.5) 48%, transparent 74%);
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(0.4px);
  animation: sparkleFloat var(--sparkle-duration, 7600ms) ease-in-out infinite;
  animation-delay: var(--sparkle-delay, 0ms);
}

.hero__sparkle::before,
.hero__sparkle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: rgba(255, 246, 228, 0.72);
  transform: translate(-50%, -50%);
}

.hero__sparkle::before {
  width: 1px;
  height: 170%;
}

.hero__sparkle::after {
  width: 170%;
  height: 1px;
}

.hero__overlay {
  position: absolute;
  inset: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.2rem, 6vw, 3.4rem) 2rem 2.5rem;
  text-align: center;
  pointer-events: none;
}

.hero__content {
  align-self: center;
  display: grid;
  align-content: center;
  gap: 0.95rem;
  max-width: 470px;
  padding: 0.75rem 0.2rem 0.5rem 1.55rem;
  background: none;
}

.eyebrow,
.section-kicker,
.panel__kicker,
.hero__count-label {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--muted);
}

.section-kicker,
.panel__kicker {
  color: rgba(201, 163, 107, 0.92);
  font-weight: 600;
}

.hero__title,
.section-title,
.panel__title,
.calendar-dday,
.location-summary__venue {
  font-family: "Cormorant Garamond", "Nanum Myeongjo", serif;
  font-weight: 600;
  line-height: 1;
}

.hero__title {
  margin: 1rem 0 0.9rem;
  font-size: clamp(3rem, 12vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero__title--overlay {
  position: relative;
  display: inline-grid;
  justify-items: center;
  gap: 0.1em;
  margin: 0;
  color: rgba(255, 246, 224, 0.96);
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(3.9rem, 14.2vw, 7.2rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.015em;
  white-space: pre-line;
  transform: translateY(2.5%);
  text-shadow:
    0 3px 10px rgba(11, 15, 19, 0.22),
    0 14px 34px rgba(11, 15, 19, 0.16);
}

.hero__title--static {
  gap: 0.16em;
  transform: translateY(1.4%);
}

.hero__title-line {
  display: block;
  line-height: 0.86;
}

.hero__title-char {
  display: inline-block;
  opacity: 0;
  color: rgba(255, 247, 233, 0.96);
  filter: blur(6px);
  transform: translateY(14px) scale(0.96) rotate(var(--char-tilt, -3deg));
  text-shadow:
    0 4px 12px rgba(11, 15, 19, 0.2),
    0 16px 36px rgba(11, 15, 19, 0.14);
  animation: heroTitleWrite 860ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
  animation-delay: var(--char-delay, 0ms);
}

.hero__title-char--space {
  min-width: 0.24em;
}

.hero__title-flourish {
  display: block;
  width: 0;
  height: 0.3em;
  margin-top: 0.02em;
  border-bottom: 2px solid rgba(255, 240, 222, 0.76);
  border-radius: 999px;
  opacity: 0;
  animation: heroFlourish 820ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
  animation-delay: var(--flourish-delay, 0ms);
}

.hero .eyebrow {
  letter-spacing: 0.06em;
  text-transform: none;
  font-family: "Nanum Myeongjo", serif;
  font-size: 0.92rem;
  color: var(--accent-strong);
}

.hero__subtitle,
.section-description,
.message-copy p,
.location-summary__detail,
.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.hero__subtitle {
  max-width: 30rem;
  margin-bottom: 0;
  color: rgba(61, 45, 42, 0.76);
  font-size: clamp(1.04rem, 2.5vw, 1.17rem);
  line-height: 1.95;
}

.hero__inner.is-visible .hero__visual-frame {
  animation: heroFrameIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__inner.is-visible .hero__content > * {
  animation: heroContentIn 820ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__inner.is-visible .hero__content > :nth-child(1) {
  animation-delay: 120ms;
}

.hero__inner.is-visible .hero__content > :nth-child(2) {
  animation-delay: 260ms;
}

.hero__inner.is-visible .hero__content > :nth-child(3) {
  animation-delay: 420ms;
}

.hero__inner.is-visible .hero__content > :nth-child(4) {
  animation-delay: 580ms;
}

.hero__inner.is-visible .hero__content > :nth-child(5) {
  animation-delay: 760ms, 1600ms;
  animation-name: heroContentIn, countdownBloom;
  animation-duration: 820ms, 5400ms;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}

.hero__meta {
  margin-top: 0.15rem;
  display: grid;
  gap: 0.55rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(144, 82, 71, 0.12);
  font-size: 1.02rem;
}

.hero__meta p,
.schedule-highlight p,
.schedule-highlight strong,
.schedule-note p,
.info-card p,
.account-card p {
  margin: 0;
}

.hero__meta p {
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: rgba(61, 45, 42, 0.88);
}

.hero__cta-group,
.section-actions,
.rsvp-actions,
.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__cta-group {
  margin-top: 0.35rem;
}

.hero__countdown {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 390px);
  margin-top: 0.85rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid rgba(201, 163, 107, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 246, 240, 0.76) 100%);
  box-shadow:
    0 18px 42px rgba(97, 65, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 0 0 1px rgba(201, 163, 107, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__countdown::before {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 163, 107, 0.88), rgba(201, 163, 107, 0));
}

.hero__count-label {
  letter-spacing: 0.14em;
  text-transform: none;
}

.hero__countdown strong {
  display: block;
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.18rem, 3.3vw, 1.38rem);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 240, 0.76));
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(93, 63, 56, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(201, 163, 107, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 242, 0.88));
  box-shadow:
    0 14px 30px rgba(93, 63, 56, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  outline: none;
}

.button--filled {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 232, 207, 0.24), rgba(255, 232, 207, 0)),
    linear-gradient(135deg, #9b685d 0%, #74473f 100%);
  color: #fff8f4;
  box-shadow:
    0 18px 34px rgba(116, 71, 63, 0.22),
    inset 0 1px 0 rgba(255, 246, 236, 0.24);
}

.button--filled:hover,
.button--filled:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 238, 218, 0.3), rgba(255, 238, 218, 0)),
    linear-gradient(135deg, #a87367 0%, #7c4c43 100%);
}

.section-title {
  position: relative;
  margin: 0.8rem 0 1.4rem;
  font-size: clamp(2.4rem, 8vw, 4rem);
  text-align: center;
  letter-spacing: -0.025em;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 84px;
  height: 1px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(201, 163, 107, 0.9), transparent);
}

.section-title--left {
  text-align: left;
}

.section-title--left::after {
  left: 0;
  transform: none;
}

.quote-block {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: 2rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 247, 241, 0.64) 100%);
  box-shadow:
    0 24px 56px rgba(102, 72, 64, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(201, 163, 107, 0.08);
}

.quote-block::before,
.quote-block::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(201, 163, 107, 0.18);
  pointer-events: none;
}

.quote-block::before {
  top: 0.9rem;
  left: 0.9rem;
  border-right: 0;
  border-bottom: 0;
}

.quote-block::after {
  right: 0.9rem;
  bottom: 0.9rem;
  border-left: 0;
  border-top: 0;
}

.quote-block p {
  margin: 0;
  font-family: "Nanum Myeongjo", serif;
  font-size: clamp(1.3rem, 4vw, 1.85rem);
  line-height: 1.9;
  text-align: center;
  white-space: pre-line;
}

.quote-block span {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  text-align: center;
}

.message-copy {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: grid;
  gap: 1rem;
}

#message .quote-block,
#message .message-copy {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.panel {
  padding: 1.6rem;
}

.panel--soft {
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.84), rgba(255, 243, 236, 0.72));
}

.panel__title {
  margin: 0.6rem 0 0;
  font-size: 2rem;
}

.family-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.family-list li {
  display: grid;
  gap: 0.32rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(201, 163, 107, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 242, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 16px 30px rgba(101, 70, 61, 0.06);
}

.family-list strong {
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.family-list span {
  color: rgba(61, 45, 42, 0.76);
  line-height: 1.8;
}

.couple-card {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(201, 163, 107, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 246, 239, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 34px rgba(101, 70, 61, 0.07);
}

.couple-card small {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.couple-card strong {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-family: "Nanum Myeongjo", serif;
  letter-spacing: -0.02em;
}

.couple-card__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 107, 0.72), transparent);
}

.schedule-highlight {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid rgba(201, 163, 107, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 240, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 36px rgba(101, 70, 61, 0.08);
}

.schedule-highlight strong {
  font-size: 1.15rem;
}

.schedule-note {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.calendar-panel {
  background:
    radial-gradient(circle at top right, rgba(201, 163, 107, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.92) 0%, rgba(255, 247, 240, 0.82) 100%);
}

.calendar-dday {
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  color: var(--accent-strong);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 1.6rem;
}

.calendar-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(201, 163, 107, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 242, 0.5));
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.calendar-cell--label {
  aspect-ratio: auto;
  height: 2rem;
  background: transparent;
  font-size: 0.88rem;
  border: 0;
  box-shadow: none;
  color: rgba(127, 107, 102, 0.82);
}

.calendar-cell--empty {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.calendar-cell--event {
  position: relative;
  color: #fff;
  border-color: rgba(255, 240, 220, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 236, 212, 0.18), rgba(255, 236, 212, 0)),
    linear-gradient(135deg, #9d685d 0%, #75473f 100%);
  box-shadow:
    0 16px 28px rgba(144, 82, 71, 0.24),
    inset 0 1px 0 rgba(255, 246, 236, 0.32);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-top: 2rem;
  align-items: start;
}

.gallery-grid[data-count="3"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.gallery-item {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(49, 32, 29, 0.5) 100%);
  opacity: 0.72;
  transition: opacity 240ms ease;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5.35;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 320ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 38px 76px rgba(89, 58, 50, 0.2);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 0.92;
}

.gallery-item span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.22), rgba(255, 242, 229, 0.18));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-summary__venue {
  display: block;
  margin-top: 1rem;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
}

.location-summary__address {
  margin: 1rem 0 0;
  font-size: 1.06rem;
  line-height: 1.7;
}

.location-summary__detail {
  margin-top: 0.5rem;
}

.booth-panel {
  padding: 2rem 1.6rem;
  text-align: center;
}

.booth-panel__description {
  max-width: 520px;
  margin: 0 auto;
}

.location-map {
  display: grid;
  gap: 1rem;
}

.map-shell {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.9) 0%, rgba(249, 240, 233, 0.84) 100%);
  box-shadow: var(--shadow);
}

.kakao-map {
  width: 100%;
  min-height: 360px;
}

.kakao-map > div {
  border-radius: calc(var(--radius-lg) - 6px);
}

.map-overlay-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  max-width: min(320px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: rgba(255, 250, 245, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(83, 56, 47, 0.16);
}

.map-overlay-card small {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.map-overlay-card strong {
  display: block;
  font-size: 1.1rem;
}

.map-overlay-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.map-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(61, 45, 42, 0.78);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 14px 30px rgba(51, 34, 31, 0.18);
}

.map-status[data-state="error"] {
  background: rgba(144, 82, 71, 0.92);
}

.map-pin-card {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background: rgba(255, 250, 245, 0.92);
  box-shadow: 0 16px 36px rgba(83, 56, 47, 0.16);
}

.map-pin-card strong {
  display: block;
  font-size: 0.98rem;
}

.map-pin-card span {
  display: block;
  margin-top: 0.25rem;
  max-width: 220px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.info-card,
.account-card {
  position: relative;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.88), rgba(255, 246, 239, 0.76));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(201, 163, 107, 0.06);
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.info-card::before,
.account-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 168, 149, 0.65), transparent);
}

.info-card h3,
.account-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.info-card p,
.account-card p {
  margin-top: 0.6rem;
  color: var(--muted);
  line-height: 1.8;
}

.account-card small {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.account-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.account-card .button {
  width: 100%;
  margin-top: 1rem;
}

.info-card:hover,
.account-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 163, 107, 0.18);
  box-shadow:
    0 34px 72px rgba(89, 58, 50, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 0 0 1px rgba(201, 163, 107, 0.08);
}

.rsvp-panel {
  padding-bottom: 2rem;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.rsvp-form label {
  display: grid;
  gap: 0.55rem;
}

.rsvp-form__full {
  grid-column: 1 / -1;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.rsvp-form input:focus-visible,
.rsvp-form select:focus-visible,
.rsvp-form textarea:focus-visible {
  border-color: rgba(185, 111, 99, 0.45);
  box-shadow: 0 0 0 6px rgba(185, 111, 99, 0.12);
  outline: none;
}

.checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  color: var(--muted);
  line-height: 1.7;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
}

.rsvp-actions {
  flex-direction: column;
}

.rsvp-actions .button {
  min-width: 172px;
}

.rsvp-hint {
  margin-top: 1rem;
  margin-bottom: 0;
}

.page-footer {
  padding: 1.2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(37, 24, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-motion="lite"] body::before,
html[data-motion="lite"] body::after,
html[data-motion="lite"] .hero__visual-frame::before,
html[data-motion="lite"] .hero__visual,
html[data-motion="lite"] .panel::after,
html[data-motion="lite"] .hero__countdown,
html[data-motion="lite"] .hero__inner.is-visible .hero__visual-frame,
html[data-motion="lite"] .hero__inner.is-visible .hero__content > * {
  animation: none !important;
}

html[data-motion="lite"] .hero__sparkles {
  display: none;
}

html[data-motion="lite"] .hero__visual-frame:hover,
html[data-motion="lite"] .panel:hover,
html[data-motion="lite"] .gallery-item:hover,
html[data-motion="lite"] .button:hover,
html[data-motion="lite"] .button:focus-visible,
html[data-motion="lite"] .gallery-item:hover img,
html[data-motion="lite"] .gallery-item:focus-visible img {
  transform: none;
}

html[data-motion="lite"] .section-nav,
html[data-motion="lite"] .hero__visual-frame,
html[data-motion="lite"] .panel,
html[data-motion="lite"] .hero__countdown,
html[data-motion="lite"] .gallery-item span,
html[data-motion="lite"] .map-overlay-card,
html[data-motion="lite"] .lightbox {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .section-nav,
  .hero__visual-frame,
  .panel,
  .hero__countdown,
  .gallery-item span,
  .map-overlay-card,
  .lightbox {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.lightbox img {
  width: min(92vw, 720px);
  max-height: calc(100vh - 80px);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 30;
  transform: translateX(-50%);
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(61, 45, 42, 0.92);
  color: #fff;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

@keyframes ambientFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(1.2rem, -1rem, 0) scale(1.08);
  }
}

@keyframes heroLightSweep {
  0%,
  100% {
    transform: translate3d(-2%, 0, 0) scale(1);
    opacity: 0.68;
  }

  50% {
    transform: translate3d(2.5%, -1.5%, 0) scale(1.04);
    opacity: 1;
  }
}

@keyframes heroImageDrift {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.08) translate3d(0.6%, -0.8%, 0);
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.72);
  }

  25% {
    opacity: 0.72;
    transform: translate3d(-4px, 0, 0) scale(1);
  }

  55% {
    opacity: 0.92;
    transform: translate3d(3px, -10px, 0) scale(1.08);
  }

  80% {
    opacity: 0.18;
    transform: translate3d(0, -16px, 0) scale(0.84);
  }
}

@keyframes heroTitleWrite {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px) scale(0.96) rotate(var(--char-tilt, -3deg));
  }

  60% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes heroFlourish {
  0% {
    width: 0;
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    width: min(58%, 196px);
    opacity: 0.82;
    transform: translateY(0);
  }
}

@keyframes heroFrameIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.975) rotate(-1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes heroContentIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countdownBloom {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(97, 65, 55, 0.12);
  }

  50% {
    box-shadow: 0 24px 52px rgba(185, 111, 99, 0.18);
  }
}

@media (min-width: 760px) {
  .section {
    padding-top: 7rem;
  }

  .hero__inner,
  .schedule-layout,
  .location-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.25rem;
  }

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

  .couple-card {
    grid-template-columns: 1fr auto 1fr;
  }

  .couple-card__divider {
    width: 1px;
    height: 100%;
  }

  .gallery-grid {
    gap: 1.1rem;
  }

  .transport-grid,
  .notice-grid,
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-shell,
  .kakao-map {
    min-height: 420px;
  }

  .rsvp-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .hero {
    min-height: calc(100svh - 28px);
    display: grid;
    align-items: center;
  }

  .hero__content {
    padding: 1rem 0.45rem 1rem 1.85rem;
  }

  .hero__inner {
    gap: 1.4rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
