:root {
  color-scheme: dark;
  --bg: #050609;
  --bg-2: #090d14;
  --panel: rgba(10, 16, 25, 0.82);
  --panel-strong: rgba(8, 13, 21, 0.94);
  --line: rgba(236, 254, 255, 0.16);
  --line-strong: rgba(37, 244, 255, 0.42);
  --text: #ecfeff;
  --muted: #a8bdc7;
  --soft: #6f8490;
  --cyan: #25f4ff;
  --violet: #c061ff;
  --gold: #f7b955;
  --green: #29f0a7;
  --coral: #ff6f61;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.06), transparent 28%),
    linear-gradient(225deg, rgba(192, 97, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #050609 0%, #071017 48%, #050609 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(236, 254, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 254, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  z-index: 20;
  padding: 10px 14px;
  background: var(--text);
  color: #050609;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid rgba(236, 254, 255, 0.1);
  background: rgba(5, 6, 9, 0.78);
  backdrop-filter: blur(18px) saturate(145%);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 244, 255, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.16), transparent),
    linear-gradient(225deg, rgba(247, 185, 85, 0.18), transparent),
    #07121a;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text span {
  color: var(--soft);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.is-active {
  color: var(--text);
  border-color: rgba(37, 244, 255, 0.32);
  background: rgba(37, 244, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(236, 254, 255, 0.12);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96), rgba(5, 6, 9, 0.58) 44%, rgba(5, 6, 9, 0.24)),
    linear-gradient(0deg, rgba(5, 6, 9, 0.92), transparent 34%),
    var(--hero-image, url("/assets/images/hero-command-deck.png")) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.visual-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid rgba(236, 254, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96), rgba(5, 6, 9, 0.5) 50%, rgba(5, 6, 9, 0.18)),
    linear-gradient(0deg, rgba(5, 6, 9, 0.94), transparent 42%),
    var(--hero-image) center / cover no-repeat;
}

.visual-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(236, 254, 255, 0.055) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(236, 254, 255, 0.035) 0 1px, transparent 1px 90px),
    linear-gradient(180deg, rgba(37, 244, 255, 0.08), transparent 28%, rgba(5, 6, 9, 0.9));
  opacity: 0.72;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.76;
  pointer-events: none;
}

.hero-hud-frame {
  position: absolute;
  inset: 24px;
  z-index: 2;
  border: 1px solid rgba(236, 254, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.hero-hud-frame::before,
.hero-hud-frame::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 96px;
  border-color: rgba(37, 244, 255, 0.58);
  border-style: solid;
  pointer-events: none;
}

.hero-hud-frame::before {
  left: -1px;
  top: -1px;
  border-width: 2px 0 0 2px;
}

.hero-hud-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.visual-hero__inner {
  position: relative;
  z-index: 3;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
  grid-template-rows: 1fr auto;
  gap: 28px;
  align-items: center;
}

.visual-hero__copy {
  max-width: 760px;
  padding-top: 40px;
}

.visual-hero h1 {
  margin-bottom: 22px;
  font-size: 5.25rem;
  line-height: 0.94;
}

.visual-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
}

.visual-status-line span {
  min-height: 42px;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 254, 255, 0.16);
  border-radius: 6px;
  color: #dffcff;
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.14), rgba(192, 97, 255, 0.06)),
    rgba(2, 6, 10, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.command-console--visual {
  align-self: center;
  background:
    linear-gradient(180deg, rgba(236, 254, 255, 0.1), transparent),
    rgba(8, 13, 21, 0.72);
}

.command-examples--compact {
  max-height: 92px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.visual-dock {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 34px;
}

.visual-dock__item {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid rgba(236, 254, 255, 0.15);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.12), transparent),
    rgba(2, 6, 10, 0.56);
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.visual-dock__item:hover,
.visual-dock__item:focus {
  transform: translateY(-3px);
  border-color: rgba(37, 244, 255, 0.64);
  background-color: rgba(37, 244, 255, 0.1);
}

.visual-dock__item img {
  width: 34px;
  height: 34px;
}

.visual-dock__item span {
  font-size: 0.86rem;
}

.space-hero {
  position: relative;
  min-height: clamp(660px, calc(100vh - 96px), 880px);
  overflow: hidden;
  border-bottom: 1px solid rgba(236, 254, 255, 0.16);
  background: #02050a;
}

.space-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96), rgba(5, 6, 9, 0.28) 54%, rgba(5, 6, 9, 0.82)),
    linear-gradient(0deg, rgba(5, 6, 9, 0.98), transparent 36%, rgba(5, 6, 9, 0.76)),
    url("/assets/images/operations-bridge.png") center / cover no-repeat;
  opacity: 0.48;
}

.space-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(236, 254, 255, 0.046) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(236, 254, 255, 0.032) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, rgba(37, 244, 255, 0.08), transparent 20%, rgba(5, 6, 9, 0.9));
  opacity: 0.7;
}

.space-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
}

.space-scene canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.space-field {
  z-index: 2;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.space-frame {
  z-index: 5;
}

.space-overlay {
  position: relative;
  z-index: 6;
  width: min(var(--max), calc(100% - 32px));
  min-height: inherit;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-rows: 1fr auto auto;
  gap: 16px 22px;
  align-items: center;
  padding: 58px 0 24px;
}

.space-title {
  grid-column: 1;
  grid-row: 1;
  max-width: 760px;
  padding-top: 34px;
}

.space-title h1 {
  margin-bottom: 18px;
  font-size: 5.1rem;
  line-height: 0.94;
  text-shadow: 0 0 34px rgba(37, 244, 255, 0.24), 0 18px 58px rgba(0, 0, 0, 0.68);
}

.space-readout {
  width: min(100%, 560px);
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 0 14px 18px;
  border-left: 2px solid rgba(37, 244, 255, 0.68);
  background: linear-gradient(90deg, rgba(37, 244, 255, 0.14), transparent 78%);
}

.space-readout span {
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.space-readout strong {
  font-size: 1.28rem;
}

.space-readout p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.space-navigator {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(236, 254, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(236, 254, 255, 0.1), transparent),
    rgba(5, 10, 18, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(150%);
}

.space-navigator__head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(236, 254, 255, 0.12);
}

.space-navigator__head span {
  color: var(--green);
  font-size: 0.78rem;
  text-align: right;
}

.space-move-grid {
  width: 158px;
  height: 146px;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(3, 42px);
  gap: 6px;
  justify-content: center;
  align-content: center;
}

.space-move-grid button,
.space-sector-list button {
  border: 1px solid rgba(236, 254, 255, 0.16);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.11), transparent),
    rgba(2, 7, 13, 0.76);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.space-move-grid button {
  min-width: 46px;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 1.2rem;
}

.space-move-grid button[data-space-move="forward"] {
  grid-column: 2;
  grid-row: 1;
}

.space-move-grid button[data-space-move="left"] {
  grid-column: 1;
  grid-row: 2;
}

.space-move-grid button[data-space-move="right"] {
  grid-column: 3;
  grid-row: 2;
}

.space-move-grid button[data-space-move="back"] {
  grid-column: 2;
  grid-row: 3;
}

.space-move-grid button:hover,
.space-move-grid button:focus,
.space-sector-list button:hover,
.space-sector-list button:focus,
.space-sector-list button.is-active {
  transform: translateY(-2px);
  border-color: rgba(37, 244, 255, 0.62);
  background-color: rgba(37, 244, 255, 0.1);
}

.space-sector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.space-sector-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: left;
}

.space-sector-list span {
  color: var(--gold);
  font-size: 0.76rem;
}

.space-sector-list strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.space-open {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 244, 255, 0.62);
  border-radius: 6px;
  color: #041014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
  text-decoration: none;
}

.command-console--space {
  grid-column: 1;
  grid-row: 2;
  width: min(100%, 560px);
  align-self: end;
  background:
    linear-gradient(180deg, rgba(236, 254, 255, 0.1), transparent),
    rgba(8, 13, 21, 0.68);
  backdrop-filter: blur(14px) saturate(145%);
}

.space-dock {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.space-dock__item {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid rgba(236, 254, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.12), transparent),
    rgba(2, 6, 10, 0.54);
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.space-dock__item:hover,
.space-dock__item:focus {
  transform: translateY(-3px);
  border-color: rgba(37, 244, 255, 0.64);
  background-color: rgba(37, 244, 255, 0.1);
}

.space-dock__item img {
  width: 30px;
  height: 30px;
}

.space-dock__item span {
  font-size: 0.84rem;
}

.hero--advanced::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96), rgba(5, 6, 9, 0.48) 48%, rgba(5, 6, 9, 0.16)),
    linear-gradient(0deg, rgba(5, 6, 9, 0.94), transparent 42%),
    linear-gradient(180deg, rgba(37, 244, 255, 0.08), transparent 22%),
    var(--hero-image, url("/assets/images/operations-bridge.png")) center / cover no-repeat;
}

.hero--advanced .hero-inner {
  padding-bottom: 56px;
}

.hero--sub {
  min-height: 48vh;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  gap: 32px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.86rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 4.7rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.35rem;
  line-height: 1.08;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  color: #c5d4dc;
  font-size: 1.14rem;
  line-height: 1.72;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.signal-rail {
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

.signal-rail span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 254, 255, 0.13);
  border-radius: 6px;
  color: #cfe9ef;
  background:
    linear-gradient(90deg, rgba(37, 244, 255, 0.1), transparent),
    rgba(2, 6, 10, 0.58);
  font-size: 0.84rem;
}

.button,
.deck-card__action,
.command-submit,
.command-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(236, 254, 255, 0.16);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.14), transparent),
    rgba(8, 13, 21, 0.72);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button {
  padding: 0 16px;
}

.button:hover,
.button:focus,
.deck-card__action:hover,
.deck-card__action:focus,
.command-submit:hover,
.command-submit:focus,
.command-chip:hover,
.command-chip:focus {
  transform: translateY(-1px);
  border-color: rgba(37, 244, 255, 0.58);
  background-color: rgba(37, 244, 255, 0.1);
}

.button--primary,
.command-submit {
  border-color: rgba(247, 185, 85, 0.6);
  color: #081017;
  background: linear-gradient(135deg, var(--gold), #fff0b7);
  font-weight: 800;
}

.button--primary:hover,
.button--primary:focus,
.command-submit:hover,
.command-submit:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, #fff0b7, var(--gold));
}

.command-console,
.surface-panel,
.windy-module,
.media-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(236, 254, 255, 0.08), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(145%);
}

.command-console {
  padding: 18px;
}

.command-console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.console-label {
  color: var(--soft);
  font-size: 0.82rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(41, 240, 167, 0.9);
}

.command-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.command-input,
.windy-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(236, 254, 255, 0.16);
  border-radius: 6px;
  color: var(--text);
  background: rgba(2, 6, 10, 0.76);
  outline: none;
}

.command-input {
  padding: 0 14px;
}

.command-input:focus,
.windy-input:focus {
  border-color: rgba(37, 244, 255, 0.64);
  box-shadow: 0 0 0 3px rgba(37, 244, 255, 0.12);
}

.command-output {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.command-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.command-chip {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(236, 254, 255, 0.12);
  border-radius: 8px;
  background: rgba(3, 7, 12, 0.66);
}

.metric span {
  display: block;
  color: var(--soft);
  font-size: 0.78rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding-top: 42px;
}

.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.68;
}

.section-head--visual {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head--visual h2 {
  margin-bottom: 0;
}

.visual-panel-section {
  padding: 18px 0 72px;
  background:
    linear-gradient(180deg, rgba(5, 6, 9, 0.9), rgba(7, 16, 23, 0.62)),
    linear-gradient(90deg, rgba(37, 244, 255, 0.06), transparent);
}

.visual-panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 260px;
  gap: 14px;
}

.visual-panel {
  position: relative;
  min-height: 240px;
  display: grid;
  align-content: end;
  padding: 20px;
  border: 1px solid rgba(236, 254, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(0deg, rgba(5, 6, 9, 0.92), rgba(5, 6, 9, 0.16) 70%),
    var(--panel-image) center / cover no-repeat;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  transition: transform 180ms ease, border-color 180ms ease;
}

.visual-panel--large {
  grid-row: span 2;
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 18%, rgba(37, 244, 255, 0.14), transparent 38%),
    repeating-linear-gradient(0deg, rgba(236, 254, 255, 0.035) 0 1px, transparent 1px 32px);
  opacity: 0;
  transform: translateX(-24%);
  transition: opacity 180ms ease, transform 360ms ease;
}

.visual-panel:hover,
.visual-panel:focus {
  transform: translateY(-4px);
  border-color: rgba(37, 244, 255, 0.54);
}

.visual-panel:hover::before,
.visual-panel:focus::before {
  opacity: 0.8;
  transform: translateX(20%);
}

.visual-panel__kicker,
.visual-panel strong {
  position: relative;
  z-index: 1;
}

.visual-panel__kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.visual-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.36rem;
}

.cinematic-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(236, 254, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.95), rgba(5, 6, 9, 0.72), rgba(5, 6, 9, 0.28)),
    var(--cinematic-image) center / cover no-repeat;
}

.cinematic-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(236, 254, 255, 0.04) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(37, 244, 255, 0.08), transparent 28%, rgba(192, 97, 255, 0.08));
  opacity: 0.62;
}

.cinematic-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.cinematic-copy {
  max-width: 700px;
  padding: 34px 0;
}

.cinematic-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.ops-stack {
  display: grid;
  gap: 10px;
}

.ops-stack article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid rgba(236, 254, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.1), transparent),
    rgba(3, 7, 12, 0.72);
  backdrop-filter: blur(16px);
}

.ops-stack span {
  grid-row: span 2;
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 185, 85, 0.36);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(247, 185, 85, 0.08);
  font-weight: 800;
}

.ops-stack strong {
  color: var(--text);
}

.ops-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.92rem;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deck-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deck-grid--visual {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.visual-card-section {
  background: linear-gradient(180deg, rgba(5, 6, 9, 0.94), rgba(9, 13, 20, 0.88));
}

.visual-card-section .deck-card {
  min-height: 248px;
}

.visual-card-section .deck-card p {
  display: none;
}

.visual-card-section .deck-card__tags {
  padding-top: 8px;
}

.deck-card {
  position: relative;
  min-height: 296px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(236, 254, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.1), transparent 44%),
    linear-gradient(225deg, rgba(247, 185, 85, 0.08), transparent 38%),
    rgba(8, 13, 21, 0.82);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.deck-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--violet));
  opacity: 0.62;
}

.deck-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 40%, rgba(236, 254, 255, 0.12) 48%, transparent 56%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(236, 254, 255, 0.035) 22px 23px);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 180ms ease, transform 420ms ease;
}

.deck-card:hover,
.deck-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(37, 244, 255, 0.52);
}

.deck-card:hover::before,
.deck-card:focus-within::before {
  opacity: 0.55;
  transform: translateX(35%);
}

.deck-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.deck-card__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 254, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 6, 10, 0.7);
}

.deck-card__icon img {
  width: 42px;
  height: 42px;
}

.deck-card__status {
  max-width: 150px;
  color: var(--soft);
  font-size: 0.78rem;
  text-align: right;
}

.deck-card h3 {
  margin-bottom: 10px;
}

.deck-card p {
  color: var(--muted);
  line-height: 1.58;
}

.deck-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.deck-card__tags span {
  padding: 5px 8px;
  border: 1px solid rgba(236, 254, 255, 0.1);
  border-radius: 6px;
  color: var(--soft);
  background: rgba(236, 254, 255, 0.04);
  font-size: 0.76rem;
}

.deck-card__action {
  width: fit-content;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.topology-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(236, 254, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.94), rgba(5, 6, 9, 0.68), rgba(5, 6, 9, 0.42)),
    var(--topology-image) center / cover no-repeat;
}

.topology-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(37, 244, 255, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(192, 97, 255, 0.04) 0 1px, transparent 1px 64px);
  opacity: 0.36;
}

.topology-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.topology-copy {
  min-height: 430px;
  display: grid;
  align-content: center;
}

.topology-readout {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(37, 244, 255, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 10, 0.72);
}

.topology-readout span {
  display: block;
  color: var(--soft);
  font-size: 0.78rem;
}

.topology-readout strong {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 1.2rem;
}

.topology-readout p {
  margin: 8px 0 0;
}

.topology-stage {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(236, 254, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.09), transparent 34%),
    linear-gradient(225deg, rgba(247, 185, 85, 0.08), transparent 36%),
    rgba(2, 6, 10, 0.52);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.topology-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(236, 254, 255, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.topology-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.topology-node {
  position: absolute;
  min-width: 112px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 254, 255, 0.18);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(37, 244, 255, 0.16), rgba(192, 97, 255, 0.08)),
    rgba(5, 9, 14, 0.86);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.topology-node:hover,
.topology-node:focus,
.topology-node.is-active {
  transform: translateY(-2px);
  border-color: rgba(37, 244, 255, 0.76);
  background-color: rgba(37, 244, 255, 0.12);
}

.topology-node--core {
  left: 43%;
  top: 43%;
  min-width: 136px;
  border-color: rgba(247, 185, 85, 0.72);
}

.topology-node--ai {
  left: 16%;
  top: 18%;
}

.topology-node--media {
  right: 13%;
  top: 20%;
}

.topology-node--storage {
  left: 12%;
  bottom: 20%;
}

.topology-node--home {
  right: 16%;
  bottom: 18%;
}

.topology-node--projects {
  left: 42%;
  top: 12%;
}

.topology-node--status {
  left: 44%;
  bottom: 11%;
}

.visual-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(236, 254, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96), rgba(5, 6, 9, 0.66), rgba(5, 6, 9, 0.34)),
    var(--band-image) center / cover no-repeat;
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 9, 0.88));
  pointer-events: none;
}

.visual-band--windy {
  min-height: 560px;
  display: grid;
  align-items: center;
}

.band-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.76fr);
  gap: 32px;
  align-items: center;
  min-height: 520px;
}

.surface-panel {
  padding: 22px;
}

.surface-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.windy-module {
  padding: 22px;
}

.windy-log {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.windy-message,
.windy-response {
  padding: 14px;
  border: 1px solid rgba(236, 254, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 6, 10, 0.66);
}

.windy-response {
  border-color: rgba(37, 244, 255, 0.24);
}

.windy-message span,
.windy-response__label {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.windy-message p,
.windy-response p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.windy-input {
  min-height: 112px;
  resize: vertical;
  padding: 12px 14px;
}

.windy-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-panel {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(236, 254, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(192, 97, 255, 0.1), transparent),
    rgba(8, 13, 21, 0.78);
}

.detail-panel p,
.detail-panel li {
  color: var(--muted);
  line-height: 1.62;
}

.detail-panel ul {
  margin: 0;
  padding-left: 18px;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(236, 254, 255, 0.13);
  border-radius: 8px;
  background: rgba(8, 13, 21, 0.72);
}

.project-row h3 {
  margin-bottom: 6px;
}

.project-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.project-row__stage {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 185, 85, 0.36);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(247, 185, 85, 0.08);
  font-size: 0.82rem;
}

.media-frame {
  min-height: 280px;
  padding: 20px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(0deg, rgba(5, 6, 9, 0.88), rgba(5, 6, 9, 0.1)),
    var(--frame-image) center / cover no-repeat;
}

.media-frame p {
  max-width: 560px;
  color: #d6e5ea;
  line-height: 1.6;
}

.layer-section {
  background:
    linear-gradient(180deg, rgba(192, 97, 255, 0.06), transparent 24%),
    linear-gradient(90deg, rgba(37, 244, 255, 0.05), transparent);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.layer-card {
  min-height: 260px;
  padding: 20px;
  border: 1px solid rgba(236, 254, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(236, 254, 255, 0.08), transparent),
    rgba(8, 13, 21, 0.82);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.layer-card span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(247, 185, 85, 0.34);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(247, 185, 85, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.layer-card h3 {
  margin: 18px 0 10px;
}

.layer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.divider {
  width: min(var(--max), calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  background: url("/assets/ui/field-divider.svg") center / contain no-repeat;
  opacity: 0.72;
}

.site-footer {
  padding: 42px 0 56px;
  border-top: 1px solid rgba(236, 254, 255, 0.12);
  background: rgba(2, 6, 10, 0.72);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .space-overlay {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    align-content: center;
  }

  .space-title,
  .space-navigator,
  .command-console--space,
  .space-dock {
    grid-column: 1;
  }

  .space-title {
    grid-row: 1;
  }

  .space-title h1 {
    font-size: 4rem;
  }

  .space-navigator {
    grid-row: 2;
    width: min(100%, 720px);
    justify-self: start;
  }

  .command-console--space {
    grid-row: 3;
  }

  .space-dock {
    grid-row: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visual-hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: center;
  }

  .visual-hero h1 {
    font-size: 4rem;
  }

  .visual-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visual-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 3.8rem;
  }

  .hero-grid,
  .band-grid,
  .cinematic-grid,
  .topology-grid {
    grid-template-columns: 1fr;
  }

  .deck-grid,
  .deck-grid--wide,
  .deck-grid--visual,
  .layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .nav-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .hero,
  .hero--sub {
    min-height: auto;
  }

  .space-hero {
    min-height: auto;
  }

  .space-overlay {
    min-height: auto;
    align-content: start;
    gap: 10px;
    padding-top: 28px;
    padding-bottom: 16px;
  }

  .space-title {
    padding-top: 8px;
  }

  .space-title h1 {
    margin-bottom: 10px;
    font-size: 2.46rem;
  }

  .space-readout {
    min-height: 88px;
    padding: 10px 0 10px 12px;
  }

  .space-readout strong {
    font-size: 1.08rem;
  }

  .space-readout p {
    font-size: 0.92rem;
  }

  .space-navigator {
    gap: 10px;
    padding: 12px;
  }

  .space-navigator__head {
    min-height: 34px;
    padding-bottom: 8px;
  }

  .space-move-grid {
    width: 136px;
    height: 110px;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(3, 34px);
  }

  .space-move-grid button {
    min-width: 40px;
    min-height: 34px;
  }

  .space-sector-list {
    grid-template-columns: repeat(6, minmax(118px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .space-sector-list button {
    min-height: 52px;
    scroll-snap-align: start;
  }

  .command-console--space,
  .space-dock {
    display: none;
  }

  .space-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .space-dock__item {
    min-height: 66px;
  }

  .hero-inner {
    padding: 72px 0 34px;
  }

  .visual-hero {
    min-height: auto;
  }

  .visual-hero__inner {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 24px;
  }

  .visual-hero h1 {
    font-size: 2.78rem;
  }

  .hero-hud-frame {
    inset: 12px;
  }

  .visual-status-line span {
    flex: 1 1 132px;
  }

  .visual-dock,
  .visual-panel-grid {
    grid-template-columns: 1fr;
  }

  .visual-dock__item {
    min-height: 70px;
    grid-template-columns: 38px minmax(0, 1fr);
    justify-items: start;
    padding: 0 16px;
  }

  .visual-panel,
  .visual-panel--large {
    grid-row: auto;
    min-height: 220px;
  }

  .section-head--visual {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .lead {
    font-size: 1rem;
  }

  .command-line,
  .metric-strip,
  .signal-rail,
  .deck-grid,
  .deck-grid--wide,
  .deck-grid--visual,
  .detail-grid,
  .project-row,
  .layer-grid {
    grid-template-columns: 1fr;
  }

  .command-submit {
    width: 100%;
  }

  .band-grid {
    min-height: auto;
    padding: 64px 0;
  }

  .topology-copy {
    min-height: auto;
  }

  .topology-stage {
    min-height: 620px;
  }

  .topology-node {
    min-width: 100px;
    min-height: 42px;
    font-size: 0.86rem;
  }

  .topology-node--core {
    left: 31%;
    top: 42%;
  }

  .topology-node--ai {
    left: 6%;
    top: 14%;
  }

  .topology-node--media {
    right: 5%;
    top: 22%;
  }

  .topology-node--storage {
    left: 7%;
    bottom: 24%;
  }

  .topology-node--home {
    right: 6%;
    bottom: 16%;
  }

  .topology-node--projects {
    left: 34%;
    top: 6%;
  }

  .topology-node--status {
    left: 35%;
    bottom: 7%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
