:root {
  color-scheme: dark;
  --bg: #070b0f;
  --surface: #0d141b;
  --surface-2: #111c24;
  --ink: #eef8f5;
  --muted: #93a5a0;
  --line: #20303a;
  --teal: #38d6be;
  --blue: #7da7ff;
  --green: #69d987;
  --amber: #f0b75a;
  --red: #ff7b72;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --content: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -5%, rgba(56, 214, 190, 0.16), transparent 29%),
    radial-gradient(circle at 92% 20%, rgba(125, 167, 255, 0.12), transparent 25%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--teal);
  color: #03110f;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 780;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  background: #121d26;
  color: var(--ink);
  outline: none;
}

main { padding-bottom: 96px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
  min-height: 690px;
  padding: 64px 0 88px;
}

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

.eyebrow {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h3 { letter-spacing: -0.015em; }

.lede {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #03110f;
}

.button.secondary { background: rgba(10, 16, 22, 0.7); }

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font: 650 0.82rem/1.5 "Cascadia Mono", "Consolas", monospace;
}

.hero-note span { color: var(--green); }

.project-ascii {
  min-width: 0;
  font-family: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  letter-spacing: 0;
  white-space: pre;
}
.project-ascii.box { color: var(--teal); }
.project-ascii.bench { color: var(--amber); }
.project-ascii.pilot { color: var(--blue); }
.project-ascii.mind { color: var(--green); }

.workflow,
.privacy,
.projects,
.get-started,
.proof { scroll-margin-top: 24px; }

.workflow {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(17, 28, 36, 0.96), rgba(9, 16, 22, 0.96));
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-intro > p {
  max-width: 480px;
  margin: 0 0 2px auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-track li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 21px 24px 8px 0;
}

.workflow-track li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 36px;
  right: 17px;
  color: #40505a;
  font-weight: 800;
}

.workflow-track span {
  color: var(--muted);
  font: 750 0.7rem/1 "Cascadia Mono", "Consolas", monospace;
}

.workflow-track strong {
  margin-top: 10px;
  font-size: 1.25rem;
}

.workflow-track small {
  max-width: 180px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.workflow-track .box strong { color: var(--teal); }
.workflow-track .bench strong { color: var(--amber); }
.workflow-track .pilot strong { color: var(--blue); }
.workflow-track .mind strong { color: var(--green); }

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(42px, 7vw, 84px);
  align-items: center;
  margin-top: 72px;
  padding: 56px;
  border: 1px solid rgba(105, 217, 135, 0.32);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(105, 217, 135, 0.1), transparent 38%),
    linear-gradient(135deg, rgba(17, 28, 36, 0.98), rgba(9, 16, 22, 0.98));
}

.privacy-copy h2 { margin-bottom: 18px; }
.privacy-copy .lede { font-size: 1rem; }

.privacy-note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.privacy-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-points li:first-child { padding-top: 0; }
.privacy-points li:last-child { padding-bottom: 0; border-bottom: 0; }

.privacy-points > li > span {
  padding-top: 3px;
  color: var(--green);
  font: 800 0.7rem/1 "Cascadia Mono", "Consolas", monospace;
}

.privacy-points div { display: flex; flex-direction: column; gap: 5px; }
.privacy-points strong { font-size: 1.05rem; }
.privacy-points small { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.projects,
.proof { padding-top: 112px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform 160ms ease, border-color 160ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #334854;
}

.project-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: rgba(7, 11, 15, 0.36);
}

.project-role {
  align-self: flex-start;
  margin: 0 0 36px;
  color: var(--muted);
  font: 750 0.66rem/1.2 "Cascadia Mono", "Consolas", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-ascii {
  width: fit-content;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  font-size: clamp(0.52rem, 0.75vw, 0.68rem);
  font-weight: 800;
  line-height: 1.08;
}

.project-copy {
  display: flex;
  flex-direction: column;
  padding: 28px 25px 24px;
}

.project-copy h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.project-copy > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.project-copy .best-for {
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.best-for strong { color: var(--ink); }

.project-copy a,
.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.project-copy a span,
.text-link span { color: var(--teal); transition: transform 160ms ease; }
.project-copy a:hover span,
.text-link:hover span { transform: translateX(4px); }

.box-card { border-top-color: rgba(56, 214, 190, 0.55); }
.bench-card { border-top-color: rgba(240, 183, 90, 0.55); }
.pilot-card { border-top-color: rgba(125, 167, 255, 0.55); }
.mind-card { border-top-color: rgba(105, 217, 135, 0.55); }

.get-started {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 86px);
  align-items: center;
  margin-top: 112px;
  padding: 56px;
  border: 1px solid rgba(56, 214, 190, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(56, 214, 190, 0.11), transparent 38%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}

.start-copy h2 { margin-bottom: 18px; }
.start-copy .lede { margin-bottom: 24px; font-size: 1rem; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  min-height: 92px;
}

.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: var(--line);
}

.step-no {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(56, 214, 190, 0.4);
  border-radius: 50%;
  background: #0b1719;
  color: var(--teal);
  font-weight: 850;
}

.steps h3 { margin: 2px 0 5px; font-size: 1.05rem; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.proof-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.proof-summary p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 24px;
}

.proof-summary p:not(:last-child) { border-right: 1px solid var(--line); }
.proof-summary strong { color: var(--green); font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -0.04em; }
.proof-summary span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.benchmark-card,
.proof-aside {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.benchmark-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.benchmark-card figcaption {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.benchmark-card figcaption strong { color: var(--ink); }

.proof-aside {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.proof-aside h3 { margin-bottom: 12px; font-size: 1.45rem; line-height: 1.15; }
.proof-aside > p:not(.eyebrow) { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.learning-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.learning-stat strong { color: var(--green); font-size: 2rem; letter-spacing: -0.04em; }
.learning-stat span { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

.method-details {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 20, 27, 0.7);
  overflow: hidden;
}

.method-details summary {
  padding: 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.method-details summary:hover { background: rgba(17, 28, 36, 0.8); }

.method-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
  padding: 0 18px 18px;
}

.method-body .benchmark-card { padding: 14px; }
.method-note { padding: 18px; }
.method-note h3 { margin-bottom: 10px; }
.method-note p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 30px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand { display: flex; flex-direction: column; gap: 2px; }
footer span { color: var(--ink); font-weight: 780; }
footer .version { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
  }

  .hero-copy { max-width: 720px; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-role { margin-bottom: 20px; }
  .project-ascii { font-size: clamp(0.6rem, 1.35vw, 0.78rem); }
  .privacy { padding: 44px; }
  .get-started { padding: 44px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-aside { min-height: 360px; }
  .method-body { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 32px, var(--content)); }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .site-header nav a { white-space: nowrap; }
  .hero { gap: 44px; padding: 50px 0 76px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-note { font-size: 0.74rem; }
  .section-intro { grid-template-columns: 1fr; gap: 18px; }
  .section-intro > p { margin-left: 0; }
  .workflow { padding: 28px 24px; }
  .workflow-track { grid-template-columns: 1fr 1fr; }
  .workflow-track li:nth-child(2)::after { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: minmax(150px, 0.7fr) 1.3fr; min-height: 300px; }
  .project-visual { min-height: 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .project-ascii { font-size: clamp(0.45rem, 1.45vw, 0.65rem); }
  .privacy { grid-template-columns: 1fr; padding: 36px 28px; }
  .get-started { grid-template-columns: 1fr; padding: 36px 28px; }
  .proof-summary { grid-template-columns: 1fr; }
  .proof-summary p:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-aside { min-height: 320px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .hero { padding-top: 40px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .workflow-track { grid-template-columns: 1fr; }
  .workflow-track li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: auto;
    bottom: -4px;
    left: 2px;
  }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-ascii { font-size: 0.62rem; }
  .project-copy { padding: 24px 22px; }
  .projects, .proof { padding-top: 86px; }
  .privacy { margin-top: 56px; padding: 30px 22px; }
  .get-started { margin-top: 86px; padding: 30px 22px; }
  .proof-aside { min-height: 0; }
}

/* The install command on the get-started section. Long URLs must scroll inside
   the block rather than widening the page on a narrow screen. */
.install-command {
  margin: clamp(14px, 2vw, 20px) 0;
  padding: clamp(12px, 1.6vw, 18px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow-x: auto;
}

.install-command code {
  display: block;
  color: #d8fff7;
  font-family: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre;
}

/* A local, self-contained ecosystem illustration. No remote assets or renderer. */
[hidden] { display: none !important; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.gradient-text {
  color: var(--teal);
  background: linear-gradient(110deg, #b3ffe4 5%, #38d6be 55%, #7da7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--teal); }
.hero .lede { max-width: 460px; }
.button.primary { box-shadow: 0 4px 30px #38d6be18; }
.button.primary:hover { background: #85f1d7; border-color: #85f1d7; box-shadow: 0 6px 36px #38d6be30; }
.stack-experience {
  --active: var(--teal);
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid #2c4644;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 40%, #12352e80, transparent 65%), linear-gradient(145deg, #101e24, #0a1016);
  box-shadow: 0 30px 90px #0005, 0 0 90px #38d6be08;
}
.stack-experience[data-active="bench"] { --active: var(--amber); }
.stack-experience[data-active="pilot"] { --active: var(--blue); }
.stack-experience[data-active="mind"] { --active: var(--green); }
.experience-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-bottom: 1px solid #203832; }
.experience-topline > span { display: flex; align-items: center; gap: 8px; color: #aec7be; font: 650 .62rem/1.4 monospace; letter-spacing: .12em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px #38d6be80; }
.motion-toggle { padding: 6px; border: 0; background: transparent; color: var(--muted); font: .65rem monospace; cursor: pointer; }
.motion-toggle:hover { color: var(--ink); }
.stack-map { position: relative; aspect-ratio: 560 / 390; }
.connection-art { display: block; width: 100%; height: 100%; }
.network-paths path { stroke-opacity: .3; stroke-dasharray: 4 8; animation: signal-flow 8s linear infinite; }
[data-active="box"] .path-box, [data-active="bench"] .path-bench,
[data-active="pilot"] .path-pilot, [data-active="mind"] .path-mind { stroke-opacity: 1; stroke-width: 2; }
.core-float { animation: core-float 6s ease-in-out infinite; }
.core-shadow { transform-origin: 280px 255px; animation: core-shadow 6s ease-in-out infinite; }
.core-label { position: absolute; top: 65%; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #79a89a; font: .53rem monospace; letter-spacing: .16em; }
.tool-node {
  --node-color: var(--teal);
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 36%;
  padding: 14px 12px;
  border: 1px solid #263d3b;
  border-radius: 11px;
  background: #0c171cf2;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px #0003;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.tool-node:hover { transform: translateY(-3px); border-color: var(--node-color); }
.tool-node[aria-pressed="true"] { border-color: var(--node-color); box-shadow: 0 0 24px color-mix(in srgb, var(--node-color) 12%, transparent); }
.node-symbol { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid color-mix(in srgb, var(--node-color) 30%, transparent); border-radius: 7px; color: var(--node-color); font: 700 1.1rem monospace; background: color-mix(in srgb, var(--node-color) 6%, transparent); }
.tool-node strong { display: block; font-size: .9rem; letter-spacing: -.02em; }
.tool-node small { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; white-space: nowrap; }
.node-box { top: 15%; left: 5%; }
.node-bench { --node-color: var(--amber); top: 15%; right: 5%; }
.node-pilot { --node-color: var(--blue); bottom: 12%; left: 5%; }
.node-mind { --node-color: var(--green); bottom: 12%; right: 5%; }
.tool-readout { margin: 0 20px 20px; padding: 18px 20px; border: 1px solid #263832; border-radius: 10px; background: #070e12a0; }
.readout-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--active); font: 700 .65rem/1.4 monospace; letter-spacing: .05em; }
.preview-label { color: #7a9189; font-weight: 400; font-size: .58rem; }
#tool-description { min-height: 44px; margin-bottom: 13px; font-size: .86rem; color: #b1c3bc; line-height: 1.6; }
#tool-link { display: inline-flex; gap: 8px; color: var(--active); font-size: .8rem; font-weight: 700; text-decoration: none; }
#tool-link:hover { text-decoration: underline; }
.experience-caption { position: absolute; left: 0; right: 0; bottom: -34px; margin: 0; text-align: center; color: #7a9189; font: .7rem monospace; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@keyframes core-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes core-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.8); opacity: .5; } }
@keyframes signal-flow { to { stroke-dashoffset: -120; } }
.project-visual { position: relative; }
.project-visual::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--card-color) 10%, transparent), transparent 70%); }
.box-card { --card-color: var(--teal); }
.bench-card { --card-color: var(--amber); }
.pilot-card { --card-color: var(--blue); }
.mind-card { --card-color: var(--green); }
.project-card:hover { border-color: var(--card-color); }
.project-ascii { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--card-color) 25%, transparent)); }
.get-started > * { min-width: 0; }
.install-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.platform-picker { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #070e12; }
.platform-picker button, .copy-command { padding: 8px 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: .75rem; cursor: pointer; }
.platform-picker button[aria-pressed="true"] { background: #203832; color: #d8fff7; }
.copy-command { border: 1px solid var(--line); color: var(--teal); }
.copy-command:hover { border-color: var(--teal); }
.install-feedback { min-height: 1.5em; margin: 0 0 10px; color: var(--teal); font-size: .75rem; line-height: 1.5; }
.install-feedback:empty { display: none; }
.install-note { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.closing-cta { margin-top: 112px; padding: 70px 20px 10px; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 100%, #38d6be0a, transparent 70%); }
.closing-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.closing-cta > p:not(.eyebrow) { margin: 22px 0 26px; color: var(--muted); line-height: 1.6; }
@media (max-width: 920px) {
  .stack-experience { max-width: 600px; justify-self: center; }
  .hero .lede { max-width: 600px; }
  .hero { gap: 40px; }
}
@media (max-width: 520px) {
  .experience-topline { padding: 12px 14px; }
  .experience-topline > span { font-size: .53rem; letter-spacing: .06em; }
  .motion-toggle { font-size: .6rem; }
  .tool-node { gap: 7px; width: 40%; padding: 10px 8px; }
  .node-box, .node-pilot { left: 3%; }
  .node-bench, .node-mind { right: 3%; }
  .node-symbol { flex-basis: 23px; height: 26px; font-size: .85rem; }
  .tool-node strong { font-size: .75rem; }
  .tool-node small { font-size: .51rem; margin-top: 3px; }
  .core-label { font-size: .43rem; }
  .tool-readout { margin: 0 12px 12px; padding: 14px; }
  #tool-description { min-height: 63px; font-size: .8rem; }
  .hero-note { max-width: 340px; line-height: 1.8; }
  .closing-cta { margin-top: 80px; padding-top: 50px; }
}

.tool-node:disabled { cursor: default; }
@media (max-width: 360px) {
  .tool-node { gap: 5px; padding-inline: 6px; }
  .tool-node small { white-space: normal; }
}

/* Local friend: the optional mascot that mascot.js adds. The anchor is a
   zero-size point at its feet, which the script moves along headings and panel
   edges. Only the figure itself takes the pointer, so it rarely covers a link. */
.local-friend {
  --friend-base: #2f9dff;
  --friend-accent: var(--friend-base);
  --friend-size: clamp(104px, 11vw, 150px);
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.local-friend.is-fixed { position: fixed; }
.friend-stage {
  position: absolute;
  left: calc(var(--friend-size) * -.5);
  /* --friend-ground is how far up the canvas the feet are drawn. */
  bottom: calc(var(--friend-size) * -1.2 * var(--friend-ground, .16));
  width: var(--friend-size);
  aspect-ratio: 5 / 6;
  opacity: 0;
  transition: opacity 500ms ease;
}
.local-friend.is-ready .friend-stage { opacity: 1; }
.friend-stage::before {
  content: "";
  position: absolute;
  inset: 8% -4% 12%;
  background: radial-gradient(ellipse at 50% 46%, color-mix(in srgb, var(--friend-accent) 16%, transparent), transparent 68%);
}
.friend-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--friend-accent) 38%, transparent));
}
.friend-body {
  position: absolute;
  inset: 13% 16% 15%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
}
.local-friend.is-ready .friend-body,
.local-friend.is-ready .friend-dismiss { pointer-events: auto; }
.friend-body:focus-visible { outline-offset: 2px; }
.friend-dismiss {
  position: absolute;
  top: 6%;
  right: -2%;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0c171cf2;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease;
}
.friend-stage:hover .friend-dismiss,
.friend-dismiss:focus-visible,
.friend-body:focus-visible ~ .friend-dismiss { opacity: 1; }
.friend-dismiss:hover { border-color: var(--friend-accent); color: var(--ink); }
/* The script places the bubble with a transform, relative to the feet. */
.friend-bubble {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: max-content;
  max-width: min(236px, 62vw);
  margin: 0;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--friend-accent) 46%, var(--line));
  border-radius: 11px;
  background: #0c171cf2;
  box-shadow: 0 8px 24px #0006;
  color: var(--ink);
  font: 600 .72rem/1.5 "Cascadia Mono", "Consolas", monospace;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.friend-bubble.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.friend-return {
  position: fixed;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #1c4a78;
  border-radius: 11px;
  background: #0c171cf2;
  color: #5cb4ff;
  font: 700 .82rem monospace;
  cursor: pointer;
  box-shadow: 0 0 18px #2f9dff26;
}
.friend-return:hover { border-color: #5cb4ff; }
@media (hover: none) {
  .friend-dismiss { opacity: .75; }
}
@media (max-width: 520px) {
  .friend-bubble { padding: 8px 10px; font-size: .68rem; }
}
@media print {
  .local-friend, .friend-return { display: none; }
}
