/* =========================================================
   주식회사 지상 P&D — 사이트 공통 스타일
   - 색상·간격 등은 아래 :root 변수만 바꾸면 전체에 반영됩니다.
   ========================================================= */

:root {
  --navy-950: #060b1a;
  --navy-900: #0a1128;
  --navy-800: #16203d;
  --navy-700: #2c3e5c;
  --gold: #d4af37;          /* 어두운 배경 위 강조색 */
  --gold-ink: #94741c;      /* 흰 배경 위 글자용 (대비 확보) */
  --gold-soft: #f7f0dc;

  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f5f6f8;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 11, 26, .35);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -0.025em; font-weight: 700; }
::selection { background: var(--gold); color: var(--navy-950); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.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-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 18px; background: var(--navy-900); color: #fff; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy-900); color: #cbd5e1; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-title { margin-top: 14px; font-size: clamp(28px, 1.6rem + 1.8vw, 44px); }
.section-lead { margin-top: 18px; font-size: clamp(16px, 1rem + .25vw, 19px); color: var(--muted); }
.section--dark .section-lead { color: #94a3b8; }
.accent { color: var(--gold-ink); }
.section--dark .accent, .hero .accent, .page-hero .accent, .cta .accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: #e2c25a; box-shadow: 0 10px 24px -10px rgba(212, 175, 55, .7); }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn--line { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--gold-ink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.site-header.is-solid, .site-header--solid {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-dot { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; opacity: .85; transition: opacity .2s, background-color .2s;
}
.nav a:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; background: var(--gold); color: var(--navy-950); }
.header-cta svg { width: 16px; height: 16px; }
.header-cta:hover { background: #e2c25a; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }

/* 모바일 전체화면 메뉴 */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
  background: var(--navy-950); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  overflow-y: auto;
}
.mobile-nav a.mobile-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em;
}
.mobile-nav a.mobile-link span { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #64748b; text-transform: uppercase; }
.mobile-nav a.mobile-link[aria-current="page"] { color: var(--gold); }
.mobile-nav-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; color: #94a3b8; font-size: 15px; }
.mobile-nav-foot .btn { width: 100%; margin-bottom: 8px; }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
body.menu-open .site-header { background: transparent; box-shadow: none; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .menu-toggle .icon-open { display: none; }
body.menu-open .menu-toggle .icon-close { display: block; }

/* ---------- Hero (홈) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  background: var(--navy-950); color: #cbd5e1;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 24s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 11, 26, .55) 0%, rgba(6, 11, 26, .25) 35%, rgba(6, 11, 26, .85) 78%, var(--navy-950) 100%),
    linear-gradient(90deg, rgba(6, 11, 26, .75) 0%, rgba(6, 11, 26, 0) 70%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-inner { padding-bottom: clamp(40px, 7vw, 72px); }
.hero h1 {
  max-width: 15em; margin-top: 20px;
  font-size: clamp(36px, 1.2rem + 4.6vw, 76px); line-height: 1.15; letter-spacing: -0.04em; font-weight: 800;
  color: #fff;
}
.hero-lead { max-width: 36em; margin-top: 24px; font-size: clamp(16px, 1rem + .35vw, 20px); color: #cbd5e1; }
.hero .btn-row { margin-top: 36px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stat { padding: 28px 24px 32px 0; }
.hero-stat + .hero-stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-stat strong { display: block; font-size: clamp(26px, 1rem + 1.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.hero-stat strong em { font-style: normal; color: var(--gold); }
.hero-stat span { display: block; margin-top: 8px; font-size: 14px; color: #94a3b8; }

/* ---------- Page hero (하위 페이지) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 112px)) 0 clamp(56px, 8vw, 96px);
  background: var(--navy-950); color: #cbd5e1;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(212, 175, 55, .22) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(44, 62, 92, .8) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero h1 { margin-top: 16px; font-size: clamp(34px, 1.4rem + 3.4vw, 60px); letter-spacing: -0.04em; font-weight: 800; color: #fff; }
.page-hero p { max-width: 40em; margin-top: 18px; font-size: clamp(16px, 1rem + .3vw, 19px); color: #94a3b8; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: #64748b; }
.breadcrumb a:hover { color: #fff; }

/* 페이지 내 탭(서브 내비게이션) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- Split (이미지+텍스트) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--navy-800); }
.split-badge {
  position: absolute; left: -24px; bottom: 32px; max-width: 300px;
  padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg);
}
.split-badge b { display: block; font-size: 12px; letter-spacing: .16em; color: var(--gold-ink); }
.split-badge p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--ink); font-weight: 600; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--body); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
a.card:hover, .card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--navy-900); color: var(--gold); margin-bottom: 28px; }
.card-icon svg { width: 26px; height: 26px; }
.card-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.card h3 { margin-top: 6px; font-size: 22px; }
.card-list { margin-top: 18px; display: grid; gap: 8px; font-size: 15px; color: var(--body); }
.card-list li { display: flex; gap: 10px; }
.card-list li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .72em; border-radius: 50%; background: var(--gold); }
.card-foot { margin-top: auto; padding-top: 28px; }
.card-num { position: absolute; top: 22px; right: 26px; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--surface); line-height: 1; }
.section--surface .card-num { color: #eef0f3; }

/* ---------- 공정(프로세스) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding: 26px 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step-no { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.step h4 { margin-top: 16px; font-size: 18px; }
.step small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.step ul { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14.5px; }
.step li { display: flex; gap: 8px; }
.step li::before { content: "–"; color: var(--gold-ink); }

/* ---------- 사업 상세 블록 ---------- */
.biz-block + .biz-block { margin-top: var(--section-y); padding-top: var(--section-y); border-top: 1px solid var(--line); }
.biz-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: end; margin-bottom: 48px; }
.biz-head h2 { font-size: clamp(30px, 1.4rem + 2.2vw, 48px); margin-top: 14px; }
.biz-quote { padding-left: 22px; border-left: 3px solid var(--gold); }
.biz-quote strong { display: block; font-size: 19px; color: var(--ink); font-weight: 700; line-height: 1.5; }
.biz-quote p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.biz-sub { margin: 40px 0 20px; font-size: 20px; display: flex; align-items: center; gap: 12px; }
.biz-sub span { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }

/* ---------- Pill list ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink); line-height: 1.4; }

/* ---------- 실적 (Portfolio) ---------- */
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.highlight { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--navy-900); color: #94a3b8; display: flex; flex-direction: column; min-height: 220px; }
.highlight .year { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.highlight h3 { margin-top: 12px; font-size: 20px; color: #fff; line-height: 1.35; }
.highlight .meta { margin-top: auto; padding-top: 20px; font-size: 14px; }
.highlight .units { display: block; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.highlight .units small { font-size: 15px; font-weight: 600; color: #94a3b8; margin-left: 2px; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; color: var(--muted); transition: all .2s var(--ease); }
.filter button:hover { color: var(--ink); border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter button .count { margin-left: 6px; font-size: 13px; opacity: .6; }

.record-group[hidden] { display: none; }
.record-group + .record-group { margin-top: 64px; }
.record-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.record-group-head h3 { font-size: clamp(22px, 1.1rem + .8vw, 28px); }
.record-group-head span { font-size: 14px; color: var(--muted); font-weight: 600; }
.record-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.record-year { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.6; }

.timeline { position: relative; margin-left: 8px; padding-left: 36px; border-left: 2px solid var(--line); display: grid; gap: 36px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -45px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--navy-700); }
.timeline-item:first-child::before { border-color: var(--gold); }
.timeline-year { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.timeline-cards { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tcard { padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tcard h4 { font-size: 17px; }
.tcard p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* ---------- 팀 ---------- */
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.leader { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--navy-900); color: #94a3b8; }
.leader b { font-size: 15px; font-weight: 600; }
.leader strong { font-size: 28px; color: #fff; letter-spacing: -0.02em; }
.person h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 24px; margin-top: 8px; }
.person h3 span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
/* 같은 줄 카드끼리 제목·설명·가로줄 높이를 맞춤 (subgrid) */
@supports (grid-template-rows: subgrid) {
  .grid--3 > .person { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .grid--3 > .person .card-list { align-content: start; }
}
.person-role { margin-top: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.6; }

/* ---------- 회사 개요 표 ---------- */
.facts { border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- 등록증 카드 ---------- */
.cert-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; width: 100%; padding: 20px 24px 20px 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: left; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.cert-card:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.cert-card img { width: 72px; height: 100px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.cert-card .card-kicker { display: block; }
.cert-card strong { display: block; margin-top: 4px; font-size: 19px; color: var(--ink); }
.cert-card small { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.cert-card .link-arrow { font-size: 15px; }

/* ---------- 파트너 ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.partner { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.partner:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.partner h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--gold-ink); }
.partner p { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.55; }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 7vw, 80px); border-radius: 28px; background: var(--navy-900); color: #94a3b8; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, .28) 0%, transparent 65%); }
.cta h2 { margin-top: 14px; font-size: clamp(28px, 1.3rem + 2vw, 44px); color: #fff; }
.cta p { margin-top: 14px; font-size: 17px; }
.cta-phone { display: block; font-size: clamp(30px, 1.2rem + 2.4vw, 48px); font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.cta-phone:hover { color: var(--gold); }
.cta-side { display: grid; gap: 16px; justify-items: start; }

/* ---------- 연락처 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: stretch; }
.contact-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--navy-900); color: #94a3b8; display: flex; flex-direction: column; }
.contact-card h2 { color: #fff; font-size: 26px; }
.contact-item { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-item:first-of-type { margin-top: 16px; }
.contact-item dt { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.contact-item dd { margin-top: 6px; font-size: 18px; color: #fff; font-weight: 600; line-height: 1.55; }
.contact-item dd a:hover { color: var(--gold); }
.contact-item dd.big { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.contact-card .btn-row { margin-top: auto; padding-top: 28px; }
.contact-card .btn-row .btn { flex: 1 1 160px; }
.map-wrap { position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #94a3b8; font-size: 15px; padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer .brand { color: #fff; }
.footer-desc { margin-top: 18px; max-width: 26em; line-height: 1.75; }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #fff; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover, .footer-info a:hover { color: #fff; }
.footer-info { display: grid; gap: 8px; }
.footer-info .tel { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.footer-bottom { padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #64748b; }

/* ---------- 모바일 하단 고정 바 ---------- */
.mobile-bar { display: none; }

/* ---------- Dialog (등록증·팝업) ---------- */
dialog.modal {
  width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: #fff; color: var(--body); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
dialog.modal[open] { display: flex; flex-direction: column; animation: modalIn .3s var(--ease); }
dialog.modal::backdrop { background: rgba(6, 11, 26, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 20px; }
.modal-head p { font-size: 14px; color: var(--muted); }
.modal-close { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
.modal-close:hover { background: var(--line); }
.modal-close svg { width: 22px; height: 22px; }
.modal-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--surface); }
.modal-body img { margin-inline: auto; box-shadow: var(--shadow); background: #fff; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--navy-950); color: #94a3b8; padding: 32px; }
.notfound strong { display: block; font-size: clamp(80px, 20vw, 160px); font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -0.05em; }
.notfound h1 { margin-top: 12px; color: #fff; font-size: 28px; }
.notfound p { margin: 12px 0 32px; }

/* ---------- 스크롤 등장 효과 ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s !important; }
.reveal-d2 { transition-delay: .16s !important; }
.reveal-d3 { transition-delay: .24s !important; }

.m-only { display: none; }
.mt-sm { margin-top: 16px; } .mt-md { margin-top: 32px; } .mt-lg { margin-top: 56px; }
.center { text-align: center; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1100px) {
  .grid--4, .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps--5 { grid-template-columns: repeat(2, 1fr); }
  .steps--5 > :last-child { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .partner:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .partner:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .split, .biz-head, .contact-grid, .cta { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
  .split-badge { left: 16px; right: 16px; bottom: -28px; max-width: none; }
  .split-media { margin-bottom: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .timeline-cards { grid-template-columns: 1fr; }
  .map-wrap { min-height: 320px; }

  /* 하단 고정 상담 바 */
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -12px rgba(15, 23, 42, .2);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 50px; padding: 0 12px; font-size: 16px; }
  body.has-mobile-bar .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  body.menu-open .mobile-bar { transform: translateY(110%); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .m-only { display: inline; }
  .eyebrow { font-size: 12px; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .grid--2, .grid--3, .grid--4, .highlight-grid, .leaders, .partners { grid-template-columns: 1fr; }
  .steps, .steps--5 { grid-template-columns: 1fr; }
  .partner:nth-child(2n) { padding-left: 0; border-left: 0; }
  .partner { padding: 22px 0; }
  .hero { justify-content: flex-end; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero-stat { padding: 20px 12px 22px 0; }
  .hero-stat + .hero-stat { padding-left: 16px; }
  .hero-stat:nth-child(3) { padding-left: 0; }
  .hero-stat span { font-size: 13px; }
  .record-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .record-year { font-size: 18px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .cert-card { grid-template-columns: auto 1fr; gap: 16px; padding: 16px; }
  .cert-card .link-arrow { grid-column: 1 / -1; justify-content: center; padding-top: 12px; border-top: 1px solid var(--line); }
  .leader { padding: 22px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .cta { border-radius: 22px; padding: 40px 24px; }
  .cta-side, .cta-side .btn { width: 100%; }
  .highlight { min-height: 0; }
  .timeline { padding-left: 28px; }
  .timeline-item::before { left: -37px; }
  dialog.modal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .modal-foot .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-bar, .mobile-nav, .subnav { display: none !important; }
  .hero, .page-hero { min-height: 0; padding: 24px 0; background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}
