:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --panel: #11100e;
  --panel-soft: #171511;
  --paper: #f0ede4;
  --paper-muted: #d8d1c4;
  --text: #f3f0ea;
  --muted: #a8a197;
  --line: rgba(240, 237, 228, 0.16);
  --line-strong: rgba(240, 237, 228, 0.32);
  --accent: #c4956a;
  --accent-strong: #de7b4a;
  --ink: #12110f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.98), rgba(10, 10, 11, 0.94));
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 26px 36px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--accent);
  display: grid;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 0.9;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  color: rgba(243, 240, 234, 0.78);
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--text);
}

.hero {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  min-height: 100svh;
  overflow: hidden;
  padding: 118px 36px 54px;
  position: relative;
}

.hero::before {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 92px 92px;
  content: "";
  inset: 0;
  opacity: 0.28;
  position: absolute;
}

.hero-copy,
.ops-board {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.artifact-label,
.artifact span,
.editorial-list > article > span,
.method-grid article > span {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.position > p:last-child,
.principles div p {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: 118px;
  line-height: 0.86;
  margin-bottom: 28px;
  max-width: 760px;
}

.hero-copy > p:not(.eyebrow) {
  color: rgba(243, 240, 234, 0.82);
  font-size: 21px;
  line-height: 1.42;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  min-height: 48px;
  padding: 0 20px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.button.secondary {
  color: var(--text);
}

.ops-board {
  height: 610px;
  max-width: 650px;
  min-width: 0;
}

.artifact {
  background: var(--paper);
  border: 1px solid rgba(18, 17, 15, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  position: absolute;
}

.artifact::before {
  background: rgba(196, 149, 106, 0.35);
  content: "";
  height: 20px;
  left: 50%;
  position: absolute;
  top: -11px;
  transform: translateX(-50%) rotate(-4deg);
  width: 76px;
}

.artifact-label {
  color: rgba(18, 17, 15, 0.62);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 18px;
}

.workflow {
  height: 260px;
  padding: 28px;
  right: 14px;
  top: 42px;
  transform: rotate(-2deg);
  width: 430px;
}

.flow-row {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr 38px 1fr 38px 1fr;
  margin: 22px 0;
}

.flow-row span {
  border: 1px solid rgba(18, 17, 15, 0.42);
  display: grid;
  font-size: 12px;
  min-height: 48px;
  place-items: center;
  text-transform: none;
}

.flow-row i {
  background: rgba(18, 17, 15, 0.42);
  display: block;
  height: 1px;
}

.flow-row.muted {
  opacity: 0.58;
}

.table {
  bottom: 86px;
  left: 10px;
  padding: 22px;
  transform: rotate(2deg);
  width: 310px;
}

.metric-row {
  align-items: center;
  border-top: 1px solid rgba(18, 17, 15, 0.18);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
}

.metric-row span {
  color: rgba(18, 17, 15, 0.66);
  font-size: 12px;
  text-transform: none;
}

.metric-row strong {
  font-size: 18px;
}

.note {
  background: #d9c2a7;
  bottom: 210px;
  padding: 20px;
  right: 0;
  transform: rotate(4deg);
  width: 230px;
}

.note span {
  color: rgba(18, 17, 15, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.note p {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  margin: 12px 0 0;
}

.checklist {
  background: #efe6d7;
  bottom: 18px;
  padding: 22px;
  right: 92px;
  transform: rotate(-1deg);
  width: 360px;
}

.checklist p {
  align-items: center;
  border-top: 1px solid rgba(18, 17, 15, 0.16);
  display: flex;
  font-size: 14px;
  gap: 10px;
  margin: 0;
  min-height: 42px;
}

.checklist p span {
  border: 1px solid rgba(18, 17, 15, 0.46);
  height: 14px;
  width: 14px;
}

.position,
.engagements,
.method,
.roadmap,
.architecture,
.principles,
.cta {
  padding: 92px 36px;
  scroll-margin-top: 0;
}

.position {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
}

.position > p:last-child {
  font-size: 60px;
  line-height: 1.04;
  margin: 0;
  max-width: 1120px;
}

.section-heading {
  display: grid;
  gap: 24px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-bottom: 58px;
}

.section-heading h2,
.cta h2 {
  font-size: 72px;
  line-height: 0.96;
  margin: 0;
  max-width: 850px;
}

.editorial-list {
  border-top: 1px solid var(--line-strong);
}

.editorial-list article {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: 120px minmax(0, 760px);
  padding: 38px 0;
}

.editorial-list > article > span {
  color: var(--accent);
  font-size: 20px;
}

.editorial-list h3,
.method-grid h3 {
  font-size: 26px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.editorial-list p,
.method-grid p,
.cta p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
  margin-bottom: 0;
  max-width: 660px;
}

.method {
  background: var(--paper);
  color: var(--ink);
}

.method .section-kicker,
.method-grid article > span {
  color: #8e5e35;
}

.method .section-heading h2 {
  color: var(--ink);
}

.method-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid article {
  background: rgba(18, 17, 15, 0.04);
  border-top: 1px solid rgba(18, 17, 15, 0.16);
  min-height: 320px;
  padding: 30px;
}

.method-grid p {
  color: rgba(18, 17, 15, 0.68);
}

.roadmap {
  background:
    radial-gradient(circle at 86% 10%, rgba(77, 136, 174, 0.12), transparent 30%),
    var(--panel-soft);
  border-bottom: 1px solid var(--line);
}

.roadmap-list {
  border-left: 1px solid rgba(101, 153, 188, 0.36);
  margin-left: 18px;
}

.roadmap-list article {
  display: grid;
  gap: 24px;
  grid-template-columns: 28px minmax(0, 1fr) 190px;
  padding: 0 0 54px;
  position: relative;
}

.roadmap-list article:last-child {
  padding-bottom: 0;
}

.road-dot {
  background: #7daed0;
  border: 5px solid rgba(125, 174, 208, 0.2);
  border-radius: 999px;
  height: 22px;
  margin-left: -11px;
  margin-top: 4px;
  width: 22px;
}

.roadmap-list h3 {
  font-size: 24px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.roadmap-list p {
  color: rgba(243, 240, 234, 0.84);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 780px;
}

.roadmap-list article > span {
  color: #9eb8c9;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
}

.architecture {
  background: var(--bg);
}

.architecture-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.stack-map {
  border-top: 1px solid var(--line-strong);
}

.stack-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 150px 220px minmax(0, 1fr);
  min-height: 86px;
  padding: 18px 0;
}

.stack-row span {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stack-row strong {
  font-size: 20px;
}

.stack-row p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
}

.stack-row.surface {
  background: rgba(196, 149, 106, 0.08);
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
}

.stack-row.muted {
  opacity: 0.72;
}

.workflow-map {
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
  position: sticky;
  top: 110px;
}

.workflow-map h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 18px;
}

.workflow-map p:not(.artifact-label) {
  color: rgba(18, 17, 15, 0.72);
  font-size: 16px;
  line-height: 1.58;
}

.workflow-map ol {
  counter-reset: workflow;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.workflow-map li {
  align-items: center;
  border-top: 1px solid rgba(18, 17, 15, 0.16);
  counter-increment: workflow;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 12px;
  min-height: 44px;
}

.workflow-map li::before {
  color: #8e5e35;
  content: counter(workflow, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.principles {
  background: var(--panel);
}

.principles div {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles div p {
  align-items: flex-end;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 44px;
  line-height: 1;
  margin: 0;
  min-height: 260px;
  padding: 28px;
}

.cta {
  background: var(--accent);
  color: var(--ink);
}

.cta .section-kicker,
.cta p {
  color: rgba(18, 17, 15, 0.74);
}

.cta p {
  margin: 20px 0 30px;
}

.cta .button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 112px;
  }

  h1 {
    font-size: 82px;
    max-width: 560px;
  }

  .ops-board {
    height: 540px;
    margin: 0 auto;
    width: min(100%, 640px);
  }

  .section-heading,
  .editorial-list article {
    grid-template-columns: 1fr;
  }

  .roadmap-list article {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .roadmap-list article > span {
    grid-column: 2;
    text-align: left;
  }

  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .workflow-map {
    position: static;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .method-grid,
  .principles div {
    grid-template-columns: 1fr;
  }

  .method-grid article,
  .principles div p {
    min-height: 210px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px;
  }

  nav {
    gap: 14px;
    font-size: 13px;
  }

  .brand {
    font-size: 19px;
  }

  .hero,
  .position,
  .engagements,
  .method,
  .roadmap,
  .architecture,
  .principles,
  .cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding-bottom: 46px;
    padding-top: 118px;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: 64px;
    line-height: 0.9;
    margin-bottom: 22px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-board {
    height: 520px;
    width: 100%;
  }

  .workflow {
    height: 230px;
    padding: 18px;
    right: -86px;
    top: 16px;
    width: 390px;
  }

  .flow-row {
    gap: 6px;
    grid-template-columns: 1fr 24px 1fr 24px 1fr;
    margin: 17px 0;
  }

  .flow-row span {
    font-size: 10px;
    min-height: 42px;
  }

  .table {
    bottom: 96px;
    left: -28px;
    width: 270px;
  }

  .note {
    bottom: 230px;
    right: -12px;
    width: 190px;
  }

  .note p {
    font-size: 24px;
  }

  .checklist {
    bottom: 16px;
    right: -42px;
    width: 330px;
  }

  .position,
  .engagements,
  .method,
  .roadmap,
  .architecture,
  .principles,
  .cta {
    padding-bottom: 66px;
    padding-top: 88px;
    scroll-margin-top: 0;
  }

  .position > p:last-child,
  .section-heading h2,
  .cta h2 {
    font-size: 42px;
    line-height: 1;
  }

  .editorial-list article {
    gap: 14px;
    padding: 30px 0;
  }

  .editorial-list p,
  .method-grid p,
  .roadmap-list p,
  .cta p {
    font-size: 16px;
  }

  .roadmap-list {
    margin-left: 11px;
  }

  .roadmap-list article {
    gap: 14px;
    padding-bottom: 40px;
  }

  .roadmap-list h3 {
    font-size: 22px;
  }

  .roadmap-list article > span {
    font-size: 11px;
  }

  .workflow-map {
    padding: 24px;
  }

  .workflow-map h3 {
    font-size: 36px;
  }

  .principles div p {
    font-size: 36px;
    min-height: 180px;
    padding: 22px;
  }
}

@media (max-width: 380px) {
  nav {
    gap: 10px;
    font-size: 12px;
  }

  h1 {
    font-size: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
