/* Layout concept: a dispatch sheet. Plain ruled sections, label/value rows like a work order,
   one bold moment (the before/after slider), safety-yellow reserved for the call to action. */
:root {
  --bg: #f5f7f3;
  --surface: #ffffff;
  --ink: #15211b;
  --muted: #56645c;
  --line: #d9dfd6;
  --brand: #1c5a3e;
  --brand-ink: #ffffff;
  --brand-soft: #e3eee7;
  --signal: #f6c945;
  --signal-ink: #1b1600;
  --kakao: #fee500;
  --kakao-ink: #191600;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 8px 24px rgba(20, 40, 30, .06);
  --f-display: "Black Han Sans", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  --radius: 10px;
  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1512; --surface: #161f1a; --ink: #e6ede8; --muted: #9eaca4; --line: #27332c;
    --brand: #66c193; --brand-ink: #0b1510; --brand-soft: #1b2b22;
    --signal: #f6c945; --signal-ink: #1b1600;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1512; --surface: #161f1a; --ink: #e6ede8; --muted: #9eaca4; --line: #27332c;
  --brand: #66c193; --brand-ink: #0b1510; --brand-soft: #1b2b22;
  --signal: #f6c945; --signal-ink: #1b1600;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; margin: 0; }
h1, .display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: var(--step-3); font-family: var(--f-display); font-weight: 400; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.prose { max-width: 68ch; display: grid; gap: 1em; }
.prose h2 { margin-top: .8em; }
.prose h3 { margin-top: .4em; }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; color: var(--brand); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--brand); letter-spacing: -.01em; }
.logo span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 20px 10px; border-radius: 6px; white-space: nowrap; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"] { color: var(--brand); }
.has-mega > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .5; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; }
.has-mega:hover .mega, .has-mega:focus-within .mega { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.mega-inner { max-width: var(--wrap); margin-inline: auto; padding: 24px var(--gutter-r) 28px var(--gutter-l); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
.mega-title { font-family: var(--f-display); font-size: 1.6rem; color: var(--brand); line-height: 1.2; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; }
.mega-grid a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.mega-grid a b { font-size: .98rem; }
.mega-grid a span { font-size: .84rem; color: var(--muted); }
.mega-grid a:hover { background: var(--brand-soft); }
.mega-grid a:hover b { color: var(--brand); }
.header-call { flex: none; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter-r) 16px var(--gutter-l); gap: 2px;
}
.menu-panel { max-height: calc(100vh - 64px - env(safe-area-inset-top, 0px)); overflow-y: auto; }
.menu-panel > a, .menu-panel summary { color: var(--ink); text-decoration: none; font-weight: 700; padding: 12px 4px; border-bottom: 1px solid var(--line); display: block; cursor: pointer; }
.menu-panel details > div { display: grid; padding: 4px 0 8px 12px; border-bottom: 1px solid var(--line); }
.menu-panel details > div a { color: var(--ink); text-decoration: none; padding: 8px 4px; font-size: .95rem; }
@media (max-width: 1100px) {
  .nav, .header-call { display: none; }
  .menu { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-call { background: var(--brand); color: var(--brand-ink); }
.btn-call:hover { filter: brightness(1.08); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover { filter: brightness(.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px; }
.hero h1 { font-size: var(--step-4); line-height: 1.18; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 34ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.hero-tags li { font-size: .9rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
}

/* Before / after slider */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; background: var(--line); box-shadow: var(--shadow); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--signal); pointer-events: none; }
.ba-handle::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--signal); color: var(--signal-ink); font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.ba-label { position: absolute; top: 12px; font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 4px; background: rgba(10, 16, 12, .72); color: #fff; letter-spacing: .06em; }
.ba-label.l { left: 12px; } .ba-label.r { right: 12px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-caption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* Sections */
.section { padding-block: 64px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 68ch; }
.section-head p { color: var(--muted); }
.band { background: var(--surface); }

/* Work-order fact sheet */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sheet-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 20px; background: var(--brand); color: var(--brand-ink); }
.sheet-title b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
.sheet-title span { font-size: .85rem; opacity: .85; }
.sheet dl { margin: 0; display: grid; grid-template-columns: minmax(7.5em, max-content) minmax(0, 1fr); }
.sheet dt, .sheet dd { padding: 12px 20px; border-top: 1px solid var(--line); margin: 0; }
.sheet dt { font-weight: 700; color: var(--muted); font-size: .92rem; background: var(--bg); }
@media (max-width: 560px) {
  .sheet dl { grid-template-columns: 1fr; }
  .sheet dd { border-top: 0; padding-top: 0; }
}

/* Service list */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.svc h3 { color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.svc h3 small { font-size: .8rem; color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.svc p { color: var(--muted); font-size: .97rem; }
.svc .more { font-weight: 700; color: var(--brand); font-size: .92rem; }
.svc:hover h3 { color: var(--brand); }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }
.case { display: grid; gap: 10px; min-width: 0; }
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius); overflow: hidden; }
.case-pair figure { margin: 0; position: relative; aspect-ratio: 3 / 4; background: var(--line); }
.case-pair img { width: 100%; height: 100%; object-fit: cover; }
.case-pair figcaption { position: absolute; left: 8px; top: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; background: rgba(10, 16, 12, .72); color: #fff; }
.case-pair figure:last-child figcaption { background: var(--signal); color: var(--signal-ink); }
.case h3 { font-size: 1.05rem; }
.case p { font-size: .95rem; color: var(--muted); }
.case .tag { font-size: .78rem; font-weight: 700; color: var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: inherit; font-weight: 600; font-size: .92rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.singles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.singles figure { margin: 0; display: grid; gap: 8px; }
.singles img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.singles figcaption { font-size: .9rem; color: var(--muted); }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--f-display); font-size: 1.8rem; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); }

/* Feature list */
.why { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; }
.why-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px 28px; }
.why-2 div { border-top-width: 1px; border-top-color: var(--line); }
.why div { display: grid; gap: 6px; padding-top: 14px; border-top: 2px solid var(--ink); min-width: 0; }
.why p { color: var(--muted); }

/* Vehicles */
.vehicles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.vehicle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.vehicle b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; color: var(--brand); }
.vehicle p { color: var(--muted); font-size: .95rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
.review p { font-size: .97rem; }
.review footer { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--muted); max-width: 68ch; }

/* Page header (sub pages) */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 40px 36px; display: grid; gap: 12px; }
.page-head h1 { font-size: var(--step-4); }
.page-head p { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Two column article layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.aside { position: sticky; top: calc(80px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .aside { position: static; } }
.cta-card { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.cta-card b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.cta-card p { font-size: .95rem; opacity: .92; }
.cta-card .btn-call { background: var(--brand-ink); color: var(--brand); }
.tel { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .01em; }
.checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 1.6em; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; font-size: .95rem; }
.note { background: var(--brand-soft); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; }
.link-list { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); }
.link-list a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.link-list a b { font-size: 1.08rem; }
.link-list a span { color: var(--muted); font-size: .95rem; }
.link-list a:hover b { color: var(--brand); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; white-space: nowrap; }

/* Closing CTA */
.closing { background: var(--brand); color: var(--brand-ink); }
.closing .wrap { padding-block: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.closing h2 { color: var(--brand-ink); }
.closing p { opacity: .9; margin-top: 8px; }
.closing .btn-call { background: var(--brand-ink); color: var(--brand); }
@media (max-width: 760px) { .closing .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.site-footer .wrap { padding-block: 40px 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.site-footer h2 { font-size: 1rem; font-family: var(--f-body); font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--muted); }
@media (min-width: 1101px) { .site-footer .wrap { padding-bottom: 40px; } }

/* Mobile action bar */
.actionbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  grid-template-columns: 1fr 1fr; gap: 8px;
}
.actionbar .btn { width: 100%; }
@media (max-width: 1100px) { .actionbar { display: grid; } }

@media (prefers-reduced-motion: no-preference) {
  .btn, .svc h3, .nav a { transition: background-color .15s, color .15s, filter .15s; }
}

/* Videos (Instagram) */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.video { display: grid; gap: 8px; align-content: start; min-width: 0; }
.video-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb iframe { width: 100%; height: 100%; border: 0; background: var(--surface); }
.video-play { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(10, 16, 12, .74); color: #fff; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.video-play svg { width: 18px; height: 18px; }
.video-play em { font-style: normal; }
.video h3 { font-size: 1rem; line-height: 1.45; }
.video p { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.video .tag, .post .tag { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* Blog posts (강산 일상) */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.post { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); min-width: 0; }
.post img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post h3 { font-size: 1.05rem; line-height: 1.45; }
.post p { font-size: .93rem; color: var(--muted); }
.post:hover h3 { color: var(--brand); }
.post-body h2 { font-size: var(--step-2); margin-top: 1.2em; }
.post-img { margin: 0; display: grid; gap: 6px; }
.post-img img { border-radius: var(--radius); width: 100%; }
.post-img figcaption { font-size: .88rem; color: var(--muted); }

.chips-lg li { padding: 0; }
.chips-lg a { display: block; padding: 8px 16px; font-weight: 600; text-decoration: none; color: var(--ink); }
.chips-lg a:hover { color: var(--brand); }
.video-thumb.is-playing { aspect-ratio: 9 / 16; }
.lead-thumb { margin: 0 0 8px; display: grid; gap: 8px; }
.lead-thumb img { width: 100%; max-width: 520px; border-radius: var(--radius); }
.lead-thumb figcaption { font-size: .88rem; color: var(--muted); }
