/* ============================================================================
   Shannon Weaver · v3 · "Poster Modernist"
   Cream ground, one cobalt accent, black type. Strict 12-column grid with a
   label sidebar (cols 1-3) and content (cols 4-12). 1px dividers, 0 radius,
   no shadows, no gradients. Fast linear colour transitions only.
   ========================================================================== */

:root {
  --bg: #E3E2DE;
  --ink: #141414;
  --ink-2: #444343;
  --muted: #5F5E5D;      /* spec #7A7A7A darkened: 3.3:1 → 5:1 on cream for small labels */
  --rule: #C7C7C7;
  --blue: #1351AA;
  --lift: rgba(255, 255, 255, 0.2);

  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(16px, 2.2vw, 32px);
  --gap: clamp(16px, 1.7vw, 24px);
  --nav: 80px;
  --t: 0.3s linear;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--blue); color: var(--bg); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--pad); }
.side { grid-column: 1 / 4; }
.main { grid-column: 4 / 13; min-width: 0; }

.label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--muted); }
.blue { color: var(--blue); font-style: normal; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav); align-items: center;
  background: rgba(227, 226, 222, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__brand { grid-column: 1 / 4; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand img { height: 34px; width: auto; }
.nav__status { grid-column: 4 / 8; display: flex; align-items: center; gap: 10px; }
.nav__status i { width: 8px; height: 8px; background: var(--blue); flex: none; }
.nav__links { grid-column: 8 / 13; white-space: nowrap; display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 1.6vw, 26px); font-size: 0.875rem; font-weight: 600; }
.nav__links a { text-decoration: none; transition: color var(--t); }
.nav__links a:hover { color: var(--blue); }
.lang { display: inline-flex; gap: 0; border: 1px solid var(--ink); }
.lang a { padding: 6px 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1; }
.lang a[aria-current] { background: var(--ink); color: var(--bg); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  background: var(--blue); color: var(--bg); transition: background-color var(--t), color var(--t);
}
.btn:hover { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--blue); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 12px 18px; font-size: 0.75rem; }
.btn--xl { padding: 22px 42px; font-size: 1rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; transition: color var(--t); }
.link:hover { color: var(--blue); }

/* ------------------------------------------------------------- sections */
.sec { border-top: 1px solid var(--rule); padding-block: clamp(64px, 9vw, 140px); }
.sec .side .label { position: sticky; top: calc(var(--nav) + 32px); }
.h2 {
  font-size: clamp(2.6rem, 5.4vw, 6.5rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.035em;
  text-wrap: balance; max-width: 15ch;
}
.lead { margin-top: clamp(24px, 3vw, 40px); max-width: 38rem; color: var(--ink-2); font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); line-height: 1.5; text-wrap: pretty; }
.body { color: var(--ink-2); text-wrap: pretty; }

/* ------------------------------------------------------------------ hero */
.hero { min-height: calc(85vh - var(--nav)); min-height: calc(85svh - var(--nav)); }
.hero .side { border-right: 1px solid var(--rule); padding-top: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero .side .sq { width: 16px; height: 16px; background: var(--ink); }
.hero .main { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(40px, 6vw, 80px); }
.h1 {
  font-size: clamp(3.1rem, 7.6vw, 9.5rem); font-weight: 700; line-height: 0.88; letter-spacing: -0.045em;
}
.h1 span { display: block; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: var(--gap) clamp(32px, 5vw, 80px); align-items: end; }
.hero__foot p { color: var(--ink-2); font-size: 1.125rem; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

/* ------------------------------------------------------------ the noise */
.chain { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--rule); }
.chain__cell { padding: 18px 16px 20px; border-right: 1px solid var(--rule); display: grid; gap: 28px; align-content: space-between; min-height: 132px; }
.chain__cell:last-child { border-right: 0; }
.chain__cell b { font-size: 1rem; font-weight: 600; line-height: 1.2; }
.chain__cell--noise { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(20, 20, 20, 0.06) 7px 8px); }
.chain__cell--ai { background: var(--blue); color: var(--bg); }
.chain__cell--ai .mono { color: rgba(227, 226, 222, 0.85); }
.chain__cell--you { background: var(--ink); color: var(--bg); }
.chain__cell--you .mono { color: rgba(227, 226, 222, 0.75); }
.chain__cap { margin-top: 14px; }
.pair-statements { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.pair-statements p { padding: 22px 0 0; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.25rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 18ch; }
.pair-statements p + p { padding-left: var(--gap); border-left: 1px solid var(--rule); }

/* -------------------------------------------------------------- the demo */
.demo { margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--ink); }
.demo__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 12px 16px; border-bottom: 1px solid var(--ink); }
.demo__bar .mono { color: var(--ink-2); }
.demo__cols { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.demo__col { min-width: 0; padding: 16px; }
.demo__col + .demo__col { border-left: 1px solid var(--ink); }
.demo__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.demo__count { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.feed { height: 432px; overflow: hidden; position: relative; }
.feed__list { display: flex; flex-direction: column; }
.frow {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  height: 48px; border-bottom: 1px solid var(--rule); font-size: 0.875rem;
}
.frow[hidden] { display: none; }
.frow__n { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.frow__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.frow__txt b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.frow__st { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.frow--esc .frow__st { color: var(--ink); }
.frow--esc .frow__st::before { content: "■ "; }
.frow--done { background: var(--blue); color: var(--bg); padding-inline: 8px; margin-inline: -8px; }
.frow--done .frow__txt, .frow--done .frow__txt b, .frow--done .frow__st, .frow--done .frow__n { color: var(--bg); }
.feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgba(227, 226, 222, 0), var(--bg)); pointer-events: none; }

.queue { display: grid; gap: 0; }
.queue__empty { padding: 28px 0; color: var(--muted); font-size: 0.9375rem; }
.qitem { border-bottom: 1px solid var(--rule); padding: 14px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; }
.qitem[hidden] { display: none; }
.qitem b { font-weight: 600; }
.qitem p { color: var(--ink-2); }
.decision { border: 1px solid var(--ink); background: var(--lift); padding: 18px; margin-top: 14px; }
.decision[hidden] { display: none; }
.decision__kicker { display: flex; align-items: center; gap: 10px; }
.tag { display: inline-block; padding: 5px 8px; background: var(--ink); color: var(--bg); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.decision__title { margin-top: 14px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.decision__text { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.decision__rec { margin-top: 10px; font-size: 0.9375rem; }
.decision__rec b { font-weight: 600; }
.decision__why { margin-top: 6px; font-size: 0.875rem; color: var(--blue); font-weight: 500; }
.decision__edit { margin-top: 12px; display: grid; gap: 6px; }
.decision__edit[hidden] { display: none; }
.decision__edit input { width: 10rem; height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--bg); font-variant-numeric: tabular-nums; }
.decision__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.demo__note { padding: 12px 16px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: center; }
.demo__note p { font-size: 1rem; font-weight: 500; }
.replay { background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 0.3em; }
.replay:hover { color: var(--blue); }

/* the rule table: the line between the two columns is the point */
.rules { border-top: 1px solid var(--ink); }
.rules[hidden] { display: none; }
.rules__ask { padding: 16px; border-bottom: 1px solid var(--rule); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.rules__cols { display: grid; grid-template-columns: 1fr 1fr; }
.rules__col { padding: 12px 16px 18px; min-height: 220px; transition: background-color var(--t); }
.rules__col + .rules__col { border-left: 1px solid var(--ink); }
.rules__col.is-over { background: rgba(19, 81, 170, 0.08); }
.rules__list { margin-top: 10px; display: grid; gap: 8px; }
.rule { padding: 10px 12px; border: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.3; }
.rulechip {
  width: 100%; text-align: left; cursor: grab; touch-action: none; user-select: none;
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center;
  padding: 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 0;
  transition: background-color var(--t), color var(--t);
}
/* blue is the AI Co-worker everywhere on the page, black is your team */
.rulechip.is-ai { background: var(--blue); border-color: var(--blue); }
.rulechip__grip { grid-row: 1 / span 2; font-family: var(--mono); font-size: 0.875rem; letter-spacing: -0.1em; }
.rulechip__text { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.rulechip__state { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.rulechip.is-dragging { cursor: grabbing; position: relative; z-index: 5; }
.rules__hint { padding: 12px 16px; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- system */
.stack3 span { display: block; }
.cells { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cell { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(20px, 2.2vw, 32px); display: grid; align-content: start; gap: 14px; min-height: 260px; transition: background-color var(--t); }
.cell:hover { background: var(--lift); }
.cell h3 { margin-top: clamp(24px, 4vw, 56px); font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.cell p { color: var(--ink-2); font-size: 1rem; }
.cell--you { background: rgba(20, 20, 20, 0.04); }
.cells__legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------------------------------------------------------- command view */
.cv-fig { margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--rule); }
.cv-scroll { overflow-x: auto; }
.cv-hint { display: none; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.cv-tree { width: 100%; min-width: 760px; height: auto; font-family: var(--sans); }
.cv-tree text { font-size: 14px; fill: var(--ink-2); }
.cv-tree .t-strong { fill: var(--ink); font-weight: 600; }
.cv-tree .t-blue { fill: var(--blue); font-weight: 600; }
.cv-tree .e { fill: none; stroke-width: 1.5; }
.cv-tree .e-base { stroke: var(--rule); }
.cv-tree .e-done { stroke: var(--blue); }
.cv-tree .e-run { stroke: var(--blue); stroke-dasharray: 5 6; animation: cv-flow 1.2s linear infinite; }
.cv-tree .e-gate { stroke: var(--ink); }
.cv-tree .e-wait { stroke: var(--ink); stroke-dasharray: 3 5; }
.cv-tree .n-split { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.cv-tree .n-done { fill: var(--blue); }
.cv-tree .n-run { fill: var(--blue); }
.cv-tree .n-ring { fill: none; stroke: var(--blue); stroke-width: 1.5; animation: cv-blink 1.2s linear infinite; }
.cv-tree .n-queued { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cv-tree .n-gate { fill: var(--ink); }
.cv-tree .n-call { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.cv-tree .zone { fill: rgba(20, 20, 20, 0.05); }
@keyframes cv-flow { to { stroke-dashoffset: -22; } }
@keyframes cv-blink { 50% { opacity: 0.15; } }
.cv-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 14px 16px; border-top: 1px solid var(--rule); }
.cv-legend li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); }
.cv-legend i { width: 12px; height: 12px; display: inline-block; flex: none; }
.lg-done { background: var(--blue); }
.lg-run { background: var(--bg); box-shadow: inset 0 0 0 2px var(--blue); }
.lg-queued { background: var(--bg); box-shadow: inset 0 0 0 1px var(--muted); }
.lg-gate { background: var(--ink); transform: rotate(45deg) scale(0.8); }
.lg-call { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.cv-cap { padding: 0 16px 14px; }

/* --------------------------------------------------------- typographic list */
.tlist { margin-top: clamp(32px, 4vw, 56px); }
.titem { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: var(--gap); border-top: 1px solid var(--rule); padding-block: clamp(24px, 2.6vw, 36px); min-height: 120px; }
.titem:last-child { border-bottom: 1px solid var(--rule); }
.titem .mono { padding-top: 0.6em; }
.titem h3 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; transition: color var(--t); }
.titem p { margin-top: 12px; color: var(--ink-2); max-width: 40rem; }
.titem:hover h3 { color: var(--blue); }

/* ----------------------------------------------------------------- cases */
.table { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); }
.trow { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr) minmax(0, 1.1fr); gap: var(--gap); padding-block: 22px; border-bottom: 1px solid var(--rule); }
.trow--head { padding-block: 12px; }
.trow h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.trow p { color: var(--ink-2); font-size: 1rem; }
.trow p.you { color: var(--ink); font-weight: 500; }
.table__note { margin-top: 20px; color: var(--ink-2); }

/* --------------------------------------------------------------- process */
.steps { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.step { padding: 22px var(--gap) 26px 0; display: grid; align-content: start; gap: 12px; }
.step + .step { padding-left: var(--gap); border-left: 1px solid var(--rule); }
.step h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 18px; }
.step dl { display: grid; gap: 12px; margin-top: 8px; }
.step dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.step dd { color: var(--ink-2); font-size: 1rem; }
.step dd + dt { margin-top: 6px; }
.step .price { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 0.9375rem; font-weight: 600; }

/* ------------------------------------------------------------------- faq */
.faq { margin-top: clamp(32px, 4vw, 56px); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--gap); align-items: baseline; padding-block: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.35rem, 1.05rem + 1vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; transition: color var(--t); }
.faq summary:hover h3 { color: var(--blue); }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.25rem; color: var(--ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 26px calc(56px + var(--gap)); color: var(--ink-2); max-width: 46rem; }

/* ---------------------------------------------------------------- access */
.access { min-height: 50vh; }
.access .h1 { font-size: clamp(3rem, 7vw, 8rem); }
.access__sub { margin-top: clamp(24px, 3vw, 36px); max-width: 34rem; color: var(--ink-2); font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem); }
.loops { margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; border: 0; }
.loops legend { padding: 0; margin-bottom: 14px; }
.loops__opts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); width: fit-content; max-width: 100%; }
.loops label { position: relative; cursor: pointer; }
.loops input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.loops span { display: block; padding: 14px 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 0.9375rem; font-weight: 600; transition: background-color var(--t), color var(--t); }
.loops label:hover span { background: var(--lift); }
.loops input:checked + span { background: var(--ink); color: var(--bg); }
.loops input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.access__go { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.access__go p { color: var(--ink-2); font-size: 1rem; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--ink); padding-block: clamp(40px, 5vw, 64px) 32px; row-gap: 32px; }
.foot__brand { grid-column: 1 / 4; }
.foot__brand img { height: 30px; width: auto; }
.office { grid-column: span 3; display: grid; gap: 8px; align-content: start; }
.office b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.office p, .office a { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ================================================================ tablet */
@media (max-width: 1100px) {
  .nav__status { display: none; }
  .nav__links { grid-column: 4 / 13; }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chain__cell:nth-child(3) { border-right: 0; }
  .chain__cell:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office { grid-column: span 4; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ================================================================= phone */
@media (max-width: 760px) {
  :root { --nav: 64px; }
  body { font-size: 1.0625rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .side, .main, .nav__brand, .nav__links, .foot__brand, .office { grid-column: 1 / -1; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__brand { grid-column: 1; }
  .nav__brand img { height: 28px; }
  .nav__links { grid-column: 2; gap: 14px; }
  .nav__links .hide-s { display: none; }
  .sec .side .label { position: static; }
  .sec .side { margin-bottom: 24px; }
  .hero .side { border-right: 0; border-bottom: 1px solid var(--rule); padding: 28px 0 18px; flex-direction: row; align-items: center; }
  .hero .main { padding-top: 32px; }
  .hero__foot { grid-template-columns: 1fr; }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain__cell { min-height: 108px; border-bottom: 1px solid var(--rule); }
  .chain__cell:nth-child(3) { border-right: 1px solid var(--rule); }
  .chain__cell:nth-child(2n) { border-right: 0; }
  .chain__cell:nth-last-child(-n+2) { border-bottom: 0; }
  .pair-statements { grid-template-columns: 1fr; }
  .pair-statements p + p { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 22px; }
  .demo__cols, .rules__cols { grid-template-columns: 1fr; }
  .demo__col + .demo__col, .rules__col + .rules__col { border-left: 0; border-top: 1px solid var(--ink); }
  .feed { height: 288px; }
  .rules__col { min-height: 0; }
  .cells, .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .titem { grid-template-columns: 40px minmax(0, 1fr); min-height: 0; }
  .trow { grid-template-columns: 1fr; gap: 8px; }
  .trow--head { display: none; }
  .trow p::before { content: attr(data-k); display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .cv-hint { display: block; }
  .faq summary { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .faq details p { padding-left: calc(32px + var(--gap)); }
  .loops__opts { width: 100%; }
  .loops label { flex: 1 1 auto; }
  .btn--xl { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-tree .e-run, .cv-tree .n-ring { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* typographic logo: blue square = the AI Teammate */
.logo { display: block; height: 36px; width: auto; }
.foot__brand .logo { height: 34px; }
@media (max-width: 760px) { .nav__brand .logo { height: 30px; } }
