/* ==========================================================================
   J-Company Website — Stylesheet
   Design system: Steel Blue + White, traditional corporate
   ========================================================================== */

/* ----- 1. Reset & Variables ---------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --c-primary:        #1E3A5F;   /* Steel Blue */
  --c-primary-dark:   #112744;   /* Deep navy hover */
  --c-primary-light:  #2C4F7C;
  --c-accent:         #B8923B;   /* Subdued gold (decorative use) */
  --c-accent-dark:    #8C6B22;   /* WCAG AA-safe for white text */
  --c-accent-soft:    #E5D4A1;

  /* Neutrals */
  --c-bg:             #FFFFFF;
  --c-bg-soft:        #F5F7FA;
  --c-bg-section:     #FAFBFD;
  --c-border:         #E2E8F0;
  --c-border-strong:  #CBD5E0;

  /* Text */
  --c-text:           #1A202C;
  --c-text-body:      #2D3748;
  --c-text-muted:     #4A5568;
  --c-text-soft:      #5A6A7E;   /* WCAG AA on white (5.9:1) */
  --c-text-on-dark:   #E2E8F0;

  /* Layout */
  --container:        1200px;
  --container-narrow: 980px;
  --gutter:           24px;
  --header-h:         84px;
  --radius:           4px;
  --radius-lg:        6px;
  --radius-pill:      2px;       /* tight chip/tag rounding (formerly hardcoded 2px) */
  --shadow-sm:        0 1px 2px rgba(15, 34, 64, 0.06);
  --shadow:           0 4px 16px rgba(15, 34, 64, 0.08);

  /* Type */
  --f-serif:          "Noto Serif KR", "Nanum Myeongjo", "Times New Roman", serif;
  --f-sans:           "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
                      "Malgun Gothic", "맑은 고딕", "Helvetica Neue", Arial, sans-serif;
  --f-mono:           "JetBrains Mono", "Consolas", monospace;
}

/* ----- 2. Base ----------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  color: var(--c-text-body);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 한글: 어절(단어) 단위 줄바꿈 / 영문: 단어 사이 줄바꿈 (긴 영단어만 강제 분리) */
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 영문 구간은 어절 단위 강제 해제 — 짧은 영단어 줄 끝 비대칭 방지 */
[lang="en"] { word-break: normal; }
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  color: var(--c-text);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { color: var(--c-text-body); }

/* ----- 3. Layout helpers ------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
}
section { padding: 96px 0; }
.section-light  { background: var(--c-bg); }
.section-soft   { background: var(--c-bg-soft); }
.section-dark   { background: var(--c-primary); color: var(--c-text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #FFFFFF; }

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
  position: relative;
  padding: 0 28px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--c-accent);
}
.section-head .eyebrow::before { left: 0; }
.section-head .eyebrow::after  { right: 0; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ----- 4. Header / Navigation ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .top-bar {
  background: var(--c-primary-dark);
  color: var(--c-text-on-dark);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.site-header .top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.site-header .top-bar a { color: var(--c-text-on-dark); }
.site-header .top-bar a:hover { color: var(--c-accent-soft); }
.top-bar .info-list { display: flex; gap: 22px; }
.top-bar .info-list span { opacity: 0.85; }

.site-header .nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
}
.site-header .brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-primary);
}
.site-header .brand .mark {
  width: 64px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header .brand .mark img,
.site-header .brand .mark svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.site-header .brand .text-wrap { line-height: 1.15; }
.site-header .brand .name {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--c-primary);
  letter-spacing: 0.02em;
}
.site-header .brand .sub {
  font-size: 0.72rem;
  color: var(--c-text-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header nav.primary { display: flex; align-items: center; gap: 4px; }
.site-header nav.primary a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--c-text-body);
  padding: 14px 20px;
  position: relative;
}
.site-header nav.primary a:hover,
.site-header nav.primary a.is-active {
  color: var(--c-primary);
}
.site-header nav.primary a.is-active::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 6px;
  height: 2px;
  background: var(--c-accent);
}

.lang-toggle {
  display: flex; align-items: center;
  border: 1px solid var(--c-border-strong);
  border-radius: 2px;
  margin-left: 16px;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--c-text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--c-primary);
  color: #fff;
}
.lang-toggle button[disabled],
.lang-toggle button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  position: relative;
}
.lang-toggle button[disabled]::after,
.lang-toggle button[aria-disabled="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Header staff-link — 임직원 전용 시스템 바로가기 */
.staff-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 3px 7px;
  border: 1px solid var(--c-border-strong);
  border-radius: 2px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  text-decoration: none;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.staff-link:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
  background: var(--c-bg-soft);
}
.staff-link__icon {
  width: 11px;
  height: 11px;
  display: block;
  flex-shrink: 0;
}
.staff-link + .lang-toggle { margin-left: 8px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-primary);
  margin: 5px 0;
}

/* ----- 5. Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(135deg, rgba(17, 39, 68, 0.92) 0%, rgba(30, 58, 95, 0.78) 100%),
    repeating-linear-gradient(135deg, transparent 0 40px, rgba(255,255,255,0.02) 40px 41px),
    var(--c-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(184, 146, 59, 0.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 1;
}
/* Hero technical grid — single fade-in then static (defense tone: composed, not animated) */
.hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(229, 212, 161, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 212, 161, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  animation: hero-grid-settle 1.6s ease-out 1 both;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
@keyframes hero-grid-settle {
  from { background-position: -16px -16px, -16px -16px; opacity: 0; }
  to   { background-position: 0 0, 0 0; opacity: 1; }
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
  border-left: 3px solid var(--c-accent);
  padding-left: 14px;
  margin-bottom: 24px;
}
.hero h1 {
  color: #fff;
  font-size: 3.2rem;
  line-height: 1.25;
  max-width: 820px;
  margin-bottom: 28px;
  font-weight: 600;
}
.hero h1 strong { color: var(--c-accent-soft); font-weight: 700; }
.hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.85;
}
.hero .hero-meta {
  display: flex; gap: 64px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 720px;
}
.hero .hero-meta div { color: rgba(255,255,255,0.95); }
.hero .hero-meta .num {
  font-family: var(--f-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-accent-soft);
  display: block;
  line-height: 1;
}
.hero .hero-meta .label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-top: 8px;
  color: rgba(255,255,255,0.7);
}

/* Sub-page hero */
.page-hero {
  background:
    linear-gradient(135deg, rgba(17, 39, 68, 0.94) 0%, rgba(30, 58, 95, 0.85) 100%),
    var(--c-primary-dark);
  color: #fff;
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 64px; height: 3px;
  background: var(--c-accent);
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
  margin-bottom: 18px;
}
.page-hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,0.78); max-width: 720px; margin: 0 auto; }

/* ----- 6. Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-border-strong);
}
.btn-ghost:hover { border-color: var(--c-primary); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- 7. Cards / Grids -------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.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 {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 36px 32px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow);
}
.num-tag {
  font-family: var(--f-serif);
  color: var(--c-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  display: inline-block;
}
.card .num-tag {
  margin-bottom: 16px;
  display: block;
}
.card h3 {
  margin-bottom: 12px;
  color: var(--c-primary);
  font-size: 1.25rem;
}
.card p { color: var(--c-text-muted); font-size: 0.95rem; line-height: 1.75; }

.card .icon-box {
  width: 56px; height: 56px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  display: grid; place-items: center;
  color: var(--c-primary);
  margin-bottom: 22px;
}
.card .icon-box svg { width: 26px; height: 26px; }

/* Feature card variant for business/defense */
.card.is-feature {
  padding: 0;
  overflow: hidden;
  /* grid stretch 시 stripe가 항상 카드 하단에 고정되도록 컬럼 flex */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card.is-feature .card-body {
  padding: 32px;
  /* body가 남는 공간 채워 stripe를 하단으로 밀어냄 */
  flex: 1 1 auto;
}
.card.is-feature .tag {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  margin-bottom: 14px;
}
/* Accent (gold) tags need dark text for WCAG AA contrast */
.card.is-feature .tag[style*="--c-accent"],
.tag--accent {
  color: var(--c-primary-dark) !important;
}
.card.is-feature .stripe {
  height: 4px;
  background: var(--c-accent);
}

/* ----- 8. Tables --------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--c-border);
}
.data-table thead {
  background: var(--c-primary);
  color: #fff;
}
.data-table th, .data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.data-table th {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.data-table tbody tr:nth-child(even) { background: var(--c-bg-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.data-table .status.done    { background: #E6F0E6; color: #2F5F2F; }
.data-table .status.ongoing { background: #FFF4E0; color: #8C5A00; }
.data-table .status.plan    { background: #E0EAF5; color: var(--c-primary); }

/* ----- 9. Stat / Metric Bar ---------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--c-border);
}
.metrics > div {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--c-border);
}
.metrics > div:last-child { border-right: 0; }
.metrics .value {
  font-family: var(--f-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
}
.metrics .unit {
  font-size: 1rem;
  color: var(--c-text-soft);
  margin-left: 4px;
  font-weight: 500;
}
.metrics .label {
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  text-transform: uppercase;
}

/* ----- 10. Timeline ------------------------------------------------------ */
.timeline {
  position: relative;
  padding: 8px 0 8px 32px;
  border-left: 2px solid var(--c-border);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px; top: 6px;
  width: 14px; height: 14px;
  background: #fff;
  border: 3px solid var(--c-accent);
  border-radius: 50%;
}
.timeline-item .year {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.timeline-item p { color: var(--c-text-body); }

/* ----- 11. CEO / Bio ----------------------------------------------------- */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.bio-grid.is-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.bio-card {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 40px 36px;
  position: relative;
}
.bio-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--c-accent);
}
.bio-card .role {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.bio-card .name {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 6px;
}
.bio-card .name .en {
  font-size: 0.95rem;
  color: var(--c-text-soft);
  font-weight: 500;
  margin-left: 8px;
  font-family: var(--f-sans);
}
.bio-card .specialty {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}
.bio-card ul { list-style: none; }
.bio-card li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--c-text-body);
}
.bio-card li .yr {
  font-weight: 600;
  color: var(--c-primary);
  font-family: var(--f-serif);
}

/* ----- 12. Logo strip ---------------------------------------------------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--c-border);
  background: #fff;
}
.logo-strip > div {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--c-border);
  display: grid; place-items: center;
  font-family: var(--f-serif);
  font-weight: 600;
  color: var(--c-primary);
  font-size: 1rem;
  letter-spacing: 0.02em;
  min-height: 96px;
}
.logo-strip > div:last-child { border-right: 0; }
.logo-strip .partner-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  margin: 0 auto;
}
.logo-strip .sub {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--c-text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ----- 13. Footer -------------------------------------------------------- */
.site-footer {
  background: #0B1B33;
  color: rgba(255,255,255,0.75);
  padding: 72px 0 24px;
  font-size: 0.92rem;
}
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--f-sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.site-footer .foot-brand .foot-logo {
  width: 96px;
  height: 70px;
  display: block;
  margin-bottom: 14px;
}
.site-footer .foot-brand .foot-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.site-footer .foot-brand .lname {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.site-footer .foot-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 360px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }
.site-footer .info-line {
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.site-footer .copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.site-footer .copyright .legal { display: flex; gap: 22px; }

/* ----- 13.5  Image figures / galleries ----------------------------------- */
.figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  overflow: hidden;
  /* grid에서 stretch될 때 caption이 항상 하단에 붙도록 컬럼 flex 사용 */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--c-bg-soft);
}
.figure > .figure-frame {
  /* figure-frame이 있는 경우 남는 공간을 차지해 이미지 영역이 균일하게 확장됨 */
  flex: 1 1 auto;
}
.figure figcaption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  letter-spacing: 0.02em;
  /* figure-frame 없이 img 직접 사용 케이스 대비 — caption을 하단으로 밀어냄 */
  margin-top: auto;
}
.figure figcaption strong {
  color: var(--c-primary);
  font-family: var(--f-serif);
  font-weight: 700;
  margin-right: 8px;
}
.figure-frame {
  background: var(--c-bg-soft);
  padding: 24px;
  display: grid;
  place-items: center;
  min-height: 240px;
}
.figure-frame img {
  max-width: 100%;
  max-height: 360px;
  height: auto;
  width: auto;
  display: block;
}
.image-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
.image-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.image-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* CEO portrait photo on bio card */
.bio-card .photo {
  width: 130px;
  height: 168px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  margin-bottom: 22px;
  position: relative;
}
.bio-card .photo::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  background: var(--c-accent);
}
.bio-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.bio-card .photo-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--c-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 10px;
}

@media (max-width: 960px) {
  .image-grid.cols-2,
  .image-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ----- 14. Misc utilities ------------------------------------------------ */
.eyebrow-inline {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
}
.divider {
  height: 1px;
  background: var(--c-border);
  margin: 64px 0;
}
.text-muted { color: var(--c-text-muted); }
.text-primary { color: var(--c-primary); }
.text-white { color: #fff; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* CTA banner */
.cta-banner {
  background: var(--c-primary);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 60px, rgba(255,255,255,0.025) 60px 61px);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 560px; }

/* Tech list (for defense/about) */
.tech-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--c-border);
}
.tech-list > div {
  padding: 22px 24px;
  border-bottom: 1px solid var(--c-border);
}
.tech-list .label {
  background: var(--c-bg-soft);
  font-family: var(--f-serif);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.04em;
  font-size: 1rem;
  display: flex; align-items: center;
}
.tech-list .label .en {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  color: var(--c-text-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}
.tech-list .value {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.92rem; color: var(--c-text-body);
}
.tech-list .chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--c-border-strong);
  background: #fff;
  font-size: 0.85rem;
  color: var(--c-text-body);
  border-radius: 2px;
}

/* Frequency band card */
.freq-bands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--c-border);
  background: #fff;
}
.freq-bands > div {
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid var(--c-border);
}
.freq-bands > div:last-child { border-right: 0; }
.freq-bands .band {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary);
}
.freq-bands .range {
  font-size: 0.8rem;
  color: var(--c-text-soft);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Project list (business sub-sections) */
.project-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--c-border);
}
.project-section:last-child { border-bottom: 0; }
.project-section .meta {
  display: inline-flex; gap: 12px; align-items: center;
  margin-bottom: 14px;
}
.project-section .meta .pid {
  font-family: var(--f-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-accent);
}
.project-section .meta .partner {
  font-size: 0.85rem;
  color: var(--c-text-soft);
  letter-spacing: 0.04em;
}
.project-section h2 { font-size: 1.9rem; margin-bottom: 14px; }
.project-section .sublead { color: var(--c-text-muted); margin-bottom: 36px; max-width: 760px; }
.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.project-grid .visual {
  background: linear-gradient(135deg, var(--c-bg-soft) 0%, #E2EAF5 100%);
  border: 1px solid var(--c-border);
  height: 320px;
  display: grid; place-items: center;
  color: var(--c-primary);
  font-family: var(--f-serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 24px;
  position: relative;
}
.project-grid .visual::after {
  content: "";
  position: absolute;
  top: 16px; left: 16px; right: 16px; bottom: 16px;
  border: 1px solid rgba(30, 58, 95, 0.2);
  pointer-events: none;
}
.feature-list {
  list-style: none;
}
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
}
.feature-list li::before {
  content: "■";
  color: var(--c-accent);
  font-size: 0.75rem;
  margin-top: 6px;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .h {
  font-weight: 600;
  color: var(--c-text);
  font-size: 0.98rem;
  display: block;
  margin-bottom: 2px;
}
.feature-list .d {
  font-size: 0.88rem;
  color: var(--c-text-muted);
}

/* Info list (contact) */
.info-list-block {
  background: #fff;
  border: 1px solid var(--c-border);
}
.info-list-block .row {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-border);
}
.info-list-block .row:last-child { border-bottom: 0; }
.info-list-block .k {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.info-list-block .v { color: var(--c-text-body); font-size: 0.95rem; }

/* ----- 15. Responsive --------------------------------------------------- */
@media (max-width: 960px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 64px 0; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 2.2rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics > div:nth-child(2n) { border-right: 0; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .logo-strip > div:nth-child(3n) { border-right: 0; }
  .freq-bands { grid-template-columns: repeat(3, 1fr); }
  .freq-bands > div:nth-child(3n) { border-right: 0; }

  .bio-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: 1fr; }
  .tech-list .label { padding: 14px 18px; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .menu-toggle { display: block; }
  .site-header nav.primary {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 12px 0;
    display: none;
  }
  .site-header nav.primary.is-open { display: flex; }
  .site-header nav.primary a { padding: 12px 24px; }
  .site-header nav.primary a.is-active::after { display: none; }
  .staff-link { margin: 8px 24px 4px; align-self: flex-start; }
  .staff-link + .lang-toggle { margin-left: 24px; }
  .lang-toggle { margin: 12px 24px; align-self: flex-start; }

  .top-bar .info-list { display: none; }

  .hero .hero-meta { gap: 24px; }
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .info-list-block .row { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   A11y — focus-visible, skip-link
   ========================================================================== */

:focus { outline: 0; }
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.btn:focus-visible,
button:focus-visible,
.lang-toggle button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}
.site-header nav.primary a:focus-visible,
.site-footer a:focus-visible,
.top-bar a:focus-visible {
  outline: 2px solid var(--c-accent-soft);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--c-primary);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

main:focus { outline: 0; }
main { display: block; }
:target { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ==========================================================================
   Icons — inline SVG via mask
   ========================================================================== */

.ico {
  display: inline-block;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.ico-pin {
  width: 13px; height: 13px;
  margin-right: 6px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.ico-mail {
  width: 14px; height: 14px;
  margin-right: 6px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Component utilities — extracted from inline patterns
   ========================================================================== */

/* Panel — neutral white card */
.panel {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 28px;
}
.panel--md { padding: 32px; }
.panel--lg { padding: 48px; }

/* Split grid — featured side-by-side panels (responsive) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.split-grid--equal {
  grid-template-columns: 1fr 1fr;
}

/* Callout — left-bordered emphasis box */
.callout {
  background: var(--c-bg-soft);
  padding: 22px 24px;
  border-left: 3px solid var(--c-primary);
}
.callout--accent { border-left-color: var(--c-accent); }
.callout--lg { padding: 28px 32px; }
.callout .callout-label {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.callout--accent .callout-label { color: var(--c-accent); }

/* Key-value mini table (label / detail rows) */
.kv-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.kv-table tr { border-bottom: 1px solid var(--c-border); }
.kv-table tr:last-child { border-bottom: 0; }
.kv-table td {
  padding: 14px 0;
  font-size: 0.93rem;
  vertical-align: top;
}
.kv-table td.kv-key {
  width: 130px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-accent);
}
.kv-table td.kv-key--primary { color: var(--c-primary); }

/* Hero CTA row */
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Center utility */
.text-center { text-align: center; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Legal document — privacy / terms */
.legal-doc { background: #fff; border: 1px solid var(--c-border); padding: 48px 56px; line-height: 1.85; color: var(--c-text-body); }
.legal-doc h2 { color: var(--c-primary); font-size: 1.25rem; margin: 32px 0 12px; }
.legal-doc ul { padding-left: 22px; margin: 12px 0 0; }
.legal-doc .legal-meta { color: var(--c-text-muted); margin-bottom: 32px; font-size: 0.95rem; }
.legal-doc .legal-postscript { background: var(--c-bg-soft); padding: 24px 28px; margin-top: 32px; border-left: 3px solid var(--c-accent); }
.legal-doc .legal-postscript .label { font-family: var(--f-serif); font-weight: 700; color: var(--c-primary); margin-bottom: 8px; }
.legal-doc .contact-officer { background: var(--c-bg-soft); padding: 24px 28px; margin-top: 12px; border-left: 3px solid var(--c-primary); }
.legal-doc .contact-officer .label { font-family: var(--f-serif); font-weight: 700; color: var(--c-primary); margin-bottom: 8px; }
.legal-doc .contact-officer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }

/* Quick TOC card (business.html) */
.toc-card { padding: 22px 24px !important; text-decoration: none; }
.toc-card .toc-title { font-size: 1.05rem; margin: 6px 0 4px; font-weight: 700; color: var(--c-primary); }
.toc-card .toc-desc  { font-size: 0.85rem; margin: 0; color: var(--c-text-muted); }

/* Mini list pill — small project chips inside panels */
.list-pill {
  padding: 12px 16px;
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-primary);
}
.list-pill--accent { border-left-color: var(--c-accent); }

/* Card footer hint (contact channels) */
.card-hint {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* Country flag row (business.html ESL roadmap) */
.country-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.country-flag {
  width: 44px; height: 30px;
  display: grid; place-items: center;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-serif); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.05em;
}
.country-flag--accent { background: var(--c-accent); }
.country-flag--muted  { background: var(--c-text-soft); }
.country-row .country-label { font-weight: 600; color: var(--c-primary); }
.country-row + h3 { font-size: 1.1rem; }

/* Project-page reusable components (extracted from inline styles) */
.panel + .panel { margin-top: 16px; }
.panel > p:last-child { margin: 0; color: var(--c-text-body); }

.timeline-mini {
  margin-top: 22px;
  padding: 18px;
  background: var(--c-bg-soft);
}
.timeline-mini__head {
  font-family: var(--f-serif);
  font-weight: 700;
  color: var(--c-primary);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.timeline-mini__table { width: 100%; font-size: 0.9rem; }
.timeline-mini__table td { padding: 4px 0; }
.timeline-mini__table td:first-child {
  width: 120px;
  color: var(--c-text-soft);
}

.h-primary { color: var(--c-primary); margin-bottom: 16px; }
.h-primary--lg { margin-bottom: 22px; }
.h-primary--xl { font-size: 1.6rem; margin-bottom: 12px; }

/* Spec table — vertical key/value rows (defense.html roadmap tables) */
.spec-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}
.spec-table tr { border-bottom: 1px solid var(--c-border); }
.spec-table td { padding: 14px 0; font-size: 0.93rem; vertical-align: top; }
.spec-table td.spec-key {
  font-size: 0.85rem;
  color: var(--c-primary);
  font-weight: 700;
}
.spec-table td.spec-key--accent { color: var(--c-accent); }
.spec-table td.spec-key--w130   { width: 130px; }

.text-soft-sm { color: var(--c-text-soft); font-size: 0.85rem; }

/* Dark info label (location white card) */
.dark-label { font-size: 0.78rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); text-transform: uppercase; margin-bottom: 4px; }

/* Sub-section heading (project pages) */
.sub-h { color: var(--c-primary); margin: 56px 0 22px; }
.sub-h--top { margin-top: 0; }

/* Top-bar inline separator (e.g. middot between address and email) */
.top-bar .info-list .sep { opacity: 0.5; }

/* Image grid bottom spacing (project sections) */
.image-grid + h3,
.image-grid + .grid,
.image-grid + .project-grid,
.image-grid + .metrics { margin-top: 0; }
.image-grid.is-spaced { margin-bottom: 40px; }

/* Inline callout-style label (gold/serif uppercase tag) */
.label-tag {
  display: inline-block;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.label-tag--primary { color: var(--c-primary); }

/* Utility: small spacing helpers used in project pages */
.mb-40 { margin-bottom: 40px; }
.mb-22 { margin-bottom: 22px; }
.mt-28 { margin-top: 28px; }

/* Table responsive wrapper */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-border);
}
.table-scroll > .data-table { border: 0; min-width: 720px; }

/* ==========================================================================
   Breakpoints — 480 / 768 / 1024 (existing 960 below)
   ========================================================================== */

@media (max-width: 1024px) {
  .container { padding: 0 var(--gutter); }
  .hero h1 { font-size: 2.7rem; }
  .split-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  .hero { min-height: 520px; }
  .hero h1 { font-size: 2.2rem; line-height: 1.3; }
  .hero .lead { font-size: 1rem; }
  .hero .hero-meta { gap: 28px; flex-wrap: wrap; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .image-grid.cols-2, .image-grid.cols-3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics > div:nth-child(2n) { border-right: 0; }
  .metrics > div { padding: 24px 16px; }

  .panel--lg, .panel--md { padding: 28px 22px; }
  .callout--lg { padding: 22px 24px; }

  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 10px 12px; }

  .cta-banner { padding: 56px 0; }
  .cta-banner > .container { flex-direction: column; gap: 24px; align-items: flex-start; }

  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .info-list-block .row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .hero h1 { font-size: 1.85rem; }
  .hero .eyebrow { font-size: 0.7rem; }
  .page-hero h1 { font-size: 1.85rem; }
  .section-light, .section-soft { padding: 56px 0; }

  .metrics { grid-template-columns: 1fr; }
  .metrics > div { border-right: 0; border-bottom: 1px solid var(--c-border); padding: 22px 16px; }
  .metrics > div:last-child { border-bottom: 0; }

  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .logo-strip > div:nth-child(2n) { border-right: 0; }

  .freq-bands { grid-template-columns: repeat(3, 1fr); gap: 0; }

  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 24px; }

  .lang-toggle { margin-left: 0; }
  .lang-toggle button { min-width: 32px; min-height: 24px; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.15rem; }
}

/* ==========================================================================
   Interactivity layer — scroll reveal, card lift, marquee, reduced-motion
   ========================================================================== */

/* Scroll reveal — initial hidden, in-view shown */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* Number count-up — small flicker prevention while counting */
.count-up { font-variant-numeric: tabular-nums; }

/* Card hover — lift + soft shadow + accent edge */
.card { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .2s ease; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 34, 64, 0.10);
}
.bio-card { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
.bio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 34, 64, 0.08);
}

/* Figure subtle zoom on hover */
.figure { overflow: hidden; }
.figure img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.figure:hover img { transform: scale(1.03); }

/* Logo strip — infinite marquee */
.logo-strip.is-marquee {
  position: relative;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  border-left: 0;
  border-right: 0;
}
.logo-strip.is-marquee .marquee-track {
  display: inline-flex;
  gap: 0;
  animation: logo-marquee 36s linear infinite;
  width: max-content;
}
.logo-strip.is-marquee .marquee-track > div {
  flex: 0 0 200px;
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--c-border);
  display: grid; place-items: center;
  font-family: var(--f-serif);
  font-weight: 600;
  color: var(--c-primary);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.logo-strip.is-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes logo-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Reduced motion — disable all decorative motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero::after { animation: none; }
  .logo-strip.is-marquee .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
