/* GridSocial — How it works
   Palette: red, black, white only */

:root {
  /* --red: #343464; */
  --red: #d12735;
  --red-deep: #B91C1C;
  --red-ink: #7F1D1D;
  --red-soft: #FEE2E2;
  --red-mist: #FEF2F2;

  --ink: #0A0A0A;
  --ink-2: #1F1F1F;
  --muted: #525252;
  --muted-2: #737373;
  --line: #E5E5E5;
  --line-soft: #F2F2F2;
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --maxw: 1240px;
  --gutter: 28px;
  --pad-y: 120px;

  /* --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif; */
}

[data-density="compact"] {
  --pad-y: 80px;
}
[data-density="spacious"] {
  --pad-y: 160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  /* font-family: var(--font-sans); */
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button {  cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* -------- Typography -------- */
h1, h2, h3, h4 {
  /* font-family: var(--font-display); */
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0; color: var(--muted); }
.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); line-height: 1.55; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red);
  padding: 6px 12px;
  border: 1px solid var(--red-soft);
  background: var(--red-mist);
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--red) 18%, transparent);
}
.eyebrow-plain {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow-plain::before {
  content: ""; width: 28px; height: 1px; background: var(--red);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  /* height: 48px; */
  padding: 12px 27px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: white;
}
.btn-primary:hover { background: var(--red)!important; border: 1px solid transparent!important; transform: translateY(-1px); }
.btn-red {
  background: var(--red); color: white;
}
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px) ;color:#fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-text {
  background: transparent; color: var(--ink); padding: 0;
}
.btn-text:hover { color: var(--red); }
.btn-text .arrow { transition: transform .2s ease; }
.btn-text:hover .arrow { transform: translateX(4px); }



/* -------- Hero -------- */
.hero {
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-h1 .pen-red { color: var(--red); position: relative; display: inline-block; }
.hero-h1 .pen-red::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 14px; background: var(--red-mist);
  z-index: -1; transform: skew(-6deg);
}
.hero-lead { max-width: 520px; margin-top: 28px; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; align-items: center; }

.hero-trust {
  margin-top: 56px;
  display: flex; align-items: center; gap: 32px;
  color: var(--muted);
  font-size: 13px;
}
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid white;
  background-size: cover; background-position: center;
  margin-left: -10px;
}
.hero-trust .avatars span:first-child { margin-left: 0; }
.hero-trust strong { color: var(--ink); font-weight: 700; }

/* hero visual — video placeholder */
.hero-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  border-radius: 20px;
  overflow: hidden;
  background: #0A0A0A;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.35);
  cursor: pointer;
}

/* Corner bracket decoration */
.hero-video-corners::before,
.hero-video-corners::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid white;
  opacity: 0.55;
  z-index: 5;
  pointer-events: none;
}
.hero-video-corners::before { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.hero-video-corners::after  { top: 16px; right: 16px; border-left: none; border-bottom: none; }

/* Overlay */
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(209,39,53,0.25) 0%, rgba(0,0,0,0.65) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  z-index: 2;
  transition: opacity .4s ease;
  cursor: pointer;
}
.hero-video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Play button */
.hero-video-play {
  width: 88px; height: 88px; border-radius: 50%;
  background: white; color: #0A0A0A;
  display: grid; place-items: center;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  animation: playPulse 2.4s ease-out infinite;
}
.hero-video-overlay:hover .hero-video-play {
  transform: scale(1.08);
  background: #d12735;
  color: white;
}
.hero-video-play svg { margin-left: 4px; }

@keyframes playPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.35); }
  70%  { box-shadow: 0 0 0 24px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Meta text inside overlay */
.hero-video-meta-inline { text-align: center; color: white; }

.eyebrow-w {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #d12735;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow-w::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #d12735;
  animation: dotpulse 2s ease-in-out infinite;
}
@keyframes dotpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-video-meta-inline .title { font-size: 17px; font-weight: 600; margin-top: 8px; }
.hero-video-meta-inline .dur   { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* Progress bar */
.hero-video-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.15);
  z-index: 6; pointer-events: none;
}
.hero-video-progress-fill {
  height: 100%; width: 0%;
  background: #d12735;
  transition: width .25s linear;
}
.hero-orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line);
}
.hero-orbit::before, .hero-orbit::after {
  content: ""; position: absolute;
  border-radius: 50%; border: 1px dashed var(--line);
}
.hero-orbit::before { inset: 12%; }
.hero-orbit::after { inset: 26%; }

.hero-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid; place-items: center;
  text-align: center;
  padding: 8%;
  box-shadow: 0 30px 60px -20px rgba(225, 29, 42, 0.35),
              0 0 0 8px white,
              0 0 0 9px var(--line);
}
.hero-center .label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
  font-weight: 700;
}
.hero-center .title {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-node {
  position: absolute;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--red);
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.12);
  animation: nodeFloat 6s ease-in-out infinite;
}
.hero-node img { width: 38px; height: 38px; }
.hero-node-label {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* node positions (clock positions) */
.hero-node.n1 { top: 0; left: 50%; transform: translate(-50%, 0); }
.hero-node.n2 { top: 22%; right: -2%; }
.hero-node.n3 { bottom: 22%; right: -2%; }
.hero-node.n4 { bottom: 0; left: 50%; transform: translate(-50%, 0); }
.hero-node.n5 { bottom: 22%; left: -2%; }
.hero-node.n6 { top: 22%; left: -2%; }

.hero-node.n1 { animation-delay: 0s; }
.hero-node.n2 { animation-delay: 0.5s; }
.hero-node.n3 { animation-delay: 1s; }
.hero-node.n4 { animation-delay: 1.5s; }
.hero-node.n5 { animation-delay: 2s; }
.hero-node.n6 { animation-delay: 2.5s; }

.hero-node-label.l1 { top: -28px; left: 50%; transform: translateX(-50%); }
.hero-node-label.l2 { top: 22%; right: -16%; transform: translateY(-50%) translateY(38px); }
.hero-node-label.l3 { bottom: 22%; right: -18%; transform: translateY(50%) translateY(-38px); }
.hero-node-label.l4 { bottom: -28px; left: 50%; transform: translateX(-50%); }
.hero-node-label.l5 { bottom: 22%; left: -16%; transform: translateY(50%) translateY(-38px); }
.hero-node-label.l6 { top: 22%; left: -16%; transform: translateY(-50%) translateY(38px); }

/* hero inline stats strip */
.hero-stats {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.hero-stat .num .red { color: var(--red); }
.hero-stat .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* -------- Section heading kit -------- */
.section { padding: var(--pad-y) 0; }
.section-bg-dark { background: var(--ink); color: white; }
.section-bg-soft { background: var(--bg-2); }

.section-head {
  max-width: 740px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head.left { text-align: left; margin: 0 0 56px; max-width: 720px; }
.section-head h2 { margin: 18px 0 16px; }
.section-head p { font-size: 18px; }

/* -------- How it works (scrollytelling) -------- */
.how {
  background: var(--bg-2);
}
.how-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.how-step {
  position: relative; /* needed for ::before to anchor */
}
.how-steps {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.how-steps-progress {
  position: absolute;
  left: 23px;
  top: 30px;
  width: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: height 0.4s cubic-bezier(.2,.7,.2,1);
}
.how-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  cursor: pointer;
  position: relative;
  transition: opacity .35s ease;
  /* opacity: 0.45; */
}
.how-step.is-active { opacity: 1; }
.how-step .num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  z-index: 1;
  position: relative;
  transition: all .35s ease;
  font-variant-numeric: tabular-nums;
}
.how-step.is-active .num {
  background: var(--red); color: white; border-color: var(--red);
  box-shadow: 0 0 0 6px var(--red-mist);
}
.how-step .num::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  opacity: 0;
  transform: scale(0.6);
  transition: all .4s ease;
}
.how-step.is-active .num::after {
  opacity: 1; transform: scale(1.5);
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: scale(1.5); }
  50% { opacity: 0; transform: scale(2.1); }
}
.how-step h3 { margin-bottom: 8px; font-size: 24px; }
.how-step p { font-size: 15.5px; color: var(--muted); max-width: 480px; }

.how-step .meta {
  display: flex; gap: 12px; margin-top: 14px;
  font-size: 12px; color: var(--muted);
}
.how-step .tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  padding: 4px 10px;
  background: var(--red-mist);
  border-radius: 999px;
}

.how-visual {
 position: sticky;
  top: 96px;
  align-self: start;   /* ✅ ADD this */
  height: 580px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.18);
  overflow: hidden;
}
.how-visual-frame {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
  transform: translateY(12px);
  display: grid; place-items: center;
  padding: 32px;
  background: var(--bg-2);
}
.how-visual-frame.is-active {
  opacity: 1;
  transform: translateY(0);
}
.how-visual-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.08));
}

/* mini mock UI overlay */
.mock {
  position: absolute; inset: 0;
  padding: 24px;
  display: flex; flex-direction: column;
  background: white;
}
.mock-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.mock-topbar .left {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
}
.mock-topbar .left::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
}
.mock-topbar .right { display: flex; gap: 8px; }
.mock-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  font-weight: 600;
  color: var(--muted);
}
.mock-pill.red { background: var(--red-mist); color: var(--red); }
.mock-pill.black { background: var(--ink); color: white; }

.mock-body {
  flex: 1; margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
}
.mock-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: white;
  display: flex; flex-direction: column;
  gap: 10px;
}
.mock-card-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.mock-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.mock-row:last-child { border-bottom: none; }
.mock-row .lbl { font-weight: 600; color: var(--ink); }
.mock-row .val { color: var(--muted); }
.mock-bar {
  height: 6px; border-radius: 3px;
  background: var(--bg-2);
  overflow: hidden;
}
.mock-bar > span {
  display: block; height: 100%;
  background: var(--red);
  border-radius: 3px;
}

.mock-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mock-num small { font-size: 14px; color: var(--muted); font-weight: 500; }

/* -------- Capabilities (horizontal marquee carousel) -------- */
.cap-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.cap-section-head .left { max-width: 640px; }
.cap-section-head h2 { margin: 18px 0 16px; }
.cap-section-head p { font-size: 18px; }
.cap-nav {
  display: flex; gap: 10px;
  flex-shrink: 0;
}
.cap-nav button {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.cap-nav button:hover {
  background: var(--ink); color: white; border-color: var(--ink);
  transform: translateY(-1px);
}
.cap-nav button:active { transform: translateY(0); }

.cap-carousel {
  position: relative;
  overflow: hidden;
  /* full-bleed within container so cards can flow off edge */
  margin: 0 calc(-1 * var(--gutter));
  padding: 8px 0;
  /* fade edges */
  mask-image: linear-gradient(90deg, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
}
.cap-track {
  display: flex;
  gap: 20px;
  padding: 0 var(--gutter);
  width: max-content;
  animation: capScroll 50s linear infinite;
  will-change: transform;
}
.cap-carousel:hover .cap-track,
.cap-carousel.is-paused .cap-track {
  animation-play-state: paused;
}
@keyframes capScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); } /* -10px = half of 20px gap */
}

.cap {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 14px;
  width: 360px;
  min-height: 380px;
  flex-shrink: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cap:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -22px rgba(0,0,0,0.14);
  border-color: var(--ink);
}
.cap-head {
  display: flex; align-items: center; gap: 12px;
}
.cap-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--red-mist);
  color: var(--red);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cap-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cap h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cap p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.cap-visual {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

/* visual variants — uniform sizing */
.cap-mini {
  display: flex; flex-direction: column; gap: 8px;
}
.cap-mini-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: 8px;
  font-size: 12.5px;
}
.cap-mini-row .l { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.cap-mini-row .l .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.cap-mini-row.is-red .l .dot { background: var(--red); }
.cap-mini-row.is-ink .l .dot { background: var(--ink); }
.cap-mini-row .r {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  border: 1px solid var(--line);
}
.cap-mini-row.is-red .r { background: var(--red-mist); color: var(--red); border-color: var(--red-soft); }
.cap-mini-row.is-ink .r { background: var(--ink); color: white; border-color: var(--ink); }

.cap-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 64px;
}
.cap-bars .bar {
  flex: 1;
  background: var(--line);
  border-radius: 3px 3px 0 0;
}
.cap-bars .bar.is-red { background: var(--red); }
.cap-bars .bar.is-ink { background: var(--ink); }
.cap-bars-labels {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.cap-flow {
  display: grid;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  gap: 4px;
  align-items: center;
}
.cap-flow .pill {
  background: var(--bg-2);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.cap-flow .pill.is-red {
  background: var(--red);
  color: white;
}
.cap-flow .arrow {
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.cap-flow .arrow::after {
  content: "";
  position: absolute; right: -1px; top: 50%;
  border-left: 5px solid var(--ink);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
}

.cap-timeline {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
  padding-left: 16px;
}
.cap-timeline .ev {
  display: flex; gap: 12px; align-items: center;
  padding: 6px 0;
  position: relative;
  font-size: 12.5px;
}
.cap-timeline .ev::before {
  content: ""; position: absolute;
  left: -12px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}
.cap-timeline .ev::after {
  content: ""; position: absolute;
  left: -9px; top: 50%;
  height: 100%; width: 1.5px;
  background: var(--line);
  z-index: -1;
}
.cap-timeline .ev:last-child::after { display: none; }
.cap-timeline .ev .t {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 44px;
  font-size: 11px;
  font-weight: 600;
}
.cap-timeline .ev .d { color: var(--ink); font-weight: 500; }

.cap-avatars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cap-avatars .av {
  aspect-ratio: 1;
  border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px -1px rgba(0,0,0,0.12);
}
.cap-avatars .av.more {
  background: var(--ink);
  color: white;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
}

.cap-stat-mini {
  display: flex; align-items: baseline; gap: 8px;
}
.cap-stat-mini .v {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}
.cap-stat-mini .l {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* -------- Roles -------- */
.roles { background: var(--bg); }
.roles-stack {
  display: flex; flex-direction: column;
  gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.role {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: stretch;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: border-color .25s ease, transform .25s ease;
  min-height: 280px;
}
.role:hover {
  border-color: var(--ink);
}
.role-photo {
  position: relative;
  background-size: cover; background-position: center;
  border-right: 1px solid var(--line);
}
.role-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65) 100%);
}
.role-photo-tag {
  position: absolute;
  left: 20px; bottom: 20px;
  color: white;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.role-photo-tag::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px;
  background: white;
  vertical-align: middle;
  margin-right: 10px;
}
.role-body {
  padding: 36px 36px 36px 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.role-roman {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  font-feature-settings: 'tnum';
}
.role h3 { font-size: 28px; letter-spacing: -0.025em; }
.role-sub {
  font-size: 13px; color: var(--muted);
  font-weight: 500;
}
.role ul {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.role ul li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.role ul li::before {
  content: ""; position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1.5px;
  background: var(--red);
}
.role-side {
  padding: 36px 36px 36px 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-width: 200px;
}
.role-mini-stat {
  text-align: right;
}
.role-mini-stat .v {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.role-mini-stat .v .red { color: var(--red); }
.role-mini-stat .l {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.role-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
}
.role-action:hover { color: var(--red); }

/* -------- Big stats band -------- */
.bigstats {
  background: var(--ink);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.bigstats::before {
  content: ""; position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(225,29,42,0.15), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(225,29,42,0.12), transparent 45%);
  pointer-events: none;
}
.bigstats-head {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.bigstats-head h2 { color: white; }
.bigstats-head p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 14px auto 0; }
.bigstats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.bigstat {
  padding: 56px 48px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.bigstat:hover {
  border-color: rgba(225,29,42,0.4);
  transform: translateY(-3px);
}
.bigstat::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(225,29,42,0.18), transparent 70%);
  pointer-events: none;
}
.bigstat .v {
  font-size: clamp(72px, 8vw, 128px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  margin-bottom: 24px;
  color: white;
}
.bigstat .v .red { color: var(--red); }
.bigstat .l {
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px;
}
.bigstat .l::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--red);
}
.bigstat .desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-top: 14px;
  line-height: 1.5;
  max-width: 320px;
}

/* -------- CTA -------- */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--red-mist) 0%, transparent 60%);
  z-index: -1;
}
.cta-eyebrow { color: var(--red); }
.cta h2 {
  margin: 0 auto 24px;
  max-width: 720px;
  font-size: clamp(44px, 5vw, 72px);
}
.cta p { font-size: 19px; max-width: 860px; margin: 0 auto; text-wrap: balance; }
.cta-actions {
  margin-top: 44px;
  display: flex; justify-content: center; gap: 14px;
}
.cta-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

/* -------- Footer -------- */
.
/* -------- Animations on enter -------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Responsive -------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { margin: 0 auto; max-width: 460px; }
  .how-shell { grid-template-columns: 1fr; gap: 40px; }
  .how-visual { position: relative; top: 0; height: 420px; }
  .role { grid-template-columns: 200px 1fr; }
  .role-side { display: none; }
  .role-photo { min-height: 240px; }
  .cap { width: 320px; min-height: 360px; padding: 28px; }
}
@media (max-width: 700px) {
  :root { --pad-y: 80px; --gutter: 20px; }
  .nav-links { display: none; }
  .nav-row { height: 64px; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat { border-bottom: 1px solid var(--line); }
  .bigstats-grid { grid-template-columns: 1fr; }
  .bigstat { padding: 40px 28px; }
  .bigstat:nth-child(2) { border-right: none; }
  .role { grid-template-columns: 1fr; }
  .role-photo { min-height: 200px; border-right: none; border-bottom: 1px solid var(--line); }
  .role-body { padding: 24px; }
  .role ul { grid-template-columns: 1fr; }
  .cap { width: 280px; min-height: 340px; padding: 24px; }
  .cap-section-head { flex-direction: column; align-items: stretch; }
  .cap-nav { align-self: flex-end; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-video-play {
    width: 60px;
    height: 60px;
  }
  .hero-video-overlay{gap: 0;}
  .cta-actions {
    display: grid;
  }
}

/* -------- Platform Capabilities (extended features) -------- */
.pcap { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.pcap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pcap-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pcap-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 28px 50px -28px rgba(0,0,0,0.18);
}
.pcap-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--ink));
  opacity: 0;
  transition: opacity .25s ease;
}
.pcap-card:hover::before { opacity: 1; }

.pcap-card-top {
  display: flex; justify-content: flex-end; align-items: center;
}
.pcap-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pcap-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.pcap-num {
  /* font-family: var(--font-display); */
  font-size: 28px;
  font-weight: 700;
  color: var(--line);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pcap-card h3 {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.18;
  margin-top: 4px;
}
.pcap-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.pcap-card .pcap-kicker {
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  margin-top: -4px;
}

.pcap-visual {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

/* --- visual: AI caller --- */
.pcap-caller { display: flex; flex-direction: column; gap: 14px; }
.pcap-call {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: white;
  border-radius: 14px;
  padding: 14px 16px;
}
.pcap-call-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.pcap-call-body { flex: 1; min-width: 0; }
.pcap-call-name {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.7;
  margin-bottom: 6px;
}
.pcap-call-line {
  display: flex; align-items: center; gap: 3px;
  height: 16px;
}
.pcap-call-line .bar {
  display: block;
  width: 3px;
  background: white;
  border-radius: 2px;
  opacity: 0.85;
  animation: pcapWave 1.2s ease-in-out infinite;
}
.pcap-call-line .bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.pcap-call-line .bar:nth-child(2) { height: 60%; animation-delay: .08s; }
.pcap-call-line .bar:nth-child(3) { height: 90%; animation-delay: .16s; }
.pcap-call-line .bar:nth-child(4) { height: 55%; animation-delay: .24s; }
.pcap-call-line .bar:nth-child(5) { height: 75%; animation-delay: .32s; }
.pcap-call-line .bar:nth-child(6) { height: 40%; animation-delay: .40s; }
.pcap-call-line .bar:nth-child(7) { height: 85%; animation-delay: .48s; }
.pcap-call-line .bar:nth-child(8) { height: 50%; animation-delay: .56s; }
.pcap-call-line .bar:nth-child(9) { height: 70%; animation-delay: .64s; }
.pcap-call-line .bar:nth-child(10){ height: 35%; animation-delay: .72s; }
.pcap-call-line .bar:nth-child(11){ height: 80%; animation-delay: .80s; }
.pcap-call-line .bar:nth-child(12){ height: 45%; animation-delay: .88s; }
@keyframes pcapWave {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1.2); }
}
.pcap-call-time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}
.pcap-integrations {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pcap-int {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.pcap-int.is-more { background: var(--ink); color: white; border-color: var(--ink); }

/* --- visual: Dashboards --- */
.pcap-dash {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 16px; align-items: stretch;
}
.pcap-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pcap-kpi {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.pcap-kpi .l {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.pcap-kpi .v {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pcap-kpi .v i {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 1px;
}
.pcap-kpi .t {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pcap-kpi .t.up { color: #047857; }
.pcap-kpi .t.down { color: var(--red); }
.pcap-spark {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex; align-items: center;
}
.pcap-spark svg { width: 100%; height: auto; display: block; }

/* --- visual: Workflows --- */
.pcap-flow2 {
  display: grid;
  grid-template-columns: auto 18px auto 18px auto;
  align-items: center;
  gap: 6px;
  row-gap: 14px;
}
.pcap-node {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}
.pcap-node.is-red { background: var(--red); color: white; border-color: var(--red); }
.pcap-node.is-ink { background: var(--ink); color: white; border-color: var(--ink); }
.pcap-link {
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.pcap-link::after {
  content: "";
  position: absolute; right: -1px; top: 50%;
  border-left: 5px solid var(--ink);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
}
.pcap-branch {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 4px;
}
.pcap-branch-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--ink);
  padding-left: 4px;
}
.pcap-branch-row .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* --- visual: Wellness --- */
.pcap-wellness { display: flex; flex-direction: column; gap: 12px; }
.pcap-notif {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--red-mist);
  border: 1px solid var(--red-soft);
}
.pcap-notif-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pcap-notif-body { flex: 1; min-width: 0; }
.pcap-notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.pcap-notif-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.pcap-notif-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  flex-shrink: 0;
}
.pcap-checklist {
  display: flex; flex-direction: column; gap: 4px;
}
.pcap-chk {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 0;
}
.pcap-chk .b {
  width: 14px; height: 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
}
.pcap-chk.is-done { color: var(--ink); font-weight: 600; }
.pcap-chk.is-done .b {
  background: var(--ink);
  border-color: var(--ink);
}
.pcap-chk.is-done .b::after {
  content: "";
  position: absolute;
  left: 3px; top: 0px;
  width: 4px; height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .pcap-grid { grid-template-columns: 1fr; }
  .pcap-card { padding: 32px 28px; }
  .pcap-dash { grid-template-columns: 1fr; }
  .pcap-spark { min-height: 60px; }
  .pcap-wide-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .pcap-wide-grid { grid-template-columns: 1fr!important;  }
}

/* --- wide card: Automated Alerts --- */
.pcap-card-wide { grid-column: 1 / -1; padding: 48px; }
.pcap-wide-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.pcap-wide-text { display: flex; flex-direction: column; gap: 16px; }
.pcap-wide-text .pcap-card-top { margin-bottom: 0; }
.pcap-wide-visual {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.pcap-alert-stream {
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.pcap-alert {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pcap-alert-bullet {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted-2);
  margin-top: 4px;
  position: relative;
}
.pcap-alert.is-warn .pcap-alert-bullet { background: #D97706; }
.pcap-alert.is-warn .pcap-alert-bullet::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid #D97706;
  opacity: 0.25;
}
.pcap-alert.is-escalate {
  border-color: var(--red);
  background: var(--red-mist);
}
.pcap-alert.is-escalate .pcap-alert-bullet { background: var(--red); }
.pcap-alert.is-escalate .pcap-alert-bullet::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: pcapPulse 1.6s ease-out infinite;
}
@keyframes pcapPulse {
  0%   { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pcap-alert-body { min-width: 0; }
.pcap-alert-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.pcap-alert-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.pcap-alert-time {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.pcap-alert-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: var(--red);
  color: white;
  border-radius: 999px;
}
.pcap-alert-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.pcap-alert.is-escalate .pcap-alert-sub { color: var(--ink); }

@media (max-width: 720px) {
  .pcap-card-wide { padding: 32px 28px; }
}
