/* Onyx — site stylesheet
 * Single shared CSS for every page. Mirrors the language of brand-assets/tokens.css
 * but inlines tokens here so the site is self-contained.
 */

:root {
  --onyx-black:       #0A0A0B;
  --onyx-pitch:       #000000;
  --onyx-slate-edge:  #15151A;
  --onyx-slate-card:  #18181D;
  --onyx-slate-deep:  #2A2A2E;
  --onyx-slate-fog:   #9A9AA3;
  --onyx-bone:        #EDEAE3;
  --onyx-bone-2:      #DAD6CC;
  --onyx-ember:       oklch(0.72 0.17 55);
  --onyx-ember-deep:  oklch(0.55 0.17 45);

  --onyx-display: "Space Grotesk", system-ui, sans-serif;
  --onyx-body:    "Inter Tight",   system-ui, sans-serif;
  --onyx-mono:    "JetBrains Mono", ui-monospace, monospace;

  --onyx-track-eyebrow:  0.16em;
  --onyx-track-wordmark: 0.18em;

  --onyx-r-sm: 2px;
  --onyx-r-md: 3px;

  --onyx-sp-1: 8px;
  --onyx-sp-2: 16px;
  --onyx-sp-3: 24px;
  --onyx-sp-4: 32px;
  --onyx-sp-6: 48px;
  --onyx-sp-8: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--onyx-black);
  color: var(--onyx-bone);
  font-family: var(--onyx-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection { background: var(--onyx-ember); color: var(--onyx-black); }

a { color: inherit; }

/* ───────── Layout shell ───────── */

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

main {
  flex: 1 0 auto;
  padding-bottom: 120px;
}

/* ───────── Header ───────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--onyx-slate-edge);
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--onyx-bone);
}

.brand .mark { width: 28px; height: 28px; display: block; }

.brand .name {
  font-family: var(--onyx-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: var(--onyx-track-wordmark);
  text-transform: uppercase;
}

nav.primary {
  display: flex;
  gap: 8px;
}

nav.primary a {
  font-family: var(--onyx-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--onyx-slate-fog);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--onyx-r-sm);
  transition: color 0.15s, background 0.15s;
}

nav.primary a:hover { color: var(--onyx-bone); background: var(--onyx-slate-card); }

nav.primary a.active {
  color: var(--onyx-bone);
  background: var(--onyx-slate-card);
  position: relative;
}
nav.primary a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--onyx-ember);
}

.site-header .cta {
  font-family: var(--onyx-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--onyx-ember);
  text-decoration: none;
  border: 1px solid var(--onyx-ember);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.site-header .cta:hover { background: var(--onyx-ember); color: var(--onyx-black); }

/* ───────── Topbar (the small status strip on each page) ───────── */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--onyx-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--onyx-slate-fog);
  border-bottom: 1px solid var(--onyx-slate-edge);
}
.topbar .lhs { display: flex; gap: 24px; align-items: center; }
.dot {
  width: 6px; height: 6px;
  background: var(--onyx-ember);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--onyx-ember);
}
.dot.dim { background: var(--onyx-slate-fog); box-shadow: none; }

/* ───────── Hero / page title ───────── */

.hero {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--onyx-slate-edge);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  font-family: var(--onyx-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--onyx-ember); }

.hero .stamp {
  font-family: var(--onyx-mono);
  font-size: 11px;
  color: var(--onyx-slate-fog);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: right;
  white-space: nowrap;
}

/* Smaller hero variant for inner pages */
.page-head {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--onyx-slate-edge);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.page-head h1 {
  font-family: var(--onyx-display);
  font-weight: 500;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.page-head h1 em { font-style: normal; color: var(--onyx-ember); }
.page-head .crumb {
  font-family: var(--onyx-mono);
  font-size: 11px;
  color: var(--onyx-slate-fog);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  display: block;
}
.page-head .stamp {
  font-family: var(--onyx-mono);
  font-size: 11px;
  color: var(--onyx-slate-fog);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: right;
  white-space: nowrap;
}

/* ───────── Lede ───────── */

.lede {
  padding: 56px 0;
  border-bottom: 1px solid var(--onyx-slate-edge);
  font-family: var(--onyx-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--onyx-bone);
  max-width: 820px;
  text-wrap: pretty;
  margin: 0;
}
.lede em { font-style: normal; color: var(--onyx-ember); }

/* ───────── Generic section ───────── */

section.block {
  padding: 80px 0;
  border-bottom: 1px solid var(--onyx-slate-edge);
}
section.block:last-of-type { border-bottom: 0; }

.sec-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 40px;
  align-items: baseline;
}
.sec-num {
  font-family: var(--onyx-mono);
  font-size: 11px;
  color: var(--onyx-slate-fog);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.sec-num span { color: var(--onyx-ember); margin-right: 10px; }
.sec-title {
  font-family: var(--onyx-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 720px;
}
.sec-title em { font-style: normal; color: var(--onyx-slate-fog); }

.body-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.body-grid p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--onyx-bone-2);
  margin: 0 0 18px;
  max-width: 680px;
  text-wrap: pretty;
}
.body-grid p:last-child { margin-bottom: 0; }
.body-grid p b { color: var(--onyx-bone); font-weight: 500; }
.body-grid p .ember { color: var(--onyx-ember); }

/* ───────── Cards & grids ───────── */

.card {
  background: var(--onyx-slate-card);
  border: 1px solid var(--onyx-slate-deep);
  border-radius: var(--onyx-r-md);
  padding: 28px;
}
.card .num {
  font-family: var(--onyx-mono);
  font-size: 10px;
  color: var(--onyx-ember);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 12px;
}
.card h4 {
  font-family: var(--onyx-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 13.5px;
  color: var(--onyx-bone-2);
  margin: 0;
  line-height: 1.6;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--onyx-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 14px 22px;
  border-radius: var(--onyx-r-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--onyx-ember);
  color: var(--onyx-black);
  border: 1px solid var(--onyx-ember);
}
.btn-primary:hover { background: oklch(0.78 0.17 55); }
.btn-ghost {
  background: transparent;
  color: var(--onyx-bone);
  border: 1px solid var(--onyx-slate-deep);
}
.btn-ghost:hover { border-color: var(--onyx-bone); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ───────── Footer ───────── */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--onyx-slate-edge);
  background: var(--onyx-black);
}
.site-footer .row {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
}
.site-footer .credit {
  font-family: var(--onyx-mono);
  font-size: 11px;
  color: var(--onyx-slate-fog);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.site-footer .center {
  display: flex;
  gap: 14px;
  align-items: center;
}
.site-footer .center .mark { width: 22px; height: 22px; opacity: 0.8; }
.site-footer .center .name {
  font-family: var(--onyx-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--onyx-track-wordmark);
  text-transform: uppercase;
  color: var(--onyx-bone);
}
.site-footer .links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-family: var(--onyx-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.site-footer .links a { color: var(--onyx-slate-fog); text-decoration: none; }
.site-footer .links a:hover { color: var(--onyx-bone); }

/* ───────── Responsive ───────── */

@media (max-width: 900px) {
  .shell { padding: 0 24px; }
  main { padding-bottom: 80px; }

  nav.primary { display: none; }
  .site-header .cta { padding: 8px 12px; font-size: 10px; }

  .hero, .page-head { grid-template-columns: 1fr; gap: 24px; padding: 56px 0 32px; }
  .hero .stamp, .page-head .stamp { text-align: left; }

  .sec-head, .body-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .site-footer .row { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .site-footer .links { justify-content: center; }
}
