/* ==========================================================================
   Neebora website — stylesheet
   Palette derived from the Neebora logo (#16332B forest green)
   ========================================================================== */

:root {
  --ink: #16332b;
  --ink-deep: #0d211b;
  --forest: #24594a;
  --sage: #7fa593;
  --sage-tint: #d5e5dc;
  --mist: #edf3ef;
  --paper: #fafcfa;
  --white: #ffffff;
  --line: #d5e1da;
  --amber: #c98a1b;
  --amber-tint: #fbefd3;
  --mint: #6fd0a8;
  --text: #33493f;
  --muted: #586d64;

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.18; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--mint); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 0.97rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--forest); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--sage-tint); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sage-tint); color: var(--ink); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 252, 250, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--sage); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: 0.5em; }
.hero .lead { font-size: 1.2rem; max-width: 34em; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.status-note { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--muted); max-width: 32em; margin: 0; }
.status-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); margin-top: 0.55em; }

.hero-visual { position: relative; padding: 28px 0; }
.orbit-ring {
  position: absolute; width: 118%; aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border: 1.5px solid rgba(127, 165, 147, 0.65); border-radius: 50%; z-index: 0;
  pointer-events: none;
}
.orbit-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.orbit-dot.a { left: 95.5%; top: 28.5%; }
.orbit-dot.b { left: 4.5%; top: 71.5%; }

/* ---------- Portal preview (hero mockup) ---------- */
.portal {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 34px 60px -34px rgba(22, 51, 43, 0.4);
}
.portal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--mist); border-bottom: 1px solid var(--line);
}
.portal-brand { display: flex; align-items: center; gap: 10px; font: 600 0.9rem var(--font-head); color: var(--ink); }
.portal-brand img { width: 22px; height: 22px; }
.portal-org { font-size: 0.82rem; color: var(--muted); }
.portal-body { display: grid; grid-template-columns: 206px minmax(0, 1fr); min-height: 440px; }
.portal-side { border-right: 1px solid var(--line); padding: 14px 10px; background: #fff; }
.side-title { font: 600 0.78rem var(--font-body); color: var(--muted); padding: 2px 10px 10px; }
.proj-tabs { display: flex; flex-direction: column; gap: 4px; }
.proj-tab {
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; font-family: var(--font-body); color: var(--text);
  transition: background 0.15s ease;
}
.proj-tab:hover { background: var(--mist); }
.proj-tab[aria-selected="true"] { background: var(--mist); box-shadow: inset 3px 0 0 var(--ink); }
.proj-tab strong { display: block; font: 600 0.9rem/1.3 var(--font-head); color: var(--ink); letter-spacing: -0.01em; }
.proj-tab span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.portal-main { padding: 20px 22px 22px; min-width: 0; }
.portal-pane[hidden] { display: none; }
.portal-pane { animation: paneIn 0.2s ease; }
@keyframes paneIn { from { opacity: 0; } to { opacity: 1; } }
.pane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 14px; }
.pane-head h3 { margin: 0; font-size: 1.05rem; }
.number-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--ink);
  background: var(--sage-tint); padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.number-chip svg { width: 13px; height: 13px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.stat b { display: block; font: 600 1.15rem/1.2 var(--font-head); color: var(--ink); }
.stat span { font-size: 0.74rem; color: var(--muted); }
.rsvp-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); margin-bottom: 18px; }
.rsvp-bar i { display: block; height: 100%; }
.rsvp-bar .att { background: var(--ink); }
.rsvp-bar .pen { background: var(--amber); }
.rsvp-bar .dec { background: #a9bdb3; }
.thread { display: flex; flex-direction: column; gap: 9px; }
.thread-label { font-size: 0.76rem; color: var(--muted); margin: 0 0 2px; }
.bubble { max-width: 88%; padding: 9px 13px; font-size: 0.86rem; line-height: 1.45; border-radius: 14px; margin: 0; }
.bubble.out { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble.in { background: var(--mist); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble small { display: block; font-size: 0.72rem; opacity: 0.7; margin-bottom: 2px; }
.rsvp-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem;
  color: var(--ink); border: 1px solid var(--sage); border-radius: 99px; padding: 3px 10px; margin: 0;
}
.rsvp-tag svg { width: 12px; height: 12px; }
.preview-caption { position: relative; z-index: 1; font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-tint { background: var(--mist); }
.section-dark { background: var(--ink); color: #d6e6dd; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.section-head p { font-size: 1.1rem; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { flex: none; width: 26px; height: 26px; color: var(--forest); }

/* Problem list */
.issue-list { list-style: none; display: grid; gap: 0; }
.issue-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.issue-list li:last-child { border-bottom: 1px solid var(--line); }
.issue-list h3 { margin-bottom: 0.3em; }
.issue-list p { margin: 0; color: var(--text); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 68px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font: 600 1.05rem var(--font-head);
}
.step::after { content: ""; position: absolute; top: 22px; left: 58px; right: -18px; height: 2px; background: var(--sage-tint); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 0.4em; }
.step p { margin: 0; font-size: 0.98rem; }

/* Workspace diagram */
.org { margin-top: 8px; }
.org-root {
  max-width: 300px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: var(--r-md);
  padding: 14px 18px; text-align: center; position: relative;
}
.org-root b { display: block; font: 600 1rem var(--font-head); }
.org-root span { font-size: 0.84rem; opacity: 0.8; }
.org-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; padding-top: 34px; margin-top: 0; }
.org-projects::before { content: ""; position: absolute; top: 0; left: calc(50% - 0.75px); width: 1.5px; height: 17px; background: var(--sage); }
.org-projects::after { content: ""; position: absolute; top: 17px; left: calc(16.66% - 3px); right: calc(16.66% - 3px); height: 1.5px; background: var(--sage); }
.org-project { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.org-project::before { content: ""; position: absolute; top: -17px; left: calc(50% - 0.75px); width: 1.5px; height: 17px; background: var(--sage); }
.org-project::after { content: ""; position: absolute; top: -21px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.org-project h3 { font-size: 1rem; margin-bottom: 12px; }
.org-project dl { margin: 0; display: grid; gap: 8px; }
.org-project dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 8px; }
.org-project dt { color: var(--muted); }
.org-project dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* Capability list */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; list-style: none; }
.cap { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.cap-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-tint); color: var(--ink); display: grid; place-items: center; }
.cap-icon svg { width: 22px; height: 22px; }
.cap h3 { margin-bottom: 0.3em; }
.cap p { margin: 0; }
.fine-print { font-size: 0.92rem; color: var(--muted); margin-top: 28px; max-width: 46rem; }

/* Principles (responsible messaging) */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; }
.principle { padding: 4px 32px 4px 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle h3 { margin-bottom: 0.4em; }
.principle p { margin: 0; font-size: 0.98rem; }

/* Early access */
.ea-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.ea-grid > div:first-child { position: relative; }
.ea-copy p { color: #cfe0d6; font-size: 1.08rem; }
.ea-points { list-style: none; margin: 22px 0 0; display: grid; gap: 10px; }
.ea-points li { display: flex; gap: 10px; align-items: flex-start; color: #e6f0ea; }
.ea-points svg { flex: none; width: 20px; height: 20px; color: var(--mint); margin-top: 3px; }
.ea-panel { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 28px; }
.ea-panel h3 { color: var(--ink); }
.ea-panel iframe { width: 100%; min-height: 720px; border: 0; display: block; }
.ea-fallback p { font-size: 1rem; }
.ea-fallback .btn { margin-top: 6px; }
.field-list { list-style: none; margin: 0 0 20px; display: grid; gap: 6px; font-size: 0.95rem; color: var(--muted); }
.field-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); margin-right: 10px; vertical-align: middle; }

/* ---------- Inner pages ---------- */
.page-head { padding: 72px 0 56px; background: var(--mist); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.page-head .lead { font-size: 1.18rem; max-width: 40em; margin: 0; }
.page-head::after {
  content: ""; position: absolute; right: -120px; top: 50%; width: 420px; aspect-ratio: 1; transform: translateY(-50%);
  border: 1.5px solid rgba(127, 165, 147, 0.5); border-radius: 50%; pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }

.block { padding: 72px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block-tint { background: var(--mist); }
.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.two-col h2 { margin-bottom: 0.4em; }
.prose-block p:last-child { margin-bottom: 0; }
.callout { border-left: 3px solid var(--ink); background: var(--mist); padding: 16px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 22px 0; font-size: 0.98rem; }
.callout p { margin: 0; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--mist); font: 600 0.92rem var(--font-head); color: var(--ink); }
.compare thead th:last-child { background: var(--ink); color: #fff; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare tbody td:last-child { background: #f5faf7; color: var(--ink); }

/* Use-case cards */
.uc-list { display: grid; gap: 0; }
.uc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; padding: 56px 0; border-top: 1px solid var(--line); }
.uc:first-child { border-top: 0; padding-top: 0; }
.uc ul { list-style: none; display: grid; gap: 10px; }
.uc li { display: flex; gap: 12px; align-items: flex-start; }
.uc li svg { flex: none; width: 20px; height: 20px; color: var(--forest); margin-top: 4px; }
.uc h3 { font-size: 1.05rem; margin: 22px 0 10px; }
.uc h3:first-child { margin-top: 0; }

.timeline { list-style: none; border-left: 2px solid var(--sage-tint); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.timeline b { display: block; font: 600 1rem var(--font-head); color: var(--ink); letter-spacing: -0.01em; }
.timeline span { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 2px; }
.timeline p { margin: 0; }

/* Details list (about/contact) */
.details { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.details div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; }
.details dt { color: var(--muted); font-size: 0.94rem; }
.details dd { margin: 0; color: var(--ink); font-weight: 500; }
.details a { color: var(--ink); }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 44px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.contact-card .cap-icon { margin-bottom: 16px; }
.contact-card h2 { font-size: 1.2rem; margin-bottom: 0.35em; }
.contact-card p { margin: 0 0 6px; }
.contact-card a { font-weight: 600; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 72px; padding: 64px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.92rem; }
.toc p { font: 600 0.85rem var(--font-head); color: var(--ink); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--sage); }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; scroll-margin-top: 96px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose .meta { font-size: 0.95rem; color: var(--muted); margin-bottom: 2em; }

/* 404 */
.notfound { padding: 120px 0; text-align: left; }
.notfound h1 { max-width: 14ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #b9cec3; padding: 64px 0 28px; font-size: 0.96rem; }
.site-footer a { color: #dfece5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 26em; margin: 0 0 14px; }
.site-footer h4 { color: #fff; font: 600 0.95rem var(--font-head); margin-bottom: 14px; letter-spacing: -0.01em; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-contact { font-style: normal; line-height: 1.6; }
.footer-contact p { margin: 0 0 10px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 8px; font-size: 0.88rem; color: #9db5a9; }
.footer-legal p { margin: 0; max-width: 62em; }
.footer-legal .entity { color: #dfece5; font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { max-width: 18ch; }
  .split, .two-col, .uc, .ea-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
  .page-head::after { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 22px;
  }
  .js .nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .nav { flex-wrap: wrap; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle, .principle + .principle { padding: 22px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .org-projects { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .org-projects::before, .org-projects::after, .org-project::before, .org-project::after { display: none; }
  .org-root { margin-bottom: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 68px 0; }
  .block { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 32px 66px; min-height: 46px; }
  .step::after, .step:nth-child(2)::after { display: block; top: 50px; bottom: 4px; left: 22px; right: auto; width: 2px; height: auto; }
  .step:last-child::after { display: none; }
  .portal-body { grid-template-columns: minmax(0, 1fr); }
  .portal-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .proj-tabs { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .proj-tab { flex: none; width: 190px; }
  .proj-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--ink); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .orbit-ring { width: 124%; }
  .details div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .ea-panel { padding: 20px; }
  .compare th, .compare td { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portal-pane { animation: none; }
  .btn, .proj-tab { transition: none; }
}

.hero-grid > * { min-width: 0; }
