:root {
  --paper: #f2f0eb;
  --ink: #171714;
  --muted: #696761;
  --line: #cbc8c0;
  --card: #fbfaf7;
  --accent: #ef4f2f;
  --accent-soft: #ffb68d;
  --dark: #22211e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.015em;
}

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

.landing-shell {
  min-height: 100vh;
  padding: 30px 44px 42px;
  display: grid;
  grid-template-rows: auto minmax(545px, 1fr) auto;
  gap: 24px;
  overflow: hidden;
  position: relative;
}

.landing-shell::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  top: 110px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.11em;
  font-weight: 650;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-weight: 650;
  /* Two nav links leave the brand less room; it should shrink the links'
     column rather than break its own name across lines. */
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.nav-center {
  color: var(--muted);
}

/* One grid cell holding every nav link, so adding a section cannot push a
   link onto its own row and break the three-column nav. */
.nav-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 22px;
}

.nav-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(470px, 0.86fr);
  gap: clamp(50px, 7vw, 122px);
  align-items: center;
  max-width: 1512px;
  width: 100%;
  margin: 0 auto;
}

.intro-block {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(12px, 6vw, 96px);
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(68px, 6.6vw, 110px);
  line-height: 0.88;
  letter-spacing: -0.072em;
  font-weight: 650;
}

.agent-word {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 450;
}

.agent-word::after {
  content: "";
  position: absolute;
  left: 3px;
  right: -7px;
  bottom: -6px;
  height: 10px;
  background: var(--accent-soft);
  z-index: -1;
  transform: rotate(-1.2deg);
}

.lede {
  max-width: 665px;
  margin: 34px 0 0;
  padding-left: 64px;
  font-size: 18px;
  line-height: 1.48;
  color: #4f4d48;
  position: relative;
}

.lede::before {
  content: "↳";
  position: absolute;
  left: 4px;
  top: -4px;
  font-size: 28px;
  color: var(--accent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  padding-left: 64px;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.button:hover,
.button:focus-visible,
.work-link:hover,
.work-link:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

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

.button.primary span {
  color: var(--accent-soft);
  font-size: 18px;
}

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

.dialogue {
  align-self: center;
  position: relative;
  padding: 38px 0 30px 38px;
}

.dialogue::before {
  content: "";
  position: absolute;
  left: 61px;
  top: 80px;
  bottom: 70px;
  width: 1px;
  background: var(--line);
}

.flow-label {
  margin: 0 0 18px 12px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  position: relative;
  margin-bottom: 14px;
}

.node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
  background: var(--paper);
  border: 1px solid var(--ink);
  z-index: 2;
}

.step.system .node {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.panel {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border: 1px solid var(--line);
  padding: 17px 20px 18px;
  min-height: 76px;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}

.step.system .panel {
  transform: translateX(18px);
  border-color: var(--ink);
}

.step.result .panel {
  transform: translateX(-12px);
  background: var(--dark);
  color: white;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--muted);
}

.result .panel-head {
  color: #a7a49c;
}

.panel-head .signal {
  color: var(--accent);
}

.panel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.system-lines {
  display: grid;
  gap: 8px;
  font:
    12px/1.25 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #55524d;
}

.system-line {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
}

.system-line i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.system-line em {
  font-style: normal;
  color: #9b4b39;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 15px;
  border-top: 1px solid #4b4943;
}

.result-list span {
  padding-top: 10px;
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
  color: #c3c0b7;
}

.worldview-strip {
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  border-block: 1px solid var(--ink);
  max-width: 1512px;
  width: 100%;
  margin: 0 auto;
  scroll-margin-top: 24px;
}

.worldview-heading {
  padding: 23px 28px 24px clamp(12px, 3vw, 48px);
  border-right: 1px solid var(--ink);
  min-height: 170px;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 750;
}

.worldview-heading h2 {
  margin: 42px 0 0;
  font-size: 30px;
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 580;
}

.worldview-heading h2 span {
  color: var(--accent);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.principle {
  padding: 23px 24px 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 85px;
}

.principle:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.principle:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.principle b {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 580;
}

.principle small {
  align-self: flex-end;
  color: var(--accent);
  font:
    10px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

.content-section {
  max-width: 1512px;
  width: calc(100% - 88px);
  margin: 0 auto;
}

.long-view {
  padding: 116px 0 124px;
  border-top: 1px solid var(--ink);
}

.long-view blockquote {
  max-width: 980px;
  margin: 24px 0 70px;
  font-size: clamp(54px, 7vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 650;
}

.long-view blockquote::first-letter {
  color: var(--accent);
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.view-grid article {
  min-height: 300px;
  padding: 30px;
  background: var(--paper);
}

.view-grid article > span {
  color: var(--accent);
  font:
    11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.view-grid h3 {
  margin: 82px 0 20px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.view-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  min-height: 140px;
  padding: 34px 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--ink);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

footer p {
  color: var(--muted);
}

.footer-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 20px;
  font-weight: 650;
}

@media (max-width: 1050px) {
  .landing-shell {
    overflow: visible;
    padding: 24px;
  }

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

  .hero {
    gap: 30px;
  }

  .intro-block {
    padding: 60px 0 0;
  }

  .dialogue {
    max-width: 670px;
    width: 100%;
    justify-self: end;
  }

  .worldview-strip {
    grid-template-columns: 1fr;
  }

  .worldview-heading {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .content-section {
    width: calc(100% - 48px);
  }

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

  .view-grid h3 {
    margin-top: 42px;
  }
}

@media (max-width: 620px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-center {
    display: none;
  }

  h1 {
    font-size: 57px;
  }

  .lede,
  .actions {
    padding-left: 0;
  }

  .lede::before {
    display: none;
  }

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

  .dialogue {
    padding-left: 0;
  }

  .dialogue::before {
    left: 23px;
  }

  .step {
    gap: 10px;
  }

  .step.system .panel,
  .step.result .panel {
    transform: none;
  }

  .system-line {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .system-line em {
    grid-column: 2;
  }

  .result-list,
  .principles {
    grid-template-columns: 1fr;
  }

  .result-list {
    gap: 8px;
  }

  .principle:nth-child(odd) {
    border-right: 0;
  }

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

  .content-section {
    width: calc(100% - 32px);
  }

  .long-view {
    padding: 82px 0;
  }

  .long-view blockquote {
    margin-bottom: 48px;
  }

  footer {
    padding: 30px 16px;
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
