/* HiWin IP — hiwin.css (build.mjs 가 styles/ 의 네 파일을 합쳐 만든 파일입니다. 직접 고치지 마세요.) */
/* ── 1. styles/ds-tokens.css (HiWin IP Design System 토큰) ── */
/* HiWin IP Design System — generated from tokens.json */
:root, [data-theme="default"] {
  --red-50: #fbeaea;
  --red-100: #f4caca;
  --red-200: #e79a9a;
  --red-300: #d96a6a;
  --red-400: #cc3838;
  --red-500: #c00000;
  --red-600: #a30000;
  --red-700: #850000;
  --red-800: #5f0000;
  --red-900: #3b0000;
  --ink-0: #ffffff;
  --ink-50: #fafaf8;
  --ink-100: #f4f3ef;
  --ink-200: #e7e5de;
  --ink-300: #d2cfc5;
  --ink-400: #a8a499;
  --ink-500: #7a776d;
  --ink-600: #56534b;
  --ink-700: #3a3833;
  --ink-800: #24231f;
  --ink-900: #141311;
  --success: #2f8f5c;
  --warning: #c98a1a;
  --danger: #b01818;
  --info: #2f6bb3;
  --fg-1: var(--ink-900);
  --fg-2: var(--ink-700);
  --fg-3: var(--ink-500);
  --fg-4: var(--ink-400);
  --fg-accent: var(--red-600);
  --fg-on-accent: var(--ink-0);
  --fg-inverse: var(--ink-0);
  --bg-1: var(--ink-0);
  --bg-2: var(--ink-50);
  --bg-3: var(--ink-100);
  --bg-accent-soft: var(--red-50);
  --bg-accent: var(--red-500);
  --bg-inverse: var(--ink-900);
  --line-1: var(--ink-200);
  --line-2: var(--ink-300);
  --line-strong: var(--ink-700);
  --line-accent: var(--red-500);
  --focus-ring: #c0000066;
  --selection-bg: var(--red-100);
  --selection-fg: var(--ink-900);
  --shadow-xs: 0 1px 2px rgba(36, 35, 31, 0.06);
  --shadow-sm: 0 2px 6px rgba(36, 35, 31, 0.06), 0 1px 2px rgba(36, 35, 31, 0.04);
  --shadow-md: 0 6px 16px rgba(36, 35, 31, 0.08), 0 2px 4px rgba(36, 35, 31, 0.04);
  --shadow-lg: 0 16px 32px rgba(36, 35, 31, 0.10), 0 4px 8px rgba(36, 35, 31, 0.04);
  --shadow-inset: inset 0 0 0 1px #e7e5de;
}
:root {
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;
  --container-max: 1240px;
  --container-gutter: 24px;
  --grid-gap: 24px;
  --radius-0: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.3, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
  --grid-columns: 12;
  --tracking-tight: -0.02em;
  --tracking-normal: -0.01em;
  --tracking-wide: 0.02em;
  --tracking-caps: 0.08em;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
  --fs-56: 56px;
  --fs-72: 72px;
  --fs-96: 96px;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
}

/* ── 2. styles/ds-components.css (HiWin IP Design System 컴포넌트) ── */
/* ── styles.css ── */
/* =========================================================
   HiWin IP Design System — global entry
   HiWin IP · 중국 상표 전문 (Qingdao)
   Consumers link THIS file. Import order matters:
   fonts → colors → spacing → typography (typography uses
   color + motion tokens) → components.
   ========================================================= */

/* ── tokens/fonts.css ── */
/* =========================================================
   HiWin IP — Webfonts
   Pretendard JP is the company-standard typeface — the JP
   variant carries full Hanja (한자) coverage alongside the
   same Korean + Latin letterforms. The variable woff2 is
   bundled locally (no CDN dependency); both family names
   "Pretendard JP Variable" and "Pretendard JP" resolve to
   it. Plain Pretendard is kept as a deeper KR + Latin
   fallback.
   ========================================================= */

/* Pretendard JP — local variable font (Hanja-capable) ------ */
/* @font-face Pretendard JP Variable 300 900 normal: declared by tokens.json (fonts/PretendardJPVariable.woff2) */
/* @font-face Pretendard JP 300 900 normal: declared by tokens.json (fonts/PretendardJPVariable.woff2) */

/* Local Pretendard (deeper KR + Latin fallback) ------------ */
/* @font-face Pretendard 300 900 normal: declared by tokens.json (fonts/PretendardVariable.woff2) */

/* @font-face Pretendard 400 normal: declared by tokens.json (fonts/Pretendard-Regular.woff2) */

/* ── styles.css ── */

/* ── tokens/colors.css ── */
/* =========================================================
   HiWin IP — Color tokens
   Brand accent: #C00000 (deep red) paired with a warm,
   trustworthy neutral "ink" ramp. Confident, quiet, precise —
   the voice of HiWin IP, Qingdao. Never bluish-gray.
   Used surgically: one CTA per section, the highlighted noun
   in a headline, stat units, the brand dot, link/eyebrow accents.
   ========================================================= */

:root {
}

/* ── styles.css ── */

/* ── tokens/spacing.css ── */
/* =========================================================
   HiWin IP — Spacing, radius, shadow, motion, layout tokens
   ========================================================= */

:root { /* @kind spacing */
}

/* ── styles.css ── */

/* ── tokens/typography.css ── */
/* =========================================================
   HiWin IP — Typography tokens
   Pretendard JP is the company standard (Hanja-capable).
   No serif, no separate mono — numeric/tabular runs use
   the same family with tabular figures via --font-numeric.
   ========================================================= */

:root {
  /* ---- Families ---- */
  --font-sans: "Pretendard JP Variable", "Pretendard JP", "Pretendard",
               "Apple SD Gothic Neo", "Malgun Gothic",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  /* Same family; apply font-variant-numeric: tabular-nums where alignment matters
     (case indices, stat figures, dates). Pretendard JP ships tabular figures. */
  --font-numeric: var(--font-sans); /* @kind other */
}

/* =========================================================
   Semantic type helpers — use directly as classes.
   ========================================================= */

.d-display {
  font-family: var(--font-sans);
  font-weight: var(--fw-extrabold);
  font-size: clamp(48px, 6vw, var(--fs-96));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
.d-h1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: clamp(32px, 4vw, var(--fs-56));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
.d-h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-40);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
.d-h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-28);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--fg-1);
}
.d-h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-20);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--fg-1);
}
.d-eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-13);
  line-height: 1.2;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-accent);
}
.d-lead {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-20);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}
.d-body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}
.d-body-sm {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--fg-2);
}
.d-caption {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-12);
  line-height: var(--lh-normal);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
}
.d-num {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--fg-2);
}

/* Link style */
a.d-link,
.d-link {
  color: var(--fg-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast, 120ms) var(--ease-standard, ease);
}
a.d-link:hover { color: var(--red-700); }

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

/* ── styles.css ── */

/* ── tokens/components.css ── */
/* =========================================================
   HiWin IP — Component classes
   Reusable primitives styled with design tokens. React
   components in /components apply these classNames.
   ========================================================= */

/* ---------- Button ---------- */
.dui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-14);
  letter-spacing: var(--tracking-normal); line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.dui-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.dui-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.dui-btn--primary { background: var(--red-500); color: var(--fg-on-accent); }
.dui-btn--primary:hover:not([disabled]) { background: var(--red-600); }
.dui-btn--secondary { background: var(--ink-0); color: var(--fg-1); border-color: var(--line-2); }
.dui-btn--secondary:hover:not([disabled]) { border-color: var(--ink-700); background: var(--ink-50); }
.dui-btn--ghost { background: transparent; color: var(--fg-1); padding: 8px 0; }
.dui-btn--ghost .dui-btn__u { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.dui-btn--inverse { background: var(--ink-0); color: var(--ink-900); }
.dui-btn--inverse:hover:not([disabled]) { background: var(--ink-100); }

.dui-btn--sm { padding: 8px 14px; font-size: var(--fs-13); }
.dui-btn--lg { padding: 15px 26px; font-size: var(--fs-16); }
.dui-btn--ghost.dui-btn--sm,
.dui-btn--ghost.dui-btn--lg { padding-left: 0; padding-right: 0; }

/* ---------- Badge / Tag ---------- */
.dui-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  font-size: var(--fs-12); line-height: 1; letter-spacing: var(--tracking-wide);
  padding: 5px 10px; border-radius: var(--radius-pill); white-space: nowrap;
}
.dui-badge--neutral { background: var(--bg-3); color: var(--fg-2); }
.dui-badge--accent  { background: var(--bg-accent-soft); color: var(--red-700); }
.dui-badge--solid   { background: var(--red-500); color: var(--fg-on-accent); }
.dui-badge--success { background: color-mix(in srgb, var(--success) 14%, white); color: var(--success); }
.dui-badge--warning { background: color-mix(in srgb, var(--warning) 16%, white); color: #8A5E0E; }
.dui-badge--danger  { background: color-mix(in srgb, var(--danger) 12%, white); color: var(--danger); }
.dui-badge--outline { background: transparent; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.dui-badge--square  { border-radius: var(--radius-sm); }

/* ---------- Card ---------- */
.dui-card {
  background: var(--bg-1); border: 1px solid var(--line-1);
  border-radius: var(--radius-lg); padding: 24px;
  transition: box-shadow var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
.dui-card--flat { box-shadow: none; }
.dui-card--raised { box-shadow: var(--shadow-sm); border-color: transparent; }
.dui-card--interactive { cursor: pointer; }
.dui-card--interactive:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.dui-card--accent { border-left: 3px solid var(--red-500); }
.dui-card--inverse { background: var(--ink-900); border-color: var(--ink-700); color: var(--ink-100); }

/* ---------- Field (label + control) ---------- */
.dui-field { display: flex; flex-direction: column; gap: 6px; }
.dui-field__label {
  font-family: var(--font-sans); font-size: var(--fs-12); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-2);
}
.dui-field__hint { font-size: var(--fs-12); color: var(--fg-3); }
.dui-field__hint--error { color: var(--danger); }
.dui-field__req { color: var(--red-600); margin-left: 2px; }

/* ---------- Inputs ---------- */
.dui-input, .dui-select, .dui-textarea {
  font-family: var(--font-sans); font-size: var(--fs-14); color: var(--fg-1);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--ink-0); outline: none; width: 100%;
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.dui-input::placeholder, .dui-textarea::placeholder { color: var(--fg-4); }
.dui-input:focus, .dui-select:focus, .dui-textarea:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.dui-input[disabled], .dui-select[disabled], .dui-textarea[disabled] {
  background: var(--ink-50); color: var(--fg-4); cursor: not-allowed;
}
.dui-input[aria-invalid="true"], .dui-textarea[aria-invalid="true"] { border-color: var(--danger); }
.dui-textarea { min-height: 140px; resize: vertical; line-height: var(--lh-relaxed); }
.dui-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A776D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}

/* =========================================================
   Base resets (kept minimal; tokens stay in /tokens)
   ========================================================= */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── styles.css ── */


/* ── tokens/fonts.css ── */

/* ── tokens/colors.css ── */

/* ── tokens/spacing.css ── */

/* ── tokens/typography.css ── */

/* ── tokens/components.css ── */


/* ── 3. styles/kit.css (웹사이트 UI 키트 레이아웃) ── */
/* =========================================================
   HiWin IP — website UI kit layout
   Composes DS primitives; this file only handles page layout
   (header, hero, sections, footer, modal). All colors, type,
   spacing pull from the global tokens in styles.css.
   ========================================================= */

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

/* Korean text: break on word boundaries, not mid-word */
.hero .lede, .section .sub, .site-footer .brand-b p, .contact .info dd, .cta p, .person .rl, .person .yr { word-break: keep-all; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-1);
}
.site-header .bar { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.site-header nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.site-header nav a { font-size: 14px; font-weight: 500; color: var(--fg-2); cursor: pointer; transition: color var(--dur-fast) var(--ease-standard); }
.site-header nav a:hover { color: var(--fg-1); }
.site-header nav a.active { color: var(--red-600); }
.site-header .right { display: flex; align-items: center; gap: 20px; }
.site-header .lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; }
.site-header .lang span:not(.sep) { cursor: pointer; color: var(--fg-3); transition: color 0.15s; }
.site-header .lang span:not(.sep):hover { color: var(--fg-1); }
.site-header .lang span.on { color: var(--fg-1); font-weight: 700; }
.site-header .lang .sep { color: var(--line-2, var(--fg-3)); opacity: 0.5; cursor: default; }

/* ---------- Chinese page: Noto Sans SC ---------- */
/* Pretendard JP renders Hanzi with Japanese letterforms; on the CN page
   we re-point the --font-sans token to Noto Sans SC so every component
   (which all read var(--font-sans)) picks up authentic Simplified glyphs. */
body.lang-cn {
  --font-sans: "Noto Sans SC", "Pretendard JP", "Pretendard", system-ui, sans-serif;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-50); border-bottom: 1px solid var(--line-1);
  padding: 88px 0 96px;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(48px, 6vw, 88px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.035em; margin: 20px 0 24px; max-width: 900px; color: var(--fg-1);
}
.hero h1 .accent { color: var(--red-500); }
.hero .lede { font-size: 18px; line-height: 1.7; color: var(--fg-2); max-width: 620px; margin: 0 0 36px; }
.hero .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .ghost-mark {
  position: absolute; right: -80px; bottom: -60px;
  font-size: 560px; font-weight: 900; letter-spacing: -0.04em;
  color: rgba(36, 35, 31, 0.035); line-height: 0.8;
  pointer-events: none; user-select: none;
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1);
  padding: 40px 0; margin: 56px 0;
}
.stats .stat { padding: 0 24px; border-right: 1px solid var(--line-1); }
.stats .stat:last-child { border-right: none; }
.stats .n { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; color: var(--fg-1); line-height: 1; font-variant-numeric: tabular-nums; }
.stats .n .u { font-size: 22px; color: var(--red-500); vertical-align: middle; margin-left: 4px; font-weight: 700; }
.stats .l { font-size: 13px; color: var(--fg-2); margin-top: 12px; }

/* ---------- Section ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line-1); }
.section h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 14px 0; max-width: 760px; white-space: pre-line; }
.section .sub { font-size: 16px; color: var(--fg-2); line-height: 1.6; max-width: 620px; margin: 0 0 48px; }

/* ---------- Service grid ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-1); border: 1px solid var(--line-1);
  border-radius: 6px; overflow: hidden;
}
.svc {
  background: #fff; padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 10px;
  min-height: 210px; cursor: pointer; transition: background var(--dur-base) var(--ease-standard);
}
.svc:hover { background: var(--red-50); }
.svc .num { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em; }
.svc h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; color: var(--fg-1); }
.svc p { font-size: 13px; color: var(--fg-2); line-height: 1.6; margin: 0; flex: 1; }
.svc .go { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--red-600); margin-top: 6px; opacity: 0; transform: translateX(-4px); transition: all var(--dur-base) var(--ease-standard); }
.svc:hover .go { opacity: 1; transform: none; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.person {
  padding: 28px 24px; border: 1px solid var(--line-1); border-radius: var(--radius-lg);
  background: #fff; border-top: 3px solid var(--red-500);
}
.person .nm { font-size: 19px; font-weight: 700; color: var(--fg-1); }
.person .rl { font-size: 13px; color: var(--fg-3); margin-top: 6px; }
.person .yr { font-size: 12px; font-weight: 600; color: var(--red-600); margin-top: 14px; }

/* ---------- Case list ---------- */
.case-list { border-top: 1px solid var(--line-1); }
.case-row {
  display: grid; grid-template-columns: 64px 1fr auto auto 32px; align-items: center; gap: 20px;
  padding: 22px 8px; border-bottom: 1px solid var(--line-1); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard);
}
.case-row:hover { background: var(--ink-50); }
.case-row .idx { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--fg-3); }
.case-row h4 { font-size: 17px; font-weight: 600; color: var(--fg-1); margin: 0; }
.case-row .tag { font-size: 12px; color: var(--red-700); background: var(--red-50); padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.case-row .date { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-row .arrow { color: var(--fg-4); display: flex; justify-content: flex-end; transition: color var(--dur-fast), transform var(--dur-fast); }
.case-row:hover .arrow { color: var(--red-500); transform: translateX(2px); }

/* ---------- CTA ---------- */
.cta { background: var(--ink-900); color: #fff; padding: 96px 0; }
.cta h2 { color: #fff; font-size: 56px; font-weight: 800; letter-spacing: -0.035em; max-width: 900px; line-height: 1.05; margin: 0; white-space: pre-line; }
.cta p { color: var(--ink-300); font-size: 16px; line-height: 1.7; max-width: 560px; margin: 24px 0 36px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 56px; margin-top: 16px; }
.contact .info h3 { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.contact .info dl { display: grid; grid-template-columns: 80px 1fr; gap: 10px 16px; margin: 0; }
.contact .info dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.contact .info dd { font-size: 14px; color: var(--fg-2); margin: 0; }
.contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.contact form .wide { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 64px 0 40px; }
.site-footer .top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--ink-700);
}
.site-footer .brand-b p { font-size: 13px; color: var(--ink-400); margin: 14px 0 0; line-height: 1.7; max-width: 280px; }
.site-footer h5 { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-size: 13px; color: var(--ink-300); cursor: pointer; }
.site-footer ul a:hover { color: #fff; }
.site-footer .bot { padding-top: 28px; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; }

/* ---------- Detail sheet (modal) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 60; background: rgba(20, 19, 17, 0.5);
  display: flex; justify-content: flex-end; animation: sheetFade var(--dur-base) var(--ease-standard);
}
.sheet .panel {
  width: min(520px, 92vw); background: #fff; height: 100%; overflow-y: auto;
  padding: 56px 48px; position: relative; animation: sheetSlide var(--dur-slow) var(--ease-emphasized);
}
.sheet .close {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px;
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-2);
}
.sheet .close:hover { background: var(--ink-50); }
.sheet h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 0; }
.sheet .meta { display: flex; gap: 16px; margin: 16px 0 28px; font-size: 13px; color: var(--fg-3); padding-bottom: 20px; border-bottom: 1px solid var(--line-1); }
.sheet p { font-size: 15px; line-height: 1.75; color: var(--fg-2); }
.sheet h3 { font-size: 16px; font-weight: 700; margin: 28px 0 12px; }
.sheet ul { padding-left: 18px; margin: 0; }
.sheet li { font-size: 14px; line-height: 1.9; color: var(--fg-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 80;
  background: var(--ink-900); color: #fff; font-size: 14px; padding: 14px 22px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  animation: sheetFade var(--dur-base) var(--ease-standard);
}

@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetSlide { from { transform: translateX(40px); } to { transform: none; } }

/* ---------- Confirm modal (centered) ---------- */
.confirm {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 19, 17, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: sheetFade var(--dur-base) var(--ease-standard);
}
.confirm .box {
  width: min(440px, 100%); background: #fff; border-radius: var(--radius-md);
  padding: 40px 36px 32px; position: relative; box-shadow: var(--shadow-lg);
  animation: confirmPop var(--dur-slow) var(--ease-emphasized);
}
.confirm .close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-2);
}
.confirm .close:hover { background: var(--ink-50); }
.confirm .mark {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink-50);
  display: flex; align-items: center; justify-content: center; color: var(--fg-1); margin-bottom: 20px;
}
.confirm h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.confirm p { font-size: 14px; line-height: 1.7; color: var(--fg-2); margin: 0; }
.confirm .actions { margin-top: 28px; display: flex; justify-content: flex-end; }

@keyframes confirmPop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .stats, .svc-grid, .team { grid-template-columns: repeat(2, 1fr); }
  .contact, .site-footer .top { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 44px 1fr 24px; }
  .case-row .tag, .case-row .date { display: none; }
}

/* ---------- Mobile header + type scaling ---------- */
@media (max-width: 720px) {
  /* Header reflows to two rows: [brand … lang/CTA] then a full-width nav. */
  .site-header .bar {
    height: auto;
    flex-wrap: wrap;
    row-gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .site-header .right { gap: 14px; }
  .site-header nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav ul {
    gap: 24px;
    flex-wrap: nowrap;
    width: max-content;
  }
  .site-header nav a { white-space: nowrap; font-size: 15px; }

  /* Type + spacing scale down for small screens */
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); margin: 16px 0 20px; }
  .hero .lede { font-size: 16px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: clamp(26px, 7vw, 34px); }
  .cta h2 { font-size: clamp(26px, 7vw, 34px); }
  .stats, .svc-grid, .team { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .site-header .lang { gap: 4px; font-size: 11px; }
  .site-header nav ul { gap: 18px; }
}

/* ── 4. styles/site.css (정적 사이트 보완) ── */
/* =========================================================
   HiWin IP — 정적 사이트 보완 스타일
   기존 React 화면의 인라인 스타일(Brand 컴포넌트, 서비스 머리 영역,
   문의 폼 하단 등)을 클래스로 옮긴 것과, 링크·접근성 보완만 담는다.
   새로운 디자인 요소는 없다. 색·간격은 디자인 시스템 토큰을 쓴다.
   ========================================================= */

/* ---------- Brand (DS Brand 컴포넌트와 같은 비율) ---------- */
.hw-brand { display: inline-flex; flex-direction: row; align-items: baseline; gap: 10px; font-family: var(--font-sans); cursor: default; }
a.hw-brand { cursor: pointer; }
.hw-brand__w { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--fg-1); line-height: 1; display: inline-flex; align-items: flex-start; }
.hw-brand__dot { width: 0.27em; height: 0.27em; border-radius: 50%; background: var(--red-500); display: inline-block; margin-left: 3px; align-self: flex-end; margin-bottom: 0.06em; }
.hw-brand__cn { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--fg-3); }
.hw-brand--26 .hw-brand__w { font-size: 26px; }
.hw-brand--inverse .hw-brand__w { color: var(--ink-0); }

/* ---------- Header: 언어 전환을 링크로 (기존 span 규칙과 동일) ---------- */
.site-header .lang a { cursor: pointer; color: var(--fg-3); transition: color 0.15s; }
.site-header .lang a:hover { color: var(--fg-1); }
.site-header .lang a.on { color: var(--fg-1); font-weight: 700; }

/* 본문 바로가기 (키보드 사용자용, 평소에는 보이지 않음) */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink-900); color: #fff; font-size: 14px;
  padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* ---------- 서비스 페이지 머리 영역 (기존 인라인 스타일) ---------- */
.page-intro { padding: 72px 0 24px; border-bottom: 1px solid var(--line-1); background: var(--ink-50); }
.page-intro h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 16px; }
.page-intro .d-lead { max-width: 620px; }

/* 팀·문의 페이지는 섹션 제목이 페이지 제목(h1)이 된다 - 모양은 섹션 h2와 같다 */
.section h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 14px 0; max-width: 760px; white-space: pre-line; }

/* ---------- 서비스 카드·사례 행을 링크로 ---------- */
a.svc, a.case-row { color: inherit; }
.svc:focus-visible, .case-row:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.svc:focus-visible .go { opacity: 1; transform: none; }

/* ---------- Why HiWin IP: 서비스 격자와 같은 1px 헤어라인 격자 (클릭 없음) ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-1); border: 1px solid var(--line-1);
  border-radius: 6px; overflow: hidden;
}
.why { background: #fff; padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.why .num { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em; }
.why h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin: 4px 0; color: var(--fg-1); }
.why p { font-size: 14px; color: var(--fg-2); line-height: 1.65; margin: 0; }
/* 한글은 어절 단위 줄바꿈, 중문은 글자 단위 줄바꿈(기본값) */
body:not(.lang-cn) .why h3, body:not(.lang-cn) .why p { word-break: keep-all; }

/* 팀 카드 열 수 = 인원 수(최대 5). 좁은 화면은 kit.css 규칙(2열·1열)을 그대로 따른다 */
@media (min-width: 901px) {
  .team { grid-template-columns: repeat(var(--team-cols, 5), 1fr); }
}

/* ---------- CTA 버튼 줄 ---------- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 상세 시트 하단 버튼 ---------- */
.sheet .sheet-cta { margin-top: 32px; }

/* ---------- 문의 ---------- */
.contact .info .note { font-size: 12px; color: var(--fg-3); margin-top: 32px; line-height: 1.6; }
.contact .form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.contact .form-status { font-size: 12px; color: var(--fg-3); }
.contact .form-status.is-error { color: var(--danger, #c0392b); }
.hp { display: none !important; }

/* ---------- Footer ---------- */
.site-footer ul .ft-text { font-size: 13px; color: var(--ink-300); }

/* ---------- 404 ---------- */
.nf { min-height: 52vh; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section h1 { font-size: clamp(26px, 7vw, 34px); }
  .why-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet .panel, .confirm, .confirm .box, .toast { animation: none; }
  .svc .go { transition: none; }
}
