/* ============================================================
   base.css — reset · 타이포 · 레이아웃 · 모션 유틸
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--emerald); color: #fff; }

/* ── 타이포 ── */
.display, .h1, .h2, .h3 { font-family: var(--font-display); word-break: keep-all; text-wrap: balance; letter-spacing: -0.025em; }
.display { font-size: var(--t-display); font-weight: 800; line-height: 1.05; }
.h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.1; }
.h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; }
.h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.h4 { font-size: var(--t-h4); font-weight: 700; line-height: 1.4; word-break: keep-all; }

.lead { font-size: var(--t-lead); line-height: 1.65; color: var(--text-2); word-break: keep-all; }
.body { font-size: var(--t-body); line-height: 1.75; color: var(--text-2); word-break: keep-all; }
.small { font-size: var(--t-small); color: var(--text-2); }

.overline {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-latin); font-size: var(--t-label); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald-700);
}
.overline::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--emerald); }
.overline--on-navy { color: var(--emerald); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.accent { color: var(--emerald-700); }
.accent-navy { color: var(--navy); }

/* ── 레이아웃 ── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--rail); }
.section { padding-block: clamp(var(--space-9), 12vw, var(--space-11)); position: relative; }
.section--tight { padding-block: var(--space-9); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--alt { background: var(--bg-2); }

.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .overline { margin-bottom: var(--space-4); }
.section-head .lead { margin-top: var(--space-4); }
.section--navy .lead, .section--navy .body { color: var(--on-navy-2); }
.section--navy .h2, .section--navy .h1 { color: #fff; }

.grid { display: grid; gap: var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 16px; }

/* ── 모션 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: 90ms; }
.reveal[data-delay="2"]{ transition-delay: 180ms; }
.reveal[data-delay="3"]{ transition-delay: 270ms; }
.reveal[data-delay="4"]{ transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .kenburns { animation: none !important; }
}
