:root {
  --font-size-base: 1rem;
}* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scanReveal {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes packetPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes fieldDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, 8px, 0); }
}

@keyframes logoSignal {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 0, 170, 0)); }
  45% { filter: drop-shadow(0 0 14px rgba(255, 0, 170, 0.5)); }
  50% { filter: drop-shadow(8px 0 0 rgba(0, 220, 255, 0.22)); }
  55% { filter: drop-shadow(-8px 0 0 rgba(255, 0, 170, 0.22)); }
}

@keyframes deckFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(1.5deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(-0.5deg); }
}

@keyframes deckScan {
  0%, 100% { opacity: 0.25; transform: translateY(-28px); }
  50% { opacity: 1; transform: translateY(28px); }
}

@keyframes deckNodeFlash {
  0%, 100% { opacity: 0.35; }
  45%, 55% { opacity: 1; }
}

.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

.js .animate-on-scroll {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.js .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.js .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.js .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.js .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }
.js .animate-on-scroll:nth-child(7) { transition-delay: 0.6s; }
.js .animate-on-scroll:nth-child(8) { transition-delay: 0.7s; }

/* WordPress Admin Bar Offsets
   -------------------------------------------------------------------------- */
.admin-bar .nav,
.admin-bar [class*="nav"][style*="position: fixed"],
.admin-bar [class*="header"][style*="position: fixed"] {
  top: 32px;
}

@media screen and (max-width: 782px) {
.admin-bar .nav,
  .admin-bar [class*="nav"][style*="position: fixed"],
  .admin-bar [class*="header"][style*="position: fixed"] {
    top: 46px;
}
}

/* Navigation - Parent-level rules (can't scope to nav block)
   -------------------------------------------------------------------------- */
.wp-block-template-part:has(.wp-block-navigation .is-menu-open),
header:has(.wp-block-navigation .is-menu-open) {
  z-index: 100001;
  position: relative;
}

header.wp-block-template-part:has(.is-position-sticky),
header.wp-block-template-part:has([style*="position:sticky"]),
header.wp-block-template-part:has([style*="position: sticky"]) {
  display: contents;
}

footer.wp-block-template-part,
footer.wp-block-template-part > .wp-block-group {
  position: relative;
  z-index: 1;
}

[class*="site-footer"],
[class*="footer-section"] {
  margin-block-start: 0 !important;
}

/* Header Scroll Behavior
   -------------------------------------------------------------------------- */
.theme-header-transparent-until-scroll {
  transition: background-color 0.3s ease;
  z-index: 100 !important;
  &:not(.is-scrolled) {
    background-color: transparent !important;
  }

  &:not(.is-scrolled) > * {
    background-color: transparent !important;
  }
}
:where(
  input:not([type="hidden"]),
  select,
  textarea,
  summary,
  [role="button"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* FITFO theme refinements
   -------------------------------------------------------------------------- */
.site-main {
  background: #050505;
  color: #E0E0E0;
  font-family: "Azeret Mono", monospace;
  margin-block-start: 0;
}

.site-main :where(h1, h2, h3, p) {
  margin-block-start: 0;
}

.site-main :where(mark) {
  background: transparent;
  color: #FF00AA;
}

.hero-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.admin-bar .hero-header {
  top: 32px;
}

.hero-header.is-scrolled,
.hero-header:focus-within {
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(12px);
}

.hero-logo img {
  max-width: 160px;
}

.hero-logo-img img {
  width: 152px !important;
  height: auto !important;
  animation: logoSignal 7s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--wp--preset--spacing--30);
  overflow: hidden;
  isolation: isolate;
  min-height: 92vh !important;
  background:
    linear-gradient(90deg, rgba(255, 0, 170, 0.12), transparent 24%, transparent 76%, rgba(0, 220, 255, 0.14)),
    linear-gradient(180deg, #050505 0%, #020707 58%, #050505 100%) !important;
  color: #E0E0E0;
  margin-block-start: 0;
}

header.wp-block-template-part:has(.hero) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 0, 170, 0.13), transparent 25%, transparent 74%, rgba(0, 220, 255, 0.16)),
    linear-gradient(180deg, #050505 0%, #020707 58%, #050505 100%) !important;
}

header.wp-block-template-part:has(.hero)::before {
  z-index: 0 !important;
  opacity: 0.08 !important;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 6px,
      rgba(255, 255, 255, 0.16) 7px,
      transparent 8px
    ) !important;
}

header.wp-block-template-part:has(.hero)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 0, 170, 0.2), transparent 26%, transparent 72%, rgba(0, 220, 255, 0.22)),
    linear-gradient(90deg, transparent 0 45%, rgba(0, 220, 255, 0.11) 50%, transparent 56%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

header.wp-block-template-part:has(.hero) > * {
  position: relative;
  z-index: 2;
}

.wp-block-group.hero::before {
  z-index: 0 !important;
  opacity: 0.08 !important;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 6px,
      rgba(255, 255, 255, 0.16) 7px,
      transparent 8px
    ) !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 0, 170, 0.1), transparent 22%, transparent 72%, rgba(0, 220, 255, 0.14)),
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(255, 255, 255, 0.028) 12px),
    linear-gradient(90deg, transparent 0 44%, rgba(0, 220, 255, 0.08) 50%, transparent 56%);
  mix-blend-mode: screen;
  opacity: 0.84;
}

.hero > * {
  position: relative;
  z-index: 3;
}

.hero-main {
  position: relative !important;
  z-index: 20 !important;
  width: 100%;
  min-height: calc(92vh - 110px);
  padding-left: clamp(1.25rem, 4vw, 3rem) !important;
  padding-right: clamp(1.25rem, 4vw, 3rem) !important;
}

.hero-main-inner {
  position: relative;
  z-index: 21;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  width: 100% !important;
  min-width: 0;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  filter: none;
}

.hero-main-inner::before,
.hero-main-inner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-main-inner::before {
  left: -10%;
  right: -10%;
  top: 8%;
  height: 66%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 0, 170, 0.28) 18%, rgba(0, 220, 255, 0.24) 50%, transparent 78%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.055) 39px, transparent 40px),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.95;
  transform: skewY(-3deg);
}

.hero-main-inner::after {
  left: -3rem;
  right: -3rem;
  bottom: 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF00AA, #FFFFFF, #00DCFF, transparent);
  box-shadow:
    0 0 24px rgba(255, 0, 170, 0.55),
    0 0 54px rgba(0, 220, 255, 0.45);
  opacity: 0.9;
}

.hero-prompt-line,
.hero-wordmark,
.hero-subhead,
.hero-supporting,
.hero-terminal,
.hero-actions {
  grid-column: 1;
  position: relative;
  z-index: 22;
}

.hero-wordmark {
  position: relative;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(3.9rem, 6.6vw, 7.15rem) !important;
  line-height: 0.9 !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: clamp(1.2rem, 2vw, 1.8rem) !important;
  color: #FFFFFF !important;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(255, 255, 255, 0.46),
    0 0 86px rgba(255, 0, 170, 0.52),
    0 0 150px rgba(0, 220, 255, 0.34) !important;
}

.hero-wordmark mark {
  filter: drop-shadow(0 0 28px rgba(255, 0, 170, 0.88));
}

.hero-wordmark::after {
  content: "";
  position: absolute;
  left: 0.06em;
  right: -0.12em;
  bottom: -0.16em;
  height: 1px;
  background: linear-gradient(90deg, #FF00AA, #00DCFF, transparent);
  box-shadow: 0 0 24px rgba(0, 220, 255, 0.45);
}

.hero-subhead {
  color: rgba(255, 255, 255, 0.98) !important;
  max-width: 700px !important;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem) !important;
  font-weight: 700;
  line-height: 1.65;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.16);
}

.hero-supporting {
  max-width: 620px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.7;
  margin-bottom: var(--wp--preset--spacing--40);
  text-shadow: 0 0 22px rgba(0, 220, 255, 0.12);
}

.fitfo-orbit-field {
  position: absolute;
  top: clamp(5rem, 9vw, 9rem);
  right: clamp(-22rem, -16vw, -12rem);
  z-index: 0;
  width: min(58vw, 760px);
  min-width: 560px;
  pointer-events: none;
  opacity: 0.26;
  transform: rotate(-2deg);
}

.fitfo-orbit-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 24px rgba(0, 220, 255, 0.18));
}

.fitfo-map-dots {
  animation: fieldDrift 16s ease-in-out infinite;
}

.fitfo-radar-sweep {
  transform-box: fill-box;
  transform-origin: 0 0;
  animation: radarSweep 8s linear infinite;
}

.fitfo-packets > * {
  transform-box: fill-box;
  transform-origin: center;
  animation: packetPulse 2.8s ease-in-out infinite;
}

.fitfo-packets > :nth-child(2n) {
  animation-delay: 0.7s;
}

.fitfo-packets > :nth-child(3n) {
  animation-delay: 1.4s;
}

.fitfo-corners {
  animation: pulse 4s ease-in-out infinite;
}

.fitfo-command-deck {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: center;
  position: relative;
  z-index: 22;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 470px;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(0, 220, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 0, 170, 0.26), transparent 28%),
    linear-gradient(315deg, rgba(0, 220, 255, 0.32), transparent 42%),
    rgba(5, 5, 5, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 60px rgba(0, 220, 255, 0.09),
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 140px rgba(0, 220, 255, 0.42);
  backdrop-filter: blur(12px);
  animation: deckFloat 10s ease-in-out infinite;
}

.fitfo-command-deck::before,
.fitfo-command-deck::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.fitfo-command-deck::before {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background:
    linear-gradient(rgba(0, 220, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(#000, transparent 90%);
}

.fitfo-command-deck::after {
  left: 1rem;
  right: 1rem;
  top: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00DCFF, #FFFFFF, #00DCFF, transparent);
  box-shadow: 0 0 24px rgba(0, 220, 255, 0.9);
  animation: deckScan 5s ease-in-out infinite;
}

.fitfo-deck-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #66ECFF;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fitfo-deck-topline span:last-child {
  color: #FF00AA;
}

.fitfo-deck-radar {
  position: relative;
  z-index: 2;
  margin: clamp(1.25rem, 3vw, 2rem) auto 1rem;
  width: min(100%, 390px);
}

.fitfo-deck-radar svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 42px rgba(0, 220, 255, 0.54));
}

.deck-sweep-line {
  animation: deckScan 4.5s ease-in-out infinite;
}

.deck-hotspots > *,
.deck-nodes circle:last-child {
  animation: deckNodeFlash 2.8s ease-in-out infinite;
}

.deck-hotspots > :nth-child(2) { animation-delay: 0.55s; }
.deck-hotspots > :nth-child(3) { animation-delay: 1.1s; }
.deck-hotspots > :nth-child(4) { animation-delay: 1.65s; }

.fitfo-deck-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(0, 220, 255, 0.18);
  background: rgba(0, 220, 255, 0.18);
}

.fitfo-deck-grid span {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.8rem;
  background: rgba(5, 5, 5, 0.9);
}

.fitfo-deck-grid b {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fitfo-deck-grid em {
  color: #66ECFF;
  font-size: 0.72rem;
  font-style: normal;
}

.fitfo-deck-console {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.82);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fitfo-deck-console span {
  color: #66ECFF;
}

.hero-terminal {
  position: relative;
  max-width: 650px !important;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(0, 220, 255, 0.54);
  box-shadow:
    0 0 0 1px rgba(0, 220, 255, 0.34),
    0 22px 70px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(255, 0, 170, 0.16),
    inset 0 0 34px rgba(0, 220, 255, 0.09);
  background-color: rgba(2, 3, 3, 0.96) !important;
  border-color: rgba(0, 220, 255, 0.54) !important;
}

.hero-terminal-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-terminal-dots {
  display: flex;
  gap: 0.38rem;
  flex: 0 0 auto;
}

.hero-terminal-dots span {
  display: block;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #FF00AA;
  box-shadow: 0 0 14px rgba(255, 0, 170, 0.55);
}

.hero-terminal-dots span:nth-child(2) {
  background: #00DCFF;
  box-shadow: 0 0 14px rgba(0, 220, 255, 0.5);
}

.hero-terminal-dots span:nth-child(3) {
  background: #00CC66;
  box-shadow: 0 0 14px rgba(0, 204, 102, 0.5);
}

.hero-terminal-title {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.hero-terminal-body {
  padding: 1rem;
}

.hero-terminal-cmd {
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 0.8rem;
  white-space: nowrap;
}

.hero-cmd-prompt,
.hero-scan-line b,
.hero-scan-summary mark {
  color: #00DCFF;
}

.hero-scan-line {
  display: grid;
  grid-template-columns: 1.4rem 7ch minmax(0, 1fr) 4rem;
  gap: 0.7rem;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: nowrap;
  opacity: 0;
  animation: scanReveal 0.3s ease forwards;
}

.hero-scan-line:nth-of-type(2) { animation-delay: 0.85s; }
.hero-scan-line:nth-of-type(3) { animation-delay: 1.05s; }
.hero-scan-line:nth-of-type(4) { animation-delay: 1.25s; }
.hero-scan-line:nth-of-type(5) { animation-delay: 1.45s; }
.hero-scan-line:nth-of-type(6) { animation-delay: 1.65s; }

.hero-scan-line em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  text-overflow: ellipsis;
}

.hero-scan-line strong {
  color: #00CC66;
  font-weight: 700;
}

.hero-scan-line .is-warning {
  color: #FFAA00;
}

.hero-scan-summary {
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  opacity: 0;
  animation: scanReveal 0.4s ease 1.9s forwards;
}

.hero.has-custom-css .hero-prompt-line,
.hero.has-custom-css .hero-wordmark,
.hero.has-custom-css .hero-subhead,
.hero.has-custom-css .hero-supporting,
.hero.has-custom-css .hero-terminal,
.hero.has-custom-css .fitfo-command-deck,
.hero.has-custom-css .hero-actions,
.hero.has-custom-css .hero-footer {
  opacity: 1 !important;
}

.hero-terminal,
.fitfo-command-deck {
  opacity: 1 !important;
}

.hero-terminal-title,
.hero-terminal-cmd,
.hero-scan-detail,
.hero-scan-result {
  color: rgba(255, 255, 255, 0.96) !important;
}

.hero-prompt-line,
.hero-version,
.hero-tagline {
  color: rgba(255, 255, 255, 0.82) !important;
}

.hero-terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 220, 255, 0.035));
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 30;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

.hero-actions .wp-block-button__link {
  border-radius: 3px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
}

.hero-cta-primary .wp-block-button__link {
  background: #FF00AA;
  color: #050505;
  box-shadow: 0 0 34px rgba(255, 0, 170, 0.24);
}

.hero-cta-secondary .wp-block-button__link {
  background: rgba(5, 5, 5, 0.88);
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 220, 255, 0.45);
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.maps-section,
.modes-section,
.arch-section,
.risks-section,
.install-section,
.status-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-block-start: 0;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid #1C1C1C;
  color: #E0E0E0;
}

.maps-section,
.arch-section,
.install-section {
  background: #050505;
}

.modes-section,
.risks-section,
.status-section {
  background: #0A0A0A;
}

.maps-inner,
.modes-inner,
.arch-inner,
.risks-inner,
.status-inner {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.install-inner {
  width: min(100%, 720px);
  margin-inline: auto;
}

.section-label {
  color: #888888;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.label-marker {
  color: #FF00AA;
  margin-right: 0.55rem;
}

.section-title {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  max-width: 720px;
}

.title-break {
  display: block;
}

.maps-header,
.modes-inner > .section-label,
.arch-inner > .section-label,
.risks-inner > .section-label,
.install-inner > .section-label,
.status-inner > .section-label {
  margin-bottom: 0;
}

.maps-grid,
.arch-grid,
.risks-grid,
.status-grid {
  display: grid !important;
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: #1C1C1C;
  border: 1px solid #1C1C1C;
  border-radius: 6px;
  overflow: hidden;
}

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

.arch-grid,
.risks-grid,
.status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-card,
.arch-phase,
.risk-item,
.status-item {
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #0A0A0A;
}

.map-card::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.1rem;
  background: #FF00AA;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.map-icon-domain::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15 15 0 0 1 4 10 15 15 0 0 1-4 10 15 15 0 0 1-4-10A15 15 0 0 1 12 2z'/%3E%3C/svg%3E");
}

.map-icon-dns::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='6' rx='1'/%3E%3Crect x='2' y='15' width='20' height='6' rx='1'/%3E%3Cpath d='M6 6h.01M6 18h.01'/%3E%3C/svg%3E");
}

.map-icon-cdn::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
}

.map-icon-hosting::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='8' rx='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3C/svg%3E");
}

.map-icon-email::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
}

.map-icon-analytics::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 20V10M12 20V4M6 20v-6'/%3E%3C/svg%3E");
}

.map-icon-subdomain::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M16 18l6-6-6-6M8 6l-6 6 6 6'/%3E%3C/svg%3E");
}

.map-icon-redirect::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3Cpath d='M15 18l6-6-6-6'/%3E%3C/svg%3E");
}

.map-card-title,
.arch-phase h3,
.risk-item h3,
.status-item h3,
.mode-info h3 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.map-card-desc,
.arch-phase p,
.risk-item p,
.status-item p,
.mode-info p,
.modes-subhead,
.arch-subhead,
.install-note {
  color: #888888;
  font-size: 0.88rem;
  line-height: 1.65;
}

.modes-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: #1C1C1C;
  border: 1px solid #1C1C1C;
  border-radius: 6px;
  overflow: hidden;
}

.mode-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 80px;
  gap: 2rem;
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #050505;
}

.mode-cmd-wrap {
  color: #00DCFF;
  white-space: nowrap;
}

.mode-cmd-wrap span {
  color: #FF00AA;
}

.mode-cmd-wrap code {
  color: #00DCFF;
  font-family: inherit;
}

.mode-depth-bar {
  display: block;
  height: 4px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF00AA, #00DCFF);
}

.mode-depth-1 { width: 25%; }
.mode-depth-2 { width: 50%; }
.mode-depth-3 { width: 75%; }
.mode-depth-4 { width: 100%; }

.arch-phase span,
.risk-item span {
  display: block;
  color: #FF00AA;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

.install-terminal {
  display: block;
  padding: 1.25rem;
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid #1C1C1C;
  border-radius: 6px;
  background: #0A0A0A;
  color: #E0E0E0;
  line-height: 1.8;
}

.install-terminal code {
  font-family: "Azeret Mono", monospace;
}

.status-item span {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #00CC66;
  box-shadow: 0 0 18px rgba(0, 204, 102, 0.55);
}

.maps-section,
.arch-section,
.risks-section,
.status-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.maps-section::before,
.arch-section::before,
.risks-section::before,
.status-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 220, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
}

.maps-inner,
.modes-inner,
.arch-inner,
.risks-inner,
.status-inner,
.install-inner {
  position: relative;
  z-index: 1;
}

.map-card,
.arch-phase,
.risk-item,
.status-item {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.map-card:hover,
.arch-phase:hover,
.risk-item:hover,
.status-item:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 34px rgba(0, 220, 255, 0.06);
}

.section-label,
.hero-tagline,
.footer-copy {
  overflow-wrap: anywhere;
}

.section-title {
  overflow-wrap: anywhere;
}

.hero-wordmark {
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-terminal,
.install-terminal {
  width: 100%;
}

.hero-terminal-body,
.install-terminal-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hero-terminal-cmd,
.hero-scan-line,
.hero-scan-summary,
.install-line,
.mode-cmd-wrap {
  min-width: 0;
}

.maps-section,
.modes-section,
.arch-section,
.risks-section,
.install-section {
  scroll-margin-top: 96px;
}

@media (max-width: 980px) {
  .maps-grid,
  .risks-grid,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mode-row {
    grid-template-columns: 180px 1fr 64px !important;
    gap: var(--wp--preset--spacing--30) !important;
  }
}

@media (max-width: 782px) {
  .admin-bar .hero-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto !important;
  }

  .hero-header-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    gap: 1rem !important;
  }

  .hero-logo img {
    max-width: 132px;
  }

  .hero-logo-img img {
    width: 132px !important;
  }

  .fitfo-orbit-field {
    top: 6.5rem;
    right: -16rem;
    min-width: 480px;
    opacity: 0.34;
  }

  .hero-main {
    min-height: auto;
    overflow: hidden;
    padding: var(--wp--preset--spacing--50) 1rem !important;
  }

  .hero-main-inner {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
    width: 100%;
    min-width: 0;
    max-width: 100% !important;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .hero-prompt-line,
  .hero-wordmark,
  .hero-subhead,
  .hero-supporting,
  .fitfo-command-deck,
  .hero-terminal,
  .hero-actions {
    grid-column: 1;
  }

  .fitfo-command-deck {
    grid-row: auto;
    min-height: auto;
    margin: 0 0 var(--wp--preset--spacing--40);
    width: 100%;
    max-width: 100%;
    padding: 0.95rem;
    transform: none;
    animation: none;
  }

  .hero-terminal {
    order: 8;
  }

  .fitfo-deck-radar {
    width: min(100%, 330px);
  }

  .hero-wordmark {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.25rem, 11.2vw, 3rem) !important;
    line-height: 1 !important;
    letter-spacing: 0;
    transform: none;
  }

  .hero-wordmark mark {
    display: inline-block;
    margin-right: 0.08em;
  }

  .hero-subhead {
    max-width: 100% !important;
    font-size: clamp(1rem, 5vw, 1.22rem) !important;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hero-supporting {
    max-width: 20rem !important;
    font-size: 0.84rem;
    line-height: 1.55;
    overflow-wrap: normal;
  }

  .fitfo-deck-topline {
    font-size: 0.62rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .fitfo-deck-grid {
    grid-template-columns: 1fr;
  }

  .fitfo-deck-console {
    font-size: 0.68rem;
  }

  .hero-actions {
    align-items: stretch !important;
    flex-direction: column;
    gap: 1rem !important;
  }

  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .hero-footer {
    flex-direction: column;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-footer-inner {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 0.75rem !important;
  }

  .maps-section,
  .modes-section,
  .arch-section,
  .risks-section,
  .install-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .maps-grid,
  .arch-grid,
  .risks-grid,
  .status-grid {
    grid-template-columns: 1fr !important;
  }

  .maps-grid {
    display: grid !important;
  }

  .mode-row {
    grid-template-columns: 1fr !important;
    gap: var(--wp--preset--spacing--20) !important;
  }

  .mode-depth {
    height: auto !important;
    padding-top: 0 !important;
  }

.mode-depth-bar {
    width: 100% !important;
  }

  .install-line {
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    min-width: max-content;
  }

  .install-terminal {
    white-space: pre;
  }

  .section-title {
    font-size: clamp(2rem, 9vw, 3.25rem) !important;
  }
}

/* FSE component overrides
   -------------------------------------------------------------------------- */
.hero-header {
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #E0E0E0;
  font-family: "Azeret Mono", monospace;
  margin-block-start: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.theme-header-transparent-until-scroll:not(.is-scrolled) {
  background: rgba(5, 5, 5, 0.88) !important;
}

.hero-header.is-scrolled,
.hero-header:focus-within {
  background: rgba(5, 5, 5, 0.96) !important;
  backdrop-filter: blur(14px);
}

.hero-header-inner {
  width: min(100%, 1100px);
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.hero-logo {
  line-height: 0;
}

.hero-logo-img {
  margin: 0;
}

.hero-logo-img img {
  display: block;
  width: 152px !important;
  height: auto !important;
  object-fit: contain;
  animation: logoSignal 7s ease-in-out infinite;
}

.hero-nav {
  color: rgba(255, 255, 255, 0.66);
  font-family: "Azeret Mono", monospace;
  font-size: 0.88rem;
}

.hero-nav a,
.hero-nav .wp-block-navigation-item__content {
  color: inherit;
  text-decoration: none;
}

.hero-nav a:hover,
.hero-nav .wp-block-navigation-item__content:hover {
  color: #00DCFF;
}

.hero-nav .wp-block-navigation__container {
  gap: 1.5rem;
}

.hero-nav .wp-block-navigation__responsive-container-open {
  color: #00DCFF;
}

.hero-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: #050505 !important;
  color: #FFFFFF !important;
  font-size: 1.4rem;
  padding: 2rem;
}

.hero-main {
  display: flex;
  align-items: center;
}

.hero-terminal-body > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.hero-scan-line,
.hero-scan-summary {
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 1 !important;
  text-shadow: 0 0 16px rgba(0, 220, 255, 0.16);
}

.hero-scan-line + .hero-scan-line {
  margin-top: 0.15rem !important;
}

.hero-scan-line span {
  color: rgba(255, 255, 255, 0.52);
}

.hero-scan-line b {
  color: #00DCFF !important;
}

.hero-scan-line em {
  color: rgba(255, 255, 255, 0.82) !important;
}

.hero-scan-line strong {
  color: #00CC66 !important;
}

.hero-scan-line strong.is-warning {
  color: #FFAA00 !important;
}

.hero-scan-summary {
  margin-top: 0.7rem !important;
}

.hero-scan-summary mark {
  color: #FF00AA !important;
}

.hero-actions .wp-block-button {
  margin: 0;
}

.hero-cta-secondary .wp-block-button__link {
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(0, 220, 255, 0.12);
  padding: 0.72rem 1rem;
}

.site-footer {
  background: #050505;
  border-top: 1px solid #1C1C1C;
  color: #888888;
  font-family: "Azeret Mono", monospace;
  margin-block-start: 0;
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
}

.footer-inner {
  gap: 1rem;
}

.footer-left,
.footer-right {
  align-items: center;
  gap: 1rem;
}

.footer-left {
  min-width: 0;
}

.footer-right {
  justify-content: flex-end;
  min-width: 0;
}

.footer-logo-img {
  flex: 0 0 auto;
  margin: 0;
  line-height: 0;
}

.footer-logo-img img {
  display: block;
  width: 140px;
  height: auto;
}

.footer-copy,
.footer-right,
.footer-links,
.footer-copyright {
  color: #888888;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.footer-links {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.footer-links a:hover {
  color: #00DCFF;
}

.footer-copyright {
  margin: 0;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 480px) {
  .hero-terminal-bar,
  .install-terminal-bar,
  .hero-terminal-body,
  .install-terminal-body,
  .map-card,
  .mode-row,
  .arch-phase,
  .risk-item {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-scan-line {
    gap: 0.75rem !important;
  }

  .hero-scan-cat {
    min-width: 7ch !important;
  }
}
