/* 튼튼산업개발(주) 홈페이지
   레이아웃: 흰 바탕 + 로고의 남색→하늘색 한 가지 강조색. 첫 화면 오른쪽 '배차 접수' 카드 하나만 진하게, 나머지는 조용하게.
   글꼴: IBM Plex Sans KR(본문·제목), IBM Plex Mono(전화번호·규격 같은 숫자) */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --surface: #ffffff;
  --ink: #16192b;
  --ink-2: #4a5068;
  --ink-3: #7a8098;
  --line: #e1e5ee;
  --navy: #2b3a9b;          /* 로고 왼쪽 */
  --sky: #1189d6;           /* 로고 오른쪽 */
  --accent: #2b3a9b;
  --accent-ink: #ffffff;
  --accent-soft: #eaeefb;
  --panel-grad: linear-gradient(135deg, #2b3a9b 0%, #1c63bd 55%, #1189d6 100%);
  --on-panel: #ffffff;
  --on-panel-2: rgba(255, 255, 255, .72);
  --on-panel-line: rgba(255, 255, 255, .22);
  --error: #c2361f;
  --line-strong: #c9d0e0;
  --ph-stripe: #e4e8f1;
  --scrim: rgba(12, 16, 38, .55);
  --intro-bg: #ffffff;
  --intro-ink: #16192b;
  --intro-sub: #7a8098;
  --intro-line: #e1e5ee;
  --navy-ink: #2b3a9b;

  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1220;
    --bg-alt: #151a2c;
    --surface: #181d31;
    --ink: #eef0f7;
    --ink-2: #b4b9cc;
    --ink-3: #868ca3;
    --line: #2a3150;
    --accent: #7fa3ff;
    --accent-ink: #0f1220;
    --accent-soft: #1d2647;
    --panel-grad: linear-gradient(135deg, #23307f 0%, #17519c 55%, #0e70b0 100%);
    --error: #ff8a70;
    --line-strong: #39416a;
    --ph-stripe: #222a45;
    --scrim: rgba(0, 0, 0, .65);
    --intro-bg: #0f1220;
    --intro-ink: #eef0f7;
    --intro-sub: #868ca3;
    --intro-line: #2a3150;
    --navy-ink: #8fb0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1220;
  --bg-alt: #151a2c;
  --surface: #181d31;
  --ink: #eef0f7;
  --ink-2: #b4b9cc;
  --ink-3: #868ca3;
  --line: #2a3150;
  --accent: #7fa3ff;
  --accent-ink: #0f1220;
  --accent-soft: #1d2647;
  --panel-grad: linear-gradient(135deg, #23307f 0%, #17519c 55%, #0e70b0 100%);
  --error: #ff8a70;
  --line-strong: #39416a;
  --ph-stripe: #222a45;
  --scrim: rgba(0, 0, 0, .65);
  --intro-bg: #0f1220;
  --intro-ink: #eef0f7;
  --intro-sub: #868ca3;
  --intro-line: #2a3150;
  --navy-ink: #8fb0ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 var(--fs-sm)/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* 머리글 */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.brand-text small { font-size: .6875rem; color: var(--ink-3); letter-spacing: .02em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--accent); }
.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--fs-sm)/1 var(--mono); text-decoration: none;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
}
.header-call .label { font-family: var(--font); font-size: var(--fs-xs); color: var(--ink-3); }
.header-call:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 첫 화면 */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.035em; }
.lead { margin-top: 22px; font-size: var(--fs-md); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.dispatch {
  background: var(--panel-grad); color: var(--on-panel);
  border-radius: 10px; padding: 28px;
  position: relative; overflow: hidden;
}
.dispatch::after {
  /* TT 마크 지붕선을 닮은 큰 꺾은선 */
  content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 160px;
  border-top: 2px solid var(--on-panel-line); transform: skewY(-17deg);
  pointer-events: none;
}
.dispatch-head { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: var(--fs-lg); }
.dispatch-head img { width: 52px; background: #fff; border-radius: 6px; padding: 6px; }
.dispatch-list { margin: 22px 0 0; display: grid; gap: 0; }
.dispatch-list div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--on-panel-line); }
.dispatch-list dt { font-size: var(--fs-xs); color: var(--on-panel-2); padding-top: 2px; }
.dispatch-list dd { margin: 0; font-size: var(--fs-sm); min-width: 0; }
.dispatch-list dd.mono { font-size: 1rem; }
.dispatch-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dispatch-tags li { font-size: var(--fs-xs); padding: 4px 10px; border: 1px solid var(--on-panel-line); border-radius: 999px; }

/* 공통 구획 */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { font-size: var(--fs-xl); font-weight: 700; }
.section-sub { margin-top: 14px; color: var(--ink-2); }

/* 사업분야 */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { position: relative; padding: 28px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; transition: background-color .15s; }
.svc:hover { background: var(--accent-soft); }
.svc-group { position: absolute; top: 22px; right: 20px; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.svc-icon { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.svc h3 { font-size: var(--fs-lg); font-weight: 700; }
.svc p { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }

/* 장비·골재 */
.fleet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; min-width: 0; }
.panel h3 { font-size: var(--fs-lg); font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list li span:first-child { font-weight: 500; }
.spec-list li .mono { color: var(--ink-3); font-size: var(--fs-sm); text-align: right; }

/* 이유 */
.why-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.why-list { display: grid; gap: 0; }
.why { padding-block: 24px; border-top: 1px solid var(--line); }
.why:first-child { border-top: 2px solid var(--ink); }
.why h3 { font-size: var(--fs-lg); font-weight: 700; }
.why p { margin-top: 8px; color: var(--ink-2); max-width: 36em; }

/* 진행 절차 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { padding: 0 20px 0 0; position: relative; min-width: 0; }
.steps li::before { content: ""; display: block; height: 2px; background: var(--line); margin-bottom: 18px; }
.steps li:first-child::before { background: var(--accent); }
.step-no { display: block; color: var(--accent); font-size: var(--fs-sm); margin-bottom: 8px; }
.steps h3 { font-size: var(--fs-md); font-weight: 700; }
.steps p { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }

/* 회사 개요 */
.company-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.company-logo { width: min(320px, 100%); background: #fff; border-radius: 8px; padding: 18px; border: 1px solid var(--line); }
.info-wrap { min-width: 0; }
.info { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.info th, .info td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: var(--fs-sm); }
.info th { width: 9.5em; font-weight: 500; color: var(--ink-3); padding-right: 16px; }
.info td { color: var(--ink); }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* 문의 */
.contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-copy h2 { font-size: var(--fs-xl); font-weight: 700; }
.contact-copy > p:not(.eyebrow):not(.contact-phone):not(.contact-meta) { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.contact-phone { margin-top: 28px; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); color: var(--accent); line-height: 1.2; }
.contact-meta { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-3); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 var(--fs-sm)/1.5 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.form-error { color: var(--error); font-size: var(--fs-sm); }
.result { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.result-title { font-weight: 700; }
.result-text { margin: 0; white-space: pre-wrap; font: 400 var(--fs-sm)/1.6 var(--font); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow-x: auto; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-note { font-size: var(--fs-xs); color: var(--ink-3); }

/* 바닥글 */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 40px; }
.footer-info { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.9; }
.footer-copy { font-size: var(--fs-xs); color: var(--ink-3); }

.footer-end { display: grid; gap: 10px; justify-items: end; }
.made-by { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.made-by img { width: 180px; height: auto; background: #fff; border: 1px solid #cfe3df; border-radius: 8px; padding: 10px 14px; box-sizing: content-box; }   /* 로고는 흰 바탕 위에만 (브랜드 규칙) */
.made-by:hover img { border-color: #0e6b5e; }
.made-by:hover span { color: #0e6b5e; }
@media (max-width: 860px) { .footer-end { justify-items: start; } }

/* 제작사 표시: 왼쪽 아래 작은 알약 (테마와 상관없이 흰 바탕, ARASEO 로고 규칙) */
.ad-float {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid #e1e5ee; border-radius: 999px;
  animation: ad-in .5s ease 1.5s both;
}
@keyframes ad-in { from { opacity: 0; } to { opacity: 1; } }
.ad-badge { display: flex; align-items: center; gap: 7px; padding: 6px 2px 6px 12px; text-decoration: none; }
.ad-label { font-size: .6875rem; color: #7a8098; }
.ad-badge img { width: 84px; height: auto; display: block; }
.ad-close { width: 24px; height: 24px; margin-right: 4px; border: 0; background: none; color: #a0a6b8; cursor: pointer; border-radius: 999px; display: grid; place-items: center; }
.ad-close:hover { background: #f4f6fa; color: #16192b; }
.ad-close svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 860px) {
  .ad-float { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); left: 12px; }
}

/* 휴대폰 하단 버튼 */
.mobile-bar { display: none; }


/* ───────── 인트로 (첫 방문 한 번) ───────── */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--intro-bg); color: var(--intro-ink);
  transition: transform .85s cubic-bezier(.7, 0, .2, 1);
}
.intro::after {   /* 걷힐 때 아래로 끌려가는 로고색 띠 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--navy), var(--sky));
}
.intro.done { transform: translateY(-100%); }
.intro-inner { display: grid; justify-items: center; gap: 18px; padding-inline: 24px; text-align: center; }
.tt-svg { width: clamp(120px, 22vw, 180px); height: auto; overflow: visible; }
.intro.end.novid .tt-l { animation: tt-in-l .8s cubic-bezier(.2, .8, .2, 1) .1s both; }
.intro.end.novid .tt-r { animation: tt-in-r .8s cubic-bezier(.2, .8, .2, 1) .25s both; }
.intro-since { font-size: var(--fs-sm); color: var(--navy-ink); letter-spacing: .32em; opacity: 0; }
.intro.end .intro-since { animation: since-in .9s ease-out .25s both; }
.intro-name { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); font-weight: 700; letter-spacing: -.03em; opacity: 0; }
.intro.end .intro-name { animation: rise-k .8s cubic-bezier(.2, .7, .2, 1) .5s both; }
.intro-inner::after {   /* 진행 막대 */
  content: ""; width: 120px; height: 2px; margin-top: 6px;
  background: linear-gradient(90deg, var(--navy), var(--sky));
  transform-origin: left; transform: scaleX(0);
}
.intro.end .intro-inner::after { animation: grow 1.6s linear .2s both; }
.intro-skip {
  position: absolute; right: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: none; border: 1px solid var(--intro-line); color: var(--intro-sub);
  font: 500 var(--fs-xs)/1 var(--font); padding: 10px 14px; border-radius: 999px; cursor: pointer;
}
@keyframes tt-in-l { from { opacity: 0; transform: translateX(-140px) skewY(-6deg); } to { opacity: 1; transform: none; } }
@keyframes tt-in-r { from { opacity: 0; transform: translateX(140px) skewY(6deg); } to { opacity: 1; transform: none; } }
@keyframes since-in { from { opacity: 0; letter-spacing: .8em; } to { opacity: 1; letter-spacing: .32em; } }
@keyframes rise-k { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 첫 화면 글자가 차례로 올라온다 (인트로가 걷힌 뒤) */
html.intro-on:not(.ready) .rise { opacity: 0; }
html.ready .rise { display: inline-block; animation: rise-k .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 110ms + 200ms); }
html.ready p.rise, html.ready div.rise, html.ready aside.rise { display: block; }
html.ready .hero-actions.rise { display: flex; }
.hero h1 .rise { display: inline-block; }

/* 첫 화면 배경: 로고 지붕선처럼 비스듬한 선이 천천히 흐른다 */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-lines span {
  position: absolute; left: -20%; width: 140%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
  transform: rotate(-17deg);
  animation: drift 18s linear infinite;
}
.hero-lines span:nth-child(1) { top: 20%; }
.hero-lines span:nth-child(2) { top: 55%; animation-duration: 24s; animation-direction: reverse; }
.hero-lines span:nth-child(3) { top: 90%; animation-duration: 30s; }
@keyframes drift { from { translate: -8% 0; } to { translate: 8% 0; } }

/* ───────── 1994 연혁 띠 ───────── */
.since { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); }
.since-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.since-years { display: flex; align-items: center; gap: 18px; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1; color: var(--ink); min-width: 0; }
.since-years span:last-child { color: var(--accent); }
.since-bar { flex: 1; height: 3px; min-width: 40px; background: linear-gradient(90deg, var(--navy), var(--sky)); transform-origin: left; }
.since.on .since-bar { animation: grow 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.since-copy h2 { font-size: var(--fs-xl); font-weight: 700; }
.since-count { color: var(--accent); }
.since-copy > p:last-child { margin-top: 14px; color: var(--ink-2); max-width: 36em; }

/* ───────── 사업 카드: 누르면 팝업 ───────── */
.svc { cursor: pointer; display: flex; flex-direction: column; }
.svc-open {
  all: unset; cursor: pointer; font: inherit; color: inherit;
}
.svc-open::after { content: ""; position: absolute; inset: 0; }   /* 카드 전체를 누를 수 있게 */
.svc-open:focus-visible { outline: none; }
.svc:has(.svc-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.svc-more { margin-top: auto; padding-top: 18px; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.svc-more .arrow { display: inline-block; transition: transform .2s; }
.svc:hover .svc-more .arrow { transform: translateX(4px); }
.svc:hover .svc-icon { transform: translateY(-3px); }
.svc-icon { transition: transform .25s; }

/* ───────── 상세 팝업 ───────── */
body.modal-open { overflow: hidden; }
.svc-modal {
  width: min(900px, calc(100% - 32px)); max-height: min(88vh, 900px);
  padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  overflow: hidden;
}
.svc-modal::backdrop { background: var(--scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.svc-modal[open] { display: flex; }
.svc-modal[open] .modal-shell { animation: pop .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-shell { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.modal-group { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; flex: none; }
.modal-head h2 { font-size: var(--fs-lg); font-weight: 700; flex: 1; min-width: 0; }
.modal-close { width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.modal-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal-body { padding: 24px; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-height: 0; overscroll-behavior: contain; }

.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 16 / 7.5; max-width: 100%; }
.gallery > :first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.n1 > :first-child { grid-row: auto; }
.gallery.n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr; }
.gallery.n2 > :first-child { grid-row: auto; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 8px; background: var(--bg-alt); min-height: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; font-size: var(--fs-xs); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.gallery .ph {
  border-radius: 8px; min-height: 0;
  display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 12px;
  background: repeating-linear-gradient(-17deg, var(--bg-alt) 0 14px, var(--ph-stripe) 14px 15px);
  border: 1px dashed var(--line-strong); color: var(--ink-3);
}
.gallery .ph svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.gallery .ph span { font-size: var(--fs-xs); }
.modal-lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 46em; }
.modal-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.modal-cols h3 { font-size: var(--fs-sm); font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: var(--fs-sm); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.chip-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { font-size: var(--fs-xs); font-weight: 500; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.modal-nav, .modal-cta { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .since-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .svc-modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: 0; margin: 0; }
  .modal-body { padding: 20px 16px; }
  .gallery { aspect-ratio: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .gallery > :first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .gallery > :not(:first-child) { aspect-ratio: 4 / 3; }
  .gallery.n1 > :first-child, .gallery.n2 > * { grid-column: span 2; }
  .modal-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .modal-foot { padding-inline: 16px; }
  .modal-cta { width: 100%; }
  .modal-cta > * { flex: 1 1 auto; }
  .modal-nav { width: 100%; justify-content: space-between; }
}


/* ───────── 영상 첫 화면 (테마와 상관없이 어두운 화면 위 흰 글자) ───────── */
.hero { background: #111; color: #fff; border-bottom: 0; }
.hero .hero-lines { display: none; }
.hero-video, .intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, 0) 75%); }   /* 원본 색 유지, 글자 쪽만 어둡게 */
.hero .hero-lines { z-index: -1; }
.hero .hero-lines span { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18) 30%, rgba(255, 255, 255, .18) 70%, transparent); }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero .lead { text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero .lead { color: rgba(255, 255, 255, .82); }
.hero .btn-primary { background: #fff; color: #1d2a7a; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.hero .dispatch { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.hero-note { position: absolute; right: var(--gutter); bottom: 12px; margin: 0; font-size: .6875rem; color: rgba(255, 255, 255, .55); }
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 128px); }

/* 인트로: 영상 위에 흰 마크 */
.intro { background: #ffffff; color: #16192b; overflow: hidden; }
.intro-video { z-index: 0; transition: opacity .5s ease; }
.intro.end .intro-video { opacity: 0; }
.intro-inner { z-index: 1; opacity: 0; }
.intro.end .intro-inner { opacity: 1; transition: opacity .5s ease; }
.intro .intro-since { color: #2b3a9b; }
.intro-shade { display: none; }
.intro::after { display: none; }   /* 영상 아래 파란 줄 없음 */
.intro-inner { position: relative; }
.intro-skip { z-index: 2; color: #fff; background: rgba(10, 14, 40, .45); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ───────── 사업 카드 이미지 ───────── */
.svc { padding-top: 0; }
.svc-media { margin: 0 -24px 22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); position: relative; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.svc:hover .svc-media img { transform: scale(1.06); }
.svc-media.none { display: grid; place-items: center; background: repeating-linear-gradient(-17deg, var(--bg-alt) 0 14px, var(--ph-stripe) 14px 15px); }
.svc-media.none .svc-icon { width: 56px; height: 56px; margin: 0; opacity: .7; }
.svc:not(.no-cover) > .svc-icon { display: none; }
.svc.no-cover > .svc-icon { display: none; }
.svc-group { top: 12px; right: 12px; z-index: 1; background: rgba(255, 255, 255, .92); color: #2b3a9b; padding: 3px 9px; border-radius: 999px; }

/* 팝업 연출 이미지 표시 */
.gallery figure.is-ai figcaption { left: auto; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .6875rem; }

/* 반응형 */
@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .header-call .label { display: none; }
  .nav { gap: 18px; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-call { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-md); }
  .nav a:last-child { border-bottom: 0; }
  .hero-grid, .why-grid, .company-grid, .contact-grid, .fleet-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
  .mobile-call { background: var(--accent); color: var(--accent-ink); }
  .mobile-quote { border: 1px solid var(--line); color: var(--ink); }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .info th { width: 7.5em; }
  .hero-actions .btn { flex: 1 1 auto; }
  .dispatch { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
