/* 홈 5~10칸 — 숫자·수상·고르기(펼쳐지는 카드)·지도. 권유 칸은 components.css(전문상담과 같이 씀). 디자인 시스템 변수만 쓴다(2-4) */

/* eleventy-img가 감싸는 <picture>는 자리를 차지하지 않게 — 안의 img가 칸 크기를 따른다 */
.award-shot picture, .acc-item picture { display: contents; }

/* ── 5 숫자 — 그림 없이 숫자 4칸 한 줄(좁으면 2×2) ── */
.stats { padding: var(--s12) 0; background: var(--surface); }
.stats .wrap { display: grid; gap: var(--s2); }
.stats-eyebrow { color: var(--navy); }
.stats-list { margin-top: var(--s6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats-row { display: grid; gap: var(--s1); padding: var(--s4) var(--s3) var(--s4) 0; }
.stats-row + .stats-row { border-left: 1px solid var(--line); padding-left: var(--s3); }
.stats-num { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: var(--track-tight); color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-label { font-size: 17px; color: var(--ink-2); }
.stats-note { margin-top: var(--s1); font-size: 14px; color: var(--ink-3); } /* 흰 바탕 위 #6E6E73 = 5.1:1 */
.stats-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 줄마다 차례로 — 준비가 끝난 뒤(is-live)에만 숨기고, 화면에 들어오면(is-in) 보인다 */
.stats.is-live .stats-row { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.stats.is-live.is-in .stats-row { opacity: 1; transform: none; }
.stats.is-in .stats-row:nth-child(2) { transition-delay: .08s; }
.stats.is-in .stats-row:nth-child(3) { transition-delay: .16s; }
.stats.is-in .stats-row:nth-child(4) { transition-delay: .24s; }
@media (max-width: 1068px) {
  .stats-num { font-size: 48px; }
  .stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-row:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 734px) {
  .stats { padding: var(--s8) 0; }
  .stats-row { padding: var(--s3) var(--s2) var(--s3) 0; }
  .stats-row + .stats-row { padding-left: var(--s2); }
  .stats-row:nth-child(3) { padding-left: 0; }
  .stats-label { font-size: 15px; }
  .stats-num { font-size: 32px; } /* 두 칸이라 40px이면 360·320에서 45,000+가 칸 밖으로(11-18 확인에서 잼) */
}
@media (max-width: 374px) { .stats-num { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .stats.is-live .stats-row { opacity: 1; transform: none; transition: none; }
}

/* ── 6 증거 — 상패 그림 카드 4열(900 이하 2열, 휴대폰은 그림 왼쪽·글 오른쪽 한 줄) ── */
.awards { padding: var(--s12) 0; background: var(--bg); }
.awards .wrap { display: grid; gap: var(--s2); }
.awards-eyebrow { color: var(--navy); }
.awards-grid { margin-top: var(--s4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.award-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.award-shot { display: block; aspect-ratio: 1; background: #2b3138; }
.award-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.award-text { display: grid; gap: 4px; align-content: start; padding: var(--s2) var(--s3) var(--s3); }
.award-name { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.award-from { font-size: 14px; color: var(--ink-2); }
.award-year { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.awards-note { margin-top: var(--s1); font-size: 14px; color: var(--ink-3); } /* --bg 위 #6E6E73 = 4.9:1 */
@media (max-width: 900px) {
  .awards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 1024까지는 4열 — 2열이면 정사각 그림이 커져 구역이 3,000px 가까이 길어진다 */
}
@media (max-width: 734px) {
  .awards { padding: var(--s8) 0; }
  .award-name { font-size: 16px; }
  .awards-grid { grid-template-columns: 1fr; gap: var(--s2); }
  .award-card { grid-template-rows: none; grid-template-columns: 112px minmax(0, 1fr); border-radius: 18px; }
  .award-shot { aspect-ratio: auto; min-height: 112px; }
  .award-text { padding: var(--s2); align-content: center; }
}


/* ── 7 고르기 — 펼쳐지는 카드 아코디언(PC 가로, 900 이하 세로) ── */
.paths { padding: var(--s12) 0; background: var(--surface); }
.paths .wrap { display: grid; gap: var(--s2); }
.paths-eyebrow { color: var(--navy); }
.path-links { display: flex; flex-wrap: wrap; gap: 8px; }
.path-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .6); color: #fff; font-size: 15px; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.path-link svg { width: 16px; height: 16px; flex: none; }
.path-link:hover { background: #fff; color: var(--navy); }
.path-link:focus-visible { outline-offset: -5px; } /* 펼침용 잘림(.acc-inner overflow)에 바깥 테두리가 잘려 안쪽에 그린다(코리 검수 11-18) */
.acc { container-type: inline-size; margin-top: var(--s6); display: flex; gap: 12px; height: 560px; }
.acc-item { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius-card); overflow: hidden; background: #0b1220; color: #fff; isolation: isolate; }
.acc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
/* 글자 쪽(아래)이 진하다 — 흰 글자가 놓이는 아래 38%까지 0.72 이상 */
.acc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 18, 32, .9) 0%, rgba(11, 18, 32, .72) 38%, rgba(11, 18, 32, .2) 75%, rgba(11, 18, 32, .1) 100%); }
.acc-content { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: var(--s2); padding: var(--s3); }
.acc-h { font: inherit; }
.acc-btn { display: grid; gap: 6px; justify-items: start; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.acc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 8px; }
.acc-no { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, .85); }
.acc-title { font-size: 32px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.acc-desc { font-size: 17px; color: rgba(255, 255, 255, .92); max-width: 46ch; }
.acc-inner { display: grid; gap: var(--s3); }
.acc-item :focus-visible { outline-color: #fff; }
/* JS가 준비를 마친 뒤(is-live)에만 접고 펼친다 — JS가 없으면 세 카드가 같은 폭으로 다 펼쳐진 채 */
.acc.is-live .acc-item { cursor: pointer; transition: flex-grow .6s cubic-bezier(.16, 1, .3, 1); }
.acc.is-live .acc-item.is-open { flex-grow: 2.6; cursor: default; }
.acc.is-live .acc-item.is-open .acc-img { transform: scale(1.03); }
.acc.is-live .acc-inner { width: min(560px, calc((100cqw - 24px) * 2.6 / 4.6 - 48px)); } /* 최종 폭 = 펼친 카드의 안쪽 폭(아코디언 폭 − 간격 12px 두 개, 곱하기 펼침 몫 2.6/4.6, 빼기 좌우 여백 24px 두 개). 미리 줘서 펼치는 동안 문단이 다시 줄바꿈되지 않고, 카드보다 넓어지지도 않는다 */
/* 접힌 카드는 설명이 자리를 차지하지 않게(제목이 바닥에 붙음) — 펼치면 높이가 0fr → 1fr로 자란다 */
.acc.is-live .acc-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; }
.acc.is-live .acc-body > .acc-inner { overflow: hidden; }
.acc.is-live .acc-item.is-open .acc-body { grid-template-rows: 1fr; opacity: 1; transition-delay: .15s, .3s; }
.acc.is-live .acc-item:not(.is-open) .acc-content { gap: 0; }
@media (max-width: 1068px) {
  .acc-title { font-size: 28px; }
}
@media (max-width: 960px) {
  .acc-title { font-size: 26px; } /* 901px에서 접힌 카드 자리 125px에 28px 제목(126px)이 1px 넘쳐 잘렸다(11-18 잼) */
}
@media (max-width: 900px) {
  .paths { padding: var(--s8) 0; }
  .acc { flex-direction: column; height: auto; gap: 10px; }
  .acc-item { flex: none; min-height: 112px; border-radius: 20px; }
  .acc-content { position: relative; padding: var(--s3); min-height: 112px; align-content: end; }
  .acc-title { font-size: 24px; }
  .acc.is-live .acc-item { transition: none; }
  .acc.is-live .acc-inner { width: auto; }
  .acc.is-live .acc-item.is-open .acc-body { transition-delay: 0s, .1s; }
  .acc.is-live .acc-item.is-open .acc-content { min-height: 340px; }
  /* 휴대폰은 글이 사진 위쪽(밝은 하늘)까지 올라오므로 전체를 더 어둡게 — 맨 위 0.6에서도 흰 글자 약 5:1 */
  .acc-shade { background: linear-gradient(to top, rgba(11, 18, 32, .9) 0%, rgba(11, 18, 32, .78) 55%, rgba(11, 18, 32, .6) 100%); }
  .acc-desc { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .acc.is-live .acc-item, .acc.is-live .acc-body, .acc-img { transition: none !important; }
}

/* ── 8 지도 — 왼쪽 점 지도, 오른쪽 지사(휴대폰은 제목 → 지도 → 지사) ── */
.offices { padding: var(--s12) 0; background: var(--bg); }
.offices-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "map head" "map body"; column-gap: var(--s8); row-gap: var(--s2); align-items: start; }
.offices-head { grid-area: head; display: grid; gap: var(--s2); }
.offices-body { grid-area: body; display: grid; align-content: start; }
.offices-map { grid-area: map; align-self: center; }
.offices-eyebrow { color: var(--navy); }
.map-svg { display: block; width: 100%; max-height: 720px; height: auto; margin: 0 auto; overflow: visible; }
.map-dots { fill: color-mix(in srgb, var(--navy) 12%, var(--bg)); }
.map-dots-hl { fill: color-mix(in srgb, var(--navy) 42%, var(--bg)); }
.map-route { fill: none; stroke: var(--navy); stroke-width: 3; stroke-dasharray: .012 .012; stroke-linecap: round; opacity: .55; }
.map-boat path { fill: #F3EBD9; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.map-label { font-size: 26px; font-weight: 600; fill: var(--ink); letter-spacing: 0; paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
/* 핀 키우기는 transform — CSS r 속성은 Safari 지원을 확인하지 못했다 */
.pin-dot { fill: var(--navy); stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform .2s ease; }
.pin-ring { fill: var(--navy); opacity: 0; transition: opacity .2s ease; }
.pin.is-hot .pin-ring { opacity: .18; }
.pin.is-hot .pin-dot { transform: scale(1.45); }
.offices-group { margin-top: var(--s4); margin-bottom: var(--s2); color: var(--ink-2); }
.offices-kr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.offices-kr .office { display: grid; gap: 6px; align-content: start; padding: var(--s3); background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.office-name { font-size: 19px; font-weight: 600; }
.office-tag { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--navy) 10%, var(--surface)); color: var(--navy); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.office-addr, .office-contact { font-size: 15px; color: var(--ink-2); }
/* 전화·메일 링크도 누르는 곳 44px(디자인 시스템 §4) — 글자 높이만큼이던 것(17~18px, 코리 검수 11-18) */
.office-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--navy) 35%, transparent); }
.office-visit { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--navy); font-size: 15px; font-weight: 600; }
.office-visit:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.offices-au { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); border-top: 1px solid var(--line); }
.office-au { display: grid; gap: 4px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.office-au .office-name { font-size: 17px; }
.office-au .office-addr, .office-au .office-contact { font-size: 14px; }
@media (max-width: 1068px) {
  .offices-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s6); }
  .offices-kr, .offices-au { grid-template-columns: 1fr; }
}
@media (max-width: 734px) {
  .offices { padding: var(--s8) 0; }
  .offices-grid { grid-template-columns: 1fr; grid-template-areas: "head" "map" "body"; row-gap: var(--s3); }
  .map-svg { max-height: 360px; }
  .map-label { font-size: 36px; stroke-width: 8px; } /* 지도가 0.39배로 줄어 26이면 10px — 12px 넘게 */
  .pin-dot { transform: scale(1.45); }
  .pin.is-hot .pin-dot { transform: scale(1.9); }
}
