:root {
  --paper: #f5f1e8;
  --paper-deep: #ebe4d7;
  --ink: #142927;
  --muted: #526460;
  --line: #cec8ba;
  --white: #fffdf8;
  --blue: #86aeb4;
  --green: #809d7d;
  --amber: #c48f52;
  --rose: #b67e79;
  --radius: 24px;
  --shadow: 0 16px 50px rgba(25, 42, 38, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 8%, rgba(134, 174, 180, 0.16), transparent 24rem),
    radial-gradient(circle at 94% 30%, rgba(196, 143, 82, 0.10), transparent 25rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 41, 39, 0.18);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-block;
}
.brand-mark span { position: absolute; display: block; border-radius: 50%; }
.brand-mark span:nth-child(1) { width: 25px; height: 25px; left: 0; top: 1px; background: var(--blue); }
.brand-mark span:nth-child(2) { width: 20px; height: 20px; right: 0; bottom: 0; background: var(--amber); mix-blend-mode: multiply; }
.brand-mark span:nth-child(3) { width: 9px; height: 9px; left: 4px; bottom: 2px; background: var(--green); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .labs-link { padding: 7px 12px; border: 1px solid rgba(20, 41, 39, 0.24); border-radius: 999px; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 76px;
  align-items: center;
  padding: 72px 0 84px;
}
.eyebrow, .section-label {
  margin: 0 0 17px;
  color: #35635f;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6.4vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}
h2 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
h3 { letter-spacing: -0.02em; }
.hero-lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
}
.button-primary { background: var(--ink); color: white; }
.button-primary:hover, .button-primary:focus-visible { background: #24433f; }
.text-link {
  gap: 6px;
  display: inline-block;
  padding-block: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}
.hero-art {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 41, 39, 0.18);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.48);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(20, 41, 39, 0.16);
  border-radius: 50%;
}
.hero-art p {
  position: absolute;
  right: 10%;
  bottom: 16%;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-style: italic;
  line-height: 1.35;
}
.orbit { position: absolute; border: 1px dashed rgba(20, 41, 39, 0.2); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { inset: 26% 8%; }
.orbit-two { inset: 7% 30%; transform: rotate(22deg); }
.node { position: absolute; z-index: 2; display: block; border: 5px solid var(--paper); border-radius: 50%; box-shadow: 0 6px 20px rgba(20, 41, 39, 0.12); }
.node-center { width: 60px; height: 60px; left: 42%; top: 40%; background: var(--ink); }
.node-a { width: 34px; height: 34px; left: 18%; top: 21%; background: var(--blue); }
.node-b { width: 42px; height: 42px; right: 16%; top: 23%; background: var(--amber); }
.node-c { width: 30px; height: 30px; left: 18%; bottom: 24%; background: var(--rose); }
.node-d { width: 38px; height: 38px; right: 21%; bottom: 29%; background: var(--green); }
.thread { position: absolute; z-index: 1; height: 1px; left: 26%; top: 43%; transform-origin: left center; background: rgba(20, 41, 39, 0.42); }
.thread-a { width: 27%; transform: rotate(31deg); }
.thread-b { width: 38%; transform: rotate(-23deg); }
.thread-c { width: 31%; transform: rotate(142deg); }
.thread-d { width: 28%; transform: rotate(74deg); }

.section { padding: 108px 0; border-top: 1px solid rgba(20, 41, 39, 0.18); }
.intro { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 80px; }
.intro h2 { max-width: 530px; }
.intro-copy { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.intro-copy p:last-child { margin-bottom: 0; color: var(--ink); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
}
.section-heading > div { max-width: 710px; }
.section-heading > p { max-width: 430px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project-card {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(20, 41, 39, 0.17);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.62);
  box-shadow: var(--shadow);
}
.project-card::before { content: ""; width: 42px; height: 6px; margin-bottom: 36px; border-radius: 999px; background: currentColor; }
.project-blue { color: #406f77; }
.project-green { color: #537651; }
.project-amber { color: #9b642d; }
.project-rose { color: #8c5753; }
.project-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.project-index { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; font-weight: 800; }
.status { padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.project-card h3 { margin-bottom: 13px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.project-card p { max-width: 550px; margin-bottom: 28px; color: var(--muted); }
.project-theme { margin-top: auto; color: var(--ink); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.project-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.project-link:hover { background: var(--ink); color: var(--white); }

.agent-section { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 80px; }
.agent-copy p:not(.section-label) { max-width: 530px; color: var(--muted); font-size: 1.05rem; }
.agent-copy strong { color: var(--ink); }
.agent-copy .concept-caveat { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-style: italic; }
.concept-list { margin: 0; padding: 0; list-style: none; }
.concept-list li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(20, 41, 39, 0.18); }
.concept-list li:first-child { border-top: 1px solid rgba(20, 41, 39, 0.18); }
.concept-list span { color: #35635f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; font-weight: 800; }
.concept-list p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.25; }
.learning { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.learning-note > p:last-child { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.boundary-note { padding: 30px; border-radius: var(--radius); background: var(--ink); color: #eef0e9; }
.boundary-note p { color: #c9d1cc; }
.boundary-note .note-title { color: white; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 14px 0 70px;
  padding: 64px;
  border-radius: 32px;
  background: #2b504b;
  color: white;
}
.contact-panel .section-label { color: #bdd4d0; }
.contact-panel h2 { max-width: 700px; margin: 0; }
.button-light { flex: 0 0 auto; background: var(--paper); color: var(--ink); }
.labs-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 14px 0 18px;
  padding: 54px 64px;
  border: 1px solid rgba(20, 41, 39, 0.18);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.58);
}
.labs-panel h2 { margin-bottom: 14px; }
.labs-panel p:not(.section-label) { max-width: 660px; margin-bottom: 0; color: var(--muted); }
.labs-panel .button-light { border: 1px solid rgba(20, 41, 39, 0.22); }
.site-footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(20, 41, 39, 0.18);
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.site-footer a { justify-self: end; }
.footer-legal { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; }
.footer-legal button { font: inherit; border: 0; padding: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; }

.inner-page { max-width: 1030px; margin: 0 auto; }
.page-hero { padding: 120px 0 110px; }
.page-hero h1 { max-width: 950px; font-size: clamp(3.1rem, 6.6vw, 6.2rem); }
.page-lede { max-width: 760px; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.38rem); }
.story-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 80px; }
.story-grid h2 { font-size: clamp(2rem, 3vw, 3rem); }
.prose { color: var(--muted); font-size: 1.12rem; }
.prose p { margin-bottom: 24px; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-grid article { min-height: 230px; padding: 28px; border: 1px solid rgba(20, 41, 39, 0.17); border-radius: 20px; background: rgba(255, 253, 248, 0.56); }
.value-grid span, .principle-number { color: #35635f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem; font-weight: 800; }
.value-grid h3 { margin: 42px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; }
.value-grid p { margin: 0; color: var(--muted); }
.plain-note { max-width: 850px; }
.plain-note > p:not(.section-label) { max-width: 780px; margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; }
.principle-list article { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid rgba(20, 41, 39, 0.18); }
.principle-list article:last-child { border-bottom: 1px solid rgba(20, 41, 39, 0.18); }
.principle-list h3 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; font-weight: 500; }
.principle-list p { max-width: 690px; margin: 0; color: var(--muted); }

:focus-visible { outline: 3px solid #bb6d34; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .site-shell { width: min(calc(100% - 40px), 760px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 32px; padding: 56px 0 64px; }
  .hero-copy { order: 1; }
  .hero-art { order: 2; width: min(320px, 100%); margin: 0 auto; }
  .intro, .agent-section, .learning, .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .section { padding: 64px 0; }
  .contact-panel, .labs-panel { align-items: flex-start; flex-direction: column; padding: 32px; }
  .page-hero { padding: 64px 0 56px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 0; flex-wrap: wrap; gap: 8px; padding: 16px 0 10px; }
  .brand { min-height: 36px; gap: 10px; font-size: 0.95rem; }
  .brand-mark { flex-shrink: 0; }
  .nav-links { width: 100%; gap: 8px; justify-content: space-between; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 0.875rem; }
  .nav-links a:first-child { display: inline-flex; }
  .nav-links .labs-link { min-height: 40px; padding: 7px 12px; }
  h1 { margin-bottom: 20px; font-size: clamp(2.375rem, 10.5vw, 3rem); line-height: 1.08; letter-spacing: -0.045em; }
  h2 { margin-bottom: 16px; font-size: clamp(1.875rem, 8vw, 2.25rem); line-height: 1.12; }
  .eyebrow, .section-label { margin-bottom: 12px; letter-spacing: 0.12em; }
  .hero { padding: 36px 0 44px; gap: 0; }
  .hero-art { display: none; }
  .hero-lede { margin-bottom: 24px; font-size: 1rem; line-height: 1.65; }
  .hero-actions { display: grid; gap: 10px; justify-items: start; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; text-decoration: underline; text-underline-offset: 4px; }
  .section { padding: 44px 0; scroll-margin-top: 16px; }
  .intro, .agent-section, .learning, .story-grid { gap: 20px; }
  .intro-copy, .learning-note > p:last-child, .agent-copy p:not(.section-label), .prose, .plain-note > p:not(.section-label) { font-size: 1rem; }
  .section-heading { margin-bottom: 24px; }
  .section-heading > p { margin-top: 12px; margin-bottom: 0; }
  .project-grid, .value-grid { grid-template-columns: 1fr; }
  .project-grid { gap: 16px; }
  .project-card { min-height: 0; padding: 20px; border-radius: 18px; border-top: 3px solid currentColor; }
  .project-card::before { display: none; }
  .project-topline { gap: 12px; margin-bottom: 18px; }
  .project-card h3 { margin-bottom: 10px; font-size: 1.625rem; }
  .project-card p { margin-bottom: 20px; }
  .project-theme { margin-top: 0; }
  .project-link { margin-top: 14px; }
  .concept-list li { grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; }
  .concept-list p { font-size: 1.2rem; line-height: 1.4; }
  .boundary-note { padding: 22px; border-radius: 18px; }
  .boundary-note p:last-child { margin-bottom: 0; }
  .contact-panel, .labs-panel { gap: 20px; padding: 24px; border-radius: 20px; }
  .contact-panel { margin-top: 16px; margin-bottom: 32px; }
  .contact-panel .button, .labs-panel .button { align-self: stretch; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .site-footer p:nth-child(2) { text-align: left; }
  .site-footer a { justify-self: start; }
  .footer-legal { justify-content: flex-start; gap: 16px; padding: 8px 0 0; }
  .footer-legal a, .footer-legal button { display: inline-flex; align-items: center; min-height: 44px; }
  .page-hero { padding: 40px 0 36px; }
  .page-hero h1 { font-size: clamp(2.25rem, 9.5vw, 2.75rem); line-height: 1.08; }
  .page-lede { margin-bottom: 0; font-size: 1.0625rem; }
  .story-grid h2 { font-size: 1.875rem; }
  .value-grid article { min-height: 0; padding: 20px; }
  .value-grid h3 { margin-top: 20px; }
  .principle-list article { grid-template-columns: 26px 1fr; gap: 14px; padding: 24px 0; }
  .principle-list h3 { font-size: 1.375rem; }
}
