/* 회사 이름이 Galaxy라서 밤하늘처럼 어두운 면을 기본으로 쓴다.
   웹폰트를 받지 않고 시스템 글꼴만 써서 페이지를 가볍게 유지한다. */
:root {
  --night: #11131a;
  --night-soft: #1b1e28;
  --star: #f4f1e8;
  --muted: #a9adb8;
  --line: #2f3340;
  --glow: #ffd58a;
  color: var(--star);
  background: var(--night);
  font: 400 16px/1.7 Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin: 0; word-break: keep-all; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; }

.shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.top { display: flex; min-height: 72px; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.top-mail { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 15px; }
.top-mail:hover { color: var(--star); }

.hero { padding: clamp(56px, 12vw, 140px) 0 clamp(56px, 10vw, 112px); }
.constellation { display: block; width: min(320px, 70%); height: auto; margin-bottom: 28px; overflow: visible; }
.constellation .link { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 360; stroke-dashoffset: 0; }
.constellation .star { fill: var(--star); }
.constellation .main { fill: var(--glow); }
.hero h1 { font-size: clamp(48px, 11vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.lead { max-width: 560px; margin-top: 24px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }

.services { padding: 0 0 clamp(64px, 10vw, 120px); }
.services h2, .contact h2 { margin-bottom: 24px; color: var(--muted); font-size: 15px; font-weight: 700; }
.service-list { padding: 0; margin: 0; list-style: none; border-bottom: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.num { color: var(--glow); font-weight: 800; }
.service-list h3 { margin-bottom: 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.service-list .en { color: var(--muted); font-size: .6em; font-weight: 700; letter-spacing: 0; }
.service-list p { color: var(--muted); }
.go { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; white-space: nowrap; }
.go:hover { color: var(--glow); }

.contact { padding: 0 0 clamp(48px, 8vw, 88px); }
.mail { display: inline-flex; min-height: 44px; align-items: center; font-size: clamp(22px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.mail:hover { color: var(--glow); }

.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.company { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.company .wide { grid-column: 1 / -1; }
.company dt { opacity: .8; }
.company dd { margin: 0; color: var(--star); word-break: keep-all; }
.copyright { margin-top: 24px; }

/* 처음 열 때 한 번만: 별이 켜지고 선이 이어진다 */
@media (prefers-reduced-motion: no-preference) {
  .constellation .link { stroke-dashoffset: 360; animation: draw 1.4s cubic-bezier(.2, .8, .2, 1) .5s forwards; }
  .constellation .star { opacity: 0; animation: appear .5s ease-out forwards; }
  .constellation .star:nth-of-type(2) { animation-delay: .2s; }
  .constellation .star:nth-of-type(3) { animation-delay: 1.2s; }
  .hero h1, .lead { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .lead { animation-delay: .12s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

@media (max-width: 720px) {
  .service-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .go { grid-column: 2; }
  .company { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
