/* ============================================================
   TD7VII INC — STAGE 3 디자인
   Design System V2.0 : Blue Ramp · Archivo/Pretendard · 화이트 기본 + 네이비 포인트
   ============================================================ */

:root {
  /* Blue Ramp */
  --navy-ink: #000428;
  --deep-blue: #004E92;
  --indigo: #4D4F99;
  --sky: #51BAEB;
  /* Neutrals */
  --white: #ffffff;
  --ink: #111111;
  --warm-gray: #8A867E;
  --cool-light: #C4CBDB;
  --bg-alt: #F5F7FA;
  --line: #E4E8EF;

  --maxw: 1140px;
  --gutter: 32px;

  --font-en: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ko: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font: var(--font-en), var(--font-ko);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", "Pretendard", "Helvetica Neue", "Apple SD Gothic Neo", Arial, sans-serif;
  color: #1b1e24;
  background: var(--white);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Scroll reveal (스크롤 진입 애니메이션) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .hero-copy > *,
  .has-reveal .hero-visual,
  .has-reveal .section-title,
  .has-reveal .lede,
  .has-reveal .about-main p,
  .has-reveal .about-side,
  .has-reveal .card,
  .has-reveal .step,
  .has-reveal .value-card,
  .has-reveal .role-card,
  .has-reveal .training-card,
  .has-reveal .profiles-grid li,
  .has-reveal .loc,
  .has-reveal .footprint,
  .has-reveal .vision-label,
  .has-reveal .vision-quote,
  .has-reveal .vision-mission,
  .has-reveal .vision-pillars li,
  .has-reveal .product-media,
  .has-reveal .product-info,
  .has-reveal .contact-form,
  .has-reveal .contact-direct,
  .has-reveal .page-title,
  .has-reveal .back-link {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 0.8, 0.3, 1);
  }
  .has-reveal .is-visible { opacity: 1 !important; transform: none !important; }
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 800px; }

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--deep-blue); margin-bottom: 18px;
}
.lede { font-size: 1.22rem; line-height: 1.62; color: #2b3038; margin-bottom: 18px; }
p { margin-bottom: 14px; }
a { color: var(--deep-blue); }

/* 섹션 타이틀: 번호 + 대시 액센트 (디자인 시스템 규칙) */
.section-title {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 28px;
}
.section-title .num {
  font-size: 0.95rem; font-weight: 700; color: var(--sky);
  letter-spacing: 0.1em; position: relative; padding-right: 20px;
}
.section-title .num::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 12px; height: 2px; background: var(--sky);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
/* 앵커 이동 시 스티키 헤더(68px)에 가리지 않도록 여백 확보 */
section[id] { scroll-margin-top: 84px; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy-ink); color: var(--white); padding: 72px 0; }
.section-navy .section-note { color: var(--cool-light); }

/* ---------- Header / Nav ---------- */
#header-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 38px; width: auto; display: block; }
.footer-logo { height: 42px; }

.nav-menu { display: flex; gap: 2px; margin-left: auto; }
.nav-menu a {
  text-decoration: none; color: #2A2F36; font-size: 0.92rem; font-weight: 500;
  padding: 7px 11px; position: relative; border-radius: 8px; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; width: auto;
  height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-menu a:hover { color: var(--navy-ink); }
.nav-menu a:hover::after { transform: scaleX(1); }
/* scrollspy: 현재 보고 있는 섹션 메뉴에 흐린 박스 */
.nav-menu a.active {
  background: rgba(0, 78, 146, 0.09); color: var(--navy-ink); font-weight: 600;
}
.nav-menu a.active::after { transform: scaleX(0); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* 햄버거 버튼 (기본: 데스크톱에서 숨김) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0; border: 1px solid var(--line);
  border-radius: 8px; background: var(--white); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--navy-ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* 열렸을 때 X 모양 */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#lang-switch {
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--navy-ink);
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--deep-blue); color: var(--white); box-shadow: 0 6px 18px rgba(0,78,146,0.25); }
.btn-primary:hover { background: #013b70; }
.btn-ghost { border-color: var(--deep-blue); color: var(--deep-blue); background: transparent; }
.btn-ghost:hover { background: rgba(0,78,146,0.06); }
.btn-sky { background: var(--sky); color: var(--navy-ink); font-weight: 700; box-shadow: 0 6px 18px rgba(81,186,235,0.35); }
.btn-sky:hover { background: #3aa9df; }

/* ---------- Hero (풀블리드 영상 배경 + 텍스트 오버레이) ---------- */
#hero.has-video {
  position: relative; overflow: hidden;
  min-height: 660px; display: flex; align-items: center;
  padding: 96px 0;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
#hero.has-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 1) 30%,
    rgba(255, 255, 255, 0.5) 100%);
}
#hero.has-video > .container { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 720px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Navy panel (사진/영상 자리) */
.panel-navy {
  background: linear-gradient(135deg, var(--navy-ink) 0%, var(--deep-blue) 100%);
  color: var(--white); border-radius: 14px;
  min-height: 340px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 32px;
  position: relative; overflow: hidden;
}
.panel-navy::after {
  content: ""; position: absolute; width: 220px; height: 220px;
  border: 2px solid rgba(81,186,235,0.35); transform: rotate(45deg);
  right: -70px; bottom: -70px;
}
.panel-tag {
  font-size: 0.72rem; letter-spacing: 0.2em; font-weight: 700;
  color: var(--sky); text-transform: uppercase;
}
.panel-hint { color: var(--cool-light); font-size: 0.9rem; text-align: center; }

/* 영상/네이비 배경 위의 아웃라인 버튼 */
.btn-ghost.on-navy { border-color: rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-ghost.on-navy:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- Trust stats (Big Numbers, on navy) ---------- */
.stats-grid {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.stats-grid li { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; line-height: 1;
  color: var(--white); letter-spacing: -0.02em;
}
.stat-num .plus { color: var(--sky); }
.stat-label {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cool-light); font-weight: 600;
}
.section-note { font-size: 0.78rem; color: var(--warm-gray); margin-top: 22px; margin-bottom: 0; }

/* ---------- Products detail page ---------- */
.back-link { display: inline-block; font-size: 0.9rem; font-weight: 600; margin-bottom: 18px; text-decoration: none; }
.back-link.on-sky { color: var(--sky); }
.page-title { margin-bottom: 18px; }
.product-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
/* reverse 시 컬럼 비율도 뒤집어 이미지 폭을 좌/우 동일(0.9fr)하게 유지 */
.product-detail.reverse { grid-template-columns: 1.1fr 0.9fr; }
.product-detail.reverse .product-media { order: 2; }
.product-media { min-height: 300px; border-radius: 14px; position: relative; overflow: hidden; box-shadow: 3px 3px 3px rgba(0, 4, 40, 0.35); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info h2 { color: var(--navy-ink); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.product-info p { color: #3b414a; font-size: 1.1rem; line-height: 1.65; }
.parts-list { list-style: none; margin: 6px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.parts-list li { position: relative; padding-left: 22px; color: #2b3038; font-size: 1.02rem; }
.parts-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border: 2px solid var(--sky); transform: rotate(45deg); }
.specs-soon { color: var(--warm-gray); font-size: 0.9rem; font-style: italic; margin: 8px 0 22px; }

/* ---------- CanTops product list (products-cantops.html) ---------- */
.ct-listgrid { margin-bottom: 8px; }
.ct-prodcard { display: flex; flex-direction: column; height: 100%; }
.ct-thumb {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 118px; border-radius: 8px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--navy-ink), var(--deep-blue));
}
.ct-thumb span { color: var(--cool-light); font-size: 0.8rem; padding: 0 10px; }
.ct-prodcard p { flex: 1; }
.ct-prodcard .card-more { margin-top: 14px; }

/* ---------- CanTops product detail (cantops-product.html) ---------- */
.ct-detail-title { color: var(--navy-ink); font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 4px 0 6px; }
.ct-detail-img {
  width: 100%; max-width: 560px; height: 300px; margin: 10px 0 30px;
  border-radius: 14px;
}

/* ---------- CanTops catalog blocks (shared) ---------- */
.ct-sectitle { margin-top: 8px; margin-bottom: 24px; }
.ct-sectitle:not(:first-child) { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 56px; }
.ct-page { padding: 28px 0; border-bottom: 1px solid var(--line); }
.ct-page:last-child { border-bottom: none; }
.ct-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.ct-page-head h3 { color: var(--navy-ink); font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.ct-img {
  flex: none; width: 220px; height: 132px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-ink), var(--deep-blue));
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.ct-img span { color: var(--cool-light); font-size: 0.78rem; padding: 0 10px; }

.ct-blocks { display: flex; flex-direction: column; gap: 6px; }
.ct-blabel { color: var(--deep-blue); font-size: 0.95rem; font-weight: 700; margin: 16px 0 8px; }
.ct-lead { font-size: 1.12rem; line-height: 1.6; color: #2b3038; margin: 4px 0 10px; }
.ct-para { color: #3b414a; line-height: 1.65; margin: 4px 0 8px; }
.ct-note { color: var(--warm-gray); font-size: 0.86rem; line-height: 1.5; margin: 6px 0; }

.ct-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.ct-bullets li { position: relative; padding-left: 22px; color: #3b414a; line-height: 1.55; }
.ct-bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border: 2px solid var(--sky); transform: rotate(45deg); }

.ct-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 10px; }
.ct-card { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 14px; background: var(--white); display: flex; flex-direction: column; gap: 4px; }
.ct-card-name { font-weight: 700; color: var(--navy-ink); }
.ct-card-desc { font-size: 0.9rem; color: #4a4f57; line-height: 1.45; }
.ct-badge { align-self: flex-start; background: var(--sky); color: var(--navy-ink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 4px; }

.ct-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 10px; }
.ct-features li { border-left: none; padding: 14px 16px; background: var(--bg-alt); border-radius: 10px; }
.ct-feat-name { display: block; font-weight: 700; color: var(--navy-ink); margin-bottom: 3px; }
.ct-feat-desc { display: block; font-size: 0.95rem; color: #3b414a; line-height: 1.55; }

.ct-kv { border-collapse: collapse; margin: 4px 0 10px; width: 100%; max-width: 620px; }
.ct-kv th, .ct-kv td { text-align: left; padding: 9px 14px; border: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.ct-kv th { background: var(--bg-alt); color: var(--navy-ink); font-weight: 600; width: 40%; }
.ct-kv td { color: #3b414a; }

.ct-table-wrap { overflow-x: auto; margin: 4px 0 10px; }
.ct-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.9rem; }
.ct-table th, .ct-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.ct-table thead th { background: var(--navy-ink); color: var(--white); font-weight: 600; white-space: nowrap; }
.ct-table tbody th { background: var(--bg-alt); color: var(--navy-ink); font-weight: 600; white-space: nowrap; }
.ct-table tbody td { color: #3b414a; }

.cantops-cta { margin-top: 40px; }

/* CanTops 진입 배너 (products.html) */
.cantops-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(115deg, var(--navy-ink) 0%, var(--deep-blue) 100%);
  border-radius: 14px; padding: 30px 34px; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.cantops-banner:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 4, 40, 0.22); }
.cantops-banner h3 { color: var(--white); font-size: 1.5rem; margin: 6px 0; }
.cantops-banner p { color: var(--cool-light); margin: 0; max-width: 620px; }
.cantops-banner-cta { flex: none; color: var(--sky); font-weight: 700; font-size: 1rem; }
@media (max-width: 640px) {
  .cantops-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .ct-page-head { flex-direction: column; }
  .ct-img { width: 100%; height: 150px; }
}

/* Training Programs (products.html) */
.training-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.training-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; background: var(--white);
}
.training-card > .v-diamond,
.training-vr > .v-diamond { width: 12px; height: 12px; border: 2px solid var(--sky); transform: rotate(45deg); display: inline-block; margin-bottom: 14px; }
.training-card h3 { color: var(--navy-ink); margin-bottom: 8px; }
.training-card p { color: #3b414a; font-size: 1rem; line-height: 1.58; margin: 0; }
.training-card.is-link { padding: 0; }
.training-vr { display: block; height: 100%; padding: 26px 24px; text-decoration: none; border-radius: 12px; transition: background 0.2s ease; }
.training-vr h3 { color: var(--navy-ink); margin-bottom: 8px; transition: color 0.2s ease; }
.training-vr p { color: #3b414a; font-size: 1rem; line-height: 1.58; margin: 0; }
.training-card.is-link:hover { border-color: var(--sky); box-shadow: 0 10px 26px rgba(0, 4, 40, 0.08); }
.training-vr .card-more { display: inline-block; margin-top: 14px; }

/* ---------- Vision band (navy) ---------- */
.eyebrow.on-sky { color: var(--sky); }

.vision-band {
  position: relative; overflow: hidden;
  background-color: #000324; /* 이미지 미로드 시 폴백 */
  /* 현장 사진 + 네이비 오버레이 (좌측 진하게 → 우측 사진 노출). DS P5 준수 */
  background-image:
    linear-gradient(100deg, rgba(0,3,32,0.97) 0%, rgba(1,17,50,0.93) 34%, rgba(1,26,62,0.74) 62%, rgba(2,42,92,0.46) 100%),
    url("../assets/vision-bg.jpg");
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
  padding: 104px 0;
}
/* 모바일: 텍스트가 전체폭이라 균일하게 더 어둡게 */
@media (max-width: 720px) {
  .vision-band {
    background-image:
      linear-gradient(rgba(0,4,34,0.92), rgba(1,20,54,0.90)),
      url("../assets/vision-bg.jpg");
    background-position: center, center;
  }
}
/* 배경 다이아몬드 모티프 (은은한 Sky 아웃라인) */
.vision-deco { position: absolute; inset: 0; pointer-events: none; }
.vision-deco .vd { position: absolute; border: 2px solid rgba(81, 186, 235, 0.20); transform: rotate(45deg); }
.vision-deco .vd1 { width: 320px; height: 320px; right: -110px; top: -90px; }
.vision-deco .vd2 { width: 190px; height: 190px; right: 150px; bottom: -110px; border-color: rgba(81, 186, 235, 0.12); }
.vision-deco .vd3 { width: 90px; height: 90px; right: 70px; top: 40px; border-color: rgba(81, 186, 235, 0.28); }

.vision-inner { position: relative; z-index: 1; max-width: 1000px; }
.vision-label { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.v-diamond {
  width: 12px; height: 12px; border: 2px solid var(--sky);
  transform: rotate(45deg); display: inline-block; flex: none;
}
.vision-quote {
  font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.28;
  letter-spacing: -0.02em; color: var(--white); border: none;
}
/* 미션 (비전 아래 지원 문장 — 연하게) */
.vision-mission {
  margin-top: 22px; max-width: 760px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.62;
  color: var(--cool-light); font-weight: 400;
}
/* 세 축 라벨 */
.vision-pillars {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 14px;
  margin-top: 34px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
/* 알약(배지) 형태 — 반투명 채움 + Sky 테두리 */
.vision-pillars li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(81, 186, 235, 0.45);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.vision-pillars li:hover {
  background: rgba(81, 186, 235, 0.14);
  border-color: var(--sky);
}
.vision-pillars li::before {
  content: ""; width: 8px; height: 8px; border: 2px solid var(--sky);
  transform: rotate(45deg); flex: none;
}

/* ---------- About (two-column) ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 48px; align-items: start; }
.about-main .lede { font-size: 1.2rem; margin-bottom: 20px; }
/* intro(큰 텍스트)와 본문(작은 텍스트)을 은은하게 구분하는 짧은 바 */
.soft-divider {
  display: block; width: 44px; height: 3px; border-radius: 3px;
  background: var(--cool-light); margin: 4px 0 22px;
}
.about-side {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px;
}
.about-side h3 { color: var(--navy-ink); margin-bottom: 14px; }
.ind-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ind-list li {
  font-weight: 600; color: #2A2F36; padding-left: 22px; position: relative;
}
.ind-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 9px; height: 9px; border: 2px solid var(--sky);
}

/* ---------- Services (cards) ---------- */
.card-grid {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.card:hover {
  border-color: var(--sky); box-shadow: 0 10px 30px rgba(0,4,40,0.07); transform: translateY(-2px);
}
.card h3 { color: var(--navy-ink); }
.card p { color: #3b414a; font-size: 1rem; line-height: 1.6; margin: 0; }
/* 제품 카드 높이 통일: 제목 2줄 예약 + 설명 최대 3줄(말줄임) */
.card-link h3 { line-height: 1.25; min-height: 2.5em; }
.card-link p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  min-height: 4.8em;
}

/* 클릭 가능한 제품 카드 */
.card-link { display: block; text-decoration: none; height: 100%; }
.card-link h3 { transition: color 0.2s ease; }
.card-link:hover h3 { color: var(--deep-blue); }
.card-more {
  display: inline-block; margin-top: 14px; color: var(--deep-blue);
  font-size: 0.88rem; font-weight: 600; transition: transform 0.15s ease;
}
.card-link:hover .card-more { transform: translateX(3px); }
.products-cta { margin-top: 32px; }

/* ---------- How we work (diamonds) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; padding: 8px; }
.diamond {
  width: 48px; height: 48px; margin: 0 auto 20px;
  border: 2.2px solid var(--deep-blue); transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.diamond::before {
  counter-increment: step; content: counter(step);
  transform: rotate(-45deg); color: var(--sky); font-weight: 800; font-size: 1.1rem;
}
.step h3 { color: var(--navy-ink); }
.step p { color: #3b414a; font-size: 0.98rem; line-height: 1.55; margin: 0; }

/* ---------- Values (numbered cards) ---------- */
.values-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px; background: var(--white);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.value-card .value-num {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; color: var(--sky);
  display: block; margin-bottom: 10px;
}
.value-card h3 { color: var(--navy-ink); margin-bottom: 8px; transition: color 0.22s ease; }
.value-card p { color: #3b414a; font-size: 0.96rem; line-height: 1.55; margin: 0; transition: color 0.22s ease; }
.value-card:hover {
  background: var(--navy-ink); border-color: var(--navy-ink);
  transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 4, 40, 0.18);
}
.value-card:hover h3 { color: var(--white); }
.value-card:hover p { color: var(--cool-light); }
/* 7개 → 4열 배치에서 마지막 줄(3개) 균형: 넓은 화면 4열 유지 */

/* ---------- Locations ---------- */
.locations-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.locations-grid.two { grid-template-columns: repeat(2, 1fr); }
.loc {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  background: var(--white); height: 100%;
}
.loc h3 { color: var(--navy-ink); transition: color 0.22s ease; }
.loc p { color: #3b414a; font-size: 1rem; line-height: 1.6; margin: 0; transition: color 0.22s ease; }
.tag { color: var(--warm-gray); font-size: 0.75em; font-weight: 500; transition: color 0.22s ease; }

/* 클릭 가능한 지역 카드 (구글맵) — 호버 시 네이비 채움 */
.loc-link {
  display: block; text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.loc-more {
  display: inline-block; margin-top: 16px; color: var(--deep-blue);
  font-size: 0.86rem; font-weight: 600; transition: color 0.22s ease, transform 0.15s ease;
}
.loc-link:hover {
  background: var(--navy-ink); border-color: var(--navy-ink);
  transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 4, 40, 0.18);
}
.loc-link:hover h3 { color: var(--white); }
.loc-link:hover p { color: var(--cool-light); }
.loc-link:hover .tag { color: var(--sky); }
.loc-link:hover .loc-more { color: var(--sky); transform: translateX(3px); }
/* U.S. Footprint — 밝은 pill 행 (섹션과 통일, 남색 박스 대체) */
.footprint {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px 24px; flex-wrap: wrap;
}
.footprint-label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--deep-blue);
}
.footprint-label .v-diamond { width: 10px; height: 10px; border: 2px solid var(--sky); transform: rotate(45deg); flex: none; }
.footprint-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.footprint-list li {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 7px 16px; font-weight: 600; font-size: 0.9rem; color: var(--navy-ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footprint-list li:hover { border-color: var(--sky); color: var(--deep-blue); }

/* ---------- Careers (navy) ---------- */
/* 배경 영상 (자동재생·무음·무한반복) + 네이비 오버레이 */
.careers.has-video { position: relative; overflow: hidden; }
.careers-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.careers.has-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    rgba(0, 3, 32, 0.84) 0%,
    rgba(1, 15, 46, 0.78) 45%,
    rgba(1, 24, 60, 0.52) 100%);
}
.careers.has-video > .container { position: relative; z-index: 2; }

.section-title.on-navy { color: var(--white); }
.section-navy .lede { color: var(--white); }
.careers-headline {
  font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--white); margin-bottom: 20px;
}
.careers-headline .accent { color: var(--sky); }
.careers-sub {
  color: var(--cool-light); font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6; max-width: 760px; margin-bottom: 32px;
}

/* Careers 상세 페이지 (careers.html) */
.careers-journey { list-style: none; display: grid; gap: 14px; max-width: 820px; margin-bottom: 12px; }
.careers-journey li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 1.12rem; color: var(--navy-ink); font-weight: 500; line-height: 1.5;
}
.careers-journey li::before {
  content: ""; width: 11px; height: 11px; margin-top: 7px; flex: none;
  border: 2px solid var(--sky); transform: rotate(45deg);
}
.profiles-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.profiles-grid li { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--white); }
.profiles-grid h4 { color: var(--navy-ink); font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.profiles-grid p { color: #3b414a; font-size: 1rem; line-height: 1.55; margin: 0; }
.careers-profiles { margin-top: 12px; }
.careers-apply { margin-top: 8px; }

/* 모집 분야 (Open Roles) — master-detail R&R explorer */
.roles-explorer { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.roles-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.role-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid transparent; border-radius: 10px; padding: 14px 16px;
  background: var(--bg-alt); color: var(--navy-ink);
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.role-item::before {
  content: ""; width: 9px; height: 9px; flex: none;
  border: 2px solid var(--sky); transform: rotate(45deg);
  transition: border-color 0.2s ease;
}
.role-item:hover, .role-item.active { background: var(--navy-ink); color: var(--white); }

.role-detail {
  border: 1px solid var(--line); border-radius: 14px; padding: 32px;
  background: var(--white); min-height: 340px;
}
.role-detail h3 { color: var(--navy-ink); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.role-tagline { color: var(--deep-blue); font-weight: 700; font-size: 1.15rem; margin-bottom: 16px; }
.role-desc { color: #3b414a; font-size: 1.05rem; line-height: 1.68; margin-bottom: 24px; }
.role-focus-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--deep-blue); margin-bottom: 12px;
}
.role-focus { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.role-focus li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-size: 0.86rem; font-weight: 600; color: var(--navy-ink);
}
.role-focus li::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border: 2px solid var(--sky); transform: rotate(45deg);
}
@media (max-width: 820px) {
  .roles-explorer { grid-template-columns: 1fr; }
  .role-detail { min-height: 0; }
}

/* ---------- Contact form ---------- */
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px;
  margin: 8px 0 20px;
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--navy-ink); }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-weight: 400; color: var(--ink); background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(81,186,235,0.18);
}
.contact-form button { grid-column: 1 / -1; justify-self: start; }
.contact-direct { font-size: 0.95rem; color: #4A4F57; }

/* ---------- Partners ---------- */
/* 카드 뒤 배경(유리 효과가 보이도록 브랜드 컬러 그라디언트 + 블롭) */
.partners-stage { position: relative; overflow: hidden; background: linear-gradient(160deg, #eef3fb 0%, #e7eefb 55%, #edf4fc 100%); }
.partners-stage::before, .partners-stage::after { content: ""; position: absolute; border-radius: 50%; filter: blur(72px); z-index: 0; pointer-events: none; }
.partners-stage::before { width: 420px; height: 420px; background: rgba(81,186,235,0.38); top: -90px; left: -70px; }
.partners-stage::after { width: 460px; height: 460px; background: rgba(0,78,146,0.22); bottom: -130px; right: -80px; }
.partners-stage > .container { position: relative; z-index: 1; }

.partners-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 4px; }
/* Glassmorphism 카드 */
.partner-card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 4, 40, 0.12);
  padding: 32px 28px; transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.partner-card:hover { background: rgba(255, 255, 255, 0.62); box-shadow: 0 14px 38px rgba(0, 4, 40, 0.18); transform: translateY(-3px); }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 128px; margin-bottom: 22px; }
.partner-logo img { max-width: 82%; max-height: 100%; object-fit: contain; }
.partner-logo-ph { font-family: var(--font-en); font-weight: 800; font-size: 1.5rem; color: var(--cool-light); letter-spacing: 0.02em; text-align: center; }
.partner-name { font-weight: 700; color: var(--deep-blue); font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; }
.partner-cat { color: #6B7280; font-size: 0.95rem; margin: 0; }
.partner-link { margin-top: 16px; font-weight: 600; color: var(--deep-blue); text-decoration: none; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.partner-link:hover { color: var(--sky); }
.partners-note { text-align: center; max-width: 760px; margin: 0 auto; }
.partners-note h2 { color: var(--navy-ink); margin-bottom: 14px; }
.partners-note p { color: #3b414a; font-size: 1.1rem; line-height: 1.7; margin: 0; }
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partners-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
#footer { background: var(--navy-ink); color: var(--white); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; align-items: start; }
.footer-brand .footer-logo { height: 42px; }
.footer-tagline { color: var(--cool-light); font-size: 0.9rem; line-height: 1.6; margin: 14px 0 0; max-width: 320px; white-space: pre-line; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { color: var(--white); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--cool-light); text-decoration: none; font-size: 0.92rem; padding: 6px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-socials { display: inline-flex; align-items: center; gap: 10px; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  color: var(--white); transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social:hover { background: var(--deep-blue); border-color: var(--deep-blue); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.copyright { color: var(--warm-gray); font-size: 0.82rem; margin: 0; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
  .training-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .locations-grid,
  .locations-grid.two { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .careers-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-detail,
  .product-detail.reverse { grid-template-columns: 1fr; gap: 24px; }
  .product-detail.reverse .product-media { order: 0; }
  .careers-cta-wrap { justify-content: flex-start; }
}
/* 네비게이션 → 햄버거 전환: 메뉴가 겹치기 전에(≤1160px) 햄버거로 */
@media (max-width: 1160px) {
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }

  /* 로고는 왼쪽, 언어선택 + 햄버거는 오른쪽 */
  .nav-actions { margin-left: auto; }

  /* 메뉴를 헤더 아래 드롭다운 패널로 */
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(0, 4, 40, 0.10);
    padding: 6px 0; display: none;
  }
  .nav-open .nav-menu { display: flex; }
  .nav-menu a {
    padding: 15px var(--gutter); width: 100%; font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-menu a::after { display: none; }   /* 드롭다운에선 밑줄 애니메이션 제거 */
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .profiles-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .logo-img { height: 32px; }
}
