:root {
  --ink: #0a0a09;
  --ink-soft: #11110f;
  --paper: #ebe9e1;
  --paper-bright: #f4f2ea;
  --line-dark: rgba(238, 236, 228, 0.18);
  --line-light: rgba(10, 10, 9, 0.18);
  --accent: #ff5a36;
  --page: min(1280px, calc(100vw - 64px));
  --header-height: 92px;
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  padding-inline: max(32px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, height 240ms ease;
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(10, 10, 9, 0.88);
  border-color: var(--line-dark);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.wordmark-mark i {
  position: absolute;
  left: 1px;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.wordmark-mark i:first-child {
  top: 5px;
}

.wordmark-mark i:last-child {
  top: 12px;
}

.wordmark-mark::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 8px;
  width: 1px;
  height: 16px;
  background: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.site-nav a {
  color: rgba(235, 233, 225, 0.72);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
}

.site-nav .nav-contact {
  padding: 10px 15px;
  border: 1px solid rgba(235, 233, 225, 0.42);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 900px;
  height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.world-field,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-field {
  z-index: -3;
  opacity: 0.9;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 10, 9, 0.98) 0%, rgba(10, 10, 9, 0.78) 46%, rgba(10, 10, 9, 0.08) 82%),
    linear-gradient(0deg, rgba(10, 10, 9, 0.78) 0%, transparent 30%);
}

.hero-content {
  padding-top: 74px;
}

.status-line {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: rgba(235, 233, 225, 0.62);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 90, 54, 0.1);
}

.hero h1 {
  max-width: 970px;
  font-size: clamp(64px, 7.9vw, 128px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.064em;
  text-wrap: balance;
}

.hero-intro {
  max-width: 660px;
  margin-top: 44px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.025em;
  color: rgba(235, 233, 225, 0.66);
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.button {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button-primary:hover {
  background: var(--paper-bright);
  transform: translateY(-2px);
}

.text-link {
  padding-block: 12px;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(235, 233, 225, 0.35);
  color: rgba(235, 233, 225, 0.78);
  font-size: 13px;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.hero-index {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line-dark);
  color: rgba(235, 233, 225, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-index-code {
  text-align: right;
  color: rgba(235, 233, 225, 0.7);
}

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

.dark-section {
  background: var(--ink-soft);
  color: var(--paper);
}

.research {
  padding: 176px 0 150px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 4fr;
  column-gap: 48px;
}

.eyebrow,
.panel-label {
  padding-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.light-section .eyebrow,
.light-section .panel-label {
  color: rgba(10, 10, 9, 0.5);
}

.section-heading h2,
.connect-heading h2 {
  max-width: 1050px;
  font-size: clamp(48px, 6.2vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-lede {
  grid-column: 2;
  max-width: 660px;
  margin-top: 60px;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.027em;
  color: rgba(10, 10, 9, 0.62);
}

.focus-list {
  margin-top: 150px;
  border-top: 1px solid var(--line-light);
}

.focus-item {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 48px;
  align-items: start;
  padding: 42px 0 54px;
  border-bottom: 1px solid var(--line-light);
}

.focus-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.focus-item h3 {
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.focus-item > p:last-child {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(10, 10, 9, 0.62);
}

.approach {
  position: relative;
  padding: 176px 0 0;
  overflow: hidden;
}

.approach-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: end;
}

.approach-copy h2 {
  max-width: 760px;
  margin-top: 42px;
  font-size: clamp(54px, 7vw, 108px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.approach .eyebrow {
  color: rgba(235, 233, 225, 0.46);
}

.approach-lede {
  max-width: 560px;
  padding-bottom: 7px;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: rgba(235, 233, 225, 0.6);
}

.approach-horizon {
  position: absolute;
  top: 111px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line-dark);
}

.approach-horizon span {
  position: absolute;
  top: -2px;
  left: max(32px, calc((100vw - 1280px) / 2));
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.system-loop {
  margin-top: 160px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  padding-left: 0;
  padding-bottom: 64px;
}

.system-loop li {
  position: relative;
  min-height: 150px;
  padding: 20px 18px 20px 0;
  border-top: 1px solid var(--line-dark);
  color: rgba(235, 233, 225, 0.78);
  font-size: 14px;
}

.system-loop li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(235, 233, 225, 0.45);
}

.system-loop li:last-child::after {
  content: "↗";
  position: absolute;
  top: 16px;
  right: 0;
  color: var(--accent);
}

.system-loop span {
  display: block;
  margin-bottom: 54px;
  color: rgba(235, 233, 225, 0.34);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.connect {
  padding: 176px 0 128px;
}

.roles {
  padding: 176px 0 140px;
  border-bottom: 1px solid var(--line-light);
}

.role-list {
  margin-top: 128px;
  border-top: 1px solid var(--line-light);
}

.role-item {
  border-bottom: 1px solid var(--line-light);
}

.role-item summary {
  min-height: 112px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(210px, 0.55fr) 40px;
  gap: 28px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.role-item summary::-webkit-details-marker {
  display: none;
}

.role-number,
.role-meta,
.role-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-number {
  color: var(--accent);
}

.role-item h3 {
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.role-meta,
.role-label {
  color: rgba(10, 10, 9, 0.48);
}

.role-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 300;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.role-item summary:hover .role-toggle,
.role-item summary:focus-visible .role-toggle {
  color: var(--accent);
  border-color: var(--accent);
}

.role-item[open] .role-toggle {
  transform: rotate(45deg);
}

.role-body {
  padding: 8px 68px 48px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 72px;
}

.role-body > p,
.role-body > div > p:not(.role-label) {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(10, 10, 9, 0.62);
}

.role-label {
  margin-bottom: 12px;
}

.role-body a,
.roles-note a {
  width: fit-content;
  margin-top: 24px;
  padding-bottom: 5px;
  display: inline-flex;
  gap: 12px;
  border-bottom: 1px solid rgba(10, 10, 9, 0.42);
  font-size: 13px;
  font-weight: 600;
}

.role-body a:hover,
.roles-note a:hover {
  border-color: var(--accent);
}

.roles-note {
  margin-top: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  font-size: 15px;
}

.roles-note a {
  margin-top: 0;
}

.connect-heading {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 48px;
}

.connect-grid {
  margin-top: 128px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.connect-panel {
  min-height: 490px;
  padding: 46px 56px 44px 0;
  display: flex;
  flex-direction: column;
}

.connect-panel + .connect-panel {
  padding-right: 0;
  padding-left: 56px;
  border-left: 1px solid var(--line-light);
}

.connect-panel h3 {
  max-width: 510px;
  margin-top: 62px;
  font-size: clamp(34px, 3.7vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.048em;
}

.connect-panel > p:not(.panel-label) {
  max-width: 500px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(10, 10, 9, 0.62);
}

.panel-link {
  width: fit-content;
  margin-top: auto;
  padding: 14px 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(10, 10, 9, 0.42);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 160ms ease;
}

.panel-link:hover {
  border-color: var(--accent);
}

.site-footer {
  padding: 92px 0 34px;
  background: var(--ink);
  color: var(--paper);
}

.footer-main {
  min-height: 260px;
  display: flex;
  justify-content: space-between;
  gap: 56px;
}

.footer-wordmark {
  font-size: 18px;
}

.footer-main > div:first-child > p {
  margin-top: 22px;
  color: rgba(235, 233, 225, 0.48);
  font-size: 14px;
}

.footer-contact {
  min-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact p {
  margin-bottom: 26px;
  color: rgba(235, 233, 225, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact a {
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  color: rgba(235, 233, 225, 0.74);
  font-size: 14px;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-contact a:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.footer-meta {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  color: rgba(235, 233, 225, 0.35);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.not-found {
  width: var(--page);
  min-height: 100svh;
  margin-inline: auto;
  padding: 42px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.not-found > div {
  max-width: 800px;
}

.not-found h1 {
  margin: 34px 0 48px;
  font-size: clamp(58px, 9vw, 120px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 40px);
    --header-height: 76px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .site-nav {
    gap: 20px;
  }

  .site-nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 10, 9, 0.98) 0%, rgba(10, 10, 9, 0.62) 100%),
      linear-gradient(0deg, rgba(10, 10, 9, 0.88) 0%, transparent 38%);
  }

  .hero-content {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(52px, 14vw, 88px);
    line-height: 0.94;
  }

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

  .hero-index span:nth-child(3) {
    display: none;
  }

  .section-heading,
  .connect-heading,
  .approach-layout {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .connect-heading h2 {
    margin-top: 38px;
  }

  .section-lede {
    grid-column: 1;
  }

  .focus-item {
    grid-template-columns: 64px 1fr;
  }

  .focus-item > p:last-child {
    grid-column: 2;
  }

  .approach-lede {
    margin-top: 56px;
  }

  .system-loop {
    grid-template-columns: 1fr;
  }

  .system-loop li {
    min-height: 90px;
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    border-top: 1px solid var(--line-dark);
  }

  .system-loop span {
    margin-bottom: 0;
  }

  .system-loop li::after {
    display: none;
  }

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

  .role-item summary {
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    gap: 20px;
    padding: 28px 0;
  }

  .role-meta {
    grid-column: 2;
  }

  .role-toggle {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .role-body {
    padding: 0 60px 42px 72px;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .connect-panel,
  .connect-panel + .connect-panel {
    min-height: 440px;
    padding: 40px 0;
    border-left: 0;
  }

  .connect-panel + .connect-panel {
    border-top: 1px solid var(--line-light);
  }
}

@media (max-width: 620px) {
  .wordmark {
    font-size: 13px;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    padding: 120px 0 118px;
  }

  .hero h1 {
    font-size: clamp(47px, 14.4vw, 70px);
    letter-spacing: -0.058em;
  }

  .hero h1 br {
    display: none;
  }

  .status-line {
    margin-bottom: 30px;
  }

  .hero-intro {
    margin-top: 34px;
    font-size: 17px;
  }

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

  .button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-index {
    bottom: 20px;
    grid-template-columns: 1fr auto;
  }

  .hero-index span:nth-child(2) {
    display: none;
  }

  .research,
  .roles,
  .connect {
    padding: 110px 0 90px;
  }

  .approach {
    padding-top: 120px;
  }

  .approach-horizon {
    top: 72px;
  }

  .section-heading h2,
  .connect-heading h2,
  .approach-copy h2 {
    font-size: 48px;
  }

  .section-lede {
    margin-top: 42px;
    font-size: 18px;
  }

  .focus-list {
    margin-top: 88px;
  }

  .focus-item {
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 30px 0 38px;
  }

  .focus-item h3 {
    font-size: 28px;
  }

  .focus-item > p:last-child {
    margin-top: 12px;
    font-size: 15px;
  }

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

  .system-loop {
    margin-top: 90px;
    padding-bottom: 32px;
  }

  .connect-grid {
    margin-top: 74px;
  }

  .role-list {
    margin-top: 74px;
  }

  .role-item summary {
    min-height: 0;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 24px 0;
  }

  .role-item h3 {
    font-size: 23px;
  }

  .role-meta {
    max-width: 190px;
    font-size: 9px;
  }

  .role-toggle {
    width: 32px;
    height: 32px;
  }

  .role-body {
    padding: 0 0 36px 46px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .role-body > p,
  .role-body > div > p:not(.role-label) {
    font-size: 15px;
  }

  .roles-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .connect-panel,
  .connect-panel + .connect-panel {
    min-height: 420px;
  }

  .connect-panel h3 {
    margin-top: 48px;
    font-size: 38px;
  }

  .panel-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding-top: 72px;
  }

  .footer-main {
    min-height: 340px;
    flex-direction: column;
  }

  .footer-contact {
    min-width: 0;
  }

  .footer-meta {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
