:root {
  --ink: #161c19;
  --ink-soft: #2c3530;
  --muted: #5c675f;
  --line: rgba(22, 28, 25, 0.12);
  --paper: #f3f1ec;
  --paper-deep: #e8e4db;
  --surface: #faf9f6;
  --gold: #b08d57;
  --gold-deep: #8a6c3e;
  --forest: #24352c;
  --forest-soft: #33463b;
  --white: #ffffff;
  --danger: #8b3a3a;
  --success: #2f5d45;
  --shadow: 0 24px 60px rgba(22, 28, 25, 0.08);
  --radius: 2px;
  --header-h: 4.5rem;
  --font-display: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --font-body: "Manrope", "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 241, 236, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 249, 246, 0.94);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
}

.hero-editorial {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--forest);
  color: var(--paper);
  overflow: hidden;
}

.hero-editorial .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 5rem);
  position: relative;
  z-index: 2;
}

.hero-editorial .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--paper);
  margin: 0 0 1.25rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-editorial .hero-line {
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.5rem;
  transform-origin: left;
  animation: lineGrow 1.1s var(--ease) both;
}

.hero-editorial h1 {
  color: var(--paper);
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 400;
  max-width: 18ch;
  margin-bottom: 1rem;
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero-editorial .hero-support {
  color: rgba(243, 241, 236, 0.78);
  max-width: 34ch;
  margin-bottom: 2rem;
  animation: rise 0.9s var(--ease) 0.3s both;
}

.hero-editorial .hero-actions {
  animation: rise 0.9s var(--ease) 0.45s both;
}

.hero-editorial .hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-editorial .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: zoomSoft 12s var(--ease) infinite alternate;
}

.hero-editorial .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 53, 44, 0.55), transparent 45%);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-muted {
  background: var(--paper-deep);
}

.section-dark {
  background: var(--forest);
  color: var(--paper);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--paper);
}

.section-dark p {
  color: rgba(243, 241, 236, 0.78);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}

.section-dark .eyebrow {
  color: var(--gold);
}

.lead {
  font-size: 1.12rem;
  max-width: 48ch;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.quote-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 22ch;
}

.quote-band cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
}

.benefit-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.benefit-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.benefit-item.is-visible {
  opacity: 1;
  transform: none;
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}

.course-grid,
.card-grid,
.post-grid,
.tier-grid {
  display: grid;
  gap: 1.5rem;
}

.course-grid,
.post-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.course-card,
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.course-card:hover,
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.course-card img,
.post-card img,
.detail-hero img,
.page-hero img,
.instructor-avatar {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card img {
  aspect-ratio: 16 / 9;
}

.course-card .body,
.post-card .body,
.tier .body {
  padding: 1.35rem 1.35rem 1.6rem;
}

.meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.metric {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(243, 241, 236, 0.2);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric span {
  color: rgba(243, 241, 236, 0.72);
  font-size: 0.92rem;
}

.testimonial-stack {
  display: grid;
  gap: 1.75rem;
}

.testimonial {
  padding: 1.75rem;
  background: var(--surface);
  border-left: 2px solid var(--gold);
}

.testimonial p {
  margin-bottom: 1rem;
}

.testimonial footer {
  font-size: 0.9rem;
  color: var(--muted);
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  background: var(--forest);
  color: var(--paper);
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-hero .content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5rem) 0;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.page-hero h1 {
  color: var(--paper);
  max-width: 16ch;
}

.page-hero p {
  color: rgba(243, 241, 236, 0.8);
  max-width: 42ch;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.tier.featured {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
  transform: translateY(-8px);
}

.tier.featured h3,
.tier.featured p,
.tier.featured li {
  color: var(--paper);
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.5rem 0 1rem;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex: 1;
}

.tier li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tier.featured li {
  border-bottom-color: rgba(243, 241, 236, 0.18);
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(176, 141, 87, 0.45);
  border-color: var(--gold);
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  display: none;
}

.form-status.is-success {
  display: block;
  border-color: var(--success);
  color: var(--success);
  background: rgba(47, 93, 69, 0.08);
}

.form-status.is-error {
  display: block;
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(139, 58, 58, 0.08);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.contact-card {
  background: var(--forest);
  color: var(--paper);
  padding: 2rem;
}

.contact-card h2,
.contact-card p,
.contact-card a {
  color: var(--paper);
}

.contact-card a {
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 241, 236, 0.35);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin-top: 0.75rem;
}

.module-list {
  display: grid;
  gap: 1rem;
}

.module {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.module h3 {
  margin-bottom: 0.35rem;
}

.instructor {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.instructor-avatar {
  aspect-ratio: 1;
  width: 180px;
  object-fit: cover;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--paper-deep);
}

.site-footer {
  background: var(--ink);
  color: rgba(243, 241, 236, 0.75);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1.2fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-address {
  color: rgba(243, 241, 236, 0.65);
  font-size: 0.92rem;
}

.footer-heading {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-col a {
  color: rgba(243, 241, 236, 0.75);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 241, 236, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(243, 241, 236, 0.65);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--paper);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.5s var(--ease) both;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inline-error {
  margin: 1rem auto;
  width: min(1120px, calc(100% - 2.5rem));
  padding: 0.85rem 1rem;
  border: 1px solid var(--danger);
  color: var(--danger);
  background: rgba(139, 58, 58, 0.06);
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 0.9;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.rating {
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes zoomSoft {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (max-width: 960px) {
  .hero-editorial,
  .split,
  .split-reverse,
  .contact-panel,
  .course-grid,
  .post-grid,
  .tier-grid,
  .metric-row,
  .footer-grid,
  .instructor {
    grid-template-columns: 1fr;
  }

  .tier.featured {
    transform: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.35rem;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.5rem;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-editorial {
    min-height: auto;
  }

  .hero-editorial .hero-visual {
    min-height: 280px;
    order: -1;
  }

  .instructor-avatar {
    width: 100%;
  }
}
