/* ============================================================
   GraddyEdu Research Lab — 브로슈어 기반 스타일
   ============================================================ */

:root {
  /* 버건디 스케일 — 어두운 순 */
  --plum-900:   #2E0B15;   /* 다크 섹션 배경 · 제목 */
  --plum-800:   #4A0D19;
  --plum-700:   #5F1723;   /* 다크 위 아이콘 칩 */
  --wine-deep:  #5C0F1B;
  --wine:       #791020;   /* 브랜드 딥레드 */
  --wine-light: #9A1A2C;
  --garnet:     #8E1626;
  --ruby:       #A3212F;
  --berry:      #B33A4A;
  --blush:      #E9B4BC;   /* 다크 배경 위 포인트 */

  --ink:        #2A121A;
  --muted:      #8A7076;
  --line:       #EEE0E3;
  --tint:       #FBF6F7;
  --tint-2:     #F7EAEC;
  --white:      #FFFFFF;

  --grad:       linear-gradient(270deg, #9A1A2C 0%, #2E0B15 100%);

  --wrap:       1180px;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 18px 40px -24px rgba(46, 11, 21, .3);
  --shadow-lg:  0 30px 70px -30px rgba(46, 11, 21, .4);

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 600; }
button { font: inherit; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--plum-900); color: #fff; padding: 10px 18px;
}
.skip:focus { left: 12px; top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* ── 헤더 ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
/* 배경/블러는 가상요소에 둡니다 — 헤더 자신에 backdrop-filter 를 주면
   자식의 position:fixed 기준이 헤더 박스가 되어 우측 드로어가 잘립니다 */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  transition: opacity .3s ease;
}

/* 최상단(스크롤 전): 히어로 위에 투명하게 얹힘 */
.site-header.is-top::before { opacity: 0; }
.site-header.is-top .nav a,
.site-header.is-top .nav-toggle { color: #fff; }
.site-header.is-top .nav a::after { background: #fff; }
.site-header.is-top .nav-toggle:hover { background: rgba(255, 255, 255, .14); }
.site-header.is-top .brand-mark img.brand-logo { display: none; }
.site-header.is-top .brand-mark img.brand-logo-white { display: block; }
.site-header.is-top .nav .nav-cta { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); }
.site-header.is-top .nav .nav-cta:hover { background: rgba(255, 255, 255, .28); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }

/* 로고 — 배경이 어두운 최상단에서는 화이트 버전으로 교체 */
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img { width: clamp(150px, 13vw, 192px); height: auto; display: block; }
/* .brand-mark img 보다 구체적이어야 숨김이 먹습니다 */
.brand-mark img.brand-logo-white { display: none; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--plum-900); position: relative; padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--wine); transition: right .25s ease;
}
.nav a:hover::after { right: 0; }

.nav .nav-cta {
  background: var(--wine); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 14px; transition: background .2s, transform .2s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--wine-light); transform: translateY(-1px); }

.nav-toggle {
  display: none; position: relative; z-index: 2;
  background: none; border: 0; color: var(--plum-900);
  padding: 8px; cursor: pointer; border-radius: 10px;
}
.nav-toggle:hover { background: var(--tint); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-scrim { display: none; }

/* ── 히어로 ───────────────────────────────────────────── */
.hero { position: relative; color: #fff; isolation: isolate; padding-top: 72px; padding-bottom: 86px; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img,
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
/* 작은 파일을 크게 늘려 쓰므로 살짝 흐려 거칠음을 감춥니다 */
.hero-media video { filter: blur(2px); transform: scale(1.04); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgba(36, 8, 16, .94) 0%, rgba(60, 12, 24, .88) 45%, rgba(121, 16, 32, .86) 100%);
}

.hero-inner {
  /* 아래쪽은 로고 띠가 자리를 차지하므로 조금 줄입니다 */
  padding: clamp(56px, 9vh, 104px) 0 clamp(36px, 5.5vh, 64px);
  max-width: 900px; margin-inline: auto; text-align: center;
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .13em; color: var(--wine);
  text-transform: uppercase; margin-bottom: 6px;
}
.eyebrow-light { color: #F0D2D8; }

.hero-title {
  display: grid;                     /* 두 문구를 같은 칸에 겹쳐 높이 흔들림 방지 */
  /* 영문 : 한글 = 1 : 0.735 — 한글 글자가 더 크게 보이는 만큼 낮춰 시각 크기를 맞춥니다 */
  --title: clamp(38px, 13.8vw, 84px);
  font-size: var(--title);
  line-height: 1.0; font-weight: 700; letter-spacing: -.03em;
  margin: 6px 0 0;
}
.title-slide {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.16, .84, .44, 1),
              transform .8s cubic-bezier(.16, .84, .44, 1);
}
.title-slide.is-active { opacity: 1; transform: none; }
.title-ko {
  font-size: calc(var(--title) * 0.735);
  line-height: 1.26; letter-spacing: -.03em;
  align-self: center;
}
.hero-title::after {
  content: ''; display: block; width: 96px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .85); margin: 30px auto 0;
}

.hero-lead {
  font-size: clamp(19px, 2.6vw, 26px); font-weight: 500; line-height: 1.35;
  margin-top: 26px; color: #F7E8EA;
}
.hero-lead strong { color: #fff; font-weight: 700; }

.hero-desc {
  display: grid;                     /* 두 문구를 같은 칸에 겹침 */
  margin: 16px auto 0; color: #DCBAC1; font-size: 16.5px; line-height: 1.5; max-width: 52ch;
}
.desc-slide {
  grid-area: 1 / 1; align-self: start;
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s cubic-bezier(.16, .84, .44, 1),
              transform .8s cubic-bezier(.16, .84, .44, 1);
}
.desc-slide.is-active { opacity: 1; transform: none; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.badge {
  /* (현재 히어로에서 미사용 — 배지를 되살릴 때 이 스타일을 그대로 씁니다)
     글래스: backdrop-filter 미지원 브라우저에서는 아래 반투명 배경만 적용됩니다 */
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28),
              0 10px 26px -18px rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  padding: 10px 17px; border-radius: 10px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.badge-accent {
  background: rgba(233, 180, 188, .26);
  border-color: rgba(233, 180, 188, .6);
  color: #FCEDEF;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .badge {
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
  }
  .badge-accent { background: rgba(233, 180, 188, .24); border-color: rgba(233, 180, 188, .62); }
}


.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.hero-actions .btn { min-width: 12.5em; }   /* 두 버튼 너비 통일 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-light); }
.btn-white { background: #fff; color: var(--plum-900); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .55); }
.btn-white:hover { background: #fff; }
.btn-arrow { transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-block { width: 100%; }
.form .btn { border-radius: 0; }   /* 상담 신청하기 — 각진 버튼 */

/* ── 지표 밴드(카운트업) ──────────────────────────────── */
.stats { background: var(--tint); border-bottom: 1px solid var(--line); }
.stats-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: clamp(44px, 6vw, 74px) 0; text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1;
  letter-spacing: -.03em; color: var(--plum-900);
  font-variant-numeric: tabular-nums;
}
.stat-num em { font-style: normal; font-size: .46em; margin-left: 4px; color: var(--wine); }
.stat-label { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

/* ── 섹션 공통 ────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--plum-900); color: #fff; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head-center {
  max-width: 740px; margin-inline: auto; margin-bottom: 56px; text-align: center;
}

.h2 {
  font-size: clamp(29px, 4.6vw, 52px); font-weight: 700; line-height: 1.18;
  letter-spacing: -.03em; color: var(--plum-900);
}
.h2-light { color: #fff; }
.h2 .accent { color: var(--wine); }

/* 강조 단어에 옅은 주황 그라데이션이 지나가며 글씨가 써지는 효과.
   background-clip:text 를 못 쓰거나 JS 가 없으면 그냥 딥레드로 보입니다. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .js .h2 .accent {
    color: transparent;
    /* 아직 안 지나간 부분은 아주 옅은 회색으로 미리 보이고,
       옅은 주황이 지나가며 딥레드로 덮입니다 */
    background-image: linear-gradient(100deg,
      #E7E0E2 0%, #E7E0E2 20%,
      #F6C79A 30%, #E8964F 37%,
      var(--wine) 50%, var(--wine) 100%);
    background-size: 320% 100%;
    /* --w(0→1)는 main.js 가 스크롤 위치로 갱신합니다 */
    background-position: calc(var(--w, 0) * 100%) 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text;
  }
  /* 숫자(오도미터)를 품은 강조는 클리핑 대상이 될 수 없어 제외합니다 */
  .js .h2 .accent.accent-static {
    color: var(--wine); -webkit-text-fill-color: var(--wine);
    background-image: none;
  }
}
.h2 .accent-light { color: var(--blush); }

.h3 {
  font-size: 19px; font-weight: 700; color: var(--plum-900); margin-bottom: 14px;
}

.lead { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.lead-light { color: #DCBAC1; }

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

/* ── 이미지 캡션 카드 ─────────────────────────────────── */
.figure { position: relative; margin: 0; border-radius: 0; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.figure img { width: 100%; height: 230px; object-fit: cover; }
.figure-tall img { height: 100%; min-height: 380px; }
.figure figcaption {
  /* 이미지 상단에 얹히는 반투명 띠 */
  position: absolute; top: 0; left: 0; right: 0;
  background: rgba(46, 11, 21, .7); color: #fff;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .07em; padding: 13px 16px;
}

/* ── 목록 ─────────────────────────────────────────────── */
.list-block + .list-block { margin-top: 32px; }

.dot-list li {
  position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.45;
  color: var(--ink);
}
.dot-list li + li { margin-top: 8px; }
.dot-list li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 2px;
}
.dot-wine li::before  { background: var(--garnet); }
.dot-berry li::before { background: var(--berry); }
.two-col { columns: 2; column-gap: 32px; }
.two-col li { break-inside: avoid; }

.deliverables {
  margin-top: 34px; background: var(--plum-900); color: #fff;
  border-radius: 0; padding: 22px 24px;
}
.deliverables-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--blush);
  margin-bottom: 12px;
}
.deliverables ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.deliverables li {
  display: flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 600;
}
.deliverables .icon { color: var(--blush); }

/* ── 제공 서비스 ──────────────────────────────────────── */
.services { background: var(--tint); padding-top: clamp(56px, 7vw, 92px); }

/* 좌우로 선이 뻗는 가운데 라벨 */
.rule-label {
  display: flex; align-items: center; gap: 22px;
  margin-bottom: clamp(34px, 4vw, 52px);
  font-size: 17px; font-weight: 700; letter-spacing: .14em;
  color: var(--wine); text-transform: uppercase; white-space: nowrap;
}
.rule-label::before, .rule-label::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.program {
  text-align: center; padding: 0 clamp(14px, 2vw, 28px) 44px;
}
.program + .program { border-left: 1px solid var(--line); }

/* 엠블럼 안에 주제 심볼을 얹습니다 */
.program-mark {
  position: relative; display: block;
  width: clamp(104px, 10.5vw, 142px);
  margin: 0 auto 24px;
}
.program-g { display: block; width: 100%; height: auto; }
.program-sym {
  position: absolute; left: 62%; top: 58%;
  width: 34%; transform: translate(-50%, -50%);
  color: var(--plum-900);
}
.program-sym svg { display: block; width: 100%; height: auto; }

.program h3 {
  font-size: clamp(15px, 1.35vw, 19px); font-weight: 700;
  letter-spacing: -.01em; color: var(--plum-900);
}
.program h3::after {
  content: ''; display: block; width: 34px; height: 2px;
  background: var(--wine); margin: 14px auto 0;
}
.program-tag {
  margin-top: 16px; font-size: 14.5px; color: var(--muted);
}

/* 버건디 띠 */
.service-band { background: var(--wine-deep); color: #fff; }
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(30px, 3.4vw, 44px) 0;
}
.service {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 4px clamp(14px, 1.8vw, 26px);
}
.service + .service { border-left: 1px solid rgba(255, 255, 255, .22); }
.service-icon { flex: none; width: 38px; color: #fff; }
.service-icon svg { display: block; width: 100%; height: auto; }
.service h3 {
  font-size: clamp(12.5px, 1.02vw, 15px); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.service p { font-size: 13.5px; color: #EBD2D7; line-height: 1.5; }

/* ── 차별점 ───────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 3.5vw, 44px);
  align-items: stretch;
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.card {
  background: #fff; border-radius: 0;
  padding: 30px 28px 34px; position: relative; overflow: hidden;
}
.card-icon {
  width: 46px; height: 46px; border-radius: 0; background: var(--tint-2);
  display: grid; place-items: center; color: var(--accent, var(--garnet));
  margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; font-weight: 700; color: var(--plum-900); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }

.accent-garnet { --accent: var(--garnet); }
.accent-berry  { --accent: var(--berry); }
.accent-ruby   { --accent: var(--ruby); }
.accent-plum   { --accent: var(--plum-900); }
.accent-wine   { --accent: var(--wine); }
.accent-deep   { --accent: var(--wine-deep); }
.accent-rose   { --accent: #C9707C; }
.accent-blush  { --accent: var(--blush); }

.banner {
  margin-top: 28px; background: var(--tint-2); border-radius: 0;
  padding: 24px 28px; display: flex; align-items: center; gap: 18px;
}
.banner-icon {
  width: 46px; height: 46px; border-radius: 0; background: #fff;
  display: grid; place-items: center; color: var(--garnet); flex: none;
}
.banner strong { display: block; font-size: 17px; color: var(--plum-900); }
.banner p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* ── 멘토 소개 ────────────────────────────────────────── */
.mentor-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 44px);
}
.mentor {
  position: relative; overflow: hidden;
  background: var(--tint); padding: clamp(28px, 3vw, 40px);
}
/* 서울대 엠블럼 워터마크 — 오른쪽으로 30%쯤 걸쳐 나가며 아주 옅게 */
.mentor-watermark {
  position: absolute; z-index: 0; top: 50%; right: -17%;
  width: 58%; transform: translateY(-50%);
  color: var(--wine); opacity: .07; pointer-events: none;
}
.mentor-watermark svg,
.mentor-watermark img { display: block; width: 100%; height: auto; }
/* 본문은 워터마크 위로 */
.mentor-role, .mentor-name, .mentor .dot-list, .mentor-label { position: relative; z-index: 1; }
/* 학력 / 주요 경력 구분 제목 */
.mentor-label {
  margin: 24px 0 10px; font-size: 14.5px; font-weight: 700;
  color: var(--plum-900); letter-spacing: -.01em;
}
.mentor-label:first-of-type { margin-top: 20px; }
.mentor-role {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--wine); text-transform: uppercase;
}
.mentor-role span { opacity: .5; margin: 0 2px; }
.mentor-name {
  font-size: clamp(24px, 2.4vw, 32px); font-weight: 700;
  letter-spacing: -.02em; color: var(--plum-900); margin-top: 6px;
}
.mentor-name::after {
  content: ''; display: block; width: 36px; height: 2px;
  background: var(--wine); margin: 18px 0 22px;
}
.mentor .dot-list li { font-size: 15.5px; }

/* ── 진행 과정 ────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--tint); border-radius: 0;
  padding: 26px 24px; display: flex; gap: 16px; align-items: flex-start;
}
.step-no {
  width: 42px; height: 42px; border-radius: 0; flex: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.step-body h3 { font-size: 17px; font-weight: 700; color: var(--plum-900); margin-bottom: 6px; }
.step-body p { font-size: 14.5px; color: var(--muted); }

/* ── 연구 분야(다크) ──────────────────────────────────── */
.area-list { display: grid; gap: 2px; }
.area-list li {
  display: flex; align-items: center;
  width: 100%; padding: 17px 22px; border-radius: 0;
  background: rgba(255, 255, 255, .05);
  font-size: 16px; font-weight: 500;
}

/* ── 슬롯머신 숫자 ────────────────────────────────────── */
/* 칸 높이(--od-h)를 창·숫자·이동거리에 똑같이 써야 어긋나지 않습니다 */
.odometer { --od-h: 1.16em; display: inline-flex; vertical-align: baseline; }
.od {
  display: inline-block; overflow: hidden;
  height: var(--od-h); line-height: var(--od-h);
  vertical-align: -.22em;   /* 옆 글자 baseline 에 맞춤 */
}
.od-strip {
  display: block;
  transform: translateY(0);
  transition: transform 1.9s cubic-bezier(.18, .86, .3, 1);
  transition-delay: calc(var(--i) * .16s);
}
.od-strip i {
  display: block; height: var(--od-h); line-height: var(--od-h);
  font-style: normal; text-align: center;
}
/* 0-9 두 바퀴(20칸)를 돈 뒤 목표 숫자에 정지 */
.odometer.is-rolled .od-strip { transform: translateY(calc((20 + var(--d)) * var(--od-h) * -1)); }

@media (prefers-reduced-motion: reduce) {
  .od-strip { transition: none; }
}

/* ── 갤러리 ───────────────────────────────────────────── */
/* ── 시설 슬라이드쇼 ──────────────────────────────────── */
.slideshow {
  position: relative; overflow: hidden;
  /* aspect-ratio + max-height 를 같이 쓰면 높이가 잘릴 때 너비도 같이 줄어듭니다.
     높이를 직접 지정해 항상 가로 전체를 채우도록 합니다. */
  width: 100%; height: clamp(360px, 54vh, 560px);
  background: var(--tint-2); box-shadow: var(--shadow);
}
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
/* 장비명 — 아래쪽 그라데이션 딤 위에 흰 글씨, 전환할 때 아래에서 올라옵니다 */
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(56px, 9vh, 96px) clamp(20px, 2.4vw, 34px) clamp(18px, 2.2vh, 26px);
  background: linear-gradient(to top,
    rgba(20, 5, 10, .88) 0%, rgba(20, 5, 10, .55) 42%, rgba(20, 5, 10, 0) 100%);
  color: #fff;
  font-size: clamp(17px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.01em;
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease .2s,
              transform .8s cubic-bezier(.16, .84, .44, 1) .2s;
}
.slide.is-active figcaption { opacity: 1; transform: none; }

/* 사진 아래 썸네일 — 호버하면 살짝 커집니다 */
/* 좌우 버튼 — 사진 위에 표시 */
.slide-nav {
  display: inline-flex; position: absolute; top: 50%; z-index: 2;
  width: 48px; height: 48px; padding: 0; border: 0; cursor: pointer;
  transform: translateY(-50%);
  background: rgba(20, 5, 10, .5); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.slide-nav:hover { background: rgba(20, 5, 10, .72); }
.slide-nav:active { background: rgba(20, 5, 10, .82); }
.slide-nav .icon { width: 20px; height: 20px; }
.slide-prev { left: 14px; }
.slide-next { right: 14px; }

.slide-thumbs {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 8px; margin-top: 10px;
}
.slide-thumb {
  position: relative; padding: 0; border: 0; background: var(--tint-2);
  cursor: pointer; overflow: hidden; aspect-ratio: 16 / 9;
  outline: 2px solid transparent; outline-offset: -2px; opacity: .55;
  transition: opacity .25s ease, transform .25s ease, outline-color .25s ease;
}
.slide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-thumb:hover { transform: scale(1.07); opacity: .9; z-index: 1; }
.slide-thumb.is-active { opacity: 1; outline-color: var(--wine); }

/* 프로그램 섹션 슬라이드 — 오른쪽 목록과 같은 높이로 채웁니다 */
.program-slider { display: flex; flex-direction: column; height: 100%; }
.program-slider .slideshow { flex: 1; height: auto; min-height: 340px; }

/* 데스크톱에서만 적용되는 줄바꿈 */
.br-md { display: inline; }

.facility-list {
  margin-top: 44px; background: var(--tint); border-radius: 0;
  padding: 30px 32px;
}

/* ── 방문 안내 ────────────────────────────────────────── */
/* 좌우 2단 — 두 컬럼의 위/아래 끝을 맞춥니다 */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px); align-items: stretch;
}
.split-grid > * { display: flex; flex-direction: column; }
/* 이미지가 남는 높이를 채워 반대편 컬럼과 바닥이 맞습니다 */
.figure-fill { height: 100%; }
.figure-fill img { flex: 1; height: auto; min-height: 260px; }
/* 오른쪽 컬럼의 마지막 블록은 아래로 붙입니다.
   auto 는 남는 공간이 없으면 0 이 되므로 앞 블록에 최소 간격을 따로 줍니다 */
.split-grid .deliverables { margin-top: auto; }
.split-grid .list-block + .list-block { margin-bottom: 40px; }

/* 지도는 카드 없이 이미지 + 주소 한 줄 */
.map-embed { position: relative; flex: 1; min-height: 300px; overflow: hidden; background: var(--tint-2); }
/* 구글이 보여주는 번지수 카드 대신 우리가 지정한 이름을 얹습니다 */
.map-pin-label {
  position: absolute; top: 14px; left: 14px; z-index: 1; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; background: #fff; color: var(--plum-900);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 8px 22px -10px rgba(46, 11, 21, .5);
}
.map-pin-label .icon { color: var(--wine); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-address {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin-top: 14px; color: var(--plum-900);
  font-size: 15px; font-weight: 600;
}
.map-open {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--wine);
  text-decoration: underline; text-underline-offset: 3px;
}
.map-address .map-open .icon { color: #4285F4; }   /* 구글 지도 링크 표시 */
.map-open:hover { color: var(--wine-light); }
.map-address .icon { color: var(--wine); }

.info-list li {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.info-list li:first-child { padding-top: 0; }
.info-icon {
  width: 44px; height: 44px; border-radius: 0; background: var(--tint-2);
  display: grid; place-items: center; color: var(--wine-deep); flex: none;
}
.info-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.info-list strong { font-size: 17px; color: var(--plum-900); }
.info-list a:hover { color: var(--wine); }

.split-grid .info-list { flex: 1; }
.tour-card {
  margin-top: 28px; background: #fff; border-radius: 0;
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 168px 1fr; align-items: center;
}
.tour-card img { width: 100%; height: 100%; min-height: 132px; object-fit: cover; }
.tour-card > div { padding: 20px 22px; }
.tour-card strong {
  display: block; font-size: 18px; font-weight: 700; letter-spacing: .01em; line-height: 1.3; color: var(--plum-900);
}
.tour-card p { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ── 마무리 CTA 밴드 ─────────────────────────────────── */
.cta-band { background: var(--wine); color: #fff; }
.cta-inner {
  display: grid; grid-template-columns: minmax(260px, 1fr) 1.5fr;
  gap: clamp(28px, 4.5vw, 64px); align-items: center;
  padding: clamp(56px, 7vw, 92px) 0;
}
.cta-title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; line-height: 1.16; letter-spacing: -.03em; }
.cta-text { color: #EBD2D7; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.6; }

/* ── 문의 폼 — 배경 영상 + 딤 ────────────────────────── */
.section-form {
  position: relative; overflow: hidden;
  background: var(--plum-900); isolation: isolate;
}
.form-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.form-bg-dim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(20, 5, 10, .9) 0%, rgba(20, 5, 10, .78) 45%, rgba(20, 5, 10, .92) 100%);
}
/* 영상 위이므로 제목 영역은 밝게 */
.section-form .h2 { color: #fff; }
.section-form .h2 .accent {
  color: var(--blush); -webkit-text-fill-color: var(--blush); background-image: none;
}
.section-form .lead { color: #DCBAC1; }
.section-form .flash-ok { background: rgba(255, 255, 255, .92); }

@media (prefers-reduced-motion: reduce) {
  /* 모션을 끄면 영상 대신 정지 이미지 */
  .hero-media video { display: none; }
  .hero-media { background: url(../img/hero-lab.jpg) center / cover no-repeat; }
}

.form-wrap { max-width: 760px; }
.section-form .section-head { margin-inline: auto; text-align: center; margin-bottom: 34px; }

.form {
  background: #fff; color: var(--ink); border-radius: 0;
  padding: clamp(26px, 4vw, 42px); box-shadow: none;
}
.hp { position: absolute; left: -9999px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span {
  display: block; font-size: 14px; font-weight: 600; color: var(--plum-900); margin-bottom: 7px;
}
.field em { color: var(--wine); font-style: normal; }

/* 밑줄형 입력 — 배경 없이 하단 보더만 */
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 2px; font: inherit; font-size: 16px;
  color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--wine);
  box-shadow: 0 1px 0 0 var(--wine);   /* 포커스 시 밑줄 2px 효과 */
}
/* select 는 기본 화살표를 지우고 직접 그립니다 */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A7076' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #B79BA1; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--muted); margin: 4px 0 22px;
}
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--garnet); flex: none; }
.check a { color: var(--plum-900); text-decoration: underline; text-underline-offset: 3px; }
.check em { color: var(--wine); font-style: normal; }

.form-note {
  margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7;
  border-top: 1px solid var(--line); padding-top: 16px;
}

.flash {
  max-width: 760px; margin: 0 auto 20px; padding: 15px 20px; border-radius: 0;
  font-weight: 600; font-size: 15px;
}
.flash-ok    { background: var(--tint-2); color: var(--wine-deep); }
.flash-error { background: #FDECEE; color: var(--wine); }

/* ── 개인정보 동의 팝업 ───────────────────────────────── */
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--plum-900);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--wine); }

.modal {
  width: min(100% - 32px, 480px); padding: 0; border: 0; border-radius: 0;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(46, 11, 21, .5);
}
.modal::backdrop { background: rgba(24, 6, 12, .6); backdrop-filter: blur(3px); }

.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 17px; font-weight: 700; color: var(--plum-900); }
.modal-close {
  background: none; border: 0; padding: 6px; cursor: pointer;
  color: var(--muted); display: inline-flex;
}
.modal-close:hover { color: var(--plum-900); }

/* 내용이 길어 본문만 스크롤됩니다 */
.modal-body {
  padding: 22px 24px; overflow-y: auto;
  max-height: min(62vh, 520px); -webkit-overflow-scrolling: touch;
}
.modal-intro { font-size: 14px; color: var(--muted); line-height: 1.65; }
.modal-sec { margin-top: 22px; }
.modal-sec h4 {
  font-size: 13.5px; font-weight: 700; color: var(--plum-900); margin-bottom: 8px;
}
.modal-sec ul { display: grid; gap: 6px; }
.modal-sec li {
  position: relative; padding-left: 12px;
  font-size: 13.5px; color: var(--ink); line-height: 1.6;
}
.modal-sec li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 4px; height: 4px; background: var(--berry); border-radius: 50%;
}

.modal-note {
  margin: 24px 0 0; padding: 14px 16px;
  background: var(--tint); font-size: 13px; color: var(--muted); line-height: 1.6;
}
.modal-foot { padding: 20px 24px 24px; }
.modal-foot .btn { width: 100%; border-radius: 0; }

/* 제출 결과 알림 팝업 */
.modal-alert { width: min(100% - 32px, 380px); text-align: center; }
.alert-body { padding: 34px 28px 26px; }
.alert-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--tint-2); color: var(--wine); margin-bottom: 18px;
}
.alert-mark .icon { width: 26px; height: 26px; }
.alert-mark-error { background: #FDECEE; color: var(--ruby); }
.alert-body h3 {
  font-size: 18px; font-weight: 700; color: var(--plum-900);
  letter-spacing: -.02em; margin-bottom: 10px;
}
.alert-body p { font-size: 14px; color: var(--muted); line-height: 1.65; }

@media (max-width: 520px) {
  .modal { width: min(100% - 24px, 480px); }
  .modal-body { max-height: 58vh; }
}

/* ── 푸터 ─────────────────────────────────────────────── */
.site-footer { background: #1B060C; color: #C7A8AF; padding: 62px 0 88px; font-size: 14.5px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-logo { display: block; width: 210px; height: auto; }
.footer-desc { margin-top: 18px; max-width: 40ch; }
.footer-note { margin-top: 12px; font-size: 13px; color: #96757D; }

.footer-col h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #fff; margin-bottom: 16px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a:hover { color: #fff; }

.footer-biz { padding-top: 28px; }
.footer-biz h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #B08F97; margin-bottom: 14px;
}
.footer-biz dl {
  margin: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px 32px; font-size: 13px; color: #B08F97;
}
.footer-biz dl > div { display: flex; gap: 10px; }
.footer-biz dl > div.wide { grid-column: 1 / -1; }
.footer-biz dt { flex: none; color: #96757D; }
.footer-biz dt::after { content: ''; }
.footer-biz dd { margin: 0; color: #D9C0C5; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; color: #96757D; letter-spacing: .02em;
}

/* ── 플로팅 전화 버튼 ─────────────────────────────────── */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--wine); color: #fff; font-weight: 600; font-size: 15px;
  padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 16px 34px -14px rgba(121, 16, 32, .8);
  transition: transform .2s, background .2s;
}
.float-cta:hover { transform: translateY(-2px); background: var(--wine-light); }

/* ── 대학 로고 흐름 (히어로 하단) ─────────────────────── */
.logo-marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 22px 0 26px; overflow: hidden; pointer-events: none;
  /* 양쪽 끝을 부드럽게 사라지게 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.logo-track {
  display: flex; width: max-content;
  animation: logoScroll 46s linear infinite;
}
.logo-row {
  display: flex; align-items: center; gap: clamp(38px, 5vw, 76px);
  margin: 0; padding: 0 clamp(19px, 2.5vw, 38px) 0 0; list-style: none;
}
.logo-row li { flex: none; }
.logo-row img {
  display: block; height: clamp(22px, 2.1vw, 30px); width: auto;
  /* 원본 색과 무관하게 흰색 실루엣으로 통일 */
  filter: brightness(0) invert(1);
  opacity: .58;
}
/* 목록 하나만큼 밀면 두 번째 목록이 정확히 그 자리에 옵니다 */
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ── 연구 영상 (연구 분야 섹션) ───────────────────────── */
.videos { margin-top: clamp(40px, 5vw, 68px); }
.videos-title {
  font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; color: #fff;
  letter-spacing: -.02em; margin-bottom: 18px;
}
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px); margin: 0; padding: 0; list-style: none;
}
.video-item[hidden] { display: none; }
.video-name {
  font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .92);
  margin-bottom: 9px; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.video-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: rgba(255, 255, 255, .07); cursor: pointer; overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.16, .84, .44, 1), opacity .3s;
}
.video-thumb:hover img { transform: scale(1.05); opacity: .85; }
/* 재생 삼각형 */
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(20, 5, 10, .62); backdrop-filter: blur(4px);
}
.video-play::before {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.video-thumb:hover .video-play { background: var(--wine); }
.video-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-pager {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 26px; flex-wrap: wrap;
}
.video-pager button {
  min-width: 34px; height: 34px; padding: 0 10px; border: 0; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .6);
  font: inherit; font-size: 14px; font-weight: 600;
}
.video-pager button:hover { color: #fff; }
.video-pager button.is-on { background: rgba(255, 255, 255, .16); color: #fff; }
.video-pager button[disabled] { opacity: .3; cursor: default; }

@media (max-width: 880px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .video-grid { grid-template-columns: 1fr; } }

/* 하위 페이지 머리말 — 헤더가 고정이라 위쪽을 더 띄웁니다 */
.site-header.no-hero::before { opacity: 1; }
.page-intro { padding-top: calc(72px + clamp(46px, 6vw, 84px)); padding-bottom: 0; }
.page-intro .h2 { margin-bottom: 14px; }
.page-intro .lead { max-width: 62ch; }

/* ── 등장 애니메이션 ──────────────────────────────────── */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s cubic-bezier(.16, .84, .44, 1),
              transform .85s cubic-bezier(.16, .84, .44, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .rise { opacity: 0; animation: rise .95s cubic-bezier(.16, .84, .44, 1) forwards; }
.hero-inner .rise:nth-child(1) { animation-delay: .05s; }
.hero-inner .rise:nth-child(2) { animation-delay: .16s; }
.hero-inner .rise:nth-child(3) { animation-delay: .28s; }
.hero-inner .rise:nth-child(4) { animation-delay: .38s; }
.hero-inner .rise:nth-child(5) { animation-delay: .48s; }
.hero-inner .rise:nth-child(6) { animation-delay: .56s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .rise { opacity: 1; transform: none; transition: none; animation: none; }
  .slide figcaption { opacity: 1; transform: none; transition: none; }
  .js .h2 .accent { color: var(--wine); background-image: none; }
  .nav { transition: none; }
  .title-slide, .desc-slide { transition: none; }
  .btn:hover, .float-cta:hover { transform: none; }
  .hero-media img, .hero-media video { transform: none !important; }
}

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps   { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .figure-tall img { min-height: 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 72px; }

  /* 우측에서 슬라이드되는 글래스 드로어 */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(82vw, 330px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 92px 24px 32px; overflow-y: auto;
    background: rgba(46, 11, 21, .93);   /* backdrop-filter 미지원 대비 */
    border-left: 1px solid rgba(255, 255, 255, .18);
    box-shadow: -26px 0 60px -30px rgba(0, 0, 0, .65);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.22, .9, .3, 1);
  }
  .nav.is-open { transform: none; }
  .nav a { color: #fff; padding: 15px 2px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .nav a::after { display: none; }
  .nav .nav-cta {
    background: #fff; color: var(--plum-900); border: 0;
    text-align: center; margin-top: 20px; padding: 14px 20px;
  }
  .nav .nav-cta:hover { background: #fff; }

  .nav-scrim {
    display: block; position: fixed; inset: 0;
    background: rgba(20, 4, 9, .4);
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }

  .nav-toggle { display: inline-flex; }
  .nav-toggle[aria-expanded="true"] { color: #fff; }
  .nav-toggle[aria-expanded="true"]:hover { background: rgba(255, 255, 255, .14); }

  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav {
      background: rgba(46, 11, 21, .55);
      -webkit-backdrop-filter: blur(20px) saturate(150%);
      backdrop-filter: blur(20px) saturate(150%);
    }
  }

  /* 모바일: 히어로를 헤더를 뺀 한 화면 높이에 맞춤 */
  .hero {
    display: flex; align-items: center;
    min-height: 100vh;    /* svh 미지원 대비 */
    min-height: 100svh;   /* 주소창이 보이는 상태 기준 (헤더 72px 포함) */
  }
  .hero-inner { width: min(100% - 40px, var(--wrap)); margin-inline: auto; padding: 20px 0; }

  /* 모바일 섹션 타이틀 확대 */
  .h2 { font-size: clamp(31px, 10.2vw, 46px); }
  .cta-title { font-size: clamp(28px, 8.2vw, 38px); }

  /* 모바일: 영문 타이틀 · 타이틀 · 서브타이틀 모두 좌측정렬 */
  .hero-inner,
  .section-head-center,
  .section-form .section-head { text-align: left; }
  .section-head-center,
  .section-form .section-head { margin-inline: 0; }
  .hero-title::after { margin-left: 0; }
  .hero-desc { margin-left: 0; max-width: none; }
  .hero-actions, .badges { justify-content: flex-start; }
  .stats-inner { text-align: left; }

  /* 히어로 타이포 — 뷰포트 폭에 연동된 √φ(1.272) 등비 스케일
     아이브로우 0.786 · 설명 1 · 한글 타이틀 2.058 · 영문 타이틀 3.33 */
  .hero { --fs: clamp(13px, 4.15vw, 19px); }

  .hero .eyebrow { font-size: calc(var(--fs) * 0.786); letter-spacing: .1em; }
  .hero-title { line-height: 1.03; margin-top: 6px; }
  .title-ko { line-height: 1.3; }
  .hero-title::after {
    width: calc(var(--fs) * 4.24); height: 3px;
    margin-top: calc(var(--fs) * 1.3);
  }
  .hero-desc { font-size: var(--fs); line-height: 1.55; margin-top: calc(var(--fs) * 0.85); }
  /* 하단 고정 CTA 바 — 아래로 갈수록 흐려지는 그라데이션 블러 */
  /* 바는 히어로(isolation: isolate) 안에 있어 히어로의 쌓임 맥락에 갇힙니다.
     히어로 자체를 이후 섹션 위로 올려야 카드 같은 positioned 요소에 가리지 않습니다 */
  .hero { z-index: 96; }
  .hero-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    margin: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: 1fr; gap: 10px;
  }
  .hero-actions .btn {
    min-width: 0; width: 100%;
    font-size: calc(var(--fs) * 0.95);
    padding: calc(var(--fs) * 0.85) calc(var(--fs) * 0.6);
  }
  /* 밝은 섹션 위로 지나가도 흰 글자가 읽히도록 자체 배경을 깝니다 */
  .hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(30, 7, 14, .38);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .hero-actions .btn-ghost:hover { background: rgba(30, 7, 14, .52); }
  /* 전화번호 버튼은 살짝 투명하게 */
  .hero-actions .btn-ghost { opacity: .7; }

  /* 블러를 두 겹으로 쌓고 마스크로 위쪽을 지워 점진적으로 선명해지게 만듭니다 */
  .hero-actions::before,
  .hero-actions::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    pointer-events: none;
  }
  .hero-actions::before {
    top: -80px; z-index: -2;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 70%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 70%);
  }
  .hero-actions::after {
    top: -50px; z-index: -1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: linear-gradient(to top,
      rgba(30, 7, 14, .72) 0%, rgba(30, 7, 14, .45) 55%, rgba(30, 7, 14, 0) 100%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
  }

  /* 바가 차지하는 만큼 히어로 콘텐츠를 위로 */
  .hero { padding-bottom: 96px; }
  /* 로고 띠는 고정 바 바로 위에 — 작은 화면에서도 읽히도록 크고 진하게 */
  .logo-marquee { bottom: 80px; padding: 12px 0; }
  .logo-row img { height: 28px; opacity: .9; }
  .logo-row { gap: 36px; }

  /* 전화 플로팅 버튼은 바와 겹치므로 모바일에서 숨김 */
  .float-cta { display: none; }
  .badges { margin-top: 18px; gap: 6px; }
  .badge { font-size: 10.5px; padding: 8px 12px; letter-spacing: .04em; }

  .cta-inner { grid-template-columns: 1fr; text-align: left; padding: 56px 0; }

  .grid-2, .split-grid { grid-template-columns: 1fr; }
  .map-embed { min-height: 240px; }
  .cards  { grid-template-columns: 1fr; }
  .mentor-grid { grid-template-columns: 1fr; }
  .slideshow { height: clamp(220px, 38vh, 320px); }
  .program-slider .slideshow { min-height: 0; height: clamp(220px, 38vh, 320px); }
  .br-md { display: none; }
  .slide-nav { width: 42px; height: 42px; }
  .slide-prev { left: 10px; }
  .slide-next { right: 10px; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .program + .program { border-left: 0; }
  .program:nth-child(even) { border-left: 1px solid var(--line); }
  .program:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 34px; }
  .service-grid { grid-template-columns: 1fr; gap: 22px; }
  .service + .service { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 22px; }
  .rule-label { gap: 14px; font-size: 14px; white-space: normal; text-align: center; }
  .steps  { grid-template-columns: 1fr; }
  .two-col { columns: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-biz dl { grid-template-columns: 1fr; gap: 8px; }
  .float-cta span { display: none; }
  .float-cta { padding: 15px; }
}

@media (max-width: 520px) {
  .slide-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
  .tour-card { grid-template-columns: 1fr; }
  .tour-card img { height: 190px; }
  .banner { flex-direction: column; align-items: flex-start; }
}
