:root {
  --cobalt: #2236dc;
  --cobalt-deep: #14209a;
  --chalk: #f1f3ff;
  --grid: rgba(241, 243, 255, .09);
  --grid-strong: rgba(241, 243, 255, .16);
  --signal: #ffd23f;
  --ox: 34%;   /* 원점 x */
  --oy: 62%;   /* 원점 y */
  --display: "Bricolage Grotesque", "Pretendard", sans-serif;
  --body: "Pretendard", "Bricolage Grotesque", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cobalt);
  color: var(--chalk);
  font-family: var(--body);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--signal); }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

/* ── 좌표 평면 ─────────────────────────────── */
.plane {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: var(--ox) var(--oy);
}
.axis { position: absolute; background: var(--chalk); }
.axis.x { left: 0; right: 0; top: var(--oy); height: 2px; transform-origin: var(--ox) 50%; animation: grow-x 1.1s cubic-bezier(.2,.7,.1,1) .25s both; }
.axis.y { top: 0; bottom: 0; left: var(--ox); width: 2px; transform-origin: 50% var(--oy); animation: grow-y 1.1s cubic-bezier(.2,.7,.1,1) .25s both; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.origin {
  position: absolute; left: var(--ox); top: var(--oy);
  width: 18px; height: 18px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--signal);
  animation: pop .5s cubic-bezier(.3,1.6,.5,1) both;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.origin-label {
  position: absolute; left: var(--ox); top: var(--oy);
  transform: translate(-100%, 0); padding: 14px 16px 0 0;
  font-family: var(--display); font-size: 15px; letter-spacing: .02em; color: var(--signal);
  animation: fade .6s ease 1.2s both;
}

/* 이름은 원점 바로 위, 1사분면 */
.mark {
  position: absolute; left: var(--ox); bottom: calc(100% - var(--oy));
  padding: 0 0 18px 22px; margin: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(54px, 10.5vw, 168px); line-height: .86; letter-spacing: -.045em;
  font-variation-settings: "wdth" 85;
  animation: rise .9s cubic-bezier(.2,.7,.1,1) .7s both;
}
.mark span { display: block; }
.mark span:nth-child(2) { padding-left: .55em; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 원점 아래, 4사분면: 한 줄 소개 */
.intro {
  position: absolute; left: var(--ox); top: var(--oy);
  padding: 26px 24px 0 24px; max-width: 34em;
  animation: fade .8s ease 1.3s both;
}
.intro p { margin: 0 0 6px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
.intro .ko-name { font-size: 14px; opacity: .7; }

/* 좌표 커서 */
.crosshair { position: fixed; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .2s; }
.crosshair.on { opacity: 1; }
.crosshair .h, .crosshair .v { position: fixed; background: rgba(255, 210, 63, .45); }
.crosshair .h { left: 0; right: 0; height: 1px; }
.crosshair .v { top: 0; bottom: 0; width: 1px; }
.crosshair .read {
  position: fixed; padding: 6px 0 0 10px;
  font-family: var(--display); font-size: 13px; color: var(--signal);
  font-variant-numeric: tabular-nums;
}

/* 바닥 정보 */
.base {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: 18px 28px 22px; font-size: 13px; line-height: 1.7;
  background: linear-gradient(transparent, rgba(20, 32, 154, .55));
  animation: fade .8s ease 1.5s both;
}
.base .biz { opacity: .72; }
.base nav { display: flex; gap: 22px; }

@media (max-width: 720px) {
  :root { --ox: 9%; --oy: 50%; }
  .plane { background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
  .mark { padding-left: 16px; }
  .intro { padding: 22px 20px 0 18px; max-width: calc(100vw - 9% - 8px); }
  .origin-label { display: none; }
  .base { flex-direction: column; padding: 16px 18px 20px calc(9% + 18px); word-break: break-all; }
  .base .biz { word-break: keep-all; }
  .base nav { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 문서 페이지(개인정보처리방침) ───────────── */
.doc-page {
  background: var(--chalk); color: var(--cobalt-deep);
  background-image: linear-gradient(rgba(34, 54, 220, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 54, 220, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.doc-page a:hover { color: var(--cobalt); }
.doc-page a:focus-visible { outline-color: var(--cobalt); }
.doc-head { background: var(--cobalt); color: var(--chalk); padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.doc-head .home { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.doc-head .home::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }
.doc-head .home:hover { color: var(--chalk); }
.doc {
  max-width: 44em; margin: 0 auto; padding: 48px 24px 72px;
  font-size: 15.5px; line-height: 1.85; color: #1b2152;
}
.doc h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; color: var(--cobalt-deep); margin: 0 0 10px; }
.doc .meta { color: #59609a; font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 17px; color: var(--cobalt-deep); margin: 34px 0 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 6px 0; }
.doc th, .doc td { border-bottom: 1px solid rgba(34, 54, 220, .18); padding: 9px 8px 9px 0; text-align: left; vertical-align: top; }
.doc th { width: 28%; font-weight: 600; }
.doc .en { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--cobalt); }
.doc-foot { max-width: 44em; margin: 0 auto; padding: 0 24px 40px; font-size: 13px; color: #59609a; line-height: 1.8; }
