/* ------------------------------------------------------------------
   Factor — single-viewport landing over a full-bleed looping video.
   Three vertical regions: header / hero / stats, all above the video.
------------------------------------------------------------------ */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("/fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

/* header owns a stacking context, so lift the whole thing over the overlay
   to keep the logo and the open burger crisp */
body.menu-open .header {
  z-index: 7;
}

/* --- background ------------------------------------------------- */

.bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* --- page shell ------------------------------------------------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

.header,
.hero,
.stats {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* --- 1. header -------------------------------------------------- */

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  max-width: 720px;
  margin: 0 auto;
  flex-shrink: 0;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(8px, 1.2vw, 12px);
  color: var(--nav-text);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.is-active {
  opacity: 1;
}

/* three dots under the active label */
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.signin {
  display: inline-flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 22px);
  flex-shrink: 0;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.signin:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.burger {
  position: relative;
  z-index: 7; /* stays crisp above the menu overlay */
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  cursor: pointer;
  transition: background 0.25s ease;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease,
    background 0.25s ease;
}

.burger[aria-expanded="true"] {
  background: #fff;
}

.burger[aria-expanded="true"] span {
  background: #111;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- 2. hero ---------------------------------------------------- */

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  min-height: 0;
}

.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border: 1px solid var(--trust-border);
  border-radius: 50%;
  background: var(--trust-bg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
  line-height: 1;
}

.avatar + .avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.avatar.a1 { z-index: 1; }
.avatar.a2 { z-index: 2; }
.avatar.a3 { z-index: 4; }

.trust:hover .avatar.a1 { transform: translateY(-2px); }
.trust:hover .avatar.a2 { transform: translateY(-4px); }
.trust:hover .avatar.a3 { transform: translateY(-2px); }

.trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: clamp(14px, 1.6vw, 18px);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  background: var(--trust-bg);
  color: var(--trust-text);
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  white-space: nowrap;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
}

.anim-headline span {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-headline span:nth-child(1) { animation-delay: 0.12s; }
.anim-headline span:nth-child(2) { animation-delay: 0.3s; }

.subhead {
  max-width: min(500px, 92%);
  margin: clamp(12px, 1.8vh, 18px) auto 0;
  color: #d0d0d0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(16px, 2.4vh, 24px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32), 0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.2);
}

/* --- 3. stats --------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  max-width: 920px;
  margin: 0 auto;
  flex-shrink: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-icon {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
}

.stat-value {
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
  text-align: center;
}

/* --- shared entrance -------------------------------------------- */

.anim,
.anim-sub,
.anim-cta {
  opacity: 0;
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
  animation-delay: var(--d, 0s);
}

.anim { animation-name: reveal; }
.anim-sub { animation-name: revealSub; }
.anim-cta { animation-name: revealPulse; }

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* same curve, but lands on the subhead's resting 0.8 opacity */
@keyframes revealSub {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 0.8;
    transform: none;
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- mobile menu ------------------------------------------------ */

.menu[hidden],
.menu-overlay[hidden] {
  display: none;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.menu {
  position: fixed;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 12px);
  left: clamp(14px, 3vw, 32px);
  right: clamp(14px, 3vw, 32px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-link {
  position: relative;
  padding: 14px 8px 18px;
  color: var(--nav-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  opacity: 0.55;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-link.is-active {
  opacity: 1;
}

.menu-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.menu-link:nth-child(1) { animation-delay: 0.06s; }
.menu-link:nth-child(2) { animation-delay: 0.11s; }
.menu-link:nth-child(3) { animation-delay: 0.16s; }
.menu-link:nth-child(4) { animation-delay: 0.21s; }

.menu-cta {
  margin-top: 12px;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 0.55;
    transform: none;
  }
}

.menu-link.is-active,
.menu-cta {
  animation-name: linkInFull;
}

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

/* --- breakpoints ------------------------------------------------ */

@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    gap: 12px;
    max-width: 100%;
  }

  .nav,
  .signin {
    display: none;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .burger {
    display: flex;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px clamp(12px, 4vw, 24px);
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: clamp(10px, 1.6vh, 16px);
  }

  .subhead {
    margin-top: 10px;
  }

  .cta {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .anim-cta,
  .anim-headline span,
  .menu-link,
  .menu-cta,
  .header {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .anim-sub {
    opacity: 0.8;
    transform: none;
    filter: none;
  }

  .menu-link:not(.is-active) {
    opacity: 0.55;
  }

  .headline {
    color: #fff;
  }
}

/* ==================================================================
   Inner pages (/feed, /docs, /verify)
   The landing is one locked viewport; these scroll, and paint their
   own black over the video below the fold.
================================================================== */

:root {
  --sea: #1e5fd8;
  --sea-soft: #7fb2ff;
  --line-soft: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.14);
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --dim: #7e7e7e;
}

html.doc,
html.doc body {
  height: auto;
  overflow: visible;
}

html.doc body.menu-open {
  overflow: hidden;
}

html.doc .bg {
  position: fixed;
  height: 100vh;
}

/* the landing wants the footage; a page of numbers wants it quiet */
.bg-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    #000 100%
  );
}

.pagetop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px) 0;
}

.pagehead {
  width: 100%;
  max-width: 900px;
  padding: clamp(58px, 13vh, 132px) 0;
  text-align: center;
}

.h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(30px, 5.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.pagedek {
  max-width: min(560px, 92%);
  margin: clamp(16px, 2.4vh, 24px) auto 0;
  color: #d0d0d0;
  opacity: 0.8;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
}

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

.band {
  background: #000;
  border-top: 1px solid var(--line-soft);
  padding: clamp(48px, 7vh, 96px) 0;
}

.band.alt {
  background: #050505;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.wrap.narrow {
  max-width: 840px;
}

/* the action table has nine columns of numbers and none of them shorten well */
.wrap.wide {
  max-width: 1400px;
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.045em;
  color: #fff;
  max-width: 30ch;
}

.h3 {
  margin: 34px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.body {
  max-width: 72ch;
  margin: 18px 0 0;
  color: #b0b0b0;
  font-size: 14.5px;
  line-height: 1.72;
}

.body a,
.note a,
.foot-rule a {
  color: #e6e6e6;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.body a:hover {
  text-decoration-color: #fff;
}

.body code,
.note code,
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: #dcdcdc;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
}

.note {
  max-width: 78ch;
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.note b {
  color: #b9b9b9;
  font-weight: 500;
}

/* code panels ---------------------------------------------------- */

.panel {
  position: relative;
  margin-top: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: #8a8a8a;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: #b9b9b9;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.code {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #cfd4cf;
  white-space: pre;
}

/* tables --------------------------------------------------------- */

.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  color: #6d6d6d;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: #b9b9b9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
}

.table .sym {
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}

.table .sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #5a5a5a;
  font-weight: 400;
}

.table a {
  color: #9a9a9a;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.table a:hover {
  color: #fff;
}

/* kind tags ------------------------------------------------------ */

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4c2c3;
}

.tag.dividend { border-color: rgba(150, 220, 170, 0.45); color: #a9e0bd; }
.tag.split { border-color: rgba(180, 190, 255, 0.45); color: #b9c2ff; }
.tag.reverse { border-color: rgba(255, 175, 150, 0.45); color: #ffb69c; }
.tag.restated { border-color: rgba(255, 255, 255, 0.18); color: #7e7e7e; }

/* key/value grid ------------------------------------------------- */

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line-soft);
}

.kv > div {
  background: #000;
  padding: 18px 20px;
}

.kv dt {
  color: #6d6d6d;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kv dd {
  margin: 8px 0 0;
  color: #fff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.kv dd small {
  display: block;
  margin-top: 6px;
  color: #6d6d6d;
  font-size: 11.5px;
  letter-spacing: 0;
}

/* footer --------------------------------------------------------- */

.site-foot {
  background: #000;
  border-top: 1px solid var(--line-soft);
  padding: clamp(40px, 6vh, 72px) 0 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.foot-logo {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  object-fit: contain;
}

.foot-grid p {
  margin: 14px 0 0;
  max-width: 42ch;
  color: #7e7e7e;
  font-size: 13px;
  line-height: 1.65;
}

.foot-grid nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-grid nav a {
  color: #9a9a9a;
  font-size: 13px;
  text-decoration: none;
}

.foot-grid nav a:hover {
  color: #fff;
}

.foot-rule {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: #5a5a5a;
  font-size: 11.5px;
}

@media (max-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .pagehead {
    padding: clamp(42px, 9vh, 90px) 0;
  }
}

/* ==================================================================
   The sea. One blue over a monochrome plate: hue and saturation from
   the tint, luminance from the footage, which keeps the video readable
   instead of dyed.
================================================================== */

.bg-video {
  filter: saturate(1.15) contrast(1.06);
}

.bg-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--sea);
  mix-blend-mode: color;
  opacity: 0.62;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0, 8, 22, 0.05) 20%, rgba(0, 6, 18, 0.5) 68%, #000208 100%),
    linear-gradient(180deg, rgba(0, 6, 18, 0.5) 0%, rgba(0, 6, 18, 0.14) 26%, rgba(0, 4, 14, 0.34) 62%, #000 100%);
}

/* ==================================================================
   Terminal transcripts
================================================================== */

.term {
  margin-top: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.term-title {
  margin-left: 8px;
  color: #6d7d92;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.term-body {
  margin: 0;
  padding: 18px 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.62;
  color: #b6c2d2;
  white-space: pre;
  tab-size: 2;
}

.term.tight .term-body { font-size: 11.5px; line-height: 1.5; }

.tg { color: #5f6f83; }
.tw { color: #ffffff; }
.tc { color: var(--sea-soft); }
.tok { color: #6fe0a5; }
.twn { color: #f0c674; }
.tbad { color: #ff8f7a; }
.tp { color: var(--sea-soft); }

/* the ascii dolphin, wherever it surfaces */
.dolphin {
  margin: 0;
  color: var(--sea-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.06;
  white-space: pre;
  overflow-x: auto;
  opacity: 0.9;
}

/* ==================================================================
   Landing sections
================================================================== */

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line-soft);
}

.cell {
  background: #000;
  padding: 26px 24px 28px;
}

.band.alt .cell { background: #050505; }

.cell h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cell p {
  margin: 0;
  color: #9aa5b4;
  font-size: 13.5px;
  line-height: 1.65;
}

.cell code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sea-soft);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.split.reverse { grid-template-columns: 1.1fr 0.9fr; }

.lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4c2c3;
  font-size: 12px;
}

.lead i { color: var(--sea-soft); font-size: 11px; }

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.install .pill-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 14, 0.6);
  color: #dfe7f2;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.install .pill-code b { color: var(--sea-soft); font-weight: 400; }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
}

/* ==================================================================
   Web console
================================================================== */

.console {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.console-bar .term-title { flex: 1; }

.console-gate {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9aa5b4;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.console-out {
  margin: 0;
  padding: 18px 18px 8px;
  height: min(56vh, 460px);
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.62;
  color: #b6c2d2;
  white-space: pre;
}

.console-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line-soft);
}

.console-prompt {
  color: var(--sea-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}

.console-in input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e6edf6;
  font-family: var(--font-mono);
  font-size: 13px;
  caret-color: var(--sea-soft);
}

.console-in input::placeholder { color: #4c5a6d; }
