* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Jua", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background-color: #fffef6;
  overflow-x: hidden;
}

.invitation {
  min-height: 100vh;
}

.hero {
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.greeting {
  min-height: 100vh;
  padding: 4rem 1.5rem 4.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #ffffe9;
  --line-duration: 2.5s;
  --line-stagger: 1.6s;
  --line-total: 6;
  --accent: #000;
  --heading: #2a2c3c;
  --text: #3b4152;
}


.greeting__layout {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 2.35rem;
  align-items: center;
}

.greeting__card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.75rem;
  padding: 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 183, 77, 0.24);
  box-shadow:
    0 18px 38px rgba(59, 65, 82, 0.12),
    0 6px 18px rgba(255, 148, 36, 0.14);
}

.greeting__photo {
  margin: 0;
  width: 100%;
  max-width: 420px;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 148, 36, 0.18);
  transform: translateY(24px);
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  aspect-ratio: 4 / 5;
  max-height: 360px;
}

.greeting__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.greeting__content {
  max-width: 560px;
  text-align: center;
  color: var(--text);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.greeting__title {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  letter-spacing: 0.12rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.greeting__line {
  position: relative;
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.7;
  font-family: "Jua", "Sunflower", "Noto Sans KR", sans-serif;
  opacity: 0;
  letter-spacing: 0.01rem;
  word-break: keep-all;
  display: inline;
  background: none;
  clip-path: inset(0 100% 0 0);
  color: var(--text);
}

.greeting--visible .greeting__line {
  animation:
    fade-in 0.3s ease forwards,
    handwriting var(--line-duration) ease forwards;
  animation-delay: calc(var(--line-index) * var(--line-stagger));
  animation-fill-mode: forwards;
  background-size: 100% 100%;
  transition: background-size var(--line-duration) ease-out;
}

.greeting__signatures {
  margin-top: 1rem;
  display: inline-flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: "Jua", "Sunflower", "Noto Sans KR", sans-serif;
  font-size: 1.2rem;
  color: var(--heading);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.greeting__signature {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.greeting__signature-role {
  font-size: 0.9rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
}

.greeting--visible .greeting__signatures {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc((var(--line-total) - 1) * var(--line-stagger) + var(--line-duration) + 0.1s);
}

.greeting--visible .greeting__photo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

@media (min-width: 768px) {
  .greeting__layout {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }

  .greeting__card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: center;
    padding: 2.5rem 3rem;
    justify-items: stretch;
  }

  .greeting__photo {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .greeting__content {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .greeting {
    padding: 3rem 1.05rem 3.6rem;
  }

  .greeting__layout {
    gap: 2rem;
  }

  .greeting__card {
    padding: 1.35rem 1.15rem;
    border-radius: 1.6rem;
    gap: 1.25rem;
  }

  .greeting__content {
    gap: 1rem;
  }

  .greeting__title {
    font-size: 1.42rem;
    letter-spacing: 0.1rem;
  }

  .greeting__line {
    font-size: 1.08rem;
    line-height: 1.58;
  }

  .greeting__signatures {
    gap: 0.9rem;
  }

  .greeting__photo {
    max-height: 265px;
    border-radius: 1.5rem;
  }
}



.growth {
  position: relative;
  background: #ffffe9;
  padding: 4.25rem 1.35rem 4.85rem;
  display: flex;
  justify-content: center;
  color: #2f3545;
}

.growth__inner {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.growth__header {
  text-align: center;
}

.growth__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
}

.growth__timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.3rem;
  counter-reset: growth-steps;
}

.growth__timeline::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0.95rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 171, 94, 0.45), rgba(255, 149, 84, 0));
}

.growth__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  padding: 0 0 0 2.4rem;
  width: 100%;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: calc(var(--order, 0) * 0.15s);
}

.growth--animate .growth__item {
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
}

.growth--visible .growth__item {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.growth__item::before {
  counter-increment: growth-steps;
  content: counter(growth-steps);
  position: absolute;
  top: 0.65rem;
  left: 0.35rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #f19a6d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 14px rgba(241, 154, 109, 0.3);
}

.growth__item:nth-child(odd) {
  justify-items: flex-start;
  text-align: left;
}

.growth__item:nth-child(even) {
  justify-items: flex-end;
  text-align: right;
}

.growth__item:nth-child(odd) .growth__media,
.growth__item:nth-child(odd) .growth__body {
  justify-self: center;
}

.growth__item:nth-child(even) .growth__media,
.growth__item:nth-child(even) .growth__body {
  justify-self: center;
}

.growth__item:nth-child(even) .growth__body {
  text-align: center;
}

.growth__media {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 163, 92, 0.2);
  box-shadow:
    0 18px 34px rgba(255, 163, 92, 0.16),
    0 6px 16px rgba(204, 132, 60, 0.12);
  aspect-ratio: 3 / 4;
  max-width: 320px;
  width: 100%;
  cursor: zoom-in;
}

.growth__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.growth__body {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.25rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid rgba(255, 171, 109, 0.28);
  box-shadow:
    0 16px 26px rgba(255, 171, 109, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  max-width: 300px;
  width: 100%;
    text-align: center;
}

.growth__item--highlight .growth__body {
  background: rgba(255, 255, 255, 0.92);
}

.growth__milestone {
  margin: 0;
  font-size: 1.22rem;
  font-family: "Jua", "Sunflower", "Noto Sans KR", sans-serif;
  letter-spacing: 0.02rem;
  color: #2f3545;
}

@media (min-width: 640px) {
  .growth__timeline {
    gap: 3rem;
  }

  .growth__item {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.6rem;
    padding: 0 3rem 0 3.75rem;
    text-align: left;
    justify-items: stretch;
  }

  .growth__item:nth-child(even),
  .growth__item:nth-child(odd) {
    justify-items: stretch;
  }

  .growth__item::before {
    top: 50%;
    transform: translateY(-50%);
  }

  .growth__item:nth-child(even) {
    text-align: center;
  }

  .growth__item:nth-child(even) .growth__media {
    order: 2;
  }

  .growth__item:nth-child(even) .growth__body {
    order: 1;
    text-align: center;
  }

  .growth__media,
  .growth__body {
    max-width: 360px;
  }
}

@media (max-width: 420px) {
  .growth {
    padding: 3.6rem 1rem 4.2rem;
  }

  .growth__item {
    padding: 0 0 0 2.15rem;
  }

  .growth__timeline::before {
    left: 0.85rem;
  }

  .growth__item::before {
    left: 0.1rem;
  }

  .growth__media {
    border-radius: 1.2rem;
  }

  .growth__body {
    border-radius: 1.15rem;
    padding: 0.95rem 1.1rem;
  }
}

.directions {
  padding: 5rem 1.5rem 6rem;
  background: #ffffe9;
  color: #2d3142;
}

.directions__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.directions__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.directions__title {
  margin: 0;
  font-size: clamp(1.85rem, 2.3vw, 2.6rem);
  letter-spacing: 0.08rem;
}

.directions__subtitle {
  margin: 0;
  font-size: 1.15rem;
  color: rgba(45, 49, 66, 0.75);
  letter-spacing: 0.05rem;
}

.directions__layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.directions__map {
  margin: 0;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    0 22px 44px rgba(45, 49, 66, 0.14),
    0 10px 24px rgba(235, 137, 62, 0.16);
  border: 1px solid rgba(255, 183, 77, 0.25);
  background: #ffffff;
}

.directions__map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directions__details {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2rem;
  border: 1px solid rgba(235, 137, 62, 0.18);
  box-shadow:
    0 18px 36px rgba(45, 49, 66, 0.1),
    0 8px 20px rgba(235, 137, 62, 0.12);
  padding: 2.5rem 2.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.directions__venue {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.directions__venue-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  color: #2f3545;
}

.directions__address {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(45, 49, 66, 0.84);
}

.directions__tel {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.directions__tel:hover,
.directions__tel:focus-visible {
  text-decoration: underline;
}

.directions__transport {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.directions__transport-item {
  --accent-color: #415372;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
  border-radius: 1.6rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(65, 83, 114, 0.12);
  box-shadow:
    0 12px 28px rgba(45, 49, 66, 0.08),
    inset 0 4px 0 rgba(65, 83, 114, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
}

.directions__transport-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35));
}

.directions__transport-term {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--accent-color);
}

.directions__transport-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(45, 49, 66, 0.88);
  word-break: keep-all;
}

.directions__transport-item--subway {
  --accent-color: #3f66cc;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(63, 102, 204, 0.12));
  border-color: rgba(63, 102, 204, 0.28);
  box-shadow:
    0 14px 32px rgba(63, 102, 204, 0.18),
    inset 0 4px 0 rgba(63, 102, 204, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.directions__transport-item--bus {
  --accent-color: #2d9a6d;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(45, 154, 109, 0.12));
  border-color: rgba(45, 154, 109, 0.26);
  box-shadow:
    0 14px 32px rgba(45, 154, 109, 0.18),
    inset 0 4px 0 rgba(45, 154, 109, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.directions__transport-item--car {
  --accent-color: #c2605a;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(194, 96, 90, 0.12));
  border-color: rgba(194, 96, 90, 0.28);
  box-shadow:
    0 14px 32px rgba(194, 96, 90, 0.18),
    inset 0 4px 0 rgba(194, 96, 90, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

@media (min-width: 920px) {
  .directions__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .directions {
    padding: 4rem 1.25rem 4.75rem;
  }

  .directions__details {
    padding: 2rem 1.75rem;
    border-radius: 1.75rem;
  }

  .directions__transport-item {
    border-radius: 1.4rem;
    padding: 1.15rem 1.25rem;
  }

  .directions__venue-name {
    font-size: 1.3rem;
  }
}

@media (max-width: 420px) {
  .directions__subtitle {
    font-size: 1.05rem;
  }

  .directions__details {
    padding: 1.75rem 1.3rem;
  }
}


.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(23, 24, 33, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
}

.lightbox__dialog {
  position: relative;
  max-width: min(780px, 92vw);
  max-height: min(92vh, 820px);
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(23, 24, 33, 0.35),
    0 12px 24px rgba(23, 24, 33, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(32, 34, 46, 0.8);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__close:focus-visible {
  outline: 2px solid rgba(255, 171, 109, 0.85);
  outline-offset: 3px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 420px) {
  .lightbox__dialog {
    border-radius: 1rem;
    padding: 0.75rem;
  }

  .lightbox__close {
    top: 0.35rem;
    right: 0.35rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes handwriting {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
