/* =====================================================================
   류앤씨안전보건기술연구원 — Main page styles
   Design tokens → base → components → sections → responsive
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --c-text: #111111;
  --c-muted: #6B7280;
  --c-line: #E5E7EB;
  --c-line-strong: #D1D5DB; /* dashed placeholder borders (SAMPLE tag, .todo) */
  --c-faint: #9CA3AF;
  --c-bg-soft: #F7F8FA;
  --c-green: #2BA23A;
  --c-green-dark: #238A30;
  --c-blue: #0C68AB;
  --c-navy: #0B1F33;
  --c-green-tint: #EAF7EC;
  --c-blue-tint: #E7F0F8;
  --c-red: #C8102E;
  --grad: linear-gradient(90deg, var(--c-green), var(--c-blue));
  /* Service cards: Green (H145) → Blue (H248) interpolated in OKLCH, deepening slightly
     toward blue. White text ≥ 5.6:1 on every tone. */
  --c-svc-1: #22722C;
  --c-svc-2: #0B6B4F;
  --c-svc-3: #0A6168;
  --c-svc-4: #0B5A82;
  --c-svc-5: #0C4F8C;

  --container: 1360px;
  --gutter: 40px;
  --radius: 24px;
  --radius-sm: 16px;
  --nav-h: 72px;
  /* Section padding. -sm is for a section that follows another white section,
     so the two paddings add up to one gap. (2026-10-16: sec-y −24px on desktop/tablet, −16px on mobile) */
  --sec-y: 176px;
  --sec-y-sm: 72px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-num: "Manrope", var(--font);

  --shadow-card: 0 20px 60px rgba(12, 104, 171, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding: a page opened at a hash (e.g. ../index.html#faq from a subpage) lands below the sticky header.
   In-page links don't rely on it — RNC.scrollTo passes Lenis an absolute target. */
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, dt, figure, address { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* Explicit box so an icon fetched late from the Iconify API never shifts layout */
iconify-icon { display: inline-block; width: 1em; height: 1em; line-height: 1; vertical-align: -0.15em; flex: none; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
/* white ring on dark / saturated surfaces where blue would be invisible */
:is(.stack-card, .hero-card, .cover, .contact-card, .footer, .compare) :focus-visible { outline-color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Typography ---------- */
.h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-muted);
  margin-bottom: 14px;
}
.eyebrow.blue { color: var(--c-blue); font-weight: 700; letter-spacing: 0.12em; }
.eyebrow.light { color: rgba(255,255,255,.6); letter-spacing: 0.14em; font-weight: 700; }
/* Mobile-only line break: <br class="br-m"> keeps a heading from leaving one word on its last line (shown ≤767px) */
.br-m { display: none; }
.lead { font-size: clamp(20px, 2vw, 28px); line-height: 1.4; margin-top: 24px; }
.desc { font-size: 17px; line-height: 1.75; color: var(--c-muted); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.num {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 16px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn iconify-icon { font-size: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 12px; }
.btn-primary { background: var(--c-green); color: #fff; box-shadow: 0 8px 24px rgba(43,162,58,.25); }
.btn-primary:hover { background: var(--c-green-dark); }
.btn-outline { border-color: #111; color: #111; background: #fff; }
.btn-outline:hover { background: #111; color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: #fff; color: #111; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-blue); margin-top: 12px; }
.link-arrow iconify-icon { transition: transform .2s; }
.link-arrow:hover iconify-icon { transform: translateX(4px); }

/* ---------- Layout helpers ---------- */
section { position: relative; }
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px 64px;
  align-items: end;
  margin-bottom: 56px;
}
.split .desc { max-width: 520px; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.center-head .desc { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--c-line); }
.nav {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-logo img { height: 30px; width: auto; }
/* Markup comes from tools/chrome.mjs (one template for every page). Top items stretch to the header
   height so the dropdown hangs right off its bottom edge with no hover gap.
   Menu entries that don't link yet are <span class="nav-text"> (same look, default cursor, no hover);
   only the pages in chrome.mjs MENU_LINKED are <a>. */
.nav-center > ul { display: flex; gap: 32px; }
.nav-center > ul > li { position: relative; display: flex; align-items: center; height: var(--nav-h); }
.nav-center > ul > li > :first-child {
  position: relative; display: flex; align-items: center; gap: 4px;
  font-size: 16px; font-weight: 600; padding: 8px 0; color: #111;
}
.nav-text { cursor: default; }
.nav-center > ul > li > :first-child iconify-icon { font-size: 14px; color: var(--c-muted); transition: transform .25s var(--ease); }
.nav-center > ul > li > :first-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
/* underline: dropdown items while open, links on hover, the current page's item always */
.nav-center > ul > li:has(.nav-sub):is(:hover, :focus-within) > :first-child::after,
.nav-center > ul > li > a:hover::after,
.nav-center > ul > li.is-active > :first-child::after { transform: scaleX(1); }
.nav-center > ul > li:is(:hover, :focus-within) > :first-child iconify-icon { transform: rotate(180deg); }
/* Hidden with opacity + pointer-events, not visibility: the top items aren't focusable, so Tab has to be
   able to land on a link inside the closed panel — focus-within then opens it */
.nav-sub {
  position: absolute; top: calc(100% - 10px); left: 50%; min-width: 200px;
  padding: 8px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none; transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s var(--ease);
}
.nav-center > ul > li:is(:hover, :focus-within) > .nav-sub { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.nav-sub :is(a, .nav-text) {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s;
}
.nav-sub a:hover { background: var(--c-bg-soft); }
.nav-sub [aria-current="page"] { color: var(--c-green); font-weight: 600; }
.nav-sub .num { font-size: 12px; min-width: 18px; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
/* Phone number shown in full next to the CTA (owner, 2026-10-17); icon-only on narrow phones */
.nav-tel {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-num); font-size: 17px; font-weight: 700; letter-spacing: 0.01em; color: var(--c-text);
}
.nav-tel iconify-icon {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--c-green); background: var(--c-green-tint); transition: background .2s, color .2s;
}
.nav-tel:hover iconify-icon { background: var(--c-green); color: #fff; }
.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #111; transition: transform .3s, opacity .3s; }
.header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile menu: every link visible at once (groups are labels, not accordions). Scrolls inside
   itself on short screens — data-lenis-prevent keeps Lenis from scrolling the page instead. */
.nav-mobile {
  display: none; flex-direction: column;
  padding: 4px var(--gutter) 24px;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--c-line);
  background: #fff;
}
.nav-m-group { padding: 14px 0 10px; border-bottom: 1px solid var(--c-line); }
.nav-m-title { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-muted); margin-bottom: 2px; }
.nav-m-group :is(a, .nav-text) { display: block; padding: 8px 0; font-size: 17px; font-weight: 600; }
.nav-m-top { display: block; padding: 16px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--c-line); }
.nav-mobile [aria-current="page"] { color: var(--c-green); }
.nav-m-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.header.is-open .nav-mobile { display: flex; }

/* ---------- 01 Hero ---------- */
.hero { padding: 8px 0 0; }
.hero-card {
  position: relative;
  height: min(78vh, 720px);
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-navy);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,20,35,.15) 0%, rgba(5,20,35,.35) 45%, rgba(5,20,35,.75) 100%),
              linear-gradient(90deg, rgba(5,20,35,.45) 0%, rgba(5,20,35,0) 60%);
}
.hero-inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px;
  color: #fff;
  max-width: 980px;
}
/* Home hero: content vertically centred (owner, 2026-10-17). Page heroes keep the bottom alignment above */
.hero--center .hero-card { display: flex; align-items: center; }
.hero--center .hero-inner { position: relative; width: 100%; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.badge iconify-icon { color: #6EDB7C; font-size: 18px; }
.hero-title {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-tags {
  margin-top: 22px; font-size: clamp(15px, 1.3vw, 19px); font-weight: 500;
  color: rgba(255,255,255,.85);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.hero-tags i { font-style: normal; opacity: .6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Statement ---------- */
.statement { padding: calc(var(--sec-y) * 1.3) 0 calc(var(--sec-y) * 1.1); text-align: center; }
.statement-text {
  max-width: 1100px; margin: 0 auto;
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 600; line-height: 1.35; letter-spacing: -0.02em;
  overflow-wrap: break-word; /* "류앤씨안전보건기술연구원은" is one unbreakable word under keep-all */
}
.statement-text p + p { margin-top: 8px; }
/* One gradient across the whole sentence: on an inline element the line fragments are laid
   end to end (box-decoration-break: slice), so the colour flows in reading order. */
.statement-text .gradient-text { display: inline; }
/* Word scrub (JS sets --lit 0→1). Words stay inline so the parent's text clip still covers them;
   gradient words are dimmed with a white veil instead of opacity, which would cut them out of it. */
.statement-text .w { opacity: calc(0.15 + 0.85 * var(--lit, 1)); }
.statement-text .gradient-text .w { opacity: 1; color: rgb(255 255 255 / calc(0.85 * (1 - var(--lit, 1)))); }

/* ---------- 02 Clients ---------- */
.clients { padding: 0 0 var(--sec-y); }
.clients .h2 { margin-bottom: 56px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  --logo-scale: 1px;
  display: flex; align-items: center; gap: 80px; width: max-content; padding: 8px 40px;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
/* each logo sets its own optical height as a unitless --h; the scale shrinks them all together on mobile */
.marquee-logo { flex: none; height: calc(var(--h, 30) * var(--logo-scale)); width: auto; max-width: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 03 Pain A ---------- */
.pain {
  padding: var(--sec-y) 0;
  background: linear-gradient(135deg, #E7F0F8 0%, #FFFFFF 50%, #EAF7EC 100%);
}
.pain-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.pain .lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; margin-top: 24px; }
.pain .desc { margin-top: 20px; }
.pain-cta { margin-top: 36px; }
.fine-card {
  background: #fff; border-radius: var(--radius); padding: 36px 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(17,17,17,.04);
  container-type: inline-size;
}
.fine-card-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 18px; }
.fine-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fine-table th, .fine-table td { padding: 14px 0; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.fine-table thead th {
  padding: 0 0 12px; border-bottom: 2px solid var(--c-text);
  font-size: 13px; font-weight: 600; color: var(--c-muted); text-align: right; white-space: nowrap;
}
.fine-table thead th:first-child { text-align: left; }
.fine-table tbody th { text-align: left; font-weight: 600; color: #374151; line-height: 1.45; text-wrap: pretty; }
.fine-table tbody th small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--c-muted); }
.fine-table td, .fine-table thead th + th { padding-left: 14px; }
.fine-table td {
  text-align: right; white-space: nowrap;
  font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums;
}
.fine-table td small { margin-left: 2px; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--c-muted); }
/* 3차 이상 = the amount the headline warns about */
.fine-table td:last-child, .fine-table td:last-child small, .fine-table thead th:last-child { color: var(--c-red); }
.fine-source { margin-top: 20px; font-size: 12px; line-height: 1.6; color: var(--c-muted); }
/* Narrow card (mobile, and the 1024px two-column squeeze): label on its own line, the three amounts under the column heads */
@container (max-width: 459px) {
  .fine-table, .fine-table thead, .fine-table tbody { display: block; }
  .fine-table tr { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 12px; }
  .fine-table thead tr { padding-bottom: 10px; border-bottom: 2px solid var(--c-text); }
  .fine-table tbody tr { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .fine-table th, .fine-table td, .fine-table thead th { padding: 0; border: 0; }
  .fine-table thead th:first-child { display: none; }
  .fine-table tbody th { grid-column: 1 / -1; margin-bottom: 8px; }
}

/* ---------- 03' Worry + Compare ---------- */
.worry { padding: var(--sec-y) 0; }
.compare {
  position: relative;
  height: clamp(320px, 48vw, 620px);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none; touch-action: pan-y; /* vertical swipes still scroll the page */
  background: #ddd;
  --pos: 50%;
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { filter: saturate(.3) contrast(.95) brightness(.85); }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-label {
  position: absolute; bottom: 28px; padding: 10px 16px; border-radius: 10px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 15px; font-weight: 600;
  backdrop-filter: blur(6px); pointer-events: none;
}
.compare-label-l { left: 28px; }
.compare-label-r { right: 28px; background: rgba(43,162,58,.85); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; background: #fff; transform: translateX(-50%);
  cursor: ew-resize;
}
.compare-handle::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px;
  border-radius: 50%; background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.compare-handle iconify-icon {
  position: absolute; top: 50%; font-size: 20px; color: #111; transform: translateY(-50%);
}
.compare-handle iconify-icon:first-of-type { left: 50%; margin-left: -20px; }
.compare-handle iconify-icon:last-of-type { left: 50%; margin-left: 2px; }
.worry-grid { margin-top: 56px; }
.worry-card { background: var(--c-bg-soft); border-radius: var(--radius); padding: 36px 32px; }
.worry-card .num { display: block; margin-bottom: 20px; }
.worry-card h3 { font-size: 21px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; letter-spacing: -0.01em; }
.worry-card p { font-size: 15px; color: var(--c-muted); line-height: 1.7; }
.worry-outro { text-align: center; margin-top: 56px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; }
.worry-outro strong { color: var(--c-green); }
/* Two in-page CTAs under the outro: the 5 services and the safety-cover section */
.worry-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- 04 Services (stack cards) ---------- */
.services { padding: var(--sec-y-sm) 0 var(--sec-y); }
.stack { position: relative; }
.stack-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px + var(--i) * 14px);
  min-height: 520px;
  border-radius: var(--radius);
  padding: 48px 56px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  margin-bottom: 24px;
  transform-origin: top center;
  will-change: transform;
  box-shadow: 0 -10px 40px rgba(6,24,40,.16);
  color: #fff;
  /* soft top-left sheen + a lean toward the next card's tone, so the stack reads as one gradient */
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(135deg, var(--tone) 45%, var(--tone-next) 140%);
}
.stack-card.tone-1 { --tone: var(--c-svc-1); --tone-next: var(--c-svc-2); }
.stack-card.tone-2 { --tone: var(--c-svc-2); --tone-next: var(--c-svc-3); }
.stack-card.tone-3 { --tone: var(--c-svc-3); --tone-next: var(--c-svc-4); }
.stack-card.tone-4 { --tone: var(--c-svc-4); --tone-next: var(--c-svc-5); }
.stack-card.tone-5 { --tone: var(--c-svc-5); --tone-next: var(--c-navy); }
.stack-content { display: flex; flex-direction: column; }
.stack-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.stack-head .num { font-size: 32px; font-weight: 500; color: inherit; opacity: .85; }
.stack-head h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.stack-body { padding-left: 76px; }
.stack-body h4 { font-size: 19px; font-weight: 700; margin-bottom: 14px; line-height: 1.45; }
.stack-body p { font-size: 15.5px; line-height: 1.75; max-width: 520px; margin-bottom: 28px; color: rgba(255,255,255,.88); }
/* Not enough room to pin a whole card under the header → plain stacking */
@media (max-width: 1023px), (max-height: 720px) {
  .stack-card { position: static; }
}
/* Image is absolutely positioned so loading it never changes the card's height
   (a late layout shift would make anchor scrolls land short). */
.stack-media { position: relative; border-radius: var(--radius-sm); overflow: hidden; align-self: stretch; min-height: 360px; }
.stack-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 04' Safety cover: the services frame with a single card (no data-stack-card, nothing to stack).
   White services above → -sm top. The tinted cta-band below starts its own color, so the bottom is a full sec-y.
   Its own tone continues the 01→05 green→blue run into navy: a different line of business. */
.services--cover { padding: var(--sec-y-sm) 0 var(--sec-y); }
.services--cover .stack-card { position: static; } /* not relative: the sticky `top` would then push it down 96px */
.stack-card.tone-6 { --tone: var(--c-navy); --tone-next: var(--c-svc-5); }

/* ---------- Cover (dark) — used by the safety-cover/ subpage only (the home section became 04' above) ---------- */
.cover { background: var(--c-navy); color: #fff; padding: var(--sec-y) 0; }
.cover .eyebrow { color: #6EDB7C; }
.cover-head { text-align: center; max-width: 800px; margin: 0 auto 64px; }
.cover-head .desc { color: rgba(255,255,255,.7); margin-top: 20px; }
.cover-card { background: #fff; color: var(--c-text); border-radius: var(--radius); overflow: hidden; }
.cover-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cover-card-body { padding: 32px 36px 36px; }
.cover-card-body h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; line-height: 1.35; margin-bottom: 14px; letter-spacing: -0.015em; }
.cover-card-body p { font-size: 15px; color: #4B5563; line-height: 1.75; }
.cover-sub { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 28px; color: rgba(255,255,255,.95); }
.cover-targets { margin-top: 88px; }
.targets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; }
.targets li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.targets iconify-icon { color: #6EDB7C; font-size: 26px; flex: none; margin-top: 2px; }
.targets strong { display: block; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 6px; }
.targets span { font-size: 14.5px; color: rgba(255,255,255,.65); }
.cover-steps { margin-top: 88px; }
.steps { display: flex; align-items: stretch; gap: 0; counter-reset: step; }
.steps li {
  flex: 1; position: relative; text-align: center;
  padding: 28px 12px; font-size: 15px; font-weight: 600; line-height: 1.5;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.steps li:first-child { border-radius: 14px 0 0 14px; }
.steps li:last-child { border-radius: 0 14px 14px 0; }
.steps li + li { border-left: 0; }
.steps li span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--c-green); color: #fff; font-family: var(--font-num); font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; z-index: 1;
  transform: translateY(-50%) rotate(45deg);
  background: var(--c-navy); border-top: 1px solid rgba(255,255,255,.3); border-right: 1px solid rgba(255,255,255,.3);
}

/* ---------- CTA band ---------- */
/* Full-bleed tint (was a rounded box inside the container). Its padding is inner space, so the
   neighbours keep a full sec-y on the side that touches it. */
.cta-band { background: var(--c-green-tint); padding: 112px 0; }
.cta-band-card { text-align: center; }
.cta-band-card p { font-size: 18px; color: #374151; margin: 18px 0 32px; }

/* ---------- 05 Why ---------- */
.why { padding: var(--sec-y) 0; }
.why-card {
  background: var(--c-bg-soft); border-radius: var(--radius); padding: 20px 20px 36px;
}
.why-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 28px; }
.why-card .num { display: block; color: var(--c-green); margin: 0 12px 10px; }
.why-card h3 { font-size: 23px; font-weight: 700; line-height: 1.35; margin: 0 12px 14px; letter-spacing: -0.01em; }
.why-card p { font-size: 15px; color: var(--c-muted); line-height: 1.7; margin: 0 12px; }

/* ---------- 06 Industries ---------- */
.industries { padding: var(--sec-y-sm) 0 var(--sec-y); }
.industry-grid { margin-bottom: 48px; }
.industry-grid li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 36px 16px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--c-line);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.industry-grid li:hover { transform: translateY(-4px); border-color: var(--c-green); box-shadow: 0 16px 40px rgba(43,162,58,.12); }
.industry-grid iconify-icon { display: block; width: 36px; height: 36px; font-size: 36px; color: var(--c-blue); }
.industry-grid span { font-size: 17px; font-weight: 600; text-align: center; }

/* ---------- 07 News ---------- */
.news { padding: var(--sec-y) 0; background: var(--c-bg-soft); }
.news-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); padding: 32px;
  min-height: 240px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--c-blue-tint); }
.news-card .tag {
  align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--c-blue);
  background: var(--c-blue-tint); padding: 5px 10px; border-radius: 999px; margin-bottom: 20px;
}
.news-card h3 { font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; flex: 1; }
.news-card time { font-family: var(--font-num); font-size: 14px; color: var(--c-muted); margin-top: 24px; }
.news-card .sample {
  position: absolute; top: 20px; right: 20px; font-family: var(--font-num);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--c-faint);
  border: 1px dashed var(--c-line-strong); padding: 3px 6px; border-radius: 4px;
}

/* ---------- 08 Stories ---------- */
.stories { padding: var(--sec-y) 0; }
.stories .split { margin-bottom: 40px; }
.scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller-track {
  display: flex; gap: 20px;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  width: max-content;
}
.story {
  position: relative; flex: none; width: min(420px, 80vw); aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; scroll-snap-align: start;
}
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story:hover img { transform: scale(1.04); }
.story figcaption {
  position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: 8px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 14px; font-weight: 600; backdrop-filter: blur(6px);
}

/* ---------- 09 FAQ ---------- */
.faq { padding: var(--sec-y) 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-head .desc { margin-top: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--c-bg-soft); border-radius: 16px; border: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.faq-item.is-open { background: #fff; border-color: var(--c-blue); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 26px 28px; text-align: left; font-size: 19px; font-weight: 600; line-height: 1.4;
}
.faq-q iconify-icon { font-size: 24px; color: var(--c-blue); flex: none; transition: transform .3s var(--ease); }
.faq-item.is-open .faq-q iconify-icon { transform: rotate(45deg); }
/* Collapsed only when JS is running (html.js); without JS every answer stays readable */
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease), visibility 0s .35s; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 28px 26px; font-size: 16px; color: var(--c-muted); line-height: 1.75; }
.js .faq-item:not(.is-open) .faq-a { grid-template-rows: 0fr; visibility: hidden; }
.js .faq-item.is-open .faq-a { visibility: visible; transition-delay: 0s; }

/* ---------- 10 Contact ---------- */
.contact { padding: var(--sec-y-sm) 0 var(--sec-y); }
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0B0F19; color: #fff;
  border-radius: 32px; padding: 72px 40px;
}
.contact-card::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(60% 40% at 20% 100%, rgba(43,162,58,.35), transparent 60%),
    radial-gradient(50% 40% at 85% 0%, rgba(12,104,171,.45), transparent 60%),
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.08) 48%, rgba(43,162,58,.25) 52%, rgba(12,104,171,.25) 56%, transparent 66%);
  filter: blur(30px);
}
.contact-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.contact-head .desc { color: rgba(255,255,255,.7); margin-top: 20px; }
.contact-form {
  max-width: 880px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px;
}
.contact-form .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); }
.field label em, .contact-head em { color: #6EDB7C; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font: inherit; font-size: 16px;
  transition: border-color .2s, background .2s;
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select option { color: #111; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-green); background-color: rgba(255,255,255,.1); }
.field textarea { resize: vertical; min-height: 120px; }
.full { grid-column: 1 / -1; }
/* Checkboxes: real inputs (keyboard + form reset work), drawn as a box that fills green */
.contact-form input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.45); background: transparent no-repeat center / 14px;
  transition: background-color .15s, border-color .15s;
}
.contact-form input[type="checkbox"]:checked {
  background-color: var(--c-green); border-color: var(--c-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}
.services-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.services-field legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); }
.services-field legend span { font-weight: 500; color: rgba(255,255,255,.45); margin-left: 6px; }
.service-options { display: flex; flex-wrap: wrap; gap: 10px; }
.option {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  transition: background-color .2s, border-color .2s, color .2s;
}
.option:hover { border-color: rgba(255,255,255,.35); }
.option:has(input:checked) { color: #fff; background: rgba(43,162,58,.16); border-color: var(--c-green); }
.option-undecided { border-style: dashed; }
.consent { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.65); }
.consent a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.75); cursor: pointer; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.toast {
  text-align: center; font-size: 15px; font-weight: 600; color: #6EDB7C;
  background: rgba(43,162,58,.12); border: 1px solid rgba(43,162,58,.4);
  padding: 14px 20px; border-radius: 12px;
}
.toast[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: #111827; color: rgba(255,255,255,.7); padding: 80px 0 32px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.footer-tagline { color: #fff; font-weight: 600; margin-bottom: 20px; }
.footer address { font-style: normal; display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
.footer address a { color: #fff; font-weight: 600; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer-links h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-links :is(a, .nav-text) { display: block; padding: 5px 0; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.45); font-family: var(--font-num); }
.footer-bottom a { color: rgba(255,255,255,.8); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  :root { --sec-y: 144px; --sec-y-sm: 64px; }
  .split, .pain-grid, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .split { margin-bottom: 40px; }
  .cta-band { padding: 96px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .hero-card { height: min(70vh, 560px); min-height: 440px; }
  .hero-inner { padding: 40px; }
  .stack-card { grid-template-columns: 1fr; min-height: auto; padding: 36px; }
  .stack-media { min-height: 280px; }
  .stack-body { padding-left: 0; }
  .faq-head { position: static; }
  .contact-form { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  /* Desktop nav needs ~860px; switch to hamburger below 1024 (tablets) */
  .nav { grid-template-columns: auto 1fr; }
  .nav-center { display: none; }
  .nav-right { gap: 12px; }
  .nav-right .btn { display: none; } /* the CTA moves into the menu; the phone stays */
  .nav-toggle { display: flex; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --nav-h: 64px; --sec-y: 112px; --sec-y-sm: 72px; }
  body { font-size: 16px; }
  .br-m { display: inline; }
  .nav-logo img { height: 26px; }

  .hero { padding-top: 4px; }
  .hero-card { height: auto; min-height: 520px; }
  .hero-inner { position: relative; padding: 300px 24px 32px; }
  .hero--center .hero-card { min-height: 640px; }
  .hero--center .hero-inner { padding: 48px 24px; }
  .hero-title { font-size: 34px; }
  .hero-actions .btn { width: 100%; }

  .marquee-track { gap: 48px; --logo-scale: .8px; }

  .fine-card { padding: 28px 22px; }

  .compare-label { bottom: 16px; font-size: 13px; padding: 8px 12px; }
  .compare-label-l { left: 16px; } .compare-label-r { right: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }

  .stack-card { position: static; padding: 28px 22px; margin-bottom: 16px; box-shadow: none; }
  .stack-head { flex-direction: column; gap: 6px; margin-bottom: 20px; }
  .stack-head .num { font-size: 20px; }
  .stack-body .btn { width: 100%; }
  .stack-media { min-height: 220px; }

  .cover-head { margin-bottom: 40px; }
  .targets { grid-template-columns: 1fr; gap: 0; }
  .targets li { padding: 18px 0; }
  .steps { flex-direction: column; }
  .steps li { border-radius: 0 !important; border-left: 1px solid rgba(255,255,255,.1) !important; border-top: 0; padding: 20px 16px; }
  .steps li:first-child { border-top: 1px solid rgba(255,255,255,.1); border-radius: 14px 14px 0 0 !important; }
  .steps li:last-child { border-radius: 0 0 14px 14px !important; }
  .steps li br { display: none; }
  .steps li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -9px; transform: translateX(-50%) rotate(135deg); }

  .cta-band { padding: 72px 0; }
  .worry-cta { flex-direction: column; }
  .worry-cta .btn, .pain-cta .btn { width: 100%; }
  .industry-grid li { padding: 28px 12px; }

  .faq-q { padding: 20px 20px; font-size: 17px; }
  .faq-a p { padding: 0 20px 20px; font-size: 15px; }

  /* Short mobile form (owner, 2026-10-17): short fields (.half) pair up, tighter boxes. Service chips stay one per
     row — at half width "안전보건경영시스템" (one word under keep-all) overflows the card */
  .contact-card { padding: 40px 20px; border-radius: 24px; }
  .contact-head { margin-bottom: 28px; }
  .contact-head .desc { margin-top: 14px; font-size: 15px; }
  .contact-form { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .contact-form > :not(.half) { grid-column: 1 / -1; }
  .field { gap: 6px; }
  .field input, .field select, .field textarea { padding: 12px; }
  .field select { padding-right: 34px; background-position: right 10px center; }
  .field textarea { min-height: 96px; }
  .service-options { flex-direction: column; gap: 6px; }
  .option { gap: 10px; padding: 9px 12px; font-size: 14px; }
  .contact-actions { margin-top: 4px; }
  .contact-actions .btn { width: 100%; }

  .footer { padding: 56px 0 24px; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
}

/* Narrow phones: logo + number + menu button don't fit in one row — phone icon only (the number is in the menu) */
@media (max-width: 519px) {
  .nav-tel span { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
}
