:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #a6b0c1;
  --bg: #070a0f;
  --panel: #0d121b;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #5aa8ff;
  --cyan: #52e6d8;
  --orange: #ff9d4d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 2%, rgba(82, 230, 216, 0.10), transparent 30rem),
    radial-gradient(circle at 10% 18%, rgba(90, 168, 255, 0.11), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .13em; }
.brand-mark {
  width: 31px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 230, 216, .55);
  border-radius: 9px;
  color: var(--cyan);
  box-shadow: inset 0 0 22px rgba(82, 230, 216, .10);
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.hero { padding: clamp(90px, 14vw, 170px) 0 84px; }
.eyebrow { color: var(--cyan); font-size: .8rem; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.2rem, 10vw, 8.4rem); letter-spacing: -.065em; line-height: .88; margin-bottom: 34px; }
.hero-copy { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: end; }
.hero-copy p { font-size: clamp(1.08rem, 2vw, 1.42rem); color: #d5dce8; max-width: 720px; }
.signal {
  justify-self: end;
  width: min(100%, 310px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}
.signal-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.signal-row:last-child { border: 0; }
.signal-row span:first-child { color: var(--muted); }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 56px; margin-bottom: 42px; }
.section h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.section-head p { color: var(--muted); max-width: 670px; font-size: 1.04rem; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project {
  grid-column: span 4;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.project:hover { transform: translateY(-5px); border-color: rgba(90,168,255,.55); }
.project::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid var(--line); border-radius: 50%; right: -70px; bottom: -76px; }
.project-index { color: var(--blue); font-weight: 800; font-size: .85rem; letter-spacing: .1em; }
.project h3 { font-size: 1.55rem; margin: 62px 0 16px; }
.project p { color: var(--muted); }
.project a { display: inline-block; margin-top: 18px; color: var(--cyan); font-weight: 700; text-decoration: none; }
.project:nth-child(2) .project-index, .project:nth-child(2) a { color: var(--orange); }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: flow; }
.process article { border-top: 1px solid var(--line); padding-top: 24px; }
.process article::before { counter-increment: flow; content: "0" counter(flow); display: block; color: var(--cyan); font-size: .85rem; font-weight: 800; margin-bottom: 44px; }
.process h3 { font-size: 1.2rem; }
.process p { color: var(--muted); }

.contact-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: end; border: 1px solid var(--line); border-radius: 28px; padding: clamp(30px, 6vw, 64px); background: linear-gradient(130deg, rgba(90,168,255,.12), rgba(82,230,216,.035)); }
.contact-card h2 { margin-bottom: 16px; }
.contact-card p { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #080b10; text-decoration: none; font-weight: 800; }

.footer { padding: 34px 0 46px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer a { text-decoration: none; }

.page-hero { padding: 92px 0 52px; }
.page-hero h1 { font-size: clamp(2.7rem, 7vw, 6rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.policy { max-width: 820px; padding-bottom: 100px; }
.policy section { padding: 34px 0; border-top: 1px solid var(--line); }
.policy h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.policy p, .policy li { color: #c2cad7; }
.policy strong { color: var(--ink); }
.policy a { color: var(--cyan); }
.policy-note { border: 1px solid rgba(90,168,255,.35); background: rgba(90,168,255,.08); border-radius: 18px; padding: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; }

@media (max-width: 820px) {
  .nav-links a:not(:last-child) { display: none; }
  .hero-copy, .section-head, .contact-card { grid-template-columns: 1fr; }
  .signal { justify-self: stretch; width: 100%; }
  .project { grid-column: span 12; min-height: 270px; }
  .process { grid-template-columns: 1fr; }
  .process article::before { margin-bottom: 22px; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .hero { padding-top: 78px; }
  .section { padding: 66px 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
