:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --dark: #050505;
  --soft: #eee8e4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-x: hidden;
}

body.popup-open {
  overflow: hidden;
}

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

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

.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 150px 1fr 58px;
  align-items: center;
  min-height: 48px;
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  background: rgba(245, 245, 247, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
}

.nav-logo {
  font-size: 0.94rem;
  font-weight: 650;
  text-transform: lowercase;
}

.global-nav nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.global-nav nav a,
.nav-call {
  color: rgba(29, 29, 31, 0.78);
  font-size: 0.78rem;
  font-weight: 520;
}

.nav-call {
  text-align: right;
}

.event-popup[hidden] {
  display: none;
}

.event-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.event-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.56);
  backdrop-filter: blur(8px);
}

.event-popup-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 38px 34px 28px;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.event-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  background: #f5f5f7;
  border: 0;
  color: rgba(29, 29, 31, 0.78);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.event-popup-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.event-popup h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.6rem;
  font-weight: 780;
  line-height: 1.08;
}

.event-popup-copy {
  margin: 18px auto 0;
  color: rgba(29, 29, 31, 0.72);
  font-size: 1rem;
  line-height: 1.7;
}

.event-popup ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.event-popup li {
  padding: 11px 14px;
  background: #f5f5f7;
  color: rgba(29, 29, 31, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
}

.event-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}

.event-popup-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 720;
}

.event-popup-actions a + a {
  background: #f5f5f7;
  color: var(--ink);
}

.event-popup-today {
  margin-top: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.panel {
  overflow: hidden;
  background: var(--card);
}

.hero {
  position: relative;
  min-height: 720px;
  margin-bottom: 12px;
  background: #111;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  content: "";
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px 76px;
  color: #fff;
  text-align: center;
}

.hero-content p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 620;
  text-transform: lowercase;
}

.hero-content h1 {
  margin: 0;
  font-size: 5.2rem;
  line-height: 1.04;
  font-weight: 680;
}

.hero-content span {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(29, 29, 31, 0.32);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 620;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hero .button {
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
}

.hero .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.button:hover {
  transform: translateY(-2px);
}

.statement {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.statement h2,
.section-head h2,
.service-panel h2,
.packages h2,
.reviews h2,
.guide h2,
.contact h2 {
  margin: 0;
  color: var(--ink);
  font-size: 4rem;
  line-height: 1.12;
  font-weight: 680;
}

.statement p:not(.eyebrow),
.section-head p:not(.eyebrow),
.service-panel p,
.contact p,
.guide-list p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.showcase-section {
  padding: 82px 0 32px;
}

.section-head {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 34px;
  text-align: center;
}

.showcase {
  overflow: hidden;
}

.showcase-track {
  display: flex;
  gap: 14px;
  padding: 0 calc((100% - min(1240px, 68%)) / 2);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.showcase-card {
  position: relative;
  flex: 0 0 min(1240px, 68vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
  opacity: 0.38;
  transform: scale(0.96);
  transition: opacity 500ms ease, transform 500ms ease;
}

.showcase-card.active {
  opacity: 1;
  transform: scale(1);
}

.showcase-card img {
  height: 100%;
  object-fit: cover;
}

.showcase-card.photo-only::after {
  display: none;
}

.showcase-card.image-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 232, 235, 0.92)),
    #ececef;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.showcase-card.image-placeholder::after {
  display: none;
}

.showcase-card.image-placeholder div {
  position: static;
  display: grid;
  width: min(82%, 760px);
  height: min(76%, 400px);
  place-items: center;
  border: 1px dashed rgba(29, 29, 31, 0.24);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(29, 29, 31, 0.42);
}

.showcase-card.image-placeholder strong {
  font-size: 2rem;
  font-weight: 620;
}

.showcase-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.62));
  content: "";
}

.showcase-card div {
  position: absolute;
  right: 32px;
  bottom: 28px;
  left: 32px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
}

.showcase-card strong {
  font-size: 1.5rem;
  font-weight: 680;
}

.showcase-card span {
  font-size: 0.96rem;
  font-weight: 520;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
}

.dots {
  display: flex;
  gap: 10px;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #9b9b9f;
  cursor: pointer;
}

.dots button.active {
  background: var(--ink);
}

.pause {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #e6e6e9;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

.service-panel {
  min-height: 540px;
  padding: 56px;
  text-align: center;
}

.service-panel.dark {
  background: var(--dark);
  color: #fff;
}

.service-panel.light {
  background: var(--soft);
}

.service-panel.dark h2,
.service-panel.dark p,
.service-panel.dark span,
.service-panel.dark .eyebrow {
  color: #fff;
}

.service-panel p a {
  border-bottom: 1px solid currentColor;
}

.service-panel span {
  display: block;
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.service-panel.dark span {
  color: rgba(255, 255, 255, 0.7);
}

.prep-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.prep-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 560;
}

.prep-placeholders,
.package-visuals {
  display: grid;
  gap: 10px;
}

.prep-placeholders {
  grid-template-columns: repeat(3, 1fr);
  width: min(760px, 100%);
  margin: 34px auto 0;
}

.prep-placeholders div,
.package-visuals div {
  display: grid;
  min-height: 156px;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: center;
}

.prep-placeholders strong,
.package-visuals strong {
  font-size: 0.96rem;
  font-weight: 620;
}

.prep-placeholders small,
.package-visuals small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
}

.prep-placeholders .has-image {
  overflow: hidden;
  padding: 0;
  background: #f7f1dc;
}

.prep-placeholders .has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prep-placeholders .wide-image img {
  object-fit: cover;
}

.video-link {
  margin-top: 26px;
}

.video-frame {
  position: relative;
  display: block;
  width: min(680px, 100%);
  margin: 30px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}

.video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-frame span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
}

.video-frame:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.packages,
.reviews,
.senior,
.guide,
.contact {
  margin: 12px;
  padding: 82px max(20px, calc((100% - 1180px) / 2));
}

.package-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.package-row article {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.package-row h3 {
  margin: 0 0 22px;
  font-size: 1.38rem;
  font-weight: 680;
}

.package-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.78;
}

.package-row strong {
  display: block;
  margin-top: 22px;
  font-size: 1.7rem;
  font-weight: 700;
}

.package-visuals {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.package-visuals div {
  min-height: 210px;
  border: 1px solid #ddd8d3;
  background: #faf8f5;
  color: var(--ink);
}

.package-visuals small {
  color: var(--muted);
}

.reviews {
  background: #fbfbfd;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.review-grid article {
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.review-grid article.has-review {
  overflow: hidden;
  padding: 0;
}

.review-grid article.has-review img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  object-position: left center;
}

.review-grid div {
  display: grid;
  min-height: 360px;
  aspect-ratio: 9 / 13;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(29, 29, 31, 0.22);
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.92), rgba(255, 255, 255, 0.92)),
    #f5f5f7;
  color: rgba(29, 29, 31, 0.48);
  text-align: center;
}

.review-grid strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
}

.review-grid small {
  display: block;
  margin-top: -120px;
  color: var(--muted);
  font-size: 0.78rem;
}

.review-note {
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}

.senior {
  background: #e5e5e2;
}

.senior-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.senior-intro > div,
.senior-intro ul,
.senior-row article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.senior-intro > div {
  min-height: 220px;
  padding: 34px;
}

.senior-intro h3,
.senior-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 680;
}

.senior-intro p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.76;
}

.senior-intro ul {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 220px;
  margin: 0;
  padding: 34px;
  list-style: none;
}

.senior-intro li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 620;
}

.senior-intro li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  content: "✓";
  font-size: 1.1rem;
}

.senior-intro li a {
  border-bottom: 1px solid rgba(29, 29, 31, 0.28);
}

.senior-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.senior-row article {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
}

.senior-row span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.senior-row p {
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
}

.senior-row strong {
  display: block;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.85;
}

.senior-note {
  margin: 28px auto 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 680;
  line-height: 1.7;
  text-align: center;
}

.guide {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.guide-list {
  display: grid;
  gap: 18px;
}

.guide-list p {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.guide-list p:last-child {
  border-bottom: 0;
}

.contact {
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.contact h2,
.contact p,
.contact .eyebrow,
.contact span {
  color: #fff;
}

.phone {
  display: block;
  margin: 28px 0 14px;
  color: #fff;
  font-size: 4.1rem;
  font-weight: 680;
  line-height: 1.1;
}

.contact span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

footer {
  display: grid;
  gap: 6px;
  padding: 42px 20px 86px;
  color: var(--muted);
  text-align: center;
}

footer strong {
  color: var(--ink);
}

.mobile-cta {
  display: none;
}

@media (max-width: 1060px) {
  .global-nav {
    grid-template-columns: 1fr auto;
  }

  .global-nav nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 0 10px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content h1 {
    font-size: 4.4rem;
  }

  .statement h2,
  .section-head h2,
  .service-panel h2,
  .packages h2,
  .reviews h2,
  .guide h2,
  .contact h2 {
    font-size: 3.2rem;
  }

  .showcase-track {
    padding: 0 24px;
  }

  .showcase-card {
    flex-basis: 82vw;
  }

  .split-panels,
  .package-row,
  .review-grid,
  .senior-row,
  .guide {
    grid-template-columns: 1fr 1fr;
  }

  .senior-intro {
    grid-template-columns: 1fr;
  }

  .package-visuals {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  body {
    padding-bottom: 70px;
  }

  .event-popup {
    align-items: end;
    padding: 14px;
  }

  .event-popup-card {
    width: 100%;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 34px 22px 24px;
  }

  .event-popup h2 {
    font-size: 2.15rem;
  }

  .event-popup-copy {
    font-size: 0.94rem;
  }

  .event-popup-actions {
    grid-template-columns: 1fr;
  }

  .global-nav {
    min-height: 44px;
    padding: 0 16px;
  }

  .global-nav nav a,
  .nav-call {
    font-size: 0.7rem;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 44px;
  }

  .hero-content h1 {
    font-size: 2.65rem;
  }

  .hero-content span {
    font-size: 0.98rem;
  }

  .statement {
    padding: 76px 0;
    text-align: left;
  }

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

  .statement h2,
  .section-head h2,
  .service-panel h2,
  .packages h2,
  .reviews h2,
  .guide h2,
  .contact h2 {
    font-size: 2.25rem;
  }

  .statement p:not(.eyebrow),
  .section-head p:not(.eyebrow),
  .service-panel p,
  .contact p,
  .guide-list p {
    font-size: 0.96rem;
  }

  .showcase-section {
    padding-top: 64px;
  }

  .showcase-card {
    flex-basis: 86vw;
  }

  .showcase-card div {
    display: grid;
    right: 20px;
    bottom: 22px;
    left: 20px;
  }

  .showcase-card strong {
    font-size: 1.25rem;
  }

  .split-panels,
  .package-row,
  .review-grid,
  .guide {
    grid-template-columns: 1fr;
  }

  .service-panel {
    min-height: 360px;
    padding: 42px 22px;
  }

  .prep-placeholders {
    grid-template-columns: 1fr;
  }

  .prep-placeholders div {
    min-height: 124px;
  }

  .video-link {
    width: 100%;
  }

  .packages,
  .reviews,
  .senior,
  .guide,
  .contact {
    margin: 10px;
    padding: 64px 16px;
  }

  .package-row article,
  .senior-row article {
    min-height: auto;
  }

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

  .senior-intro > div,
  .senior-intro ul,
  .senior-row article {
    padding: 28px 22px;
  }

  .package-visuals {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .package-visuals div {
    min-height: 170px;
  }

  .review-grid div {
    min-height: 320px;
  }

  .phone {
    font-size: 2.2rem;
  }

  .mobile-cta {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 100;
    display: block;
  }

  .mobile-cta a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
  }
}
