body::before { opacity: calc(1 - var(--tactics-ground, 0)); }

.tactics-reading-blur {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  mask-image:
    linear-gradient(#000 0 7svh, transparent 22svh),
    linear-gradient(90deg,
      #000 0 calc(50% - 44svh),
      transparent calc(50% - 31svh) calc(50% + 31svh),
      #000 calc(50% + 44svh));
  -webkit-mask-image:
    linear-gradient(#000 0 7svh, transparent 22svh),
    linear-gradient(90deg,
      #000 0 calc(50% - 44svh),
      transparent calc(50% - 31svh) calc(50% + 31svh),
      #000 calc(50% + 44svh));
  transition: opacity .45s ease;
}
:root:has(#webgl[data-tactics-dock="docked"]) .tactics-reading-blur { opacity: var(--tactics-ui, 0); }
:root[data-tactics-clean-frame] .hero-header :is(a,button,.brand-trak) {
  color: #fff;
  text-shadow: 0 1px 8px #30201560;
}

.tactics-chapter .tactics-stage {
  --tactics-ink: #fff;
  --tactics-muted-ink: #fff;
  --tactics-side-width: min(350px, calc((100vw - 51svh) / 2 - var(--page-gutter) - 32px));
  justify-content: flex-end;
  color: var(--tactics-ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}

/* Keep the product explanation clear of the descending board. */
:root:has(#webgl[data-tactics-dock="docked"]) .tactics-stage {
  opacity: var(--tactics-ui, 0);
  visibility: visible;
}

.tactics-heading,
.tactics-services {
  position: absolute;
  top: 48.2%;
  width: var(--tactics-side-width);
  text-align: left;
  transform: translateY(-50%);
  translate: 0 10px;
  transition: translate .5s cubic-bezier(.22,.7,.28,1);
}

:root:has(#webgl[data-tactics-dock="docked"]) :is(.tactics-heading,.tactics-services) { translate: 0 0; }

.tactics-heading {
  left: var(--page-gutter);
  color: #fff;
  text-shadow: 0 2px 14px #30201566, 0 1px 3px #3020154d;
}
.tactics-eyebrow {
  margin: 0 0 17px;
  color: #3e2d4f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.tactics-heading h2 {
  margin: 0;
  font-size: clamp(32px, 2.8vw, 46px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.tactics-description {
  max-width: 31ch;
  margin: 23px 0 0;
  color: #fff;
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.tactics-services {
  right: var(--page-gutter);
  width: min(330px, var(--tactics-side-width));
  display: grid;
  gap: 11px;
  transition-delay: .07s;
}
.tactics-service {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0,1fr);
  align-items: start;
  gap: 13px;
  padding: 19px 20px;
  border: 1px solid #ffffff24;
  border-radius: 16px;
  background: linear-gradient(125deg,#ffffff0b,#ffffff03), #211a2838;
  box-shadow: inset 0 1px 0 #ffffff0a;
  text-shadow: 0 1px 8px #21142180;
}
.tactics-service::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 18% 0, #f1dcff20, transparent 68%);
  opacity: calc(.64 * var(--tactics-ui, 1));
}
.tactics-service-icon {
  width: 27px;
  height: 27px;
  color: #fff;
  opacity: .8;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tactics-service h3 {
  margin: 1px 0 7px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.tactics-service p {
  margin: 0;
  color: var(--tactics-muted-ink);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.tactics-chapter .tactics-foot { width: 100%; }
.tactics-foot .tactics-demo {
  position: relative;
  inset: auto;
  width: 300px;
  max-width: 100%;
  min-height: 54px;
  pointer-events: auto;
}

@media (max-width: 1300px) {
  .tactics-service { padding: 16px; gap: 10px; }
  .tactics-service h3 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .tactics-chapter .tactics-stage,
  .tactics-heading,
  .tactics-services { transition: none; translate: none; }
  .tactics-reading-blur { transition: none; }
  .tactics-service::before { opacity: .64; }
}

@media (max-width: 760px) {
  .tactics-chapter .tactics-stage { overflow-x: clip; }
}
