/* home.css — home page specific styles */

/* ==================== HERO ==================== */

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  padding-bottom: 32px;
  overflow: hidden;
}

.hero-reel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-reel canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-reel-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11, 11, 10, 0) 0%, rgba(11, 11, 10, 0.4) 40%, rgba(11, 11, 10, 0.95) 100%),
    linear-gradient(to bottom, rgba(11, 11, 10, 0.4) 0%, transparent 20%, transparent 60%, rgba(11, 11, 10, 0.9) 100%);
  pointer-events: none;
}

[data-theme="light"] .hero-reel-overlay {
  background:
    radial-gradient(ellipse at center, rgba(239, 235, 227, 0) 0%, rgba(239, 235, 227, 0.4) 40%, rgba(239, 235, 227, 0.95) 100%),
    linear-gradient(to bottom, rgba(239, 235, 227, 0.4) 0%, transparent 20%, transparent 60%, rgba(239, 235, 227, 0.9) 100%);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-title {
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 8vh, 96px);
  margin-bottom: clamp(48px, 8vh, 96px);
}

.hero-sub {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  margin-top: auto;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.hero-sub-inner > * + * { margin-top: 24px; }
.hero-sub-inner { display: flex; flex-direction: column; gap: 20px; }
.hero-sub-inner .btn { align-self: flex-start; }

.hero-cred {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hero-cred-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hero-cred-grid .t-mono { margin-top: 8px; color: var(--ink-3); }

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  color: var(--ink-3);
  animation: bob 2.2s var(--ease-in-out) infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@media (max-width: 768px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-cred-grid { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .hero-scroll-hint { display: none; }
}

/* ==================== CLIENTS ==================== */

.clients {
  padding-top: var(--row);
  padding-bottom: var(--row-tight);
}

.clients-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.client {
  padding: 48px 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  text-align: center;
  transition: color 400ms var(--ease-out), background 400ms var(--ease-out);
}
.client:hover { color: var(--accent); background: var(--bg-2); }
.client span { color: var(--ink-3); font-size: 0.7em; }

.wrap-line {
  margin: 0 var(--pad-x);
  width: auto;
}

@media (max-width: 768px) {
  .clients-head { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
}

/* ==================== SERVICES / CHAPTERS ==================== */

.services {
  padding-top: var(--row);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: var(--row-tight);
}

.chapter {
  border-top: 1px solid var(--line);
  position: relative;
}

.chapter-sticky {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 48px;
  padding-top: var(--row-tight);
  padding-bottom: var(--row-tight);
  align-items: center;
}

.chapter-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  padding-top: 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink-3);
}

.chapter-visual {
  position: relative;
  aspect-ratio: 4 / 3.55;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.chapter-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.chapter-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
}
.chapter-list li::before {
  content: "◦";
  color: var(--accent);
  font-size: 10px;
}

.chapter-content .btn { align-self: flex-start; }

/* Chapter 1: Web — screen mock */
.chapter-screen {
  width: 94%;
  height: 94%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.chapter-screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.chapter-screen-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong);
}
.chapter-screen-bar em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-left: auto;
}

.chapter-screen-body {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

/* Site nav */
.cs-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.cs-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
}
.cs-logo svg { color: var(--accent); }
.cs-navlinks {
  display: inline-flex;
  gap: 12px;
  margin-left: 4px;
}
.cs-nav-active {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.cs-nav-cta {
  margin-left: auto;
  color: var(--ink);
}

/* Hero */
.cs-hero {
  padding-top: 2px;
}
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
  white-space: nowrap;
}
.cs-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
  animation: cs-pulse 2.2s ease-in-out infinite;
}
@keyframes cs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.cs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
}

.cs-hero-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
  max-width: 320px;
  line-height: 1.5;
}

.cs-hero-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cs-btn {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.cs-btn--dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Heat strip */
.cs-heatrow {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.cs-heatrow-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.cs-heatrow-label span:last-child { color: var(--accent); }
.cs-heatrow-cells {
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  gap: 2px;
  height: 8px;
}
.cs-heatrow-cells::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 100%;
  background:
    linear-gradient(90deg,
      color-mix(in oklab, var(--accent) 8%, transparent) 0%,
      color-mix(in oklab, var(--accent) 22%, transparent) 12%,
      color-mix(in oklab, var(--accent) 45%, transparent) 24%,
      color-mix(in oklab, var(--accent) 70%, transparent) 36%,
      var(--accent) 48%,
      color-mix(in oklab, var(--accent) 85%, transparent) 58%,
      color-mix(in oklab, var(--accent) 55%, transparent) 68%,
      color-mix(in oklab, var(--accent) 32%, transparent) 78%,
      color-mix(in oklab, var(--accent) 18%, transparent) 88%,
      color-mix(in oklab, var(--accent) 8%, transparent) 100%);
  mask-image: repeating-linear-gradient(90deg, #000 0 calc(100% / 48 - 2px), transparent calc(100% / 48 - 2px) calc(100% / 48));
}

/* Pipeline table */
.cs-pipeline {
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-pipeline-head,
.cs-pipeline-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.4fr;
  gap: 10px;
  align-items: center;
  padding: 5px 10px;
}
.cs-pipeline-head {
  color: var(--ink-3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.cs-pipeline-row {
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.cs-pipeline-row:last-child { border-bottom: 0; }
.cs-pipeline-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.cs-bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  display: inline-block;
}
.cs-bullet--on {
  background: var(--accent);
  border-color: var(--accent);
}
.cs-bar {
  position: relative;
  height: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.cs-bar i {
  display: block;
  height: 100%;
  background: color-mix(in oklab, var(--accent) 55%, var(--ink) 12%);
}
[data-theme="light"] .cs-bar i {
  background: var(--ink);
}
.cs-bar em {
  position: absolute;
  right: 6px;
  font-style: normal;
  font-size: 8px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cs-cell {
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-num {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

/* Chapter 2: Video — reel */
.chapter-reel {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--stage);
  overflow: hidden;
}
[data-theme="light"] .chapter-reel {
  background: var(--bg-2);
  padding: 14px;
}

.chapter-reel-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(239, 235, 227, 0.18);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(184, 209, 90, 0.3), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(62, 224, 195, 0.2), transparent 50%),
    linear-gradient(135deg, var(--stage) 0%, var(--stage-2) 100%);
}
[data-theme="light"] .chapter-reel-frame {
  box-shadow: var(--stage-shadow);
}

.reel-overlay {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #EFEBE3;
}

.reel-overlay .t-mono:first-child {
  color: #FF3B1F;
  animation: pulse 1s infinite;
}

.reel-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, #EFEBE3 0.5px, transparent 1.5px),
    radial-gradient(circle at 60% 50%, #EFEBE3 0.5px, transparent 1.5px),
    radial-gradient(circle at 80% 20%, #EFEBE3 0.5px, transparent 1.5px),
    radial-gradient(circle at 30% 70%, #EFEBE3 0.5px, transparent 1.5px),
    radial-gradient(circle at 90% 80%, #EFEBE3 0.5px, transparent 1.5px),
    radial-gradient(circle at 10% 90%, #EFEBE3 0.5px, transparent 1.5px);
  opacity: 0.6;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-40px, -40px); }
}

.reel-title {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  color: #EFEBE3;
}
.reel-title .t-mono { color: var(--accent); margin-bottom: 8px; }

/* Chapter 3: Graphic — print cards */
.chapter-print {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.print-card {
  position: absolute;
  background: #EFEBE3;
  color: #0B0B0A;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 600ms var(--ease-out);
}

.print-card-1 {
  width: 52%;
  aspect-ratio: 3 / 4;
  padding: 24px;
  top: 50%; left: 28%;
  transform: translate(-50%, -50%) rotate(-5deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chapter-print:hover .print-card-1 {
  transform: translate(-50%, -50%) rotate(-7deg) translateX(-10px);
}

.print-card-title {
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 0.95;
  color: #0B0B0A;
}

.print-card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #3C3A33;
  display: flex;
  justify-content: space-between;
}

.print-card-2 {
  width: 40%;
  aspect-ratio: 1;
  background: var(--stage);
  color: var(--stage-ink);
  top: 30%; right: 8%;
  transform: rotate(4deg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line-strong);
}

.chapter-print:hover .print-card-2 {
  transform: rotate(6deg) translate(8px, -6px);
}

.print-card-fig {
  flex: 1;
  background-image:
    linear-gradient(45deg, transparent 48%, var(--accent) 48%, var(--accent) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(239,235,227,0.3) 48%, rgba(239,235,227,0.3) 52%, transparent 52%);
  background-size: 12px 12px;
  border: 1px solid var(--line);
}

.print-card-2 .t-mono { color: #EFEBE3; font-size: 8px; }

.print-card-3 {
  width: 45%;
  aspect-ratio: 16 / 9;
  background: var(--accent);
  color: #0B0B0A;
  bottom: 8%;
  left: 12%;
  transform: rotate(-2deg);
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: -0.02em;
}

.chapter-print:hover .print-card-3 {
  transform: rotate(-4deg) translate(-8px, 8px);
}

.print-card-deck { display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 900px) {
  .chapter-sticky {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .chapter-meta {
    writing-mode: horizontal-tb;
    transform: none;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==================== FEATURED ==================== */

.featured {
  padding-top: var(--row);
  padding-bottom: var(--row);
  border-top: 1px solid var(--line);
}

.featured-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

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

.work-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-card--lg { grid-column: span 6; }

.work-card-visual {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 600ms var(--ease-out);
}

.work-card:hover .work-card-visual { transform: translateY(-4px); }

.work-card--lg .work-card-visual { aspect-ratio: 21 / 9; }

.work-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-top: 8px;
  color: var(--ink);
  gap: 24px;
}

.work-card-meta .t-mono { color: var(--ink-3); }

/* Visual variants */
.work-visual-svg svg { width: 100%; height: 100%; display: block; }
.stage-fill { fill: var(--stage); }

.work-visual--helix { background: linear-gradient(180deg, var(--stage-2), var(--stage)); display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .work-visual--helix { box-shadow: inset 0 0 0 1px rgba(239,235,227,0.12), var(--stage-shadow); }
.helix-anim {
  display: flex;
  gap: 4px;
  height: 70%;
  align-items: center;
  transform: perspective(400px) rotateX(20deg);
}
.helix-bar {
  width: 8px;
  background: var(--accent);
  border-radius: 4px;
  animation: helix-wave 2s ease-in-out infinite;
}
.helix-bar:nth-child(1)  { animation-delay: 0s; }
.helix-bar:nth-child(2)  { animation-delay: 0.08s; }
.helix-bar:nth-child(3)  { animation-delay: 0.16s; }
.helix-bar:nth-child(4)  { animation-delay: 0.24s; }
.helix-bar:nth-child(5)  { animation-delay: 0.32s; }
.helix-bar:nth-child(6)  { animation-delay: 0.4s; }
.helix-bar:nth-child(7)  { animation-delay: 0.48s; }
.helix-bar:nth-child(8)  { animation-delay: 0.56s; }
.helix-bar:nth-child(9)  { animation-delay: 0.64s; }
.helix-bar:nth-child(10) { animation-delay: 0.72s; }
.helix-bar:nth-child(11) { animation-delay: 0.8s; }
.helix-bar:nth-child(12) { animation-delay: 0.88s; }

@keyframes helix-wave {
  0%, 100% { height: 20%; opacity: 0.4; }
  50% { height: 100%; opacity: 1; }
}

.work-visual--stratum { background: var(--stage-2); display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .work-visual--stratum { box-shadow: inset 0 0 0 1px rgba(239,235,227,0.12), var(--stage-shadow); }
[data-theme="light"] .work-visual--parse,
[data-theme="light"] .work-visual--nucleoid { box-shadow: inset 0 0 0 1px rgba(239,235,227,0.12), var(--stage-shadow); }
.stratum-lines { width: 100%; height: 100%; }
.stratum-lines svg { width: 100%; height: 100%; }

.work-visual--nucleoid {
  background: linear-gradient(135deg, var(--stage), var(--stage-2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nucleoid-type {
  font-size: clamp(48px, 7vw, 96px);
  color: var(--accent);
  letter-spacing: -0.03em;
}

.nucleoid-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nucleoid-dots span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.4;
}
.nucleoid-dots span:nth-child(1) { top: 20%; left: 15%; }
.nucleoid-dots span:nth-child(2) { top: 40%; left: 80%; }
.nucleoid-dots span:nth-child(3) { top: 70%; left: 25%; }
.nucleoid-dots span:nth-child(4) { top: 15%; left: 60%; }
.nucleoid-dots span:nth-child(5) { top: 85%; left: 70%; }
.nucleoid-dots span:nth-child(6) { top: 55%; left: 10%; }
.nucleoid-dots span:nth-child(7) { top: 30%; left: 40%; }
.nucleoid-dots span:nth-child(8) { top: 80%; left: 50%; }
.nucleoid-dots span:nth-child(9) { top: 10%; left: 85%; }
.nucleoid-dots span:nth-child(10) { top: 65%; left: 90%; }

@media (max-width: 900px) {
  .featured-head { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .work-card--lg { grid-column: span 2; }
  .work-card { grid-column: span 1; }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .work-card--lg, .work-card { grid-column: span 1; }
}

/* ==================== PROCESS ==================== */

.process {
  padding-top: var(--row);
  padding-bottom: var(--row);
  border-top: 1px solid var(--line);
}

.process-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 72px;
  align-items: end;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line-strong);
  padding-top: 48px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 24px;
}

.process-label {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--ink);
  line-height: 0.95;
}

.process-step .t-mono { color: var(--ink-3); }

@media (max-width: 900px) {
  .process-head { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ==================== TESTIMONIAL ==================== */

.testimonial {
  padding-top: var(--row);
  padding-bottom: var(--row-tight);
  border-top: 1px solid var(--line);
}

.testimonial-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.testimonial blockquote {
  margin: 0;
  text-wrap: balance;
  max-width: 22ch;
}

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


/* ============================================================
   CLIENT SITE MOCKUPS — each .mock--X has its OWN brand system
   ============================================================ */

.mock {
  width: 94%;
  height: 94%;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.32);
  border: 1px solid rgba(0,0,0,0.08);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #E8E4DB;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mock-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #CBC4B5;
}
.mock-bar em {
  font-style: normal;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: #8A8374;
  margin-left: auto;
  letter-spacing: 0.02em;
}
.mock-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ---------- MOCK · HELIX12 (console / genome-platform) ---------- */
/* Saturated electric blue + lab magenta on near-white. Dense data-viz
   modules, chunky neo-grotesk display, JetBrains Mono everywhere. A
   completely different studio's voice — clinical SaaS / scientific
   software, opposite of warm editorial. */

.mock--helix {
  --hx2-bg: #F4F6FB;
  --hx2-paper: #FFFFFF;
  --hx2-line: #DCE2EE;
  --hx2-line-2: #C8D0E2;
  --hx2-ink: #0B1530;
  --hx2-ink-2: #3A4660;
  --hx2-ink-3: #6B7693;
  --hx2-blue: #0B3CFF;
  --hx2-blue-2: #2E62FF;
  --hx2-blue-soft: #E5ECFF;
  --hx2-pink: #FF2EAA;
  --hx2-pink-soft: #FFE5F4;
  --hx2-mint: #28C8A9;
  --hx2-amber: #FFB020;
  --hx2-mono: "JetBrains Mono", ui-monospace, monospace;
  --hx2-sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  background: var(--hx2-bg);
  color: var(--hx2-ink);
  font-family: var(--hx2-sans);
  border-color: var(--hx2-line);
  /* Diagonal blueprint grid */
  background-image:
    linear-gradient(0deg, rgba(11,60,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,60,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.mock--helix .mock-bar { background: var(--hx2-paper); border-bottom-color: var(--hx2-line); }
.mock--helix .mock-bar span { background: #C8D0E2; }
.mock--helix .mock-bar em {
  color: var(--hx2-ink-3);
  font-family: var(--hx2-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  font-style: normal;
}
.mock--helix .mock-body { padding: 0; display: flex; flex-direction: column; gap: 0; }

/* Topbar */
.hx2-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
  background: var(--hx2-paper);
  border-bottom: 1px solid var(--hx2-line);
}
.hx2-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hx2-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--hx2-ink);
}
.hx2-brand i {
  font-style: normal;
  color: var(--hx2-ink-3);
  font-weight: 400;
  margin-left: 2px;
}
.hx2-tabs {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--hx2-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hx2-ink-3);
}
.hx2-tabs span { padding: 4px 0; cursor: pointer; }
.hx2-tabs .hx2-tab--on {
  color: var(--hx2-ink);
  border-bottom: 2px solid var(--hx2-blue);
  padding-bottom: 2px;
  font-weight: 600;
}
.hx2-meta { display: inline-flex; align-items: center; gap: 10px; }
.hx2-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--hx2-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--hx2-mint);
  font-weight: 600;
}
.hx2-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hx2-mint);
  box-shadow: 0 0 6px var(--hx2-mint);
}
.hx2-kbd {
  font-family: var(--hx2-mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--hx2-line);
  border-radius: 3px;
  color: var(--hx2-ink-2);
  background: var(--hx2-bg);
}

/* Hero */
.hx2-hero {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 14px;
  padding: 14px 16px 12px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.hx2-hero-l { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hx2-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hx2-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hx2-ink-2);
  padding: 4px 10px;
  background: var(--hx2-paper);
  border: 1px solid var(--hx2-line);
  align-self: flex-start;
  border-radius: 100px;
}
.hx2-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hx2-blue);
  box-shadow: 0 0 0 3px rgba(11,60,255,0.15);
}
.hx2-tag-sep { color: var(--hx2-ink-3); }
.hx2-h1 {
  font-family: var(--hx2-sans);
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--hx2-ink);
  margin: 0;
}
.hx2-h1-pink {
  color: var(--hx2-pink);
  display: inline-block;
  width: 0.6ch;
  animation: hx2-blink 1.1s steps(2,end) infinite;
}
@keyframes hx2-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hx2-sub {
  font-family: var(--hx2-sans);
  font-size: 11.5px; line-height: 1.45;
  color: var(--hx2-ink-2);
  max-width: 38ch;
  margin: 0;
}
.hx2-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.hx2-btn {
  font-family: var(--hx2-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 1px solid var(--hx2-line-2);
  background: var(--hx2-paper);
  color: var(--hx2-ink);
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.hx2-btn--solid {
  background: var(--hx2-blue);
  border-color: var(--hx2-blue);
  color: #fff;
}

/* Hero right — the data window */
.hx2-hero-r { display: flex; }
.hx2-window {
  flex: 1;
  display: flex; flex-direction: column;
  background: var(--hx2-paper);
  border: 1px solid var(--hx2-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(11,21,48,0.04), 0 8px 24px rgba(11,21,48,0.06);
}
.hx2-window-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
  font-family: var(--hx2-mono);
  font-size: 10px;
  color: var(--hx2-ink-3);
  border-bottom: 1px solid var(--hx2-line);
  background: linear-gradient(0deg, var(--hx2-bg) 0%, var(--hx2-paper) 100%);
}
.hx2-window-rec {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--hx2-pink);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.hx2-window-rec i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hx2-pink);
  animation: hx2-pulse 1s ease-in-out infinite;
}
@keyframes hx2-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hx2-window-body {
  flex: 1; min-height: 0;
  display: flex; align-items: stretch; justify-content: stretch;
  background: var(--hx2-paper);
}
.hx2-window-body svg { width: 100%; height: 100%; display: block; }
.hx2-window-foot {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 5px 10px;
  font-family: var(--hx2-mono);
  font-size: 9px;
  color: var(--hx2-ink-3);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--hx2-line);
  background: var(--hx2-bg);
}
.hx2-window-pulse { display: inline-flex; gap: 3px; }
.hx2-window-pulse i {
  width: 3px; height: 10px;
  background: var(--hx2-blue);
  border-radius: 1px;
  animation: hx2-bars 0.9s ease-in-out infinite;
}
.hx2-window-pulse i:nth-child(2) { animation-delay: 0.15s; background: var(--hx2-mint); }
.hx2-window-pulse i:nth-child(3) { animation-delay: 0.3s; background: var(--hx2-pink); }
@keyframes hx2-bars {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Metrics row */
.hx2-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hx2-line);
  background: var(--hx2-paper);
}
.hx2-metric {
  padding: 10px 12px;
  border-right: 1px solid var(--hx2-line);
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.hx2-metric:last-child { border-right: 0; }
.hx2-metric--accent {
  background:
    linear-gradient(0deg, var(--hx2-blue-soft) 0%, var(--hx2-paper) 100%);
}
.hx2-metric-lbl {
  font-family: var(--hx2-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--hx2-ink-3);
  text-transform: uppercase;
}
.hx2-metric-val {
  font-family: var(--hx2-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hx2-ink);
  line-height: 1;
}
.hx2-metric-val em {
  font-style: normal;
  font-size: 0.5em;
  color: var(--hx2-ink-3);
  font-weight: 500;
  margin-left: 2px;
  letter-spacing: 0;
}
.hx2-metric-spark { height: 18px; }
.hx2-metric-spark svg { width: 100%; height: 100%; display: block; }
.hx2-metric-delta {
  font-family: var(--hx2-mono);
  font-size: 9.5px;
  color: var(--hx2-mint);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.hx2-metric-bar {
  height: 4px;
  background: var(--hx2-line);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 4px;
}
.hx2-metric-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hx2-blue), var(--hx2-pink));
}
.hx2-metric-mile {
  display: flex; gap: 4px; margin-top: 2px;
}
.hx2-metric-mile i {
  flex: 1; height: 6px;
  background: var(--hx2-line);
  border-radius: 1px;
}
.hx2-metric-mile i.hx2-mile-on { background: var(--hx2-blue); }
.hx2-metric-mile i.hx2-mile-now {
  background: var(--hx2-pink);
  box-shadow: 0 0 0 2px var(--hx2-pink-soft);
  animation: hx2-pulse-soft 1.4s ease-in-out infinite;
}
@keyframes hx2-pulse-soft {
  0%, 100% { box-shadow: 0 0 0 2px var(--hx2-pink-soft); }
  50% { box-shadow: 0 0 0 4px var(--hx2-pink-soft); }
}

/* Footer rail */
.hx2-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--hx2-ink);
  color: var(--hx2-paper);
  font-family: var(--hx2-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--hx2-line);
}
.hx2-foot-l, .hx2-foot-r { display: inline-flex; align-items: center; gap: 10px; }
.hx2-foot-num { color: var(--hx2-pink); font-weight: 600; }
.hx2-foot-pulse { display: inline-flex; align-items: center; gap: 6px; color: var(--hx2-mint); }
.hx2-foot-pulse i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hx2-mint);
  animation: hx2-pulse 1.2s ease-in-out infinite;
}
.hx2-foot-cta { color: var(--hx2-pink); font-weight: 600; }
.hx2-sep { color: rgba(255,255,255,0.3); }


/* ---------- Hero word cycler ---------- */
.hero-cycler {
  position: relative;
  display: inline;
  white-space: nowrap;
}
.hero-cycler-track {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  line-height: inherit;
  width: max-content;
}
.hero-cycler-word {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.45em);
  transition:
    opacity 480ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
/* First word in source flow sizes the track; the rest are stacked absolutely on top */
.hero-cycler-word:not(:first-child) {
  position: absolute;
  inset: 0;
}
.hero-cycler-word:first-child { position: relative; }
.hero-cycler-word:first-child:not(.is-on) { visibility: hidden; }
.hero-cycler-word.is-on {
  opacity: 1;
  transform: translateY(0);
}
.hero-cycler-word.is-out {
  opacity: 0;
  transform: translateY(-0.45em);
}
.hero-cycler-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.78em;
  background: var(--accent, currentColor);
  margin-left: 0.08em;
  vertical-align: baseline;
  position: relative;
  top: 0.05em;
  animation: hcCaret 1s steps(2, end) infinite;
}
@keyframes hcCaret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes hcCaret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
