/* css/home.css
   Home: hero, metrics, service cards/lens, diagnosis, purpose/program/case/campus/partner/CTA.
   Split from styles.css (Phase 4, boundary-corrected); linked in source order to preserve the cascade. */
.hero {
  padding: 80px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 80px;
  align-items: center;
}

/* 시안대로 두 줄. 64px 고정이면 컬럼 폭을 넘겨 네 줄로 접히고 히어로가 그만큼
   높아진다. 폭에 따라 줄어드는 clamp + 줄마다 nowrap 으로 두 줄을 유지한다. */
.hero h1 {
  margin: 26px 0;
  font-size: clamp(32px, 3.05vw, 44px);
  line-height: 1.24;
}

.hero-title__line {
  display: block;
  white-space: nowrap;
}

.hero-title__line--accent {
  color: var(--brand);
  font-family: var(--font-sans);
  font-weight: 700;
}

.hero-copy {
  max-width: 580px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.hero-copy strong {
  font-weight: 700;
  color: var(--ink);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .button-row {
  margin: 36px 0 52px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 22px 26px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform-origin: left bottom;
  transition: opacity 240ms ease, transform 240ms ease;
}

.metric strong.is-waiting {
  opacity: 0.25;
  transform: translateY(8px);
}

.metric strong.is-counting,
.metric strong.is-complete {
  opacity: 1;
  transform: translateY(0);
}

.metric span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.metric small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.visual-wrap {
  position: relative;
  display: grid;
  gap: 16px;
}

.visual-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, transparent 49%, var(--line) 50%, transparent 51%),
    var(--surface-2);
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
}

.visual-slot--image {
  background: var(--ink);
}

.visual-slot img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.visual-slot--hero img {
  position: absolute;
  inset: 0;
}

.visual-slot--hero {
  aspect-ratio: 4 / 5;
  min-height: auto;
}

.visual-slot--wide {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.visual-slot span {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-note {
  position: static;
  justify-self: end;
  width: min(100%, 320px);
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.floating-note:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.floating-note strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.45;
}

.floating-note small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.micro-strip {
  margin-top: 62px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
}

.section-title {
  margin-bottom: 52px;
}

.section-title h2 {
  margin-top: 18px;
  font-size: 48px;
}

.section-title p {
  margin-top: 18px;
  max-width: 660px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 46px;
}

.title-row h2 {
  margin-top: 18px;
  font-size: 48px;
}

.title-row h2 span,
.section-title h2 span {
  color: var(--brand);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.service-card__icon {
  position: absolute;
  right: 28px;
  bottom: 82px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(31, 59, 51, 0.05);
  color: var(--brand);
  opacity: 0.5;
  pointer-events: none;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.service-card__icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:nth-last-child(-n + 2) {
  grid-column: span 6;
}

.service-card:hover {
  transform: translateY(-2px);
  color: var(--cream);
  background: var(--ink);
}

.service-card:hover .service-card__icon {
  background: rgba(168, 139, 91, 0.12);
  color: var(--accent);
  opacity: 0.72;
  transform: translateY(-2px);
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-sans);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 600;
}

.service-card__top-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.service-card:hover .service-card__top,
.service-card:hover p,
.service-card:hover small,
.service-card:hover li {
  color: var(--cream);
}

.soon-badge,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
}

.service-card:hover .soon-badge {
  background: var(--accent);
  color: var(--ink);
}

.service-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 34px;
  padding-right: min(112px, 24%);
}

.service-card small {
  display: block;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
}

.service-card h3 {
  margin-top: 8px;
  font-size: 25px;
}

.service-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 20px 0 0;
}

.service-card li {
  color: var(--ink-2);
  font-size: 13px;
}

.service-card li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 3px;
}

.service-card__more {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(186, 182, 166, 0.45);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  [data-reveal],
  .field-gallery__item img,
  .axis-step,
  .service-lens__tab,
  .diagnosis-option,
  .case-strip,
  .service-output-item img,
  .service-process-step {
    animation: none !important;
    transition: none !important;
  }
}

.service-lens {
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  /* 행 높이를 카드 높이에 고정. 이게 없으면 암묵적 행이 auto라, 활성 패널
     콘텐츠(예: 경영·교육 탭의 태그 여러 줄 + 온라인 캠퍼스 강의 목록)가 581px를
     넘으면 행이 그 높이까지 늘어난다. 그럼 탭 컬럼도 같이 늘어 1fr 6등분이
     커지고(96→127px), overflow:hidden 카드에 5~6번 탭이 잘려 5개로 보였다. */
  grid-template-rows: minmax(0, 1fr);
  height: 581px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* 탭 6개를 카드 높이(581px)에 균등 분배. 예전엔 탭마다 min-height:96px 였는데
   96×6 + gap 5 = 581 로 고정 높이와 딱 맞아, 폰트/줌 차이로 몇 px만 넘쳐도
   마지막 탭(헤드헌팅)이 overflow:hidden 에 잘려 5개만 보였다. */
.service-lens__tabs {
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 1px;
  background: var(--line);
  border-right: 1px solid var(--line);
}

.service-lens__tab {
  min-height: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface-2);
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.service-lens__tab.is-active {
  background: var(--ink);
  color: var(--cream);
}

.service-lens__tab-no {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}

.service-lens__tab.is-active .service-lens__tab-no {
  border-color: var(--accent);
  color: var(--accent);
}

.service-lens__tab strong,
.service-lens__tab small {
  display: block;
}

.service-lens__tab strong {
  font-size: 15px;
  line-height: 1.35;
}

.service-lens__tab small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
}

.service-lens__tab.is-active small {
  color: #cfc8b9;
}

.service-lens__stage {
  min-width: 0;
  /* 행 고정과 함께, 키 큰 패널 콘텐츠가 스테이지 밖으로 카드 행을 밀지 않도록 클립 */
  min-height: 0;
  overflow: hidden;
}

.service-lens__panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
}

.service-lens__panel:not(.is-active) {
  display: none;
}

.service-lens__media {
  position: relative;
  min-height: 100%;
  background: var(--ink);
}

.service-lens__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.service-lens__image img {
  filter: saturate(0.94) contrast(1.02);
}

.service-lens__panel[data-service-panel="service-onboarding"] .service-lens__media,
.service-lens__panel[data-service-panel="service-onboarding"] .service-lens__image {
  background: var(--surface-2);
}

.service-lens__panel[data-service-panel="service-onboarding"] .service-lens__image img {
  padding: 24px;
  object-fit: contain;
}

.service-lens__content {
  align-self: center;
  min-width: 0;
  padding: 48px;
}

.service-lens__content h3 {
  margin-top: 18px;
  font-size: 42px;
}

.service-lens__content p {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.service-lens__items {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 34px;
}

.service-lens__items span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.diagnosis-section {
  overflow: clip;
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 58px;
  align-items: start;
}

.diagnosis-copy {
  position: sticky;
  top: 120px;
}

.diagnosis-copy h2 {
  margin-top: 18px;
  font-size: 48px;
}

.diagnosis-copy h2 span {
  color: var(--brand);
}

.diagnosis-copy p {
  margin-top: 18px;
  max-width: 460px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.diagnosis-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.diagnosis-options {
  display: grid;
  gap: 10px;
}

.diagnosis-option {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.diagnosis-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.diagnosis-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand), var(--shadow-sm);
}

.diagnosis-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.diagnosis-option__check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface-2);
}

.diagnosis-option__check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.diagnosis-option input:checked + .diagnosis-option__check {
  border-color: var(--brand);
  background: var(--brand);
}

.diagnosis-option input:checked + .diagnosis-option__check::after {
  opacity: 1;
}

.diagnosis-option__body b,
.diagnosis-option__body strong,
.diagnosis-option__body small {
  display: block;
}

.diagnosis-option__body b {
  color: var(--brand-2);
  font-family: var(--font-sans);
  font-size: 11px;
}

.diagnosis-option__body strong {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.42;
}

.diagnosis-option__body small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.diagnosis-result {
  position: sticky;
  top: 120px;
  padding: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}

.diagnosis-result .eyebrow {
  color: var(--accent);
}

.diagnosis-result > strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
}

.diagnosis-result p {
  margin-top: 14px;
  color: #cfc8b9;
  font-size: 14px;
  line-height: 1.7;
}

.diagnosis-result__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.diagnosis-result__tags span {
  padding: 7px 9px;
  border: 1px solid #3d392f;
  border-radius: 4px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

/* 목적별 문의 — 이미지 카드 4장은 홈 하단에서 무겁다. 아이콘으로 가볍게 두고
   카드 전체를 버튼으로 만들어 상담 폼의 해당 고민이 선택된 채 열리게 한다. */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.purpose-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 212px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: inherit;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.purpose-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.purpose-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.purpose-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purpose-card strong {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.purpose-card__body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.purpose-card__cta {
  margin-top: auto;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}


.program-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: center;
}

.program-copy {
  max-width: 480px;
}

.program-copy h2 {
  margin-top: 18px;
  font-size: 46px;
  line-height: 1.18;
}

.program-copy h2 span {
  color: var(--brand);
}

.program-copy p {
  margin: 20px 0 28px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.program-card-stack {
  display: grid;
  gap: 14px;
}

.program-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.program-card.is-featured {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.program-card figure {
  margin: 0;
  background: var(--surface-2);
}

.program-card img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
}

.program-card div {
  padding: 22px;
}

.program-card small {
  color: var(--brand-2);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
}

.program-card h3 {
  margin: 8px 0 10px;
  font-size: 23px;
  line-height: 1.35;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.program-card button {
  margin-top: 16px;
  color: var(--brand);
  font-weight: 800;
}

.field-story-band {
  padding: 112px 0;
  background: #173238;
  color: var(--cream);
}

.field-story-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  align-items: center;
}

.field-story-copy .eyebrow {
  color: #d8c39d;
}

.field-story-copy h2 {
  margin-top: 20px;
  color: var(--cream);
  font-size: 48px;
}

.field-story-copy h2 span {
  color: #d8c39d;
}

.field-story-copy p {
  margin-top: 20px;
  max-width: 500px;
  color: #dce3df;
  font-size: 17px;
  line-height: 1.75;
}

.field-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-auto-rows: 178px;
  gap: 12px;
}

.field-gallery__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.field-gallery__item--large {
  grid-row: span 2;
}

.field-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.field-gallery__item:hover img {
  transform: scale(1.035);
}

.field-gallery__item span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #dce3df;
  font-family: var(--font-sans);
  font-size: 12px;
}

.field-gallery__item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(23, 23, 19, 0.72);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.problem-card {
  min-height: 218px;
  padding: 34px 30px;
  background: var(--surface);
}

.problem-card b {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12px;
}

.problem-card h3 {
  margin-top: 12px;
  font-size: 21px;
  line-height: 1.45;
}

.problem-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.55fr;
  gap: 64px;
  align-items: start;
}

.approach-copy {
  position: sticky;
  top: 120px;
}

.approach-copy h2 {
  margin: 18px 0 22px;
  font-size: 46px;
}

.approach-copy h2 span {
  color: var(--accent);
}

.approach-copy p {
  color: #cfc8b9;
  line-height: 1.75;
}

.axis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #343128;
}

.axis-card {
  min-height: 260px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

.axis-card b {
  color: var(--accent);
  font-family: var(--font-sans);
}

.axis-card div {
  margin-top: auto;
}

.axis-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.axis-card h3 {
  font-size: 25px;
}

.axis-card p {
  margin-top: 12px;
  color: #cfc8b9;
  font-size: 14px;
  line-height: 1.7;
}

.axis-flow {
  position: relative;
  display: grid;
  gap: 16px;
}

.axis-flow::before {
  display: none;
}

.axis-step {
  position: relative;
  display: grid;
  grid-template-columns: 76px 118px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-height: 150px;
  padding: 26px 28px;
  border: 1px solid #343128;
  border-radius: 8px;
  background: #10100d;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.axis-step::before {
  display: none;
}

.axis-step.is-active {
  border-color: rgba(168, 139, 91, 0.74);
  background: #17140f;
  transform: translateX(8px);
}

.axis-step.is-active::before {
  display: none;
}

.axis-step b {
  position: static;
  z-index: auto;
  width: auto;
  height: auto;
  display: block;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
}

.axis-step.is-active b {
  color: var(--accent);
}

.axis-step > span {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

.axis-step h3 {
  color: var(--cream);
  font-size: 26px;
}

.axis-step p {
  margin-top: 10px;
  color: #cfc8b9;
  font-size: 14px;
  line-height: 1.72;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.case-card__body {
  padding: 22px 24px 26px;
}

.case-card h3 {
  margin-top: 14px;
  font-size: 21px;
}

.case-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.case-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.case-feature {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.case-feature__visual {
  min-height: 300px;
  border: 0;
  border-radius: 0;
}

.case-feature__body {
  padding: 34px;
}

.case-feature__meta {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
}

.case-feature__body h3 {
  margin-top: 18px;
  max-width: 620px;
  font-size: 34px;
}

.case-feature__body p {
  margin: 14px 0 26px;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.case-stack {
  display: grid;
  gap: 10px;
}

.case-strip {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.case-strip:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.case-strip > span {
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
}

.case-strip b {
  color: var(--brand-2);
  font-size: 12px;
}

.case-strip h3 {
  margin-top: 7px;
  font-size: 21px;
  line-height: 1.38;
}

.case-strip p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.campus-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 70px;
  border-radius: 8px;
  background: var(--cream);
}

.campus-panel h2 {
  margin-top: 18px;
  font-size: 42px;
}

.campus-panel h2 span {
  color: var(--brand);
}

.campus-panel p {
  margin-top: 18px;
  color: var(--ink-2);
  line-height: 1.75;
}

.campus-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0;
}

.campus-stats b {
  display: block;
  font-family: var(--font-sans);
  font-size: 31px;
}

.campus-stats span {
  color: var(--muted);
  font-size: 13px;
}

.class-list {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.class-list__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
}

.class-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.class-item:last-child {
  border-bottom: 0;
}

.class-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--surface-2);
  background-position: center;
  background-size: cover;
}

.class-item small {
  color: var(--brand-2);
  font-family: var(--font-sans);
  font-size: 10px;
}

.class-item strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.class-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* 협력기관: 홈 섹션 → 푸터 띠. 로고만 흐르므로 큰 제목 대신 작은 라벨을 둔다. */
.footer-partners {
  display: grid;
  gap: 14px;
  padding: 26px 0;
  border-top: 1px solid rgba(235, 231, 220, 0.14);
}

.footer-partners__label {
  color: #cfc8b9;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}

.partner-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.partner-marquee__track {
  width: max-content;
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  animation: partnerMarquee 48s linear infinite;
}

.partner-marquee:hover .partner-marquee__track {
  animation-play-state: paused;
}

.partner-marquee__group {
  display: flex;
  flex: 0 0 auto;
}

.partner-logo-only {
  width: clamp(172px, 16vw, 238px);
  flex: 0 0 clamp(172px, 16vw, 238px);
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  background: transparent;
  transition: background 0.16s ease, opacity 0.16s ease;
}

.partner-logo-only:hover {
  background: transparent;
}

.partner-logo-only.is-disabled {
  opacity: 0.48;
}

.partner-logo-only__mark {
  width: 100%;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.partner-logo-only__mark img {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.partner-logo-only__mark span {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 푸터(다크) 위에서는 구분선과 텍스트 폴백 색을 뒤집는다. 로고 이미지가
   없는 협력기관은 이름이 그대로 뜨는데, 기본색(--ink)이면 보이지 않는다. */
.footer-partners .partner-logo-only {
  min-height: 72px;
  padding: 12px 20px;
  border-right-color: rgba(235, 231, 220, 0.16);
}

.footer-partners .partner-logo-only__mark {
  height: 40px;
}

.footer-partners .partner-logo-only__mark img {
  max-height: 40px;
}

.footer-partners .partner-logo-only__mark span {
  color: #cfc8b9;
  font-size: 13px;
  font-weight: 700;
}

@keyframes partnerMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-marquee {
    overflow: hidden;
  }

  .partner-marquee__track {
    -webkit-mask-image: none;
    mask-image: none;
    animation: none;
  }

  .partner-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .partner-logo-only {
    flex: 1 1 176px;
  }
}

.headhunt-band {
  padding: 116px 0;
  background: var(--ink);
  color: var(--cream);
}

.headhunt-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: center;
}

.headhunt-grid h2 {
  margin: 26px 0 26px;
  color: var(--cream);
  font-size: 64px;
  line-height: 1.12;
}

.headhunt-grid h2 span {
  color: var(--accent);
}

.headhunt-grid p {
  max-width: 650px;
  color: #cfc8b9;
  font-size: 17px;
  line-height: 1.75;
}

.headhunt-card {
  position: relative;
  padding: 28px;
  border: 1px solid #343128;
  border-radius: 8px;
  background: #10100d;
}

.headhunt-card h3 {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12px;
}

.headhunt-card ul {
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
}

.headhunt-card li {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #26241f;
  color: var(--cream);
}

.headhunt-card li:last-child {
  border-bottom: 0;
}

.headhunt-card span {
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 12px;
}

/* Founder (대표) — 사례 직후 '사람' 비트. section-dark 위 2단 그리드.
   다크 섹션 텍스트 색 규칙(h2=cream, span=accent, 본문=#cfc8b9)을 headhunt와 맞춘다. */
.founder-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  column-gap: 56px;
  row-gap: 28px;
  align-items: start;
  grid-template-areas:
    "copy  media"
    "cta   media";
}

.founder-copy { grid-area: copy; }
.founder-cta { grid-area: cta; }

.founder-media {
  grid-area: media;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-copy h2 {
  margin: 24px 0 22px;
  color: var(--cream);
  font-size: 44px;
  line-height: 1.18;
}

.founder-copy h2 span {
  color: var(--accent);
}

.founder-copy p {
  max-width: 560px;
  color: #cfc8b9;
  font-size: 17px;
  line-height: 1.8;
}

.founder-cta .btn-outline {
  color: var(--cream);
  border-color: #4a453a;
}

.founder-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  text-align: center;
}

.founder-id strong {
  color: var(--cream);
  font-size: 20px;
}

.founder-id span {
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.founder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 4px;
}

.founder-badges span {
  padding: 7px 13px;
  border: 1px solid #4a453a;
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 12px;
}

.founder-photo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.founder-photo .visual-slot {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  min-height: 0;
}

/* 신뢰 지표(Trust) 밴드 — 라이트 섹션 위 브랜드 수치 카드. */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.trust-stat {
  min-width: 0;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.trust-stat b {
  display: block;
  color: var(--brand);
  font-size: clamp(26px, 8vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
}

.final-cta {
  padding: 110px 0;
  text-align: center;
}

.final-cta--image {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(17, 20, 17, 0.88), rgba(17, 20, 17, 0.58)),
    var(--cta-image);
  background-position: center;
  background-size: cover;
  color: var(--cream);
}

.final-cta--image .eyebrow {
  color: var(--accent);
}

.final-cta--dark {
  background: var(--ink);
  color: var(--cream);
}

.final-cta--dark .eyebrow {
  color: var(--accent);
}

.final-cta h2 {
  margin: 22px auto;
  max-width: 860px;
  font-size: 58px;
}

.final-cta h2 span {
  color: var(--brand);
}

.final-cta--image h2,
.final-cta--image h2 span {
  color: var(--cream);
}

.final-cta--image h2 span {
  color: #d8c39d;
}

.final-cta p {
  max-width: 660px;
  margin: 0 auto 36px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.final-cta--image p {
  color: #e4ded0;
}

/* .final-cta--dark 는 클래스 하나라 .final-cta 와 특정도가 같다 — 색 규칙은
   반드시 기본 규칙 뒤에 와야 이긴다(--image 가 같은 이유로 여기 있다). */
.final-cta--dark h2,
.final-cta--dark h2 span {
  color: var(--cream);
}

.final-cta--dark h2 span {
  color: #d8c39d;
}

.final-cta--dark p {
  color: #cfc8b9;
}

.contact-strip {
  display: inline-flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 12px;
}

.final-cta--image .contact-strip {
  border-color: rgba(235, 231, 220, 0.22);
  background: rgba(23, 23, 19, 0.42);
  color: var(--cream);
  backdrop-filter: blur(10px);
}

/* ── 시안 홈: 방문자 분기 카드 (수강생 / 병원) ───────────────────────── */
.home-branch-section {
  padding-top: 0;
}

.home-branch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-branch__card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-branch__card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.home-branch__card > span {
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-branch__card strong {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

.home-branch__card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-branch__card em {
  margin-top: 6px;
  color: var(--brand);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

/* ── 시안 홈: 컨설팅 영역 5개 카드 (6탭 렌즈를 대체) ─────────────────── */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.practice-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.practice-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.practice-card__no {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}

.practice-card strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.practice-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
