/* =========================================================
   EMH Industries — site styles
   Design reference: IBM (oh-my-design.kr/design-systems/ibm)
   Flat surfaces, 0/4px radius, no shadows, blue accent.
   ========================================================= */

:root {
  /* Colour */
  --blue: #0f62fe;
  --blue-hover: #0b5df8;
  --blue-active: #0953e5;
  --link: #0062fe;
  --bg: #ffffff;
  --layer: #f4f4f4;
  --layer-hover: #e8e8e8;
  --rule: #e0e0e0;
  --border: #c6c6c6;
  --border-strong: #8d8d8d;
  --text: #161616;
  --text-muted: #525252;
  --text-faint: #6f6f6f;
  --dark: #161616;
  --dark-2: #262626;
  --dark-3: #393939;
  --dark-text: #f4f4f4;
  --dark-muted: #c6c6c6;
  --success: #24a148;
  --error: #da1e28;

  /* Type */
  --font: "IBM Plex Sans KR", "IBM Plex Sans", -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Space */
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-section: 64px;
  --s-section-lg: 96px;

  --radius: 4px;
  --header-h: 64px;
  --max: 1312px;
}

/* ---------- Language switching ---------- */
html[data-lang="ko"] body [lang="en"],
html[data-lang="en"] body [lang="ko"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html[data-lang="ko"] body { word-break: keep-all; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-md); }
@media (min-width: 672px) { .container { padding: 0 var(--s-xl); } }

/* ---------- Type scale ---------- */
.label {
  font-size: 12px; line-height: 16px; letter-spacing: .32px;
  color: var(--text-muted); text-transform: uppercase; font-weight: 600;
}
.display {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.12; font-weight: 300;
}
.h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; font-weight: 300; }
.h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.25; font-weight: 300; }
.h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 40em; }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 48px;
  padding: 14px 63px 14px 15px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px; line-height: 18px; letter-spacing: .16px; font-weight: 400;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .11s cubic-bezier(.2,0,.38,.9);
}
.btn svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: currentColor; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:active { background: var(--blue-active); }
.btn--secondary { background: var(--dark-3); color: #fff; }
.btn--secondary:hover { background: #4c4c4c; }
.btn--ghost { background: transparent; color: var(--link); padding-right: 47px; }
.btn--ghost:hover { background: var(--layer-hover); }
.btn--tertiary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--tertiary:hover { background: var(--blue); color: #fff; }
.on-dark .btn--tertiary { color: #fff; border-color: #fff; }
.on-dark .btn--tertiary:hover { background: #fff; color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1px; }
.btn-row--gap { gap: var(--s-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center;
  height: var(--header-h);
  max-width: var(--max); margin: 0 auto;
  padding: 0 0 0 var(--s-md);
}
@media (min-width: 672px) { .site-header__inner { padding-left: var(--s-xl); } }
.brand { display: flex; align-items: center; gap: 12px; margin-right: var(--s-xl); color: var(--text); text-decoration: none !important; }
.brand img { height: 36px; width: auto; }
.brand__sub { font-size: 12px; letter-spacing: .32px; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 12px; line-height: 1.3; display: none; }
@media (min-width: 1200px) { .brand__sub { display: block; } }

.nav { display: none; height: 100%; }
.nav > ul { display: flex; height: 100%; list-style: none; }
.nav li { position: relative; height: 100%; }
.nav__link {
  display: flex; align-items: center; gap: 4px; height: 100%;
  padding: 0 14px;
  font-size: 14px; letter-spacing: .16px; color: var(--text-muted);
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
}
.nav__link:hover { color: var(--text); background: var(--layer-hover); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--text); border-bottom-color: var(--blue); font-weight: 600; }
.nav__link svg { width: 16px; height: 16px; fill: currentColor; transition: transform .15s; }
.nav li:hover > .nav__link svg, .nav li:focus-within > .nav__link svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  list-style: none; background: var(--dark); padding: 8px 0;
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .12s, transform .12s, visibility .12s;
}
.nav li:hover > .submenu, .nav li:focus-within > .submenu { visibility: visible; opacity: 1; transform: none; }
.submenu li { height: auto; }
.submenu a {
  display: block; padding: 11px 16px; font-size: 14px; color: var(--dark-muted);
  text-decoration: none !important;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--dark-2); color: #fff; }

.header-actions { margin-left: auto; display: flex; align-items: stretch; height: 100%; }
.lang-toggle {
  display: flex; align-items: center; gap: 2px; height: 100%;
  padding: 0 16px; border: 0; border-left: 1px solid var(--rule);
  background: none; cursor: pointer; font-size: 14px; color: var(--text-muted);
}
.lang-toggle:hover { background: var(--layer-hover); color: var(--text); }
.lang-toggle b { font-weight: 400; padding: 2px 6px; }
html[data-lang="en"] .lang-toggle b[data-l="en"],
html[data-lang="ko"] .lang-toggle b[data-l="ko"] { background: var(--text); color: #fff; font-weight: 600; }
.header-cta {
  display: none; align-items: center; height: 100%; padding: 0 24px;
  background: var(--blue); color: #fff; font-size: 14px; letter-spacing: .16px;
  text-decoration: none !important;
}
.header-cta:hover { background: var(--blue-hover); }
.header-cta--alt { background: var(--bg); color: var(--text); border-left: 1px solid var(--rule); }
.header-cta--alt:hover { background: var(--layer-hover); }
.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: var(--header-h); height: 100%; border: 0; border-left: 1px solid var(--rule);
  background: none; cursor: pointer;
}
.menu-btn:hover { background: var(--layer-hover); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
body.menu-open .menu-btn .i-close { display: block; }
body.menu-open .menu-btn .i-menu { display: none; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .header-cta { display: flex; }
}
@media (min-width: 1100px) and (max-width: 1279px) { .header-cta--alt { display: none; } }

/* Mobile drawer */
.drawer {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--dark); overflow-y: auto; padding: 8px 0 32px;
}
body.menu-open { overflow: hidden; }
body.menu-open .drawer { display: block; }
.drawer a {
  display: block; padding: 14px var(--s-md); color: var(--dark-text);
  font-size: 16px; border-bottom: 1px solid var(--dark-2); text-decoration: none !important;
}
.drawer a:hover, .drawer a[aria-current="page"] { background: var(--dark-2); color: #fff; }
.drawer .drawer__sub a { padding-left: 32px; font-size: 14px; color: var(--dark-muted); }
.drawer__group { padding: 20px var(--s-md) 8px; font-size: 12px; letter-spacing: .32px; color: #8d8d8d; border-bottom: 1px solid var(--dark-2); }
.drawer__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px var(--s-md) 0; }
.drawer .drawer__cta { background: var(--blue); border: 0; color: #fff; text-align: center; }
.drawer .drawer__cta--alt { background: var(--dark-3); }
@media (min-width: 1100px) { .drawer { display: none !important; } }

/* ---------- Sections ---------- */
.section { padding: var(--s-section) 0; }
@media (min-width: 1056px) { .section { padding: var(--s-section-lg) 0; } }
.section--layer { background: var(--layer); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark .lead, .section--dark .muted { color: var(--dark-muted); }
.section--dark .label { color: #a8a8a8; }
.section--tight { padding: var(--s-2xl) 0; }

.section-head { display: grid; gap: var(--s-md); margin-bottom: var(--s-2xl); }
@media (min-width: 1056px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s-xl); }
}

/* ---------- Hero ---------- */
.hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.hero__grid { display: grid; }
.hero__copy { padding: var(--s-section) 0 var(--s-2xl); position: relative; z-index: 2; }
.hero__copy .label { color: #a8a8a8; margin-bottom: var(--s-lg); display: flex; align-items: center; gap: 10px; }
.hero__copy .label::before { content: ""; width: 24px; height: 2px; background: var(--blue); }
.hero__copy .display { margin-bottom: var(--s-lg); }
.hero__copy .display strong { font-weight: 600; }
.hero__copy .lead { color: var(--dark-muted); margin-bottom: var(--s-xl); }
.hero__media { position: relative; min-height: 280px; }
.hero__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,0) 60%, rgba(22,22,22,.6));
}
@media (min-width: 1056px) {
  .hero__grid { grid-template-columns: 1fr 1fr; min-height: 600px; }
  .hero__copy { padding: 112px var(--s-2xl) 96px 0; }
  .hero__media { min-height: auto; margin-right: calc((100vw - min(100vw, var(--max))) / -2 - var(--s-xl)); }
  .hero__media::after { background: linear-gradient(90deg, var(--dark) 0, rgba(22,22,22,0) 30%); }
}

/* Stat strip */
.stats-wrap { background: var(--dark-2); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: var(--s-lg) var(--s-md); border-top: 1px solid var(--dark-3); border-left: 1px solid var(--dark-3); }
.stat:nth-child(odd) { border-left: 0; }
.stat__num { font-size: clamp(28px, 3vw, 40px); font-weight: 300; line-height: 1.1; color: #fff; }
.stat__num em { font-style: normal; color: #78a9ff; }
.stat__txt { font-size: 14px; color: var(--dark-muted); margin-top: 6px; }
@media (min-width: 1056px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: var(--s-xl); }
  .stat:nth-child(odd) { border-left: 1px solid var(--dark-3); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Page header (sub pages) ---------- */
.page-head { background: var(--dark); color: #fff; padding: var(--s-2xl) 0 var(--s-section); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--dark-2) 1px, transparent 1px), linear-gradient(90deg, var(--dark-2) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .55;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.page-head .container { position: relative; }
.page-head .h1 { margin: var(--s-lg) 0 var(--s-md); max-width: 18em; }
.page-head .lead { color: var(--dark-muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #a8a8a8; list-style: none; }
.crumbs a { color: #78a9ff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--dark-3); }

/* ---------- Tiles / cards ---------- */
.tiles { display: grid; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.tiles > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--layer .tiles, .section--layer .tiles > * { border-color: var(--border); }
@media (min-width: 672px) { .tiles--2, .tiles--3, .tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1056px) {
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
  .tiles--4 { grid-template-columns: repeat(4, 1fr); }
}
.tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); padding: var(--s-lg); min-height: 220px;
  color: var(--text); text-decoration: none !important;
  transition: background-color .11s;
}
.section--layer .tile { background: var(--layer); }
a.tile:hover { background: var(--layer-hover); }
.tile__icon { width: 32px; height: 32px; fill: var(--blue); margin-bottom: var(--s-lg); }
.tile .h3 { margin-bottom: var(--s-xs); }
.tile p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.tile__arrow { margin-top: auto; padding-top: var(--s-lg); align-self: flex-end; width: 20px; height: 20px; fill: var(--blue); }
.tile__num { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-bottom: var(--s-lg); }

.media-tile { padding: 0; }
.media-tile__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark-2); }
.media-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,0,.38,.9); }
a.media-tile:hover .media-tile__img img { transform: scale(1.04); }
.media-tile__body { padding: var(--s-lg); display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
  font-size: 12px; letter-spacing: .32px; border-radius: 24px;
  background: #d0e2ff; color: #0043ce; margin-bottom: var(--s-sm); align-self: flex-start;
}
.tag--gray { background: var(--rule); color: var(--text); }

/* ---------- Split / feature ---------- */
.split { display: grid; gap: var(--s-xl); align-items: center; }
@media (min-width: 1056px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-section); }
  .split--rev > :first-child { order: 2; }
}
.split__media { position: relative; }
.split__media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.split__media .badge {
  position: absolute; left: 0; bottom: 0; background: var(--blue); color: #fff;
  padding: var(--s-md) var(--s-lg); font-size: 14px;
}
.split__media .badge b { display: block; font-size: 32px; font-weight: 300; line-height: 1.1; }
.split__copy .h2 { margin: var(--s-md) 0 var(--s-lg); }
.split__copy .lead { margin-bottom: var(--s-xl); }

/* ---------- Lists ---------- */
.checklist { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.checklist li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.checklist svg { flex: none; width: 20px; height: 20px; fill: var(--blue); margin-top: 2px; }
.section--dark .checklist, .section--dark .checklist li { border-color: var(--dark-3); }
.section--dark .checklist svg { fill: #78a9ff; }
@media (min-width: 672px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-xl); } }
@media (min-width: 1056px) { .checklist--3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-xl); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 8px 14px; background: var(--layer); border: 1px solid var(--rule); font-size: 14px; }
.section--layer .chips li { background: var(--bg); }

/* Numbered steps */
.steps { display: grid; gap: 1px; background: var(--dark-3); list-style: none; counter-reset: step; }
@media (min-width: 672px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1056px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--dark); padding: var(--s-lg); counter-increment: step; min-height: 180px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); color: #78a9ff; font-size: 14px; margin-bottom: var(--s-lg); }
.steps h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.steps p { font-size: 14px; color: var(--dark-muted); line-height: 1.6; }

/* ---------- Data table ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th { background: var(--rule); font-weight: 600; }
.spec td:first-child { color: var(--text-muted); width: 38%; }

/* ---------- Course card ---------- */
.course { display: grid; background: var(--bg); border: 1px solid var(--rule); }
@media (min-width: 1056px) { .course { grid-template-columns: 1.3fr 1fr; } }
.course__main { padding: var(--s-xl); }
.course__main .h2 { margin: var(--s-sm) 0 var(--s-md); }
.course__side { background: var(--layer); padding: var(--s-xl); display: flex; flex-direction: column; gap: var(--s-lg); }
.price { font-size: 40px; font-weight: 300; line-height: 1; }
.price small { font-size: 14px; color: var(--text-muted); margin-left: 6px; }

/* ---------- Notice ---------- */
.notice {
  display: flex; gap: 12px; padding: 14px 16px;
  background: #edf5ff; border-left: 3px solid var(--blue); font-size: 14px; color: var(--text);
}
.notice svg { flex: none; width: 20px; height: 20px; fill: var(--blue); }
.notice--warn { background: #fcf4d6; border-color: #f1c21b; }
.notice--warn svg { fill: #8e6a00; }

/* ---------- Tabs (FAQ) ---------- */
.tabs { display: flex; overflow-x: auto; margin-bottom: var(--s-xl); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; height: 48px; padding: 0 16px; min-width: 140px;
  background: var(--layer); border: 0; border-left: 1px solid var(--border);
  border-top: 2px solid transparent;
  font-size: 14px; letter-spacing: .16px; color: var(--text-muted); cursor: pointer; text-align: left;
}
.tab:first-child { border-left: 0; }
.tab:hover { background: var(--layer-hover); color: var(--text); }
.tab[aria-selected="true"] { background: var(--bg); color: var(--text); font-weight: 600; border-top-color: var(--blue); }
.section--layer .tab[aria-selected="true"] { background: var(--bg); }
.tabpanel[hidden] { display: none; }

/* ---------- Accordion ---------- */
.accordion { border-bottom: 1px solid var(--rule); }
.accordion details { border-top: 1px solid var(--rule); }
.accordion summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 12px 16px; cursor: pointer; font-size: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--layer-hover); }
.accordion summary svg { flex: none; width: 16px; height: 16px; fill: var(--text); transition: transform .15s; }
.accordion details[open] summary svg { transform: rotate(180deg); }
.accordion .answer { padding: 0 16px 24px; color: var(--text-muted); max-width: 48em; line-height: 1.7; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-lg); }
.form-row { display: grid; gap: var(--s-lg); }
@media (min-width: 672px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .field__label, fieldset > legend {
  font-size: 12px; line-height: 16px; letter-spacing: .32px; color: var(--text-muted);
}
.req { color: var(--error); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 16px;
  font: inherit; font-size: 14px; color: var(--text);
  background: var(--layer); border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0;
}
.section--layer .input, .section--layer .select, .section--layer .textarea { background: var(--bg); }
.textarea { height: auto; min-height: 140px; padding: 12px 16px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11 3 6l.7-.7L8 9.6l4.3-4.3.7.7z' fill='%23161616'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: -2px; }
.field__help { font-size: 12px; color: var(--text-faint); }
.field__error { font-size: 12px; color: var(--error); display: none; }
.field.has-error .field__error { display: block; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.4; padding: 4px 0; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--text); flex: none; }
.form-section { border-top: 1px solid var(--rule); padding-top: var(--s-xl); display: grid; gap: var(--s-lg); }
.form-section h2 { font-size: 20px; font-weight: 600; }
.form-status { display: none; }
.form-status.is-visible { display: flex; }

.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.role-switch label { position: relative; display: block; background: var(--bg); padding: var(--s-lg); cursor: pointer; }
.role-switch input { position: absolute; opacity: 0; }
.role-switch strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.role-switch span.muted { font-size: 14px; }
.role-switch label:hover { background: var(--layer-hover); }
.role-switch label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue); background: #edf5ff; }
.role-switch input:focus-visible + strong { outline: 2px solid var(--blue); }
.role-block[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-2xl); }
@media (min-width: 1056px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: var(--s-section); } }
.info-list { list-style: none; border-top: 1px solid var(--rule); }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.info-list svg { width: 20px; height: 20px; fill: var(--blue); margin-top: 2px; }
.info-list .label { margin-bottom: 4px; }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; filter: grayscale(1) contrast(1.05); display: block; margin-top: var(--s-xl); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; }
.cta-band .container { display: grid; gap: var(--s-lg); padding-top: var(--s-section); padding-bottom: var(--s-section); }
@media (min-width: 1056px) { .cta-band .container { grid-template-columns: 1.5fr 1fr; align-items: center; } }
.cta-band .h2 { font-weight: 300; }
.cta-band p { color: #d0e2ff; margin-top: 12px; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 1056px) { .cta-band .btn-row { justify-content: flex-end; } }
.cta-band .btn--primary { background: #fff; color: var(--blue); }
.cta-band .btn--primary:hover { background: #e8e8e8; }
.cta-band .btn--tertiary { color: #fff; border-color: #fff; }
.cta-band .btn--tertiary:hover { background: #fff; color: var(--blue); }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 672px) { .certs { grid-template-columns: repeat(4, 1fr); } }
.cert { background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: var(--s-lg); min-height: 160px; text-align: center; }
.cert img { height: 72px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.cert:hover img { filter: none; opacity: 1; }
.cert span { font-size: 12px; letter-spacing: .32px; color: var(--text-muted); }

/* ---------- Blog ---------- */
.post-meta { font-size: 12px; letter-spacing: .32px; color: var(--text-faint); margin-top: auto; padding-top: var(--s-lg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); font-size: 14px; }
.footer-top { display: grid; gap: var(--s-xl); padding: var(--s-section) 0 var(--s-2xl); }
@media (min-width: 672px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1056px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 44px; width: auto; filter: invert(1); margin-bottom: var(--s-md); }
.footer-brand p { max-width: 26em; line-height: 1.7; }
.site-footer h2 { font-size: 12px; letter-spacing: .32px; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: var(--s-md); }
.site-footer ul { list-style: none; display: grid; gap: 0; }
.site-footer li { padding: 2px 0; }
.site-footer li a { display: inline-block; padding: 8px 0; }
.site-footer a { color: var(--dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 1px; margin-top: var(--s-lg); }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--dark-2); }
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid var(--dark-2); padding: var(--s-lg) 0; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 12px; color: #8d8d8d; }

/* ---------- Utilities ---------- */
.mt-lg { margin-top: var(--s-lg); }
.mt-xl { margin-top: var(--s-xl); }
.mt-2xl { margin-top: var(--s-2xl); }
.mb-lg { margin-bottom: var(--s-lg); }
.grid-2 { display: grid; gap: var(--s-xl); }
@media (min-width: 1056px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-section); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reveal on scroll (progressive) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s cubic-bezier(.2,0,.38,.9), transform .5s cubic-bezier(.2,0,.38,.9); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   Mobile refinements (< 672px)
   ========================================================= */
@media (max-width: 671px) {
  /* iOS zooms into inputs below 16px — keep them at 16px */
  .input, .select, .textarea { font-size: 16px; height: 48px; }
  .textarea { height: auto; }

  /* Content-sized tiles and steps instead of fixed minimums */
  .tile { min-height: 0 !important; padding: 20px; }
  .tile__arrow { padding-top: 16px; }
  .steps li { min-height: 0; padding: 20px; }
  .steps li::before { margin-bottom: 12px; }

  /* Text-only tiles sit two per row */
  .tiles--compact { grid-template-columns: 1fr 1fr; }
  .tiles--compact .tile .h3 { font-size: 16px; }

  /* FAQ tabs: 2 × 2 grid so every tab is visible */
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); overflow: visible; }
  .tab { min-width: 0; border-left: 0; }
  .accordion summary { padding: 14px 12px; min-height: 52px; }
  .accordion .answer { padding: 0 12px 20px; }

  /* Footer: link lists side by side, bigger tap targets */
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-xl) var(--s-md); padding-top: var(--s-2xl); }
  .footer-brand, .footer-top > div:last-child { grid-column: 1 / -1; }
  .footer-social a { width: 44px; height: 44px; }

  /* Buttons fill the width when stacked */
  .hero .btn-row, .cta-band .btn-row, .course__side .btn { width: 100%; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 100%; }

  .page-head { padding: var(--s-xl) 0 var(--s-2xl); }
  .map { aspect-ratio: 4 / 3; }
}

/* ---------- Two audience paths ---------- */
.paths { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 1056px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { display: flex; flex-direction: column; gap: var(--s-lg); padding: var(--s-xl) var(--s-lg); background: var(--layer); }
@media (min-width: 672px) { .path { padding: var(--s-2xl); } }
.path .checklist { margin-bottom: var(--s-md); }
.path .btn-row { margin-top: auto; }
.path--career { background: var(--blue); color: #fff; }
.path--career .lead { color: #d0e2ff; }
.path--career .checklist, .path--career .checklist li { border-color: rgba(255,255,255,.25); }
.path--career .checklist svg { fill: #fff; }
.path--career .btn--primary { background: #fff; color: var(--blue); }
.path--career .btn--primary:hover { background: #e8e8e8; }
.path--career .btn--tertiary { color: #fff; border-color: #fff; }
.path--career .btn--tertiary:hover { background: #fff; color: var(--blue); }
.path--career .btn--ghost { color: #fff; }
.path--career .btn--ghost:hover { background: rgba(255,255,255,.12); }
.tile .price { font-size: 32px; }
@media (max-width: 671px) {
  .path .btn-row .btn { flex: 1 1 100%; }
}
.hero .display { font-size: clamp(36px, 4.2vw, 56px); }
