:root {
  --bg: #070708;
  --ink: #e8e6e3;
  --muted: #9a9690;
  --line: rgba(232, 230, 227, 0.14);
  --spark: #ff6a00;
  --spark-soft: rgba(255, 106, 0, 0.35);
  --font-display: "Sora", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad-x: clamp(1rem, 3.5vw, 2.75rem);
  --shell: min(1180px, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: clip;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #ffb27a;
  word-break: break-word;
  padding: 0.12em 0.32em;
  border-radius: 4px;
  background: rgba(255, 106, 0, 0.08);
  line-height: 1.35;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 18% -5%, rgba(255, 106, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 35%, rgba(255, 106, 0, 0.05), transparent 50%),
    linear-gradient(180deg, #0c0c0e 0%, var(--bg) 42%, #050506 100%);
}

.atmosphere__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  animation: grid-drift 28s linear infinite;
}

.atmosphere__spark {
  position: absolute;
  top: 8%;
  left: 22%;
  width: min(320px, 50vw);
  height: min(320px, 50vw);
  background: radial-gradient(circle, rgba(255, 106, 0, 0.16) 0%, transparent 70%);
  animation: spark-breathe 5.5s ease-in-out infinite;
  will-change: transform;
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 10vh, 6rem) clamp(2.5rem, 8vh, 5rem);
}

.hero__inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: var(--shell);
}

.hero__brand {
  position: relative;
  display: inline-grid;
  place-items: center;
  justify-self: start;
  padding: 1.35rem;
}

.hero__ring {
  position: absolute;
  inset: 0.35rem;
  border: 1px dashed rgba(255, 106, 0, 0.32);
  border-radius: 50%;
  animation: ring-spin 22s linear infinite;
  pointer-events: none;
}

.hero__ring--delay {
  inset: -0.15rem;
  border-style: solid;
  border-color: rgba(255, 106, 0, 0.1);
  animation-duration: 32s;
  animation-direction: reverse;
}

.hero__picture {
  position: relative;
  z-index: 1;
}

.hero__mark {
  display: block;
  width: min(240px, 56vw);
  height: auto;
  border-radius: 24px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.hero__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--spark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
  padding-block: 0.06em;
}

.hero__title span {
  color: #ffb27a;
}

.hero__lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.1vw, 1.15rem);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.hero__cta--static {
  opacity: 1;
  transform: none;
  animation: none;
  margin-top: 1.25rem;
}

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .atmosphere__spark {
    left: 12%;
    top: 18%;
  }
}

/* —— Sections —— */
main {
  position: relative;
  z-index: 1;
}

.block {
  padding-block: clamp(2.75rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}

.block__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 800px) {
  .block__grid {
    grid-template-columns: minmax(15rem, 0.95fr) minmax(0, 1.25fr);
  }

  .block__grid--stack-first {
    grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.85fr);
  }

  .block__grid--stack-first .block__copy {
    order: 2;
  }

  .block__grid--stack-first .viz {
    order: 1;
  }
}

.block__copy--wide {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.block__copy[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.block__copy[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.block__label {
  margin: 0 0 0.7rem;
  color: var(--spark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.block__label::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--spark), transparent);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.block__copy.is-in .block__label::after {
  width: 100%;
}

.block__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  padding-block: 0.04em;
}

.block__body {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.65;
  max-width: 40rem;
}

.block__note {
  margin: 1.1rem 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(255, 106, 0, 0.55);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36rem;
}

/* —— Visualizations —— */
.viz {
  margin: 0;
  padding: 0;
  min-width: 0;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.viz.is-in {
  opacity: 1;
  transform: none;
}

.viz__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.viz__svg--device {
  max-width: 320px;
  margin-inline: auto;
}

.viz--device {
  display: flex;
  justify-content: center;
}

.device-frame {
  position: relative;
  display: inline-block;
  max-width: 320px;
  width: 100%;
}

.device-frame .viz__svg--device {
  max-width: none;
  margin: 0;
}

.device-scan {
  position: absolute;
  left: 22.5%;
  right: 22.5%;
  top: 17%;
  height: 12%;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 106, 0, 0.14),
    transparent
  );
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.viz.is-in .device-scan {
  opacity: 1;
  animation: scan-y 3.8s ease-in-out infinite;
}

/* Layers (HTML, reflows) */
.layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.layers__item {
  position: relative;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.85);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.layers__item.is-active {
  border-color: rgba(255, 106, 0, 0.65);
  background: rgba(255, 106, 0, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.12);
}

.layers__item--core {
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.08);
  color: #ffc299;
}

.layers__item--out {
  border-color: rgba(232, 230, 227, 0.28);
}

.layers__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  bottom: -0.55rem;
  width: 1px;
  height: 0.55rem;
  background: var(--spark-soft);
}

/* Flow */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.flow__step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.9);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  text-align: center;
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.flow__step.is-active {
  border-color: rgba(255, 106, 0, 0.7);
  background: rgba(255, 106, 0, 0.12);
  box-shadow: 0 0 24px rgba(255, 106, 0, 0.12);
  transform: translateY(-2px);
  color: #ffc299;
}

.flow__step.is-active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 106, 0, 0.18) 48%,
    transparent 66%
  );
  background-size: 220% 100%;
  animation: sweep 1.3s ease;
}

.flow__step--core {
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.08);
  color: #ffc299;
}

.flow__step--out {
  border-color: rgba(232, 230, 227, 0.28);
}

.bits {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bits li {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.viz.is-in .bits li {
  animation: bit-glow 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.4s);
}

/* Stores */
.stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .stores {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.stores__item {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.9);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--muted);
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.stores__item.is-active {
  border-color: rgba(255, 106, 0, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.stores__item strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.stores__item--core {
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.08);
}

.stores__item--core strong {
  color: #ffc299;
}

/* Pinout */
.pinout {
  margin-top: 1.5rem;
}

.pinout__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--spark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pinout__list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 520px) {
  .pinout__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
  }
}

.pinout__list > div {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.pinout__list dt {
  margin: 0;
  color: var(--muted);
}

.pinout__list dd {
  margin: 0;
  color: var(--ink);
}

/* Facts */
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

@media (min-width: 960px) {
  .facts {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.facts li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .facts li:nth-child(2n) {
    border-top: 1px solid var(--line);
  }

  .facts li:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }
}

.facts li:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .facts li:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--line);
  }
}

/* Faces plug diagram (responsive HTML) */
.plug {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 700px) {
  .plug {
    grid-template-columns: minmax(6.5rem, 0.7fr) auto minmax(0, 1.2fr) auto minmax(5.5rem, 0.7fr);
    gap: 0.65rem;
  }
}

.plug__faces {
  display: grid;
  gap: 0.45rem;
}

.plug__node,
.plug__core,
.plug__out {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.8rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.9);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.plug__core {
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.08);
  min-height: 4.5rem;
}

.plug__core strong {
  color: #ffc299;
  font-weight: 600;
}

.plug__core span {
  color: var(--muted);
  font-size: 0.72rem;
}

.plug__out {
  border-color: rgba(232, 230, 227, 0.28);
}

.plug__join {
  justify-self: center;
  width: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--spark-soft), transparent);
}

@media (max-width: 699px) {
  .plug__join {
    width: 1px;
    height: 0.85rem;
    background: linear-gradient(180deg, transparent, var(--spark-soft), transparent);
  }
}

.viz.is-in .plug__node,
.viz.is-in .plug__core,
.viz.is-in .plug__out {
  animation: layer-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms + 60ms);
}

/* Code panel + syntax */
.codepanel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0b0b0e;
}

.codepanel__bar {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.codepanel__lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spark);
}

.codeblock {
  margin: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #d7d3cc;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2.4vw, 0.84rem);
  line-height: 1.6;
}

.codeblock code {
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

.tok-cmd {
  color: #ff8a3d;
  font-weight: 500;
}

.tok-flag {
  color: #9ecbff;
}

.tok-file {
  color: #e6c07b;
}

.tok-path {
  color: #7ee0c1;
}

.tok-str {
  color: #c3e88d;
}

.tok-punct {
  color: #8b8690;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.btn__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  fill: currentColor;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--spark);
  color: #140a00;
  border: 1px solid var(--spark);
}

.btn--primary:hover {
  background: #ff7d1f;
  border-color: #ff7d1f;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: rgba(255, 106, 0, 0.55);
  background: rgba(255, 106, 0, 0.08);
}

/* Footer */
.foot {
  position: relative;
  z-index: 1;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.foot__brand,
.foot__meta {
  margin: 0;
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.foot a:hover {
  color: var(--spark);
  border-bottom-color: rgba(255, 106, 0, 0.45);
}

/* SVG schematic bits still used in faces diagram */
.schem-node {
  fill: rgba(18, 18, 20, 0.92);
  stroke: var(--line);
  stroke-width: 1.5;
}

.schem-node--core {
  stroke: rgba(255, 106, 0, 0.55);
  fill: rgba(255, 106, 0, 0.08);
}

.schem-node--out {
  stroke: rgba(232, 230, 227, 0.28);
}

.schem-label {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.schem-label--strong {
  fill: #ffc299;
  font-weight: 500;
}

.schem-sub {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-anchor: middle;
}

.schem-wire {
  fill: none;
  stroke: var(--spark-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
}

.schem-pulse {
  fill: var(--spark);
  opacity: 0;
}

.device-body {
  fill: #101012;
  stroke: rgba(232, 230, 227, 0.2);
  stroke-width: 1.5;
}

.device-bezel {
  fill: #0a0a0c;
  stroke: rgba(232, 230, 227, 0.1);
  stroke-width: 1;
}

.device-screen {
  fill: #050506;
  stroke: rgba(255, 106, 0, 0.25);
  stroke-width: 1;
}

.device-clock {
  fill: var(--muted);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-anchor: middle;
  letter-spacing: 0.06em;
}

.device-sub {
  fill: rgba(154, 150, 144, 0.85);
  font-family: var(--font-body);
  font-size: 11px;
  text-anchor: middle;
}

.device-dot {
  fill: var(--spark);
}

/* Reveal children */
.viz.is-in .schem-face,
.viz.is-in .layers__item,
.viz.is-in .flow__step,
.viz.is-in .stores__item {
  animation: layer-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms + 60ms);
}

.viz.is-in .schem-wire {
  animation: dash-flow 1.4s linear infinite;
  animation-delay: 0.2s;
}

.viz.is-in .schem-pulse {
  animation: pulse-run 2.4s ease-in-out infinite;
  animation-delay: 0.35s;
}

.viz.is-in .device-screen {
  animation: screen-breathe 4s ease-in-out infinite;
}

.viz.is-in .device-dot {
  animation: dot-blink 2.2s ease-in-out infinite;
}

.viz.is-in .pinout__list > div {
  animation: layer-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spark-breathe {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56px 56px;
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes title-shine {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0% 0;
  }
}

@keyframes sweep {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -20% 0;
  }
}

@keyframes scan-y {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.55;
  }
  85% {
    transform: translateY(220%);
    opacity: 0;
  }
}

@keyframes layer-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes pulse-run {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes bit-glow {
  0%,
  80%,
  100% {
    opacity: 0.45;
    color: var(--muted);
    border-color: var(--line);
  }
  40% {
    opacity: 1;
    color: var(--spark);
    border-color: rgba(255, 106, 0, 0.45);
  }
}

@keyframes screen-breathe {
  0%,
  100% {
    stroke: rgba(255, 106, 0, 0.2);
  }
  50% {
    stroke: rgba(255, 106, 0, 0.55);
  }
}

@keyframes dot-blink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* —— Mobile —— */
@media (max-width: 599px) {
  .hero {
    min-height: auto;
    padding-block: 2.25rem 2.75rem;
    align-items: flex-start;
  }

  .hero__inner {
    justify-items: stretch;
  }

  .hero__brand {
    justify-self: center;
    padding: 0.5rem;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__lede {
    margin-inline: auto;
  }

  .hero__cta,
  .hero__cta--static {
    width: 100%;
    justify-content: center;
  }

  .hero__cta .btn,
  .hero__cta--static .btn {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 8.5rem;
  }

  .hero__ring,
  .hero__ring--delay {
    display: none;
  }

  .atmosphere__field {
    opacity: 0.28;
  }

  .foot__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .block__title {
    max-width: none;
  }

  .hero__cta--static {
    justify-content: stretch;
  }
}

/* —— Chrome: nav / progress / cursor —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--spark), #ffb27a);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.12), transparent 68%);
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.cursor-glow.is-on {
  opacity: 1;
}

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-block: 0.85rem;
  background: rgba(7, 7, 8, 0);
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease;
}

body.is-scrolled .topnav {
  background: rgba(7, 7, 8, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.topnav__spark {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: var(--spark);
}

.topnav__brand span {
  color: #ffb27a;
}

.topnav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
}

.topnav__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topnav__links a:hover,
.topnav__links a[aria-current="page"] {
  color: var(--ink);
}

/* Boot sequence */
.boot {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  counter-reset: none;
}

.boot > li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.9);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  color: var(--muted);
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease,
    color 0.35s ease;
}

.boot > li > span {
  color: var(--spark);
  font-weight: 500;
}

.boot > li.is-active {
  border-color: rgba(255, 106, 0, 0.65);
  background: rgba(255, 106, 0, 0.1);
  color: var(--ink);
}

.viz.is-in .boot > li {
  animation: layer-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms + 60ms);
}

/* Tick scope */
.viz--scope {
  display: grid;
  gap: 0.75rem;
}

.scope {
  display: block;
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 106, 0, 0.04), transparent 40%),
    #0b0b0e;
}

.scope__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.scope__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.scope__swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
}

.scope__swatch--sec {
  background: var(--spark);
}

.scope__swatch--min {
  background: #9ecbff;
}

/* Changelog page */
.page-hero {
  position: relative;
  z-index: 1;
  padding-block: 6.5rem 2.5rem;
}

.page-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  padding-block: 0.04em;
}

.page-hero__lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.55;
}

.changelog {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

.changelog__status {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.changelog__status.is-error {
  color: #ff8a6a;
}

.changelog__intro {
  margin: 0 0 2rem;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.6;
}

.cl-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.35rem;
  display: grid;
  gap: 1.75rem;
  border-left: 1px solid var(--line);
  margin-left: 0.35rem;
}

.cl-release {
  position: relative;
  padding: 0.15rem 0 0.25rem 0.15rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 40ms);
  overflow-wrap: anywhere;
}

.cl-release.is-in {
  opacity: 1;
  transform: none;
}

.cl-release::before {
  content: "";
  position: absolute;
  left: calc(-1.35rem - 0.35rem - 3px);
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.cl-release__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.cl-ver {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

a.cl-ver:hover {
  color: var(--spark);
}

.cl-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.cl-note {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 44rem;
}

.cl-section {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.65);
  overflow: visible;
}

.cl-section__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spark);
}

.cl-section--changed .cl-section__title {
  color: #9ecbff;
}

.cl-section--fixed .cl-section__title {
  color: #7ee0c1;
}

.cl-section--removed .cl-section__title {
  color: #ff8a6a;
}

.cl-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.cl-list li + li {
  margin-top: 0.5rem;
}

.cl-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: #ffb27a;
  padding: 0.14em 0.35em;
  border-radius: 4px;
  background: rgba(255, 106, 0, 0.08);
  word-break: break-word;
  line-height: 1.4;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (max-width: 599px) {
  .cursor-glow {
    display: none;
  }

  .topnav__links {
    font-size: 0.8rem;
    gap: 0.25rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor-glow,
  .scroll-progress > span,
  .atmosphere__field {
    display: none !important;
  }

  .atmosphere__spark,
  .atmosphere__grid,
  .hero__mark,
  .hero__eyebrow,
  .hero__title,
  .hero__lede,
  .hero__cta,
  .hero__ring,
  .block__copy[data-reveal],
  .viz,
  .viz.is-in .schem-face,
  .viz.is-in .plug__node,
  .viz.is-in .plug__core,
  .viz.is-in .plug__out,
  .viz.is-in .layers__item,
  .viz.is-in .flow__step,
  .viz.is-in .stores__item,
  .viz.is-in .boot > li,
  .viz.is-in .schem-wire,
  .viz.is-in .schem-pulse,
  .viz.is-in .bits li,
  .viz.is-in .device-screen,
  .viz.is-in .device-dot,
  .viz.is-in .device-scan,
  .viz.is-in .pinout__list > div,
  .cl-release,
  .flow__step.is-active::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .block__label::after {
    width: 100%;
  }

  .btn:hover {
    transform: none;
  }
}
