:root {
  color-scheme: light dark;
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-subtle: #eceeeb;
  --text: #161b1a;
  --muted: #5c6462;
  --line: #d3d7d5;
  --accent: #a45f0b;
  --accent-hover: #7e4807;
  --accent-ink: #ffffff;
  --dark: #0b1014;
  --dark-text: #f4f5f3;
  --dark-muted: #c7cbc8;
  --danger: #a53636;
  --shadow: 0 24px 70px rgba(24, 33, 30, 0.09);
  --radius: 12px;
  --shell: min(1180px, calc(100% - 48px));
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513;
    --surface: #171d1b;
    --surface-subtle: #1d2522;
    --text: #edf0ed;
    --muted: #aeb6b2;
    --line: #343d39;
    --accent: #da963e;
    --accent-hover: #efad58;
    --accent-ink: #171008;
    --danger: #ff9898;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--dark-text);
  color: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 74px;
  background: rgba(9, 14, 18, 0.96);
  color: var(--dark-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--dark-text);
  text-decoration: none;
  white-space: nowrap;
}

.brand strong { font-size: 17px; letter-spacing: 0.025em; }
.brand span { color: #aeb5b2; font-size: 11px; }

.nav { display: flex; align-items: center; gap: 34px; white-space: nowrap; }
.nav a { color: #d7dcda; font-size: 14px; font-weight: 700; text-decoration: none; }
.nav a:hover { color: #ffffff; }

.nav .header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  color: #ffffff;
}

.nav .header-action:hover { background: #ffffff; color: var(--dark); }

.hero {
  position: relative;
  min-height: calc(100dvh - 74px);
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-text);
}

.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center; }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.93) 0%, rgba(4, 9, 12, 0.74) 42%, rgba(4, 9, 12, 0.22) 72%, rgba(4, 9, 12, 0.08) 100%),
    linear-gradient(0deg, rgba(4, 9, 12, 0.38) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  min-height: calc(100dvh - 74px);
  display: flex;
  align-items: center;
  padding-block: 68px;
}

.hero-copy { width: min(700px, 62%); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 30px;
  font-size: clamp(52px, 6.3vw, 88px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.hero-lead {
  margin-bottom: 38px;
  color: var(--dark-muted);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.75;
  font-weight: 600;
}

.hero-actions { display: flex; gap: 12px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.button-light { background: #ffffff; border-color: #ffffff; color: var(--dark); }
.button-light:hover { background: #e8ebe9; border-color: #e8ebe9; }
.button-outline { background: rgba(9, 14, 18, 0.18); border-color: rgba(255, 255, 255, 0.64); color: #ffffff; }
.button-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #ffffff; }

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.section { padding: 132px 0; }
.section-heading { margin-bottom: 72px; }
.program { padding-block: 168px; border-bottom: 1px solid var(--line); }

.section-subtitle {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  word-break: keep-all;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.18;
  letter-spacing: -0.052em;
  word-break: keep-all;
}

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  align-items: start;
  gap: 78px;
}

.program-image { margin: 0; position: sticky; top: 110px; }
.program-image img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; }
.program-content { padding-top: 16px; }

.program-content h3 {
  margin-bottom: 22px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.program-content > p:not(.notice) {
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.process-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.process-list strong { font-size: 15px; }
.process-list span { color: var(--muted); font-size: 15px; }

.notice {
  margin: 32px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 13px;
}

.criteria { background: var(--surface-subtle); }

.criteria-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 96px;
}

.criteria-intro p { max-width: 400px; margin-bottom: 0; color: var(--muted); font-size: 17px; word-break: keep-all; }
.criteria-list { margin: 0; border-top: 1px solid var(--line); }

.criteria-list > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.criteria-list dt { font-weight: 800; }
.criteria-list dd { margin: 0; color: var(--muted); word-break: keep-all; }

.application { background: var(--bg); }

.application-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 82px;
}

.application-intro { position: sticky; top: 116px; }
.application-intro > p:not(.direct-contact) { color: var(--muted); font-size: 17px; word-break: keep-all; }
.application-intro dl { margin: 40px 0 0; border-top: 1px solid var(--line); }
.application-intro dl div { display: flex; justify-content: space-between; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.application-intro dt { color: var(--muted); }
.application-intro dd { margin: 0; font-weight: 800; text-align: right; }

.direct-contact { margin: 36px 0 0; color: var(--muted); font-size: 13px; }
.direct-contact a { color: var(--text); font-size: 16px; font-weight: 800; text-underline-offset: 4px; }

.form-panel {
  min-height: 630px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 34px; }
.form-heading h3 { margin: 0; font-size: 28px; letter-spacing: -0.035em; }
.form-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 800; }
.field label span { color: var(--accent); font-size: 11px; }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input { min-height: 50px; padding: 0 14px; }
textarea { min-height: 110px; padding: 13px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 76%, transparent); opacity: 1; }
input:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); }

.button:focus-visible, .nav a:focus-visible, input:focus-visible, textarea:focus-visible, .text-link:focus-visible, .direct-contact a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}

.input-suffix { position: relative; }
.input-suffix input { padding-right: 52px; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.consent input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); }
.consent b { color: var(--accent); }
.submit-button { width: 100%; margin-top: 28px; }
.submit-button:disabled { cursor: wait; opacity: 0.66; }
.form-help, .form-status { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); font-weight: 700; }
.honeypot { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); white-space: nowrap; }

.success-panel { min-height: 520px; align-content: center; justify-items: center; text-align: center; }
.success-panel:not([hidden]) { display: grid; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--surface-subtle); color: var(--accent); font-size: 24px; font-weight: 900; }
.success-panel h3 { margin-bottom: 10px; font-size: 30px; letter-spacing: -0.04em; }
.success-panel p { margin-bottom: 24px; color: var(--muted); }
.text-link { color: var(--text); font-weight: 800; text-underline-offset: 5px; }

.site-footer { padding: 58px 0 30px; background: var(--dark); color: var(--dark-text); }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding-bottom: 44px; }
.footer-main strong { letter-spacing: 0.03em; }
.footer-main p { margin: 8px 0 0; color: #9fa8a4; font-size: 13px; }
.footer-contact { display: flex; align-items: flex-start; gap: 38px; text-align: right; }
.footer-contact > div { display: grid; justify-items: end; gap: 5px; }
.footer-contact span { color: #9fa8a4; font-size: 12px; }
.footer-contact a { color: #ffffff; font-weight: 700; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-bottom p, .footer-bottom a { margin: 0; color: #9fa8a4; font-size: 12px; }
.footer-bottom a { text-underline-offset: 4px; }

.thanks-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.thanks-card { width: min(620px, 100%); padding: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.thanks-card .brand { margin-bottom: 70px; color: var(--text); }
.thanks-card .brand span { color: var(--muted); }
.thanks-card .success-mark { margin-inline: auto; }
.thanks-card h1 { margin-bottom: 16px; font-size: clamp(36px, 6vw, 52px); }
.thanks-card p { margin-bottom: 32px; color: var(--muted); }

@media (max-width: 960px) {
  :root { --shell: min(100% - 40px, 780px); }
  .hero-copy { width: min(650px, 85%); }
  .program-grid, .criteria-layout, .application-layout { grid-template-columns: 1fr; gap: 54px; }
  .program-image, .application-intro { position: static; }
  .program-image img { aspect-ratio: 16 / 9; }
  .criteria-layout { gap: 44px; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 32px); --radius: 10px; }
  .site-header { height: 66px; }
  .brand span, .nav a:not(.header-action) { display: none; }
  .nav { gap: 0; }
  .nav .header-action { min-height: 38px; padding-inline: 14px; }
  .hero { min-height: calc(100dvh - 66px); }
  .hero-media { object-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4, 9, 12, 0.92) 0%, rgba(4, 9, 12, 0.7) 72%, rgba(4, 9, 12, 0.32) 100%); }
  .hero-inner { min-height: calc(100dvh - 66px); align-items: flex-end; padding-block: 64px 86px; }
  .hero-copy { width: 100%; }
  h1 { margin-bottom: 24px; font-size: clamp(42px, 12vw, 56px); }
  .hero-lead { margin-bottom: 30px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-caption { right: auto; left: 0; bottom: 24px; }
  .section { padding: 88px 0; }
  .program { padding-block: 112px; }
  .section-heading { margin-bottom: 46px; }
  h2 { font-size: clamp(34px, 10vw, 46px); }
  .section-subtitle { margin-bottom: 14px; font-size: 16px; }
  .program-grid { gap: 38px; }
  .program-content h3 { font-size: 32px; }
  .process-list li { grid-template-columns: 1fr; gap: 5px; padding: 19px 0; }
  .criteria-list > div { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .application { padding-top: 92px; }
  .form-panel { min-height: 0; padding: 30px 20px; }
  .form-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .success-panel { min-height: 420px; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-contact { flex-direction: column; gap: 24px; text-align: left; }
  .footer-contact > div { justify-items: start; }
  .thanks-card { padding: 38px 24px; }
  .thanks-card .brand { margin-bottom: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@supports not (backdrop-filter: blur(12px)) {
  .site-header { background: var(--dark); }
}
