/* =========================================================
   1. TOKENS — "Signal": ink canvas, one electric accent
   ========================================================= */
:root {
  --bg: #0A0A0B;
  --surface: #121215;
  --surface-2: #17171B;
  --line: #26262C;
  --line-soft: #1B1B20;

  --text: #F3F3F1;
  --text-soft: #9C9CA5;
  --text-faint: #6A6A74;

  --signal: #B6FF3C;
  --signal-ink: #0A0A0B;
  --warn: #FF8A5B;
  --ok: #7BE08A;

  --glow: rgba(182, 255, 60, .10);
  --dot: rgba(255, 255, 255, .045);

  --maxw: 1160px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --pop: cubic-bezier(.16, 1.2, .3, 1);
}

html[data-theme="light"] {
  --bg: #F5F5F2;
  --surface: #FFFFFF;
  --surface-2: #FAFAF7;
  --line: #DEDED8;
  --line-soft: #E8E8E2;

  --text: #101012;
  --text-soft: #4E4E56;
  --text-faint: #767680;

  --signal: #3D6B00;
  --signal-ink: #FFFFFF;
  --warn: #B34419;
  --ok: #2C7A45;

  --glow: rgba(61, 107, 0, .09);
  --dot: rgba(16, 16, 18, .055);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain — kills gradient banding, adds tactility */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--signal);
  outline-offset: 3px;
  border-radius: 5px;
}

::selection {
  background: var(--signal);
  color: var(--signal-ink);
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

@supports (padding: max(0px)) {
  .shell {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   2. TYPE SCALE
   ========================================================= */
.h-display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 7.4vw, 5.2rem);
  line-height: .96;
  letter-spacing: -.042em;
  margin: 0;
}

.h-sec {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 2.55rem);
  letter-spacing: -.032em;
  line-height: 1.05;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.eyebrow b {
  color: var(--signal);
  font-weight: 500;
}

/* =========================================================
   3. HEADER
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}

.topbar.stuck {
  border-bottom-color: var(--line-soft);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.mark-photo {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

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

@media (min-width:880px) {
  .nav {
    display: flex;
  }
}

.nav a {
  position: relative;
  text-decoration: none;
  font-size: .86rem;
  color: var(--text-soft);
  padding: 8px 2px;
  margin-inline: 9px;
  transition: color .2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1.5px;
  background: var(--signal);
  transition: right .32s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  right: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-soft);
  transition: border-color .2s, color .2s, transform .2s var(--pop);
}

.icon-btn:hover {
  border-color: var(--signal);
  color: var(--signal);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

html[data-theme="light"] .sun {
  display: none;
}

html[data-theme="light"] .moon {
  display: block;
}

.sun {
  display: block;
}

.moon {
  display: none;
}

.menu-btn {
  display: grid;
}

@media (min-width:880px) {
  .menu-btn {
    display: none;
  }
}

.m-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.m-nav[hidden] {
  display: none;
}

.m-nav a {
  text-decoration: none;
  font-size: .9rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  padding: 13px 15px;
}

.m-nav a.m-cta {
  grid-column: 1 / -1;
  background: var(--signal);
  color: var(--signal-ink);
  border-color: transparent;
  font-weight: 600;
  text-align: center;
}

@media (max-width:359px) {
  .m-nav {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--body);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--pop), background .2s, border-color .2s, color .2s;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-primary {
  background: var(--signal);
  color: var(--signal-ink);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45), transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: sheen .85s var(--ease);
}

@keyframes sheen {
  to {
    transform: translateX(130%);
  }
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* magnetic wrapper — JS writes --mx/--my */
.mag {
  display: inline-flex;
  transform: translate3d(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px), 0);
  transition: transform .45s var(--pop);
}

.mag.grab {
  transition: transform .08s linear;
}

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 54px 0 0;
}

.aurora {
  position: absolute;
  inset: -180px 0 auto 0;
  height: 640px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}

.b1 {
  width: 460px;
  height: 460px;
  background: rgba(182, 255, 60, .16);
  left: -4%;
  top: -110px;
  animation: drift1 24s ease-in-out infinite alternate;
}

.b2 {
  width: 380px;
  height: 380px;
  background: rgba(120, 200, 255, .09);
  left: 42%;
  top: -60px;
  animation: drift2 30s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to {
    transform: translate(70px, 60px) scale(1.15);
  }
}

@keyframes drift2 {
  to {
    transform: translate(-60px, 70px) scale(.9);
  }
}

html[data-theme="light"] .blob {
  opacity: .5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

@media (min-width:1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.34fr) minmax(290px, .66fr);
    gap: 56px;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 4.7vw, 4.2rem);
    max-width: none;
  }
}

.hero-copy {
  min-width: 0;
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .71rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 14px 7px 11px;
  border-radius: 100px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  animation: ping 2.8s infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(123, 224, 138, .5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(123, 224, 138, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(123, 224, 138, 0);
  }
}

.hero h1 {
  margin: 20px 0 0;
  max-width: 15ch;
}

.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.hero h1 .w>span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordUp .8s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 52ms + 100ms);
}

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

.hero h1 em {
  font-style: normal;
  color: var(--signal);
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: clamp(1.02rem, 2.1vw, 1.19rem);
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-sub b {
  color: var(--text);
  font-weight: 600;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--signal);
  line-height: 1.5;
}

.hero-rule::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--signal);
  flex: none;
}

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

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.proof {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .76rem;
  color: var(--text-soft);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 7px 12px;
  background: var(--surface);
}

.proof svg {
  width: 13px;
  height: 13px;
  color: var(--signal);
  flex: none;
}

/* portrait card */
.portrait {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: auto;
}

.portrait figcaption {
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
}

.portrait .nm {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -.02em;
}

.portrait .rl {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-faint);
  margin-top: 5px;
  line-height: 1.5;
}

@media (max-width:999px) {
  .hero-figure {
    display: flex;
    align-items: stretch;
    max-width: 440px;
  }

  .hero-figure img {
    width: 108px;
    height: auto;
    min-height: 108px;
    align-self: stretch;
    flex: none;
    object-fit: cover;
    object-position: 50% 12%;
  }

  .hero-figure figcaption {
    border-top: 0;
    border-left: 1px solid var(--line-soft);
    padding: 13px 16px;
  }
}

/* hero cascade */
.avail,
.hero-sub,
.hero-rule,
.hero-actions,
.proof-row,
.hero-figure {
  opacity: 0;
  animation: heroIn .75s var(--ease) forwards;
}

.avail {
  animation-delay: .04s;
}

.hero-figure {
  animation-delay: .26s;
}

.hero-sub {
  animation-delay: .62s;
}

.hero-rule {
  animation-delay: .72s;
}

.hero-actions {
  animation-delay: .82s;
}

.proof-row {
  animation-delay: .92s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   6. TOOL MARQUEE
   ========================================================= */
.ticker {
  margin-top: 56px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.ticker-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: none;
  padding-left: 24px;
}

@media (max-width:640px) {
  .ticker-label {
    display: none;
  }
}

.ticker-mask {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: slide 42s linear infinite;
}

.ticker.paused .ticker-track {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.ticker-track span {
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--text-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.ticker-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  opacity: .5;
  margin-left: 40px;
}

.ticker-pause {
  flex: none;
  margin-right: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-faint);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ticker-pause:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.ticker-pause svg {
  width: 12px;
  height: 12px;
}

/* =========================================================
   7. WORKFLOW CANVAS
   ========================================================= */
.canvas-wrap {
  margin-top: 54px;
}

.canvas {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .8);
}

html[data-theme="light"] .canvas {
  box-shadow: 0 24px 54px -36px rgba(16, 16, 18, .28);
}

.canvas-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .71rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.canvas-bar b {
  font-weight: 500;
  color: var(--text-soft);
  min-width: 0;
  overflow-wrap: anywhere;
}

.canvas-bar .sp {
  margin-left: auto;
}

@media (max-width:760px) {
  .canvas-bar span:not(.runbar):not(.sp) {
    display: none;
  }
}

.runbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  color: var(--ok);
}

.runbar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2.8s infinite;
}

.replay {
  font-family: var(--mono);
  font-size: .7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, color .2s;
}

.replay:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.replay svg {
  width: 11px;
  height: 11px;
}

.canvas-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 8px;
  -webkit-overflow-scrolling: touch;
}

.canvas-scroll>svg {
  display: block;
  width: 100%;
  min-width: 700px;
  height: auto;
}

.wire-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset .6s var(--ease), stroke .35s;
}

.wire-path.on {
  stroke-dashoffset: 0;
  stroke: var(--signal);
}

.wire-path.fail.on {
  stroke: var(--warn);
  stroke-dasharray: 5 5;
  stroke-dashoffset: 0;
}

.node {
  opacity: .32;
  transition: opacity .45s var(--ease);
}

.node.on {
  opacity: 1;
}

.node rect.body {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke .35s;
}

.node.on rect.body {
  stroke: var(--signal);
}

.node.fail.on rect.body {
  stroke: var(--warn);
  stroke-dasharray: 4 3;
}

.node .t-main {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  fill: var(--text);
}

.node .t-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--text-faint);
}

.node .chip {
  opacity: .3;
  transition: opacity .35s;
}

.node.on .chip {
  opacity: 1;
}

.packet {
  opacity: 0;
}

.packet.on {
  opacity: 1;
}

.badge-txt {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--warn);
  opacity: 0;
  transition: opacity .4s;
}

.badge-txt.on {
  opacity: 1;
}

.canvas-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 17px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: .84rem;
  color: var(--text-soft);
}

.canvas-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 4px;
  color: var(--warn);
}

.pan-hint {
  display: none;
}

@media (max-width:760px) {
  .pan-hint {
    display: inline;
    color: var(--text-faint);
  }
}

/* =========================================================
   8. SECTIONS
   ========================================================= */
section {
  padding: 92px 0;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 42px;
  position: relative;
}

.sec-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--signal);
  transition: width 1s var(--ease) .1s;
}

.sec-head.in::after {
  width: 92px;
}

.sec-head p {
  margin: 0;
  font-size: .85rem;
  color: var(--text-faint);
}

@media (max-width:640px) {
  .sec-head p {
    display: none;
  }
}

/* =========================================================
   9. OFFERS
   ========================================================= */
.offers {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width:860px) {
  .offers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.offer {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s var(--ease);
}

.offer.featured {
  border-color: var(--signal);
  background: var(--surface-2);
}

.offer-tag {
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 100px;
  padding: 3px 10px;
  align-self: flex-start;
  margin-bottom: 16px;
}

.offer.featured .offer-tag {
  background: var(--signal);
  color: var(--signal-ink);
}

.offer h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.022em;
  margin: 0 0 9px;
  line-height: 1.22;
}

.offer>p {
  margin: 0 0 17px;
  font-size: .9rem;
  color: var(--text-soft);
}

.offer ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.offer li {
  position: relative;
  padding-left: 20px;
  font-size: .85rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 1.5px;
  background: var(--signal);
}

.offer-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.offer-foot b {
  color: var(--text);
  font-weight: 500;
}

/* =========================================================
   10. CASE STUDIES
   ========================================================= */
.case {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color .3s;
}

.case:hover {
  border-color: color-mix(in srgb, var(--signal) 45%, var(--line));
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width:940px) {
  .case-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(270px, .58fr);
  }
}

.case-body {
  padding: 30px 28px;
  min-width: 0;
}

.case-num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-faint);
  letter-spacing: .1em;
}

.case h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -.028em;
  line-height: 1.15;
  margin: 10px 0 0;
}

.case-where {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-faint);
  margin: 9px 0 0;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  overflow: hidden;
  margin: 22px 0;
}

.metric {
  flex: 1 1 145px;
  padding: 15px 16px;
  border-left: 1px solid var(--line-soft);
}

.metric:first-child {
  border-left: 0;
}

.metric .v {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -.03em;
  color: var(--signal);
  line-height: 1.1;
}

.metric .k {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-faint);
  margin-top: 5px;
  line-height: 1.45;
}

.case h4 {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 20px 0 7px;
}

.case p {
  margin: 0;
  color: var(--text-soft);
  font-size: .93rem;
  max-width: 60ch;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 22px 0 0;
}

.flow .step {
  font-family: var(--mono);
  font-size: .71rem;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text-soft);
  white-space: nowrap;
  opacity: .35;
  transform: translateY(3px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--s, 0) * 100ms);
}

.flow .arrow {
  color: var(--text-faint);
  font-size: .78rem;
  line-height: 1;
  opacity: .35;
  transition: opacity .45s var(--ease);
  transition-delay: calc(var(--s, 0) * 100ms);
}

.flow.lit .step,
.flow.lit .arrow {
  opacity: 1;
  transform: none;
}

.flow .step.src {
  border-color: color-mix(in srgb, var(--signal) 55%, transparent);
  color: var(--signal);
}

.flow .step.dst {
  border-color: var(--signal);
  color: var(--signal);
  background: color-mix(in srgb, var(--signal) 10%, var(--surface-2));
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
}

.tags li {
  font-family: var(--mono);
  font-size: .71rem;
  color: var(--text-faint);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 4px 11px;
}

/* demo panel */
.case-media {
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-width: 0;
}

@media (min-width:940px) {
  .case-media {
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }
}

.demo-card {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: block;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color .25s, transform .3s var(--ease);
}

.demo-card:hover {
  border-color: var(--signal);
  transform: translateY(-3px);
}

.demo-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--signal) 13%, transparent), transparent 62%),
    repeating-linear-gradient(45deg, var(--surface-2) 0 11px, var(--surface) 11px 22px);
}

.demo-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--signal-ink);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  transition: transform .3s var(--pop);
}

.demo-card:hover .play {
  transform: scale(1.09);
}

.play svg {
  width: 19px;
  height: 19px;
  margin-left: 3px;
}

.demo-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-soft);
}

.demo-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}

.demo-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-link {
  font-family: var(--mono);
  font-size: .72rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-soft);
  border-radius: 9px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color .2s, color .2s;
}

.chip-link:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.chip-link svg {
  width: 12px;
  height: 12px;
  flex: none;
}

/* =========================================================
   11. ARCHIVE
   ========================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter {
  font-family: var(--mono);
  font-size: .74rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 100px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all .2s;
}

.filter:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.filter[aria-pressed="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-ink);
}

.archive {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.arch-row {
  border-bottom: 1px solid var(--line-soft);
  transition: opacity .3s, transform .3s;
}

.arch-row[hidden] {
  display: none;
}

.arch-in {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 14px 17px 4px;
  background: none;
  border: 0;
  border-radius: 12px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, padding-left .25s var(--ease);
}

.arch-in:hover {
  background: var(--surface);
  padding-left: 14px;
}

.arch-t {
  display: block;
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .2s;
}

.arch-in:hover .arch-t {
  color: var(--signal);
}

.arch-k {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-faint);
  margin-top: 4px;
}

.arch-go {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  white-space: nowrap;
}

.arch-in:hover .arch-go {
  color: var(--signal);
}

.arch-go svg {
  width: 13px;
  height: 13px;
}

@media (max-width:520px) {
  .arch-go span {
    display: none;
  }
}

/* =========================================================
   12. LIGHTBOX
   ========================================================= */
.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 6, .86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lb.open {
  display: flex;
  animation: lbIn .3s var(--ease);
}

@keyframes lbIn {
  from {
    opacity: 0;
  }
}

.lb-box {
  width: min(1000px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}

.lb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--text-soft);
}

.lb-bar .sp {
  margin-left: auto;
}

.lb-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.lb-frame iframe,
.lb-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   13. BENTO STACK
   ========================================================= */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width:760px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .cell {
    grid-column: span 3;
  }

  .cell.full {
    grid-column: span 6;
  }
}

.cell {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px;
}

.cell h3 {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 14px;
}

.cell ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.cell li {
  font-family: var(--mono);
  font-size: .77rem;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 5px 11px;
  transition: border-color .2s, color .2s;
}

.cell li:hover {
  border-color: var(--signal);
  color: var(--text);
}

/* =========================================================
   14. APPROACH
   ========================================================= */
.approach {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
}

@media (min-width:940px) {
  .approach {
    grid-template-columns: 1.08fr .92fr;
    gap: 60px;
  }
}

.approach p {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--text-soft);
}

.approach p.lead {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.55;
}

.pull {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 2.5px solid var(--signal);
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text);
  max-width: 58ch;
  line-height: 1.4;
}

.guards {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 4px 22px;
}

.guards dl {
  margin: 0;
}

.guards div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.guards div:last-child {
  border-bottom: 0;
}

.guards dt {
  font-family: var(--mono);
  font-size: .79rem;
  color: var(--signal);
  margin-bottom: 5px;
}

.guards dd {
  margin: 0;
  font-size: .87rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* =========================================================
   15. EXPERIENCE + CREDENTIALS
   ========================================================= */
.role {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
}

.role:last-of-type {
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width:900px) {
  .role {
    grid-template-columns: minmax(240px, 1fr) 2.1fr;
    gap: 48px;
  }
}

.role h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -.022em;
  margin: 0 0 5px;
  line-height: 1.28;
}

.role .org {
  color: var(--signal);
  font-size: .92rem;
  font-weight: 600;
  margin: 0 0 3px;
}

.role .when {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text-faint);
  margin: 0;
}

.role ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.role li {
  position: relative;
  padding-left: 21px;
  font-size: .93rem;
  color: var(--text-soft);
  line-height: 1.58;
  max-width: 70ch;
}

.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 1.5px;
  background: var(--signal);
}

.role li b {
  color: var(--text);
  font-weight: 600;
}

.creds {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.cred {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 22px;
}

.cred svg {
  width: 18px;
  height: 18px;
  color: var(--signal);
  margin-bottom: 11px;
}

.cred h3 {
  font-size: .95rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.35;
}

.cred p {
  margin: 0;
  font-size: .82rem;
  color: var(--text-faint);
}

/* =========================================================
   16. FAQ
   ========================================================= */
.faq {
  border-top: 1px solid var(--line-soft);
}

details {
  border-bottom: 1px solid var(--line-soft);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 21px 0;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color .2s;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--signal);
}

.chev {
  width: 15px;
  height: 15px;
  flex: none;
  margin-left: auto;
  color: var(--text-faint);
  transition: transform .25s var(--ease);
}

details[open] .chev {
  transform: rotate(180deg);
  color: var(--signal);
}

details p {
  margin: 0 0 22px;
  color: var(--text-soft);
  max-width: 68ch;
  font-size: .93rem;
}

/* =========================================================
   17. CONTACT + FOOTER
   ========================================================= */
.cta-band {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -110px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width:960px) {
  .cta-grid {
    grid-template-columns: 1.02fr .98fr;
    gap: 54px;
  }
}

.cta-left {
  min-width: 0;
}

.who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.who img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}

.who .nm {
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.3;
}

.who .rl {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-faint);
}

.cta-band h2 {
  max-width: 17ch;
  margin: 0 0 16px;
}

.cta-band>.cta-grid p.intro {
  color: var(--text-soft);
  margin: 0 0 28px;
  max-width: 50ch;
}

.channels {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  margin-top: 30px;
}

@media (max-width:560px) {
  .channels {
    grid-template-columns: 1fr;
  }
}

.channel {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 15px;
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}

.channel:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
}

.channel svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--signal);
}

.channel span {
  font-family: var(--mono);
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.copy-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text-faint);
  margin-left: auto;
  font-family: var(--mono);
  font-size: .69rem;
  padding: 8px 10px;
  border-radius: 6px;
  flex: none;
  transition: color .2s, background .2s;
}

.copy-btn:hover {
  color: var(--signal);
  background: var(--surface-2);
}

form.say {
  display: grid;
  gap: 13px;
  align-content: start;
  min-width: 0;
}

form.say h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: -.022em;
  margin: 0;
}

.f-row {
  display: grid;
  gap: 5px;
}

.f-two {
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr;
}

@media (min-width:520px) {
  .f-two {
    grid-template-columns: 1fr 1fr;
  }
}

.f-row label {
  font-size: .79rem;
  color: var(--text-soft);
  font-weight: 500;
}

.f-row input,
.f-row textarea,
.f-row select {
  font-family: var(--body);
  font-size: .93rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

@media (max-width:640px) {

  .f-row input,
  .f-row textarea,
  .f-row select {
    font-size: 16px;
  }
}

.f-row select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.f-row input:focus,
.f-row textarea:focus,
.f-row select:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent);
  outline: none;
}

.f-row textarea {
  resize: vertical;
  min-height: 110px;
}

.f-note {
  font-size: .76rem;
  color: var(--text-faint);
  margin: 0;
}

.f-msg {
  font-size: .86rem;
  margin: 0;
  padding: 12px 14px;
  border-radius: 11px;
  display: none;
  line-height: 1.5;
}

.f-msg a {
  color: var(--signal);
}

.f-msg.ok {
  display: block;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
}

.f-msg.err {
  display: block;
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
}

.hp {
  display: none !important;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  margin-top: 72px;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: .8rem;
  color: var(--text-faint);
}

.foot-in .sp {
  margin-left: auto;
}

.foot-in a {
  color: var(--text-soft);
  text-decoration: none;
}

.foot-in a:hover {
  color: var(--signal);
}

/* =========================================================
   18. MOTION UTILITIES
   ========================================================= */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: var(--signal);
  transition: width .08s linear;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 65ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.spot {
  position: relative;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--signal) 12%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity .32s;
}

.spot:hover::before {
  opacity: 1;
}

.spot>* {
  position: relative;
  z-index: 1;
}

@media (hover:none) {

  .offer:hover,
  .cell li:hover,
  .channel:hover,
  .demo-card:hover,
  .icon-btn:hover,
  .btn:hover {
    transform: none;
  }

  .spot::before {
    display: none;
  }
}

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

  .hero h1 .w>span,
  .avail,
  .hero-sub,
  .hero-rule,
  .hero-actions,
  .proof-row,
  .hero-figure,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .flow .step,
  .flow .arrow {
    opacity: 1 !important;
    transform: none !important;
  }

  .blob,
  .ticker-track {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* header CTA is desktop-only; the mobile menu carries its own */
.topbar-in .mag {
  display: none;
}

@media (min-width:880px) {
  .topbar-in .mag {
    display: inline-flex;
  }
}

@media (max-width:560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width:640px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 34px;
  }

  .case-body {
    padding: 24px 20px;
  }

  .cta-band {
    padding: 32px 22px;
  }

  .role {
    padding: 26px 0;
  }
}

@media (max-width:400px) {
  .shell {
    padding-inline: 17px;
  }

  .m-nav {
    padding-inline: 17px;
  }

  .cta-band {
    padding: 26px 18px;
  }
}

/* =========================================================
   ADDED — links from the homepage into the new pages
   ========================================================= */
.case-more {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--signal);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.case-more:hover {
  text-decoration-thickness: 2.5px;
}

.also {
  margin: 16px 0 0;
  font-size: .85rem;
  color: var(--text-faint);
}

.also a {
  color: var(--text-soft);
  text-underline-offset: 3px;
}

.also a:hover {
  color: var(--signal);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.foot-links a {
  font-size: .84rem;
  color: var(--text-soft);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--signal);
}

/* =========================================================
   ADDED — case study and service pages
   ========================================================= */
.crumbs {
  font-size: .82rem;
  color: var(--text-faint);
  margin: 0 0 22px;
}

.crumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--signal);
}

.crumbs span[aria-hidden] {
  margin: 0 8px;
}

.cs-hero {
  padding-top: 56px;
  padding-bottom: 36px;
}

.cs-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0;
  max-width: 19ch;
}

.cs-lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-soft);
  max-width: 58ch;
  margin: 22px 0 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 0;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.facts div {
  padding: 16px 18px;
  border-left: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  margin-top: -1px;
  margin-left: -1px;
}



.facts dt {
  font-size: .78rem;
  color: var(--text-faint);
  margin: 0 0 4px;
}

.facts dd {
  margin: 0;
  font-size: .92rem;
}

.cs-video {
  margin: 8px 0 0;
}

.cs-video .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.cs-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs-video figcaption {
  font-size: .85rem;
  color: var(--text-faint);
  margin-top: 10px;
}

.cs-layout {
  display: grid;
  gap: 48px;
  padding-top: 56px;
}

@media (min-width: 980px) {
  .cs-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 72px;
  }
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -.028em;
  line-height: 1.15;
  margin: 52px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose p {
  margin: 0 0 16px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--signal);
  text-underline-offset: 3px;
}

.prose ul {
  padding-left: 1.1em;
  margin: 0 0 18px;
}

.prose ul li {
  margin: 0 0 8px;
}

.prose ul li::marker {
  color: var(--signal);
}

/* real sequences only: the steps a record goes through */
.steps {
  list-style: none;
  counter-reset: st;
  padding: 0;
  margin: 8px 0 22px;
  border-left: 1.5px solid var(--line);
}

.steps li {
  counter-increment: st;
  position: relative;
  padding: 0 0 20px 34px;
  margin: 0;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(st);
  position: absolute;
  left: -13px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .7rem;
  background: var(--bg);
  border: 1.5px solid var(--signal);
  color: var(--signal);
}

.steps li strong {
  display: block;
  margin-bottom: 2px;
}

.steps li.fail::before {
  border-color: var(--warn);
  color: var(--warn);
}

.cs-flow {
  margin: 4px 0 26px;
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.side {
  display: grid;
  gap: 18px;
  align-content: start;
}

@media (min-width: 980px) {
  .side {
    position: sticky;
    top: 92px;
  }
}

.side .metrics {
  flex-direction: column;
  margin: 0;
}

.side .metric {
  flex: none;
  border-left: 0;
  border-top: 1px solid var(--line-soft);
}

.side .metric:first-child {
  border-top: 0;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
}

.side-card h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 8px;
}

.side-card p {
  font-size: .9rem;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.side-card .btn {
  width: 100%;
}

.side .tags {
  margin: 0;
}

.related {
  padding-top: 72px;
  padding-bottom: 0;
}

.related h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.rel-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.rel {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
  text-decoration: none;
  transition: border-color .2s;
}

.rel:hover {
  border-color: var(--signal);
}

.rel strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -.015em;
  margin-bottom: 6px;
}

.rel span {
  font-size: .88rem;
  color: var(--text-soft);
}

.page-cta {
  padding-top: 72px;
  padding-bottom: 0;
}

.page-cta .cta-band h2 {
  max-width: 22ch;
}

.page-cta .cta-band p {
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 0 26px;
}

.page-cta .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: .92rem;
}

.map-wrap {
  overflow-x: auto;
}

.map th,
.map td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.map th {
  font-weight: 600;
  font-size: .8rem;
  color: var(--text-faint);
}

.map td:first-child {
  color: var(--text);
  white-space: nowrap;
}

.map td {
  color: var(--text-soft);
}

.qa details {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}

.qa summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  color: var(--text);
}

.qa details p {
  margin: 0 0 16px;
}

.notfound {
  padding: 110px 0 40px;
  max-width: 640px;
}

.notfound .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
