/* ============================================================================
   claude-foundation — landing page
   "Workshop blueprint": warm paper, charcoal ink, electric-cobalt signal,
   warm-orange marker. Editorial serif display × clean grotesque × mono.
   No framework, no build. Vanilla CSS.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* paper + ink */
  --paper: #f4f1ea;
  --paper-2: #efeae0;
  --paper-3: #e8e2d4;
  --card: #fbf9f4;
  --ink: #18191d;
  --ink-soft: #3a3d44;
  --muted: #6b6e78;
  --faint: #9a9caa;
  --line: #ddd6c7;
  --line-soft: #e7e1d4;

  /* signal colors */
  --signal: #2c46f0;       /* electric cobalt — primary accent */
  --signal-deep: #1d31c4;
  --signal-soft: rgba(44, 70, 240, 0.1);
  --marker: #e8501e;       /* warm orange — emphasis / cursor */
  --marker-soft: rgba(232, 80, 30, 0.12);

  /* semantic run-type colors */
  --t-feat: #2c46f0;
  --t-fix: #e8501e;
  --t-refactor: #8a4fd6;
  --t-chore: #5c6470;
  --t-docs: #1d8f7a;
  --t-spike: #c08a1e;

  /* status */
  --ok: #1d8f7a;
  --skip: #a7a195;
  --light: #c08a1e;

  /* type */
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* shape */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(24, 25, 29, 0.04), 0 18px 40px -22px rgba(24, 25, 29, 0.28);
  --shadow-lift: 0 2px 4px rgba(24, 25, 29, 0.05), 0 36px 70px -30px rgba(24, 25, 29, 0.4);
  --maxw: 1140px;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
::selection {
  background: var(--marker);
  color: #fff;
}

/* Blueprint grid + grain on the page backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(44, 70, 240, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 70, 240, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* --- Layout helpers ------------------------------------------------------- */
.wrap {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}
.section {
  padding: clamp(64px, 9vw, 132px) 0;
  position: relative;
}
.section-tight {
  padding: clamp(40px, 6vw, 80px) 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
  opacity: 0.6;
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 540;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-optical-sizing: auto;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 56ch;
}
.lead-accent {
  color: var(--signal);
}

/* --- Top nav -------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  transform: rotate(-4deg);
}
.brand b {
  font-weight: 700;
}
.brand .slash {
  color: var(--signal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.18s ease;
}
.nav-links a:hover {
  color: var(--signal);
}
.nav-links .nav-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  font-weight: 500;
  transition: all 0.2s ease;
}
.nav-links .nav-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  .nav-links .hide-sm {
    display: none;
  }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding: clamp(54px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  margin-bottom: 26px;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 0 0 4px var(--marker-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hero h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-optical-sizing: auto;
}
.hero h1 .it {
  font-style: italic;
  font-weight: 480;
  color: var(--signal);
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 30px;
}
.hero-sub code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-3);
  padding: 1px 7px;
  border-radius: 6px;
  color: var(--ink);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  margin-bottom: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: #000;
}
.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn svg {
  width: 17px;
  height: 17px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

/* Hero terminal */
.terminal {
  background: #14151a;
  border-radius: var(--radius);
  border: 1px solid #2a2c34;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  font-family: var(--mono);
  position: relative;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #1b1d24;
  border-bottom: 1px solid #2a2c34;
}
.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span {
  margin-left: 8px;
  font-size: 12px;
  color: #6b6e78;
}
.terminal-body {
  padding: 22px 20px 26px;
  font-size: 14.5px;
  line-height: 1.85;
  min-height: 252px;
}
.term-line {
  color: #c7cbd6;
  overflow-wrap: anywhere;
}
.term-prompt {
  color: #4ad295;
}
.term-cmd {
  color: #e7ecf3;
}
.term-cmd .slash {
  color: #6aa3ff;
}
.term-cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: #e8501e;
  margin-left: 2px;
  vertical-align: -0.18em;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.term-out {
  color: #8a93a6;
  font-size: 13px;
}
.term-out .ok { color: #4ad295; }
.term-out .step { color: #6aa3ff; }
.term-out .dim { color: #5b6477; }

/* --- Logo / proof strip --------------------------------------------------- */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
  padding: 26px 0;
}
.proof-item {
  display: flex;
  align-items: baseline;
  gap: 11px;
}
.proof-num {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1;
}
.proof-item:nth-child(2) .proof-num { color: var(--signal); }
.proof-item:nth-child(4) .proof-num { color: var(--marker); }
.proof-label {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 17ch;
  line-height: 1.3;
}

/* --- Why cards ------------------------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 940px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--ink-soft);
}
.why-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--signal-soft);
  color: var(--signal);
  margin-bottom: 18px;
}
.why-icon svg { width: 20px; height: 20px; }
.why-card h3 {
  font-family: var(--display);
  font-weight: 560;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.why-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}
.why-card .corner {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* --- The flow ------------------------------------------------------------- */
.flow {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}
@media (max-width: 820px) {
  .phases { grid-template-columns: 1fr; }
}
.phase {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 12px;
  position: relative;
}
.phase-1 { border-color: color-mix(in srgb, var(--signal) 35%, var(--line)); }
.phase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.phase-head h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 560;
  margin: 0;
  letter-spacing: -0.01em;
}
.phase-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  border-radius: 99px;
}
.phase-tag.interactive {
  background: var(--signal-soft);
  color: var(--signal);
}
.phase-tag.autonomous {
  background: var(--marker-soft);
  color: var(--marker);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  align-items: flex-start;
}
.step:first-child { border-top: none; }
.step-n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--paper-3);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.step-body strong {
  font-weight: 600;
  font-size: 15.5px;
  display: block;
  margin-bottom: 1px;
}
.step-body span {
  font-size: 13.5px;
  color: var(--muted);
}
.step-body .agent {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--signal);
}
.gate-band {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 17px 22px;
  font-size: 15px;
}
.gate-band .kbd {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
  border-radius: 6px;
  margin: 0 2px;
}
.gate-band strong { font-weight: 700; }
.gate-band .gate-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--marker);
  display: grid;
  place-items: center;
}
.gate-band .gate-icon svg { width: 18px; height: 18px; }

/* --- Flow diagram (SVG rail) --- */
.flow-diagram {
  margin: 4px 0 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px 18px;
  overflow-x: auto;
}
.flow-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 780px) {
  .flow-diagram { padding: 20px 18px 14px; }
  .flow-diagram svg { min-width: 700px; }
}
.fd-lane {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.fd-lane.p1 { fill: var(--signal); }
.fd-lane.p2 { fill: var(--marker); }
.fd-node rect {
  fill: var(--card);
  stroke: var(--line);
  stroke-width: 1.4;
}
.fd-node.p1 rect {
  fill: rgba(44, 70, 240, 0.07);
  stroke: color-mix(in srgb, var(--signal) 45%, var(--line));
}
.fd-node.trig rect {
  fill: rgba(232, 80, 30, 0.07);
  stroke: var(--marker);
  stroke-dasharray: 5 4;
}
.fd-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  fill: var(--ink);
}
.fd-node.p1 .fd-num { fill: var(--signal); }
.fd-node.trig .fd-num { fill: var(--marker); }
.fd-label {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  fill: var(--ink);
}
.fd-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--marker);
  letter-spacing: 0.04em;
}
.fd-conn {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.5;
}
.fd-handoff {
  fill: none;
  stroke: var(--marker);
  stroke-width: 1.9;
  stroke-dasharray: 7 6;
  animation: fdMarch 0.9s linear infinite;
}
@keyframes fdMarch {
  to { stroke-dashoffset: -13; }
}
.fd-handoff-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--marker);
}
.fd-loop {
  fill: none;
  stroke: var(--marker);
  stroke-width: 1.4;
  opacity: 0.5;
}
.fd-loop-label {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--marker);
  opacity: 0.85;
}
.fd-gate { fill: var(--marker); }
.fd-gate-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  fill: #fff;
}
.fd-pulse {
  fill: none;
  stroke: var(--marker);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: fdPulse 2.6s ease-out infinite;
}
@keyframes fdPulse {
  0% { opacity: 0.55; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}
.fd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 2px 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.fd-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fd-legend .lg {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  flex-shrink: 0;
}
.fd-legend .lg-gate { background: var(--marker); transform: rotate(45deg); border-radius: 2px; }
.fd-legend .lg-trig { background: rgba(232, 80, 30, 0.1); border: 1.4px dashed var(--marker); }
.fd-legend .lg-loop { border: 1.4px solid var(--marker); opacity: 0.6; border-radius: 50%; }
.fd-legend .lg-resume { border: 1.4px dotted var(--signal); border-radius: 50%; }
.fd-legend code {
  font-family: inherit;
  background: var(--paper-3);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--ink-soft);
}

/* --- Single source of truth / control-plane chart ------------------------- */
.sot-section { background: var(--paper); }

/* edges */
.sot-edge { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; }
.sot-edge-s { fill: none; stroke: var(--signal); stroke-width: 1.6; }
.sot-edge-m {
  fill: none;
  stroke: var(--marker);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  opacity: 0.8;
}

/* entry bar */
.sot-bar { fill: var(--paper-3); stroke: var(--line); stroke-width: 1.4; }
.sot-bar-k {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--muted);
}
.sot-bar-v { font-family: var(--mono); font-size: 13px; font-weight: 500; fill: var(--ink); }

/* orchestrator hub */
.sot-orch { fill: var(--ink); stroke: var(--ink); }
.sot-orch-t { font-family: var(--body); font-weight: 600; font-size: 15px; fill: var(--paper); }
.sot-orch-s { font-family: var(--mono); font-size: 11px; fill: #a7adba; }

/* state tag */
.sot-state { fill: var(--card); stroke: color-mix(in srgb, var(--marker) 35%, var(--line)); stroke-width: 1.4; }
.sot-state-t { font-family: var(--mono); font-weight: 700; font-size: 13px; fill: var(--ink); }
.sot-state-s { font-family: var(--mono); font-size: 10px; fill: var(--muted); }

/* agents */
.sot-agents { fill: rgba(44, 70, 240, 0.05); stroke: color-mix(in srgb, var(--signal) 38%, var(--line)); stroke-width: 1.4; }
.sot-agents-t { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; fill: var(--signal); }
.sot-agents-v { font-family: var(--body); font-weight: 600; font-size: 14px; fill: var(--ink); }
.sot-agents-s { font-family: var(--body); font-size: 12px; fill: var(--muted); }

/* router — the single source of truth */
.sot-router { fill: var(--marker-soft); stroke: var(--marker); stroke-width: 1.7; }
.sot-router-badge { fill: var(--marker); }
.sot-router-bt { font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: 0.03em; fill: #fff; }
.sot-router-t { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; fill: var(--marker); }
.sot-router-v { font-family: var(--mono); font-weight: 500; font-size: 13px; fill: var(--ink); }
.sot-router-s { font-family: var(--body); font-size: 12px; fill: var(--ink-soft); }

/* mirrors */
.sot-mirror { fill: var(--card); stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 5 4; }
.sot-mirror-t { font-family: var(--mono); font-weight: 700; font-size: 11.5px; fill: var(--muted); }
.sot-mirror-v { font-family: var(--mono); font-weight: 500; font-size: 12.5px; fill: var(--ink-soft); }
.sot-mirror-s { font-family: var(--body); font-size: 11.5px; fill: var(--faint); }

/* skills */
.sot-skills { fill: var(--paper-2); stroke: var(--line); stroke-width: 1.4; }
.sot-skills-t { font-family: var(--mono); font-weight: 700; font-size: 11.5px; fill: var(--ink-soft); }
.sot-skills-v { font-family: var(--body); font-weight: 600; font-size: 13.5px; fill: var(--ink); }
.sot-skills-s { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }

/* step badges + edge labels */
.sot-step circle { fill: var(--marker); }
.sot-step text { font-family: var(--mono); font-weight: 700; font-size: 11px; fill: #fff; text-anchor: middle; }
.sot-elabel { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }

/* legend swatches */
.fd-legend .lg-sot-router { background: var(--marker-soft); border: 1.6px solid var(--marker); }
.fd-legend .lg-sot-write { background: var(--ink); }
.fd-legend .lg-sot-mirror { background: var(--card); border: 1.4px dashed var(--line); }

/* audit property cards */
.sot-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.sot-check {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 17px;
}
.sot-check h4 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 560;
  letter-spacing: -0.01em;
  margin: 0 0 7px;
}
.sot-check .tick { color: var(--ok); font-weight: 700; font-size: 15px; }
.sot-check p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.sot-check code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--paper-3);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--ink-soft);
}
.sot-check strong { color: var(--ink); font-weight: 600; }

/* --- Type matrix ---------------------------------------------------------- */
.matrix-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}
.type-tab {
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 17px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  transition: all 0.18s ease;
  position: relative;
}
.type-tab::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  background: var(--tc, var(--muted));
  vertical-align: 0.5px;
}
.type-tab[data-type="feat"] { --tc: var(--t-feat); }
.type-tab[data-type="fix"] { --tc: var(--t-fix); }
.type-tab[data-type="refactor"] { --tc: var(--t-refactor); }
.type-tab[data-type="chore"] { --tc: var(--t-chore); }
.type-tab[data-type="docs"] { --tc: var(--t-docs); }
.type-tab[data-type="spike"] { --tc: var(--t-spike); }
.type-tab:hover { border-color: var(--ink-soft); }
.type-tab.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.matrix-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.matrix-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 24px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.15s ease;
}
.matrix-row:first-child { border-top: none; }
.matrix-row:hover { background: var(--paper); }
.matrix-phase {
  display: flex;
  align-items: baseline;
  gap: 13px;
}
.matrix-phase .pn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  width: 18px;
}
.matrix-phase .pname {
  font-weight: 600;
  font-size: 15.5px;
}
.matrix-phase .pdetail {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.matrix-status {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 99px;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.st-run { background: rgba(29, 143, 122, 0.12); color: var(--ok); }
.st-run::before { content: "✓ "; }
.st-skip { background: var(--paper-3); color: var(--skip); }
.st-light { background: rgba(192, 138, 30, 0.13); color: var(--light); }
.st-trigger { background: var(--marker-soft); color: var(--marker); }
.matrix-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
  padding-left: 24px;
  border-left: 2px solid var(--line);
}
.matrix-note b { color: var(--ink); font-weight: 700; }

/* --- Agents --------------------------------------------------------------- */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .agents-grid { grid-template-columns: 1fr; }
}
.agent-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}
.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--ink-soft);
}
.agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.agent-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.agent-name .at { color: var(--signal); }
.agent-phase {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--paper-3);
  padding: 3px 9px;
  border-radius: 99px;
}
.agent-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.agent-io {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  border-top: 1px solid var(--line-soft);
  padding-top: 13px;
}
.agent-io .io-row {
  display: flex;
  gap: 8px;
}
.agent-io .io-k {
  color: var(--faint);
  width: 50px;
  flex-shrink: 0;
}
.agent-io .io-v { color: var(--ink-soft); }
.agent-io .io-v b { color: var(--signal); font-weight: 500; }

.fanout {
  margin-top: 22px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.fanout h4 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--marker);
  margin: 0 0 6px;
}
.fanout > p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}
.fanout-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  transition: all 0.18s ease;
}
.chip:hover {
  border-color: var(--marker);
  color: var(--marker);
}

/* --- Skills --------------------------------------------------------------- */
.skills {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-pill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.skill-pill:hover {
  transform: translateY(-3px);
  border-color: var(--signal);
}
.skill-pill .sk-name {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.skill-pill .sk-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.skills-sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skills-sub::before,
.skills-sub::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.product-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.product-skills .chip:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* --- Artifacts ------------------------------------------------------------ */
.artifacts-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 820px) {
  .artifacts-grid { grid-template-columns: 1fr; }
}
.filetree {
  background: #14151a;
  border-radius: var(--radius);
  border: 1px solid #2a2c34;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2;
  box-shadow: var(--shadow);
  color: #c7cbd6;
}
.filetree .ft-dir { color: #6aa3ff; }
.filetree .ft-id { color: #9d7bff; }
.filetree .ft-file { color: #c7cbd6; }
.filetree .ft-cmt { color: #5b6477; }
.filetree .ft-state { color: #4ad295; }
.artifact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .artifact-list { grid-template-columns: 1fr; } }
.artifact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.artifact:hover {
  border-color: var(--ink-soft);
  transform: translateX(3px);
}
.artifact .af-name {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 3px;
}
.artifact .af-owner { color: var(--signal); }
.artifact .af-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* --- Demo ----------------------------------------------------------------- */
.demo {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.demo .eyebrow { color: #6aa3ff; }
.demo .eyebrow::before { background: #6aa3ff; }
.demo .section-head h2 { color: var(--paper); }
.demo .section-head p { color: #9aa0ad; }
.demo-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid #2f323c;
  background: #0b0d12;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: #15171d;
  border-bottom: 1px solid #2a2c34;
}
.demo-bar i {
  width: 11px; height: 11px; border-radius: 50%; display: block;
}
.demo-bar i:nth-child(1) { background: #ff5f57; }
.demo-bar i:nth-child(2) { background: #febc2e; }
.demo-bar i:nth-child(3) { background: #28c840; }
.demo-bar .demo-url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: #6b6e78;
}
.demo-bar .demo-open {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: #6aa3ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}
.demo-bar .demo-open:hover { color: #9d7bff; }
.demo-iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9.4;
}
.demo-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #161a23, #0b0d12);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.4s ease;
}
.demo-poster.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.demo-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.demo-play .play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(106, 163, 255, 0.16);
  border: 1px solid rgba(106, 163, 255, 0.4);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.demo-poster:hover .play-btn {
  transform: scale(1.08);
  background: rgba(106, 163, 255, 0.26);
}
.demo-play .play-btn svg { width: 28px; height: 28px; fill: #cfe0ff; margin-left: 4px; }
.demo-play .play-label {
  font-family: var(--mono);
  font-size: 13px;
  color: #8a93a6;
  letter-spacing: 0.04em;
}
.demo-play .play-label b { color: #e7ecf3; font-weight: 500; }

/* --- Install -------------------------------------------------------------- */
.install-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 860px) {
  .install-grid { grid-template-columns: 1fr; }
}
.codeblock {
  background: #14151a;
  border-radius: var(--radius);
  border: 1px solid #2a2c34;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.codeblock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid #2a2c34;
  background: #1b1d24;
}
.codeblock-head span {
  font-family: var(--mono);
  font-size: 12px;
  color: #6b6e78;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: #c7cbd6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 5px 11px;
  transition: all 0.18s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.copy-btn.copied { color: #4ad295; border-color: rgba(74, 210, 149, 0.4); }
.copy-btn svg { width: 13px; height: 13px; }
.codeblock pre {
  margin: 0;
  padding: 18px 18px 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
  color: #c7cbd6;
  overflow-x: auto;
}
.codeblock pre .c { color: #5b6477; }
.codeblock pre .p { color: #4ad295; }
.codeblock pre .f { color: #ffb84d; }
.codeblock pre .s { color: #6aa3ff; }
.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ins;
}
.install-steps li {
  position: relative;
  padding: 0 0 22px 44px;
  counter-increment: ins;
}
.install-steps li::before {
  content: counter(ins);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.install-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 32px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.install-steps strong {
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 3px;
}
.install-steps span {
  font-size: 14px;
  color: var(--muted);
}
.install-steps code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--paper-3);
  padding: 1px 6px;
  border-radius: 5px;
}
.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.flag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper-3);
  border-radius: 6px;
  padding: 4px 10px;
}
.flag b { color: var(--signal); font-weight: 500; }

/* --- CTA / Footer --------------------------------------------------------- */
.endcta {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 0;
}
.endcta h2 {
  font-family: var(--display);
  font-weight: 540;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 auto 18px;
  max-width: 16ch;
}
.endcta h2 .it { font-style: italic; color: var(--signal); font-weight: 460; }
.endcta p {
  color: var(--muted);
  font-size: 18px;
  max-width: 48ch;
  margin: 0 auto 30px;
}
.endcta .hero-cta { justify-content: center; }

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 52px 0 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand {
  max-width: 30ch;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}
.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--signal); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a { color: var(--signal); }

/* --- Changelog ------------------------------------------------------------ */
.changelog {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 22px;
}
.cl-ver {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--marker);
  background: var(--marker-soft);
  padding: 6px 14px;
  border-radius: 99px;
}
.cl-count {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.cl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.cl-chip {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 8px 15px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  transition: all 0.18s ease;
}
.cl-chip:hover { border-color: var(--ink-soft); }
.cl-chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cl-chip .ct { opacity: 0.55; margin-left: 6px; }
.cl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cl-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 19px;
  align-items: start;
  transition: border-color 0.18s ease;
}
.cl-entry:hover { border-color: var(--ink-soft); }
.cl-entry.is-hidden { display: none; }
@media (max-width: 560px) {
  .cl-entry { grid-template-columns: 1fr; gap: 9px; }
}
.cl-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
  font-weight: 700;
  margin-top: 2px;
}
.cl-badge.add { background: rgba(29, 143, 122, 0.13); color: var(--ok); }
.cl-badge.chg { background: var(--signal-soft); color: var(--signal); }
.cl-badge.fix { background: var(--marker-soft); color: var(--marker); }
.cl-badge.rem { background: var(--paper-3); color: var(--skip); }
.cl-badge.dep { background: rgba(192, 138, 30, 0.14); color: var(--light); }
.cl-badge.sec { background: rgba(232, 80, 30, 0.13); color: #c0341e; }
.cl-body { min-width: 0; }
.cl-text {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.cl-text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cl-text code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--paper-3);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--ink);
}
.cl-text a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}
.cl-text a:hover { text-decoration-color: var(--signal); }
.cl-text strong { color: var(--ink); font-weight: 700; }
.cl-text em { font-style: italic; }
.cl-text ul { margin: 9px 0 0; padding-left: 18px; }
.cl-text li { margin: 4px 0; }
.cl-more {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--signal);
  background: none;
  border: none;
  padding: 0;
}
.cl-more:hover { text-decoration: underline; }
.cl-foot {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cl-foot a {
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cl-foot a:hover { text-decoration: underline; }
.cl-loading,
.cl-error {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  padding: 28px 0;
}
.cl-error a { color: var(--signal); }

/* --- Scroll reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .terminal { transform: none; }
}

/* ============================================================ DASHBOARD === */
.dash-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 6px;
}
.dash-board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.db-conflict {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--marker-soft);
  border: 1px solid rgba(232, 80, 30, 0.35);
  border-left: 3px solid var(--marker);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.db-warn { color: var(--marker); font-size: 15px; line-height: 1.2; }
.db-file { font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.db-parties { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.db-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: 10px;
  padding: 12px 14px;
}
.db-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.db-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.db-host { color: var(--faint); font-family: var(--mono); font-size: 11px; font-weight: 400; }
.db-wlabel {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 12px 0 5px;
}
.db-repo { font-size: 13px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.db-repo b { color: var(--signal); }
.db-br {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--signal-soft);
  border-radius: 5px;
  padding: 0 6px;
  color: var(--ink-soft);
}
.db-files, .db-ln { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.db-ln { color: var(--marker); }
.db-dir { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 4px; }
.db-act { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; }

.dash-feats { display: grid; gap: 20px; }
.dash-feat h3 { font-size: 17px; margin: 0 0 4px; }
.dash-feat p { margin: 0; color: var(--muted); line-height: 1.55; }

.dash-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.dash-join {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
.dash-note { font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .dash-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Focus visibility & skip link (a11y) ===== */
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font: 600 13px/1 var(--body);
  text-decoration: none;
  box-shadow: var(--shadow-lift);
  transition: top 0.16s ease;
}
.skip-link:focus { top: 12px; }

:where(a[href], button, [tabindex="0"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

#main { scroll-margin-top: 88px; }
#main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}
