:root {
  --sm-bg: #080a08;
  --sm-bg-deep: #060906;
  --sm-paper: #f2f5f2;
  --sm-accent: #00ff66;
  --sm-accent-hover: #61ff9f;
  --sm-accent-soft: #4ade80;
  --sm-muted: #a7b0aa;
  --sm-line: rgba(167, 176, 170, 0.18);
}

.sm-section {
  position: relative;
  background: var(--sm-bg);
  color: var(--sm-paper);
  font-family: Inter, "Noto Sans SC", "PingFang SC", sans-serif;
  scroll-margin-top: 72px;
}

.sm-section .site-container {
  position: relative;
  z-index: 1;
}

.sm-kicker {
  margin: 0;
  color: #00ff66;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sm-display {
  margin: 0;
  color: var(--sm-paper);
  font-size: clamp(40px, 4.8vw, 72px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.sm-lede {
  max-width: 760px;
  margin: 18px 0 0;
}

.sm-mute {
  color: rgba(167, 176, 170, 0.48);
}

.sm-hairline {
  display: block;
  height: 1px;
  background: #2a332a;
  border: 0;
}

.sm-caption {
  margin: 0;
  color: rgba(167, 176, 170, 0.62);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prototype-header {
  position: fixed;
  background: rgba(8, 10, 8, 0.18);
  backdrop-filter: blur(14px);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.prototype-header.is-scrolled {
  background: rgba(8, 10, 8, 0.92);
  border-bottom-color: #2a332a;
}

/* ── Principle ── */

.sm-principle {
  --paper: var(--sm-bg);
  --ink: var(--sm-paper);
  --mute: rgba(167, 176, 170, 0.78);
  --line: var(--sm-line);
  --green: var(--sm-accent);
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.sm-principle-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1.08fr);
  gap: 48px 64px;
  align-items: center;
  min-height: 100svh;
  padding-top: 108px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.sm-principle-copy {
  max-width: 620px;
}

.sm-principle-kicker {
  margin: 0 0 22px;
  color: rgba(167, 176, 170, 0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sm-principle-display {
  margin: 0;
  color: var(--ink);
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.sm-principle-lede {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--mute);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.62;
}

.sm-principle-rule {
  display: block;
  width: 42px;
  height: 2px;
  margin: 36px 0 28px;
  background: var(--sm-accent);
}

.sm-principle-axiom {
  margin: 0;
  color: var(--ink);
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.sm-principle-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 520px;
  align-content: end;
}

.sm-principle-canvas {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
}

.sm-principle-legend {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  justify-content: center;
  margin: 8px 0 0;
  padding: 0;
  color: rgba(167, 176, 170, 0.42);
  font-size: 16px;
  letter-spacing: 0.02em;
  list-style: none;
}

.sm-principle-legend li {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 8px;
  transition: color 280ms ease;
}

.sm-principle-legend li.is-active {
  color: var(--ink);
}

.sm-legend-line,
.sm-legend-dot {
  flex: 0 0 auto;
}

.sm-legend-line {
  display: block;
  width: 18px;
  height: 1px;
  background-color: rgba(167, 176, 170, 0.28);
}

.sm-legend-dot {
  display: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--sm-accent);
}

.sm-principle-legend li.is-active .sm-legend-line {
  display: none;
}

.sm-principle-legend li.is-active .sm-legend-dot {
  display: block;
}

/* ── Technology ── */

.sm-technology {
  --tech-bg: var(--sm-bg);
  --tech-panel: var(--sm-bg-deep);
  --tech-ink: var(--sm-paper);
  --tech-mute: rgba(167, 176, 170, 0.78);
  --tech-lime: var(--sm-accent);
  --tech-line: rgba(0, 255, 102, 0.22);
  background: var(--tech-bg);
  color: var(--tech-ink);
  padding: 0;
}

.sm-tech-shell {
  padding-top: 88px;
  padding-bottom: 28px;
}

.sm-tech-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--tech-line);
}

.sm-tech-display {
  margin: 0;
  color: var(--tech-ink);
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.sm-tech-lede {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--tech-mute);
  font-size: 20px;
  line-height: 1.5;
}

.sm-tech-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-left: 28px;
  border-left: 1px solid var(--tech-lime);
  color: var(--tech-lime);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.sm-tech-explore span {
  display: inline-block;
  transition: transform 220ms ease;
}

.sm-tech-explore:hover span {
  transform: translateX(6px);
}

.sm-tech-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 54px 0 18px;
}

.sm-tech-step {
  display: grid;
  grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.sm-tech-step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--tech-lime);
  border-radius: 50%;
  color: var(--tech-lime);
  font-size: 13px;
  font-weight: 600;
}

.sm-tech-step-copy h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sm-tech-step-copy p {
  margin: 0;
  color: var(--tech-mute);
  font-size: 14px;
  line-height: 1.55;
}

.sm-tech-stage {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 320ms ease;
}

.sm-tech-graph {
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}

.sm-tech-graph circle {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 280ms ease, fill 280ms ease;
}

.sm-tech-graph .sm-tech-edge {
  transition: stroke 280ms ease, stroke-width 280ms ease, opacity 280ms ease;
}

.sm-tech-stage:hover,
.sm-tech-step:hover .sm-tech-stage {
  transform: scale(1.045);
}

.sm-tech-stage:hover .sm-tech-graph circle,
.sm-tech-step:hover .sm-tech-graph circle {
  transform: scale(1.12);
  fill: #61ff9f;
}

.sm-tech-stage:hover .sm-tech-graph .sm-tech-edge,
.sm-tech-step:hover .sm-tech-graph .sm-tech-edge {
  stroke: #61ff9f;
  opacity: 1;
}

.sm-tech-stage:hover .sm-tech-graph .sm-tech-edge.is-fade,
.sm-tech-step:hover .sm-tech-graph .sm-tech-edge.is-fade {
  opacity: 0.55;
}

.sm-tech-arrow {
  color: var(--tech-lime);
  font-size: 22px;
  text-align: center;
}

.sm-tech-captions {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 36px;
}

.sm-tech-caption {
  margin: 0;
  color: var(--tech-lime);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
}

.sm-tech-caption::before,
.sm-tech-caption::after {
  display: inline-block;
  width: 18%;
  height: 1px;
  margin: 0 12px;
  background: var(--tech-lime);
  vertical-align: middle;
  content: "";
}

.sm-tech-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(200, 232, 106, 0.16);
}

.sm-tech-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 188px;
  padding: 36px 32px;
  background: var(--tech-panel);
  cursor: default;
  transition: background-color 240ms ease;
}

.sm-tech-card:hover,
.sm-tech-card:focus-visible {
  background: rgba(0, 255, 102, 0.05);
}

.sm-tech-icon-flow .sm-tech-flow-path {
  stroke-dasharray: 140;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms ease, stroke 240ms ease;
}

.sm-tech-card:hover .sm-tech-icon-flow .sm-tech-flow-path,
.sm-tech-card:focus-visible .sm-tech-icon-flow .sm-tech-flow-path {
  stroke-dashoffset: -36;
  stroke: #61ff9f;
}

.sm-tech-card:hover .sm-tech-icon-flow circle,
.sm-tech-card:focus-visible .sm-tech-icon-flow circle {
  fill: #61ff9f;
}

.sm-tech-icon-dots circle {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 240ms ease, fill 240ms ease;
}

.sm-tech-card:hover .sm-tech-icon-dots circle:nth-child(6),
.sm-tech-card:hover .sm-tech-icon-dots circle:nth-child(11),
.sm-tech-card:focus-visible .sm-tech-icon-dots circle:nth-child(6),
.sm-tech-card:focus-visible .sm-tech-icon-dots circle:nth-child(11) {
  transform: scale(1.35);
  fill: #61ff9f;
}

.sm-tech-icon-lanes line {
  transition: stroke 240ms ease, stroke-dasharray 400ms ease;
}

.sm-tech-card:hover .sm-tech-icon-lanes line,
.sm-tech-card:focus-visible .sm-tech-icon-lanes line {
  stroke: #61ff9f;
  stroke-dasharray: 4 3;
}

.sm-tech-card + .sm-tech-card {
  border-left: 1px solid rgba(200, 232, 106, 0.12);
}

.sm-tech-icon {
  width: 88px;
  height: 56px;
}

.sm-tech-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(232, 236, 220, 0.55);
  font-size: 13px;
}

.sm-tech-card h3 {
  margin: 0 0 12px;
  font-family: Fraunces, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sm-tech-card p {
  max-width: 280px;
  margin: 0;
  color: var(--tech-mute);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Research ── */

.sm-research {
  overflow: hidden;
  padding-top: 108px;
  padding-bottom: 120px;
}

.sm-research-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 48px;
}

.sm-research-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(40px, 4.4vw, 63px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sm-research-title::before {
  width: 3px;
  height: 42px;
  background: #00ff66;
  content: "";
}

.sm-research-copy .sm-lede {
  margin-top: 18px;
  margin-left: 18px;
}

.sm-paper {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 8px 18px;
  padding: 26px 8px 26px 18px;
  border-top: 1px solid #2a332a;
  transition: background-color 220ms ease;
}

.sm-paper:last-child {
  border-bottom: 1px solid #2a332a;
}

.sm-paper-num {
  color: rgba(244, 241, 234, 0.78);
  font-size: 22px;
  font-weight: 500;
}

.sm-paper h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sm-paper time {
  display: block;
  margin-bottom: 10px;
  color: rgba(167, 176, 170, 0.55);
  font-size: 13px;
}

.sm-paper p {
  max-width: 640px;
  margin: 0;
  color: rgba(244, 241, 234, 0.55);
  font-size: 14px;
  line-height: 1.7;
}

.sm-paper-links {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
  color: #00ff66;
  font-size: 13px;
  white-space: nowrap;
}

.sm-paper-links a {
  display: inline-flex;
  transition: transform 220ms ease;
}

.sm-paper-links a:hover {
  transform: translateX(5px);
}

.sm-paper-links span {
  color: rgba(167, 176, 170, 0.35);
}

.sm-paper {
  position: relative;
}

.sm-paper::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 2px;
  background: #00ff66;
  content: "";
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 220ms ease, transform 220ms ease;
}

.sm-paper:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.sm-paper h3 {
  background-image: linear-gradient(#00ff66, #00ff66);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 280ms ease;
}

.sm-paper:hover h3 {
  background-size: 100% 1px;
}

.sm-research-echo {
  position: absolute;
  z-index: 0;
  top: 80px;
  right: -40px;
  width: min(32vw, 380px);
  height: 70%;
  pointer-events: none;
  opacity: 0.22;
}

/* ── Benchmarks ── */

.sm-benchmarks {
  padding-top: 96px;
  padding-bottom: 110px;
}

.sm-bench-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.sm-bench-head::before {
  width: 28px;
  height: 1px;
  background: #00ff66;
  content: "";
}

.sm-bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 1px minmax(240px, 0.42fr);
  gap: 48px;
  align-items: start;
  margin-top: 36px;
}

.sm-bench-visual {
  min-width: 0;
}

.sm-bench-visual-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.sm-plot-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.sm-plot {
  position: relative;
  width: 100%;
  min-height: 460px;
}

.sm-plot svg {
  display: block;
  width: 100%;
  height: auto;
}

.sm-plot.is-leaving {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.sm-plot.is-entering {
  animation: sm-plot-in 520ms ease;
}

@keyframes sm-plot-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sm-plot-energy {
  margin-top: 36px;
}

.sm-bench-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.sm-bench-nav .sm-bench-link {
  margin-left: auto;
}

.sm-bench-nav-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(167, 176, 170, 0.28);
  background: transparent;
  color: var(--sm-paper);
  cursor: pointer;
}

.sm-bench-nav-button:hover,
.sm-bench-nav-button:focus-visible {
  border-color: #00ff66;
  color: #00ff66;
}

.sm-bench-counter {
  color: rgba(167, 176, 170, 0.72);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.sm-bench-link {
  color: #00ff66;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.sm-bench-link.is-all {
  color: rgba(242, 245, 242, 0.78);
}

.sm-bench-link:hover,
.sm-bench-link:focus-visible {
  color: #61ff9f;
}

.sm-chart-tip {
  position: absolute;
  z-index: 2;
  min-width: 128px;
  padding: 10px 12px;
  border: 1px solid #2a332a;
  background: rgba(8, 10, 8, 0.94);
  color: var(--sm-paper);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 120ms ease;
}

.sm-chart-tip.is-on {
  opacity: 1;
}

.sm-bench-aside {
  padding-top: 8px;
}

.sm-stat {
  width: 100%;
  padding: 8px 0 28px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sm-stat + .sm-stat {
  border-top: 1px solid #2a332a;
  padding-top: 28px;
}

.sm-stat-value {
  display: block;
  color: rgba(0, 255, 102, 0.42);
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  transition: color 180ms ease;
}

.sm-stat p {
  max-width: 280px;
  margin: 10px 0 0;
  color: rgba(242, 245, 242, 0.58);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  transition: color 180ms ease;
}

.sm-stat.is-active .sm-stat-value {
  color: #00ff66;
}

.sm-stat.is-active p {
  color: var(--sm-paper);
}

.sm-bench-note {
  margin-top: 8px;
}

/* ── What we build ── */

.sm-build {
  --build-bg: var(--sm-bg);
  --build-ink: var(--sm-paper);
  --build-mute: rgba(167, 176, 170, 0.72);
  --build-line: var(--sm-line);
  --build-lime: var(--sm-accent);
  --build-dot: var(--sm-accent);
  background: var(--build-bg);
  color: var(--build-ink);
  padding: 0;
}

.sm-build-shell {
  padding-top: 88px;
  padding-bottom: 72px;
}

.sm-build-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--build-line);
}

.sm-build-title {
  margin: 0;
  color: var(--build-ink);
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.sm-build-lede {
  margin: 14px 0 0;
  color: var(--build-mute);
  font-size: 20px;
}

.sm-build-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--build-lime);
  color: var(--build-ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.sm-build-link span {
  display: inline-block;
  color: var(--build-lime);
  transition: transform 220ms ease;
}

.sm-build-link:hover span {
  transform: translateX(6px);
}

.sm-build-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
  padding: 42px 0;
  border-bottom: 1px solid var(--build-line);
}

.sm-build-index {
  position: relative;
  padding-left: 18px;
}

.sm-build-index::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: var(--build-line);
  content: "";
}

.sm-build-index::after {
  position: absolute;
  top: 54px;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--build-dot);
  content: "";
}

.sm-build-num {
  display: block;
  font-family: Fraunces, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sm-build-kind {
  display: block;
  margin-top: 10px;
  color: var(--build-lime);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sm-build-copy h3 {
  margin: 0 0 14px;
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sm-build-copy h3::after {
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 14px;
  background: var(--build-lime);
  content: "";
}

.sm-build-copy p {
  max-width: 240px;
  margin: 0;
  color: var(--build-mute);
  font-size: 16px;
  line-height: 1.6;
}

.sm-build-visual {
  min-width: 0;
}

.sm-build-models {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
}

.sm-build-stage svg,
.sm-build-systems svg,
[data-sys-step] svg,
[data-build-hardware] svg {
  display: block;
  width: 100%;
  height: auto;
}

.sm-build-stage,
.sm-build-systems figure {
  cursor: pointer;
}

.sm-build-stage svg circle,
.sm-build-stage svg line,
.sm-build-stage svg rect,
.sm-build-stage svg polygon,
.sm-build-systems svg circle,
.sm-build-systems svg rect,
.sm-build-systems svg line {
  transition: fill 240ms ease, stroke 240ms ease, opacity 240ms ease, transform 240ms ease;
}

.sm-build-models .sm-build-stage:hover svg,
.sm-build-hardware .sm-build-stage:hover svg {
  transform: scale(1.02);
  transform-origin: center;
}

.sm-build-models .sm-build-stage:hover svg circle:not([fill="transparent"]),
.sm-build-models .sm-build-stage:hover svg polygon {
  fill: var(--sm-accent);
}

.sm-build-models .sm-build-stage:hover svg line,
.sm-build-models .sm-build-stage:hover svg path {
  stroke: var(--sm-accent);
}

.sm-build-systems figure:hover svg {
  transform: translateY(-3px);
}

.sm-build-systems figure:hover figcaption b {
  color: var(--sm-accent);
}

.sm-build-systems svg {
  transition: transform 240ms ease;
}

.sm-build-systems figure:hover svg circle:not([fill="none"]),
.sm-build-systems figure:hover svg rect:not([fill="none"]) {
  fill: var(--sm-accent);
}

.sm-build-systems figure:hover svg line,
.sm-build-systems figure:hover svg rect,
.sm-build-systems figure:hover svg path {
  stroke: var(--sm-accent);
}

.sm-build-hardware .sm-build-stage:hover svg circle:not([fill="transparent"]) {
  fill: var(--sm-accent);
}

.sm-build-hardware .sm-build-stage:hover svg line,
.sm-build-hardware .sm-build-stage:hover svg polygon,
.sm-build-hardware .sm-build-stage:hover svg rect {
  stroke: var(--sm-accent);
}

.sm-build-legend {
  margin: 0;
  padding: 0;
  color: var(--build-mute);
  font-size: 12px;
  line-height: 1.8;
  list-style: none;
}

.sm-build-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sm-build-legend i {
  display: block;
  width: 22px;
  height: 8px;
  flex: 0 0 22px;
}

.sm-build-legend .is-active-line {
  height: 1px;
  background: var(--build-ink);
}

.sm-build-legend .is-pruned-line {
  height: 0;
  border-top: 1px dashed rgba(167, 176, 170, 0.35);
}

.sm-build-legend .is-inactive {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
  border: 1px solid rgba(167, 176, 170, 0.28);
  border-radius: 50%;
  background: transparent;
}

.sm-build-systems {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 8px 4px;
  align-items: start;
}

.sm-build-systems figure {
  margin: 0;
  text-align: center;
}

.sm-build-systems figcaption {
  margin-top: 10px;
}

.sm-build-systems figcaption b {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sm-build-systems figcaption span {
  display: block;
  color: var(--build-mute);
  font-size: 12px;
  line-height: 1.45;
}

.sm-build-arrow {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: center;
  color: rgba(22, 51, 40, 0.45);
  font-size: 16px;
}

.sm-build-hardware .sm-build-stage {
  min-height: 120px;
}

/* ── Contact ── */

.sm-contact {
  min-height: 100svh;
  overflow: hidden;
}

.sm-contact-inner {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.sm-contact-copy {
  max-width: 760px;
  text-align: center;
}

.sm-contact-copy .sm-display {
  font-size: clamp(36px, 4.4vw, 58px);
}

.sm-contact-copy .sm-lede {
  max-width: 620px;
  margin: 28px auto 0;
}

.sm-talk {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  border: 1px solid rgba(244, 241, 234, 0.55);
  border-radius: 999px;
  padding: 0 36px;
  color: var(--sm-paper);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.sm-talk:hover {
  border-color: #00ff66;
  background: rgba(155, 232, 112, 0.06);
  color: var(--sm-paper);
}

.sm-contact-meta {
  margin-top: 18px;
  color: rgba(167, 176, 170, 0.42);
  font-size: 13px;
}

.sm-contact-echo {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 180px;
  height: 140px;
  pointer-events: none;
  opacity: 0.72;
}

.sm-contact-echo svg {
  display: block;
  overflow: visible;
}

.sm-contact-triangle-art {
  transform-box: fill-box;
  transform-origin: center;
  animation: sm-contact-triangle-drift 9s ease-in-out infinite;
}

.sm-contact-triangle-fill {
  fill: rgba(0, 255, 102, 0.08);
  stroke: rgba(0, 255, 102, 0.58);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-dasharray: 5 8;
  animation: sm-contact-triangle-pulse 4.6s ease-in-out infinite, sm-contact-triangle-dash 12s linear infinite;
}

.sm-contact-triangle-edge {
  fill: none;
  stroke: rgba(0, 255, 102, 0.52);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  animation: sm-contact-triangle-dash 7s linear infinite;
}

.sm-contact-triangle-edge.is-edge-2 {
  animation-delay: -1.7s;
  stroke: rgba(97, 255, 159, 0.62);
}

.sm-contact-triangle-edge.is-edge-3 {
  animation-delay: -3.4s;
  stroke: rgba(0, 255, 102, 0.38);
}

.sm-contact-triangle-node {
  fill: #00ff66;
  stroke: rgba(8, 10, 8, 0.9);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: sm-contact-triangle-node-pulse 3.2s ease-in-out infinite;
}

.sm-contact-triangle-node.is-node-2 {
  animation-delay: -1.1s;
}

.sm-contact-triangle-node.is-node-3 {
  animation-delay: -2.2s;
}

@keyframes sm-contact-triangle-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(-7px, 5px, 0) rotate(2deg);
  }
}

@keyframes sm-contact-triangle-pulse {
  0%,
  100% {
    fill: rgba(0, 255, 102, 0.06);
    stroke: rgba(0, 255, 102, 0.42);
  }

  50% {
    fill: rgba(0, 255, 102, 0.16);
    stroke: rgba(97, 255, 159, 0.86);
  }
}

@keyframes sm-contact-triangle-dash {
  to {
    stroke-dashoffset: -30;
  }
}

@keyframes sm-contact-triangle-node-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.28);
  }
}

@media (max-width: 1100px) {
  .sm-principle-inner,
  .sm-tech-head,
  .sm-research-inner,
  .sm-bench-grid,
  .sm-build-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sm-principle-stage {
    min-height: 420px;
  }

  .sm-principle-canvas {
    height: min(52vh, 420px);
  }

  .sm-tech-steps,
  .sm-tech-captions,
  .sm-tech-cards {
    grid-template-columns: 1fr;
  }

  .sm-tech-arrow {
    transform: rotate(90deg);
  }

  .sm-tech-card + .sm-tech-card {
    border-left: 0;
    border-top: 1px solid rgba(200, 232, 106, 0.12);
  }

  .sm-mini {
    justify-self: start;
  }

  .sm-research-echo {
    display: none;
  }

  .sm-build-head,
  .sm-build-models {
    grid-template-columns: 1fr;
  }

  .sm-build-systems {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sm-build-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  .sm-principle-inner {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .sm-principle-display {
    font-size: 40px;
  }

  .sm-principle-axiom {
    font-size: 30px;
  }

  .sm-principle-canvas {
    height: 320px;
  }

  .sm-paper {
    grid-template-columns: 1fr;
  }

  .sm-tech-step {
    grid-template-columns: 1fr;
  }

  .sm-tech-explore {
    padding-left: 0;
    border-left: 0;
  }

  .sm-paper-links {
    padding-top: 0;
  }

  .sm-stat p {
    font-size: 22px;
  }

  .sm-build-systems {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-paper::before,
  .sm-paper h3,
  .sm-paper-links a,
  .sm-talk,
  .sm-build-link span,
  .sm-contact-triangle-art,
  .sm-contact-triangle-fill,
  .sm-contact-triangle-edge,
  .sm-contact-triangle-node {
    transition: none !important;
    animation: none !important;
  }
}
