:root {
  --accent: #564099;        /* 로고의 보라색 */
  --accent-dark: #43307c;
  --accent-soft: #f1eef8;
  --ink: #1b1a22;
  --muted: #5d5b6b;
  --line: #e4e2ec;
  --bg: #fdfdfe;
  --tint: #f6f5fa;
  --radius: 14px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 253, 254, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); font-size: 17px; }
.brand img { width: 44px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav .nav-cta { background: var(--accent); color: #fff; padding: 9px 20px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; font: inherit; font-size: 15px; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; color: var(--ink); cursor: pointer; }

/* 버튼 */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px 26px; border-radius: 999px; white-space: nowrap; transition: transform .15s ease, background-color .2s ease, border-color .2s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 1px solid #cfcbdd; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* 첫 화면 */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 30em; margin: 24px 0 0; }
.hero-visual {
  background: linear-gradient(160deg, var(--accent-soft), #fbfaff 70%);
  border: 1px solid var(--line); border-radius: 28px;
  aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 12%;
}
.hero-visual img { width: 100%; animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 공통 구역 */
.section { padding: 96px 0; }
.tint { background: var(--tint); }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.3; font-weight: 800; margin: 0 0 24px; }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.4; font-weight: 700; margin: 0 0 12px; }
.body { color: var(--muted); max-width: 34em; margin: 0 0 16px; }

/* 회사 소개 */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: start; }
.facts { margin: 8px 0 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }
.facts .en { font-weight: 500; color: var(--muted); font-size: 15px; }

/* 사업 분야 */
.biz-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 8px; }
.biz { border-radius: var(--radius); padding: 40px; }
.biz p { margin: 0; }
.biz-main { background: var(--accent); color: #fff; margin-top: 8px; padding: 56px; }
.biz-main h3 { font-size: 28px; }
.biz-main .badge { background: rgba(255,255,255,.16); color: #fff; }
.biz-main p { color: #e4dff3; max-width: 30em; }
.biz-next { background: #fff; border: 1px solid var(--line); }
.biz-next p { color: var(--muted); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.text-link { display: inline-block; margin-top: 28px; font-weight: 600; color: #fff; text-underline-offset: 5px; }

/* 오시는 길 */
.loc-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
address { font-style: normal; font-size: 20px; font-weight: 600; line-height: 1.6; }
.note { color: var(--muted); font-size: 16px; margin: 16px 0 0; max-width: 26em; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 문의 */
.contact { background: var(--tint); }
.contact-rows { margin-top: 32px; border-top: 2px solid var(--ink); max-width: 760px; }
.contact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 26px 4px; border-bottom: 1px solid #d9d6e4; text-decoration: none; transition: color .2s ease; }
.contact-row:hover { color: var(--accent); }
.contact-row .label { color: var(--muted); font-size: 16px; }
.contact-row .value { font-size: clamp(22px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; text-align: right; }

/* 바닥글 */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.footer-row img { width: 150px; }
.footer-row p { margin: 0; line-height: 1.8; }

/* 나타나기 효과 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img { animation: none; }
}

/* 휴대전화·태블릿 */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; padding: 13px; }
  .hero { padding: 40px 0 56px; }
  .hero-grid, .about-grid, .biz-grid, .loc-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; aspect-ratio: 16 / 9; padding: 8% 22%; border-radius: 20px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .biz, .biz-main { padding: 28px; }
  .biz-main h3 { font-size: 22px; }
  .biz-grid { gap: 14px; }
  .contact-row { flex-direction: column; gap: 4px; padding: 20px 2px; }
  .contact-row .value { text-align: left; }
  .footer-row { grid-template-columns: 1fr; gap: 20px; }
}
