/* ForceFlow — section-specific styles */

/* ─────────── Header bits ─────────── */

.logo-sub {
  color: var(--fg-3);
  font-size: 12px;
  letter-spacing: 0;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fg-3);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.status-dot-text { line-height: 1; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fg-3);
  display: inline-block;
  flex-shrink: 0;
}
.dot-g { background: #4ade80; box-shadow: 0 0 0 2px color-mix(in oklab, #4ade80 30%, transparent); animation: blink 2.6s ease-in-out infinite; }
.dot-r { background: #f87171; }
.dot-y { background: #fbbf24; }
.dot-r, .dot-y { opacity: .8 }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  margin: 5px 0;
  transition: transform 200ms var(--ease);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  z-index: 60;
}
.mobile-menu-inner {
  position: absolute;
  inset: 70px 16px auto 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu-inner a:not(.btn) {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mobile-close {
  position: absolute;
  right: 14px; top: 14px;
  background: transparent; border: 0; color: var(--fg);
  font-size: 26px; line-height: 1; cursor: pointer;
}

@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 720px) {
  .status-dot { display: none; }
  .nav-cluster .btn { display: none; }
  .nav-cluster .lang-switch { display: none; }
  .burger { display: block; }
}
@media (min-width: 721px) {
  .burger { display: none; }
}

/* ─────────── HERO ─────────── */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 96px 0 88px;
  overflow: hidden;
  isolation: isolate;
  border-top: 0;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 90%);
  opacity: .7;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 50% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner-flow {
  text-align: center;
}
.hero-inner-flow .hero-title,
.hero-inner-flow .hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.hero-inner-flow .hero-cta {
  justify-content: center;
}
.hero-inner-flow .hero-metrics {
  margin-left: auto;
  margin-right: auto;
}
.hero-inner-flow .hero-eyebrow,
.hero-inner-flow .hero-brand {
  margin-left: auto;
  margin-right: auto;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 22px;
}
.hero-brand .brand-icon {
  display: block;
  height: 22px;
  width: auto;
}
.hero-brand-split {
  margin-bottom: 18px;
}
.hero-brand-split .brand-icon {
  height: 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-1) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 22px;
  text-wrap: balance;
  max-width: 980px;
}

.rotator {
  display: inline-block;
  position: relative;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.rotator-item {
  display: inline-block;
  animation: rot-in 700ms var(--ease-out) both;
}
@keyframes rot-in {
  0%   { opacity: 0; transform: translateY(0.4em); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 980px;
}
.hero-metric {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.hero-inner-flow .hero-metric {
  text-align: center;
  padding: 22px 16px;
}
.hero-metric:last-child { border-right: 0; }
.hero-metric-v {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-metric-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero-metric-s {
  font-size: 12.5px;
  color: var(--fg-4);
  margin-top: 6px;
}

/* split variant */
.hero-inner-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title-split {
  font-size: clamp(40px, 5.4vw, 80px);
}

.hero-diagram {
  padding: 14px;
  background: color-mix(in oklab, var(--bg-1) 92%, transparent);
}
.hero-diagram-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 12px;
  border-bottom: 1px dashed var(--line);
}
.hero-diagram-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.hero-diagram-foot {
  display: flex;
  gap: 6px;
  padding: 12px 4px 0;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}

/* ─────────── Hero picker — service category segmented control ─────────── */
.hero-picker-wrap {
  display: flex;
  justify-content: center;
  margin: 28px auto 0;
  max-width: 100%;
}
.hero-picker {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(var(--picker-count, 4), minmax(0, 1fr));
  padding: 5px;
  background: color-mix(in oklab, var(--bg-2) 75%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: 0;
  isolation: isolate;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-picker-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / var(--picker-count, 4));
  background: var(--bg-1);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.25),
    inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, var(--line)),
    0 8px 20px -12px color-mix(in oklab, var(--accent) 40%, transparent);
  transform: translateX(calc(var(--picker-i, 0) * 100%));
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  z-index: 0;
  pointer-events: none;
}
.hero-picker-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg-3);
  text-align: left;
  transition: color .25s ease;
}
.hero-picker-btn:hover { color: var(--fg-2); }
.hero-picker-btn.on { color: var(--fg); }
.hero-picker-n {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
  transition: color .25s ease;
}
.hero-picker-btn.on .hero-picker-n { color: var(--accent); }
.hero-picker-t {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-picker { grid-template-columns: repeat(2, 1fr); }
  .hero-picker-indicator { display: none; }
  .hero-picker-btn.on {
    background: var(--bg-1);
    box-shadow:
      0 1px 0 rgba(0,0,0,0.25),
      inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, var(--line));
  }
}
@media (max-width: 480px) {
  .hero-picker { grid-template-columns: 1fr; }
  .hero-picker-t { white-space: normal; }
}

/* ─────────── Live demo (hero centerpiece) ─────────── */
/* Two-pane: topology with always-flowing rails (left) + live event console
   feed (right). No travelling SVG elements — rails animate via stroke
   dashoffset only, so nothing can leak outside the canvas. */
.hero-live {
  width: 100%;
  max-width: 980px;
  margin: 48px auto 56px;
}
.hero-live-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 60% at 18% 50%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 72%),
    radial-gradient(40% 60% at 82% 50%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 72%),
    color-mix(in oklab, var(--bg-1) 82%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  isolation: isolate;
}
.hero-live-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--line) 60%, transparent);
}

/* Header */
.hero-live-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.hero-live-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.hero-live-head-meta {
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.hero-live-head-stats {
  margin-left: auto;
  display: inline-flex;
  gap: 14px;
  align-items: center;
}
.hero-live-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hero-live-stat em {
  font-style: normal;
  color: var(--fg-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 9.5px;
}
.hero-live-stat b {
  font-weight: 600;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* Body — two columns: topology + console */
.hero-live-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

/* ── Topology ── */
.hero-live-topo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 260;
  padding: 12px 8px 12px 14px;
  border-right: 1px solid var(--line);
}

/* Node tile (compact, icon-only — labels are SVG text beside the tile) */
.hero-live-node {
  fill: color-mix(in oklab, var(--bg-1) 92%, transparent);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.hero-live-icon-g { color: var(--accent); }

.hero-live-node-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  fill: var(--fg);
}
.hero-live-node-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--fg-4);
  text-transform: uppercase;
}

/* Rails — twin layer pattern: hairline background + animated foreground
   stroke whose dash offset shifts continuously toward the junction. */
.hero-live-rail-bg {
  fill: none;
  stroke: color-mix(in oklab, var(--line-strong) 75%, transparent);
  stroke-width: 1;
}
.hero-live-rail-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  stroke-dashoffset: 0;
  opacity: 0.85;
  animation: hero-live-flow var(--hl-speed, 1.6s) linear infinite;
}
/* Per-lane intensity & speed (concept c) — Webhook is busiest, Telegram
   calmer. Speed and opacity both vary; reads as a real working system. */
.hero-live-rail-eml { --hl-speed: 1.9s; opacity: 0.80; }
.hero-live-rail-web { --hl-speed: 1.2s; opacity: 0.95; stroke-width: 1.6; }
.hero-live-rail-tg  { --hl-speed: 2.6s; opacity: 0.65; }

@keyframes hero-live-flow {
  from { stroke-dashoffset: 0;   }
  to   { stroke-dashoffset: -24; }
}

/* Junction — minimal concentric mark, no "AI brain" implied */
.hero-live-junction-halo {
  fill: color-mix(in oklab, var(--accent) 10%, transparent);
  stroke: color-mix(in oklab, var(--accent) 25%, transparent);
  stroke-width: 1;
  animation: hero-live-halo 2.8s ease-in-out infinite;
}
.hero-live-junction-disc {
  fill: color-mix(in oklab, var(--bg) 90%, transparent);
  stroke: color-mix(in oklab, var(--accent) 55%, var(--line-strong));
  stroke-width: 1;
}
.hero-live-hub-icon { color: var(--accent); }
@keyframes hero-live-halo {
  0%, 100% { transform: scale(1);    opacity: 0.65; }
  50%      { transform: scale(1.18); opacity: 0.30; }
}
.hero-live-junction-halo { transform-origin: center; transform-box: fill-box; }

/* ── Console ── */
.hero-live-console {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 10px;
  min-width: 0;
  font-family: var(--font-mono);
  color: var(--fg-2);
}
.hero-live-console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--fg-4);
  letter-spacing: 0.06em;
}
.hero-live-console-dots {
  display: inline-flex;
  gap: 5px;
}
.hero-live-console-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--line-strong) 90%, transparent);
}
.hero-live-console-title {
  color: var(--fg-3);
  letter-spacing: 0.05em;
}
.hero-live-console-cursor {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
  animation: hero-live-blink 1.05s steps(2, end) infinite;
}
@keyframes hero-live-blink { 50% { opacity: 0; } }

.hero-live-console-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  /* Reserve consistent height so older rows fade out gracefully when the
     newest one slides in — we cap React state at 6 entries. */
  --hl-rows: 6;
  --hl-row-h: 22px;
  min-height: calc(var(--hl-rows) * (var(--hl-row-h) + 6px));
}
.hero-live-row {
  display: grid;
  grid-template-columns: auto auto 10px auto 1fr auto;
  align-items: center;
  gap: 8px;
  height: var(--hl-row-h);
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  opacity: 0.5;
  transition: opacity .35s var(--ease-out, ease);
}
/* Stack ordering: oldest fades out the top, newest in the bottom. We render
   chronologically so the last row is the freshest. Older rows dim. */
.hero-live-row:nth-last-child(1) { opacity: 1; }
.hero-live-row:nth-last-child(2) { opacity: 0.85; }
.hero-live-row:nth-last-child(3) { opacity: 0.65; }
.hero-live-row:nth-last-child(4) { opacity: 0.45; }
.hero-live-row:nth-last-child(5) { opacity: 0.30; }
.hero-live-row:nth-last-child(6) { opacity: 0.18; }

.hero-live-row.is-new {
  animation: hero-live-row-in .42s var(--ease-out, cubic-bezier(.2,.8,.2,1)) both;
}
@keyframes hero-live-row-in {
  0%   { transform: translateY(8px); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0);   opacity: 1; }
}

.hero-live-row-ts {
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.hero-live-row-tag {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent);
}
/* Subtle per-tag variation so the eye distinguishes sources/sinks at a glance
   without leaving the accent family. */
.hero-live-tag-web,
.hero-live-tag-erp { background: color-mix(in oklab, var(--accent) 18%, transparent); }
.hero-live-tag-tg,
.hero-live-tag-slk {
  background: color-mix(in oklab, var(--accent) 7%, transparent);
  color: color-mix(in oklab, var(--accent) 85%, var(--fg-2));
}
.hero-live-row-arrow {
  color: var(--fg-4);
  font-size: 10px;
  justify-self: center;
}
.hero-live-row-text {
  color: var(--fg-2);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hero-live-row-ok {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--accent) 80%, var(--fg-3));
}

.hero-live-console-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.05em;
}
.hero-live-foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
  animation: hero-live-foot 1.6s ease-in-out infinite;
}
@keyframes hero-live-foot {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.82); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-metric:nth-child(2) { border-right: 0; }
  .hero-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-inner-split { grid-template-columns: 1fr; }
  .hero-live { margin: 36px auto 40px; }
  .hero-live-head-meta { display: none; }
  .hero-live-body { grid-template-columns: 1fr; }
  .hero-live-topo {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 8px;
  }
}
@media (max-width: 600px) {
  .hero-live { margin: 28px auto 32px; }
  .hero-live-head-stats { gap: 10px; }
  .hero-live-stat em { display: none; }
  .hero-live-console { padding: 10px 10px 8px; font-size: 10.5px; }
  .hero-live-row { font-size: 10px; padding: 0 7px; gap: 6px; }
  .hero-live-row-text { font-size: 10px; }
  .hero-live-console-list { --hl-rows: 5; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-rail-flow,
  .hero-live-junction-halo,
  .hero-live-console-cursor,
  .hero-live-foot-dot,
  .hero-live-row.is-new {
    animation: none !important;
  }
  /* Keep the rails visible as a static accent stroke so the topology still
     reads as connected. */
  .hero-live-rail-flow { opacity: 0.7; stroke-dasharray: 3 9; }
}

/* ─────────── SERVICES ─────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.svc-card {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s var(--ease, ease), background .3s var(--ease, ease);
}
.svc-card:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line-strong));
}

/* Cursor-tracked spotlight inside each card */
.svc-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--accent) 16%, transparent),
    transparent 55%
  );
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.svc-card:hover .svc-spotlight { opacity: 1; }

/* Top row — icon tile + numeric label */
.svc-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.svc-icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background:
    radial-gradient(120% 100% at 30% 20%, color-mix(in oklab, var(--accent) 22%, transparent), color-mix(in oklab, var(--accent) 4%, transparent) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 16%, transparent);
  transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease);
  flex-shrink: 0;
}
.svc-icon-tile svg { width: 26px; height: 26px; display: block; }
.svc-card:hover .svc-icon-tile {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent),
    0 12px 26px -12px color-mix(in oklab, var(--accent) 55%, transparent);
}
.svc-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.svc-card-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--fg);
  text-wrap: balance;
}
.svc-card-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* Bullets — always visible */
.svc-bullets {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-2);
}
.svc-bullets li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.svc-bullet-mark {
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Footer — chips row + CTA row below */
.svc-foot {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.svc-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}
.svc-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.svc-card:hover .svc-chip {
  color: var(--fg-2);
  border-color: color-mix(in oklab, var(--accent) 22%, var(--line));
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}

/* CTA — small circle at right at rest, full-width pill on hover */
.svc-cta {
  position: relative;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  color: var(--fg-2);
  overflow: hidden;
  transition:
    width .35s var(--ease-out, ease),
    background .25s ease,
    border-color .25s ease,
    color .25s ease;
}
.svc-cta-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .18s ease;
}
.svc-cta-icon svg { width: 18px; height: 18px; display: block; }
.svc-cta-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease;
}
.svc-card:hover .svc-cta {
  align-self: stretch;
  width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.svc-card:hover .svc-cta-icon { opacity: 0; }
.svc-card:hover .svc-cta-label { opacity: 1; transition-delay: .15s; }

/* Responsive — tablet & mobile */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .svc-card { min-height: auto; }
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc-card { padding: 22px 20px; }
  .svc-icon-tile { width: 46px; height: 46px; border-radius: 11px; }
  .svc-icon-tile svg { width: 22px; height: 22px; }
  .svc-card-title { font-size: 19px; }

  /* Full-width CTA always on phones */
  .svc-cta {
    align-self: stretch;
    width: 100%;
    height: 44px;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-fg);
  }
  .svc-cta-icon { opacity: 0; }
  .svc-cta-label { opacity: 1; }
}

/* Touch (no real hover) — show full CTA, drop spotlight & tile lift */
@media (hover: none), (pointer: coarse) {
  .svc-spotlight { display: none; }
  .svc-cta {
    align-self: stretch;
    width: 100%;
    height: 40px;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-fg);
  }
  .svc-cta-icon { opacity: 0; }
  .svc-cta-label { opacity: 1; }
  .svc-card:hover .svc-icon-tile {
    transform: none;
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 16%, transparent);
  }
}

/* services list variant */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 50px 44px 1fr auto 28px;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 260ms var(--ease);
}
.service-row:hover { background: var(--bg-1); }
.service-row-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-4);
}
.service-row-icon { color: var(--accent); }
.service-row-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.service-row-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--fg-2);
}
.service-row-stack { display: flex; gap: 4px; flex-wrap: wrap; }
.service-row-more {
  color: var(--accent);
  font-size: 18px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.service-row:hover .service-row-more { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

@media (max-width: 800px) {
  .service-row {
    grid-template-columns: 40px 1fr 28px;
    gap: 14px;
  }
  .service-row-icon, .service-row-stack { display: none; }
}
