/* Homepage hero clarity layer: one panorama, one selected system, no decorative route animation. */
html[data-view-mode] .page-home .home-hero {
  --home-inset: max(var(--layout-gutter), calc((min(100vw, 1600px) - 1280px) / 2));
  --hero-accent: #c9f54a;
  --hero-copy-bg: #f4f6f2;
  --hero-copy-ink: #0c100d;
  --hero-copy-text: #44504b;
  --hero-stage-bg: #eef1ed;
  --hero-stage-line: rgba(15, 28, 22, 0.16);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  width: min(100%, 1600px);
  min-height: 0;
  margin: 12px auto 0;
  padding: 0;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  color: var(--hero-copy-ink);
  border: 0;
  border-radius: 28px;
  background: #080a0b;
  box-shadow: none;
}

/* Keep the first useful content immediately visible; motion belongs to explicit states only. */
.page-home .home-hero.reveal,
.page-home .home-hero.reveal.is-visible {
  opacity: 1;
  transform: none;
}

html[data-view-mode="kinetic"] .page-home .home-hero {
  --hero-copy-bg: #080a0b;
  --hero-copy-ink: #f7f8f3;
  --hero-copy-text: #bdc5bc;
  --hero-stage-bg: #0b0e0c;
  --hero-stage-line: rgba(218, 255, 103, 0.16);
}

html[data-view-mode] .page-home .home-hero::before,
html[data-view-mode] .page-home .home-hero::after {
  content: none !important;
  animation: none !important;
}

html[data-view-mode] .page-home .home-hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  grid-area: 1 / 1;
  width: min(58%, calc(640px + var(--home-inset)));
  max-width: none;
  min-width: 0;
  min-height: 0;
  padding: 40px 32px 28px var(--home-inset);
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

.page-home .home-hero-copy > * {
  pointer-events: auto;
}

.page-home .home-hero .home-hero-kicker {
  margin-bottom: 16px;
  color: #08775f;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

html[data-view-mode="kinetic"] .page-home .home-hero .home-hero-kicker {
  color: var(--hero-accent);
}

html[data-view-mode] .page-home .home-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--hero-copy-ink);
  font-size: 48px;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-home .home-hero h1 span {
  display: inline;
  white-space: normal;
}

html[data-view-mode] .page-home .home-hero-copy > p {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--hero-copy-text);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.page-home .home-hero .hero-actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-hero .button.primary,
.page-home .home-hero .button.secondary {
  min-height: 54px;
  padding-inline: 26px;
  border-radius: 999px;
  font-weight: 760;
}

.page-home .home-hero .button.primary {
  color: #0d1108;
  border-color: var(--hero-accent);
  background: var(--hero-accent);
  box-shadow: none;
}

.page-home .home-hero .button.secondary {
  color: var(--hero-copy-ink);
  border-color: color-mix(in srgb, var(--hero-copy-ink) 24%, transparent);
  background: color-mix(in srgb, var(--hero-copy-bg) 72%, transparent);
}

.page-home .home-hero .button:focus-visible {
  outline: 3px solid #147a61;
  outline-offset: 3px;
}

html[data-view-mode="kinetic"] .page-home .home-hero .button:focus-visible {
  outline-color: #fff;
}

.home-hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-area: 1 / 1 / 3 / 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #080a0b;
}

html[data-view-mode] .page-home .home-hero .home-hero-visual .page-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #080a0b;
  box-shadow: none;
}

html[data-view-mode] .page-home .home-hero .home-hero-visual .page-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--hero-copy-bg) 0%, color-mix(in srgb, var(--hero-copy-bg) 98%, transparent) 28%, color-mix(in srgb, var(--hero-copy-bg) 84%, transparent) 40%, color-mix(in srgb, var(--hero-copy-bg) 32%, transparent) 55%, transparent 68%),
    linear-gradient(0deg, rgba(5, 8, 7, 0.4), transparent 30%);
  pointer-events: none;
}

html[data-view-mode="kinetic"] .page-home .home-hero .home-hero-visual .page-hero-media::after {
  background:
    linear-gradient(90deg, #080a0b 0%, rgba(8, 10, 11, 0.98) 28%, rgba(8, 10, 11, 0.82) 40%, rgba(8, 10, 11, 0.3) 55%, transparent 68%),
    linear-gradient(0deg, rgba(5, 8, 7, 0.48), transparent 32%);
}

html[data-view-mode] .page-home .home-hero .home-hero-visual .page-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 60% center;
  opacity: 1;
  filter: saturate(0.92) contrast(1.05) brightness(0.88);
  transform: none;
  animation: none;
}

.home-system-halos {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-system-halo {
  position: absolute;
  width: clamp(78px, 8vw, 126px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(218, 255, 103, 0.34) 0 18%, rgba(201, 245, 74, 0.15) 36%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(225, 255, 132, 0.72), 0 0 34px rgba(201, 245, 74, 0.24);
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-system-halo--video { top: 32%; left: 58%; }
.home-system-halo--security { top: 18%; left: 73%; }
.home-system-halo--datacenter { top: 48%; left: 76%; }
.home-system-halo--dispatch { top: 57%; left: 89%; }
.home-system-halo--access { top: 74%; left: 57%; }
.home-system-halo--network { top: 79%; left: 70%; }
.home-system-halo--power { top: 78%; left: 88%; }
.home-system-halo--software { top: 54%; left: 91%; }

.home-hero-visual[data-home-system-active="video"] [data-home-system-halo="video"],
.home-hero-visual[data-home-system-active="security"] [data-home-system-halo="security"],
.home-hero-visual[data-home-system-active="datacenter"] [data-home-system-halo="datacenter"],
.home-hero-visual[data-home-system-active="dispatch"] [data-home-system-halo="dispatch"],
.home-hero-visual[data-home-system-active="access"] [data-home-system-halo="access"],
.home-hero-visual[data-home-system-active="network"] [data-home-system-halo="network"],
.home-hero-visual[data-home-system-active="power"] [data-home-system-halo="power"],
.home-hero-visual[data-home-system-active="software"] [data-home-system-halo="software"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.home-hero-visual .home-hero-systems {
  position: absolute;
  z-index: 4;
  inset: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}

.home-hero-visual .home-hero-node {
  position: absolute;
  display: inline-flex;
  width: max-content;
  max-width: 188px;
  min-height: 44px;
  align-items: center;
  padding: 6px 0;
  gap: 9px;
  color: #f7f8f3;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: 0.005em;
  text-transform: none;
  text-shadow: 0 2px 8px #050607, 0 0 14px #050607;
  pointer-events: auto;
  transition: color 160ms ease, transform 160ms ease;
}

.home-hero-node-dot {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(247, 248, 243, 0.92);
  border-radius: 50%;
  background: rgba(8, 10, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(8, 10, 11, 0.36);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-hero-node-label {
  display: block;
  max-width: 164px;
  text-wrap: balance;
}

.home-hero-visual .home-hero-node::before,
.home-hero-visual .home-hero-node::after {
  content: none;
}

.home-hero-visual .home-hero-node:is(:hover, :focus-visible, .is-system-active) {
  color: #eaffaa;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}

.home-hero-visual .home-hero-node:is(:hover, :focus-visible, .is-system-active) .home-hero-node-dot {
  border-color: var(--hero-accent);
  background: var(--hero-accent);
  box-shadow: 0 0 0 6px rgba(201, 245, 74, 0.17), 0 0 22px rgba(201, 245, 74, 0.52);
  transform: scale(1.08);
}

.home-hero-visual .home-hero-node:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 8px;
}

.home-hero-node--video { top: 20%; left: 53%; }
.home-hero-node--security { top: 8%; left: 68%; }
.home-hero-node--datacenter { top: 38%; left: 72%; }
.home-hero-node--dispatch { top: 49%; right: 3%; }
.home-hero-node--access { bottom: 18%; left: 52%; }
.home-hero-node--network { bottom: 8%; left: 66%; }
.home-hero-node--power { right: 3%; bottom: 9%; }
.home-hero-node--software { top: 29%; right: 2%; }

.home-hero-node--dispatch,
.home-hero-node--power,
.home-hero-node--software {
  flex-direction: row-reverse;
  text-align: right;
}

.home-system-detail {
  position: relative;
  z-index: 7;
  display: grid;
  grid-area: 2 / 1;
  width: min(48%, calc(560px + var(--home-inset)));
  min-height: 178px;
  margin: 0;
  padding: 0 32px 32px var(--home-inset);
  align-self: end;
  justify-self: start;
  color: var(--hero-copy-ink);
  background: transparent;
}

.home-system-detail-kicker {
  margin-bottom: 7px;
  color: #08775f;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-view-mode="kinetic"] .home-system-detail-kicker {
  color: var(--hero-accent);
}

.home-system-detail strong {
  color: var(--hero-copy-ink);
  font-size: 19px;
  font-weight: 720;
  line-height: 1.22;
}

.home-system-detail p {
  max-width: 52ch;
  margin: 5px 0 0 !important;
  color: var(--hero-copy-text) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.home-system-detail a {
  width: fit-content;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 0 8px;
  color: #08775f;
  font-size: 14px;
  font-weight: 760;
}

html[data-view-mode="kinetic"] .home-system-detail a {
  color: var(--hero-accent);
}

.home-system-detail a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-system-detail a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.page-home .home-hero .home-hero-stages {
  position: relative;
  z-index: 8;
  grid-area: 3 / 1;
  min-height: 94px;
  overflow: hidden;
  border: 0;
  background: var(--hero-stage-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-home .home-hero .home-hero-stages ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 94px;
  margin: 0;
  padding: 16px clamp(24px, 3.3vw, 52px) 18px;
  gap: clamp(12px, 2vw, 34px);
  list-style: none;
}

.page-home .home-hero .home-hero-stages ol::before {
  position: absolute;
  top: 31px;
  right: 10%;
  left: 10%;
  height: 1px;
  content: "";
  background: var(--hero-stage-line);
}

.page-home .home-hero .home-hero-stages li {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 0;
}

.page-home .home-hero .home-hero-stages a {
  display: grid;
  min-height: 60px;
  padding: 0;
  align-content: start;
  justify-items: center;
  gap: 7px;
  color: var(--hero-copy-ink);
  border: 0;
  background: transparent;
  text-align: center;
  transition: color 160ms ease, transform 160ms ease;
}

.page-home .home-hero .home-hero-stages a::after {
  content: none;
}

.page-home .home-hero .home-hero-stages a span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--hero-copy-text);
  border: 0;
  border-radius: 50%;
  background: var(--hero-stage-bg);
  font-size: 11px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.page-home .home-hero .home-hero-stages a strong {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.page-home .home-hero .home-hero-stages a[aria-current="step"] span {
  color: #fff;
  background: #08775f;
}

.page-home .home-hero .home-hero-stages a:is(:hover, :focus-visible) {
  color: var(--hero-copy-ink);
  background: transparent;
  transform: translateY(-2px);
}

.page-home .home-hero .home-hero-stages a:not([aria-current="step"]):is(:hover, :focus-visible, .is-route-preview) span {
  color: var(--hero-copy-ink);
  background: var(--hero-stage-bg);
  box-shadow: 0 0 0 2px #08775f;
}

html[data-view-mode="kinetic"] .page-home .home-hero .home-hero-stages a[aria-current="step"] span {
  color: #0d1108;
  background: var(--hero-accent);
}

html[data-view-mode="kinetic"] .page-home .home-hero .home-hero-stages a:not([aria-current="step"]):is(:hover, :focus-visible, .is-route-preview) span {
  box-shadow: 0 0 0 2px var(--hero-accent);
}

html[data-view-mode="kinetic"] .page-home .home-hero .home-hero-stages a:is(:hover, :focus-visible) {
  color: var(--hero-copy-ink);
}

.page-home .home-hero .home-hero-stages a:focus-visible {
  outline: 3px solid #147a61;
  outline-offset: 4px;
  border-radius: 6px;
}

html[data-view-mode="kinetic"] .page-home .home-hero .home-hero-stages a:focus-visible {
  outline-color: #fff;
}

@media (min-width: 1181px) and (max-width: 1380px) {
  html[data-view-mode] .page-home .home-hero h1 {
    font-size: 44px;
  }

  .home-hero-visual .home-hero-node {
    max-width: 160px;
    font-size: 10px;
  }
}

@media (max-width: 1180px) {
  html[data-view-mode] .page-home .home-hero {
    grid-template-rows: auto auto auto auto;
    min-height: 0;
    background: var(--hero-copy-bg);
  }

  html[data-view-mode] .page-home .home-hero-copy {
    grid-area: 1 / 1;
    width: 100%;
    min-height: 0;
    padding: 40px var(--home-inset) 32px;
    background: var(--hero-copy-bg);
  }

  html[data-view-mode] .page-home .home-hero h1 {
    max-width: 24ch;
    font-size: 48px;
  }

  html[data-view-mode] .page-home .home-hero-copy > p {
    max-width: 620px;
  }

  .home-hero-visual {
    grid-area: 2 / 1;
    min-height: 500px;
  }

  .home-hero-node--network {
    left: 48%;
  }

  .home-system-halo--network {
    left: 58%;
  }

  .home-hero-node--software {
    top: 18%;
  }

  .home-system-halo--software {
    top: 31%;
  }

  html[data-view-mode] .page-home .home-hero .home-hero-visual .page-hero-media::after,
  html[data-view-mode="kinetic"] .page-home .home-hero .home-hero-visual .page-hero-media::after {
    background: linear-gradient(0deg, rgba(5, 8, 7, 0.42), transparent 36%);
  }

  .home-system-detail {
    grid-area: 3 / 1;
    width: 100%;
    margin: 0;
    padding: 24px var(--home-inset) 30px;
    background: var(--hero-copy-bg);
  }

  .page-home .home-hero .home-hero-stages {
    grid-area: 4 / 1;
  }
}

@media (max-width: 760px) {
  html[data-view-mode] .page-home .home-hero {
    width: 100%;
    margin-top: 10px;
    border-radius: 0;
  }

  html[data-view-mode] .page-home .home-hero-copy {
    padding: 32px var(--home-inset);
  }

  .page-home .home-hero .home-hero-kicker {
    margin-bottom: 17px;
    font-size: 11px;
  }

  html[data-view-mode] .page-home .home-hero h1 {
    max-width: none;
    font-size: 36px !important;
    line-height: 1.08;
  }

  html[data-view-mode] .page-home .home-hero-copy > p {
    margin-top: 20px;
    font-size: 16px;
  }

  .page-home .home-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .page-home .home-hero .button {
    width: 100%;
    justify-content: center;
  }

  .home-hero-visual {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
    background: #080a0b;
  }

  html[data-view-mode] .page-home .home-hero .home-hero-visual .page-hero-media {
    position: relative;
    grid-area: 1 / 1;
    aspect-ratio: 16 / 9;
  }

  html[data-view-mode] .page-home .home-hero .home-hero-visual .page-hero-media img {
    object-position: 67% center;
  }

  .home-system-halos {
    position: relative;
    grid-area: 1 / 1;
    aspect-ratio: 16 / 9;
  }

  .home-system-halo {
    width: clamp(58px, 19vw, 82px);
  }

  .home-hero-visual .home-hero-systems {
    position: relative;
    display: grid;
    grid-area: 2 / 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px var(--home-inset) 18px;
    gap: 2px 16px;
    background: #0b0e0c;
  }

  .home-hero-visual .home-hero-node,
  .home-hero-visual .home-hero-node--dispatch,
  .home-hero-visual .home-hero-node--power,
  .home-hero-visual .home-hero-node--software {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 7px 0;
    flex-direction: row;
    color: #f7f8f3;
    font-size: 11px;
    text-align: left;
    text-shadow: none;
    transform: none;
  }

  .home-hero-visual .home-hero-node:is(:hover, :focus-visible, .is-system-active) {
    transform: none;
  }

  .home-system-detail {
    padding: 24px var(--home-inset) 30px;
  }

  .home-system-detail strong {
    font-size: 18px;
  }

  .page-home .home-hero .home-hero-stages ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    padding: 18px var(--home-inset) 22px;
    gap: 8px 18px;
  }

  .page-home .home-hero .home-hero-stages ol::before {
    content: none;
  }

  .page-home .home-hero .home-hero-stages a {
    grid-template-columns: 31px minmax(0, 1fr);
    min-height: 52px;
    align-items: center;
    align-content: center;
    justify-items: start;
    gap: 9px;
    text-align: left;
  }

  .page-home .home-hero .home-hero-stages a strong {
    font-size: 13px;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  html[data-view-mode] .page-home .home-hero h1 {
    font-size: 34px !important;
  }

  .home-hero-visual .home-hero-systems {
    gap-inline: 10px;
    padding-inline: var(--home-inset);
  }

  .home-hero-visual .home-hero-node {
    font-size: 10.5px;
  }

  .page-home .home-hero .home-hero-stages ol {
    padding-inline: 16px;
    gap-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-system-halo,
  .home-hero-visual .home-hero-node,
  .home-hero-node-dot,
  .page-home .home-hero .home-hero-stages a {
    scroll-behavior: auto;
    transition: none !important;
  }

  .home-hero-visual .home-hero-node:is(:hover, :focus-visible, .is-system-active),
  .page-home .home-hero .home-hero-stages a:is(:hover, :focus-visible) {
    transform: none;
  }
}
