/* =====================================================================
   Subpages (every page except the home) — shared additions.
   Loaded after style.css. Everything shared with the home (tokens, header,
   hero, .cover, .why, .clients, .faq, .contact, .cta-band, footer, responsive)
   comes from style.css; this file only adds what subpages introduce.
   Page-specific rules are scoped by the body class (page-cover, page-service,
   page-about, page-ceo, page-history, page-news, page-contact).
   No new hardcoded colors — tokens only.
   ===================================================================== */

/* ---------- Page hero (shorter than the home hero, with breadcrumb; content stays bottom-aligned) ---------- */
.page-hero .hero-card { height: min(64vh, 600px); min-height: 460px; }
.page-hero .hero-title { font-size: clamp(36px, 4.6vw, 62px); }
.page-hero .hero-inner { max-width: 1040px; }
.page-hero--sm .hero-card { height: min(48vh, 440px); min-height: 360px; }
.hero-lead {
  margin-top: 20px; max-width: 680px;
  font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; line-height: 1.6; color: rgba(255,255,255,.88);
  text-wrap: balance; /* two even lines instead of one word left on the second */
}
.crumbs {
  position: absolute; top: 28px; left: 56px; z-index: 1;
  color: #fff; font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .45; }
.crumbs a { opacity: .78; transition: opacity .2s; }
.crumbs a:hover { opacity: 1; }
.crumbs [aria-current] { font-weight: 600; }

/* ---------- Overview (text + photo, 2-col) ---------- */
.overview { padding: var(--sec-y) 0; }
.overview-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px 72px; align-items: center; }
.overview-text .desc { margin-top: 24px; max-width: 600px; }
.overview-text .desc + .desc { margin-top: 14px; }
/* Fixed aspect box + absolutely positioned image: loading never shifts the layout */
.overview-media { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.overview-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--c-line);
}
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-green); margin-bottom: 6px; }
.facts dd { font-size: 15px; line-height: 1.65; color: #374151; }

/* ---------- Law (3 reference cards, safety-cover) ---------- */
.law { padding: 0 0 var(--sec-y); }
.law-item { background: var(--c-bg-soft); border-radius: var(--radius); padding: 36px 32px 40px; }
.law-ref { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--c-blue); margin-bottom: 18px; }
.law-item h3 { font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 14px; }
.law-item p:last-child { font-size: 15px; line-height: 1.75; color: #4B5563; }
.law-item--fine strong { color: var(--c-red); font-weight: 700; }
.law-note { margin-top: 24px; font-size: 13.5px; line-height: 1.7; color: var(--c-muted); }

/* ---------- Cover (dark, safety-cover) — step descriptions added on the subpage ---------- */
.page-cover .steps li b { display: block; font-weight: 600; min-height: 3em; } /* 2 lines: titles align whether or not they wrap */
.page-cover .steps li small { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 400; line-height: 1.55; color: rgba(255,255,255,.62); }

/* ---------- Icon cards (safety-cover 이런 경우 문의하세요, contact 진행 순서) ---------- */
.cases { padding: var(--sec-y) 0 0; }
.case-card { background: var(--c-bg-soft); border-radius: var(--radius); padding: 36px 32px 40px; }
/* display:flex (not inline-flex): an inline box's baseline moves when the SVG arrives from the
   Iconify API, which grew the page 9px mid-scroll and made anchors land short */
.case-card iconify-icon {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--c-green); background: #fff; margin-bottom: 24px;
}
.case-card .num { display: block; color: var(--c-green); margin-bottom: 8px; }
.case-card h3 { font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 12px; }
.case-card p { font-size: 15px; line-height: 1.7; color: var(--c-muted); }
.case-card a[href^="tel:"] { white-space: nowrap; font-weight: 600; color: var(--c-text); } /* never split the number at its hyphen */

/* ---------- FAQ: .cases has no bottom padding, so the FAQ's top padding is the whole gap ---------- */
.page-cover .faq { padding-top: var(--sec-y); }

/* ---------- Service link cards (about 사업 분야 · service pages 다른 서비스) ---------- */
.related { padding: var(--sec-y-sm) 0 var(--sec-y); }
.svc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-link {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px 32px 30px; border-radius: var(--radius); background: var(--c-bg-soft);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s;
}
a.svc-link:hover { transform: translateY(-4px); background: #fff; border-color: var(--c-blue-tint); box-shadow: var(--shadow-card); }
.svc-link .num { color: var(--c-green); }
.svc-link h3 { font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.svc-link p { flex: 1; font-size: 15px; line-height: 1.7; color: var(--c-muted); }
.svc-link .more { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--c-blue); }
.svc-link .more iconify-icon { transition: transform .2s; }
a.svc-link:hover .more iconify-icon { transform: translateX(4px); } /* only linked cards react; the rest are plain cards for now */

/* ---------- Service detail pages 01–05 (body.page-service, built by tools/services.mjs) ----------
   Order: hero → overview → .basis → .work (navy) → .process (soft band) → .cases → .faq → .related → .contact */
/* Service hero (01–05 + 06 safety-cover since 2026-11-02): name (H1) + emphasis + intro + keywords. More than a fixed-height
   page hero holds, so the card grows to fit its content instead of clipping it (heroFits in QA); content stays bottom-aligned */
:is(.page-service, .page-cover) .page-hero .hero-card { height: auto; min-height: min(80vh, 680px); display: flex; flex-direction: column; justify-content: flex-end; }
:is(.page-service, .page-cover) .page-hero .hero-inner { position: relative; padding-top: 120px; }
.hero-sub {
  margin-top: 14px; font-size: clamp(20px, 2vw, 28px); font-weight: 600; line-height: 1.4; letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
:is(.page-service, .page-cover) .hero-lead { margin-top: 14px; max-width: 640px; font-size: clamp(15px, 1.2vw, 18px); color: rgba(255,255,255,.8); }
:is(.page-service, .page-cover) .hero-tags { margin-top: 18px; font-size: 15px; }
:is(.page-service, .page-cover) .hero-actions { margin-top: 28px; }
.page-service .h2 { text-wrap: balance; }

/* Notes and source lines shared by the sections below */
.svc-note {
  margin-top: 28px; padding: 18px 24px; max-width: 920px;
  border-left: 3px solid var(--c-blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--c-bg-soft);
  font-size: 15px; line-height: 1.75; color: var(--c-muted);
}
.sources { margin-top: 20px; font-size: 13.5px; line-height: 1.9; color: var(--c-muted); }
.sources b { margin-right: 10px; font-weight: 700; color: var(--c-text); }
.sources i { font-style: normal; margin: 0 8px; opacity: .45; }
.sources a, .callout a { color: var(--c-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sources a:hover, .callout a:hover { text-decoration-thickness: 2px; }

/* 03 basis: law cards (cards) · numbered axes (axes) · ISO/KOSHA table (compare). Overview's padding is the gap above */
.basis { padding: 0 0 var(--sec-y); }
.axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.axis { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 32px 28px 36px; }
.axis .num { display: block; margin-bottom: 22px; font-size: 26px; font-weight: 700; color: var(--c-green); }
.axis h3 { font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 12px; }
.axis p { font-size: 15px; line-height: 1.7; color: var(--c-muted); }
.callout {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 22px 26px;
  border-radius: var(--radius-sm); background: var(--c-green-tint);
}
.callout iconify-icon { width: 24px; height: 24px; font-size: 24px; color: var(--c-green-dark); margin-top: 1px; }
.callout strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.callout p { font-size: 15.5px; line-height: 1.75; color: var(--c-text); }

/* Tables (compare · scenarios): one card per row on phones, each cell keeps its column name via data-label */
.cmp, .scn { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.cmp table, .scn table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.7; }
:is(.cmp, .scn) :is(th, td) { padding: 22px 28px; text-align: left; vertical-align: top; border-top: 1px solid var(--c-line); }
:is(.cmp, .scn) thead th { vertical-align: middle; border-top: 0; background: var(--c-bg-soft); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--c-muted); }
:is(.cmp, .scn) tbody th { font-weight: 700; color: var(--c-text); }
:is(.cmp, .scn) td { color: var(--c-muted); }
.cmp tbody th { width: 17%; }
.cmp thead th:not(:first-child) { font-family: var(--font-num); font-size: 19px; letter-spacing: -0.01em; }
.cmp thead th:nth-child(2) { color: var(--c-blue); }
.cmp thead th:nth-child(3) { color: var(--c-green-dark); }
.scn tbody th { width: 26%; }
.scn td:nth-child(2) { width: 26%; }

/* 04 work: the safety-cover navy section (.cover + .targets) with a note, sources and the 04 PDCA strip */
.work .work-note { margin-top: 40px; border-left-color: #6EDB7C; background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); }
.sources--dark { color: rgba(255,255,255,.6); }
.sources--dark b { color: #fff; }
.sources--dark a { color: #6EDB7C; }
.work-flow { margin-top: 80px; }
.pdca { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pdca li { position: relative; padding: 26px 24px 28px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.pdca .num { display: block; margin-bottom: 10px; color: #6EDB7C; }
.pdca b { display: block; margin-bottom: 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.pdca small { display: block; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.65); }
.pdca li:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid rgba(255,255,255,.35); border-right: 2px solid rgba(255,255,255,.35); transform: translateY(-50%) rotate(45deg);
}

/* 05 process: soft full-bleed band, five white step cards; the output line sits at the bottom of every card */
.process { padding: var(--sec-y) 0; background: var(--c-bg-soft); }
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.proc-step { position: relative; display: flex; flex-direction: column; padding: 28px 24px 26px; border-radius: var(--radius-sm); background: #fff; }
.proc-num {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 50%; background: var(--c-green); color: #fff; font-family: var(--font-num); font-size: 15px; font-weight: 700;
}
.proc-body { display: flex; flex-direction: column; flex: 1; }
.proc-step h3 { margin-bottom: 8px; font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.proc-step p { font-size: 15px; line-height: 1.65; color: var(--c-muted); }
.proc-step .proc-out { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--c-line); font-weight: 500; color: var(--c-text); }
.proc-body h3 + p { margin-bottom: 20px; }
.proc-out b { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--c-blue); }
.proc-step:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 46px; width: 7px; height: 7px; z-index: 1;
  border-top: 2px solid var(--c-line-strong); border-right: 2px solid var(--c-line-strong); transform: rotate(45deg);
}

/* 06 situations: icon cards in rows (cases) · question bubbles (questions) · example table (scenarios) */
.case-card--row { display: flex; gap: 22px; align-items: flex-start; }
.case-card--row iconify-icon { margin-bottom: 0; }
.case-card--row h3 { font-size: 19px; margin-bottom: 8px; }
.q-card { padding: 32px 32px 34px; border-radius: var(--radius); background: var(--c-bg-soft); }
.q-bubble {
  display: flex; gap: 12px; align-items: flex-start; padding: 20px 22px;
  border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: var(--shadow-card);
  font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em;
}
.q-bubble iconify-icon { width: 24px; height: 24px; font-size: 24px; margin-top: 2px; color: var(--c-blue); }
.q-answer { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 0 6px; font-size: 15.5px; line-height: 1.7; color: var(--c-muted); }
.q-answer iconify-icon { width: 20px; height: 20px; font-size: 20px; margin-top: 3px; color: var(--c-green); }
.center-head + .scn { margin-top: 0; }

/* 08 related: 2–3 photo cards for the services the copy points to (--n = card count) */
.rel-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 20px; }
.rel-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--c-bg-soft); border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s;
}
a.rel-card:hover { transform: translateY(-4px); background: #fff; border-color: var(--c-blue-tint); box-shadow: var(--shadow-card); }
.rel-media { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--c-line); }
.rel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.rel-card:hover .rel-media img { transform: scale(1.03); }
.rel-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 28px 32px 30px; }
.rel-body .num { color: var(--c-green); }
.rel-body h3 { font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.rel-reason { flex: 1; font-size: 15px; line-height: 1.7; color: var(--c-muted); }
.rel-body .more { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--c-blue); }
.rel-body .more iconify-icon { transition: transform .2s; }
a.rel-card:hover .more iconify-icon { transform: translateX(4px); }

/* ---------- Placeholder: content the client still has to send (find them by class="todo") ---------- */
.todo {
  border: 1.5px dashed var(--c-line-strong); border-radius: var(--radius-sm); padding: 18px 22px;
  font-size: 15px; line-height: 1.7; color: var(--c-muted); background: #fff;
}
.todo b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--c-faint); }

/* ---------- 회사 소개 · 대표 소개 · 연혁 공통 (2026-11-03, 내용은 기존 사이트 www.ryunc.kr) ---------- */
/* Tabs under the hero. They sit in the hero→section gap, so the section after them starts with the short padding */
.sub-tabs { padding-top: 32px; }
.sub-tabs ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sub-tabs a {
  display: block; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--c-line);
  font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--c-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.sub-tabs a:hover { color: var(--c-text); border-color: var(--c-line-strong); }
.sub-tabs a[aria-current="page"] { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.sub-tabs + section { padding-top: var(--sec-y-sm); }
.dots li { position: relative; padding-left: 18px; font-size: 17px; line-height: 1.7; }
.dots li + li { margin-top: 8px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); }
.dots small { display: block; font-size: 14px; line-height: 1.6; color: var(--c-muted); }

/* ---------- 회사 소개 ---------- */
.page-about .clients { padding: var(--sec-y-sm) 0 var(--sec-y); }

/* 브랜드 철학: R·N·C diagram (inline SVG, the client's brand chart redrawn in site tokens) + the three principles */
.philosophy { padding: var(--sec-y-sm) 0 var(--sec-y); }
.philo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: center; }
.philo-art { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin: 0 auto; }
.philo-art svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.philo-art .ring { fill: none; stroke: var(--c-line-strong); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.philo-art .c-r { fill: var(--c-green); }
.philo-art .c-n { fill: var(--c-blue); }
.philo-art .c-c { fill: var(--c-svc-3); }
.philo-art .core { fill: #fff; }
.philo-art text { font-family: var(--font-num); text-anchor: middle; dominant-baseline: central; }
.philo-art .letter { font-size: 46px; font-weight: 800; fill: #fff; }
.philo-art .word { font-size: 15px; font-weight: 600; fill: #fff; opacity: .88; }
.philo-art .core-1 { font-size: 25px; font-weight: 800; letter-spacing: 0.02em; fill: var(--c-navy); }
.philo-art .core-2 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: var(--c-muted); }
.philo-text .desc { margin-top: 24px; max-width: 34em; }
.values { margin-top: 36px; border-top: 1px solid var(--c-line); }
.values li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.values li > :not(.v-mark) { grid-column: 2; }
.v-mark {
  grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-green); color: #fff; font-family: var(--font-num); font-size: 20px; font-weight: 800;
}
.v-mark--n { background: var(--c-blue); }
.v-mark--c { background: var(--c-svc-3); }
.values b { font-family: var(--font-num); font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.values span:not(.v-mark) { font-size: 16px; line-height: 1.5; color: var(--c-muted); }

/* 세 가지 축 (SYSTEM · CULTURE · TECHNOLOGY): navy band, three outlined columns */
.pillars { padding: var(--sec-y) 0; background: var(--c-navy); color: #fff; }
.pillars .eyebrow { color: #6EDB7C; }
.pillars .center-head .desc { color: rgba(255,255,255,.7); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { display: flex; flex-direction: column; padding: 36px 32px 30px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.pillar-tag { font-family: var(--font-num); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: #6EDB7C; }
.pillar h3 { margin-top: 16px; font-size: clamp(21px, 1.75vw, 25px); font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; text-wrap: balance; }
.pillar-sub { margin-top: 12px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.65); }
.pillar-sub i { display: block; font-family: var(--font-num); font-style: normal; font-size: 13.5px; letter-spacing: 0.02em; color: rgba(255,255,255,.45); }
.pillar ul { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.pillar li { padding: 16px 0; }
.pillar li + li { border-top: 1px solid rgba(255,255,255,.08); }
.pillar li b { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 700; }
.pillar li b iconify-icon { width: 18px; height: 18px; font-size: 18px; color: #6EDB7C; }
.pillar li span { display: block; margin-top: 4px; padding-left: 26px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.65); }

/* 조직 구성: top node → bar across the two branch centres → each branch head. --org-gap keeps the bar on the centres */
.org { padding: var(--sec-y) 0; }
.org-chart { --org-gap: 24px; max-width: 1120px; margin: 0 auto; }
.org-top {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 168px; height: 168px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--c-blue); background: #fff; text-align: center;
}
.org-top b { font-size: 21px; font-weight: 700; line-height: 1.3; }
.org-top span { font-size: 14.5px; color: var(--c-muted); }
.org-top::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 32px; margin-left: -1px; background: var(--c-line-strong); }
.org-branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--org-gap); margin-top: 64px; }
.org-branches::before {
  content: ""; position: absolute; top: -32px; height: 2px; background: var(--c-line-strong);
  left: calc((100% - var(--org-gap)) / 4); right: calc((100% - var(--org-gap)) / 4);
}
.org-branch { display: flex; flex-direction: column; }
.org-head { position: relative; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--c-blue); color: #fff; text-align: center; }
.org-head::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 32px; margin-left: -1px; background: var(--c-line-strong); }
.org-head b { display: block; font-size: 20px; font-weight: 700; line-height: 1.4; }
.org-head span { display: block; margin-top: 2px; font-size: 15px; color: rgba(255,255,255,.82); }
.org-sites { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.org-sites li { padding: 7px 18px; border-radius: 999px; border: 1px solid var(--c-line); font-size: 15px; font-weight: 600; }
.org-units { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 16px; flex: 1; margin-top: 16px; }
.org-unit { padding: 26px 28px 28px; border-radius: var(--radius-sm); background: var(--c-bg-soft); }
.org-unit h3 { margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); font-size: 18px; font-weight: 700; color: var(--c-blue); }
.org-unit .dots li { font-size: 15.5px; line-height: 1.55; }
.org-unit .dots li + li { margin-top: 6px; }

/* ---------- 대표 소개 ---------- */
.ceo { padding: var(--sec-y) 0; }
.ceo-grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 48px 96px; align-items: start; }
/* Fixed aspect box + absolutely positioned image: no shift while it loads (source is the client's 282×352 photo) */
.ceo-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.ceo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ceo-profile figcaption { margin-top: 24px; }
.ceo-role { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--c-green-dark); }
.ceo-name { display: block; margin-top: 2px; font-size: 28px; font-weight: 700; letter-spacing: 0.04em; }
.ceo-tags { margin-top: 14px; }
.ceo-tags li { font-size: 15px; line-height: 1.6; color: var(--c-muted); }
.ceo-tags li + li { margin-top: 4px; }
.ceo-text .h2 { margin-bottom: 32px; }
.ceo-hello { margin-bottom: 20px; font-size: 19px; font-weight: 600; line-height: 1.6; }
.ceo-letter p { max-width: 34em; font-size: 17px; line-height: 1.85; color: #374151; }
.ceo-letter p + p { margin-top: 18px; }
.ceo-sign { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.ceo-sign span { margin-right: 10px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--c-muted); }

/* 주요 경력: dated steps on one rule (vertical below 1024), then 학력 | 강의·학회 cards */
.career-sec { padding: var(--sec-y-sm) 0 var(--sec-y); }
.ctl { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
.ctl::before { content: ""; position: absolute; top: 47px; left: 0; right: 0; height: 2px; background: var(--c-line); }
.ctl > li { position: relative; }
.ctl > li::before {
  content: ""; position: absolute; top: 40px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--c-green); background: #fff;
}
.ctl > li:last-child::before { background: var(--c-green); }
.ctl-year { display: block; font-family: var(--font-num); font-size: 20px; font-weight: 700; line-height: 1.3; white-space: nowrap; color: var(--c-green-dark); }
.ctl h3 { margin-top: 52px; font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
.ctl p, .ctl ul { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--c-muted); }
.ctl ul li + li { margin-top: 6px; }
.career-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 72px; }
.career-card { padding: 36px 36px 38px; border-radius: var(--radius); background: var(--c-bg-soft); }
.career-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 20px; font-weight: 700; }
.career-card h3 iconify-icon { width: 24px; height: 24px; font-size: 24px; color: var(--c-blue); }
.career-card .dots li { font-size: 16px; line-height: 1.6; }
.career-card .dots li + li { margin-top: 12px; }

/* ---------- 연혁 ---------- */
.history { padding: var(--sec-y) 0; }
.history-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px 80px; align-items: stretch; }
/* The photo stretches to the timeline's height (absolute img in a stretched grid cell) */
.history-media { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.history-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl-row { display: grid; grid-template-columns: 136px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--c-line); }
.tl-row:last-child { border-bottom: 1px solid var(--c-line); }
.tl-year { font-family: var(--font-num); font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--c-green); }
.tl-items li { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; align-items: baseline; }
.tl-items li + li { margin-top: 14px; }
.tl-m { font-family: var(--font-num); font-size: 15px; font-weight: 700; color: var(--c-faint); }
.tl-items b { font-size: 18px; font-weight: 600; line-height: 1.5; }
.tl-items small { display: block; margin-top: 2px; font-size: 14.5px; color: var(--c-muted); }

/* 류앤씨의 뿌리: navy band, text + one big year */
.roots { padding: var(--sec-y) 0; background: var(--c-navy); color: #fff; }
.roots .eyebrow { color: #6EDB7C; }
.roots-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px 80px; align-items: center; }
.roots .desc { margin-top: 24px; max-width: 34em; color: rgba(255,255,255,.72); }
.roots .btn { margin-top: 36px; }
.roots-fig { padding: 56px 32px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); text-align: center; }
.roots-num { font-family: var(--font-num); font-size: clamp(88px, 9vw, 140px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #6EDB7C; }
.roots-cap { margin-top: 18px; font-size: 20px; font-weight: 700; }
.roots-fig small { display: block; margin-top: 6px; font-size: 15px; color: rgba(255,255,255,.6); }

/* ---------- 안전 소식: white page, so the cards take the soft fill instead ---------- */
.page-news .news { background: none; }
.page-news .news-card { background: var(--c-bg-soft); }
.page-news .news .todo { margin-top: 32px; }

/* ---------- 상담하기: 폼(히어로 바로 아래) → 진행 순서 → FAQ — all white, so each follows with -sm ---------- */
/* Shorter hero so the first form fields show on the first screen on PC too (owner, 2026-10-17).
   ≥768 only: on phones the card height is auto (a fixed height there clips the hero buttons) */
@media (min-width: 768px) {
  .page-contact .page-hero--sm .hero-card { height: min(40vh, 360px); min-height: 340px; }
}
.flow { padding: var(--sec-y-sm) 0 var(--sec-y); }
.page-contact .faq { padding-top: var(--sec-y-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .crumbs { left: 40px; }
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .overview-media { aspect-ratio: 16 / 10; }
  .law-grid { grid-template-columns: 1fr; }
  .svc-links { grid-template-columns: repeat(2, 1fr); }
  /* company pages */
  .philo-grid, .roots-grid, .history-grid { grid-template-columns: 1fr; }
  .philo-art { max-width: 440px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 16px; }
  .org-branches { grid-template-columns: 1fr; gap: 48px; }
  .org-branches::before, .org-branch + .org-branch .org-head::before { display: none; }
  .ceo-grid { grid-template-columns: 1fr; }
  .ceo-profile { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: end; }
  .ceo-profile figcaption { margin-top: 0; }
  .ctl { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .ctl::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
  .ctl > li { padding-bottom: 32px; }
  .ctl > li:last-child { padding-bottom: 0; }
  .ctl > li::before { top: 4px; left: -36px; }
  .ctl h3 { margin-top: 4px; }
  .history-media { min-height: 0; aspect-ratio: 16 / 9; }
  .roots-fig { padding: 44px 24px; }
  /* service pages */
  .axes { grid-template-columns: repeat(2, 1fr); }
  .pdca { grid-template-columns: repeat(2, 1fr); }
  .pdca li::after { display: none; }
  .proc { grid-template-columns: 1fr; gap: 12px; }
  .proc-step { display: grid; grid-template-columns: 40px 1fr; gap: 0 20px; padding: 24px 28px; }
  .proc-num { margin-bottom: 0; }
  .proc-body h3 + p { margin-bottom: 14px; }
  .proc-step:not(:last-child)::after { display: none; }
  .rel-grid { grid-template-columns: 1fr; }
  .rel-card { flex-direction: row; }
  .rel-media { flex: none; width: 38%; aspect-ratio: auto; min-height: 200px; }
}

@media (max-width: 767px) {
  /* height:auto — the desktop height above would otherwise win over style.css's mobile rule and clip the buttons */
  .page-hero .hero-card { height: auto; min-height: 480px; }
  .page-hero .hero-inner { padding: 200px 24px 28px; }
  .page-hero--sm .hero-card { min-height: 360px; }
  .page-hero--sm .hero-inner { padding-top: 140px; }
  .page-contact .page-hero--sm .hero-inner { padding-top: 100px; } /* first form field on the first screen */
  .page-hero .hero-title { font-size: 32px; }
  .crumbs { top: 20px; left: 20px; right: 20px; font-size: 13px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .law-item, .case-card { padding: 28px 22px 32px; }
  .page-cover .steps li b { min-height: 0; }
  .page-cover .steps li small { margin-top: 6px; }
  .svc-links { grid-template-columns: 1fr; }
  .svc-link { padding: 28px 22px 26px; }
  .tl-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .tl-year { font-size: 26px; }
  .tl-items b { font-size: 17px; }
  /* company pages */
  .sub-tabs { padding-top: 24px; }
  .sub-tabs a { padding: 10px 18px; font-size: 15px; }
  .philo-art .word { font-size: 16px; }
  .values b { font-size: 19px; }
  .pillar { padding: 28px 22px 22px; }
  .org-top { width: 144px; height: 144px; }
  .org-top b { font-size: 19px; }
  .org-units { grid-template-columns: 1fr; }
  .org-unit { padding: 22px 22px 24px; }
  /* photo + name side by side, the two credential lines full width under them (too narrow beside a 112px photo) */
  .ceo-profile { grid-template-columns: 112px 1fr; gap: 0 20px; }
  .ceo-profile figcaption { display: contents; }
  .ceo-photo { grid-row: 1 / span 2; }
  .ceo-role { grid-column: 2; align-self: end; }
  .ceo-name { grid-column: 2; align-self: start; font-size: 24px; }
  .ceo-tags { grid-column: 1 / -1; margin-top: 20px; }
  .ceo-tags li { font-size: 14.5px; }
  .ceo-hello { font-size: 17.5px; }
  .ceo-letter p { font-size: 16px; }
  .ceo-sign { font-size: 18px; }
  .ceo-sign span { display: block; margin: 0 0 2px; }
  .career-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  .career-card { padding: 28px 22px 30px; }
  .career-card .dots li { font-size: 15px; }
  .roots-fig small { font-size: 14px; }
  /* service pages */
  :is(.page-service, .page-cover) .page-hero .hero-inner { padding-top: 150px; }
  :is(.page-service, .page-cover) .page-hero .hero-title { font-size: 30px; }
  :is(.page-service, .page-cover) .badge { border-radius: 12px; } /* long labels wrap to two lines here; a pill would pinch them */
  .hero-sub { font-size: 20px; }
  .axes, .pdca { grid-template-columns: 1fr; gap: 12px; }
  .axis { padding: 26px 22px 28px; }
  .axis .num { margin-bottom: 14px; font-size: 22px; }
  .svc-note { padding: 16px 18px; font-size: 14.5px; }
  .callout { padding: 18px 18px; }
  .proc-step { grid-template-columns: 36px 1fr; gap: 0 16px; padding: 22px 20px; }
  .proc-num { width: 36px; height: 36px; font-size: 14px; }
  .case-card--row { flex-direction: column; gap: 18px; }
  .q-card { padding: 22px 18px 26px; }
  .q-bubble { padding: 16px 18px; font-size: 16.5px; }
  .rel-card { flex-direction: column; }
  .rel-media { width: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .rel-body { padding: 24px 22px 26px; }
  /* tables → one card per row; the column name comes from data-label */
  :is(.cmp, .scn) thead { display: none; }
  :is(.cmp, .scn) :is(table, tbody, tr, th, td) { display: block; width: auto !important; }
  :is(.cmp, .scn) tr { padding: 20px 20px 22px; border-top: 1px solid var(--c-line); }
  :is(.cmp, .scn) tr:first-child { border-top: 0; }
  :is(.cmp, .scn) :is(th, td) { padding: 0; border: 0; }
  :is(.cmp, .scn) tbody th { margin-bottom: 6px; font-size: 16.5px; }
  :is(.cmp, .scn) td { margin-top: 10px; font-size: 15px; }
  :is(.cmp, .scn) td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--c-blue); }
}
