:root {
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --surface-soft: #efe9de;
  --ink: #12231f;
  --muted: #62716b;
  --line: rgba(18, 35, 31, 0.14);
  --brand: #1f5f4a;
  --brand-deep: #0f312a;
  --brand-warm: #d9bc7d;
  --shadow: 0 28px 56px rgba(9, 23, 19, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --container: min(1180px, calc(100vw - 56px));
}

@font-face {
  font-family: "Gmarket Sans";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff")
    format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gmarket Sans";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff")
    format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

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

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

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding: 18px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 24, 20, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 35px rgba(8, 18, 16, 0.18);
}

.header-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 20px;
}

.desktop-nav {
  grid-area: nav;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  color: #fff;
}

.desktop-nav > a,
.nav-item > a {
  position: relative;
  padding: 12px 0;
}

.desktop-nav > a::after,
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.desktop-nav > a:hover::after,
.nav-item:hover > a::after {
  transform: scaleX(1);
}

.nav-item {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 280px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.dropdown-panel a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.dropdown-panel a:hover {
  background: var(--surface-soft);
}

.nav-item:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  justify-self: start;
  text-align: left;
  color: #fff;
}

.brand-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark {
  font-family: "Gmarket Sans", "Pretendard", sans-serif;
  font-size: 2.55rem;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  font-weight: 700;
}

.header-cta {
  grid-area: cta;
  justify-self: end;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.mobile-menu {
  position: fixed;
  inset: 92px 20px auto;
  z-index: 25;
  padding: 18px;
  border-radius: 26px;
  background: rgba(10, 27, 24, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  padding: 14px 12px;
  border-radius: 16px;
  color: #fff;
  letter-spacing: 0.12em;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0d1d1a;
}

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

.hero-media img {
  height: 100%;
  object-fit: cover;
  animation: heroZoom 16s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 20, 18, 0.24) 0%, rgba(8, 20, 18, 0.44) 36%, rgba(8, 20, 18, 0.76) 100%),
    linear-gradient(100deg, rgba(8, 20, 18, 0.54) 0%, rgba(8, 20, 18, 0.18) 45%, rgba(8, 20, 18, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 116px 0 72px;
}

.hero-stack {
  max-width: 560px;
  color: #fff;
}

.eyebrow,
.section-kicker,
.program-name,
.community-date,
.detail-label {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-stack h1,
.section-heading h2,
.teacher-content h2,
.contact-intro h2 {
  margin: 0;
  font-family: "Gmarket Sans", "Pretendard", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-stack h1 {
  margin-top: 16px;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  line-height: 1.02;
}

.hero-brand-line {
  display: block;
}

.hero-copy {
  max-width: 33ch;
  margin: 22px 0 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--brand-warm);
  color: #1b201b;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary.light {
  border-color: rgba(255, 255, 255, 0.44);
  color: #fff;
}

.hero-caption {
  display: inline-flex;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.section-block {
  width: var(--container);
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  max-width: 100%;
}

.section-heading.centered {
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.teacher-content h2,
.contact-intro h2 {
  margin-top: 12px;
  max-width: 100%;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.18;
  word-break: keep-all;
  overflow-wrap: normal;
}

.section-heading h2 {
  color: var(--ink);
}

.section-heading.centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
  margin-top: 44px;
}

.intro-copy {
  display: grid;
  gap: 16px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.intro-copy p {
  margin: 0;
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.intro-points li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 95, 74, 0.07);
  color: var(--brand-deep);
  font-size: 0.92rem;
  line-height: 1.4;
}

.intro-visual {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.intro-visual img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
}

.facility-card {
  display: grid;
  gap: 0;
}

.facility-card img {
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(17, 31, 27, 0.1);
}

.facility-copy {
  padding-top: 18px;
}

.facility-copy h3,
.program-card h3,
.community-card h3 {
  margin: 0;
  font-family: "Gmarket Sans", "Pretendard", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.facility-copy h3 {
  font-size: 2rem;
}

.facility-copy p,
.program-card p,
.community-card p,
.teacher-content p,
.contact-intro p:not(.section-kicker) {
  margin: 10px 0 0;
}

.facility-copy p,
.program-card p,
.community-card p,
.contact-intro p:not(.section-kicker) {
  max-width: 28ch;
  color: var(--muted);
  line-height: 1.82;
}

.video-section {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #0d1715;
}

.video-stage {
  position: relative;
  width: 100%;
  min-height: 72svh;
  overflow: hidden;
}

.video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 15, 13, 0.08) 0%, rgba(7, 15, 13, 0.22) 100%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0) 45%, rgba(7, 15, 13, 0.22) 100%);
  pointer-events: none;
}

.academy-video {
  width: 100%;
  min-height: 72svh;
  background: #000;
  object-fit: cover;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.program-card {
  position: relative;
  min-height: 360px;
  perspective: 1600px;
  cursor: pointer;
  outline: none;
}

.program-card.featured {
  z-index: 1;
}

.program-name {
  display: inline-block;
  color: var(--brand);
}

.program-card-inner {
  position: relative;
  width: 100%;
  min-height: 360px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-card:hover .program-card-inner {
  transform: translateY(-8px);
}

.program-card.is-flipped .program-card-inner {
  transform: rotateY(180deg);
}

.program-card.is-flipped:hover .program-card-inner {
  transform: rotateY(180deg);
}

.program-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 28px;
  border-radius: 28px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.program-card-front {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 231, 0.92));
  box-shadow: 0 18px 36px rgba(17, 31, 27, 0.08);
}

.program-card-back {
  transform: rotateY(180deg);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 49, 42, 0.98), rgba(10, 27, 24, 0.98));
  box-shadow: 0 24px 44px rgba(10, 24, 20, 0.18);
}

.program-card.featured .program-card-front {
  background:
    linear-gradient(180deg, rgba(20, 66, 56, 0.1), rgba(245, 240, 231, 0.95));
  border-top: 0;
}

.program-card:hover .program-card-front,
.program-card:focus-visible .program-card-front {
  border-color: rgba(31, 95, 74, 0.28);
  box-shadow: 0 26px 46px rgba(17, 31, 27, 0.14);
}

.program-card:focus-visible .program-card-inner {
  transform: translateY(-8px);
}

.program-card h3 {
  margin-top: 14px;
  font-size: 2rem;
  color: var(--ink);
}

.program-card-back h3,
.program-card-back .program-name {
  color: #fff;
}

.program-card p {
  font-size: 0.98rem;
}

.program-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.program-card-back ul {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.program-hover-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 35, 31, 0.12);
  color: var(--brand);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program-hover-line::after {
  content: "↗";
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.program-card:hover .program-hover-line::after,
.program-card:focus-visible .program-hover-line::after {
  transform: translate(4px, -2px);
}

.program-card-back .program-hover-line {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
}

.teacher-section {
  position: relative;
  min-height: 620px;
  margin-top: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.teacher-backdrop,
.teacher-overlay {
  position: absolute;
  inset: 0;
}

.teacher-backdrop img {
  height: 100%;
  object-fit: cover;
}

.teacher-overlay {
  background:
    linear-gradient(180deg, rgba(8, 18, 16, 0.28), rgba(8, 18, 16, 0.82)),
    linear-gradient(90deg, rgba(11, 31, 25, 0.74), rgba(11, 31, 25, 0.26));
}

.teacher-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 48px));
  color: #fff;
  text-align: center;
}

.teacher-content h2 {
  margin-left: auto;
  margin-right: auto;
}

.teacher-content p {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.88;
}

.teacher-content .btn {
  margin-top: 30px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.community-card {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  transition: transform 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.community-card::after {
  content: "↗";
  position: absolute;
  right: 0;
  top: 20px;
  color: rgba(31, 95, 74, 0.32);
  font-size: 1.1rem;
  transition: transform 0.28s ease, color 0.28s ease;
}

.community-date {
  display: inline-block;
  color: var(--brand);
}

.community-card h3 {
  margin-top: 14px;
  font-size: 1.95rem;
}

.community-card:hover {
  transform: translateY(-8px);
  border-color: rgba(31, 95, 74, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(31, 95, 74, 0.05));
  box-shadow: 0 20px 40px rgba(17, 31, 27, 0.08);
}

.community-card:hover::after {
  transform: translate(2px, -4px);
  color: var(--brand);
}

.community-card:hover h3 {
  color: var(--brand-deep);
}

.contact-section {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 120px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: start;
  padding: 50px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff, #f5f0e6);
  box-shadow: 0 24px 52px rgba(17, 31, 27, 0.08);
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-details > div {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(18, 54, 47, 0.06);
  border: 1px solid rgba(18, 54, 47, 0.08);
}

.detail-label {
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
}

.contact-details strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
}

.contact-intro h2 br {
  display: block;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px 24px 42px;
  color: rgba(255, 255, 255, 0.78);
  background: #143632;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.footer-mark {
  color: #fff;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 4px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.11);
  }
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 20px;
    font-size: 0.78rem;
  }

  .intro-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(100vw - 32px, 100%);
  }

  .site-header {
    padding: 14px 0;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "toggle brand cta";
    gap: 14px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    grid-area: toggle;
    justify-self: start;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  .brand-mark {
    font-size: 2.45rem;
  }

  .hero-content {
    padding-top: 132px;
    padding-bottom: 64px;
  }

  .hero-stack {
    max-width: 480px;
  }

  .facility-grid,
  .program-grid,
  .community-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .program-card,
  .program-card-inner,
  .program-card-face {
    min-height: 320px;
  }

  .section-block {
    padding: 90px 0;
  }

  .teacher-section {
    min-height: 540px;
  }

  .section-heading h2,
  .teacher-content h2,
  .contact-intro h2 {
    white-space: normal;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero-stack {
    max-width: 100%;
  }

  .hero-copy {
    max-width: 30ch;
    font-size: 0.98rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .section-heading h2,
  .section-heading.centered h2,
  .teacher-content h2,
  .contact-intro h2 {
    max-width: none;
  }

  .video-stage,
  .academy-video {
    min-height: 54svh;
  }

  .contact-panel {
    padding: 28px 20px;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 901px) {
  .section-heading h2,
  .teacher-content h2,
  .contact-intro h2 {
    white-space: nowrap;
  }

  .contact-intro h2 {
    white-space: normal;
  }
}
