/* ==========================================================================
   INTOWN — home.css (index.html 전용)
   ========================================================================== */

/* 공통 보조 글자색 대비 보정 — 모든 페이지 CSS 에 같은 값(site.css 토큰이 같은 값으로 바뀌면 지워도 됩니다).
   --fog-3 #6c7585 → #7a8394 (night 위 5.3:1 · night-3 위 4.8:1) · --ink-3 #676e7b → #5f6673 (paper 위 5.2:1 · paper-2 위 4.7:1)
   헤더 · 공통 푸터 · 모바일 메뉴 · 눈썹 라벨 · 서브내비가 모든 페이지에서 같은 회색으로 보입니다. */
:root { --fog-3: #7a8394; --ink-3: #5f6673; }

/* ---------- Hero ----------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--night); isolation: isolate; }
@supports (min-height: 100svh) { .hero { min-height: max(100svh, 720px); } }
.hero__visual { position: absolute; inset: 0; z-index: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2.2s var(--ease-out); }
.hero__canvas.is-ready { opacity: 1; }
.hero__canvas.is-fallback { opacity: 1; background: radial-gradient(60% 70% at 70% 45%, rgba(82, 198, 174, 0.14), transparent 70%), radial-gradient(40% 50% at 85% 60%, rgba(122, 155, 255, 0.12), transparent 70%); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.94) 0%, rgba(5, 7, 12, 0.78) 32%, rgba(5, 7, 12, 0.55) 50%, rgba(5, 7, 12, 0.12) 66%, rgba(5, 7, 12, 0) 78%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.7) 0%, rgba(5, 7, 12, 0) 18%, rgba(5, 7, 12, 0) 72%, rgba(5, 7, 12, 1) 100%);
}
.hero__inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + clamp(40px, 7vh, 96px)); padding-bottom: clamp(40px, 6vh, 72px); }
.hero__eyebrow { color: var(--fog-2); margin-bottom: clamp(20px, 3vh, 32px); }
.hero__title { font-size: clamp(2.875rem, 1.3rem + 5.1vw, 6.5rem); line-height: 1.05; letter-spacing: -0.048em; font-weight: 650; max-width: 11.5em; }
.hero__title .split-line { padding-bottom: 0.04em; }
.hero__lead { text-shadow: 0 0 3px rgba(5, 7, 12, 0.95), 0 0 16px rgba(5, 7, 12, 0.9), 0 0 30px rgba(5, 7, 12, 0.7); margin-top: clamp(22px, 3.2vh, 34px); max-width: 34em; font-size: var(--fs-lead); line-height: 1.7; color: var(--fog-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 4.5vh, 48px); }
.hero__foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px; padding-bottom: 28px; }
.hero__foot .motion-toggle { animation: hero-in 1.2s var(--ease-out) 1s both; }
@keyframes hero-in { from { opacity: 0; } }
@media (min-width: 761px) and (max-width: 1200px) {
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(5, 7, 12, 0.95) 0%, rgba(5, 7, 12, 0.86) 42%, rgba(5, 7, 12, 0.4) 70%, rgba(5, 7, 12, 0) 88%),
      linear-gradient(180deg, rgba(5, 7, 12, 0.7) 0%, rgba(5, 7, 12, 0) 18%, rgba(5, 7, 12, 0) 72%, #05070c 100%);
  }
  .hero__lead { max-width: 34em; }
}

/* 3D 라벨 (포인트 클라우드 위) */
.hero__tags { position: absolute; inset: 0; pointer-events: none; }
.hero-tag { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: calc(0.5 + var(--lit, 0) * 0.5); transition: opacity 0.5s; will-change: transform; }
.hero-tag.is-masked { opacity: 0 !important; }
.hero-tag.is-flip .hero-tag__k, .hero-tag.is-flip .hero-tag__v { left: auto; right: 10px; }
.hero-tag::before { content: ""; position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: #eaf7e0; box-shadow: 0 0 0 3px rgba(163, 220, 116, calc(0.12 + var(--lit, 0) * 0.3)), 0 0 18px rgba(163, 220, 116, calc(var(--lit, 0) * 0.8)); }
.hero-tag::after { content: ""; position: absolute; left: -0.5px; bottom: 5px; width: 1px; height: 34px; background: linear-gradient(to top, rgba(234, 247, 224, 0.6), rgba(234, 247, 224, 0)); }
.hero-tag__k, .hero-tag__v { position: absolute; left: 10px; white-space: nowrap; }
.hero-tag__k { bottom: 64px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-green-hi); text-shadow: 0 1px 8px rgba(5, 7, 12, 0.9); }
.hero-tag__v { bottom: 34px; padding: 5px 10px; border-radius: 6px; background: rgba(9, 13, 21, 0.72); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 0.8125rem; font-weight: 600; color: var(--fog); letter-spacing: -0.01em; }
@media (max-width: 900px) { .hero__tags { display: none; } }

@media (max-width: 760px) {
  .hero__shade { background: linear-gradient(180deg, rgba(5, 7, 12, 0.3) 0%, rgba(5, 7, 12, 0) 16%, rgba(5, 7, 12, 0) 34%, rgba(5, 7, 12, 0.82) 52%, rgba(5, 7, 12, 1) 100%); }
  .hero__inner { justify-content: flex-end; padding-top: 38vh; }
  .hero__title { font-size: clamp(2.125rem, 9.2vw, 2.875rem); }
}

/* 움직임 일시정지 토글 (WCAG 2.2.2) */
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-c2); transition: color 0.25s, box-shadow 0.25s; }
.motion-toggle:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-3); }
.motion-toggle__icon { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--fg) 10%, transparent); color: var(--fg); }
.motion-toggle__icon svg { width: 12px; height: 12px; }
.motion-toggle__play { display: none; }
.is-still .motion-toggle__pause { display: none; }
.is-still .motion-toggle__play { display: block; }
.is-still .marquee__track, .is-still .pin__dot::after, .is-still .badge-soon::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

/* ---------- Statement ------------------------------------------------------ */
.statement { padding-top: clamp(80px, 9vw, 150px); }
.statement .eyebrow { margin-bottom: clamp(28px, 3.5vw, 48px); }
.statement__text { font-size: clamp(1.75rem, 1.05rem + 2.55vw, 3.625rem); line-height: 1.32; letter-spacing: -0.038em; font-weight: 620; max-width: 23em; color: var(--fog); text-wrap: pretty; }
.statement__em { display: block; margin-top: 0.3em; background: var(--grad-brand-hi); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.statement__foot { margin-top: clamp(56px, 7vw, 110px); padding-top: 24px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.statement__foot .t-sm { max-width: 46em; }

/* ---------- AI platforms --------------------------------------------------- */
/* 섹션 머리(.section-head)와 같은 12열 그리드: 목록 1–5열, 뷰어 7–12열 */
.platforms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.platforms__list { grid-column: 1 / span 5; list-style: none; margin: 0; padding: 0; }
.platforms__viewer { grid-column: 7 / span 6; }
.platform { border-top: 1px solid var(--line-d); }
.platform:last-child { border-bottom: 1px solid var(--line-d); }
.platform__body { display: grid; gap: 18px; padding: clamp(32px, 4vw, 56px) 0; }
.platform__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.005em; color: var(--fog-2); }
.platform__index { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--c-green-hi); }
.platform__name { font-size: clamp(1.875rem, 1.2rem + 2.3vw, 3.25rem); line-height: 1.08; letter-spacing: -0.042em; font-weight: 650; }
.platform__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.6s var(--ease-out); }
.platform__name a:hover { background-size: 100% 2px; }
.platform__desc { color: var(--fog-2); font-size: 1rem; line-height: 1.72; max-width: 36em; }
.platform__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.platform__chips li { font-size: 0.8125rem; color: var(--fog-2); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-d-strong); }
.platform__body .link-arrow { justify-self: start; margin-top: 4px; }
.platform__figure { margin: 0 0 clamp(32px, 4vw, 48px); }

/* 데스크톱: 스크롤 연동 뷰어. 원본 그림은 목록 안에 남겨(스크린리더용) 시각적으로만 숨기고,
   뷰어에는 home.js가 만든 aria-hidden 복제본을 띄웁니다. */
@media (min-width: 1081px) {
  .js .platforms.is-enhanced .platform { position: relative; min-height: 58vh; display: flex; align-items: center; }
  .js .platforms.is-enhanced .platform > .platform__figure { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  /* 현재 항목 외에는 흐리게 — 흐린 설명 글도 4.5:1 이상 남도록 0.7 (fog-2 기준 약 4.7:1) */
  .js .platforms.is-enhanced .platform__body { transition: opacity 0.5s var(--ease-out); opacity: 0.7; }
  .js .platforms.is-enhanced .platform.is-active .platform__body,
  .js .platforms.is-enhanced .platform:focus-within .platform__body { opacity: 1; }
  .platforms__viewer { position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100vh - var(--header-h) - 8vh); display: flex; align-items: center; }
  .platforms__stage { position: relative; width: 100%; height: min(100%, 640px); }
  .platforms__stage .platform__figure { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0; transform: translate3d(0, 28px, 0) scale(0.985); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); pointer-events: none; }
  .platforms__stage .platform__figure.is-active { opacity: 1; transform: none; }
}
@media (max-width: 1080px) {
  .platforms__list { grid-column: 1 / -1; }
  .platforms__viewer { display: none; }
}

.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line-d); border-radius: 14px; overflow: hidden; }
.mini-stats > div { padding: 16px 18px; }
.mini-stats > div + div { border-left: 1px solid var(--line-d); }
.mini-stats dt { font-size: 0.75rem; font-weight: 500; letter-spacing: -0.005em; color: var(--fog-2); }
.mini-stats dd { margin: 8px 0 0; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; color: var(--fog); }
.mini-stats dd small { font-size: 0.8125rem; font-weight: 600; margin-left: 2px; color: var(--fog-2); letter-spacing: -0.01em; }
@media (max-width: 560px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } .mini-stats > div:nth-child(3) { border-left: 0; } .mini-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line-d); } }

/* AnyAI 도입 3단계 패널 */
.anyai-panel { position: relative; border-radius: 18px; padding: clamp(24px, 3vw, 40px); background: radial-gradient(120% 90% at 100% 0%, rgba(122, 155, 255, 0.16), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(82, 198, 174, 0.12), transparent 60%), var(--night-3); border: 1px solid var(--line-d-strong); display: grid; gap: 28px; }
.anyai-panel__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.005em; color: var(--fog-2); }
.anyai-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.anyai-steps li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-d); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.anyai-steps li span { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--night); background: var(--grad-brand-hi); }
.anyai-steps li:last-child { background: rgba(122, 155, 255, 0.1); border-color: rgba(122, 155, 255, 0.35); }
.anyai-quote { margin: 0; padding-top: 22px; border-top: 1px solid var(--line-d); }
.anyai-quote p { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.35; }
.anyai-quote footer { margin-top: 8px; font-size: 0.9375rem; color: var(--fog-2); line-height: 1.6; }

/* MES Chatbot 2단 구성 — 원본 폭(539px)보다 크게 늘리지 않음 */
.platform__figure--duo { position: relative; display: block; max-width: 660px; }
.platform__figure--duo .duo-a { width: 82%; }
.platform__figure--duo .duo-b { width: 42%; position: absolute; right: 0; top: 18%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
@media (min-width: 1081px) { .platforms__stage .platform__figure--duo { display: block; } .platforms__stage .platform__figure--duo .duo-a { margin-top: 12%; } }
@media (max-width: 1080px) { .platform__figure--duo { padding-bottom: 24%; } }

/* ---------- Field AI rail -------------------------------------------------- */
/* clip: 포커스 이동 시 브라우저가 섹션을 가로로 스크롤하지 못하게 합니다 */
.field { overflow: hidden; overflow: clip; padding-bottom: clamp(72px, 8vw, 120px); }
.field .section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.field .section-head__title .t-h2 { max-width: 12em; }
.field.is-pinned .section-head__title .t-h2 { max-width: none; }
.rail { position: relative; }
.rail__track { display: flex; gap: clamp(16px, 1.6vw, 24px); padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); width: max-content; will-change: transform; }
.case { position: relative; flex: none; width: clamp(290px, 29vw, 430px); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s; }
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 20, 40, 0.35); border-color: var(--line-strong); }
.case-slot { display: flex; flex: none; }
.case__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c111b; }
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.1s var(--ease-out); }
.case:hover .case__media img { transform: scale(1.045); }
.case__media--light { background: #f1f2ee; }
.case__media--light img { object-fit: contain; object-position: center; padding: 14px; }
.case__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.case__tag span { display: inline-block; font-size: 0.75rem; font-weight: 600; line-height: 1.45; letter-spacing: -0.005em; color: var(--c-blue); }
.case__title { font-size: 1.3125rem; line-height: 1.32; letter-spacing: -0.03em; font-weight: 650; }
.case__desc { font-size: 0.9375rem; line-height: 1.66; color: var(--ink-2); }
.case__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.75rem; line-height: 1.55; color: var(--ink-3); }
.case__more { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); transition: color 0.3s; }
.case__more svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.case:hover .case__more { color: var(--c-blue); }
.case:hover .case__more svg { transform: translateX(3px); }
.case__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.case__link:focus-visible { outline-offset: -3px; }

/* 열화상 AI — 고객사 비공개: 사진 대신 브랜드 팔레트 개념도(실측 데이터 아님) */
.case__media--chart { background: radial-gradient(90% 80% at 85% 100%, rgba(82, 198, 174, 0.12), transparent 60%), #0c111b; }
.tchart { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.1s var(--ease-out); transform-origin: 50% 60%; }
.case:hover .tchart { transform: scale(1.03); }
.tchart__cap { position: absolute; left: 16px; top: 13px; z-index: 1; font-size: 0.6875rem; font-weight: 500; letter-spacing: -0.005em; color: rgba(236, 238, 242, 0.62); }
.tchart__legend { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.6875rem; font-weight: 500; line-height: 1.5; color: rgba(236, 238, 242, 0.78); }
.tchart__legend li { display: inline-flex; align-items: center; gap: 6px; }
.tchart__legend li::before { content: ""; flex: none; }
.tchart__legend .is-meas::before { width: 14px; height: 2px; border-radius: 1px; background: #eceef2; }
.tchart__legend .is-pred::before { width: 14px; height: 2px; background: repeating-linear-gradient(90deg, #52c6ae 0 4px, transparent 4px 7px); }
.tchart__legend .is-band::before { width: 12px; height: 8px; border-block: 1px dashed rgba(236, 238, 242, 0.5); background: rgba(122, 155, 255, 0.16); }
.tchart__legend .is-alarm::before { width: 6px; height: 6px; border-radius: 50%; background: #eceef2; box-shadow: 0 0 0 2px #0c111b, 0 0 0 3px rgba(236, 238, 242, 0.55); margin-inline: 2px; }

.case--more { justify-content: space-between; padding: 28px; background: var(--ink); color: var(--fog); border-color: var(--ink); min-height: 100%; }
.case--more__label { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.15; font-weight: 650; letter-spacing: -0.04em; }
.case--more .btn__icon { width: 56px; height: 56px; background: var(--fog); color: var(--ink); }
.case--more .btn__icon svg { width: 20px; height: 20px; }
.case--more:hover .btn__icon svg { transform: translateX(4px); }
.rail__progress { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.rail__bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); overflow: hidden; }
.rail__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0.08)); }
.rail__hint { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
/* 핀 고정 미사용(터치 · 감속 모드): 네이티브 가로 스크롤 + 진행 막대 */
.rail:not(.is-pinned) { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail:not(.is-pinned)::-webkit-scrollbar { display: none; }
.rail:not(.is-pinned) .case, .rail:not(.is-pinned) .case-slot { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.rail:not(.is-pinned) .case-slot > .case { scroll-snap-align: none; }
.rail.is-pinned { overflow: visible; }
/* 데스크톱 + 감속 모드: 가로 스크롤 대신 3열 그리드 (휠로도 모든 카드에 닿도록) */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .rail:not(.is-pinned) { overflow: visible; }
  .rail:not(.is-pinned) .rail__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; padding-inline: 0; }
  .rail:not(.is-pinned) .case, .rail:not(.is-pinned) .case-slot > .case { width: auto; }
  .rail:not(.is-pinned) .case-slot > .case { flex: 1; min-height: 280px; }
  .field:not(.is-pinned) .rail__progress { display: none; }
}
@media (min-width: 900px) {
  .field.is-pinned { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 20px); padding-bottom: 28px; }
  .field.is-pinned .section-head { margin-bottom: clamp(28px, 3.4vh, 44px); align-items: end; }
  .field.is-pinned .section-head__title { grid-column: 1 / span 8; gap: 16px; }
  .field.is-pinned .section-head__title .t-h2 { font-size: clamp(2rem, 1.1rem + 2.1vw, 3.25rem); }
  .field.is-pinned .section-head__desc { grid-column: 9 / span 4; }
  .field.is-pinned .section-head__desc .t-lead { font-size: 1rem; }
  .field.is-pinned .rail__progress { margin-top: clamp(20px, 3vh, 36px); }
}
@media (min-width: 900px) and (max-height: 820px) {
  .field.is-pinned .case__media { aspect-ratio: 16 / 9; }
  .field.is-pinned .case__desc { font-size: 0.875rem; }
}

/* ---------- Numbers (다크) -------------------------------------------------- */
.numbers { padding-top: clamp(40px, 5vw, 80px); }
/* 위 4칸 · 아래 3칸 — 12열로 나눠 아래 줄도 전체 폭을 채웁니다 */
.stat-grid--4-3 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.stat-grid--4-3 > .stat { grid-column: span 3; }
.stat-grid--4-3 > .stat:nth-child(n + 5) { grid-column: span 4; }
.stat-grid--4-3 > .stat:nth-child(4n + 1) { border-left: 1px solid var(--line-c); padding-left: clamp(16px, 1.8vw, 28px); }
.stat-grid--4-3 > .stat:nth-child(1), .stat-grid--4-3 > .stat:nth-child(5) { border-left: 0; padding-left: 0; }
.stat__num { display: inline-flex; align-items: baseline; }
.stat__value--text { display: block; font-size: clamp(1.75rem, 1.05rem + 1.45vw, 2.625rem); line-height: 1.16; letter-spacing: -0.045em; font-weight: 650; padding-top: 0.08em; }
@media (max-width: 900px) {
  .stat-grid--4-3 > .stat, .stat-grid--4-3 > .stat:nth-child(n + 5) { grid-column: span 6; }
  .stat-grid--4-3 > .stat:nth-child(n) { border-left: 1px solid var(--line-c); padding-left: clamp(16px, 1.8vw, 28px); }
  .stat-grid--4-3 > .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  /* 마지막 한 칸은 두 칸 폭으로 */
  .stat-grid--4-3 > .stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .stat__value--text { font-size: 1.5rem; } }

/* ---------- Track record --------------------------------------------------- */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); }
.group { display: grid; align-content: start; gap: 18px; padding-top: 22px; border-top: 2px solid var(--ink); }
.group__head { display: flex; align-items: center; min-height: 56px; }
.group__name { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1; }
/* 그룹 로고 — 원본 색상 그대로, 글자 높이를 비슷하게 맞춤 */
.group__logo { display: block; width: auto; height: 40px; max-width: 100%; }
.group__logo--s { height: 26px; }
.group__rep { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-2); }
.group__recent { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.group__recent li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; line-height: 1.5; color: var(--ink); }
.group__recent time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); padding-top: 1px; }
@media (max-width: 900px) { .groups { grid-template-columns: 1fr; gap: 44px; } }

.globe { margin-top: clamp(88px, 10vw, 150px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; align-items: center; }
.globe__head { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: center; }
.globe__map { grid-column: 5 / span 8; position: relative; }
.globe__map img { width: 100%; height: auto; }
.globe > .source-note { grid-column: 5 / span 8; }
.globe__pins { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.pin__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-blue); box-shadow: 0 0 0 4px rgba(42, 85, 196, 0.16); }
.pin__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(42, 85, 196, 0.5); animation: ping 2.8s var(--ease-out) infinite; }
.pin:nth-child(3n) .pin__dot::after { animation-delay: 0.9s; }
.pin:nth-child(3n + 1) .pin__dot::after { animation-delay: 1.8s; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.pin__label { position: absolute; left: 14px; top: -11px; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; box-shadow: 0 6px 16px -8px rgba(10, 20, 40, 0.3); }
.pin__label b { font-weight: 700; margin-left: 3px; color: var(--c-blue); }
.pin--hq .pin__dot { background: var(--c-green); box-shadow: 0 0 0 4px rgba(106, 171, 69, 0.2); }
.pin--hq .pin__dot::after { border-color: rgba(106, 171, 69, 0.55); }
.pin--hq .pin__label { background: var(--ink); color: var(--fog); border-color: var(--ink); }
@media (max-width: 960px) {
  .globe__head, .globe__map, .globe > .source-note { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pin__label { font-size: 0.625rem; padding: 2px 6px; left: 9px; top: -9px; }
  .pin__dot { width: 8px; height: 8px; left: -4px; top: -4px; }
  /* 좁은 지도에서 부산 본사 · 베트남 · 인도네시아 라벨이 겹치지 않게: 본사는 점 위, 인도네시아는 점 아래 */
  .pin--hq .pin__label { top: -26px; }
}

/* ---------- Clients & trust ------------------------------------------------ */
.record { padding-bottom: clamp(64px, 7vw, 112px); }
.clients { padding-top: clamp(32px, 4vw, 64px); }
.clients__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.clients__head > .eyebrow { grid-column: 1 / -1; justify-self: start; }
.clients__title { display: grid; gap: 10px; max-width: 900px; }
.clients__head .t-h3 { font-weight: 620; }
@media (max-width: 640px) { .clients__head { grid-template-columns: 1fr; } .clients__head .motion-toggle { justify-self: start; } }
.clients .logo-marquee { border-top: 1px solid var(--line); }
.clients .logo-marquee + .logo-marquee { border-bottom: 1px solid var(--line); }
.trust { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; margin-top: clamp(64px, 8vw, 120px); }
.trust__col { grid-column: 1 / span 4; display: grid; gap: 22px; align-content: start; }
.trust__col--wide { grid-column: 6 / span 7; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; }
.trust__list li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trust__list strong { font-size: 1rem; font-weight: 650; letter-spacing: -0.02em; }
.trust__list span { font-size: 0.875rem; color: var(--ink-3); line-height: 1.5; }
.trust__list--2col { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.trust__logo { display: flex; align-items: center; min-height: 24px; margin-bottom: 4px; }
.trust__logo img { display: block; width: auto; height: 17px; }
/* 두 줄 워드마크 · 심볼이 있는 로고는 글자 크기가 맞도록 더 높게 */
.trust__logo--tall img { height: 35px; }
/* 두 줄 워드마크(현대오토에버) · 심볼 포함(KAIST 오토아이디랩)은 가로 폭이 삼성SDS 워드마크보다 조금 넓게(약 150px) 보이도록 */
.trust__logo--autoever img { height: 44px; }
.trust__logo--autoid img { height: 40px; }
.trust__logo--autoever, .trust__logo--autoid { margin-bottom: 8px; }
/* 삼성SDS 한 줄 워드마크 — 옆의 두 로고와 무게가 맞도록 */
.trust__logo--sds img { height: 24px; }
.trust__logo--sds { margin-bottom: 8px; }
.trust__list .trust__em strong { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.03em; }
.trust__col .link-arrow { justify-self: start; }
@media (max-width: 960px) {
  .trust__col, .trust__col--wide { grid-column: 1 / -1; }
  .trust__list--2col { grid-template-columns: 1fr; }
}

/* ---------- CTA (이 페이지 문구 길이에 맞춘 조정) ----------------------------- */
/* 좁은 화면에서 "인타운이 / 함께하겠습니다"로 쪼개지지 않고 두 줄로 떨어지도록 */
@media (max-width: 440px) { .cta-band__title { font-size: 8.6vw; } }

@media (min-width: 1201px) and (max-width: 1440px) { .hero__lead { max-width: 31em; } }

/* 핀 라벨 방향 (붐비는 유럽 · 일본-부산 구간 겹침 방지): l 왼쪽 · t 위 · b 아래 */
.pin--l .pin__label { left: auto; right: 14px; }
.pin--t .pin__label { left: -24px; top: -36px; }
.pin--b .pin__label { left: -24px; top: 12px; }
@media (max-width: 640px) {
  .pin--l .pin__label { right: 9px; }
  .pin--t .pin__label { left: -18px; top: -26px; }
  .pin--b .pin__label { left: -18px; top: 8px; }
}

/* 좁은 화면: 국가명은 빼고 건수만 작은 배지로 (사업실적 페이지 지도와 같은 방식) — 국가 목록은 위 설명 문단에 있습니다 */
@media (max-width: 640px) {
  .pin:not(.pin--hq) .pin__label { font-size: 0; padding: 0 5px; height: 16px; line-height: 16px; left: 7px; top: -8px; border-radius: 5px; }
  .pin:not(.pin--hq) .pin__label b { margin: 0; font-size: 10px; line-height: 14px; }
  .pin--l:not(.pin--hq) .pin__label { left: auto; right: 7px; }
  .pin--t:not(.pin--hq) .pin__label { left: -8px; top: -25px; }
  .pin--b:not(.pin--hq) .pin__label { left: -8px; top: 9px; }
  .pin--hq .pin__label { font-size: 10px; line-height: 14px; padding: 0 6px; left: -22px; top: 8px; }
}
