/* ==========================================================
   (주)온랩 ONLAB — 공식 홈페이지 스타일
   브랜드 컬러는 회사소개서 원본에서 추출한 값입니다.
   ========================================================== */

:root {
  /* 브랜드 */
  --navy: #0d317d;
  --navy-deep: #081f52;
  --accent: #003db4;
  --accent-hover: #002f92;
  --accent-soft: #eaf0ff;

  /* 중립 (쿨그레이 계열로 통일) */
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --surface: #f8fafc;

  /* 레이아웃 */
  --radius: 4px;
  --radius-lg: 6px;
  --max: 1240px;
  --nav-h: 72px;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* 키보드 초점 표시 — 마우스 클릭에는 나타나지 않는다 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero a:focus-visible,
.cta-band a:focus-visible,
.site-footer a:focus-visible,
.page-header a:focus-visible {
  outline-color: #fff;
}

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

/* ==========================================================
   헤더
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  flex-shrink: 0;
}
.logo img { width: 34px; height: 34px; object-fit: contain; }

.gnb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.gnb a {
  padding: 9px 15px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--body);
  border-radius: var(--radius);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.gnb a:hover { color: var(--accent); background: var(--accent-soft); }
.gnb a.active { color: var(--navy); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .18s, transform .12s;
}
.header-cta:hover { background: var(--accent); }
.header-cta:active { transform: translateY(1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ==========================================================
   버튼
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--navy); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); }

.btn-ghost {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================
   히어로 — 실사 배경 + 좌측 정렬
   ========================================================== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 31, 82, .93) 0%, rgba(13, 49, 125, .82) 45%, rgba(13, 49, 125, .48) 100%);
}

/* ---- 히어로 배경 : 영상 우선, 없으면 사진 슬라이드쇼 ---- */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 영상이 없을 때 재생되는 사진 연출.
   각 컷이 서서히 확대되며(빨려드는 느낌) 교차 전환된다. */
.hero-slideshow { position: absolute; inset: 0; }
.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-cut 32s infinite;
}
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 8s; }
.hero-slideshow img:nth-child(3) { animation-delay: 16s; }
.hero-slideshow img:nth-child(4) { animation-delay: 24s; }

@keyframes hero-cut {
  0%   { opacity: 0; transform: scale(1);    }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; transform: scale(1.16); }
}

/* 동작 줄이기 설정이면 첫 컷만 정지 화면으로 */
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img { animation: none; opacity: 0; }
  .hero-slideshow img:first-child { opacity: 1; }
}

.hero .container { position: relative; z-index: 1; padding-block: 100px; }

/* ---- 후킹: 질문이 먼저 뜨고 답으로 넘어간다 ---- */
.hero-hook {
  display: block;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: #c9d9ff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  min-height: 1.6em;
}
.hero-hook .typed { border-right: 2px solid #7fa4ff; padding-right: 3px; }
.hero-hook.done .typed { border-right-color: transparent; }

/* 답변 블록은 질문이 끝난 뒤 나타난다 */
.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
.hero-reveal.in { opacity: 1; transform: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a9c2ff;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #a9c2ff;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, .85);
  max-width: 46ch;
  margin-bottom: 38px;
}

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

/* ==========================================================
   페이지 헤더 (서브페이지)
   ========================================================== */
.page-header {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}
.page-header .ph-bg { position: absolute; inset: 0; z-index: 0; }
.page-header .ph-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .32;
}
.page-header .ph-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,31,82,.8), rgba(8,31,82,.94));
}
.page-header .container { position: relative; z-index: 1; padding-block: 84px; }
.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.page-header p {
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ==========================================================
   섹션 공통
   ========================================================== */
.section { padding-block: 96px; }
.section.tight { padding-block: 64px; }
.section.alt { background: var(--surface); }
.section.navy { background: var(--navy-deep); color: #fff; }

.section-head { margin-bottom: 52px; max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.section-head p {
  margin-top: 16px;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.75;
}
.section.navy .section-head h2 { color: #fff; }
.section.navy .section-head p { color: rgba(255,255,255,.75); }

/* ==========================================================
   로고월 — 흐르는 슬라이더(마퀴)
   ========================================================== */
.logowall { padding-block: 52px; border-bottom: 1px solid var(--line); }
.logowall-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 30px;
}

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 6px;
}
.marquee + .marquee { margin-top: 10px; }

/* 양 끝을 흐리게 해 잘린 느낌을 없앤다 */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff 20%, rgba(255,255,255,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff 20%, rgba(255,255,255,0)); }
.section.alt .marquee::before,
.logowall.alt .marquee::before { background: linear-gradient(90deg, var(--surface) 20%, rgba(248,250,252,0)); }
.section.alt .marquee::after,
.logowall.alt .marquee::after { background: linear-gradient(270deg, var(--surface) 20%, rgba(248,250,252,0)); }

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-left 46s linear infinite;
}
.marquee-track.rtl { animation-name: marquee-right; animation-duration: 52s; }

/* JS가 항목을 복제하기 전에는 애니메이션을 돌리지 않는다 */
.marquee-track:not(.ready) { animation: none; }

/* 마우스와 키보드 모두로 멈출 수 있어야 한다 (WCAG 2.2.2) */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee-item {
  flex: 0 0 auto;
  padding-inline: 26px;
  display: flex;
  align-items: center;
}
/* 로고는 원래 색상 그대로 노출 */
.marquee-item img {
  height: 40px;
  width: auto;
  transition: transform .3s;
}
.marquee-item:hover img { transform: scale(1.06); }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ==========================================================
   숫자 밴드
   ========================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: #fff;
  padding: 34px 26px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat span { font-size: 0.93rem; color: var(--muted); font-weight: 500; }

/* 숫자 2개만 보여줄 때 — 넓게 두 칸으로 */
.stats.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-inline: auto;
}
.stats.two .stat { padding: 44px 26px; }
.stats.two .stat strong { font-size: clamp(2.3rem, 5vw, 3.4rem); }

.section.navy .stat { background: transparent; }
.section.navy .stats { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.section.navy .stat strong { color: #fff; }
.section.navy .stat span { color: rgba(255,255,255,.7); }

/* ==========================================================
   분할 피처 (사진 + 텍스트)
   ========================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: 96px; }
.split.reverse .split-media { order: 2; }

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line-soft);
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 18px;
}

.split-body h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-bottom: 18px;
}
.split-body > p {
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 24px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--body);
  font-size: 0.97rem;
}
.checklist li strong { color: var(--ink); font-weight: 700; }
.checklist li svg {
  position: absolute;
  left: 0;
  top: 4px;
  width: 19px;
  height: 19px;
  color: var(--accent);
}

/* ==========================================================
   피처 카드 (아이콘 + 제목 + 설명)
   ========================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: #fff;
  padding: 38px 32px;
  transition: background .2s;
}
.feature:hover { background: var(--surface); }
.feature .ico {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 22px;
}
.feature .ico svg { width: 100%; height: 100%; }
.feature h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature p { color: var(--body); font-size: 0.96rem; line-height: 1.75; }

/* 5개 항목 — 빈칸 없이 채워지도록 위 3 / 아래 2 배치 */
.feature-grid.five { grid-template-columns: repeat(6, 1fr); }
.feature-grid.five > .feature { grid-column: span 2; }
.feature-grid.five > .feature:nth-child(4),
.feature-grid.five > .feature:nth-child(5) { grid-column: span 3; }

@media (max-width: 900px) {
  .feature-grid.five { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.five > .feature,
  .feature-grid.five > .feature:nth-child(4),
  .feature-grid.five > .feature:nth-child(5) { grid-column: span 1; }
  .feature-grid.five > .feature:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .feature-grid.five { grid-template-columns: 1fr; }
  .feature-grid.five > .feature,
  .feature-grid.five > .feature:nth-child(4),
  .feature-grid.five > .feature:nth-child(5) { grid-column: span 1; }
}

.section.navy .feature-grid { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.section.navy .feature { background: var(--navy-deep); }
.section.navy .feature:hover { background: rgba(255,255,255,.04); }
.section.navy .feature .ico { color: #7fa4ff; }
.section.navy .feature p { color: rgba(255,255,255,.72); }

/* ==========================================================
   프로세스 스텝
   ========================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.steps li {
  background: #fff;
  padding: 26px 22px;
  /* navy 섹션 안에서도 카드가 흰색이므로 글자색을 명시적으로 되돌린다 */
  color: var(--ink);
}
.steps .num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.steps .label {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ==========================================================
   실적 카드 (사진 중심)
   ========================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.work {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.work:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(13, 49, 125, .11);
  border-color: #cbd5e1;
}

.work-media {
  position: relative;
  background: var(--line-soft);
  overflow: hidden;
}
.work-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s ease;
}
.work:hover .work-media img { transform: scale(1.04); }

.work-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 31, 82, .88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: var(--radius);
}

.work-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 10px;
}
.work-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.work-body p { font-size: 0.93rem; color: var(--body); line-height: 1.7; }

.work-score {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}
.work-score svg { width: 15px; height: 15px; }

/* 사진 없는 실적 카드 */
.work.textonly .work-media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  color: #fff;
}
.work.textonly .work-media span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 20px;
  line-height: 1.45;
}

/* ==========================================================
   회사 개요 표
   ========================================================== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--navy);
}
.info-table th,
.info-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.97rem;
}
.info-table th {
  width: 120px;
  color: var(--navy);
  font-weight: 700;
  background: var(--surface);
  white-space: nowrap;
}
.info-table td { color: var(--body); }

/* ==========================================================
   연혁
   ========================================================== */
.timeline { max-width: 720px; }
.timeline > li {
  position: relative;
  padding: 0 0 40px 34px;
  border-left: 2px solid var(--line);
}
.timeline > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #fff;
}
.timeline .year {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.year-items li {
  position: relative;
  padding: 6px 0 6px 17px;
  color: var(--body);
  font-size: 0.96rem;
  line-height: 1.65;
}
.year-items li strong { color: var(--ink); font-weight: 700; }
.year-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
}
.year-items li.extra { display: none; }
.timeline > li.expanded .year-items li.extra { display: block; }

.timeline-more {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
}
.timeline-more:hover { background: #dbe6ff; }
.timeline-more svg { width: 15px; height: 15px; transition: transform .2s; }
.timeline > li.expanded .timeline-more svg { transform: rotate(180deg); }

/* ==========================================================
   대표 약력
   ========================================================== */
/* 대표 소개 — 사진 + 약력 */
.ceo-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.ceo-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(170deg, var(--accent-soft) 0%, #dfe8fb 100%);
}
.ceo-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.ceo-name {
  margin-top: 18px;
}
.ceo-name strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.ceo-name span { color: var(--muted); font-size: 0.95rem; }

.ceo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  background: #fff;
}

@media (max-width: 860px) {
  .ceo-wrap { grid-template-columns: 1fr; gap: 28px; }
  .ceo-photo { max-width: 280px; }
  .ceo-card { padding: 24px 22px; }
}
.ceo-list li {
  padding: 11px 0 11px 26px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  color: var(--body);
  font-size: 0.96rem;
}
.ceo-list li:last-child { border-bottom: none; }
.ceo-list li::before {
  content: "現";
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent);
}

/* ==========================================================
   공지사항
   ========================================================== */
.notice-list { border-top: 2px solid var(--navy); }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 8px;
  transition: background .16s;
}
.notice-list a:hover { background: var(--surface); }
.notice-list .title { font-weight: 600; }
.notice-list .badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 3px 9px;
  margin-right: 10px;
  vertical-align: 2px;
}
.notice-list .date { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }

/* ---------- 게시판 ---------- */
.board-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.board-filter button {
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.board-filter button:hover { border-color: var(--accent); color: var(--accent); }
.board-filter button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.board { border-top: 2px solid var(--navy); }
.board-item { border-bottom: 1px solid var(--line); }
.board-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 10px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background .16s;
}
.board-head:hover { background: var(--surface); }
.board-cat {
  flex-shrink: 0;
  display: inline-block;
  min-width: 54px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 4px 10px;
}
.board-cat.notice { background: var(--navy); color: #fff; }
.board-cat.hiring { background: #065f46; color: #fff; }
.board-cat.news   { background: var(--accent-soft); color: var(--accent); }

.board-title { flex: 1; font-weight: 600; letter-spacing: -0.01em; min-width: 0; }
.board-date { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.board-head .chev {
  width: 18px; height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s;
}
.board-item.open .chev { transform: rotate(180deg); }

.board-body {
  display: none;
  padding: 4px 10px 28px;
  color: var(--body);
  line-height: 1.85;
  white-space: pre-line;
  font-size: 0.97rem;
}
.board-item.open .board-body { display: block; }
.board-body strong { color: var(--ink); }

.board-empty {
  padding: 48px 10px;
  text-align: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 560px) {
  .board-head { flex-wrap: wrap; gap: 8px 12px; padding: 18px 6px; }
  .board-title { flex: 1 1 100%; order: 3; }
  .board-date { order: 2; margin-left: auto; }
}

/* ==========================================================
   문의
   ========================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.contact-info > p { color: var(--body); margin-bottom: 28px; line-height: 1.75; }
.contact-info li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-info li svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info li div { min-width: 0; }
.contact-info .k {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.contact-info .v { color: var(--ink); font-weight: 600; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.form-group .hint { font-weight: 500; color: var(--muted); font-size: 0.84rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  /* 고대비 모드에서도 초점이 보이도록 아웃라인을 없애지 않는다 */
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

/* 스팸봇 유인용 숨은 칸 — 화면과 스크린리더 모두에서 제외 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 전송 결과 안내 */
.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.6;
}
.form-status:empty { display: none; }
.form-status.ok {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.form-status.err {
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius);
  padding: 14px 16px;
}

/* 전송 중에는 버튼을 눌러도 반응하지 않도록 */
.contact-form button[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* ==========================================================
   CTA 밴드
   ========================================================== */
.cta-band {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.cta-band .cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.cta-band .cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,31,82,.95), rgba(13,49,125,.8));
}
.cta-band .container {
  position: relative;
  z-index: 1;
  padding-block: 84px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin-bottom: 14px;
}
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================
   푸터
   ========================================================== */
.site-footer {
  background: #0a1428;
  color: #94a3b8;
  padding-block: 60px 40px;
  font-size: 0.93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.footer-info p { margin-bottom: 5px; line-height: 1.7; }
.footer-info .biz { color: #8b9cb3; font-size: 0.88rem; margin-top: 14px; }

.footer-nav h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { transition: color .18s; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #8b9cb3;
}

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 1024px) {
  .split { gap: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .header-cta { display: none; }
  .gnb {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
  }
  .gnb.open { display: flex; }
  .gnb a { padding: 13px 14px; font-size: 1rem; }

  .hero { min-height: 520px; }
  .hero .container { padding-block: 74px; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(8,31,82,.9) 0%, rgba(13,49,125,.86) 100%);
  }

  .section { padding-block: 68px; }
  .section-head { margin-bottom: 38px; }
  .page-header .container { padding-block: 60px; }

  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .split + .split { margin-top: 56px; }

  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 28px 22px; }
  .ceo-card { padding: 26px 22px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-band .container { padding-block: 62px; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .info-table th { width: 92px; padding: 13px 12px; font-size: 0.9rem; }
  .info-table td { padding: 13px 12px; font-size: 0.92rem; }
}

@media (max-width: 520px) {
  .marquee::before, .marquee::after { width: 44px; }
  .marquee-item { padding-inline: 18px; }
  .marquee-item img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.marquee-track) {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  /* 로고 흐름은 유지하되 속도를 낮춘다.
     마우스 hover / 키보드 focus 로 언제든 멈출 수 있다. */
  .marquee-track { animation-duration: 90s !important; }
  .marquee-track.rtl { animation-duration: 100s !important; }
}
