/* USXZ STUDIO — shared styles for every page.
   Brand: 2x2 app-grid monogram, Ink / Ultramarine / Signal palette. */

:root {
  --ink: #141A2E;
  --paper: #F4F5F9;
  --surface: #FFFFFF;
  --ultra: #3346D3;
  --signal: #FFB020;
  --slate: #5F6780;
  --line: #DADDE8;
  --tile: #141A2E;
  --tile-fg: #F4F5F9;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --max: 1080px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8EAF3;
    --paper: #0E1222;
    --surface: #161B2E;
    --ultra: #8E9BFF;
    --signal: #FFC04D;
    --slate: #9AA1B8;
    --line: #2A3150;
    --tile: #E8EAF3;
    --tile-fg: #0E1222;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100% }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block }
a { color: var(--ultra); text-underline-offset: 3px }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance }
p { margin: 0 }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.label {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Monogram ---------- */
.mono {
  --s: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  width: var(--s);
  height: var(--s);
  flex: none;
}
.mono i {
  font-style: normal;
  display: grid;
  place-items: center;
  border-radius: 22%;
  background: var(--tile);
  color: var(--tile-fg);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: calc(var(--s) * .26);
  line-height: 1;
}
.mono i.z { background: var(--signal); color: #141A2E }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 28px }
.nav a.link { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500 }
.nav a.link:hover { color: var(--ultra) }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
  flex: none;
}
.lang a {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .06em;
  padding: 5px 12px;
  color: var(--slate);
  text-decoration: none;
}
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper) }

@media (max-width: 760px) {
  .nav a.link { display: none }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 12vw, 140px) clamp(56px, 9vw, 110px) }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--ultra) }
[lang="ko"] .hero h1 {
  font-family: var(--f-body);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.12;
  font-size: clamp(2.3rem, 6.4vw, 4.6rem);
}
.hero .lede { margin-top: 28px; max-width: 34em; font-size: 1.12rem; color: var(--slate) }
.hero .cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px }
.hero .mono { --s: clamp(150px, 22vw, 260px) }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px }
  .hero .mono { --s: 120px; order: -1 }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 99px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--ultra); border-color: var(--ultra); color: #fff }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line) }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink) }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 112px); border-top: 1px solid var(--line) }
.section-head { display: grid; gap: 12px; margin-bottom: 44px; max-width: 40em }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em }
.section-head p { color: var(--slate) }

/* What we make */
.make { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.make article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.make .icon {
  width: 52px; height: 52px; border-radius: 22%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
}
.make .icon svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.make h3 { font-size: 1.2rem; font-weight: 700 }
.make p { color: var(--slate); font-size: .96rem }
.status {
  justify-self: start;
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--slate);
  display: inline-flex; align-items: center; gap: 6px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal) }
@media (max-width: 860px) { .make { grid-template-columns: 1fr } }

/* How we build: X -> Z */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 }
.steps li { padding: 28px 28px 8px 0; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line) }
.steps .n { font-family: var(--f-mono); font-size: .8rem; color: var(--slate); letter-spacing: .06em }
.steps li:last-child .n { color: var(--ink) }
.steps li:last-child { border-top-color: var(--signal) }
.steps h3 { font-size: 1.25rem; font-weight: 700 }
.steps p { color: var(--slate); font-size: .96rem }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr }
  .steps li, .steps li + li { padding: 24px 0 24px; border-left: 0 }
}

/* About: the name */
.name-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px }
.letter { display: grid; gap: 14px; align-content: start }
.letter .tile {
  aspect-ratio: 1; max-width: 100%;
  border-radius: 22%;
  background: var(--tile); color: var(--tile-fg);
  display: grid; place-items: center;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1;
}
.letter.z .tile { background: var(--signal); color: #141A2E }
.letter h3 { font-size: 1.05rem; font-weight: 700 }
.letter p { color: var(--slate); font-size: .94rem }
@media (max-width: 760px) { .name-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end }
.contact h2 { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.02 }
[lang="ko"] .contact h2 { font-family: var(--f-body); font-weight: 800; letter-spacing: -.04em; line-height: 1.2 }
.contact p { margin-top: 16px; color: var(--slate); max-width: 32em }
.contact .links { display: flex; flex-wrap: wrap; gap: 12px }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)) }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .85rem; color: var(--slate) }
.site-footer a { color: var(--slate) }
.site-footer nav { display: flex; gap: 20px }

/* Language suggestion banner */
.lang-hint {
  background: var(--ink); color: var(--paper);
  font-size: .9rem;
}
.lang-hint .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px }
.lang-hint a { color: var(--signal); font-weight: 700 }
.lang-hint button { background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; opacity: .7; padding: 4px 8px }

/* ---------- Legal pages ---------- */
.legal { padding-block: 56px 96px }
.legal .wrap { max-width: 780px }
.legal article { display: grid; gap: 28px }
.legal article > * { min-width: 0 }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.025em }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px }
.legal section p + p { margin-top: 8px }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px }
.legal .meta { font-family: var(--f-mono); font-size: .8rem; color: var(--slate); margin-top: 10px }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-block: 8px }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line) }
.legal th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600 }
.legal tr:last-child td { border-bottom: 0 }
