/* SymphoCraft website
   Tokens: cool porcelain reading surfaces with logo amber / coral / violet light,
   connection ribbons and threads. One continuous ambient background behind every page. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --paper: #f6f6f9;
  --surface: #ffffff;
  --sunken: #ececf3;
  --ink: #15133a;
  --muted: #55557a;
  --line: #dcdbe8;
  --line-strong: #b6b4cc;
  --action: #4c2cd8;
  --action-hover: #3a1db8;
  --action-soft: #ebe7ff;
  --link: #4527c9;
  --brand-violet: #5a2ae0;
  --focus: #b4530a;
  --error: #b42336;
  --success: #17794a;
  --amber: #ffa41b;
  --coral: #f2445a;
  --violet: #7340ee;
  --rib-idle: #c9c7dc;
  --feature: #15133a;
  --feature-raise: #1f1c4c;
  --feature-text: #f3f2fa;
  --feature-muted: #b9b7d6;
  --feature-line: #322f66;
  --pf-bg: #ffffff;
  --pf-text: #15133a;
  --pf-muted: #66668a;
  --pf-line: #e3e2ee;
  --pf-soft: #f2f2f7;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section: clamp(2.75rem, 4.6vw, 4.5rem);
  --motion: 200ms;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f0e26;
  --surface: #19173a;
  --sunken: #141332;
  --ink: #f1f0f8;
  --muted: #b3b1cf;
  --line: #2b2955;
  --line-strong: #4a4780;
  --action: #6a4df5;
  --action-hover: #7d63ff;
  --action-soft: #2a2560;
  --link: #b3a6ff;
  --brand-violet: #b69cff;
  --focus: #ffb608;
  --error: #ff8a98;
  --success: #6fd6a2;
  --rib-idle: #343163;
  --feature: #18163f;
  --feature-raise: #221f52;
  --feature-line: #36337a;
  --pf-bg: #211e4d;
  --pf-text: #f1f0f8;
  --pf-muted: #aeacd0;
  --pf-line: #34317a;
  --pf-soft: #2a2760;
}
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
figure,
dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  padding: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  line-height: 1;
}
h2 {
  font-size: clamp(2.1rem, 3.9vw, 3.5rem);
  line-height: 1.02;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: var(--surface);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  z-index: 20;
}
.skip:focus {
  top: 0.5rem;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-xs {
  width: 14px;
  height: 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mast,
.brand,
.tools,
nav,
.actions,
.button,
.foot {
  display: flex;
  align-items: center;
}
.mast {
  min-height: 68px;
  gap: 1.5rem;
}
.brand {
  gap: 8px;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand b {
  color: var(--brand-violet);
  font-weight: 600;
}
#navigation {
  gap: clamp(1rem, 2.4vw, 2.25rem);
  margin-left: clamp(1rem, 4vw, 3.5rem);
}
#navigation a {
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color var(--motion);
}
#navigation a:hover {
  color: var(--ink);
}
.tools {
  gap: 0.75rem;
  margin-left: auto;
}
.button {
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition:
    background var(--motion),
    border-color var(--motion);
}
.button:hover {
  background: var(--action-hover);
}
.button-small {
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  font-size: 0.92rem;
}
.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.button-quiet:hover {
  background: var(--surface);
  border-color: var(--ink);
}
.theme-control {
  position: relative;
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.interactive .theme-control {
  display: grid;
}
.theme-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
}
.theme-control:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.menu {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* Hero */
.hero {
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.5rem, 4vw, 4rem);
  overflow: hidden;
}
.hero h1 {
  max-width: 21ch;
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(1.4rem, 2.6vw, 2.25rem);
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}
.actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.access-note {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Signature visual: channels → SymphoCraft → outcomes */
.system {
  margin-top: clamp(2.25rem, 3.6vw, 3.25rem);
  --route: var(--action);
}
.system[data-route-color="0"] {
  --route: var(--amber);
}
.system[data-route-color="1"] {
  --route: var(--coral);
}
.system[data-route-color="2"] {
  --route: var(--violet);
}
.system-stage {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2.3fr) minmax(250px, 1.15fr);
  height: clamp(280px, 22vw, 320px);
}
.inputs,
.outcomes {
  display: grid;
  align-items: center;
  position: relative;
  z-index: 1;
}
.inputs {
  grid-template-rows: repeat(3, 1fr);
  justify-items: end;
}
.outcomes {
  grid-template-rows: repeat(4, 1fr);
}
.node {
  --c: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem 0.6rem 0.85rem;
  margin-right: -2px;
  border: 1px solid var(--line);
  border-right: 4px solid var(--c);
  border-radius: 999px 4px 4px 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition:
    opacity 400ms,
    border-color 400ms;
}
.node .icon {
  color: var(--c);
  stroke-width: 2;
}
.node[data-in="1"] {
  --c: var(--coral);
}
.node[data-in="2"] {
  --c: var(--violet);
}
.flow {
  position: relative;
  min-width: 0;
}
.flow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.flow-narrow {
  display: none;
}
.rib,
.glint {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.rib {
  stroke-width: 12;
  transition:
    stroke 500ms,
    opacity 500ms;
}
.rib.in[data-in="0"] {
  stroke: var(--amber);
}
.rib.in[data-in="1"] {
  stroke: var(--coral);
}
.rib.in[data-in="2"] {
  stroke: var(--violet);
}
.rib.out {
  stroke: var(--rib-idle);
  transition: none; /* snap back to idle; avoids a muddy colour blend */
}
.rib.out.is-active {
  transition: stroke 500ms;
}
.glint {
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 200;
  stroke-dashoffset: 10;
  opacity: 0;
}
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--paper) 80%, transparent),
    0 18px 40px -18px rgb(21 19 58 / 0.45);
  transition: box-shadow 500ms;
}
.hub img {
  width: 48px;
  height: auto;
}
.outcome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: -2px;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--rib-idle);
  border-radius: 4px 12px 12px 4px;
  background: var(--surface);
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--muted);
  transition:
    border-color 450ms,
    opacity 450ms,
    translate 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 450ms;
}
.outcome .icon {
  color: var(--ink);
}
.outcome strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}
.system-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.system figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 70ch;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding-inline: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  flex: none;
}
.motion-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.motion-toggle .icon {
  width: 16px;
  height: 16px;
}

/* Animated state, added by app.js only when motion is allowed. */
.is-animated .node {
  opacity: 0.5;
}
.is-animated .node.is-active {
  opacity: 1;
}
.is-animated .rib.in {
  opacity: 0.22;
}
.is-animated .rib.in.is-active {
  opacity: 1;
}
.is-animated .rib.out.is-active,
.is-animated .rib.trunk.is-active {
  stroke: var(--route);
}
.is-animated .hub.is-active {
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--route) 16%, var(--paper)),
    0 18px 40px -18px rgb(21 19 58 / 0.45);
}
.is-animated .outcome {
  opacity: 0.55;
}
.is-animated .outcome.is-active {
  opacity: 1;
  border-color: var(--line-strong);
  border-left-color: var(--route);
  box-shadow: 0 14px 30px -22px rgb(21 19 58 / 0.55);
}

/* Product illustrations (HTML, not screenshots) */
.product-frame {
  background: var(--pf-bg);
  color: var(--pf-text);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 34px 70px -42px rgb(21 19 58 / 0.5);
  border: 1px solid var(--pf-line);
}
.product-frame .icon {
  width: 16px;
  height: 16px;
}
.pf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--pf-line);
}
.pf-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.pf-tabs {
  display: flex;
  gap: 0.25rem;
  color: var(--pf-muted);
}
.pf-tabs span {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.pf-tabs .is-on {
  background: var(--pf-soft);
  color: var(--pf-text);
  font-weight: 500;
}
.pf-body {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr 1fr;
  min-height: 330px;
}
.pf-list {
  border-right: 1px solid var(--pf-line);
  padding: 0.5rem;
}
.pf-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.55rem;
  align-items: start;
  padding: 0.65rem 0.6rem;
  border-radius: 8px;
}
.pf-list li.is-on {
  background: var(--pf-soft);
}
.pf-list small,
.pf-tasks small,
.pf-appointment span {
  display: block;
  color: var(--pf-muted);
  font-size: 0.72rem;
}
.pf-list .icon {
  color: var(--pf-muted);
}
.pf-list .pill {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.3rem;
}
.pill {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--pf-soft);
  color: var(--pf-muted);
}
.pill-lead {
  background: color-mix(in srgb, var(--violet) 16%, var(--pf-bg));
  color: color-mix(in srgb, var(--violet) 70%, var(--pf-text));
}
.pill-person {
  background: color-mix(in srgb, var(--amber) 22%, var(--pf-bg));
  color: color-mix(in srgb, #8a4b00 80%, var(--pf-text));
}
:root[data-theme="dark"] .pill-person {
  color: #ffd38a;
}
:root[data-theme="dark"] .pill-lead {
  color: #cdb8ff;
}
.pf-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
}
.msg {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
}
.msg-in {
  background: var(--pf-soft);
  border-bottom-left-radius: 4px;
}
.msg-out {
  align-self: flex-end;
  background: var(--action-soft);
  border-bottom-right-radius: 4px;
}
:root[data-theme="dark"] .msg-out {
  background: #3a3290;
}
.pf-event {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--pf-line);
  color: var(--pf-muted);
  font-size: 0.74rem;
}
.pf-context {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  border-left: 1px solid var(--pf-line);
  background: color-mix(in srgb, var(--pf-soft) 45%, var(--pf-bg));
}
.pf-context dl {
  display: grid;
  gap: 0.7rem;
}
.pf-context dt {
  color: var(--pf-muted);
  font-size: 0.7rem;
}
.pf-context dd {
  font-weight: 500;
}
.pf-button {
  margin-top: auto;
  text-align: center;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--pf-text);
  font-weight: 600;
}
.pf-ops {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}
.pf-appointment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--pf-line);
  border-left: 4px solid var(--amber);
}
.pf-appointment strong {
  font-size: 0.9rem;
}
.pf-slots {
  grid-column: 2;
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.pf-slots span {
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--pf-line);
}
.pf-slots .is-on {
  border-color: var(--pf-text);
  font-weight: 600;
}
.pf-state {
  grid-column: 2;
  margin-top: 0.25rem;
}
.pf-tasks {
  border: 1px solid var(--pf-line);
  border-radius: 10px;
}
.pf-tasks li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
}
.pf-tasks li + li {
  border-top: 1px solid var(--pf-line);
}
.tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--pf-muted);
  display: grid;
  place-items: center;
}
.tick .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}
.tick.is-done {
  background: var(--pf-text);
  border-color: var(--pf-text);
  color: var(--pf-bg);
}
.tick.is-review {
  border-color: var(--coral);
  border-style: dashed;
}
.pf-approve {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-weight: 600;
}

/* Additional product illustrations */
.pill-ok {
  background: color-mix(in srgb, var(--success) 16%, var(--pf-bg));
  color: color-mix(in srgb, var(--success) 80%, var(--pf-text));
}
.pf-secondary {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  font-weight: 500;
}
.pf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pf-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem 1rem;
}
.pf-meta dt {
  color: var(--pf-muted);
  font-size: 0.7rem;
}
.pf-meta dd {
  font-weight: 500;
}
.pf-approval {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.2rem 1.3rem;
}
.pf-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--coral);
}
.pf-quote {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--action-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}
:root[data-theme="dark"] .pf-quote {
  background: #3a3290;
}
.pf-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--pf-muted);
}
.pf-live .dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--coral);
}
.pf-voice {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.2rem 1.3rem;
}
.pf-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  overflow: hidden;
  padding-inline: 0.25rem;
}
.pf-wave span {
  flex: 0 0 6px;
  border-radius: 3px;
  background: linear-gradient(var(--amber), var(--coral));
  height: 30%;
}
.pf-wave span:nth-child(3n) {
  height: 75%;
}
.pf-wave span:nth-child(4n + 1) {
  height: 50%;
}
.pf-wave span:nth-child(5n + 2) {
  height: 95%;
  background: linear-gradient(var(--coral), var(--violet));
}
.pf-transcript {
  display: grid;
  gap: 0.55rem;
}
.pf-transcript li {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.5rem;
}
.pf-transcript b {
  font-weight: 600;
  color: var(--pf-muted);
}
.pf-note {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--pf-line);
  color: var(--pf-muted);
}
.pf-lead {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem 1.2rem 1.3rem;
}
.pf-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pf-person small {
  display: block;
  color: var(--pf-muted);
  font-size: 0.72rem;
}
.avatar {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--violet));
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}
.pf-timeline {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--pf-line);
}
.pf-timeline li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pf-timeline .dot {
  width: 0.6rem;
  height: 0.6rem;
}
.pf-revisions li {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
}
.pf-revisions li + li {
  border-top: 1px solid var(--pf-line);
}
.pf-rev {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pf-muted);
}
.pf-gap {
  background: color-mix(in srgb, var(--amber) 9%, var(--pf-bg));
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  transition: border-color var(--motion);
}
input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}
input:hover,
textarea:hover {
  border-color: var(--muted);
}
input:focus-visible,
textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 7.5rem;
}
[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
  padding: calc(0.7rem - 1px) calc(0.85rem - 1px);
}
.field-help {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.field-error {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--error);
}
.field-error:empty,
.form-status:empty {
  display: none;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 0.5rem;
}
.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  flex: 1 1 16rem;
}
.button[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}
.form-status {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--error);
  background: color-mix(in srgb, var(--error) 8%, var(--surface));
  font-size: 0.92rem;
}
.form-status.is-pending {
  border-color: var(--line);
  background: var(--sunken);
}
.form-status a {
  color: var(--link);
  text-decoration: underline;
}
.form-done {
  padding-block: 1rem;
}
.form-done .icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  stroke-width: 2.4;
}
.form-done h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
}
.form-done p {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 44ch;
}

/* Ambient background: logo-colour lighting and connected threads behind every page.
   Only transform and opacity animate, so the layer stays on the compositor. */
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: var(--glow-opacity);
  will-change: transform;
}
:root {
  --glow-opacity: 0.16;
  --thread-opacity: 0.26;
}
:root[data-theme="dark"] {
  --glow-opacity: 0.2;
  --thread-opacity: 0.4;
}
.glow-a {
  left: -28vmax;
  top: -30vmax;
  background: radial-gradient(closest-side, var(--amber), transparent);
}
.glow-b {
  right: -32vmax;
  top: 10vh;
  background: radial-gradient(closest-side, var(--coral), transparent);
  opacity: calc(var(--glow-opacity) * 0.75);
}
.glow-c {
  left: 10vw;
  bottom: -42vmax;
  background: radial-gradient(closest-side, var(--violet), transparent);
}
.threads {
  position: absolute;
  inset: -6% -4%;
  width: 108%;
  max-width: none;
  height: 112%;
  opacity: var(--thread-opacity);
  will-change: transform;
}
.thread {
  fill: none;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.t-amber {
  stroke: var(--amber);
}
.t-coral {
  stroke: var(--coral);
}
.t-violet {
  stroke: var(--violet);
}
@media (prefers-reduced-motion: no-preference) {
  .glow-a {
    animation: drift-a 48s ease-in-out infinite alternate;
  }
  .glow-b {
    animation: drift-b 56s ease-in-out infinite alternate;
  }
  .glow-c {
    animation: drift-c 64s ease-in-out infinite alternate;
  }
  .threads {
    animation: sway 40s ease-in-out infinite alternate;
  }
}
@keyframes drift-a {
  to {
    transform: translate3d(14vw, 10vh, 0) scale(1.08);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-12vw, 16vh, 0) scale(0.94);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(10vw, -12vh, 0) scale(1.1);
  }
}
@keyframes sway {
  to {
    transform: translate3d(-2.5%, 1.5%, 0);
  }
}

/* Shared layout */
main {
  display: block;
}
#navigation a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--action);
}
:root[data-theme="dark"] #navigation a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--link);
}
.login {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.4rem;
}
.login:hover {
  color: var(--ink);
}
#navigation .nav-login {
  display: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}
.intro {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}
.note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 70ch;
}
.statement,
.overview,
.needs,
.control,
.progress,
.closing,
.feature-row,
.oversight,
.availability,
.solutions,
.industries,
.principles,
.split-section,
.mission,
.direction,
.values,
.faq {
  padding-block: var(--section);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 {
  max-width: 20ch;
}
.section-head .intro {
  margin-top: 0;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
}
.section-head-row .text-link {
  margin-top: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split > * {
  min-width: 0;
}
.split h2 {
  max-width: 14ch;
}
.split .intro:first-child {
  margin-top: 0;
}
.prose p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 60ch;
}
.prose p + p {
  margin-top: 1rem;
}
.prose a:not(.text-link) {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.split-section + .split-section {
  padding-top: 0;
}
.split-section + .split-section .split {
  padding-top: var(--section);
  border-top: 1px solid var(--line);
}

/* Homepage */
.page-home .hero {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.statement {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.statement-text {
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.018em;
  max-width: 36ch;
  text-wrap: pretty;
}
.statement .text-link {
  margin-top: 1.25rem;
}
.overview {
  padding-top: 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.pillars {
  display: grid;
}
.pillars li {
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}
.pillars li:last-child {
  border-bottom: 1px solid var(--line);
}
.pillars a {
  display: inline-block;
}
.pillars a:hover h3 {
  color: var(--link);
}
.pillars p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.need-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem);
}
.need-list li {
  --c: var(--amber);
  padding-top: 1.25rem;
  border-top: 2px solid var(--c);
}
.need-list li:nth-child(2) {
  --c: var(--coral);
}
.need-list li:nth-child(3) {
  --c: var(--violet);
}
.need-list li:nth-child(4) {
  --c: var(--action);
}
.need-list .icon {
  width: 22px;
  height: 22px;
  color: var(--c);
  stroke-width: 1.9;
  margin-bottom: 0.85rem;
}
.need-list p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.control-grid h2 {
  max-width: 14ch;
}
.checks {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.checks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--amber), var(--coral) 55%, var(--violet));
}
.stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: stage;
}
.stages li {
  position: relative;
  padding-top: 2.4rem;
}
.stages li::before {
  content: "";
  position: absolute;
  left: 0;
  right: -1.5rem;
  top: 0.55rem;
  height: 2px;
  background: var(--line-strong);
}
.stages li:last-child::before {
  right: 0;
}
.stages li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-strong);
}
.stages .is-done::before {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}
.stages .is-done::after {
  background: var(--amber);
  border-color: var(--amber);
}
.stages .is-current::after {
  border-color: var(--coral);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 22%, transparent);
}
.stages p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.closing {
  margin-block: clamp(1rem, 3vw, 2.5rem) var(--section);
  padding: clamp(2.25rem, 5vw, 4rem);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--violet) 16%, transparent), transparent),
    radial-gradient(50% 120% at 0% 100%, color-mix(in srgb, var(--amber) 14%, transparent), transparent),
    color-mix(in srgb, var(--surface) 78%, transparent);
}
.closing h2 {
  max-width: 18ch;
}
.closing .actions {
  margin-top: 1.75rem;
}

/* Inner pages */
.page-hero {
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.02;
}
.page-hero .lede {
  margin-top: 1.4rem;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 0.9rem;
  font-weight: 500;
}
.jump a:hover {
  border-color: var(--line-strong);
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature-row + .feature-row {
  padding-top: 0;
}
.feature-row-flip {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.feature-row-flip .feature-copy {
  order: 2;
}
.feature-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  max-width: 18ch;
}
.spec {
  display: grid;
  margin-top: 1.75rem;
}
.spec > div {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}
.spec dt {
  font-weight: 600;
}
.spec dd {
  color: var(--muted);
}
.product figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.availability .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}
.status-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.status-table th,
.status-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.status-table thead th {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.status-table tbody th {
  font-weight: 600;
}
.status-table td:last-child {
  color: var(--muted);
}
.status-table tbody tr:last-child > * {
  border-bottom: 0;
}
.status {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.status-mvp {
  color: var(--success);
}
.status-verify {
  color: #a24b00;
}
.status-sim {
  color: var(--link);
}
.status-planned {
  color: var(--muted);
}
:root[data-theme="dark"] .status-verify {
  color: #ffc069;
}
.solutions {
  display: grid;
  padding-top: clamp(1rem, 2vw, 2rem);
}
.solution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.solution:last-child {
  border-bottom: 1px solid var(--line);
}
.solution h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.solution-copy p {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
}
.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.route::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 0.4rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber), var(--coral), var(--violet));
  opacity: 0.85;
}
.route li {
  position: relative;
  padding-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.route strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.dot {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--action);
  flex: none;
}
.route .dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1rem;
  height: 1rem;
  box-shadow: 0 0 0 4px var(--paper);
}
.dot-amber {
  background: var(--amber);
}
.dot-coral {
  background: var(--coral);
}
.dot-violet {
  background: var(--violet);
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(1rem, 2vw, 2rem);
}
.principle {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.principle .icon {
  width: 24px;
  height: 24px;
  color: var(--action);
  margin-bottom: 0.9rem;
}
:root[data-theme="dark"] .principle .icon {
  color: var(--link);
}
.principle p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.mission h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 1rem;
}
.mission {
  padding-top: clamp(1rem, 2vw, 2rem);
}
.values .need-list {
  margin-top: 2rem;
}
.founder-line {
  margin-top: 1rem;
}
.founder-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Request access */
.access {
  padding-block: clamp(3rem, 6vw, 5.5rem) var(--section);
}
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.access-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 1.02;
  max-width: 13ch;
}
.access-copy .lede {
  margin-top: 1.25rem;
}
.journey {
  counter-reset: step;
  margin-top: 2.25rem;
  display: grid;
}
.journey li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.35rem 2.9rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.journey li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.journey li:first-child::before {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.95rem - 0.5px);
  top: 2.1rem;
  bottom: 0.2rem;
  width: 1px;
  background: var(--line-strong);
}
.journey strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.access-panel {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.4rem, 3.4vw, 2.6rem);
  box-shadow: 0 30px 60px -45px rgb(21 19 58 / 0.45);
}
.email-route h2,
.form-title {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.form-title {
  margin-bottom: 1.25rem;
}
.email-route > p {
  margin-top: 0.75rem;
  color: var(--muted);
}
.email-route > p a,
.alt-contact a,
.form-note a,
.legal p a,
.questions a,
.foot-contact a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.email-route .checks {
  margin-top: 1rem;
}
.email-route .form-note {
  margin-top: 1.25rem;
}
.email-route .button {
  margin-top: 1.5rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.icon-lg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--coral) 55%, var(--violet));
  stroke-width: 1.9;
  margin-bottom: 1rem;
}
.alt-contact {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.form-done h2 {
  margin-top: 1rem;
  font-size: 1.5rem;
}
.questions details {
  border-top: 1px solid var(--line);
}
.questions details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  font-weight: 600;
  padding-block: 1rem;
  list-style-position: outside;
}
summary:hover {
  color: var(--link);
}
details p {
  margin: -0.25rem 0 1.1rem;
  color: var(--muted);
  max-width: 62ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  align-items: start;
}
.foot-brand p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
}
.foot-nav {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.foot-nav h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.foot-nav a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.foot-nav a:hover {
  color: var(--ink);
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Legal pages and 404 */
.legal {
  max-width: 780px;
  padding-block: clamp(3rem, 6vw, 5rem) var(--section);
}
.legal h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 0.75rem;
}
.legal .effective {
  color: var(--muted);
}
.legal h2 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
}
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.7;
}
.legal p strong {
  color: var(--ink);
  font-weight: 600;
}
.legal p + p {
  margin-top: 1rem;
}
.not-found {
  padding-block: clamp(4rem, 10vw, 8rem);
  min-height: 50vh;
}
.not-found .lede {
  margin-top: 1rem;
}
.not-found .actions {
  margin-top: 2rem;
}
/* Responsive */
@media (max-width: 1080px) {
  .system-stage {
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.6fr) minmax(230px, 1.25fr);
  }
  .pf-body {
    grid-template-columns: 1.3fr 1fr;
  }
  .pf-list {
    display: none;
  }
  .overview-grid,
  .control-grid,
  .feature-row,
  .feature-row-flip {
    grid-template-columns: 1fr;
  }
  .feature-row-flip .feature-copy {
    order: 0;
  }
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .pillars li:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .need-list,
  .stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.25rem;
  }
  .stages li:nth-child(2)::before {
    right: 0;
  }
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .mast {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.6rem;
  }
  #navigation {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .interactive #navigation {
    display: none;
  }
  .interactive #navigation.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.5rem;
  }
  .interactive #navigation.open a {
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--ink);
    box-shadow: none;
  }
  .interactive #navigation.open a[aria-current="page"] {
    color: var(--link);
  }
  #navigation .nav-login {
    display: inline-flex;
  }
  .tools .login {
    display: none;
  }
  .interactive .menu {
    display: grid;
  }
  .hero-row,
  .access-grid,
  .split,
  .section-head,
  .solution,
  .foot {
    grid-template-columns: 1fr;
  }
  .hero-row {
    align-items: start;
  }
  .section-head .intro {
    margin-top: 0.25rem;
  }
}
@media (max-width: 860px) {
  .system-stage {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .inputs {
    grid-template-rows: none;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: stretch;
    gap: 0.4rem;
  }
  .node {
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    width: 100%;
    padding: 0.6rem 0.3rem;
    border-right-width: 1px;
    border-bottom: 4px solid var(--c);
    border-radius: 12px 12px 4px 4px;
    font-size: 0.82rem;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
  .flow {
    height: 150px;
    margin-top: -2px;
  }
  .flow-wide {
    display: none;
  }
  .flow-narrow {
    display: block;
  }
  .rib {
    stroke-width: 8;
  }
  .hub {
    top: 65%;
    width: 72px;
    height: 72px;
  }
  .hub img {
    width: 38px;
  }
  .outcomes {
    grid-template-rows: none;
    gap: 0.5rem;
    margin-top: 0.35rem;
  }
  .outcome {
    margin: 0;
    border-radius: 12px;
    border-left-width: 4px;
  }
}
@media (min-width: 561px) and (max-width: 860px) {
  .outcomes {
    grid-template-columns: 1fr 1fr;
  }
  .flow-narrow,
  .flow,
  .inputs {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }
}
@media (max-width: 760px) {
  :root {
    font-size: 1rem;
    --section: clamp(2.75rem, 9vw, 4rem);
  }
  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
  }
  .system-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .pf-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .pf-context {
    border-left: 0;
    border-top: 1px solid var(--pf-line);
  }
  .pf-context dl {
    grid-template-columns: 1fr 1fr;
  }
  .pillars,
  .need-list,
  .principles {
    grid-template-columns: 1fr;
  }
  .pillars li:nth-last-child(2) {
    border-bottom: 0;
  }
  .stages {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .stages li {
    padding: 0 0 1.6rem 2.2rem;
  }
  .stages li::before {
    left: calc(0.6rem - 1px);
    right: auto;
    top: 1.2rem;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .stages li:last-child::before {
    display: none;
  }
  .stages .is-done::before {
    background: linear-gradient(var(--amber), var(--coral));
  }
  .route {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .route::before {
    left: calc(0.5rem - 1.5px);
    right: auto;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    height: auto;
  }
  .route li {
    padding: 0 0 0 1.9rem;
  }
  .spec > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .form-foot .button {
    width: 100%;
  }
  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pf-revisions li {
    grid-template-columns: 1fr auto;
  }
  .pf-rev {
    grid-column: 1 / -1;
  }
  .closing {
    border-radius: 20px;
  }
}
@media (max-width: 480px) {
  .mast {
    gap: 0.5rem;
  }
  .theme-control {
    width: 36px;
    height: 36px;
  }
  .interactive .menu {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 420px) {
  .mast {
    gap: 0.4rem;
  }
  .brand {
    font-size: 1rem;
    gap: 5px;
  }
  .brand img {
    width: 22px;
    height: auto;
  }
  .button-small {
    min-height: 38px;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }
  .tools {
    gap: 0.3rem;
  }
  .interactive .menu {
    width: 38px;
    height: 38px;
  }
}
#navigation .nav-cta {
  display: none;
}
@media (max-width: 380px) {
  .tools .button-small {
    display: none;
  }
  :root:not(.interactive) #navigation .nav-cta,
  .interactive #navigation.open .nav-cta {
    display: inline-flex;
    color: var(--link);
    font-weight: 600;
  }
}
@media (max-width: 400px) {
  .actions .button {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
