:root {
  --bg: #0b0b0c;
  --fg: #f2f2f0;
  --muted: #8a8a88;
  --faint: #3a3a3c;
  --line: #222224;
  --hover: #141416;
  --accent: #2a78ff;
  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Sora", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
html[lang="ko"] { --font-body: "Noto Sans KR", "Sora", "Apple SD Gothic Neo", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: clamp(16px, 5vw, 64px);
}
.wrap { max-width: 1080px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }

header { display: flex; justify-content: space-between; align-items: center; padding-block: 28px; }
.mark img { height: 22px; width: auto; display: block; }
.lang { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.lang a { color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 4px; }
.lang a[aria-current="page"], .lang a:hover { color: var(--fg); }
.lang .sep { color: var(--faint); padding: 6px 0; }

.hero { padding-block: clamp(56px, 12vw, 140px) clamp(48px, 8vw, 96px); display: grid; gap: 28px; }
.hero h1 { margin: 0; line-height: 0; }
.hero h1 img { width: min(100%, 620px); height: auto; display: block; }
.hero p { margin: 0; max-width: 34ch; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; font-weight: 300; text-wrap: balance; }
/* Each sentence is one unbreakable unit, so lines only break between sentences
   (unless a single sentence is wider than the screen). */
.hero p .s { display: inline-block; }
.hero p .muted { color: var(--muted); }
html[lang="ko"] .hero p { max-width: none; }
html[lang="ko"] body { word-break: keep-all; }

.label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.services { list-style: none; margin: 0; padding: 0; }
.services li { border-bottom: 1px solid var(--line); }
.services a, .services .row {
  display: grid;
  /* Fixed outer columns: each row is its own grid, so "auto" widths (domain length)
     would shift the description column from row to row. */
  grid-template-columns: clamp(9.5rem, 22vw, 15rem) minmax(0, 1fr) 11rem 1.25rem;
  align-items: baseline; gap: 24px;
  padding: 26px 4px;
  color: var(--fg); text-decoration: none;
  transition: background .2s ease, padding .25s ease;
}
.services a:hover, .services a:focus-visible { background: var(--hover); padding-inline: 16px; outline: none; }
.services a:focus-visible { box-shadow: inset 0 0 0 1px var(--muted); }
.svc { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.svc b { font-weight: 300; transition: color .2s; }
.desc { color: var(--muted); font-size: 15px; min-width: 0; transition: color .2s; }
.dom { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.arrow { font-family: var(--font-mono); color: var(--muted); transition: transform .25s ease, color .2s; }
.services a:hover .arrow, .services a:focus-visible .arrow { transform: translateX(4px); color: var(--accent); }
.services a:hover .svc b { color: var(--accent); }
.services a:hover .desc { color: var(--fg); }
.next .svc, .next .desc { color: var(--faint); }

footer {
  margin-top: auto;
  padding-block: clamp(72px, 12vw, 140px) 36px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  font-size: 14px;
}
footer h2 { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
footer p, footer ul { margin: 0; padding: 0; list-style: none; }
footer a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--faint); }
footer a:hover { border-color: var(--fg); }
.addr { color: var(--muted); }
.fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }

@media (max-width: 720px) {
  .services a, .services .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .desc { grid-column: 1; grid-row: 2; }
  .dom { display: none; }
  .arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
