:root {
  --paper: oklch(0.985 0.006 86);
  --surface: oklch(0.955 0.008 86);
  --ink: oklch(0.18 0.006 86);
  --muted: oklch(0.44 0.006 86);
  --quiet: oklch(0.61 0.008 86);
  --line: oklch(0.83 0.008 86);
  --sand: oklch(0.79 0.045 82);
  --stone: oklch(0.53 0.012 84);
  --max-width: 1180px;
  --font-sans: "Schibsted Grotesk", "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

.site-shell {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 68px;
  padding: 0 clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper) 96%, transparent);
  backdrop-filter: blur(10px);
}

.home-body .topbar {
  position: absolute;
  width: 100%;
  border-bottom-color: color-mix(in oklch, var(--ink) 9%, transparent);
  background: color-mix(in oklch, var(--paper) 42%, transparent);
  color: var(--ink);
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 520;
  line-height: 1;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  mix-blend-mode: multiply;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-wordmark {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-wordmark span {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 520;
  letter-spacing: 0.16em;
  line-height: 0.92;
}

.brand-wordmark small {
  color: color-mix(in oklch, var(--ink) 82%, var(--stone));
  font-size: 0.52rem;
  font-weight: 650;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
}

.home-body .brand {
  color: var(--ink);
}

.brand small {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 500;
}

.home-body .brand small {
  color: var(--quiet);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.9rem;
}

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

nav a,
.nav-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: color 160ms ease, border-color 160ms ease;
}

nav a:hover,
.nav-button:hover {
  color: var(--ink);
}

.home-body nav a:hover {
  color: var(--ink);
}

nav a[aria-current="page"],
.nav-button[aria-selected="true"],
.nav-button[data-state="active"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.home-body nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.home-campaign {
  flex: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.campaign-hero {
  position: relative;
  min-height: clamp(620px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.campaign-visual {
  position: absolute;
  inset: 0;
  background-image: url("assets/apex-sand-field-charcoal.jpg");
  background-position: center right;
  background-size: cover;
  filter: saturate(0.9) contrast(1.08) brightness(0.96);
  overflow: hidden;
}

.campaign-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--paper) 32%, transparent), transparent 32%, color-mix(in oklch, var(--paper) 34%, transparent)),
    linear-gradient(90deg, color-mix(in oklch, var(--paper) 80%, transparent) 0 30%, color-mix(in oklch, var(--paper) 42%, transparent) 48%, transparent 72%);
  pointer-events: none;
}

.campaign-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 96px));
  margin: 0 auto;
  padding: clamp(136px, 17vh, 168px) 0 clamp(68px, 10vh, 104px);
}

.campaign-statement {
  min-width: 0;
  width: min(760px, 100%);
}

.campaign-label {
  margin: 0 0 22px;
  color: var(--stone);
  font-size: 0.74rem;
  font-weight: 640;
  text-transform: uppercase;
}

.campaign-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(2.35rem, 4.25vw, 4.05rem);
  font-weight: 400;
  line-height: 1.06;
  text-shadow: 0 1px 0 color-mix(in oklch, var(--paper) 45%, transparent);
}

.software-stack {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.54fr) minmax(0, 1fr);
  gap: clamp(46px, 6.5vw, 88px);
  padding: clamp(66px, 8vw, 102px) 0;
  border-bottom: 1px solid var(--line);
}

.software-stack-copy {
  min-width: 0;
}

.software-stack-copy h2 {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  font-weight: 400;
  line-height: 1.1;
}

.software-stack-copy p:not(.section-kicker) {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.software-stack-system {
  min-width: 0;
  align-self: center;
}

.stack-cone {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
}

.cone-tier {
  --tier-width: 86%;
  width: var(--tier-width);
  min-width: 0;
  min-height: 84px;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: clamp(18px, 2.8vw, 30px);
  align-items: center;
  padding: 17px clamp(26px, 4vw, 44px);
  border: 1px solid color-mix(in oklch, var(--line) 90%, var(--stone));
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--surface) 74%, var(--paper)), var(--paper));
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}

.cone-tier-4 {
  --tier-width: 72%;
}

.cone-tier-3 {
  --tier-width: 80%;
}

.cone-tier-2 {
  --tier-width: 88%;
}

.cone-tier-1 {
  --tier-width: 96%;
}

.cone-tier span,
.software-fundamentals > span,
.code-foundation span {
  color: var(--stone);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
}

.cone-tier h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}

.cone-tier p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.software-fundamentals,
.code-foundation {
  width: 100%;
  min-width: 0;
}

.software-fundamentals {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px 28px;
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 58%, var(--paper));
}

.software-fundamentals ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.software-fundamentals li {
  min-width: 0;
  padding: 5px 12px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-align: center;
  border-right: 1px solid var(--line);
}

.software-fundamentals li:last-child {
  border-right: 0;
}

.code-foundation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 30px;
  background: color-mix(in oklch, var(--ink) 92%, var(--stone));
  color: var(--paper);
}

.code-foundation span {
  color: color-mix(in oklch, var(--paper) 70%, transparent);
}

.code-foundation strong {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.maintainer-note {
  max-width: 650px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.66;
}

.agentic-workflow {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1fr);
  gap: clamp(46px, 6.5vw, 88px);
  padding: clamp(64px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

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

.workflow-copy h2 {
  max-width: 540px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.workflow-copy p:not(.section-kicker) {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.workflow-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-principles li {
  min-width: 0;
  padding: 16px 0 0;
}

.workflow-principles span {
  display: block;
  margin-bottom: 10px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 650;
}

.workflow-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.workflow-diagram {
  min-width: 0;
  margin: 0;
}

.workflow-route {
  --label-space: 32px;
  --ring-size: clamp(112px, 12vw, 156px);
  --route-pad-top: 28px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: var(--route-pad-top) 0 28px;
}

.workflow-route::before,
.workflow-route::after {
  content: "";
  position: absolute;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--ink) 28%, var(--paper));
  box-shadow: 0 1px 3px color-mix(in oklch, var(--ink) 18%, transparent);
}

.workflow-route::before {
  top: calc(var(--route-pad-top) + var(--label-space) + (var(--ring-size) / 2) - 6px);
}

.workflow-route::after {
  top: calc(var(--route-pad-top) + var(--label-space) + (var(--ring-size) / 2) + 6px);
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  justify-content: center;
}

.node-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
}

.node-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--ring-size);
  aspect-ratio: 1;
  border: 2px solid color-mix(in oklch, var(--ink) 24%, var(--paper));
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 35%, color-mix(in oklch, var(--paper) 92%, var(--surface)) 0 36%, transparent 37%),
    color-mix(in oklch, var(--surface) 76%, var(--paper));
  box-shadow:
    inset 0 2px 8px color-mix(in oklch, var(--ink) 16%, transparent),
    0 10px 24px color-mix(in oklch, var(--ink) 10%, transparent);
}

.node-ring::before {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border: 2px solid color-mix(in oklch, var(--ink) 20%, var(--paper));
  border-radius: 50%;
  box-shadow: inset 0 2px 7px color-mix(in oklch, var(--ink) 12%, transparent);
}

.node-core {
  position: relative;
  z-index: 1;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ink) 78%, var(--stone));
  box-shadow:
    inset 0 2px 5px color-mix(in oklch, var(--paper) 18%, transparent),
    0 4px 10px color-mix(in oklch, var(--ink) 18%, transparent);
}

.agentic-anatomy {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.5fr) minmax(0, 1fr);
  gap: clamp(46px, 6.5vw, 88px);
  padding: clamp(66px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

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

.anatomy-copy h2 {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.anatomy-copy p:not(.section-kicker) {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.anatomy-ledger {
  min-width: 0;
  border-top: 1px solid var(--ink);
}

.anatomy-ledger article {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.anatomy-ledger span {
  color: var(--stone);
  font-size: 0.78rem;
  font-weight: 650;
}

.anatomy-ledger h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.anatomy-ledger p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.anatomy-ledger strong {
  color: var(--ink);
  font-weight: 650;
}

.guardrail-cycle {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.54fr) minmax(0, 1fr);
  gap: clamp(46px, 6.5vw, 88px);
  padding: clamp(66px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

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

.guardrail-copy h2 {
  max-width: 540px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
}

.guardrail-copy p:not(.section-kicker) {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.guardrail-diagram {
  min-width: 0;
  margin: 0;
  display: grid;
  place-items: center;
}

.guardrail-loop {
  width: min(100%, 590px);
  height: auto;
  overflow: visible;
}

.guardrail-ring,
.cycle-segment {
  fill: none;
}

.guardrail-ring-outer {
  stroke: color-mix(in oklch, var(--ink) 24%, var(--paper));
  stroke-width: 1.45;
}

.guardrail-ring-permissions {
  stroke: color-mix(in oklch, var(--ink) 22%, var(--paper));
  stroke-width: 1.2;
  stroke-dasharray: 8 10;
}

.guardrail-ring-rules {
  stroke: color-mix(in oklch, var(--ink) 18%, var(--paper));
  stroke-width: 1.15;
}

.guardrail-ring-data {
  stroke: color-mix(in oklch, var(--ink) 16%, var(--paper));
  stroke-width: 1.1;
  stroke-dasharray: 3 8;
}

.cycle-segment {
  stroke: color-mix(in oklch, var(--ink) 44%, var(--paper));
  stroke-width: 3;
  stroke-linecap: round;
}

.guardrail-arrow-head {
  fill: color-mix(in oklch, var(--ink) 44%, var(--paper));
}

.cycle-label {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-linejoin: round;
  stroke-width: 7px;
}

.guardrail-tag {
  fill: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
  text-anchor: middle;
  text-transform: uppercase;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-linejoin: round;
  stroke-width: 7px;
}

.guardrail-core-label,
.guardrail-core-sub {
  font-family: var(--font-sans);
  text-anchor: middle;
}

.guardrail-core-label {
  fill: var(--stone);
  font-size: 15px;
  font-weight: 650;
}

.guardrail-core-sub {
  fill: var(--quiet);
  font-size: 11px;
  font-weight: 600;
}

.work-lanes {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.64fr 1fr;
  gap: clamp(48px, 7vw, 86px);
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.work-lanes-heading h2 {
  max-width: 440px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.45vw, 3.05rem);
  font-weight: 400;
  line-height: 1.12;
}

.work-lane-list {
  border-top: 1px solid var(--ink);
}

.work-lane-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(150px, 0.46fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.work-lane-list span {
  color: var(--stone);
  font-size: 0.82rem;
  font-weight: 650;
}

.work-lane-list h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.work-lane-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-body .site-footer {
  background: var(--ink);
  border-top-color: color-mix(in oklch, var(--paper) 18%, transparent);
  color: color-mix(in oklch, var(--paper) 64%, transparent);
}

.page {
  width: min(var(--max-width), calc(100% - 96px));
  margin: 0 auto;
  padding: 88px 0 110px;
  flex: 1;
  min-width: 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: end;
  padding: 42px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero-section > *,
.thesis-strip > *,
.index-section > *,
.ledger-row > *,
.profile-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 830px;
}

.eyebrow,
.section-kicker,
.row-label {
  margin: 0 0 18px;
  color: var(--stone);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

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

h1,
.thesis-strip h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.8vw, 4.55rem);
  line-height: 1.06;
}

.lede,
.page-intro p {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.hero-links a {
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding-bottom: 4px;
}

.memo-panel {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in oklch, var(--line) 55%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 42px 42px;
  padding: 28px;
}

.memo-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.82rem;
}

.memo-heading strong {
  color: var(--ink);
  font-weight: 600;
}

.memo-panel dl,
.row-meta {
  margin: 0;
}

.memo-panel dl div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.memo-panel dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--quiet);
  font-size: 0.74rem;
  font-weight: 650;
  text-transform: uppercase;
}

dd {
  margin: 8px 0 0;
  color: var(--ink);
}

.thesis-strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.thesis-strip h2 {
  max-width: 860px;
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.22;
}

.index-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.section-heading span {
  color: var(--quiet);
  font-size: 0.82rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.structured-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.structured-list article {
  min-height: 250px;
  padding: 28px 26px 0;
  border-right: 1px solid var(--line);
}

.structured-list article:last-child {
  border-right: 0;
}

.structured-list span {
  color: var(--stone);
  font-size: 0.8rem;
  font-weight: 650;
}

.structured-list h3 {
  margin: 36px 0 16px;
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 400;
  line-height: 1.2;
}

.structured-list p,
.closing-section p,
.ledger-row p,
.profile-block p,
.profile-block li {
  color: var(--muted);
}

.closing-section {
  border-bottom: 0;
}

.closing-section p {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.page-intro {
  padding: 42px 0 84px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 820px;
}

.daily-briefing {
  display: grid;
  grid-template-columns: 0.56fr 1fr;
  gap: clamp(48px, 7vw, 86px);
  padding: 70px 0 0;
}

.daily-briefing h2 {
  max-width: 460px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  font-weight: 400;
  line-height: 1.12;
}

.daily-briefing > p {
  max-width: 640px;
  margin: 0;
  padding-top: 5px;
  color: var(--muted);
  line-height: 1.75;
}

.recent-publications {
  display: grid;
  grid-template-columns: 0.56fr 1fr;
  gap: clamp(48px, 7vw, 86px);
  padding: 56px 0 0;
}

.recent-publications-heading h2 {
  max-width: 420px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  font-weight: 400;
  line-height: 1.12;
}

.publication-list {
  border-top: 1px solid var(--ink);
}

.publication-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 86px;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.publication-list span,
.publication-list strong {
  color: var(--stone);
  font-size: 0.78rem;
  font-weight: 650;
}

.publication-list strong {
  justify-self: end;
}

.publication-list h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.25;
}

.publication-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.ledger-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 300px;
  gap: 38px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.row-number {
  color: var(--quiet);
  font-size: 0.86rem;
}

.row-main h2,
.profile-block h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.row-main p {
  max-width: 560px;
}

.row-meta {
  display: grid;
  gap: 22px;
  align-content: start;
}

.row-meta div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.row-meta div:last-child {
  border-bottom: 0;
}

.team-directory {
  padding: 70px 0 0;
}

.team-directory-heading {
  display: grid;
  grid-template-columns: 0.56fr 1fr;
  gap: clamp(48px, 7vw, 86px);
  align-items: start;
}

.team-directory-heading h2 {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px));
  gap: 24px;
  justify-content: center;
  margin-top: 46px;
}

.team-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 180ms ease, transform 180ms ease;
}

.team-card:hover {
  transform: translateY(-2px);
  border-color: var(--stone);
}

.team-card:focus-visible,
.profile-tabs button:focus-visible,
.subpage-link:focus-visible,
.nav-button:focus-visible,
.auth-button:focus-visible,
.auth-form input:focus-visible,
.admin-toolbar button:focus-visible,
.admin-action:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 4px;
}

.member-photo,
.profile-portrait {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}

.member-photo {
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--line);
}

.member-photo-placeholder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in oklch, var(--surface) 68%, var(--paper)) 0 18%, transparent 19%),
    repeating-radial-gradient(circle at 50% 48%, color-mix(in oklch, var(--stone) 26%, transparent) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, var(--surface), var(--paper));
}

.member-photo-placeholder::before,
.profile-portrait-placeholder::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(31%, 118px);
  aspect-ratio: 1.22;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, color-mix(in oklch, var(--paper) 28%, transparent), transparent 34%),
    color-mix(in oklch, var(--ink) 64%, var(--stone));
  box-shadow:
    inset 0 -10px 16px color-mix(in oklch, var(--ink) 20%, transparent),
    0 16px 28px color-mix(in oklch, var(--ink) 16%, transparent);
  transform: translate(-50%, -50%);
}

.member-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.35) contrast(1.08) brightness(0.97);
  transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.team-card:hover .member-photo img {
  transform: scale(1.018);
}

.member-card-body {
  display: grid;
  align-content: start;
  padding: 26px;
}

.member-label {
  margin: 0 0 14px;
  color: var(--stone);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

.team-card h2 {
  max-width: 380px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.12;
}

.member-title {
  margin: 12px 0 0;
  color: var(--ink);
  font-weight: 650;
}

.member-summary {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 86px);
  align-items: end;
  padding: 42px 0 84px;
  border-bottom: 1px solid var(--line);
}

.profile-hero > *,
.profile-panels > *,
.resume-sections > *,
.resume-section > *,
.resume-entry > *,
.team-directory-heading > *,
.team-card > * {
  min-width: 0;
}

.profile-portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}

.profile-portrait-placeholder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 47%, color-mix(in oklch, var(--surface) 68%, var(--paper)) 0 18%, transparent 19%),
    repeating-radial-gradient(circle at 50% 47%, color-mix(in oklch, var(--stone) 26%, transparent) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, var(--surface), var(--paper));
}

.profile-copy {
  max-width: 760px;
}

.profile-copy h1 {
  margin-bottom: 24px;
}

.profile-copy p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.profile-socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  background: color-mix(in oklch, var(--ink) 92%, var(--paper));
  color: color-mix(in oklch, var(--paper) 72%, var(--stone));
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-socials a:hover {
  transform: translateY(-1px);
  background: var(--ink);
  color: var(--paper);
}

.profile-socials a:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 4px;
}

.profile-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  margin-top: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 72%, var(--paper));
}

.profile-tabs button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 9px 15px;
}

.profile-tabs button:hover:not([aria-selected="true"]) {
  background: color-mix(in oklch, var(--ink) 8%, transparent);
}

.profile-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

.subpage-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  padding-bottom: 4px;
}

.subpage-link {
  margin-top: 26px;
}

.profile-panels {
  margin-top: 72px;
}

.profile-panel[hidden] {
  display: none;
}

.profile-panel.is-active {
  animation: profile-panel-in 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes profile-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resume-sections {
  display: grid;
  gap: 72px;
  margin-top: 72px;
}

.profile-panel.resume-sections {
  margin-top: 0;
}

.resume-section {
  display: grid;
  grid-template-columns: 0.38fr minmax(0, 1fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: start;
}

.resume-section-heading {
  position: sticky;
  top: 92px;
}

.resume-block-list {
  border-top: 1px solid var(--ink);
}

.resume-entry {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 26px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.resume-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in oklch, var(--paper) 78%, white);
  box-shadow: 0 1px 0 color-mix(in oklch, var(--ink) 8%, transparent);
}

.resume-logo img {
  width: 76%;
  height: 76%;
  display: block;
  object-fit: contain;
}

.resume-entry-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.resume-entry h3 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 650;
  line-height: 1.22;
}

.resume-entry-top p,
.resume-entry-top span {
  margin: 8px 0 0;
  color: var(--stone);
  font-size: 0.86rem;
  font-weight: 650;
}

.resume-entry-top span {
  margin-top: 2px;
  text-align: right;
}

.resume-entry-body > p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.resume-entry ul {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.resume-entry li {
  line-height: 1.6;
}

.resume-block-list-compact .resume-entry {
  padding: 28px 0;
}

.profile-portfolio-body {
  min-width: 0;
}

.profile-ledger {
  border-top: 1px solid var(--ink);
  border-bottom: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.profile-block {
  min-height: 290px;
  padding: 34px;
  background: var(--paper);
}

.profile-lead {
  grid-column: auto;
}

.profile-wide {
  grid-column: span 2;
  min-height: 210px;
}

.profile-block ul {
  margin: 0;
  padding-left: 18px;
}

.profile-block li + li {
  margin-top: 12px;
}

.auth-gate-shell {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--paper) 18%, transparent), color-mix(in oklch, var(--paper) 28%, transparent)),
    url("assets/apex-sand-field-charcoal.jpg");
  background-position: center;
  background-size: cover;
}

.auth-gate-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    color-mix(in oklch, var(--paper) 22%, transparent),
    color-mix(in oklch, var(--paper) 4%, transparent) 48%,
    color-mix(in oklch, var(--paper) 14%, transparent)
  );
  pointer-events: none;
}

.auth-topbar {
  background: color-mix(in oklch, var(--paper) 90%, transparent);
}

.auth-gate {
  width: min(440px, calc(100% - 48px));
  margin: auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(58px, 8vh, 96px) 0;
}

.auth-gate-field {
  display: none;
}

.auth-gate-hero {
  min-width: 0;
  display: grid;
  gap: clamp(36px, 5vw, 62px);
  padding: 28px 0;
}

.auth-gate-copy {
  max-width: 680px;
}

.auth-gate-copy h1 {
  max-width: 660px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.2vw, 4.2rem);
  font-weight: 400;
  line-height: 1.06;
}

.auth-gate-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.auth-gate-ledger {
  width: min(100%, 620px);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.auth-gate-ledger div {
  min-width: 0;
  padding: 18px 18px 18px 0;
}

.auth-gate-ledger div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.auth-gate-ledger dt {
  margin: 0 0 7px;
  color: var(--stone);
  font-size: 0.74rem;
  font-weight: 650;
  text-transform: uppercase;
}

.auth-gate-ledger dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 620;
}

.auth-gate-panel {
  min-width: 0;
  width: 100%;
  padding: 30px;
  border: 1px solid color-mix(in oklch, var(--line) 92%, var(--stone));
  background: color-mix(in oklch, var(--paper) 91%, var(--surface));
  box-shadow: 0 24px 80px color-mix(in oklch, var(--ink) 10%, transparent);
}

.auth-mode-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.auth-mode-header h1,
.auth-mode-header h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}

.auth-mode-panel {
  padding-top: 24px;
}

.auth-gate-panel .auth-button {
  width: 100%;
}

.auth-gate-panel .auth-switch {
  text-align: center;
}

.auth-page {
  display: grid;
  align-items: center;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 430px);
  gap: clamp(48px, 7vw, 92px);
  align-items: start;
  padding: 42px 0 88px;
  border-bottom: 1px solid var(--line);
}

.auth-copy {
  max-width: 760px;
}

.auth-copy h1 {
  max-width: 760px;
}

.auth-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--line) 52%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in oklch, var(--line) 42%, transparent) 1px, transparent 1px),
    color-mix(in oklch, var(--surface) 70%, var(--paper));
  background-size: 36px 36px;
}

.auth-form-plain {
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-form-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.auth-form h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
}

.auth-form-heading p,
.auth-switch,
.auth-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--stone);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
}

.auth-form input:disabled,
.auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.turnstile-slot:empty {
  display: none;
}

.turnstile-slot {
  min-height: 65px;
}

.auth-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: fit-content;
  min-width: 142px;
  border: 1px solid color-mix(in oklch, var(--ink) 88%, var(--stone));
  border-radius: 0;
  background: color-mix(in oklch, var(--ink) 94%, var(--stone));
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 11px 18px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.auth-button:hover {
  transform: translateY(-1px);
  background: var(--ink);
}

.auth-button-secondary {
  margin-top: 12px;
  background: transparent;
  color: var(--ink);
}

.auth-button-secondary:hover {
  background: color-mix(in oklch, var(--ink) 8%, transparent);
}

.auth-message:empty {
  display: none;
}

.auth-message[data-tone="success"] {
  color: oklch(0.39 0.045 154);
}

.auth-message[data-tone="error"] {
  color: oklch(0.42 0.07 28);
}

.auth-switch a {
  color: var(--ink);
  font-weight: 650;
  border-bottom: 1px solid var(--ink);
}

.auth-preview-link {
  color: var(--ink);
  font-weight: 650;
  border-bottom: 1px solid var(--ink);
}

.lab-page .page-intro {
  display: grid;
  gap: 0;
}

.lab-ledger {
  border-top: 1px solid var(--ink);
}

.lab-ledger article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.lab-ledger span {
  color: var(--stone);
  font-size: 0.82rem;
  font-weight: 650;
}

.lab-ledger h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
}

.lab-ledger p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page.admin-page {
  display: grid;
  align-content: start;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 76px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--ink);
}

.admin-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1.1;
}

.admin-message {
  justify-self: end;
  max-width: 420px;
  text-align: right;
}

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

.admin-summary div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 20px;
  background: color-mix(in oklch, var(--surface) 78%, var(--paper));
}

.admin-summary span {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
}

.admin-summary strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-console {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 78%, var(--paper));
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-toolbar button,
.admin-action {
  appearance: none;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  padding: 8px 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-toolbar button:hover,
.admin-action:hover {
  border-color: color-mix(in oklch, var(--ink) 50%, var(--line));
  color: var(--ink);
}

.admin-toolbar button[data-state="active"],
.admin-action-primary {
  border-color: color-mix(in oklch, var(--ink) 88%, var(--stone));
  background: color-mix(in oklch, var(--ink) 94%, var(--stone));
  color: var(--paper);
}

.admin-action-primary:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.admin-toolbar button:disabled,
.admin-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-users {
  display: grid;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(180px, auto);
  gap: 18px;
  align-items: center;
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-user-identity strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
}

.admin-user-identity span {
  color: var(--quiet);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-status {
  justify-self: start;
  min-width: 84px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 8px;
  text-align: center;
  text-transform: uppercase;
}

.admin-status[data-status="active"] {
  border-color: color-mix(in oklch, oklch(0.39 0.045 154) 32%, var(--line));
  color: oklch(0.39 0.045 154);
}

.admin-status[data-status="blocked"] {
  border-color: color-mix(in oklch, oklch(0.42 0.07 28) 32%, var(--line));
  color: oklch(0.42 0.07 28);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-empty {
  margin: 0;
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 64px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes apex-rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .campaign-label,
  .campaign-hero h1,
  .software-stack-copy,
  .software-stack-system,
  .workflow-copy,
  .workflow-diagram,
  .anatomy-copy,
  .anatomy-ledger,
  .team-directory-heading,
  .team-card,
  .profile-portrait,
  .profile-copy,
  .profile-panels {
    opacity: 0;
    animation: apex-rise 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
  }

  .campaign-hero h1 {
    animation-delay: 80ms;
  }

  .software-stack-copy {
    animation-delay: 120ms;
  }

  .software-stack-system {
    animation-delay: 220ms;
  }

  .workflow-copy {
    animation-delay: 160ms;
  }

  .workflow-diagram {
    animation-delay: 260ms;
  }

  .anatomy-copy {
    animation-delay: 120ms;
  }

  .anatomy-ledger {
    animation-delay: 220ms;
  }

  .team-card,
  .profile-copy {
    animation-delay: 120ms;
  }

  .profile-portrait,
  .profile-panels {
    animation-delay: 220ms;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 20px 24px;
    position: static;
  }

  .home-body .topbar {
    position: absolute;
  }

  nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-wordmark span {
    font-size: 0.98rem;
    letter-spacing: 0.15em;
  }

  .brand-wordmark small {
    font-size: 0.48rem;
    letter-spacing: 0.28em;
  }

  .campaign-hero {
    min-height: 720px;
  }

  .campaign-visual {
    background-position: 74% 54%;
  }

  .campaign-visual::before {
    background:
      linear-gradient(180deg, color-mix(in oklch, var(--paper) 68%, transparent) 0 20%, transparent 45%, color-mix(in oklch, var(--paper) 62%, transparent)),
      linear-gradient(90deg, color-mix(in oklch, var(--paper) 86%, transparent) 0 58%, color-mix(in oklch, var(--paper) 28%, transparent) 82%, transparent);
  }

  .campaign-inner {
    width: auto;
    margin: 0 24px;
    padding: 150px 0 72px;
  }

  .campaign-label {
    margin-bottom: 20px;
  }

  .campaign-hero h1 {
    margin-inline: 0;
    font-size: 1.94rem;
    line-height: 1.1;
  }

  .software-stack,
  .agentic-workflow,
  .agentic-anatomy,
  .guardrail-cycle,
  .work-lanes {
    width: auto;
    margin: 0 24px;
    grid-template-columns: 1fr;
  }

  .software-stack {
    gap: 36px;
    padding: 58px 0;
  }

  .software-stack-copy h2 {
    font-size: 1.9rem;
  }

  .software-stack-copy p:not(.section-kicker) {
    margin-top: 22px;
  }

  .cone-tier {
    width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
    clip-path: none;
  }

  .cone-tier p {
    font-size: 0.92rem;
  }

  .software-fundamentals {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
  }

  .software-fundamentals ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 10px;
  }

  .software-fundamentals li:nth-child(2n) {
    border-right: 0;
  }

  .software-fundamentals li {
    border-bottom: 1px solid var(--line);
  }

  .software-fundamentals li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .code-foundation {
    padding: 18px 20px;
  }

  .maintainer-note {
    margin-top: 18px;
  }

  .agentic-workflow {
    gap: 38px;
    padding: 58px 0;
  }

  .workflow-copy h2 {
    font-size: 1.9rem;
  }

  .workflow-copy p:not(.section-kicker) {
    margin-top: 22px;
  }

  .workflow-route {
    --label-space: 28px;
    --ring-size: clamp(88px, 27vw, 104px);
    --route-pad-top: 18px;
    padding-bottom: 20px;
  }

  .workflow-node {
    gap: 14px;
  }

  .node-label {
    font-size: 0.76rem;
  }

  .workflow-principles {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 20px;
  }

  .workflow-principles li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-principles p {
    font-size: 0.94rem;
  }

  .agentic-anatomy {
    gap: 34px;
    padding: 58px 0;
  }

  .anatomy-copy h2 {
    font-size: 1.9rem;
  }

  .anatomy-copy p:not(.section-kicker) {
    margin-top: 22px;
  }

  .anatomy-ledger article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .guardrail-cycle {
    gap: 36px;
    padding: 58px 0;
  }

  .guardrail-copy h2 {
    font-size: 1.9rem;
  }

  .guardrail-copy p:not(.section-kicker) {
    margin-top: 22px;
  }

  .guardrail-loop {
    width: min(100%, 420px);
  }

  .cycle-label {
    font-size: 22px;
    stroke-width: 6px;
  }

  .guardrail-tag {
    font-size: 12px;
    stroke-width: 6px;
  }

  .guardrail-core-label {
    font-size: 16px;
  }

  .guardrail-core-sub {
    font-size: 11px;
  }

  .work-lanes {
    gap: 34px;
    padding: 58px 0;
  }

  .work-lanes-heading h2 {
    font-size: 1.9rem;
  }

  .work-lane-list article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }

  .page {
    width: auto;
    max-width: 360px;
    margin: 0 24px;
    padding: 52px 0 72px;
  }

  .page.admin-page {
    padding: 28px 0 56px;
  }

  .hero-section,
  .thesis-strip,
  .index-section,
  .ledger-row,
  .daily-briefing,
  .recent-publications,
  .team-directory-heading,
  .profile-hero,
  .resume-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 42px;
    padding: 18px 0 58px;
  }

  h1 {
    font-size: 2.15rem;
    line-height: 1.06;
    max-width: 100%;
    word-break: normal;
  }

  .hero-copy,
  .lede,
  .page-intro p {
    width: 100%;
    max-width: 100%;
  }

  .memo-panel {
    width: 100%;
    padding: 22px;
    overflow: hidden;
  }

  .thesis-strip h2 {
    font-size: 1.65rem;
  }

  .structured-list,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .daily-briefing {
    gap: 20px;
    padding-top: 50px;
  }

  .daily-briefing h2 {
    font-size: 1.85rem;
  }

  .recent-publications {
    gap: 30px;
    padding-top: 46px;
  }

  .recent-publications-heading h2 {
    font-size: 1.85rem;
  }

  .team-directory {
    padding-top: 50px;
  }

  .team-directory-heading {
    gap: 18px;
  }

  .team-directory-heading h2 {
    font-size: 1.85rem;
  }

  .team-card-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .member-card-body {
    padding: 22px;
  }

  .profile-hero {
    gap: 28px;
    padding: 16px 0 56px;
  }

  .profile-portrait {
    max-width: 320px;
  }

  .profile-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .profile-panels {
    margin-top: 44px;
  }

  .resume-sections {
    gap: 52px;
  }

  .resume-section {
    gap: 22px;
  }

  .resume-section-heading {
    position: static;
  }

  .resume-entry {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }

  .resume-logo {
    width: 52px;
    height: 52px;
  }

  .resume-entry-top {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .resume-entry-top span {
    margin-top: 0;
    text-align: left;
  }

  .publication-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .publication-list strong {
    justify-self: start;
  }

  .structured-list article {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .structured-list article:last-child {
    border-bottom: 0;
  }

  .page-intro {
    padding: 16px 0 56px;
  }

  .ledger-row {
    gap: 18px;
  }

  .row-meta {
    gap: 14px;
  }

  .profile-lead,
  .profile-wide {
    grid-column: auto;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 16px 0 56px;
  }

  .auth-gate-shell::before {
    inset: 0;
    height: auto;
    opacity: 1;
  }

  .auth-gate {
    width: min(420px, calc(100% - 40px));
    margin: auto;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: clamp(38px, 8vh, 64px) 0 48px;
  }

  .auth-gate-field {
    display: none;
  }

  .auth-gate-hero {
    gap: 0;
    padding: 0;
  }

  .auth-gate-copy h1 {
    font-size: 2.12rem;
    line-height: 1.08;
  }

  .auth-gate-copy p:not(.eyebrow) {
    margin-top: 20px;
  }

  .auth-gate-ledger {
    display: none;
  }

  .auth-gate-panel {
    padding: 24px;
  }

  .auth-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .auth-form {
    padding: 22px;
  }

  .auth-button {
    width: 100%;
  }

  .admin-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 16px;
  }

  .admin-hero h1 {
    font-size: 1.85rem;
  }

  .admin-message {
    justify-self: start;
    text-align: left;
  }

  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-summary div {
    min-height: 88px;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 14px;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-action {
    flex: 1 1 130px;
  }

  .lab-ledger article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .profile-block {
    min-height: auto;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
    padding: 22px 24px;
  }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .topbar {
    padding: 0 40px;
  }

  .campaign-hero {
    min-height: 660px;
  }

  .campaign-visual {
    background-position: 68% 52%;
  }

  .campaign-inner {
    width: min(var(--max-width), calc(100% - 80px));
    padding: 132px 0 76px;
  }

  .software-stack,
  .agentic-workflow,
  .agentic-anatomy,
  .guardrail-cycle,
  .work-lanes {
    grid-template-columns: 1fr;
  }

  .cone-tier-4 {
    --tier-width: 78%;
  }

  .work-lane-list article {
    grid-template-columns: 52px minmax(170px, 0.5fr) minmax(0, 1fr);
  }

  .page {
    width: calc(100% - 80px);
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-section,
  .daily-briefing,
  .recent-publications,
  .team-directory-heading,
  .profile-hero,
  .resume-section,
  .auth-panel {
    grid-template-columns: 1fr;
  }

  .memo-panel {
    max-width: 560px;
  }

  .structured-list {
    grid-template-columns: 1fr;
  }

  .structured-list article {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .structured-list article:last-child {
    border-bottom: 0;
  }

  .ledger-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .row-meta {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-portrait {
    max-width: 460px;
  }

  .resume-section {
    gap: 28px;
  }

  .auth-panel {
    gap: 42px;
  }

  .auth-gate {
    width: min(440px, calc(100% - 80px));
    margin: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .auth-gate-copy h1 {
    font-size: 3.1rem;
  }

  .auth-gate-ledger {
    grid-template-columns: 1fr;
  }

  .auth-gate-ledger div {
    padding: 15px 0;
  }

  .auth-gate-ledger div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .resume-section-heading {
    position: static;
  }

  .profile-lead,
  .profile-wide {
    grid-column: span 2;
  }
}
