:root {
  --bg: #f3f4f2;
  --paper: #ffffff;
  --ink: #10110f;
  --muted: #5d625b;
  --line: #d8dcd4;
  --soft-line: #e8ebe5;
  --accent: #f4c331;
  --accent-ink: #2a2100;
  --graphite: #171916;
  --ok: #2e7d50;
  --warn: #a16a00;
  --shadow: 0 22px 70px rgba(16, 17, 15, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: #030402;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: 0;
}

.brand-mark {
  width: 62px;
  height: auto;
  fill: currentColor;
}

.brand-hole {
  fill: #030402;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 160ms ease;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
}

.menu-button span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: currentColor;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(46px, 7vw, 88px) 0 56px;
}

.hero-copy {
  min-width: 0;
}

.scope-note,
.section-index {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 4.9vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede {
  max-width: 690px;
  margin: 28px 0 0;
  color: #2d302c;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.42;
}

.hero-disclaimer {
  max-width: 650px;
  margin: 22px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 850;
}

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

.button.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
}

.system-panel {
  min-height: 590px;
  padding: 22px;
  border: 1px solid #242720;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), #11130f;
  background-size: 34px 34px;
  color: #fff;
  box-shadow: var(--shadow);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-topline strong {
  color: var(--accent);
}

.flow-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 0.98fr) 82px minmax(0, 1fr);
  gap: 12px;
  min-height: 405px;
  margin-top: 28px;
  padding: 28px 22px 92px;
  border: 1px solid rgba(244, 195, 49, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at 45% 50%, rgba(244, 195, 49, 0.16), transparent 35%);
}

.flow-column {
  display: grid;
  gap: 10px;
  align-content: start;
  z-index: 2;
}

.flow-column.agents {
  grid-column: 1;
}

.flow-column.edge {
  grid-column: 3;
  align-self: center;
}

.flow-column.base {
  grid-column: 5;
  align-self: start;
}

.flow-title {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-node,
.edge-core {
  min-height: 62px;
  padding: 12px 12px;
  border: 1px solid rgba(244, 195, 49, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.flow-node span,
.edge-core span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.edge-core {
  display: grid;
  min-height: 184px;
  place-content: center;
  border-width: 2px;
  background: rgba(244, 195, 49, 0.11);
  text-align: center;
  box-shadow: 0 0 0 10px rgba(244, 195, 49, 0.08);
}

.flow-arrow {
  display: grid;
  align-self: center;
  min-width: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.flow-arrow::before {
  content: "";
  display: block;
  height: 2px;
  margin: 0 0 10px;
  background: rgba(244, 195, 49, 0.56);
}

.flow-arrow::after {
  content: "";
  justify-self: end;
  width: 0;
  height: 0;
  margin-top: -16px;
  border-left: 9px solid rgba(244, 195, 49, 0.82);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.arrow-in {
  grid-column: 2;
}

.arrow-out {
  grid-column: 4;
}

.arrow-out::before {
  background: repeating-linear-gradient(90deg, rgba(244, 195, 49, 0.62) 0 10px, transparent 10px 18px);
}

.flow-note {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.telemetry-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.telemetry-table div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.telemetry-table span {
  color: rgba(255, 255, 255, 0.58);
}

.telemetry-table strong {
  color: var(--accent);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.proof-strip article {
  padding: 20px;
  background: var(--paper);
}

.proof-strip span,
.card-meta,
.case-notes span,
.notes-list span,
.method-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  margin-top: 9px;
  font-size: 18px;
  line-height: 1.2;
}

.featured-case,
.projects,
.notes,
.methodology,
.employers {
  padding: 108px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.68fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2,
.employer-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:last-child,
.employer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.dashboard-preview,
.case-notes article,
.project-card,
.notes-list article,
.method-grid article,
.skills-map article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.dashboard-preview {
  padding: 18px;
  box-shadow: var(--shadow);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 6px;
  background: var(--graphite);
  color: #fff;
}

.dash-header span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.dash-header strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.dash-header button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
}

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

.metric {
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
}

.metric span,
.metric em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 38px;
}

.asset-table {
  margin-top: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 0.85fr 1.25fr;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--soft-line);
  font-size: 14px;
}

.row.head {
  border-top: 0;
  background: #f7f8f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ok {
  color: var(--ok);
  font-weight: 850;
}

.warn {
  color: var(--warn);
  font-weight: 850;
}

.case-notes {
  display: grid;
  gap: 14px;
}

.case-notes article {
  padding: 20px;
}

.case-notes strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.case-notes p,
.project-card p,
.notes-list p,
.skills-map p {
  color: var(--muted);
  line-height: 1.55;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 20px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.filter.active {
  border-color: var(--graphite);
  background: var(--graphite);
  color: #fff;
}

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

.project-card {
  min-height: 310px;
  padding: 22px;
}

.project-card.highlighted {
  border-color: #d5ad2f;
  background: #fff8df;
}

.project-card.is-hidden {
  display: none;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-meta em {
  color: var(--accent-ink);
  font-style: normal;
}

.project-card h3,
.notes-list h3,
.skills-map h3 {
  margin: 24px 0 12px;
  font-size: 25px;
  line-height: 1.08;
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.project-card li {
  padding-left: 16px;
  position: relative;
  color: #343832;
  font-size: 14px;
  font-weight: 750;
}

.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

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

.notes-list article {
  padding: 24px;
}

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

.method-grid article {
  padding: 24px;
  background: var(--graphite);
  color: #fff;
}

.method-grid strong {
  display: block;
  margin-top: 16px;
  font-size: 21px;
  line-height: 1.28;
}

.employers {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 38px;
}

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

.skills-map article {
  padding: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 110px auto 0;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .site-header.nav-open .desktop-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    gap: 0;
    padding: 10px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #030402;
  }

  .site-header.nav-open .desktop-nav a {
    padding: 13px 0;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .section-heading,
  .case-layout,
  .employers {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .system-panel {
    min-height: 520px;
  }

  .proof-strip,
  .project-grid,
  .notes-list,
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .brand {
    font-size: 27px;
  }

  .brand-mark {
    width: 54px;
  }

  .section-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 39px;
    line-height: 1.02;
    text-wrap: auto;
  }

  .hero-lede {
    font-size: 18px;
  }

  .system-panel {
    min-height: 0;
    padding: 14px;
  }

  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 18px 14px;
  }

  .flow-column.agents,
  .flow-column.edge,
  .flow-column.base,
  .arrow-in,
  .arrow-out {
    grid-column: 1;
  }

  .flow-title {
    font-size: 10px;
  }

  .flow-node,
  .edge-core {
    min-height: 52px;
    padding: 10px;
    font-size: 11px;
  }

  .flow-node span,
  .edge-core span {
    font-size: 9px;
  }

  .edge-core {
    min-height: 122px;
  }

  .flow-arrow {
    font-size: 9px;
  }

  .flow-note {
    position: static;
    padding: 10px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .proof-strip,
  .project-grid,
  .notes-list,
  .method-grid,
  .skills-map,
  .dash-grid {
    grid-template-columns: 1fr;
  }

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

  .featured-case,
  .projects,
  .notes,
  .methodology,
  .employers {
    padding-top: 76px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 20px;
  }
}
