@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");

:root {
  --navy: #12285a;
  --blue: #0a6ec2;
  --blue-deep: #08579a;
  --text: #253045;
  --muted: #5b6678;
  --line: #c8d2de;
  --panel: #eef2f6;
  --paper: #ffffff;
  --live: #1f8a57;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.6vw, 1.3125rem);
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.625rem, 2.6vw, 2.125rem);
  --fs-hero: clamp(2.5rem, 6.4vw, 5.25rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Wanted Sans Variable", "Wanted Sans", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-feature-settings: "tnum" 0;
}

h1, h2, h3, h4 { color: var(--navy); margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 44px; width: auto; }

.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9688rem; }
.nav a:hover { color: var(--blue); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--panel); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 140px); }
.hero-corner {
  position: absolute; right: 0; bottom: 0;
  width: min(34vw, 420px); aspect-ratio: 1;
  background: var(--blue);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transform-origin: 100% 100%;
  animation: corner-in 0.9s cubic-bezier(.2,.7,.2,1) both;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
@media (max-width: 640px) { .hero-corner { display: none; } }
@keyframes corner-in { from { transform: scale(0.35); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; max-width: 12em; }
.hero .lead { margin-top: 28px; font-size: var(--fs-lead); color: var(--text); max-width: 34em; line-height: 1.65; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--navy); color: #fff;
  padding: 15px 26px; border-radius: 4px;
  font-weight: 600; font-size: 1rem;
}
.btn:hover { background: var(--blue-deep); color: #fff; }
.tel-link { font-weight: 600; color: var(--navy); text-decoration: none; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.tel-link span { color: var(--muted); font-weight: 500; margin-right: 8px; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--panel); border-top: 0; }
.section.tint + .section { border-top: 0; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.split > header { position: relative; }
@media (min-width: 961px) { .split > header .sticky { position: sticky; top: 112px; } }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.section h2 { font-size: var(--fs-h2); font-weight: 750; }
.section-note { margin-top: 14px; color: var(--muted); font-size: 0.9688rem; max-width: 22em; }

.prose p + p { margin-top: 1em; }
.prose .big { font-size: var(--fs-lead); color: var(--navy); font-weight: 500; line-height: 1.6; max-width: 32em; }

/* company facts */
.facts { margin-top: 48px; display: grid; grid-template-columns: 7rem 1fr; border-top: 2px solid var(--navy); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { color: var(--text); }

/* strengths */
.strengths { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.strengths h3 { font-size: var(--fs-h3); font-weight: 700; padding-left: 14px; border-left: 3px solid var(--blue); }
.strengths p { margin-top: 10px; color: var(--text); padding-left: 17px; }
@media (max-width: 640px) { .strengths { grid-template-columns: 1fr; gap: 28px; } }

/* org */
.org { margin-top: 56px; }
.org h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.org-tree { display: flex; flex-direction: column; align-items: flex-start; }
.org-top { background: var(--navy); color: #fff; padding: 10px 20px; font-weight: 600; border-radius: 3px; }
.org-teams { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; position: relative; padding-top: 0; }
.org-teams::before { content: ""; position: absolute; left: 24px; top: -24px; height: 24px; border-left: 1px solid var(--line); }
.org-teams span { border: 1px solid var(--line); padding: 9px 18px; border-radius: 3px; background: #fff; font-weight: 500; }

/* SI process */
.process { list-style: none; margin-top: 8px; counter-reset: step; }
.process li { display: grid; grid-template-columns: 3.5rem 9rem 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); counter-increment: step; align-items: baseline; }
.process li:first-child { border-top: 2px solid var(--navy); }
.process li::before { content: counter(step); font-weight: 700; color: var(--blue); font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.process h3 { font-size: 1.125rem; font-weight: 700; }
.process p { color: var(--text); }
@media (max-width: 640px) {
  .process li { grid-template-columns: 2.25rem 1fr; gap: 6px 14px; }
  .process p { grid-column: 2; }
}

/* service blocks */
.services { margin-top: 72px; }
.service + .service { margin-top: 56px; }
.service h3 { font-size: 1.5rem; font-weight: 750; }
.service > p.desc { margin-top: 14px; max-width: 40em; }

/* clients */
.clients-title { margin-bottom: 40px; }
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.clients h3 { font-size: 0.9375rem; color: var(--muted); font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.clients ul { list-style: none; margin-top: 14px; }
.clients li { font-size: 1.125rem; font-weight: 600; color: var(--navy); padding: 4px 0; }
.clients-foot { margin-top: 36px; color: var(--muted); }
@media (max-width: 860px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .clients { grid-template-columns: 1fr; } }

/* contact */
.contact { background: var(--navy); color: #dfe6f1; position: relative; overflow: hidden; }
.contact h2 { color: #fff; }
.contact .section-note { color: #a9b6cc; }
.contact a { color: #fff; }
.contact::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 180px; height: 180px;
  background: var(--blue); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.contact-list { display: grid; grid-template-columns: 7rem 1fr; border-top: 1px solid rgba(255,255,255,.35); position: relative; z-index: 1; }
.contact-list dt, .contact-list dd { margin: 0; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-list dt { color: #a9b6cc; font-size: 0.9375rem; }
.contact-list dd { color: #fff; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.map-links { margin-top: 10px; display: flex; gap: 18px; font-size: 0.9375rem; }
.map-links a { color: #cfe3ff; text-decoration: underline; }
@media (max-width: 520px) {
  .contact-list { grid-template-columns: 1fr; }
  .contact-list dt { padding-bottom: 0; border-bottom: 0; }
  .contact-list dd { padding-top: 4px; }
}

/* ---------- footer ---------- */
.site-footer { background: #0d1f47; color: #a9b6cc; font-size: var(--fs-small); padding: 40px 0 48px; }
.site-footer a { color: #dfe6f1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; }
.footer-links a.privacy { font-weight: 700; color: #fff; }
.biz { display: flex; flex-wrap: wrap; gap: 4px 20px; line-height: 1.8; }
.copy { margin-top: 16px; color: #7f8ea8; }

/* ---------- legal pages ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 10vw, 120px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); font-weight: 800; }
.legal .meta { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.legal-body { margin-top: 40px; border-top: 2px solid var(--navy); padding-top: 32px; }
.legal-body h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text); }
.legal-body p + p { margin-top: 0.8em; }
.legal-body ol, .legal-body ul { padding-left: 1.4em; margin-top: 8px; }
.legal-body li + li { margin-top: 4px; }
.legal-body table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.9375rem; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--panel); color: var(--navy); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.legal-body th[scope="row"] { width: 8rem; white-space: nowrap; }
.legal-body td a { white-space: nowrap; }
.pending { background: var(--panel); border-left: 3px solid var(--blue); padding: 20px 24px; }
.pending p + p { margin-top: 8px; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.notfound p { margin-top: 12px; color: var(--muted); }
.notfound .btn { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-corner { animation: none; }
}

@media print {
  .site-header, .hero-corner, .contact::after { display: none; }
}
