@font-face {
  font-family: "Selecta";
  src: url("fonts/selecta-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Selecta";
  src: url("fonts/selecta-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --paper: #f5f5f3;
  --line: #000;
  --muted: #5d5d5a;
  --yellow: #ffdd00;
  --green: #00e14f;
  --radius: 14px;
  --page-x: clamp(22px, 4vw, 64px);
  --section-y: clamp(72px, 10vw, 144px);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Selecta", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.34;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  color: inherit;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
summary {
  font: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--page-x);
}

.site-header {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: fit-content;
  display: inline-flex;
}

.brand img {
  width: 156px;
  height: auto;
  display: block;
}

.header-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-align: center;
}

.header-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 30px);
}

.header-nav a,
.footer-links a {
  font-size: 13px;
  text-decoration: none;
}

.header-nav a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.hero {
  min-height: min(790px, 82vh);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  align-items: end;
  gap: clamp(50px, 8vw, 130px);
  padding: clamp(90px, 12vw, 170px) 0 clamp(64px, 8vw, 112px);
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin: 0 5px 0 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(0 225 79 / 14%);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  font-size: clamp(64px, 9.2vw, 132px);
  line-height: 0.82;
}

h2 {
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.9;
}

h3 {
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 660px;
  margin: 38px 0 0;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

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

.button--secondary:hover {
  background: var(--paper);
}

.endpoint-panel {
  align-self: end;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.panel-heading,
.endpoint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading {
  padding: 13px 0;
  font-size: 12px;
}

.protocol-label {
  color: var(--muted);
}

.endpoint-row {
  min-height: 82px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.endpoint-row code {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.copy-button {
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--black);
  color: var(--white);
}

.copy-button__success {
  display: none;
}

.copy-button.is-copied .copy-button__default {
  display: none;
}

.copy-button.is-copied .copy-button__success {
  display: inline;
}

.protocol-spec {
  margin: 0;
}

.protocol-spec div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid #c9c9c6;
}

.protocol-spec div:last-child {
  border-bottom: 0;
}

.protocol-spec dt,
.protocol-spec dd {
  margin: 0;
  font-size: 13px;
}

.protocol-spec dt {
  color: var(--muted);
}

.protocol-spec dd {
  text-align: right;
}

.protocol-spec code {
  font-size: 11px;
}

.protocol-rail {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.protocol-rail > span {
  color: var(--muted);
}

.protocol-rail ul {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(50px, 8vw, 120px);
  margin: var(--section-y) calc(var(--page-x) * -1) 0;
  padding: clamp(76px, 10vw, 140px) var(--page-x);
  background: var(--paper) url("images/minds-field.png") center / cover no-repeat;
  border-bottom: 1px solid var(--black);
  overflow: hidden;
}

.signal-field::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 7px;
  background: var(--green);
}

.signal-field::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 7px;
  background: var(--yellow);
}

.signal-field__intro,
.workflow-list {
  position: relative;
  z-index: 1;
}

.signal-field__intro > p:last-child {
  max-width: 480px;
  margin: 34px 0 0;
  font-size: 19px;
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--black);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 25px 0 28px;
  border-bottom: 1px solid var(--black);
}

.workflow-list p {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: 15px;
}

.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(60px, 9vw, 150px);
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--black);
}

.section-heading {
  align-self: start;
  position: sticky;
  top: 28px;
}

.section-heading > p:last-child {
  max-width: 420px;
  margin: 32px 0 0;
  font-size: 17px;
}

.connect-content {
  display: grid;
  gap: 38px;
}

.terminal {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
}

.terminal__bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid #444;
  font-size: 12px;
}

.copy-button--dark {
  border-color: var(--white);
  color: var(--white);
}

.copy-button--dark:hover {
  background: var(--white);
  color: var(--black);
}

.terminal pre {
  margin: 0;
  padding: clamp(24px, 4vw, 44px);
  overflow-x: auto;
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.65;
}

.client-notes {
  border-top: 1px solid var(--black);
}

.client-notes details {
  border-bottom: 1px solid var(--black);
}

.client-notes summary {
  position: relative;
  padding: 20px 42px 20px 0;
  cursor: pointer;
  font-size: 18px;
  list-style: none;
}

.client-notes summary::-webkit-details-marker {
  display: none;
}

.client-notes summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
}

.client-notes details[open] summary::after {
  content: "−";
}

.client-notes details p {
  max-width: 680px;
  margin: -5px 0 22px;
  padding-right: 42px;
  color: var(--muted);
}

.client-notes code {
  color: var(--black);
  font-size: 0.84em;
}

.tool-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--black);
}

.tool-index article {
  min-height: 160px;
  padding: 24px 30px 28px 0;
  border-bottom: 1px solid var(--black);
}

.tool-index article:nth-child(odd) {
  padding-right: 30px;
  border-right: 1px solid var(--black);
}

.tool-index article:nth-child(even) {
  padding-left: 30px;
}

.tool-index code {
  font-size: 13px;
  font-weight: 700;
}

.tool-index p {
  max-width: 410px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.decision-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px clamp(40px, 8vw, 130px);
  padding: var(--section-y) 0;
}

.decision-strip__body {
  max-width: 570px;
  margin: 34px 0 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-link {
  grid-column: 2;
  width: fit-content;
  align-self: end;
  font-size: 15px;
}

.decision-strip__citation {
  grid-column: 2;
  max-width: 570px;
  margin: -28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--black);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer > p:last-child {
  text-align: right;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

  .header-title {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 100px;
  }

  .endpoint-panel {
    width: min(100%, 620px);
  }

  .signal-field,
  .section {
    grid-template-columns: 1fr;
  }

  .signal-field {
    gap: 64px;
  }

  .section-heading {
    position: static;
  }

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

  .text-link {
    grid-column: 1;
  }

  .decision-strip__citation {
    grid-column: 1;
    margin-top: -28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }

  .site-footer > p:last-child {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  :root {
    --page-x: 20px;
  }

  .site-header {
    min-height: 74px;
  }

  .brand img {
    width: 128px;
  }

  .header-nav a:not(:last-child) {
    display: none;
  }

  h1 {
    font-size: clamp(56px, 19vw, 82px);
  }

  h2 {
    font-size: clamp(46px, 14vw, 70px);
  }

  .hero {
    padding-top: 76px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .protocol-rail {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }

  .protocol-rail ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 22px;
  }

  .signal-field {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 86px;
  }

  .workflow-list li {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .tool-index {
    grid-template-columns: 1fr;
  }

  .tool-index article,
  .tool-index article:nth-child(odd),
  .tool-index article:nth-child(even) {
    min-height: 0;
    padding: 22px 0 24px;
    border-right: 0;
  }

  .terminal pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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