/* ==========================================================================
   Vigil — landing design system
   Archivo (variable, width axis) + JetBrains Mono. Dark, restrained, technical.
   Shared across index / tour / architecture. Only external dep: Google Fonts.
   ========================================================================== */

:root {
  --bg: #08090a;
  --panel: #0c0d0f;
  --elev: #111214;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f0f1f2;
  --muted: #9a9ca1;
  /* Design token is #5d6065; lifted to clear WCAG AA (4.5:1) on #08090a for
     the small mono labels this system leans on. Hierarchy is preserved. */
  --faint: #7d7f84;
  --accent: #00bc7d;
  --accent-ink: #25d99a;
  --accent-soft: rgba(0, 188, 125, 0.11);
  --crit: #f4564f;
  --warn: #e0a34a;
  --btn: #00bc7d;
  --btn-ink: #05130c;
  --btn-hover: #0bd190;
  --btn-glow: rgba(0, 188, 125, 0.35);
  --sans: "Archivo", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ------------------------------------------------------------------ base -- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg,
video {
  display: block;
}
button {
  font-family: inherit;
}
::selection {
  background: rgba(0, 188, 125, 0.85);
  color: #05130c;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #08090a;
}
::-webkit-scrollbar-thumb {
  background: #1c1d1f;
  border-radius: 6px;
  border: 3px solid #08090a;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--elev);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 9px;
  transition: transform 0.18s ease;
}
.skip-link:focus {
  transform: none;
}

/* -------------------------------------------------------------- keyframes - */
@keyframes vgRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes vgFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes vgFlow {
  to {
    stroke-dashoffset: -120;
  }
}

/* ------------------------------------------------------------ containers -- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.section {
  padding-top: clamp(96px, 13vh, 160px);
  scroll-margin-top: 70px;
}
.section--tight {
  padding-top: clamp(70px, 10vh, 120px);
}
.section--film {
  padding-top: clamp(60px, 9vh, 110px);
}

/* ---------------------------------------------------------------- header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled,
html:not(.js) .site-header {
  background: rgba(8, 9, 10, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__name {
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.13em;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
  font-size: 13.5px;
  color: var(--muted);
}
.nav a {
  transition: color 0.18s ease;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--btn);
  color: var(--btn-ink);
}
.btn--primary:hover {
  transform: translateY(-1px);
  background: var(--btn-hover);
  box-shadow: 0 12px 30px -12px var(--btn-glow);
}
.btn--sm {
  font-size: 13px;
  padding: 8px 16px;
}
.btn--sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px var(--btn-glow);
}
.btn--ghost {
  color: var(--text);
  font-weight: 500;
  padding: 12px 22px;
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}
.btn--line {
  color: var(--text);
  font-weight: 500;
  padding: 13px 24px;
  border-color: var(--line-2);
}
.btn--line:hover {
  border-color: rgba(0, 188, 125, 0.45);
  color: var(--accent-ink);
}
.btn--ask {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 20px;
  border-color: var(--line-2);
}
.btn--ask:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ----------------------------------------------------------- typography --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.eyebrow .dot {
  color: var(--accent-ink);
}
.display {
  font-size: clamp(33px, 4.6vw, 62px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.034em;
  line-height: 1.08;
  max-width: 1080px;
  text-wrap: pretty;
}
.display .cont {
  color: var(--faint);
}
.h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-bottom: 20px;
}
.kicker .num {
  color: var(--accent-ink);
}
.lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent-ink);
}

/* ------------------------------------------------------------------ hero -- */
.hero {
  padding-top: clamp(140px, 19vh, 200px);
}
.hero .eyebrow {
  display: block;
  margin-bottom: clamp(26px, 4vh, 38px);
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(34px, 5vh, 48px);
}
.hero__cmd {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(34px, 5vh, 48px);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero__toc {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero__toc a {
  transition: color 0.18s ease;
}
.hero__toc a:hover {
  color: var(--accent-ink);
}
.hero__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero__meta--r {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--faint);
  flex-shrink: 0;
}

/* the check stream */
.pulse {
  position: relative;
  margin-top: clamp(72px, 11vh, 116px);
}
.pulse__spike {
  position: absolute;
  left: 58%;
  top: -21px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--crit);
  white-space: nowrap;
}
.pulse__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pulse__bar {
  flex: 1;
  min-width: 2px;
  border-radius: 1px;
  transform-origin: bottom;
}
.js .pulse__bar {
  transform: scaleY(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pulse__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--faint);
}
.pulse__foot span:last-child {
  text-align: right;
}

/* ----------------------------------------------------------------- film --- */
.film-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.film-head .n {
  color: var(--accent-ink);
}
.film-head span:last-child {
  letter-spacing: 0.15em;
}
.video-frame {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0) 58%, rgba(8, 9, 10, 0.45));
  padding: 0;
  cursor: pointer;
}
.video-cover[hidden] {
  display: none;
}
.cursor-chip {
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--btn-ink);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}
.static-play {
  position: absolute;
  left: clamp(14px, 2.5vw, 26px);
  bottom: clamp(14px, 2.5vw, 26px);
  display: none;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.static-play__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--btn-ink);
  display: grid;
  place-items: center;
}
.static-play__circle svg {
  margin-left: 2px;
}
.static-play__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
@media (hover: hover) {
  .video-cover {
    cursor: none;
  }
}
@media (hover: none) {
  .cursor-chip {
    display: none !important;
  }
  .static-play {
    display: inline-flex !important;
  }
}
.film-caption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* ------------------------------------------------------------- the loop --- */
.loop-head {
  margin-bottom: clamp(44px, 6vh, 64px);
}
.loop-figs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.loop-fig {
  padding: 0 clamp(24px, 3vw, 44px);
}
.loop-fig:first-child {
  padding-left: 0;
}
.loop-fig:last-child {
  padding-right: 0;
}
.loop-fig + .loop-fig {
  border-left: 1px solid var(--line);
}
.loop-fig svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 22px;
}
.loop-fig h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.loop-fig p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
  text-wrap: pretty;
}

/* ----------------------------------------------------------- split base --- */
.split {
  display: grid;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.split--console {
  grid-template-columns: 0.8fr 1.4fr;
}
.split--own {
  grid-template-columns: 0.85fr 1.15fr;
}
.split--boot {
  grid-template-columns: 0.8fr 1.3fr;
}
.split--monitor {
  grid-template-columns: 0.75fr 1.45fr;
}
.point {
  border-top: 1px solid var(--line);
  padding: 13px 2px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.point:last-of-type {
  border-bottom: 1px solid var(--line);
}
.point__n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.point__t {
  font-size: 14px;
  color: var(--muted);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  color: var(--accent-ink);
  margin-top: 26px;
}
.arrow-link svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.arrow-link:hover svg {
  transform: translateX(5px);
}

/* the console shot + callouts */
.shot {
  margin: 0;
  position: relative;
}
.shot__frame {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.shot__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
}
.callout {
  position: absolute;
  left: -12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.9);
  border: 1px solid rgba(0, 188, 125, 0.55);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  display: grid;
  place-items: center;
}

/* ------------------------------------------------------------- why pay ---- */
.compare-head {
  max-width: 840px;
  margin-bottom: clamp(40px, 6vh, 60px);
}
.ledger {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  padding: clamp(24px, 3vh, 34px) 0;
}
.ledger:last-of-type {
  border-bottom: 1px solid var(--line);
}
.ledger__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
  line-height: 1.9;
}
.ledger__label .sub {
  color: var(--faint);
}
.ledger__body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 64ch;
  text-wrap: pretty;
}
.ledger__body .hl {
  color: var(--text);
}
.ledger-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--faint);
  line-height: 2;
}

/* ------------------------------------------------------------ ownership --- */
.repo-card {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  padding: clamp(22px, 2.5vw, 32px) clamp(20px, 2.5vw, 30px);
}
.repo-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.repo-card__body {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2.35;
  color: var(--muted);
  overflow-x: auto;
}
.repo-row {
  display: flex;
  gap: 18px;
  justify-content: space-between;
}
.repo-row .path {
  color: var(--text);
}
.repo-row .path--license {
  color: var(--accent-ink);
}
.repo-row .desc {
  color: var(--faint);
  font-size: 11px;
}

/* -------------------------------------------------------------- pricing --- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vh, 54px);
}
.price__figure {
  font-size: clamp(84px, 10vw, 140px);
  font-weight: 350;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.price__unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--faint);
  margin-top: 18px;
}
.price__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 22px;
  max-width: 44ch;
  text-wrap: pretty;
}
.price-row {
  border-top: 1px solid var(--line);
  padding: 14px 2px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.price-row:last-of-type {
  border-bottom: 1px solid var(--line);
}
.price-row__m {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.price-row__t {
  font-size: 14.5px;
  color: var(--muted);
}
.price__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.price__cta .btn--primary {
  padding: 13px 26px;
}
.buy-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--faint);
  line-height: 1.9;
}
.trust {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.trust__row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.7;
}
.trust__row .tk {
  color: var(--accent-ink);
  flex-shrink: 0;
}
.trust__row a,
.ledger-note a,
.faq__answer a,
a.path--license {
  color: var(--accent-ink);
  white-space: nowrap;
}
.trust__row a:hover,
.ledger-note a:hover,
.faq__answer a:hover,
a.path--license:hover {
  text-decoration: underline;
}
.guarantee {
  margin-top: 22px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid rgba(0, 188, 125, 0.32);
  border-radius: 10px;
  padding: 15px 17px;
  background: rgba(0, 188, 125, 0.06);
}
.guarantee__mark {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.2;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.guarantee__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  color: var(--accent-ink);
  margin-bottom: 5px;
}
.guarantee__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ------------------------------------------------------------ license doc - */
.license-intro {
  max-width: 620px;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.license-doc {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  padding: clamp(22px, 3vw, 40px);
  overflow-x: auto;
  max-width: 860px;
}
.license-doc pre {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.license-doc pre b {
  color: var(--text);
  font-weight: 600;
}

/* ---------------------------------------------------------------- faq ----- */
.faq {
  max-width: 880px;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 20px 2px;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq__icon {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s ease;
}
.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  color: var(--accent-ink);
}
.faq__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__panel-inner {
  overflow: hidden;
}
.js .faq__panel {
  grid-template-rows: 0fr;
}
.js .faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}
.faq__answer {
  padding: 0 2px 24px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.66;
  max-width: 66ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- footer --- */
.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(36px, 5vh, 52px) clamp(20px, 4vw, 40px);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 30px);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-nav a {
  transition: color 0.18s ease;
}
.footer-nav a:hover {
  color: var(--text);
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--faint);
}

/* ================================================================== tour == */
.fig-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.fig-head .lead {
  max-width: 42ch;
}
.fig-frame {
  margin: 0;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  text-align: left;
  transition: border-color 0.25s ease;
}
.fig-frame:hover {
  border-color: rgba(0, 188, 125, 0.4);
}
.fig-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
}
.zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(8, 9, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.fig-frame:hover .zoom-icon,
.fig-frame:focus-visible .zoom-icon {
  opacity: 1;
}
.fig-annrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  margin-top: 20px;
}
.fig-annrow > div {
  border-top: 1px solid var(--line);
  padding: 13px 2px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.9;
}
.fig-annrow .k {
  color: var(--accent-ink);
}
.stat-row {
  border-top: 1px solid var(--line);
  padding: 14px 2px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.stat-row:last-of-type {
  border-bottom: 1px solid var(--line);
}
.stat-row__k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.stat-row__v {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--text);
}
.stat-row__v .u {
  font-size: 12px;
  color: var(--faint);
}
.stat-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  color: var(--faint);
  line-height: 1.9;
}
.tour-intro-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vh, 48px);
}
.rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: clamp(10px, 1.5vw, 20px);
  align-items: start;
  margin-bottom: clamp(26px, 4vh, 40px);
}
.rail__step {
  border-top: 1px solid var(--line);
  padding: 12px 2px 0;
}
.rail__state {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.rail__state--inv {
  color: var(--crit);
}
.rail__state--idt {
  color: var(--warn);
}
.rail__state--mon {
  color: var(--muted);
}
.rail__state--res {
  color: var(--accent-ink);
}
.rail__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.rail__arrow {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 13px;
  padding-top: 11px;
}
.fig-frame--offset {
  width: 88%;
  margin-left: auto;
}
.fig-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(34px, 5vh, 50px);
}
.url-pill-row {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.url-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.close-row {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vh, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.close-row h2 {
  max-width: 22ch;
}
.close-row .btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================== architecture == */
.arch-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(34px, 5vh, 48px);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.tier {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(20px, 3vw, 52px);
  align-items: start;
}
.tier__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-align: right;
  line-height: 1.9;
}
.tier__label .k {
  color: var(--muted);
}
.tier__label .k--accent {
  color: var(--accent-ink);
}
.tier__nodes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tier__node {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 14px 24px;
  border-radius: 10px;
}
.tier__flow {
  width: min(520px, 80%);
  height: 46px;
  display: block;
}
.flow-line {
  animation: vgFlow 2.6s linear infinite;
}
.flow-line--late {
  animation-delay: 0.9s;
}
.proc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 780px;
}
.proc-card {
  border: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: 12px;
  padding: 22px 24px;
}
.proc-card--db {
  max-width: 780px;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.proc-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.proc-card__name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.proc-card__tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  color: var(--faint);
}
.proc-card--db .proc-card__tag {
  color: var(--accent-ink);
}
.proc-card__body {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 2;
  color: var(--muted);
}
.proc-card__body .opt {
  color: var(--accent-ink);
}
.terminal {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.terminal__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--faint);
}
.terminal__body {
  padding: 20px 22px;
}
.terminal__body > div {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2.15;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal__body .p {
  color: var(--accent-ink);
}
.terminal__body .cmd {
  color: var(--text);
}
.terminal__body .dim {
  color: var(--faint);
}
.terminal__note {
  margin-top: 14px;
  text-align: right;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.dm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vh, 54px);
}
.dm-head .lead {
  max-width: 40ch;
}
.er {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.er__root {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 13px 28px;
}
.er__tree {
  width: 76%;
  height: 26px;
  display: block;
}
.er__kids {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}
.er__kid {
  text-align: center;
}
.er__rel {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 7px;
}
.er__node {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: 9px;
  padding: 11px 8px;
}
.er__node--strong {
  color: var(--text);
}
.er__sub {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin: 8px 0 6px;
}
.er__child {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 6px;
}
.er__note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--faint);
  text-align: center;
}
.math-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vh, 54px);
}
.roi__head {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 2fr auto;
  gap: clamp(12px, 2vw, 28px);
  padding: 0 2px 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.roi__row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 2fr auto;
  gap: clamp(12px, 2vw, 28px);
  padding: 16px 2px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.roi__k {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.roi__d {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.roi__t {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  text-align: right;
  white-space: nowrap;
}
.roi__row--total {
  padding: 18px 2px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.roi__row--total .roi__k {
  font-size: 15.5px;
  font-weight: 650;
}
.roi__row--total .roi__t {
  font-size: 13px;
  color: var(--accent-ink);
  font-weight: 600;
}

/* ------------------------------------------------------------- lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 7, 8, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(52px, 7vh, 88px) clamp(16px, 4vw, 72px);
  animation: vgFade 0.24s ease;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__img {
  max-width: min(1380px, 93vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  transition: opacity 0.18s ease;
}
.lightbox.is-fading .lightbox__img {
  opacity: 0;
}
.lightbox__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
}
.lightbox__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #fff;
}
.lightbox__counter {
  color: rgba(255, 255, 255, 0.38);
  margin-left: 6px;
}
.lightbox__dots {
  display: flex;
  gap: 10px;
}
.lightbox__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__dot:hover {
  transform: scale(1.4);
}
.lightbox__dot[aria-current="true"] {
  background: #fff;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(14, 15, 16, 0.7);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.lightbox__btn:hover {
  background: rgba(28, 29, 31, 0.9);
  border-color: rgba(0, 188, 125, 0.5);
}
.lightbox__close {
  top: clamp(16px, 2.5vw, 26px);
  right: clamp(16px, 2.5vw, 26px);
  width: 42px;
  height: 42px;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}
.lightbox__prev {
  left: clamp(10px, 2vw, 26px);
}
.lightbox__next {
  right: clamp(10px, 2vw, 26px);
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 960px) {
  .split,
  .split--console,
  .split--own,
  .split--boot,
  .split--monitor {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split--boot {
    gap: 36px;
  }
  .split--monitor {
    gap: 36px;
  }
  .loop-figs {
    grid-template-columns: 1fr;
  }
  .loop-fig {
    padding: 30px 0 0;
    margin: 30px 0 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .loop-fig:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }
  .loop-fig + .loop-fig {
    border-left: none;
  }
  .ledger {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .price-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .fig-frame--offset {
    width: 100%;
  }
  .rail {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .rail__arrow {
    display: none;
  }
  .fig-annrow {
    grid-template-columns: 1fr;
  }
  .tier {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tier__label {
    text-align: left;
    padding-top: 0 !important;
  }
  .proc-grid {
    grid-template-columns: 1fr;
  }
  .er__kids {
    grid-template-columns: repeat(2, 1fr);
  }
  .roi__head {
    display: none;
  }
  .roi__row,
  .roi__row--total {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .roi__t {
    text-align: left;
  }
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .callout {
    display: none;
  }
  .fig-annrow {
    grid-template-columns: 1fr;
  }
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .er__kids {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  .pulse__bar,
  .faq__panel,
  .faq__icon,
  .btn,
  .arrow-link svg {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .cursor-chip {
    display: none !important;
  }
  .static-play {
    display: inline-flex !important;
  }
  .video-cover {
    cursor: pointer !important;
  }
  .js .pulse__bar {
    transform: none;
  }
}
