/* ===== Landing Page Head Panel (responsive height) ===== */
.head-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(420px, 60vh, 880px);
  background:
    url('../img/main.jpg') center/cover no-repeat;
  overflow: hidden;
}

@media (max-width: 768px) {
  .brand-title { top: 12px; left: 16px; }
  .site-header { padding-left: calc(16px + var(--brand-width) + 8px); }
}

.site-header {
  position: fixed;
  left: 0; right: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: clamp(10px, 4vh, 80px);
  padding-right: clamp(20px, 8vw, 350px);
  padding-left: clamp(20px, 8vw, 350px);
  padding-bottom: clamp(10px, 4vh, 80px);
  background: transparent;
  color: #fff;
  transition:
    transform var(--hdr-transform-duration) var(--hdr-transform-ease),
    opacity   var(--hdr-transform-duration) var(--hdr-transform-ease),
    color     var(--hdr-color-duration) var(--hdr-color-ease);
  will-change: transform, opacity, color;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--hdr-color-duration) var(--hdr-color-ease);
  background-image: linear-gradient(
    var(--gradient-direction),
    hsla(var(--gradient-hsl-values), .80)   0%,
    hsla(var(--gradient-hsl-values), .79)   8.3%,
    hsla(var(--gradient-hsl-values), .761) 16.2%,
    hsla(var(--gradient-hsl-values), .717) 23.9%,
    hsla(var(--gradient-hsl-values), .66)  31.4%,
    hsla(var(--gradient-hsl-values), .593) 38.6%,
    hsla(var(--gradient-hsl-values), .518) 45.6%,
    hsla(var(--gradient-hsl-values), .44)  52.3%,
    hsla(var(--gradient-hsl-values), .36)  58.9%,
    hsla(var(--gradient-hsl-values), .282) 65.2%,
    hsla(var(--gradient-hsl-values), .207) 71.3%,
    hsla(var(--gradient-hsl-values), .140) 77.4%,
    hsla(var(--gradient-hsl-values), .083) 83.3%,
    hsla(var(--gradient-hsl-values), .039) 89%,
    hsla(var(--gradient-hsl-values), .010) 94.5%,
    hsla(var(--gradient-hsl-values), 0)   100%
  );
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--hdr-color-duration) var(--hdr-color-ease);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--hdr-shadow);
}

.site-header.is-hidden   { transform: translate3d(0,-100%,0); opacity: 0; }

.site-header.is-gradient::before { opacity: 1; }
.site-header.is-scrolled::after { opacity: 1; }

.site-header.is-scrolled .brand-title { color: #111; mix-blend-mode: normal; }
.site-header.is-gradient .brand-title { color: #fff; }
.site-header.is-gradient .nav-item { color: #fff; }

.brand-title {
  position: fixed;
  padding-top: clamp(10px, 4vh, 80px);
  padding-right: clamp(20px, 8vw, 350px);
  padding-left: clamp(20px, 8vw, 350px);
  padding-bottom: clamp(10px, 4vh, 80px);
  z-index: 2000;
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 20px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  mix-blend-mode: difference;
  text-decoration: none;
  transition: color var(--hdr-color-duration) var(--hdr-color-ease);
}

.brand-logo {
  height: 32px;
  width: auto;
  transition: filter var(--hdr-color-duration) var(--hdr-color-ease);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  height: 32px;
}

.brand-name {
  font-family: var(--font-mincho);
}

.brand-tagline {
  font-family: var(--font-myeongjo);
  font-size: 12px;
}

.site-header .navbar {
  position: static;
  top: auto;
  right: auto;
  width: auto;
  max-width: none;
  min-height: auto;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.site-header nav .nav-item {
  margin: 0 12px;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.site-header nav .nav-item > a {
  text-decoration: none;
  color: inherit;
}

.site-header nav .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s;
}

.site-header nav .nav-item:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header::before,
  .site-header::after,
  .brand-title {
    transition: none !important;
  }
}

/* ===== Hero slideshow (Embla) ===== */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.embla {
  position: relative;
  height: 100%;
}

.embla__viewport {
  overflow: hidden;
  height: 100%;
}

.embla__container {
  display: flex;
  height: 100%;
}

.hero-slideshow--video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-video__container {
  position: relative;
  height: 100%;
}

.hero-slideshow--video .intro-hero {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero-slideshow--video .intro-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

.hero-video__overlay {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.hero-video__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

.hero-video__list a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.65;
  transition: opacity 200ms ease;
}

.hero-video__list a:hover,
.hero-video__list a:focus-visible {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-video__overlay {
    align-items: flex-start;
  }

  .hero-video__list {
    justify-items: start;
    text-align: left;
  }
}


/* ===== Static page hero ===== */
.page-hero {
  position: relative;
  width: 100%;
  height: min(50vh, 520px);
  min-height: clamp(200px, 100vh, 420px);
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 8vw, 96px) clamp(20px, 8vw, 160px);
  color: #fff;
  background: linear-gradient(135deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.28) 50%, rgba(0,0,0,0.58) 100%);
  z-index: 1;
}

.page-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: 0.25em;
  text-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

@media (max-width: 640px) {
  .page-hero__overlay {
    padding: clamp(28px, 12vw, 72px) clamp(20px, 8vw, 64px);
  }
}

.embla__slide {
  flex: 0 0 100%;
  position: relative;
}

.embla__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embla__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2rem;
  padding-top: 0;
  padding-bottom: clamp(20px, 15vh, 190px);
  padding-right: clamp(20px, 8vw, 350px);
  padding-left: clamp(20px, 8vw, 350px);
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 60%);
}

.embla__copy {
  max-width: 58ch;
}

.embla__copy h1 {
  margin: 0;
  font-size: clamp(2.625rem, 9vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  animation: emblaHeadline 1400ms ease both;
}

.embla__copy h1 span {
  display: inline-block;
  font-weight: 400;
}

.text-variable {
  color: hsla(40,20%,56.2%,1);
}

@keyframes emblaHeadline {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.embla__asset-text {
  position: relative;
  display: grid;
  font-size: .875rem;
  margin-left: auto;
}

.embla__asset-text a {
  color: #fff;
  text-decoration: none;
  transition: opacity .2s ease;
  opacity: .5;
}

.embla__asset-text a:hover {
  opacity: .8;
}

.asset-text {
  grid-area: 1/1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  display: flex;
  justify-content: flex-end;
}

.asset-text.is-active {
  opacity: 1;
  pointer-events: auto;
}

.embla__controls {
  display: flex;
  gap: 1rem;
}

.embla__prev,
.embla__next {
  box-sizing: content-box;
  width: .75rem;
  height: .75rem;
  padding: .75rem;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  opacity: .5;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}

.embla__prev svg,
.embla__next svg {
  width: 100%;
  height: 100%;
}

.embla__prev svg { margin-left: -0.125rem; }
.embla__next svg { margin-right: -0.125rem; }

.embla__prev:hover,
.embla__next:hover {
  opacity: .8;
}

.embla__prev:active,
.embla__next:active {
  transform: scale(.9);
}

.embla__prev:disabled,
.embla__next:disabled {
  opacity: .1;
}

@media (max-width: 768px) {
  .embla__overlay {
    padding-top: 0;
    padding-right: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
  }
  .embla__meta { gap: .5rem; }
  .embla__controls { gap: .5rem; }
}

/* ===== Individual Page Head Panel (responsive height) ===== */
.shop-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(420px, 60vh, 880px);
  background:
    url('../img/main.jpg') center/cover no-repeat;
  overflow: hidden;
}

.program-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(420px, 60vh, 880px);
  background:
    url('../img/main.jpg') center/cover no-repeat;
  overflow: hidden;
}

.visit-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(420px, 60vh, 880px);
  background:
    url('../img/main.jpg') center/cover no-repeat;
  overflow: hidden;
}

.intro-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(420px, 60vh, 880px);
  background:
    url('../img/main.jpg') center/cover no-repeat;
  overflow: hidden;
}

/* ===== Individual Page White header bar ===== */
.site-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(12px, 2.8vw, 24px);
  background: #fff;
  flex-direction: column;
}

/* ===== Landing Page Website Title (responsive) ===== */
.website-title {
  position: absolute;
  left: 0;
  top: 0;
  width: min(520px, 48vw);
  padding: clamp(12px, 2.8vw, 24px);
  color: transparent;
  z-index: 2;
}

/* Big title & subtitle */
.title {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 110px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 clamp(4px, 0.8vw, 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;

}
.subtitle {
  font-family: var(--font-myeongjo);
  font-weight: 400;
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  word-break: keep-all;
}

/* ===== Individual Page Website Title (responsive) ===== */
.site-title {
  font-family: var(--font-mincho);
  font-size: 40px;
  font-weight: 300;
  color: #000000; /* dynamic sizing is not set up yet */
}

.site-subtitle {
  font-family: var(--font-myeongjo);
  font-size: 20px;
  font-weight: 100;
  color: #000; /* dynamic sizing is not set up yet */
}

/* ===== Individual Page Title (NOT YET responsive) ===== */
.site-header-center {
  display: flex;
  position: relative;
  top: 50%;
  justify-content: center;
  align-items: center;
  padding: 60px 16px;
}

.page-heading {
  font-family: var(--font-myeongjo);
  font-size: 80px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.65em; /* 65% letter spacing */
  text-align: center;
}

/* Center title block on medium/smaller viewports for nicer composition */
@media (max-width: 1100px) {
  .website-title {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    width: min(620px, 92vw);
    text-align: center;
  }
  .title, .subtitle {
    width: 100%;
    max-width: none;
    margin-left: auto; margin-right: auto;
  }
}

/* ===== Navigation Bar (responsive + Hamburger) ===== */
.navbar {
  position: absolute;
  top: 33px;
  right: 0;
  width: 35%;
  max-width: max-content;
  min-height: max-content;
  background: white;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  display: flex;
  align-items: center; 
  justify-content: center;
  padding: 28px 80px; 
}
.transparent {background: transparent;}

.nav-main {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: clamp(14px, 4vw, 48px);
  position: static;     /* was absolute */
  width: auto;          /* was 68% */
  max-width: none;      /* was 342px */
  min-height: 30px;     /* optional: keep or remove */
  white-space: nowrap;  /* Prevent pre-hamburger wrapping just-in-case */
}

.nav-item {
  position: relative;
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 16px);
  color: #000;
  cursor: pointer;
  transition: color 220ms ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 12px; /* focus gap */
}

.nav-item:hover { color: #333; }

.nav-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  list-style: none;
  margin: 0;
  padding: 12px; 
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.nav-sub li {
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-sub li:hover {
  background: #ffffff;
  color: #000000;
  transform: translateX(4px);
  font-weight: 600;
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub,
.nav-sub.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* === Mobile hamburger breakpoint === */
.nav-toggle {
  position: absolute;
  top: clamp(10px, 4vh, 80px);
  right: clamp(20px, 8vw, 80px);
  bottom: clamp(10px, 4vh, 80px);
  height: 2rem;
  z-index: 3;
  display: none;
  border: 0;
  background: transparent;
  border-radius: 0px;
  color: #fff;
}
.nav-toggle svg { transition: transform .22s ease; }
.nav-toggle.is-active svg { transform: rotate(90deg) scale(1.02); }

/* --- Mobile nav (≤992px) --- */
@media (max-width: 992px) {
  /* show the icon on mobile */
  .nav-toggle { display: inline-flex; }

  /* popover panel (hidden by default) */
  .navbar{
    position: absolute;
    top: 56px;          /* just below the button */
    right: 16px;
    left: auto;
    bottom: auto;
    display: none;      /* hidden until .is-open */
    width: min(82vw, 320px);
    padding: 10px 12px;
    background: rgba(255,255,255,.98);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .22s ease;
    z-index: 2;
  }
  .navbar.is-open{
    display: block;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* hamburger's vertical list */
  .nav-main{
    position: static;
    display: flex;              /* visibility handled by parent */
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 4px 0;
    width: 100%;
    max-width: none;
  }

  /* touch: remove hover spacer */
  .nav-item::after { height: 0; }
}


/* ===== Body Contents: Text ===== */
.body-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: var(--page-pad);
  background: transparent;
  border: 1px solid #FFFFFF;
  box-sizing: border-box;
}

.article-container {
  position: relative;
  width: 86%;
  max-width: 1240px;
  min-height: 336px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  gap: 44px;
}

.body-container--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.body-container--stacked > * {
  margin: 0;
}

.body-container--stacked .article-container,
.body-container--stacked .intro-hero {
  width: min(86%, 1240px);
}

.body-container--stacked .intro-hero {
  margin: 0;
}

.body-container--stacked .intro-gallery {
  width: min(86%, 1240px);
}


.article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.h {
  font-weight: 400;
  font-size: clamp(22px, 3.8vw, 64px);   /* scales down on smaller screens */
  line-height: clamp(28px, 4.8vw, 77px); /* keeps proportion */
  letter-spacing: -0.02em;
  color: #000;
  margin: 0;
}

.p {
  font-weight: 400;
  font-size: clamp(14px, 2.1vw, 24px);   /* responsive paragraph */
  line-height: 1.75;
  color: var(--color-muted);
  margin: 0;
}

.center { text-align: center; align-self: stretch; }
.right { text-align: right; align-self: stretch; }
.left { text-align: left; align-self: stretch; }


/* ===== Body Contents: Image ===== */
.intro-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(260px, 60vw, 720px);
  margin: var(--section-gap) auto;
  background: none;
}

.intro-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.intro-video__controls {
  position: absolute;
  right: clamp(12px, 3vw, 20px);
  bottom: clamp(12px, 3vw, 20px);
  display: flex;
  gap: 12px;
  align-items: center;
}

.intro-video__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(16, 39, 27, 0.82);
  color: #f4f7f4;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.intro-video__toggle:hover,
.intro-video__toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(16, 39, 27, 0.92);
  box-shadow: 0 12px 28px rgba(16, 39, 27, 0.25);
}

.intro-video__toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.intro-video__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.intro-video__toggle-icon svg {
  width: 16px;
  height: 16px;
  display: none;
}

.intro-video__toggle-icon .icon--pause {
  display: block;
}

.intro-video__toggle.is-paused .icon--pause {
  display: none;
}

.intro-video__toggle.is-paused .icon--play {
  display: block;
}

.intro-video__toggle-text {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .intro-video__toggle {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .intro-video__toggle-icon {
    width: 14px;
    height: 14px;
  }

  .intro-video__toggle-icon svg {
    width: 14px;
    height: 14px;
  }
}

.hero {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: clamp(280px, 52vw, 803px);
  margin: var(--section-gap) auto;
  overflow: hidden;
}

/* Hero slideshow */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  animation: hero-fade 18s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.hero-overlay h3 {
  margin: 0 0 0.5rem;
}

.hero-overlay p {
  margin: 0 0 0.75rem;
}

.hero-overlay a {
  color: #fff;
}

@keyframes hero-fade {
  0%, 100% { opacity: 0; }
  5%, 30% { opacity: 1; }
  35%, 95% { opacity: 0; }
}

.intro-gallery {
  --intro-gallery-gap: clamp(8px, 1.6vw, 28px);
  --intro-gallery-visible: 1;
  --intro-gallery-transition: 600ms;
  position: relative;
  width: 100%;
  margin: var(--section-gap) 0;
  background: transparent;
}

.intro-gallery-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.intro-gallery-track {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  transform: translate3d(0, 0, 0);
  transition: none;
  will-change: transform;
}

.intro-gallery-track.is-animating {
  transition: transform var(--intro-gallery-transition) ease;
}

.intro-gallery-track > .gimg {
  flex: 0 0 calc(
    (100% - (var(--intro-gallery-visible) - 1) * var(--intro-gallery-gap)) /
    var(--intro-gallery-visible)
  );
  margin-right: var(--intro-gallery-gap);
}

.gimg {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: center/cover no-repeat;
  border-radius: 18px;
  box-shadow: 0 25px 40px rgba(17, 17, 17, 0.16);
}

/* Gallery tiles — scale but never too small or too huge */
.gimg-a { background-image: url('../img/가든센터.jpg'); }
.gimg-b { background-image: url('../img/유리온실.jpg'); }
.gimg-c { background-image: url('../img/유리온실2.jpg'); }
.gimg-d { background-image: url('../img/카페.jpg'); }

.intro-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.intro-gallery-nav--prev { left: clamp(12px, 3vw, 36px); }
.intro-gallery-nav--next { right: clamp(12px, 3vw, 36px); }

@media (min-width: 640px) {
  .intro-gallery { --intro-gallery-visible: 2; }
}

@media (min-width: 900px) {
  .intro-gallery { --intro-gallery-visible: 3; }
}

@media (min-width: 1100px) {
  .intro-gallery {
    --intro-gallery-visible: 4;
  }
}

.intro-img-wide {
  position: relative;
  aspect-ratio: 3 / 1; 
  min-height: clamp(220px, 40vw, 388px);
  margin: var(--section-gap) auto;
  background: url('../img/main.jpg') center/cover no-repeat;
}

.intro-img-tall {
  position: relative;
  aspect-ratio: 3 / 4; 
  min-height: clamp(320px, 55vw, 820px);
  margin: var(--section-gap) auto;
  background: url('../img/main.jpg') center/cover no-repeat;
}

.intro-img-long {
  position: relative;
  aspect-ratio: 7 / 3; 
  min-height: clamp(200px, 32vw, 367px);
  margin: var(--section-gap) auto;
  background: url('../img/main.jpg') center/cover no-repeat;
}

/* Mosaic images (right column + two left tiles) */
.intro-mosaic-right {
  width: min(360px, 60vw);
  margin: var(--section-gap) auto;
  aspect-ratio: 9 / 32;        /* tall portrait */
  min-height: clamp(280px, 60vh, 900px);
  background: url('../img/main.jpg') center/cover no-repeat;
}

.intro-mosaic-left-top,
.intro-mosaic-left-bottom {
  width: min(694px, 92vw);
  margin: var(--section-gap) auto;
  aspect-ratio:  694 / 481;    /* keep the original look */
  min-height: clamp(220px, 36vw, 481px);
  background: url('../img/main.jpg') center/cover no-repeat;
}


/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.from-up    { transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
.parallax { will-change: transform; }

/* ===== Cards ===== */
.cards-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: transparent;
  padding: var(--page-pad);
}

.cards-title {
  position: relative;
  width: 43%;
  max-width: 624px;
  min-height: 58px;
  margin: 0 auto;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #000;
  text-align: center;
}

.cards {
  position: relative;
  width: 89%;
  max-width: 1280px;
  min-height: auto;
  margin: var(--section-gap) auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: clamp(16px, 3vw, 40px) 2%;
}

/* ===== Program page ===== */
.program-main {
  padding: clamp(96px, 14vw, 180px) var(--page-pad) clamp(140px, 18vw, 220px);
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 12vw, 80px);
}

.program-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(1200px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.program-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.program-hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.8vw, 28px);
}

.program-hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.46);
}

.program-hero__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.68);
}

.program-summary {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
}

.program-summary__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #1f1f1f;
}

.program-summary__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.68);
  max-width: 60ch;
}

.program-summary__grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.program-summary__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.program-summary__card:is(:hover, :focus-visible) {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.program-summary__badge {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.46);
}

.program-summary__excerpt {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.68);
}

.program-summary__cta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: #205541;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.program-summary__cta::after {
  content: "→";
  font-size: 1rem;
}

.program-catalog {
  padding-top: 80px;
  display: flex;
  justify-content: center;
}

.program-grid {
  width: min(1100px, 100%);
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.program-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.program-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
}

.program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.program-card__body {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vw, 24px);
  padding: clamp(24px, 3vw, 36px);
}

.program-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.program-card__category {
  font-size: clamp(22px, 3.6vw, 26px);
  font-weight: 500;
  line-height: 1.4;
}

.program-card__subtitle {
  font-size: 0.95rem;
  color: #6f6f6f;
  line-height: 1.4;
}

.program-card__description {
  font-size: clamp(16px, 2.6vw, 18px);
  line-height: 1.65;
  color: #4f4f4f;
}

.program-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}

.program-card__duration {
  font-size: 0.95rem;
  color: #828282;
}

.program-card__price {
  font-size: clamp(18px, 2.8vw, 20px);
  font-weight: 500;
}

.program-card:is(:hover, :focus-visible) {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.16);
}

.program-card:is(:hover, :focus-visible) .program-card__media img {
  transform: scale(1.04);
}

.program-card:focus-visible {
  outline: 3px solid rgba(27, 94, 55, 0.4);
  outline-offset: 0;
}

.program-card:active {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.14);
}

.program-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 6vh, 80px) clamp(16px, 6vw, 48px);
}

.program-modal[hidden] {
  display: none;
}

.program-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(3px);
}

.program-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: min(880px, calc(100vh - clamp(40px, 6vh, 80px) * 2));
  background: #fff;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 48px 100px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

.program-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.program-modal__close:is(:hover, :focus-visible) {
  background: #111;
  color: #fff;
  transform: scale(1.04);
}

.program-modal__content {
  position: relative;
  overflow-y: auto;
  padding: clamp(52px, 7vw, 68px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 60px);
}

.program-modal__header {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vw, 24px);
}

.program-modal__header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.program-modal__title {
  font-weight: 400;
}

.program-modal__subtitle {
  font-size: clamp(18px, 2.8vw, 20px);
  line-height: 1.65;
  color: #4f4f4f;
}

.program-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}

.program-modal__cta:is(:hover, :focus-visible) {
  background: #fff;
  color: #111;
  box-shadow: 0 0 0 2px #111 inset;
  transform: translateY(-1px);
}

.program-modal__gallery {
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
}

.program-modal__stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #111;
}

.program-modal__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-modal__thumbs {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.program-modal__thumb-track {
  display: flex;
  gap: 14px;
  overflow: hidden;
}

.program-modal__thumb {
  flex: 0 0 96px;
  aspect-ratio: 1;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #f0f0f0;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.program-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-modal__thumb:is(:hover, :focus-visible) {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.program-modal__thumb.is-active {
  box-shadow: 0 0 0 2px #111 inset;
}

.program-modal__thumb-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, transform 180ms ease;
}

.program-modal__thumb-arrow:is(:hover, :focus-visible) {
  background: rgba(0, 0, 0, 0.88);
  transform: scale(1.05);
}

.program-modal__article {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.program-modal__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-modal__section-title {
  font-weight: 500;
}

.program-modal__paragraph {
  font-size: 1.05rem;
  line-height: 1.78;
  color: #3d3d3d;
}

.program-modal__facts {
  display: grid;
  gap: 16px;
  background: #f4f6f3;
  border-radius: 22px;
  padding: 24px 28px;
}

.program-modal__fact {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.program-modal__fact dt {
  color: #6f6f6f;
}

.program-modal__notice {
  margin-top: clamp(12px, 2vw, 20px);
  padding: 24px 28px;
  border-radius: 22px;
  background: #eff1ee;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-modal__notice .program-modal__list {
  color: rgba(33, 33, 33, 0.82);
}

.program-modal__notice .program-modal__note {
  color: rgba(32, 85, 65, 0.9);
  font-weight: 500;
}

.program-modal__list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #3d3d3d;
}

.program-modal__note {
  font-size: 0.92rem;
  color: #828282;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .program-modal__dialog {
    border-radius: 28px;
  }

  .program-modal__stage {
    aspect-ratio: 4 / 3;
  }

  .program-modal__thumb {
    flex-basis: 80px;
  }

  .program-modal__facts {
    gap: 10px;
  }

  .program-modal__fact {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .program-modal {
    padding: clamp(28px, 6vh, 48px) clamp(14px, 5vw, 24px);
  }

  .program-modal__dialog {
    max-height: calc(100vh - clamp(28px, 6vh, 48px) * 2);
  }

  .program-modal__content {
    padding: clamp(28px, 6vw, 40px);
  }

  .program-modal__header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .program-modal__thumbs {
    grid-template-columns: 1fr;
  }

  .program-modal__thumb-track {
    order: 1;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .program-modal__thumb-arrow {
    order: 0;
    width: 40px;
    height: 40px;
  }

  .program-modal__thumbs {
    gap: 12px;
  }

  .program-modal__thumb-track::-webkit-scrollbar {
    height: 4px;
  }

  .program-modal__thumb-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
  }

  .program-modal__fact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 720px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .program-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  }
}

@media (min-width: 1140px) {
  .program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .program-hero__media {
    aspect-ratio: 3 / 2;
    border-radius: 28px;
  }

  .program-card {
    border-radius: 28px;
  }

  .program-modal__facts {
    padding: 20px;
  }

  .program-modal__fact {
    grid-template-columns: 1fr;
  }
}

/* ===== Shop page ===== */
.shop-main {
  padding: clamp(72px, 10vw, 120px) var(--page-pad) clamp(120px, 14vw, 160px);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 9vw, 88px);
  background: #f7f9f6;
}

.shop-overview {
  width: min(1080px, 100%);
  margin: 0 auto;
  gap: clamp(24px, 4vw, 36px);
  display: grid;
}

.shop-overview__inner {
  display: grid;
  gap: 0.75rem;
}

.shop-overview__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(19, 41, 28, 0.52);
}

.shop-overview__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 500;
  color: #13291c;
}

.shop-overview__description {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(19, 41, 28, 0.68);
}

.shop-catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 60px);
}

.shop-catalog__header {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  align-items: flex-start;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-filter {
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.shop-filter:is(:hover, :focus-visible) {
  background: #111;
  color: #fff;
  border-color: #111;
}

.shop-filter.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.shop-note {
  font-size: 0.95rem;
  color: #828282;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 5vw, 48px);
}

@media (min-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: inherit;
  text-decoration: none;
}

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f7f7f7;
  overflow: hidden;
  border-radius: 24px;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.product-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__title {
  font-weight: 500;
  line-height: 1.3;
  font-size: clamp(20px, 2.4vw, 22px);
}

.product-card__description {
  font-size: clamp(18px, 2.6vw, 20px);
  color: #828282;
  line-height: 1.5;
}

.product-card__price {
  margin-top: 4px;
  font-size: clamp(18px, 2.6vw, 20px);
  font-weight: 500;
  text-align: right;
}

.product-card__cta {
  align-self: flex-start;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.product-card__cta::after {
  content: '\2192';
  font-size: 0.9em;
}

.product-card__cta:hover,
.product-card__cta:focus-visible {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-1px);
}

.product-card.is-hidden {
  display: none;
}

.product-card:hover .product-card__media img,
.product-card:focus-visible .product-card__media img {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card__price {
    align-self: flex-end;
  }
}

@media (min-width: 1100px) {
  .shop-main {
    padding-top: clamp(96px, 14vw, 180px);
  }

  .shop-catalog__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .shop-note {
    font-size: 1rem;
  }
}

/* ===== for 둘러보기 page ===== */
.gallery-cards {
  position: relative;
  width: 89%;
  max-width: 1280px;
  min-height: auto;    
  margin: var(--section-gap) auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(7, auto);
  gap: clamp(16px, 3vw, 40px) 2%;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease;
}

.card-img {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.05) 100%);
  transition: background 400ms ease, opacity 400ms ease;
}

.card-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  color: #fff;
  font-weight: 300;
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: 0.05em;
  text-align: center;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), opacity 400ms ease;
  opacity: 0.95;
}

.card:hover    { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover .card-img     { transform: scale(1.06); filter: saturate(1.1) contrast(1.05); }
.card:hover .card-overlay { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.15) 100%); }
.card:hover .card-label   { transform: translate(-50%, -50%); opacity: 1; }
.card:focus-visible        { outline: 3px solid #222; outline-offset: 3px; }

/* ===== 공간 소개 ===== */
.space-filters {
  justify-content: center;
  margin: 0 auto clamp(32px, 6vw, 48px);
  width: min(1200px, 100%);
  padding: 0 var(--page-pad);
  box-sizing: border-box;
}

.space-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 40px);
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .space-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.garden-map {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  box-sizing: border-box;
}

.garden-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.space-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,0.10);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.space-card.is-hidden {
  display: none;
}

.space-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.space-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.space-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 28px;
}

.space-card__title {
  font-size: 1.5rem;
  font-weight: 500;
}

.space-card__summary {
  font-size: 1rem;
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.6;
}

.space-card:is(:hover, :focus-within) {
  transform: translateY(-8px);
  box-shadow: 0 28px 68px rgba(0,0,0,0.14);
}

.space-card:is(:hover, :focus-within) .space-card__media img {
  transform: scale(1.05);
}

/* ===== Footer ===== */
.site-footer {
  display: grid;
  grid-template-columns: 1fr repeat(4, 150px); /* left flexible, 4 fixed columns */
  column-gap: clamp(16px, 3.5vw, 48px);
  align-items: start;
  position: relative;
  padding: 100px 100px; /* top/bottom + left/right padding */
  background: transparent;
}

/* Divider spans full width inside footer padding */
.footer-divider {
  grid-column: 1 / -1;
  width: 100%;
  height: 0;
  border-top: 1px solid var(--color-border);
  margin-bottom: 48px; /* space below line */
}

/* Left block: logo, contact, social */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 48px;
}

.footer-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  margin-right: 12px;
  margin-bottom: 12px;
}

.footer-contact {
  font: 400 0.9rem/1.6 var(--font-sans);
  color: #111;
  margin-right: 12px;
  margin-bottom: 16px;
}

.footer-contact__item {
  display: block;
  margin-bottom: 6px;
}

.footer-contact__item:last-child {
  margin-bottom: 0;
}
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* Social icons row */
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-start;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  color: #111;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.social-btn:hover { background: rgba(0,0,0,0.18); transform: translateY(-2px); }
.social-btn:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
}
.social-btn .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Link columns */
.footer-col {
  width: 150px;
  max-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
}

.footer-topic {
  margin: 0 0 4px 0;
  font: 500 16px/24px Inter, sans-serif;
  color: #000;
}

.footer-link {
  font: 400 0.9rem/1.6 var(--font-sans);
  color: #454545;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

/* Reset old pushers */
.col-1, .col-2, .col-3 { margin-right: 0 !important; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-footer {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 60px 24px; /* tighter padding on small screens */
  }

  .footer-left,
  .footer-col {
    width: 100%;
    max-width: none;
    align-items: center;
    text-align: center;
  }

  .footer-social { justify-content: center; }
}

/* ===== 소개 Page Tabs ===== */
.intro-tabs {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  height: 81px;
  background: #fff;
  padding: 0;
}

.intro-tabs .tab-button {
  flex: 1 1 0;
  width: auto;
  height: 100%;
  border: none;
  background: #fff;
  color: #454545;
}

.intro-tabs .tab-button.active {
  background: rgba(217, 217, 217, 0.21);
  color: #454545;
}

.space-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  height: 103px;
}

.tab-button {
  box-sizing: border-box;
  width: 133px;
  height: 60px;
  border: 1px solid #454545;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #454545;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.tab-button:not(.active):hover,
.tab-button:not(.active):focus {
  background: rgba(217, 217, 217, 0.21);
}

.tab-button.active {
  background: #454545;
  color: #fff;
}

.tab-panel {
  padding-top: 40px;
}

/* ===== Space card modal ===== */
.space-modal[hidden] {
  display: none;
}

.space-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.8);
  z-index: 3000;
  padding: clamp(24px, 6vh, 48px);
  overflow-y: auto;
}

.space-modal-content {
  position: relative;
  background: #fff;
  color: #111;
  max-width: 960px;
  width: min(960px, 92%);
  max-height: 90vh;
  padding: 3.5rem 2.75rem 3rem;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  overflow-y: auto;
}

.space-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.space-modal-close:is(:hover, :focus-visible) {
  transform: scale(1.05);
  border-color: #111;
  background: #111;
  color: #fff;
}

.space-modal-embla {
  width: 100%;
  height: min(420px, 50vh);
}

.space-modal-content > *:not(.space-modal-close) {
  position: relative;
}

.space-modal-embla .embla__viewport {
  height: 100%;
  border-radius: 22px;
}

.space-modal-embla .embla__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-modal-embla .embla__controls {
  justify-content: center;
  margin-top: .75rem;
}

.space-modal-embla .embla__prev,
.space-modal-embla .embla__next {
  border-color: #111;
  color: #111;
}

.space-modal-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.space-modal-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.72);
}
/* ===== Visit page ===== */
.visit-main {
  padding: clamp(72px, 10vw, 120px) var(--page-pad) clamp(120px, 14vw, 160px);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 9vw, 88px);
  background: #f7f9f6;
}

.visit-overview {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}

.visit-overview__intro {
  display: grid;
  gap: 0.75rem;
}

.visit-overview__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(19, 41, 28, 0.52);
}

.visit-overview__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 500;
  color: #13291c;
}

.visit-overview__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(19, 41, 28, 0.68);
}

.visit-overview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visit-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 66, 47, 0.22);
  background: #ffffff;
  color: #1d6040;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.visit-tag:hover {
  border-color: rgba(31, 109, 74, 0.45);
  box-shadow: 0 10px 20px rgba(19, 41, 28, 0.08);
}

.visit-tag:focus-visible {
  outline: 2px solid #1f6d4a;
  outline-offset: 2px;
}

.visit-section {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid rgba(24, 66, 47, 0.12);
}

.visit-section--location {
  padding-top: 0;
  border-top: none;
}

.visit-section__header {
  display: grid;
  gap: 0.65rem;
}

.visit-section__label {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(19, 41, 28, 0.52);
}

.visit-section__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 400;
  color: #13291c;
}

.visit-section__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(19, 41, 28, 0.68);
}

.visit-location__grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
}

.visit-location__image {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #dfe8e1;
  min-height: clamp(280px, 45vw, 420px);
  display: flex;
  flex-direction: column;
}

.visit-location__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
}

.visit-location__caption {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(19, 41, 28, 0.82);
  color: #f4f6f2;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.visit-hours-card {
  background: #ffffff;
  border: 1px solid rgba(24, 66, 47, 0.15);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 32px);
  display: grid;
  gap: 1.25rem;
}

.visit-hours-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.visit-hours-list__item {
  display: grid;
  gap: 0.3rem;
}

.visit-hours-list__item dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(19, 41, 28, 0.75);
}

.visit-hours-list__item dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(19, 41, 28, 0.7);
}

.visit-hours-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(19, 41, 28, 0.68);
}

.visit-hours-note span[lang="en"] {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.01em;
}

.visit-rate-table {
  border: 1px solid rgba(24, 66, 47, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.rate-table thead {
  background: #f0f5f2;
  color: #1b3828;
  font-weight: 600;
}

.rate-table th,
.rate-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(24, 66, 47, 0.12);
}

.rate-table tbody th {
  font-weight: 600;
  color: rgba(19, 41, 28, 0.8);
}

.rate-table tbody td {
  color: rgba(19, 41, 28, 0.7);
}

.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td {
  border-bottom: none;
}

.visit-rate-note {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(19, 41, 28, 0.65);
}

.visit-rate-note a {
  color: #1f6d4a;
  font-weight: 600;
  text-decoration: none;
}

.visit-rate-note a:hover {
  text-decoration: underline;
}

.visit-guideline-list {
  display: grid;
  gap: 0.75rem;
}

.visit-guideline {
  border: 1px solid rgba(24, 66, 47, 0.14);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.visit-guideline summary {
  margin: 0;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: #1c3828;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.visit-guideline summary::-webkit-details-marker {
  display: none;
}

.visit-guideline summary::after {
  content: "›";
  transform: rotate(90deg);
  transition: transform 0.2s ease;
  font-size: 1.2rem;
  color: rgba(28, 56, 40, 0.5);
}

.visit-guideline[open] summary::after {
  transform: rotate(-90deg);
}

.visit-guideline__body {
  padding: 0 1.25rem 1.25rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(19, 41, 28, 0.7);
}

.visit-guideline__body a {
  color: #1f6d4a;
  font-weight: 600;
  text-decoration: none;
}

.visit-guideline__body a:hover {
  text-decoration: underline;
}

.amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.amenity-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(24, 66, 47, 0.12);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amenity-list__item:hover {
  border-color: rgba(31, 109, 74, 0.4);
  box-shadow: 0 14px 32px rgba(19, 41, 28, 0.08);
}

.amenity-list__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(31, 109, 74, 0.12);
  color: #1f6d4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.amenity-list__icon svg {
  width: 22px;
  height: 22px;
}

.amenity-list__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(19, 41, 28, 0.72);
}

.visit-map__layout {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
}

.visit-map__frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #dfe8e1;
  min-height: clamp(280px, 45vw, 420px);
  box-shadow: 0 18px 40px rgba(19, 41, 28, 0.12);
}

.visit-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.visit-map__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(19, 41, 28, 0.85);
  color: #f5f8f4;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visit-map__details {
  background: #ffffff;
  border: 1px solid rgba(24, 66, 47, 0.12);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 30px);
  display: grid;
  gap: 1rem;
  box-shadow: 0 12px 28px rgba(19, 41, 28, 0.08);
}

.visit-map__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 600;
  color: #1b3828;
}

.visit-map__address {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(19, 41, 28, 0.68);
}

.visit-directions {
  display: grid;
  gap: 0.8rem;
}

.visit-directions__row {
  display: grid;
  gap: 0.3rem;
}

.visit-directions__row dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(19, 41, 28, 0.75);
}

.visit-directions__row dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(19, 41, 28, 0.7);
}

.contact-grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  padding: clamp(22px, 3.5vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(24, 66, 47, 0.12);
  background: #ffffff;
  display: grid;
  gap: 0.6rem;
  box-shadow: 0 10px 24px rgba(19, 41, 28, 0.06);
}

.contact-card span {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(19, 41, 28, 0.5);
  font-weight: 600;
}

.contact-card a {
  color: #1f6d4a;
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(19, 41, 28, 0.68);
}

@media (max-width: 960px) {
  .visit-location__grid,
  .visit-map__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .visit-main {
    gap: clamp(48px, 12vw, 72px);
  }

  .visit-overview__tags {
    gap: 0.6rem;
  }

  .visit-tag {
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
  }

  .visit-map__badge {
    position: static;
    display: inline-flex;
  }
}

@media (max-width: 540px) {
  .visit-tag {
    width: 100%;
    justify-content: center;
  }

  .visit-location__caption {
    font-size: 0.78rem;
  }
}
