/* Layout concept: engineering spec sheet — white sheets on a cool paper ground,
   brand red reserved for the mark, key figures and the primary action;
   monospace labels carry real specs (protocols, frequencies, tolerances). */
:root {
  --paper: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #15171C;
  --ink-2: #4B515D;
  --ink-3: #7A808C;
  --line: #DDE1E7;
  --brand: #DA2041;
  --brand-deep: #B3122F;
  --brand-tint: #FCEBEE;
  --night: #1B1E24;
  --night-2: #262A32;
  --night-ink: #E9EBEF;
  --night-ink-2: #A7ADB8;

  --f-display: "IBM Plex Sans KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-md: 1rem;
  --fs-lg: 1.15rem;
  --fs-xl: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  --fs-3xl: clamp(2rem, 1.3rem + 3vw, 3.4rem);

  --wrap: 1180px;
  --radius: 6px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 51; background: var(--surface); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu a { display: block; padding: 8px 14px; text-decoration: none; font-weight: 500; font-size: var(--fs-sm); color: var(--ink-2); border-radius: var(--radius); }
.menu a:hover { color: var(--ink); background: var(--paper); }
.menu a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.menu .menu-cta a { background: var(--brand); color: #fff; margin-left: 8px; }
.menu .menu-cta a:hover { background: var(--brand-deep); color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 40px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; display: block; margin: auto; }

@media (max-width: 860px) {
  .brand span { display: none; }
  .menu-toggle { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 4px; font-size: var(--fs-md); border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu .menu-cta a { margin: 14px 0 0; text-align: center; border-radius: var(--radius); border: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 600; font-size: var(--fs-md);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--surface); }
.btn-line-light { border-color: var(--night-ink-2); color: var(--night-ink); background: transparent; }
.btn-line-light:hover { background: var(--night-ink); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Common blocks ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-white { background: var(--surface); }
.section-night { background: var(--night); color: var(--night-ink); }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
  display: inline-block; margin-bottom: 14px;
}
.section-night .eyebrow { color: #FF6A82; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { font-size: var(--fs-2xl); font-weight: 700; }
.sec-head p { color: var(--ink-2); font-size: var(--fs-lg); }
.section-night .sec-head p { color: var(--night-ink-2); }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head-row .sec-head { margin-bottom: 0; }
.more-link { font-family: var(--f-display); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 2px; white-space: nowrap; }

.tag {
  display: inline-block; font-family: var(--f-mono); font-size: 0.74rem; line-height: 1.4;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2);
  background: var(--surface); white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.section-night .tag { background: transparent; border-color: #3A404B; color: var(--night-ink-2); }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
  opacity: .55;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 20px; font-size: var(--fs-lg); color: var(--ink-2); max-width: 34em; }
.hero .btn-row { margin-top: 32px; }
.chain { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-2); }
.chain span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.chain i { font-style: normal; color: var(--ink-3); }
.hero-board { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.hero-board figure { margin: 0; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.hero-board figure:first-child { grid-row: span 2; }
.hero-board img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-board figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.hero-board figcaption {
  position: absolute; left: 8px; bottom: 8px; font-family: var(--f-mono); font-size: 0.72rem;
  background: rgba(21,23,28,.86); color: #fff; padding: 4px 8px; border-radius: 3px; max-width: calc(100% - 16px);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { background: var(--night); color: var(--night-ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; border-left: 1px solid #333843; display: grid; gap: 4px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--f-display); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 0.5em; font-weight: 600; margin-left: 2px; color: #FF6A82; }
.stat span { color: var(--night-ink-2); font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; border-left: 0; border-top: 1px solid #333843; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
}

/* ---------- Pain points ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.pain h3 { font-size: var(--fs-lg); font-weight: 600; }
.pain p { color: var(--ink-2); font-size: var(--fs-sm); }
.pain .answer { border-top: 1px dashed var(--line); padding-top: 12px; color: var(--ink); font-weight: 500; }
.pain .answer::before { content: "HnD → "; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); font-weight: 600; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; text-decoration: none; transition: background .15s; }
a.svc:hover { background: #FAFBFC; }
.svc .code { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.svc h3 { font-size: var(--fs-xl); font-weight: 600; }
.svc p { color: var(--ink-2); font-size: var(--fs-sm); }
.svc .partner { font-size: var(--fs-xs); color: var(--ink-3); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #333843; border: 1px solid #333843; border-radius: var(--radius); overflow: hidden; }
.why-item { background: var(--night); padding: 32px; display: grid; gap: 10px; align-content: start; }
.why-item h3 { font-size: var(--fs-lg); font-weight: 600; color: #fff; }
.why-item p { color: var(--night-ink-2); font-size: var(--fs-sm); }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } .why-item { padding: 24px; } }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.ind h3 { font-size: var(--fs-lg); font-weight: 600; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ind h3 small { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); font-weight: 500; white-space: nowrap; }
.ind p { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 900px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }

/* ---------- Work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, transform .15s; }
.work:hover { border-color: var(--ink-3); }
.work .thumb { aspect-ratio: 4/3; background: #EEF0F3; overflow: hidden; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.work:hover .thumb img { transform: scale(1.03); }
.work .body { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; flex: 1; }
.work .cat { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); letter-spacing: .04em; }
.work h3 { font-size: var(--fs-lg); font-weight: 600; }
.work p { color: var(--ink-2); font-size: var(--fs-sm); }
.badge { font-family: var(--f-mono); font-size: 0.7rem; background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; font-weight: 500; }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 22px 20px 4px 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step + .step { padding-left: 20px; border-left: 1px solid var(--line); }
.step .no { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); font-weight: 600; }
.step h3 { font-size: var(--fs-lg); font-weight: 600; }
.step p { color: var(--ink-2); font-size: var(--fs-sm); }
.step .out { font-size: var(--fs-xs); color: var(--ink-3); font-family: var(--f-mono); line-height: 1.6; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 20px 0 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 2px solid var(--ink); }
}

/* detailed process (services page) */
.proc { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.proc-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.proc-row .no { font-family: var(--f-mono); font-weight: 600; color: var(--brand); font-size: var(--fs-lg); }
.proc-row h3 { font-size: var(--fs-xl); font-weight: 600; margin-bottom: 8px; }
.proc-row p { color: var(--ink-2); }
.proc-row .lst { list-style: none; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.proc-row .lst li { padding-left: 16px; position: relative; }
.proc-row .lst li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--ink-3); }
.proc-row .deliv { margin-top: 14px; }
.proc-row .deliv b { display: block; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; margin-bottom: 6px; letter-spacing: .06em; }
@media (max-width: 800px) { .proc-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--night); color: var(--night-ink); }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.cta-inner h2 { font-size: var(--fs-2xl); color: #fff; }
.cta-inner p { color: var(--night-ink-2); margin-top: 12px; }
.cta-contact { display: grid; gap: 14px; justify-items: start; }
.cta-contact .line { font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--night-ink); }
.cta-contact .line span { color: var(--night-ink-2); display: inline-block; width: 64px; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.02em; }
.page-head p { margin-top: 14px; color: var(--ink-2); font-size: var(--fs-lg); max-width: 40em; }

/* ---------- Service detail ---------- */
.svc-detail { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 44px; border-top: 1px solid var(--line); }
.svc-detail:first-of-type { border-top: 2px solid var(--ink); }
.svc-detail .side { display: grid; gap: 10px; align-content: start; }
.svc-detail .side .code { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); font-weight: 600; }
.svc-detail .side h2 { font-size: var(--fs-2xl); font-weight: 700; }
.svc-detail .side .en { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.svc-detail .main { display: grid; gap: 22px; min-width: 0; }
.svc-detail .main > p { font-size: var(--fs-lg); color: var(--ink-2); }
.cap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.cap h4 { font-size: var(--fs-md); font-weight: 600; margin-bottom: 6px; }
.cap ul { list-style: none; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.cap li { padding-left: 16px; position: relative; }
.cap li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 1px; background: var(--brand); }
.note { font-size: var(--fs-sm); color: var(--ink-3); border-left: 2px solid var(--line); padding-left: 12px; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; } .cap-cols { grid-template-columns: 1fr; } }

/* tech stack table */
.stack { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.stack-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.stack-row h4 { font-size: var(--fs-md); font-weight: 600; }
.stack-row h4 small { display: block; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
@media (max-width: 700px) { .stack-row { grid-template-columns: 1fr; gap: 8px; } }

/* deliverables */
.deliv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deliv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.deliv-card h3 { font-size: var(--fs-md); font-weight: 600; }
.deliv-card ul { list-style: none; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.deliv-card li::before { content: "· "; color: var(--brand); }
@media (max-width: 960px) { .deliv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .deliv-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font-family: var(--f-display); font-size: var(--fs-sm); font-weight: 500;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filters button span { font-family: var(--f-mono); font-size: var(--fs-xs); margin-left: 4px; opacity: .7; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; scroll-margin-top: 90px; }
.case + .case { margin-top: 20px; }
.case .gallery { display: grid; gap: 4px; background: #EEF0F3; grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; align-self: start; }
.case .gallery img { width: 100%; height: 100%; object-fit: cover; background: #fff; min-height: 0; }
.case .gallery img:first-child { grid-row: span var(--n, 2); aspect-ratio: 4/3; }
.case .gallery.one { grid-template-columns: 1fr; }
.case .info { padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.case .cat { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); letter-spacing: .04em; }
.case h2 { font-size: var(--fs-xl); font-weight: 700; }
.case .sum { color: var(--ink-2); }
.case ul.pts { list-style: none; display: grid; gap: 6px; font-size: var(--fs-sm); }
.case ul.pts li { padding-left: 16px; position: relative; }
.case ul.pts li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 1px; background: var(--brand); }
.case .scope { font-size: var(--fs-xs); color: var(--ink-3); font-family: var(--f-mono); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.greet { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.greet h2 { font-size: var(--fs-2xl); font-weight: 700; }
.greet .txt { display: grid; gap: 16px; color: var(--ink-2); font-size: var(--fs-lg); }
.greet .sign { color: var(--ink); font-family: var(--f-display); font-weight: 600; margin-top: 8px; }
@media (max-width: 860px) { .greet { grid-template-columns: 1fr; } }
.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: var(--fs-md); }
.info-table th, .info-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 180px; font-family: var(--f-display); font-weight: 600; color: var(--ink); background: #FAFBFC; }
.info-table td { color: var(--ink-2); }
@media (max-width: 600px) { .info-table th { width: 110px; padding: 14px 8px; } .info-table td { padding: 14px 8px; } }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 22px; }
.fieldset { display: grid; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .08em; margin-bottom: 4px; padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-weight: 500; font-size: var(--fs-sm); }
.req { color: var(--brand); margin-left: 2px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-md); color: var(--ink); background: var(--surface);
  border: 1px solid #C9CED6; border-radius: var(--radius); padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 13px; border: 1px solid #C9CED6; border-radius: 999px; font-size: var(--fs-sm); cursor: pointer; background: var(--surface); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.consent { background: var(--paper); border-radius: var(--radius); padding: 16px; font-size: var(--fs-sm); color: var(--ink-2); display: grid; gap: 10px; }
.consent table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.consent th, .consent td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; background: var(--surface); }
.consent .agree { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); }
.consent .agree input { width: 18px; height: 18px; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--fs-sm); padding: 12px 14px; border-radius: var(--radius); }
.form-status.ok { background: #EAF6EE; color: #17633A; }
.form-status.err { background: var(--brand-tint); color: var(--brand-deep); }
.form-status.info { background: #EEF2F8; color: #2C4A78; }

.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h3 { font-size: var(--fs-lg); font-weight: 600; }
.aside-card .kv { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; font-size: var(--fs-sm); }
.aside-card .kv dt { color: var(--ink-3); }
.aside-card .kv dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.check-list { list-style: none; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); counter-reset: c; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { counter-increment: c; content: counter(c); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ink-3); font-family: var(--f-mono); font-size: 0.7rem; display: grid; place-items: center; line-height: 1; color: var(--ink); }
.check-list b { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: var(--f-display); font-weight: 600; font-size: var(--fs-lg); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--f-mono); font-size: 1.4rem; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 48em; }

/* ---------- Legal text ---------- */
.legal { max-width: 820px; display: grid; gap: 28px; }
.legal h2 { font-size: var(--fs-xl); font-weight: 600; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; display: grid; gap: 4px; margin-top: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: var(--fs-sm); }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; background: var(--surface); }
.legal th { background: #FAFBFC; }
.tbl-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink-2); font-size: var(--fs-sm); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; padding-block: 48px 28px; }
.foot-grid img { height: 28px; width: auto; }
.foot-grid .tagline { margin-top: 14px; max-width: 22em; }
.foot-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.foot-info div { display: flex; gap: 10px; }
.foot-info dt { color: #7E8592; min-width: 84px; }
.foot-info dd { margin: 0; color: var(--night-ink); }
.foot-bottom { border-top: 1px solid #333843; padding-block: 18px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-bottom a { color: var(--night-ink); text-decoration: none; font-weight: 600; }
.foot-bottom a:hover { text-decoration: underline; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } .foot-info { grid-template-columns: 1fr; } }

/* ---------- v2: hero art, promise, beauty focus ---------- */
.hero-visual { position: relative; }

.hero-art { width: 100%; height: auto; display: block; }
.hero-art .ha-chip { font-family: var(--f-mono); font-size: 22px; font-weight: 600; fill: #E9EBEF; letter-spacing: .08em; }
.hero-art .ha-sub { font-family: var(--f-mono); font-size: 10.5px; fill: #8B93A1; }
.hero-art .ha-mod { font-family: var(--f-mono); font-size: 11.5px; fill: #C5CAD3; letter-spacing: .03em; }
.hero-art .ha-silk { font-family: var(--f-mono); font-size: 11px; fill: #5A6170; letter-spacing: .1em; }
.hero-art .ha-flow { animation: ha-flow 2.4s linear infinite; }
@keyframes ha-flow { to { stroke-dashoffset: -64; } }
@media (prefers-reduced-motion: reduce) { .hero-art .ha-flow { animation: none; } }

.chain .hot { border-color: var(--brand); color: var(--brand); font-weight: 600; background: var(--brand-tint); }
.why-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .why-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-4 { grid-template-columns: 1fr; } }

.section-beauty { background: linear-gradient(180deg, #FBF4F5 0%, var(--surface) 100%); border-block: 1px solid var(--line); }
.beauty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.beauty-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.beauty-copy h2 { font-size: var(--fs-2xl); font-weight: 700; }
.beauty-copy > p { color: var(--ink-2); font-size: var(--fs-lg); }
.beauty-pts { list-style: none; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.beauty-pts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.beauty-pts b { color: var(--ink); font-family: var(--f-display); font-weight: 600; }
.beauty-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.beauty-imgs img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; }
.beauty-imgs img:first-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .beauty-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .beauty-pts li { grid-template-columns: 1fr; gap: 2px; } }
.field select { appearance: auto; }

/* ---------- v3 ---------- */
.hero-dark { background: radial-gradient(80% 90% at 78% 40%, #2A2F38 0%, #181B21 55%, #121418 100%); border-bottom: 0; color: var(--night-ink); }
.hero-dark::before { background-image: linear-gradient(#262A32 1px, transparent 1px), linear-gradient(90deg, #262A32 1px, transparent 1px); opacity: .5; mask-image: linear-gradient(100deg, #000 0%, transparent 60%); -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 60%); }
.hero-dark::after { content: ""; position: absolute; width: 46vw; height: 46vw; right: -6vw; top: 8%; background: radial-gradient(circle, rgba(218,32,65,.22), transparent 62%); pointer-events: none; }
.hero-dark h1 { color: #fff; }
.hero-dark h1 em { color: #FF5A74; }
.hero-dark .lead { color: var(--night-ink-2); }
.hero-dark .eyebrow { color: #FF6A82; }
.hero-dark .chain span { background: transparent; border-color: #3A404B; color: var(--night-ink); }
.hero-dark .chain i { color: #5A6170; }
.hero-dark .hero-grid { grid-template-columns: 1fr 1.05fr; padding-block: clamp(48px, 7vw, 104px); z-index: 1; }
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
@media (max-width: 900px) { .hero-dark .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; margin-inline: auto; } }

.core-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.core { padding: 28px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; text-decoration: none; transition: background .15s; }
a.core:hover { background: #FAFBFC; }
.core .code { font-family: var(--f-mono); font-size: var(--fs-lg); font-weight: 600; color: var(--brand); }
.core h3 { font-size: var(--fs-xl); font-weight: 700; }
.core .en { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); margin-top: -4px; }
.core p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 6px; }
.core-add { background: var(--paper); }
.core-add .code { color: var(--ink-3); }
.addons { display: grid; gap: 10px; margin-top: 8px; }
.addon h4 { font-size: var(--fs-sm); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.addon h4 small { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-3); font-weight: 400; }
.addon p { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
@media (max-width: 1000px) { .core-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .core-grid { grid-template-columns: 1fr; } }

.why-item .no { font-family: var(--f-mono); font-size: var(--fs-xs); color: #FF6A82; font-weight: 600; }

.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.field-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s; }
.field-card:hover { border-color: var(--ink-3); }
.field-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #EEF0F3; }
.field-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.field-card:hover .thumb img { transform: scale(1.03); }
.field-card .body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.field-card .cat { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); letter-spacing: .04em; }
.field-card h3 { font-size: var(--fs-xl); font-weight: 700; }
.field-card p { color: var(--ink-2); font-size: var(--fs-sm); }
.field-cta { background: var(--night); border-color: var(--night); justify-content: center; }
.field-cta .body { padding: 32px 28px; gap: 12px; }
.field-cta h3 { color: #fff; }
.field-cta p { color: var(--night-ink-2); }
.field-cta .cat { color: #FF6A82; }
.field-cta .go { font-family: var(--f-display); font-weight: 600; color: #fff; margin-top: 8px; }
.field-cta:hover { border-color: var(--brand); }
@media (max-width: 960px) { .field-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.steps-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .steps-6 { grid-template-columns: repeat(3, 1fr); } .steps-6 .step:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 960px) { .steps-6 { grid-template-columns: 1fr; } }
.deliv-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .deliv-3 { grid-template-columns: 1fr; } }
.deliv-card .en-sm { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); margin-top: -4px; }
.deliv-card p { color: var(--ink-2); font-size: var(--fs-sm); }
.hero-dark .hero-grid { grid-template-columns: 1.1fr 1fr; }
.hero-dark h1 { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.05rem); }
@media (max-width: 900px) { .hero-dark .hero-grid { grid-template-columns: 1fr; } }

/* ---------- v4: plus services ---------- */
a.core-add { background: var(--night); border-color: #2A2F38; }
a.core-add:hover { background: #22262E; }
.core-add h3 { color: #fff; }
.core-add .code { color: #FF6A82; }
.core-add .en { color: var(--night-ink-2); }
.core-add p { color: var(--night-ink-2); }
.core-add .go { font-family: var(--f-display); font-weight: 600; color: #fff; margin-top: 6px; }

.section-addon { background: linear-gradient(180deg, #F7F3F4 0%, #F4F5F7 55%, var(--paper) 100%); position: relative; overflow: hidden; }
.section-addon::before { content: ""; position: absolute; width: 60vw; height: 60vw; left: -20vw; top: -25vw; background: radial-gradient(circle, rgba(218,32,65,.10), transparent 65%); pointer-events: none; }
.section-addon .wrap { position: relative; }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.addon-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; box-shadow: 0 1px 2px rgba(21,23,28,.04); transition: box-shadow .2s, transform .2s; }
.addon-card:hover { box-shadow: 0 18px 40px -18px rgba(21,23,28,.28); transform: translateY(-2px); }
.addon-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #EEF0F3; }
.addon-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.addon-card:hover .thumb img { transform: scale(1.04); }
.addon-card .body { padding: 26px 28px 30px; display: grid; gap: 12px; align-content: start; }
.addon-card .cat { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); letter-spacing: .06em; }
.addon-card h3 { font-size: var(--fs-2xl); font-weight: 700; }
.addon-card p { color: var(--ink-2); }
.addon-card ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: var(--fs-sm); color: var(--ink); margin-top: 4px; }
.addon-card li { padding-left: 16px; position: relative; }
.addon-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--brand); }
.addon-note { margin-top: 28px; font-size: var(--fs-sm); color: var(--ink-3); text-align: center; }
@media (max-width: 860px) { .addon-grid { grid-template-columns: 1fr; } .addon-card ul { grid-template-columns: 1fr; } }

.addon-rows { display: grid; gap: clamp(32px, 5vw, 64px); }
.addon-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; scroll-margin-top: 90px; }
.addon-row:nth-child(even) .media { order: 2; }
.addon-row .media img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; }
.addon-row .text { display: grid; gap: 14px; min-width: 0; }
.addon-row .cat { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brand); letter-spacing: .06em; }
.addon-row h3 { font-size: var(--fs-2xl); font-weight: 700; }
.addon-row p { color: var(--ink-2); font-size: var(--fs-lg); }
.addon-row ul { list-style: none; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.addon-row li { padding-left: 18px; position: relative; }
.addon-row li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--brand); }
@media (max-width: 860px) { .addon-row { grid-template-columns: 1fr; } .addon-row:nth-child(even) .media { order: 0; } }

/* ---------- v5: credibility ---------- */
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: var(--fs-sm); color: var(--night-ink); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(218,32,65,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.5' fill='none' stroke='%23FF6A82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; flex: none; }
.why-item .proof { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--night-ink); border-top: 1px dashed #3A404B; padding-top: 10px; margin-top: 4px; }
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engage { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.engage .cat { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .06em; }
.engage h3 { font-size: var(--fs-xl); font-weight: 700; }
.engage p { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 860px) { .engage-grid { grid-template-columns: 1fr; } }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/7; background: #EEF0F3; margin-bottom: 18px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-ph { display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: var(--fs-sm); padding: 20px; }
@media (max-width: 600px) { .map-embed { aspect-ratio: 4/3; } }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.foot-nav a { color: var(--night-ink); text-decoration: none; font-weight: 500; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.map-kakao { aspect-ratio: auto; background: transparent; }
.map-kakao .root_daum_roughmap { width: 100% !important; }
.map-kakao .root_daum_roughmap .wrap_map { width: 100% !important; }
