/* XOS v1 — graphite / bone / signal red. No frameworks, no webfonts. */

:root {
  --ink: #0c0c0d;
  --ink-2: #131315;
  --bone: #ede9df;
  --muted: rgba(237, 233, 223, 0.64);
  --faint: rgba(237, 233, 223, 0.42);
  --line: rgba(237, 233, 223, 0.14);
  --red: #c83232;
  --max: 1120px;
  --font: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- type ---------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(52px, 9vw, 116px); }
h2 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 18px; }
h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }

p { margin: 0 0 1em; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--red);
}

.center .eyebrow { justify-content: center; }

.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
  max-width: 34em;
  line-height: 1.6;
}

.center .lede { margin-left: auto; margin-right: auto; }

.fineprint {
  margin-top: 34px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 12, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 17px;
  color: var(--bone);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.brand-tick {
  width: 14px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.nav-links a:hover { color: var(--bone); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--bone);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--bone);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: transparent;
  color: var(--bone);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--bone);
}

.btn-small {
  padding: 9px 20px;
  font-size: 13.5px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.cta-center { justify-content: center; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(150px, 20vh, 210px) 0 clamp(80px, 10vw, 130px);
  background:
    radial-gradient(720px 380px at 78% 8%, rgba(200, 50, 50, 0.10), transparent 65%),
    radial-gradient(900px 500px at 12% 30%, rgba(237, 233, 223, 0.05), transparent 60%);
}

.hero h1 { margin-bottom: 26px; }

.hero-meta {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 64px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}

.hero-meta li:last-child { border-right: 0; }

/* ---------- sections ---------- */

.section {
  padding: clamp(84px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.section-tight .lede { margin-bottom: 8px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 30px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(200, 50, 50, 0.45);
  transform: translateY(-3px);
}

.card p:last-child { margin-bottom: 0; color: var(--muted); }
.card h3 { color: var(--bone); }

.card-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.tenets { margin-top: 56px; }

.tenet h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  padding-top: 16px;
  border-top: 2px solid var(--red);
  margin-bottom: 8px;
}

.tenet p { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */

.contact-address {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 54px;
}

.footer-inner {
  display: flex;
  align-items: baseline;
  gap: 26px;
  flex-wrap: wrap;
}

.footer .brand { margin-right: 0; font-size: 15px; }

.footer-domain {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin: 0;
}

.footer-copy {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- reveal motion (JS-gated, subtle) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-meta { flex-wrap: wrap; gap: 12px; }
  .hero-meta li { border-right: 0; padding-right: 0; margin-right: 18px; }
  .footer-copy { margin-left: 0; width: 100%; }
}

/* ---------- reduced motion / no-JS ---------- */

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

.no-js .reveal { opacity: 1; transform: none; }
