:root {
  --paper: #f8ecde;
  --paper-deep: #efe1cf;
  --surface: #fdf7ef;
  --ink: #1a1712;
  --muted: #6d6559;
  --line: #ddcfba;
  --accent: oklch(.52 .085 52);
  --accent-deep: oklch(.44 .085 52);
  --olive: oklch(.52 .055 128);
  --slate: oklch(.52 .045 250);
  --magenta: #c10967;
  --development: var(--slate);
  --wrap: 1360px;
  --prose: 680px;
  /* Three standard rhythms, used everywhere instead of ad-hoc paddings
     (Ivan, 2026-08-02: "create several standard spacings and use them everywhere"). */
  --sp-section: 88px;
  --sp-intro: 44px;
  --sp-block: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(26, 23, 18, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 23, 18, .03) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a {
  color: var(--accent-deep);
  text-decoration: none;
}
a:hover { color: var(--ink); }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 4.2vw, 4.4rem); max-width: 15ch; margin-bottom: 20px; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); max-width: 18ch; margin-bottom: 8px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
strong { font-weight: 700; }

.public-wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  width: min(var(--wrap), calc(100% - 64px));
  min-height: 96px;
  margin-inline: auto;
  margin-top: 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.34rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); opacity: .72; }
.brand img { width: 55px; height: 55px; border-radius: 50%; flex: none; }
.site-nav,
.site-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}
.site-nav { justify-self: end; }
.site-actions { justify-self: end; }
.site-nav a,
.site-actions a {
  color: var(--ink);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-actions a { color: var(--ink); }
.site-actions .github-link { color: var(--ink); }
.site-nav a:hover,
.site-actions a:hover { color: var(--ink); opacity: .62; }
.language-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.language-toggle:hover { opacity: .62; }

.hero {
  padding-block: 56px 64px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}
.hero-copy { min-width: 0; }
.hero-copy h1 {
  max-width: 20ch;
  font-size: clamp(3rem, 3.6vw, 3.9rem);
}
.hero-tagline {
  margin: 16px 0 20px;
  color: var(--ink);
  font-size: clamp(1.24rem, 1.7vw, 1.5rem);
  font-weight: 600;
}
.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.2vw, 1.16rem);
  line-height: 1.55;
  margin-bottom: 30px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 44px;
}
.hero-links a {
  font-size: 1.08rem;
  font-weight: 700;
}
.product-proof {
  width: 100%;
  max-width: 680px;
  min-width: 0;
  margin: 0;
  justify-self: end;
  /* Named container so constellation.css can size the hero diagram off its
     own rendered width (680–980px depending on breakpoint) instead of the
     viewport — the two aren't proportional once the hero grid collapses. */
  container-type: inline-size;
  container-name: consthero;
}
.product-proof figcaption {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .76rem;
}

/* Sections sit straight on the paper — no tinted bands, no dividers between
   them (Ivan, 2026-08-02). Only the tiles inside carry the light surface. */
.partner-section { background: rgba(253, 247, 239, .58); }
.system-section { padding-block: 24px var(--sp-section); }
.section-intro { max-width: var(--prose); margin-bottom: var(--sp-intro); }
.system-section .section-intro { max-width: 780px; }
.system-section .section-intro h2 { max-width: none; }
.section-intro p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 18px 0 0;
}
.system-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
}
.system-flow li {
  min-width: 0;
  padding: 0;
}
/* Landing variant: numbered tiles in a two-column hairline grid. */
.system-flow--tiles {
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.system-flow--tiles li {
  background: var(--surface);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 28px 26px 30px;
  transition: background .15s ease;
}
/* Hover feedback only where the tile actually leads somewhere: its title is the
   link, so a tile without one must stay flat (Ivan, 2026-08-04). */
.system-flow--tiles li:has(a):hover { background: rgba(26, 23, 18, .025); }
.flow-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.flow-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .82rem;
}
.system-flow--tiles li:has(a):hover .flow-num {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}
.flow-copy { min-width: 0; }
.flow-badge {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
/* .flow-number: still used by demo.html's simpler (icon-less) system-flow markup */
.flow-number {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: .8rem;
  font-weight: 500;
}
.system-flow h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 8px; max-width: 34ch; }
.system-flow p { color: var(--muted); font-size: .96rem; max-width: 56ch; margin-bottom: 0; }
.clinician-line {
  margin: 32px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}
.status-section,
.roadmap-section {
  padding-block: 0 var(--sp-section);
}
.status-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(52px, 7vw, 120px);
}
.status-columns article { min-width: 0; }
.status-columns article > p { color: var(--muted); max-width: 610px; }
.status-tag,
.roadmap-state {
  display: inline-block;
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--surface);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.status-working { background: var(--accent-deep); }
.status-development { background: var(--development); }
.status-columns ul {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.status-columns li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.status-columns li:last-child { border-bottom: 0; }
.safety-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 3px solid var(--accent);
  color: var(--ink) !important;
  font-weight: 700;
}

.invitations-section { padding-block: 24px var(--sp-section); }

/* Latest updates */
.updates-section { padding-block: 0 var(--sp-section); }
.updates-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-width: var(--prose);
}
.updates-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.updates-item:first-child { border-top: 0; padding-top: 0; }
.updates-date {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  white-space: nowrap;
}
.updates-item p { margin: 0; color: var(--ink); }

/* Roadmap — a plain, linear task tracker: three hairline columns of rows,
   each column scrolling inside a fixed height instead of pushing the page. */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 8px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.kanban-column {
  min-width: 0;
  min-height: 0;
  height: 500px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.kanban-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid var(--line);
}
.kanban-column h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.kanban-count {
  margin-left: auto;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.kanban-column--live .status-dot { background: var(--accent-deep); }
.kanban-column--prototyped .status-dot { background: var(--slate); }
.kanban-column--planned .status-dot { background: var(--muted); }
.kanban-subtitle {
  margin: 0;
  padding: 11px 16px 3px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}
.kanban-cards {
  list-style: none;
  margin: 0;
  padding: 6px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: auto;
  scrollbar-width: thin;
}
.kanban-cards li {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 10px;
  padding: 9px 9px 10px;
  border-radius: 8px;
  transition: background .12s ease;
}
.kanban-cards li:has(a):hover { background: rgba(26, 23, 18, .04); }
.task-glyph {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 3px;
  border: 1.5px solid var(--muted);
  opacity: .55;
}
.kanban-column--prototyped .task-glyph { border-color: var(--slate); border-radius: 50%; opacity: .8; }
.kanban-column--live .task-glyph { border-color: var(--accent-deep); background: var(--accent-deep); opacity: 1; }
.kanban-cards h4 {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
}
.kanban-cards p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }

/* Minimal UI fragments quoted inside a story, so the screen being described
   is shown rather than explained (Ivan, 2026-08-02). */
.ui-frame {
  break-inside: avoid;
  margin: 2px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3eee7;
  box-shadow: 0 8px 22px rgba(39, 32, 22, .06);
}
.ui-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: .94rem;
}
.ui-search-icon {
  width: 15px;
  height: 15px;
  border: 1.8px solid var(--muted);
  border-radius: 50%;
  position: relative;
  flex: none;
}
.ui-search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.8px;
  right: -5px;
  bottom: -2px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
}
.ui-typed { display: inline-flex; align-items: center; gap: 1px; }
.ui-caret {
  display: inline-block;
  width: 1px;
  height: 15px;
  background: var(--accent-deep);
}
.ui-hint {
  margin: 12px 2px 6px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ui-results {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.ui-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  background: var(--surface);
}
.ui-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4e9df;
  color: #445143;
  font-size: .64rem;
  font-weight: 700;
}
.ui-result-main,
.ui-result-slot,
.ui-group-head > span,
.ui-table-row > span,
.ui-request-head > span,
.ui-request-service {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ui-result strong,
.ui-group-head strong,
.ui-table-row strong,
.ui-request-head strong,
.ui-request-service strong { font-size: .8rem; line-height: 1.35; }
.ui-result small,
.ui-group-head small,
.ui-table-row small,
.ui-request-head small,
.ui-request-service span {
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.4;
}
.ui-result mark {
  border-radius: 3px;
  background: #f4d9a8;
  color: inherit;
  padding-inline: 1px;
}
.ui-result-slot { align-items: flex-end; text-align: right; }
.ui-result-slot strong {
  padding: 5px 8px;
  border: 1px solid #d8b9a3;
  border-radius: 999px;
  background: #fff8f3;
  color: var(--accent-deep);
  white-space: nowrap;
}
.ui-result-slot small { margin-top: 2px; color: var(--accent-deep); }
.ui-group-head,
.ui-panel-head,
.ui-request-head,
.ui-request-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ui-group-head {
  margin: -2px -2px 10px;
  padding: 2px 4px;
}
.ui-group-head > span:last-child,
.ui-panel-head span,
.ui-request-head time {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .64rem;
  white-space: nowrap;
}
.ui-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}
.ui-table-head,
.ui-table-row {
  display: grid;
  grid-template-columns: 54px 1.25fr 1fr .9fr;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
}
.ui-table-head {
  background: rgba(26, 23, 18, .035);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ui-table-row { font-size: .72rem; }
.ui-table-row { background: var(--surface); }
.ui-time { font-family: "IBM Plex Mono", monospace; font-size: .68rem; }
.ui-status {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: .62rem;
  white-space: nowrap;
}
.ui-status--done { background: #e0ecdf; color: #3c5b40; }
.ui-status--waiting { background: #f4e7c9; color: #765921; }
.ui-status--missed { background: #eee2df; color: #7e463d; }
.ui-panel-head { margin-bottom: 8px; }
.ui-panel-head strong { font-size: .78rem; }
.ui-rows {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ui-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  font-size: .87rem;
}
.ui-rows li:hover { background: rgba(26, 23, 18, .045); }
.ui-rows .ui-meta {
  margin-left: auto;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  white-space: nowrap;
}
.ui-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ui-dot--urgent { background: #c0392b; }
.ui-dot--soon { background: #d8a13a; }
.ui-dot--routine { background: var(--olive); }
.ui-dot--accent { background: var(--accent-deep); }
.ui-dot--slate { background: var(--slate); }
.ui-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--muted);
  flex: none;
  display: grid;
  place-items: center;
  color: var(--surface);
  font-size: .6rem;
}
.ui-check[data-on] { background: var(--accent-deep); border-color: var(--accent-deep); }
.ui-request-head {
  align-items: flex-start;
  padding-bottom: 4px;
}
.ui-verdict {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3e6bd;
  color: #74591e;
  font-size: .61rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ui-request-service { padding: 10px 2px; }
.ui-request-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.ui-request-fields > span {
  display: flex;
  flex-direction: column;
  padding: 7px 9px;
  background: var(--surface);
}
.ui-request-fields small { color: var(--muted); font-size: .6rem; }
.ui-request-fields strong { font-size: .7rem; }
.ui-request-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 10px;
  font-size: .66rem;
}
.ui-request-actions > span:first-child { margin-right: auto; color: var(--muted); }
.ui-control {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}
.ui-control--primary { border-color: var(--accent-deep); background: var(--accent-deep); color: var(--surface); }

/* Roadmap "Use cases" — three story cards, folded into #roadmap */
.stories-block {
  margin-top: var(--sp-intro);
}
.stories-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 28px;
}
.roadmap-stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.6vw, 34px);
  align-items: start;
}
.story-card {
  min-width: 0;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
}
.story-body p {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.68;
  max-width: 62ch;
}
.story-card[data-open] .story-excerpt { font-size: 1.05rem; font-weight: 600; }
.story-card:not([data-open]) .story-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card:not([data-open]) .story-more { display: none; }
.story-facts {
  list-style: none;
  margin: 4px 0 14px;
  padding: 0;
  display: grid;
  gap: 9px;
  break-inside: avoid;
}
.story-facts li {
  position: relative;
  padding-left: 19px;
  font-size: .91rem;
  color: var(--muted);
}
.story-facts li::before {
  content: "";
  position: absolute; left: 0; top: .52em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.story-toggle {
  align-self: flex-start;
  margin-top: auto;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  color: var(--accent-deep);
  cursor: pointer;
}
.story-toggle:hover { color: var(--ink); }
.story-card:not([data-open]) .story-toggle-close,
.story-card[data-open] .story-toggle-open { display: none; }

/* Blog post page */
.post-section { padding-block: 64px 96px; }
.post-section h1 { max-width: 18ch; }
.post-body { max-width: var(--prose); }
.post-body p { margin: 0 0 20px; color: var(--ink); }
.post-body p:last-child { margin-bottom: 0; }
.post-back { margin-top: 40px; }
.post-back a { font-weight: 700; }

/* Invitations */
.invite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 8px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.invite-card {
  min-width: 0;
  background: var(--surface);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .15s ease;
}

.invite-role {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.invite-role::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.invite-card:nth-child(2) .invite-role::before { background: var(--slate); }
.invite-card:nth-child(3) .invite-role::before { background: var(--olive); }
.invite-card h3 { margin: 0; font-size: 1.28rem; font-weight: 600; max-width: 22ch; }
.invite-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.invite-facts {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.invite-facts li {
  position: relative;
  padding-left: 19px;
  font-size: .88rem;
  color: var(--muted);
}
.invite-facts li::before {
  content: "";
  position: absolute; left: 0; top: .52em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.invite-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: auto;
  padding-top: 18px;
}
.invite-links a { font-weight: 700; font-size: .95rem; }

.partner-section .public-wrap { padding-block: var(--sp-section); }
.partner-grid {
  display: grid;
  grid-template-columns: 1fr .72fr;
  align-items: end;
  gap: 80px;
}
.partner-grid p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.partner-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.partner-grid a { font-size: 1.15rem; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 32px;
    gap: 28px;
  }
  .hero-copy { max-width: 820px; }
  .hero-copy h1 { max-width: 24ch; font-size: clamp(2.3rem, 5vw, 3.2rem); margin-bottom: 14px; }
  .hero-tagline { margin: 0 0 12px; font-size: 1.18rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 14px; }
  .hero-links { gap: 18px 40px; }
  .product-proof { max-width: 980px; justify-self: start; }
  .system-flow--tiles li { grid-template-columns: 48px 1fr; gap: 18px; padding-block: 22px; }
}

/* A feature title that leads to its documentation page. One treatment for every
   one of them — the flow tiles and the roadmap cards — so the affordance reads
   the same wherever a feature is named, without turning the whole roadmap red. */
.system-flow h3 a,
.kanban-cards h4 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.system-flow h3 a:hover,
.kanban-cards h4 a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

/* Links inside running prose stay accent-coloured and underlined, so a sentence
   that mentions a capability reads as a sentence with links in it. */
.hero-lead a,
.updates-item a {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--accent-deep) 38%, transparent);
  text-underline-offset: 3px;
}
.hero-lead a:hover,
.updates-item a:hover { text-decoration-color: currentColor; }

/* Six nav items since Docs joined the menu — a small laptop needs the tighter
   gap earlier than the 900px tier gives it, or the header runs into the brand. */
@media (max-width: 1080px) and (min-width: 901px) {
  .site-nav { gap: 15px; }
  .site-nav a { font-size: .87rem; }
}

@media (max-width: 900px) and (min-width: 751px) {
  .site-header { gap: 14px; }
  .brand { gap: 10px; font-size: 1.06rem; }
  .brand img { width: 44px; height: 44px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .82rem; }
  .language-toggle { font-size: .8rem; }
}

@media (max-width: 750px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding-block: 16px;
    gap: 12px 24px;
  }
  .brand { grid-column: 1 / -1; }
  .site-nav { justify-self: start; }
  .site-actions {
    grid-column: 2;
    justify-self: end;
    justify-content: flex-end;
    padding-top: 0;
  }
}

/* A narrow laptop still fits two columns of tiles and the three tracker
   columns (Ivan, 2026-08-02) — they only stack once the page is tablet-wide. */
@media (max-width: 900px) {
  .system-flow--tiles { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .kanban-column { height: auto; max-height: 420px; }
  .roadmap-stories { grid-template-columns: 1fr; gap: 16px; }
  .invite-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .public-wrap,
  .site-header {
    width: min(100% - 34px, var(--wrap));
  }
  body { background-size: 22px 22px; }
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .brand { grid-column: auto; font-size: 1.15rem; }
  .brand img { width: 44px; height: 44px; }
  .site-nav,
  .site-actions {
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .site-actions { grid-column: auto; padding-top: 0; }
  .site-header--bilingual {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .site-header--bilingual .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .site-header--bilingual .site-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .site-header--bilingual .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
  .ui-table-head { display: none; }
  .ui-table-row { grid-template-columns: 48px minmax(0, 1fr); }
  .ui-table-row > :nth-child(3),
  .ui-table-row > :nth-child(4) { grid-column: 2; }
  .ui-request-fields { grid-template-columns: 1fr; }
  .hero {
    padding-block: 44px 48px;
    gap: 42px;
  }
  h1 { font-size: clamp(2.45rem, 11vw, 3.4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .system-section,
  .invitations-section,
  .updates-section,
  .status-section,
  .roadmap-section { padding-bottom: 64px; }
  .partner-section .public-wrap,
  .post-section { padding-block: 64px; }
  .system-flow,
  .status-columns,
  .partner-grid,
  .kanban,
  .invite-grid {
    grid-template-columns: 1fr;
  }
  .kanban-column--live { order: 1; }
  .kanban-column--prototyped { order: 2; }
  .kanban-column--planned { order: 3; }
  .system-flow li { padding: 0; }
  .system-flow--tiles li { padding: 22px 20px; }
  .status-columns { gap: 64px; }
  .partner-grid { gap: 44px; }
  .updates-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .site-header--bilingual .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    overflow: visible;
  }
}

@media (max-width: 390px) {
  .public-wrap,
  .site-header { width: min(100% - 24px, var(--wrap)); }
  .hero-lead { font-size: 1.08rem; }
  .hero-links { gap: 18px 28px; }
  .story-card { padding: 22px 20px 20px; }
}

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