/* Home sections after the hero: platform tour, features, how it works, security and the closing call.
   Static HTML in index.html; home-sections.js places them right after the carousel and adds the motion. */
.cosmo-home-sections {
  --lime: #c5fb05;
  --ink: #050505;
  --paper: #f6f6f3;
  --mist: #dcddd8;
  --graphite: #70716d;
  --line: rgba(246, 246, 243, 0.1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, Arial, sans-serif;
}
.cosmo-home-sections *,
.cosmo-home-sections *::before,
.cosmo-home-sections *::after {
  box-sizing: border-box;
}
/* The carousel's own closing section is replaced by the call at the end of these sections. */
.cosmo-home-sections.is-placed + .diagnostic {
  display: none;
}
.route-app .cosmo-home-sections {
  display: none;
}

.hp-section {
  position: relative;
  padding: clamp(64px, 7.5vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.hp-wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.hp-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.hp-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--lime);
  font: 500 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hp-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 0 5px rgba(197, 251, 5, 0.55);
}
.cosmo-home-sections h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.cosmo-home-sections h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hp-lede {
  max-width: 600px;
  margin: 0;
  color: var(--mist);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
}
.cosmo-home-sections :focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* Platform tour */
.hp-platform {
  border-top: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 60%, rgba(197, 251, 5, 0.06), transparent 70%),
    var(--ink);
}
.hp-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.hp-tabs::-webkit-scrollbar {
  display: none;
}
.hp-tabs button {
  position: relative;
  display: flex;
  flex: none;
  align-items: baseline;
  gap: 10px;
  border: 0;
  padding: 0 18px 18px 0;
  margin-right: 18px;
  background: none;
  color: var(--tx-3);
  font: 500 15px/1.2 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: color 0.25s;
}
.hp-tabs button span {
  color: var(--tx-4);
  font: 500 10.5px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
}
.hp-tabs button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.hp-tabs button:hover,
.hp-tabs button[aria-selected='true'] {
  color: var(--paper);
}
.hp-tabs button[aria-selected='true'] span {
  color: var(--lime);
}
.hp-tabs button[aria-selected='true']::after {
  transform: scaleX(1);
}
.hp-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hp-panel + .hp-panel {
  margin-top: 72px;
}
.hp-panel[hidden] {
  display: none;
}
.hp-panel.is-shown .hp-panel-copy {
  animation: hp-rise 0.7s var(--ease-out) both;
}
.hp-panel.is-shown .hp-frame {
  animation: hp-fade 0.6s var(--ease-out) both;
}
.hp-panel-copy h3 {
  margin-bottom: 22px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}
.hp-panel-copy ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-panel-copy li {
  position: relative;
  padding-left: 22px;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.55;
}
.hp-panel-copy li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--lime);
}
.hp-screen {
  margin: 0;
  perspective: 1800px;
}
.hp-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 243, 0.14);
  border-radius: 12px;
  background: #0b0d0c;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(197, 251, 5, 0.04),
    0 30px 120px -40px rgba(197, 251, 5, 0.18);
  transform-origin: 50% 100%;
  transition: transform 1.4s var(--ease-out);
}
.hp-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(246, 246, 243, 0.08);
  background: #0e100f;
}
.hp-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(246, 246, 243, 0.16);
}
.hp-bar span {
  margin-left: 12px;
  color: var(--tx-4);
  font: 500 10.5px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
}
.hp-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.hp-note {
  margin: 28px 0 0;
  color: var(--tx-4);
  font: 500 10px/1.5 'IBM Plex Mono', monospace;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

/* Features */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  list-style: none;
}
.hp-grid li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  padding: 30px 28px 32px;
  background: var(--ink);
  transition: background-color 0.35s;
}
.hp-grid li::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.hp-grid li:hover {
  background: #0a0c08;
}
.hp-grid li:hover::after {
  opacity: 0.8;
}
.hp-grid svg,
.hp-trust-list svg {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp-grid h3 {
  font-size: 17px;
}
.hp-grid p {
  margin: 0;
  color: var(--tx-3);
  font-size: 14px;
  line-height: 1.6;
}

/* How it works: the hero's three phases, as steps on one orbit line. */
.hp-how {
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(197, 251, 5, 0.05), transparent 70%),
    var(--ink);
}
.hp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), rgba(197, 251, 5, 0.15));
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) 0.2s;
}
.hp-steps li span {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(197, 251, 5, 0.55);
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font: 500 11px/1 'IBM Plex Mono', monospace;
}
.hp-steps h3 {
  margin-bottom: 12px;
  font-size: 22px;
}
.hp-steps p,
.hp-trust-list p,
.hp-pilot p {
  margin: 0;
  color: var(--tx-3);
  font-size: 15px;
  line-height: 1.6;
}
.hp-aside {
  max-width: 720px;
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 15px;
}

/* Security */
.hp-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.hp-split .hp-head {
  position: sticky;
  top: 40px;
  margin-bottom: 0;
}
.hp-trust-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-trust-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.hp-trust-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.hp-trust-list h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

/* Closing call */
.hp-cta {
  padding-bottom: clamp(80px, 9vw, 120px);
}
.hp-cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  overflow: hidden;
  border: 1px solid rgba(197, 251, 5, 0.22);
  border-radius: 18px;
  padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(197, 251, 5, 0.1), transparent 60%),
    linear-gradient(160deg, #0b0d09, #050505 60%);
}
.hp-cta-card::before {
  content: '';
  position: absolute;
  top: -260px;
  right: -260px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(197, 251, 5, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(5, 5, 5, 0),
    0 0 0 71px rgba(246, 246, 243, 0.05);
  pointer-events: none;
}
.hp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}
.hp-actions a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.hp-primary {
  background: var(--lime);
  color: var(--ink);
}
.hp-primary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp-primary:hover {
  background: #d4ff3a;
}
.hp-secondary {
  border: 1px solid rgba(246, 246, 243, 0.24);
  color: var(--paper);
}
.hp-secondary:hover {
  border-color: rgba(197, 251, 5, 0.6);
  color: var(--lime);
}
.hp-actions .hp-text {
  min-height: 44px;
  padding: 0 6px;
  color: var(--mist);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hp-actions .hp-text:hover {
  color: var(--lime);
}
.hp-pilot {
  position: relative;
  display: grid;
  align-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-pilot li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
}
.hp-pilot span {
  color: var(--lime);
  font: 500 11px/1.9 'IBM Plex Mono', monospace;
}
.hp-pilot h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

/* Motion, only when the script runs and the visitor accepts it */
.hp-motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.hp-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.hp-motion .hp-tour:not(.is-in) .hp-frame {
  transform: rotateX(14deg) scale(0.96);
}
.hp-motion .hp-steps:not(.is-in)::before {
  transform: scaleX(0);
}
@keyframes hp-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes hp-fade {
  from {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .hp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-panel {
    grid-template-columns: 1fr;
  }
  .hp-panel-copy {
    max-width: 640px;
  }
  .hp-split,
  .hp-cta-card {
    grid-template-columns: 1fr;
  }
  .hp-split .hp-head {
    position: static;
  }
}
@media (max-width: 700px) {
  .hp-tabs {
    margin-right: calc(-1 * clamp(20px, 5vw, 64px));
  }
  .hp-tabs button {
    margin-right: 6px;
    font-size: 14px;
  }
  .hp-grid {
    grid-template-columns: 1fr;
  }
  .hp-grid li {
    min-height: 0;
    padding: 26px 22px;
  }
  .hp-steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hp-steps::before {
    top: 20px;
    bottom: 20px;
    left: 19px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--lime), rgba(197, 251, 5, 0.15));
    transform-origin: top;
  }
  .hp-motion .hp-steps:not(.is-in)::before {
    transform: scaleY(0);
  }
  .hp-steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 20px;
  }
  .hp-steps li span {
    grid-row: span 2;
    margin: 0;
  }
  .hp-steps h3 {
    font-size: 19px;
  }
  .hp-note {
    text-align: left;
  }
  .hp-actions a {
    flex: 1 1 auto;
  }
  .hp-actions .hp-text {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cosmo-home-sections *,
  .cosmo-home-sections *::before,
  .cosmo-home-sections *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ════════ v2: images, motion and effects ════════ */
.hp-motion .hp-section:not(.is-live) *,
.hp-motion .hp-section:not(.is-live) *::before,
.hp-motion .hp-section:not(.is-live) *::after {
  animation-play-state: paused !important;
}
/* headings enter word by word */
.hp-w {
  display: inline-block;
}
.hp-motion .hp-head h2 .hp-w {
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(4px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 0.1s);
}
.hp-motion .hp-head.is-in h2 .hp-w {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── platform tour: autoplay progress, tilt, glare, sweep, callouts ── */
.hp-tour.is-auto .hp-tabs button[aria-selected='true']::after {
  animation: hp-progress var(--dwell, 7s) linear both;
}
.hp-tour.is-paused .hp-tabs button[aria-selected='true']::after {
  animation-play-state: paused;
}
@keyframes hp-progress {
  from {
    transform: scaleX(0);
  }
}
.hp-screen.is-tilt .hp-frame {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out);
}
.hp-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, -30%), rgba(255, 255, 255, 0.07), transparent 60%);
  pointer-events: none;
}
.hp-shot {
  position: relative;
  overflow: hidden;
}
.hp-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(197, 251, 5, 0.05) 70%, rgba(197, 251, 5, 0.22));
  border-bottom: 1px solid rgba(197, 251, 5, 0.45);
  transform: translateY(-110%);
  animation: hp-sweep 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  pointer-events: none;
}
@keyframes hp-sweep {
  70%,
  100% {
    transform: translateY(400%);
  }
}
.hp-callout {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(197, 251, 5, 0.55);
  border-radius: 999px;
  padding: 7px 12px 7px 10px;
  background: rgba(5, 6, 5, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9);
  color: var(--paper);
  font: 500 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.hp-callout::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--lime));
  animation: hp-ping 2s ease-out infinite;
}
.hp-callout.bad {
  --c: #ff5577;
  border-color: rgba(255, 85, 119, 0.6);
}
.hp-callout.warn {
  --c: #fbb040;
  border-color: rgba(251, 176, 64, 0.6);
}
.hp-panel.is-shown .hp-callout {
  animation: hp-pop 0.7s var(--ease-out) 0.5s both;
}
.hp-panel.is-shown .hp-callout + .hp-callout {
  animation-delay: 0.8s;
}
.cosmo-home-sections:not(.hp-motion) .hp-callout {
  opacity: 1;
}
@keyframes hp-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
@keyframes hp-ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, #c5fb05) 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

/* ── operations strip ── */
.hp-ops {
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(197, 251, 5, 0.05), transparent 70%),
    var(--ink);
}
.hp-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  max-width: none;
}
.hp-head-row h2 {
  max-width: 620px;
  margin-bottom: 0;
}
.hp-head-row .hp-lede {
  max-width: 440px;
}
.hp-head-row .hp-lede a {
  display: block;
  margin-top: 8px;
  color: var(--lime);
  font-weight: 600;
  text-underline-offset: 5px;
}
.hp-ops-track {
  display: grid;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hp-ops-track::-webkit-scrollbar {
  display: none;
}
.hp-ops-track.is-looping {
  overflow: hidden;
}
.hp-ops-row {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0 0 0 clamp(20px, 5vw, 64px);
  list-style: none;
}
.hp-ops-track.is-looping .hp-ops-row {
  padding: 0;
  animation: hp-marquee 80s linear infinite;
}
.hp-ops-track.is-looping .hp-ops-row.reverse {
  animation-direction: reverse;
  animation-duration: 95s;
}
.hp-ops-track:hover .hp-ops-row,
.hp-ops-track:focus-within .hp-ops-row {
  animation-play-state: paused;
}
@keyframes hp-marquee {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}
.hp-ops-row a {
  position: relative;
  display: block;
  width: 340px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 243, 0.12);
  border-radius: 12px;
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.35s;
}
.hp-ops-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.72);
  transition:
    transform 1.2s var(--ease-out),
    filter 0.6s;
}
.hp-ops-row a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.85), transparent 45%);
  pointer-events: none;
}
.hp-ops-row a:hover,
.hp-ops-row a:focus-visible {
  border-color: rgba(197, 251, 5, 0.6);
}
.hp-ops-row a:hover img,
.hp-ops-row a:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.9);
}
.hp-ops-row strong {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hp-ops-row strong::after {
  content: ' →';
  color: var(--lime);
  opacity: 0;
  transition: opacity 0.3s;
}
.hp-ops-row a:hover strong::after {
  opacity: 1;
}
.hp-op-mark {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
}
.hp-op-mark i {
  --c: #c5fb05;
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  animation: hp-ping 2.2s ease-out infinite;
}
.hp-op-mark em {
  position: absolute;
  bottom: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(197, 251, 5, 0.5);
  border-radius: 4px;
  background: rgba(5, 8, 5, 0.85);
  color: var(--tx-1);
  font: 500 10.5px/1 'IBM Plex Mono', monospace;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(calc(var(--x) * -1));
}
.hp-ops > .hp-note {
  margin-top: 28px;
  text-align: left;
}

/* ── feature visuals ── */
.hp-grid li > * {
  position: relative;
}
.hp-grid li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(197, 251, 5, 0.07), transparent 60%);
  pointer-events: none;
}
.hp-grid li {
  padding-top: 18px;
}
.hpv {
  height: 126px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 243, 0.08);
  border-radius: 10px;
  background: #0b0d0c;
}
.hp-grid .hpv svg {
  width: 100%;
  height: 100%;
  margin: 0;
}
/* live mosaic */
.hpv-live {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.hpv-live img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.75);
}
.hpv-live span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(5, 5, 5, 0.8);
  font: 500 10.5px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hpv-live span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5577;
  animation: hp-blink 1.2s ease-in-out infinite;
}
.hpv-live i {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(197, 251, 5, 0.7), transparent);
  animation: hp-scan 3.5s linear infinite;
}
@keyframes hp-scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(124px);
  }
}
@keyframes hp-blink {
  50% {
    opacity: 0.2;
  }
}
/* incoming alerts */
.hpv-alerts > div {
  animation: hp-feed 8s var(--ease-out) infinite;
}
.hpv-alerts p {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border-bottom: 1px solid rgba(246, 246, 243, 0.06);
  color: var(--mist);
  font-size: 12px;
}
.hpv-alerts b {
  flex: none;
  width: 54px;
  border: 1px solid rgba(246, 246, 243, 0.25);
  border-radius: 999px;
  padding: 3px 0;
  color: var(--mist);
  font: 500 10.5px/1 'IBM Plex Mono', monospace;
  text-align: center;
}
.hpv-alerts b.bad {
  border-color: rgba(255, 85, 119, 0.6);
  color: #ff8aa1;
}
.hpv-alerts b.warn {
  border-color: rgba(251, 176, 64, 0.6);
  color: #fcd394;
}
@keyframes hp-feed {
  0%,
  22% {
    transform: translateY(0);
  }
  33%,
  55% {
    transform: translateY(-42px);
  }
  66%,
  88% {
    transform: translateY(-84px);
  }
  100% {
    transform: translateY(-126px);
  }
}
/* queue columns */
.hpv-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 16px 14px 12px;
}
.hpv-bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.85), rgba(56, 189, 248, 0.25));
  transform-origin: bottom;
  animation: hp-bar 3.2s ease-in-out infinite;
}
.hpv-bars i:nth-child(odd) {
  animation-delay: -1.1s;
}
.hpv-bars i:nth-child(3n) {
  animation-delay: -2s;
}
.hpv-bars i.peak {
  background: linear-gradient(180deg, var(--lime), rgba(197, 251, 5, 0.35));
  box-shadow: 0 0 16px rgba(197, 251, 5, 0.35);
}
@keyframes hp-bar {
  50% {
    transform: scaleY(0.72);
  }
}
/* detection */
.hpv-detect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.6);
}
.hpv-detect i {
  position: absolute;
  border: 1.5px solid #fbb040;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: hp-track 7s ease-in-out infinite;
}
.hpv-detect span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #fbb040;
  color: #1a1204;
  font: 600 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@keyframes hp-track {
  0%,
  100% {
    left: 56%;
    top: 34%;
    width: 13%;
    height: 44%;
  }
  50% {
    left: 70%;
    top: 30%;
    width: 13%;
    height: 48%;
  }
}
/* route */
.hpv-route .road {
  fill: none;
  stroke: rgba(246, 246, 243, 0.18);
  stroke-width: 6;
  stroke-linecap: round;
}
.hpv-route .trail {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  animation: hp-trail 6s linear infinite;
}
.hpv-route .stop {
  fill: #0b0d0c;
  stroke: var(--mist);
  stroke-width: 2;
}
.hpv-route .truck circle:first-child {
  fill: rgba(197, 251, 5, 0.22);
}
.hpv-route .truck circle:last-child {
  fill: var(--lime);
}
.hpv-route span {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--tx-4);
  font: 500 10.5px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@keyframes hp-trail {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* tanks */
.hpv-tanks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding: 16px;
}
.hpv-tanks i {
  position: relative;
  width: 34px;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 243, 0.2);
  border-radius: 8px;
}
.hpv-tanks i::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--l) * 100%);
  background: linear-gradient(180deg, rgba(197, 251, 5, 0.9), rgba(197, 251, 5, 0.25));
  transform-origin: bottom;
  animation: hp-level 5s ease-in-out infinite;
}
.hpv-tanks i:nth-child(2)::after {
  background: linear-gradient(180deg, #fbb040, rgba(251, 176, 64, 0.2));
  animation-delay: -1.5s;
}
.hpv-tanks i:nth-child(4)::after {
  animation-delay: -3s;
}
@keyframes hp-level {
  50% {
    transform: scaleY(0.9);
  }
}
/* health pulse */
.hpv-pulse svg {
  display: block;
  height: 70%;
}
.hp-grid .hpv-pulse svg {
  height: 70%;
}
.hpv-pulse polyline {
  fill: none;
  stroke-linejoin: round;
}
.hpv-pulse .base {
  stroke: rgba(197, 251, 5, 0.25);
  stroke-width: 1.4;
}
.hpv-pulse .spark {
  stroke: var(--lime);
  stroke-width: 2;
  stroke-dasharray: 22 78;
  animation: hp-ecg 2.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(197, 251, 5, 0.8));
}
@keyframes hp-ecg {
  from {
    stroke-dashoffset: 22;
  }
  to {
    stroke-dashoffset: -100;
  }
}
.hpv-pulse p {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 14px;
}
.hpv-pulse p i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.8;
}
.hpv-pulse p i.bad {
  background: #ff5577;
  animation: hp-blink 1s ease-in-out infinite;
}
/* layers */
.hpv-layers {
  perspective: 600px;
}
.hpv-layers i {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
  width: 92px;
  height: 92px;
  margin: -46px;
  border: 1px solid rgba(197, 251, 5, 0.45);
  border-radius: 10px;
  background: rgba(197, 251, 5, 0.05);
  transform: rotateX(62deg) rotateZ(-45deg) translateZ(var(--z));
  animation: hp-float 4s ease-in-out infinite;
}
.hpv-layers i:nth-child(1) {
  --z: -30px;
}
.hpv-layers i:nth-child(2) {
  --z: 0px;
  animation-delay: -1.3s;
}
.hpv-layers i:nth-child(3) {
  --z: 30px;
  animation-delay: -2.6s;
  border-color: var(--lime);
}
.hpv-layers b {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(197, 251, 5, 0.6);
}
@keyframes hp-float {
  50% {
    transform: rotateX(62deg) rotateZ(-45deg) translateZ(calc(var(--z) + 8px));
  }
}

/* ── how it works: a light travels the steps; each step shows its stage ── */
.hp-steps::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, var(--lime), transparent) no-repeat;
  background-size: 140px 1px;
  animation: hp-travel 4.5s linear infinite;
  pointer-events: none;
}
@keyframes hp-travel {
  from {
    background-position: -140px 0;
  }
  to {
    background-position: calc(100% + 140px) 0;
  }
}
.hp-steps li span {
  animation: hp-node 4.5s linear infinite;
}
.hp-steps li:nth-child(2) span {
  animation-delay: 1.5s;
}
.hp-steps li:nth-child(3) span {
  animation-delay: 3s;
}
@keyframes hp-node {
  0%,
  6% {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 0 24px rgba(197, 251, 5, 0.6);
  }
  20%,
  100% {
    background: var(--ink);
    color: var(--lime);
    box-shadow: none;
  }
}
.hp-step-visual {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 243, 0.12);
  border-radius: 10px;
  background: #0b0d0c;
}
.hp-step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-step-visual em {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(5, 5, 5, 0.82);
  color: var(--mist);
  font: 500 10.5px/1 'IBM Plex Mono', monospace;
  font-style: normal;
  letter-spacing: 0.06em;
}
.hp-cam img {
  filter: grayscale(0.85) brightness(0.62) contrast(1.1);
}
.hp-cam b {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ff8aa1;
  font: 600 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
}
.hp-cam b::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5577;
  animation: hp-blink 1.2s ease-in-out infinite;
}
.hp-ai img {
  filter: saturate(0.85) brightness(0.7);
}
.hp-ai i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: 1.5px solid var(--lime);
  border-radius: 3px;
  transform: translate(-50%, -50%);
  animation: hp-lock 4.5s var(--ease-out) infinite;
}
.hp-ai i + i {
  animation-delay: 0.4s;
}
.hp-ai i b {
  position: absolute;
  left: -1.5px;
  bottom: 100%;
  margin-bottom: 3px;
  padding: 3px 5px;
  border-radius: 2px;
  background: var(--lime);
  color: var(--ink);
  font: 600 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes hp-lock {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
  15%,
  85% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}
.hp-out {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 16px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(197, 251, 5, 0.08), transparent 70%),
    #0b0d0c;
}
.hp-out p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(246, 246, 243, 0.12);
  border-radius: 8px;
  background: rgba(14, 16, 14, 0.9);
  color: var(--mist);
  font-size: 12.5px;
  animation: hp-notify 4.5s var(--ease-out) infinite;
}
.hp-out p:nth-child(2) {
  animation-delay: 0.25s;
}
.hp-out p:nth-child(3) {
  animation-delay: 0.5s;
}
.hp-out b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(197, 251, 5, 0.7);
}
@keyframes hp-notify {
  0%,
  60% {
    opacity: 0;
    transform: translateX(16px);
  }
  70%,
  100% {
    opacity: 1;
    transform: none;
  }
}

/* ── security: permissions card ── */
.hp-split .hp-head {
  position: static;
}
.hp-trust-side {
  position: sticky;
  top: 40px;
  align-self: start;
}
.hp-access {
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 243, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 16, 14, 0.9), rgba(7, 8, 7, 0.9));
}
.hp-access p {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  align-items: center;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 246, 243, 0.06);
  color: var(--mist);
  font-size: 13px;
}
.hp-access .hp-access-head {
  color: var(--tx-4);
  font: 500 10.5px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hp-access b {
  position: relative;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: rgba(246, 246, 243, 0.12);
  transition: background-color 0.4s;
}
.hp-access b::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--graphite);
  transition:
    transform 0.4s var(--ease-out),
    background-color 0.4s;
}
.hp-access.is-in b.on,
.cosmo-home-sections:not(.hp-motion) .hp-access b.on {
  background: rgba(197, 251, 5, 0.3);
}
.hp-access.is-in b.on::after,
.cosmo-home-sections:not(.hp-motion) .hp-access b.on::after {
  background: var(--lime);
  transform: translateX(14px);
}
.hp-access p:nth-child(2) b,
.hp-access p:nth-child(2) b::after {
  transition-delay: 0.3s;
}
.hp-access p:nth-child(3) b,
.hp-access p:nth-child(3) b::after {
  transition-delay: 0.55s;
}
.hp-access p:nth-child(4) b,
.hp-access p:nth-child(4) b::after {
  transition-delay: 0.8s;
}
.hp-access .hp-cipher {
  grid-template-columns: 1.4fr 3fr;
  border-bottom: 0;
}
.hp-cipher code {
  overflow: hidden;
  color: var(--lime);
  font: 500 11.5px/1.4 'IBM Plex Mono', monospace;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── closing call: the brand orbit carries the operations ── */
.hp-cta-card::before {
  display: none;
}
.hp-cta-copy,
.hp-pilot {
  position: relative;
  z-index: 1;
}
.hp-orbit {
  position: absolute;
  top: 50%;
  right: -340px;
  width: 640px;
  aspect-ratio: 1;
  margin-top: -320px;
  opacity: 0.45;
  pointer-events: none;
  animation: hp-spin 90s linear infinite;
}
.hp-orbit i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(246, 246, 243, 0.14);
  border-radius: 50%;
}
.hp-orbit i:nth-child(2) {
  inset: 18%;
  border: 1px dashed rgba(197, 251, 5, 0.4);
}
.hp-orbit i:nth-child(3) {
  inset: 36%;
  border: 2px solid rgba(197, 251, 5, 0.6);
}
.hp-orbit b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -46px;
  overflow: hidden;
  border: 2px solid rgba(197, 251, 5, 0.6);
  border-radius: 50%;
  transform: rotate(var(--a)) translateX(320px);
}
.hp-orbit b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-orbit span {
  position: absolute;
  inset: 46%;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 60px rgba(197, 251, 5, 0.7);
}
@keyframes hp-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .hp-trust-side {
    position: static;
  }
  .hp-orbit {
    right: -380px;
    opacity: 0.25;
  }
}
@media (max-width: 700px) {
  .hp-callout {
    display: none;
  }
  .hp-ops-row a {
    width: 250px;
  }
  .hp-steps .hp-step-visual {
    grid-column: 2;
  }
  .hp-steps::after {
    top: 20px;
    bottom: 20px;
    left: 19px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, #fff, var(--lime), transparent) no-repeat;
    background-size: 1px 140px;
    animation-name: hp-travel-y;
  }
  .hp-access p {
    padding: 11px 12px;
    font-size: 12px;
  }
  .hp-orbit {
    top: auto;
    bottom: -420px;
    right: 50%;
    margin: 0 -320px 0 0;
  }
}
@keyframes hp-travel-y {
  from {
    background-position: 0 -140px;
  }
  to {
    background-position: 0 calc(100% + 140px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-callout {
    opacity: 1;
  }
  .hp-sweep,
  .hp-steps::after,
  .hpv-live i {
    display: none;
  }
}

/* Feature cards reveal their content, not the cell: the grid lines behind them never show as an empty block. */
.hp-motion .hp-grid > li[data-reveal] {
  opacity: 1;
  transform: none;
}
.hp-motion .hp-grid > li[data-reveal] > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.hp-motion .hp-grid > li.is-in > * {
  opacity: 1;
  transform: none;
}
@media (max-width: 700px) {
  .hp-orbit b {
    display: none;
  }
}

/* Review 19/10: on phones the product screen comes before its description. */
@media (max-width: 700px) {
  .hp-panel .hp-screen {
    order: -1;
  }
}
/* The services directory (static, from the marketing script) closes the sections, before the footer. */
.cosmo-home-sections > .cosmo-service-home {
  padding-top: 48px;
  padding-bottom: 56px;
}
.cosmo-home-sections > .cosmo-service-home h2 {
  color: var(--tx-1);
  font-weight: 600;
  letter-spacing: -0.02em;
}
