/* ==========================================================================
   Base, layout primitives, shared components
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }

.ko { font-family: var(--font-ko); }
.text-pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }

/* Section label — mono, with time tick */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  font-weight: 500;
}
.label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.dark .label { color: var(--dark-ink-2); }
.dark .label::before { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); }

.h2 {
  font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600;
  white-space: pre-line; text-wrap: balance;
}
.h2 em, .hero-title em { font-style: normal; color: var(--accent); }
.lead { font-family: var(--font-ko); font-size: var(--fs-lead); line-height: 1.7; color: var(--ink-2); text-wrap: pretty; max-width: 38em; }
.dark .lead { color: var(--dark-ink-2); }

.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px 24px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head .label { grid-column: 1 / -1; }
.section-head .h2 { grid-column: 1 / span 7; }
.section-head .lead { grid-column: 8 / -1; padding-bottom: .4em; }
@media (max-width: 900px) {
  .section-head .h2, .section-head .lead { grid-column: 1 / -1; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap;
}
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill-future { border-style: dashed; color: var(--accent-ink); border-color: color-mix(in oklch, var(--accent) 50%, transparent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
