:root {
  --bg: #0b0f0e;
  --bg-2: #101614;
  --panel: #141c1a;
  --line: rgba(235, 226, 208, 0.1);
  --text: #ece5d8;
  --muted: #94a09a;
  --amber: #e5a03c;
  --amber-hot: #ffc46b;
  --glass: #57b8a6;
  --seal: linear-gradient(135deg, var(--amber-hot), var(--amber) 55%, #c2701d);
  --radius: 12px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber-hot); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glass); }
.amber { background: var(--seal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 20; background: rgba(11, 15, 14, 0.85);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.brand .lid { width: 18px; height: 18px; border-radius: 4px; background: var(--seal); box-shadow: 0 0 14px rgba(229, 160, 60, 0.5); }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; margin-left: 24px; }
nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 110px 0 80px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 420px at 15% -10%, rgba(229,160,60,0.14), transparent 65%),
              radial-gradient(700px 380px at 85% 0%, rgba(87,184,166,0.10), transparent 60%); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); max-width: 15ch; margin: 16px 0 20px; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: #cdd6d1; max-width: 62ch; }
.hero .note { margin-top: 22px; font-size: 15.5px; color: var(--muted); max-width: 60ch; }
.chain { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; font-family: var(--mono); font-size: 13px; }
.chain span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chain span.self { border-color: rgba(229,160,60,0.45); color: var(--amber-hot); }

section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.head { max-width: 70ch; margin-bottom: 44px; }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 16px; }
.head p { color: var(--muted); font-size: 17.5px; }

/* views table */
.views { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 52px; }
.view { padding: 18px 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.view h4 { font-size: 16px; margin-bottom: 6px; }
.view p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* shot */
figure.shot { margin: 0 0 56px; }
figure.shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
figure.shot figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.reverse > figure { order: 2; }

/* levers */
.levers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.lever { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.lever .n { font-family: var(--mono); font-size: 13px; color: var(--amber); }
.lever h4 { font-size: 18px; margin: 10px 0 8px; }
.lever p { font-size: 15px; color: var(--muted); }

/* checks */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.check .seal { width: 16px; height: 16px; border-radius: 50%; background: var(--seal); margin-top: 5px; }
.check h4 { font-size: 16px; margin-bottom: 4px; }
.check p { font-size: 14.5px; color: var(--muted); }

/* math bullets */
.rows { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row h4 { font-size: 17px; color: var(--amber-hot); }
.row p { color: var(--muted); font-size: 15.5px; }

/* outputs */
.outputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.output { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.output code { font-family: var(--mono); font-size: 13.5px; color: var(--glass); }
.output h4 { font-size: 16.5px; margin: 8px 0 6px; }
.output p { font-size: 14.5px; color: var(--muted); }

pre.manifest { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; color: #c9d3ce; margin: 0; }
pre.manifest b { color: var(--amber-hot); font-weight: 500; }

footer.site { padding: 44px 0 56px; color: var(--muted); font-size: 14.5px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

@media (max-width: 1000px) {
  .views { grid-template-columns: repeat(2, 1fr); }
  .levers, .checks, .outputs { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > figure { order: 0; }
  .row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  nav a { margin-left: 14px; font-size: 14px; }
  .views { grid-template-columns: 1fr; }
}
