* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* v2 design tokens (AstraCodex_Wow_Spec.md §3) */
  --bg: #050409;
  --text: #eef0fb;
  --text-dim: #9497b3;
  --accent1: #6de0ff;
  --accent2: #8b5bff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --page-bg: var(--bg);
  --logo-glow: none;
  --block-border-gradient: linear-gradient(120deg, rgba(110, 161, 255, 0.35), rgba(168, 135, 255, 0.35), rgba(154, 227, 255, 0.35));
  --header-height: 40px;
  --header-gradient: linear-gradient(90deg, rgba(12, 20, 48, 0.86), rgba(20, 36, 84, 0.86), rgba(42, 30, 96, 0.86));
  --text-strong: var(--text);
  --text-muted: rgba(233, 236, 247, 0.7);
  --border-soft: rgba(130, 155, 220, 0.28);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.22);
  --footer-bg:
    radial-gradient(circle at 16% 24%, rgba(82, 167, 255, 0.06), transparent 46%),
    radial-gradient(circle at 84% 20%, rgba(176, 138, 242, 0.05), transparent 48%),
    linear-gradient(
      122deg,
      rgba(5, 16, 64, 0.05) 0%,
      rgba(8, 46, 122, 0.055) 22%,
      rgba(22, 58, 132, 0.05) 44%,
      rgba(40, 44, 132, 0.05) 68%,
      rgba(30, 70, 150, 0.05) 84%,
      rgba(20, 54, 128, 0.05) 100%
    );
  --footer-border: rgba(128, 159, 255, 0.24);
  --footer-glow-line: linear-gradient(90deg, rgba(110, 157, 255, 0), rgba(98, 205, 255, 0.9) 26%, rgba(149, 152, 255, 0.92) 52%, rgba(162, 150, 244, 0.86) 76%, rgba(176, 164, 246, 0));
  --toggle-track: #1b1f2b;
  --toggle-border: rgba(160, 175, 220, 0.4);
  --toggle-thumb: #f7f8ff;
  --footer-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --arrow-shadow: 0 8px 18px rgba(140, 64, 160, 0.35);
  --card-sat: 1;
}

body[data-theme="light"] {
  --page-bg: #f8f9fc;
  --logo-glow: radial-gradient(circle at center, rgba(88, 145, 255, 0.54) 0%, rgba(88, 145, 255, 0.28) 44%, rgba(88, 145, 255, 0.12) 72%, rgba(88, 145, 255, 0) 94%);
  --block-border-gradient: linear-gradient(120deg, rgba(86, 140, 255, 0.325), rgba(158, 120, 255, 0.325), rgba(120, 210, 255, 0.325));
  --header-gradient: linear-gradient(90deg, rgba(48, 64, 118, 0.78), rgba(64, 88, 150, 0.78), rgba(78, 70, 132, 0.78));
  --text-strong: rgba(28, 32, 46, 0.95);
  --text-muted: rgba(52, 60, 80, 0.75);
  --border-soft: rgba(120, 135, 180, 0.35);
  --shadow-soft: 0 14px 30px rgba(60, 70, 90, 0.16);
  --footer-bg:
    radial-gradient(circle at 18% 26%, rgba(100, 174, 255, 0.06), transparent 46%),
    radial-gradient(circle at 82% 22%, rgba(179, 153, 236, 0.05), transparent 48%),
    linear-gradient(
      122deg,
      rgba(226, 238, 255, 0.05) 0%,
      rgba(198, 230, 255, 0.05) 24%,
      rgba(208, 228, 255, 0.045) 48%,
      rgba(210, 214, 255, 0.05) 72%,
      rgba(196, 234, 255, 0.045) 100%
    );
  --footer-border: rgba(112, 130, 190, 0.28);
  --footer-glow-line: linear-gradient(90deg, rgba(104, 151, 255, 0), rgba(74, 172, 255, 0.82) 30%, rgba(146, 168, 246, 0.84) 56%, rgba(164, 152, 236, 0.8) 78%, rgba(150, 158, 236, 0));
  --toggle-track: #ffffff;
  --toggle-border: rgba(140, 150, 190, 0.6);
  --toggle-thumb: #1c1f2a;
  --footer-shadow: none;
  --arrow-shadow: none;
  --card-sat: 1.35;
  --toggle-label: rgba(255, 255, 255, 0.9);
}

html {
  overflow-x: hidden;
}

body {
  background: var(--page-bg);
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-strong);
  isolation: isolate;
  overflow-x: hidden;
}

/* ---- Living background (spec §4.1): mesh nebula + cosmic web + grain ----
   All layers are fixed, z-index 0; page content sits at z-index 1. */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: drift 30s ease-in-out infinite alternate;
}

.bg-mesh .m1 {
  width: 42vw;
  height: 42vw;
  background: #3d5bdb;
  opacity: 0.16;
  top: -10%;
  left: -10%;
  animation-duration: 30s;
}

.bg-mesh .m2 {
  width: 38vw;
  height: 38vw;
  background: #8b3fe0;
  opacity: 0.14;
  top: 20%;
  right: -12%;
  animation-duration: 36s;
  animation-direction: alternate-reverse;
}

.bg-mesh .m3 {
  width: 34vw;
  height: 34vw;
  background: #1e8fc9;
  opacity: 0.12;
  bottom: -10%;
  left: 20%;
  animation-duration: 28s;
}

/* Engineering detail page uses the amber palette (spec §3) */
.engineering-page .bg-mesh .m1 {
  background: #c9793d;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4%, 6%) scale(1.1);
  }
}

#sphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.6s ease;
}

/* Static frame of the cosmic web: shown when JS is blocked or with reduced motion */
.sphere-static {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 150vmin;
  height: 150vmin;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  background: url("assets/web.png") center / contain no-repeat;
}

body.js .sphere-static {
  display: none;
}

.grain-global {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .bg-mesh span {
    filter: blur(45px);
  }

  .bg-mesh .m1 {
    width: 70vw;
    height: 70vw;
  }

  .bg-mesh .m2 {
    width: 62vw;
    height: 62vw;
  }

  .bg-mesh .m3 {
    width: 56vw;
    height: 56vw;
  }
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  width: 100%;
  min-height: 100vh;
  padding: calc(3.8vh + var(--header-height)) 6vw 6vh;
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--header-gradient);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
}

.site-header__inner {
  width: min(1200px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.site-header__menu-btn {
  width: 2.1rem;
  height: 1.75rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.24rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 0.24rem 0.36rem;
}

.site-header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(233, 236, 247, 0.95);
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.site-header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 1rem;
  min-width: 230px;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(10, 16, 36, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

.site-header__menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--block-border-gradient);
  -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.site-header__menu.is-open {
  display: flex;
}

.site-header__menu a {
  position: relative;
  z-index: 1;
  color: rgba(233, 236, 247, 0.92);
  text-decoration: none;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 0.48rem 0.56rem 0.48rem 1.3rem;
  border-radius: 6px;
}

.site-header__menu a::before {
  content: "\2192";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%) scaleX(0.82);
  transform-origin: left center;
  font-size: 0.66rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible {
  background: linear-gradient(90deg, rgba(42, 78, 152, 0.42), rgba(76, 62, 150, 0.42), rgba(58, 108, 162, 0.4));
  color: #ffffff;
}

.site-header__menu a.is-current,
.site-header__menu a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(56, 96, 176, 0.58), rgba(96, 72, 184, 0.58), rgba(70, 124, 188, 0.56));
  color: #ffffff;
}

body[data-theme="light"] .site-header__menu a:hover,
body[data-theme="light"] .site-header__menu a:focus-visible {
  background: linear-gradient(90deg, rgba(68, 102, 176, 0.42), rgba(100, 80, 182, 0.4), rgba(72, 126, 188, 0.38));
  color: #ffffff;
}

body[data-theme="light"] .site-header__menu a.is-current,
body[data-theme="light"] .site-header__menu a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(72, 108, 188, 0.65), rgba(106, 84, 194, 0.62), rgba(76, 132, 198, 0.6));
  color: #ffffff;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: relative;
}

.logo-stack::before {
  content: "";
  position: absolute;
  inset: -80px -110px -25px;
  background: var(--logo-glow);
  filter: blur(6px);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

.logo {
  width: min(120px, 50vw); /* v3 logo is square; kept compact (owner request) */
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.logo-caption {
  font-family: "Orbitron", "Michroma", sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 3.1vw, 2.2rem);
  /* static gradient, same as the hero tagline; no glow, no colour shift (owner request) */
  background: linear-gradient(90deg, rgba(183, 218, 255, 0.94), rgba(134, 186, 255, 0.92), rgba(171, 149, 255, 0.9));
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: none;
  position: relative;
  z-index: 1;
}

.logo-tagline {
  margin-top: -0.25rem;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.68rem, 1.05vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(183, 218, 255, 0.94), rgba(134, 186, 255, 0.92), rgba(171, 149, 255, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}

body[data-theme="light"] .logo-tagline {
  background: linear-gradient(90deg, rgba(62, 82, 134, 1), rgba(74, 94, 154, 1), rgba(98, 74, 154, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 1;
}

body[data-theme="light"] .logo-stack::before {
  opacity: 0.42;
  filter: blur(10px);
}

body[data-theme="light"] .logo-caption {
  background: linear-gradient(90deg, #254eac, #287fc9, #5054bf, #7a45aa, #254eac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.pixels {
  display: none;
}

.topic-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.topic-block {
  position: relative;
  width: 100%;
  display: grid;
  gap: 1.1rem;
  padding: 1.7rem 1.8rem 1.8rem;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  overflow: hidden;
}

.topic-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--block-border-gradient);
  -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}


.topic-block::after {
  content: none;
}

.topic-block__header {
  display: grid;
  gap: 1.24rem;
  text-align: left;
  position: relative;
}

.topic-block__back-link {
  position: absolute;
  right: 0.35rem;
  top: -0.02rem;
  width: 2.6rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  border: none;
  background: linear-gradient(120deg, rgba(109, 171, 255, 0.2), rgba(167, 131, 255, 0.2), rgba(120, 205, 255, 0.18));
  transition: background 0.25s ease;
}

.topic-block__back-link:hover,
.topic-block__back-link:focus-visible {
  background: linear-gradient(120deg, rgba(109, 171, 255, 0.3), rgba(167, 131, 255, 0.3), rgba(120, 205, 255, 0.28));
}

body[data-theme="light"] .topic-block__back-link {
  color: #ffffff;
  background: linear-gradient(120deg, rgba(62, 94, 176, 0.96), rgba(96, 74, 178, 0.96), rgba(66, 124, 188, 0.94));
}

body[data-theme="light"] .topic-block__back-link:hover,
body[data-theme="light"] .topic-block__back-link:focus-visible {
  background: linear-gradient(120deg, rgba(56, 88, 170, 1), rgba(88, 68, 168, 1), rgba(62, 116, 176, 1));
}

.topic-block__trigger {
  display: grid;
  width: 100%;
  gap: 0.4rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  padding-right: 3.2rem;
  cursor: pointer;
  position: relative;
}

.topic-block__trigger::before {
  content: none;
}




.home-page .topic-block--about .topic-block__header {
  position: relative;
  z-index: 1;
  padding: 0 3.2rem 0 0;
  border-bottom: 0;
}

.home-page .topic-block--about .topic-block__trigger {
  gap: 0;
}

.home-page .about-panel__index {
  display: block;
  margin-bottom: 0.45rem;
  color: #a685ff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-page .topic-block--about .topic-block__trigger .topic-block__title {
  padding-right: 0;
  padding-left: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.88rem, 1.76vw, 1.28rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.home-page .topic-block--about.is-expanded .topic-block__header {
  border-bottom: 0;
}


.home-page :is(.topic-block--vision, .topic-block--engineering, .topic-block--products) .topic-block__header {
  position: relative;
  z-index: 1;
  padding: 0 3.2rem 0 0;
  border-bottom: 0;
}

.home-page :is(.topic-block--vision, .topic-block--engineering, .topic-block--products) .topic-block__trigger {
  gap: 0;
}

.home-page .topic-panel__index {
  display: block;
  margin-bottom: 0.45rem;
  color: #a685ff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-page :is(.topic-block--vision, .topic-block--engineering, .topic-block--products) .topic-block__trigger .topic-block__title {
  padding-right: 0;
  padding-left: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.88rem, 1.76vw, 1.28rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.home-page :is(.topic-block--vision, .topic-block--engineering, .topic-block--products).is-expanded .topic-block__header {
  border-bottom: 0;
}



.topic-block__title {
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.88rem, 1.76vw, 1.28rem);
  color: var(--text-strong);
  letter-spacing: 0.05em;
}

.topic-block__subtitle {
  color: var(--text-strong);
}

.home-page .topic-block__trigger {
  gap: 1.24rem;
  padding-right: 0;
}

.home-page .topic-block__trigger .topic-block__title {
  padding-right: 3.2rem;
}

.home-page .topic-block__subtitle {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.products-subtitle {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-self: start;
}


.subpage .topic-block--subpage .topic-block__header {
  position: relative;
  z-index: 1;
  padding: 0 3.2rem 0 0;
  border-bottom: 0;
}

.subpage .topic-block--subpage .topic-panel__index {
  display: block;
  margin-bottom: 0.45rem;
  color: #a685ff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.subpage .topic-block--subpage .topic-block__title {
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.88rem, 1.76vw, 1.28rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.subpage .topic-block--subpage .topic-block__subtitle {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-self: start;
  margin-top: 0.75rem;
  padding: 0.62rem 0.82rem;
  border: 1px solid rgba(148, 174, 235, 0.28);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.1vw, 0.96rem);
  font-weight: 400;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.topic-block__body {
  position: relative;
  z-index: 1;
}


.topic-block__body .card-grid {
  margin-top: 1.2rem;
}

.products-page-split {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  gap: 1rem;
  align-items: stretch;
}


.products-page-split__icon {
  position: absolute;
  z-index: 1;
  width: 343px;
  height: 343px;
  object-fit: contain;
  top: 50%;
  right: -172px;
  transform: translateY(-50%);
  margin: 0;
  display: block;
  pointer-events: none;
}

.products-page-split__text {
  display: grid;
  gap: 1rem;
  align-content: center;
  padding-left: 1rem;
  border-left: 1px dotted var(--border-soft);
}

.products-page-split__paragraph {
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Dust particle effect */
.dust-text {
  position: relative;
  display: inline-block;
}

.dust-particle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 2px;
  background: rgba(233, 236, 247, 0.7);
  border-radius: 50%;
  box-shadow: 
    0 0 2px rgba(233, 236, 247, 0.4),
    0 0 4px rgba(233, 236, 247, 0.2);
  opacity: 0;
  pointer-events: none;
  animation: dustBlow var(--duration, 3s) ease-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes dustBlow {
  0% {
    transform: translate(0, -50%) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translate(var(--x, 100px), calc(-50% + var(--y, 0px))) scale(0.2);
    opacity: 0;
  }
}

/* Node graph animation */
.node-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.node-line {
  stroke: rgba(233, 236, 247, 0.5);
  stroke-width: 2;
  stroke-dasharray: 3, 3;
  animation: dashFlow 3s linear infinite;
}

.node-point {
  fill: rgba(233, 236, 247, 0.9);
  filter: drop-shadow(0 0 5px rgba(233, 236, 247, 0.6));
  animation: nodePulse 3s ease-in-out infinite;
}

.node-point:nth-child(odd) {
  animation-delay: 0.5s;
}

.node-pulse {
  opacity: 0.8;
  filter: drop-shadow(0 0 4px rgba(233, 236, 247, 0.8));
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -6;
  }
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Video streaming animation */
.video-stream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.video-frame-static {
  fill: rgba(233, 236, 247, 0.7);
  stroke: rgba(233, 236, 247, 0.9);
  stroke-width: 2;
}

.video-lens {
  fill: none;
  stroke: rgba(233, 236, 247, 0.9);
  stroke-width: 2;
  animation: recordingPulse 2s ease-in-out infinite;
}

.video-frame {
  fill: rgba(233, 236, 247, 0.8);
  stroke: rgba(233, 236, 247, 0.9);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px rgba(233, 236, 247, 0.5));
}

.stream-wave {
  fill: none;
  stroke: rgba(233, 236, 247, 0.7);
  stroke-width: 2;
  stroke-linecap: round;
}

.video-display {
  fill: rgba(233, 236, 247, 0.3);
  stroke: rgba(233, 236, 247, 0.9);
  stroke-width: 2;
}

.video-screen {
  fill: rgba(233, 236, 247, 0.6);
  filter: drop-shadow(0 0 3px rgba(233, 236, 247, 0.4));
}

@keyframes recordingPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Machine Learning RNN visualization */
.ml-rnn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.rnn-cell {
  fill: rgba(233, 236, 247, 0.18);
  stroke: rgba(233, 236, 247, 0.8);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(233, 236, 247, 0.45));
  animation: rnnCellPulse 3.2s ease-in-out infinite;
}

.rnn-cell:nth-of-type(2n) {
  animation-delay: 0.8s;
}

.rnn-link {
  stroke: rgba(233, 236, 247, 0.65);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 4, 5;
  animation: rnnFlowDash 2.4s linear infinite;
}

.rnn-loop {
  fill: none;
  stroke: rgba(233, 236, 247, 0.58);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 5, 5;
  animation: rnnLoopSpin 3.4s linear infinite;
}

.rnn-io {
  fill: rgba(233, 236, 247, 0.92);
  filter: drop-shadow(0 0 3px rgba(233, 236, 247, 0.55));
}

.rnn-io-link {
  stroke: rgba(233, 236, 247, 0.45);
  stroke-width: 1.3;
  stroke-linecap: round;
}

.rnn-token {
  fill: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 5px rgba(233, 236, 247, 0.8));
}

.rnn-state {
  fill: rgba(233, 236, 247, 0.9);
  filter: drop-shadow(0 0 4px rgba(233, 236, 247, 0.7));
}

@keyframes rnnCellPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes rnnFlowDash {
  to {
    stroke-dashoffset: -18;
  }
}

@keyframes rnnLoopSpin {
  to {
    stroke-dashoffset: -20;
  }
}

.ai-transformer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.tf-block {
  fill: rgba(233, 236, 247, 0.14);
  stroke: rgba(233, 236, 247, 0.62);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(170, 214, 255, 0.25));
}

.tf-block--deep {
  fill: rgba(84, 216, 255, 0.14);
  stroke: rgba(84, 216, 255, 0.55);
}

.tf-link {
  stroke: rgba(233, 236, 247, 0.5);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 3, 4;
  animation: tfFlow 2.6s linear infinite;
}

.tf-attn {
  fill: none;
  stroke: rgba(98, 188, 255, 0.7);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4, 5;
  animation: tfAttnSweep 3.6s linear infinite;
}

.tf-node {
  fill: rgba(233, 236, 247, 0.9);
  filter: drop-shadow(0 0 4px rgba(233, 236, 247, 0.62));
}

.tf-node--out {
  fill: rgba(84, 216, 255, 0.92);
  filter: drop-shadow(0 0 4px rgba(84, 216, 255, 0.7));
}

.tf-pulse {
  fill: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 6px rgba(120, 204, 255, 0.84));
}

.microservices-arch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.17;
  pointer-events: none;
  z-index: 0;
}

.ms-gateway {
  fill: rgba(84, 216, 255, 0.18);
  stroke: rgba(84, 216, 255, 0.74);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 5px rgba(84, 216, 255, 0.35));
}

.ms-service {
  fill: rgba(233, 236, 247, 0.14);
  stroke: rgba(233, 236, 247, 0.72);
  stroke-width: 1.3;
  filter: drop-shadow(0 0 4px rgba(190, 220, 255, 0.25));
}

.ms-service--db {
  fill: rgba(255, 166, 120, 0.13);
  stroke: rgba(255, 166, 120, 0.55);
}

.ms-link {
  stroke: rgba(233, 236, 247, 0.56);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 3, 4;
  animation: msLinkFlow 2.6s linear infinite;
}

.ms-link--side {
  stroke: rgba(84, 216, 255, 0.58);
}

.ms-node {
  fill: rgba(233, 236, 247, 0.9);
  filter: drop-shadow(0 0 3px rgba(233, 236, 247, 0.6));
}

.ms-packet {
  fill: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 0 6px rgba(130, 208, 255, 0.82));
}

.vision-peaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.19;
  pointer-events: none;
  z-index: 0;
}

.vp-sky {
  fill: url(#vp-sky);
  stroke: rgba(168, 222, 255, 0.26);
  stroke-width: 1.1;
}

.vp-mountain {
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.vp-mountain--far {
  fill: rgba(170, 198, 255, 0.1);
  stroke: rgba(190, 220, 255, 0.34);
}

.vp-mountain--mid {
  fill: rgba(126, 182, 255, 0.13);
  stroke: rgba(160, 210, 255, 0.42);
}

.vp-mountain--front {
  fill: rgba(92, 162, 255, 0.16);
  stroke: rgba(142, 204, 255, 0.5);
}

.vp-ridge {
  fill: none;
  stroke: rgba(198, 238, 255, 0.62);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 3, 5;
  animation: vpRidgeFlow 2.6s linear infinite;
}

.vp-peak-light {
  fill: rgba(214, 245, 255, 0.9);
  filter: drop-shadow(0 0 5px rgba(172, 232, 255, 0.82));
  animation: vpPeakBlink 3.8s ease-in-out infinite;
}

.vp-peak-light:nth-of-type(2) {
  animation-delay: 1.1s;
}

.vp-peak-light:nth-of-type(3) {
  animation-delay: 2.1s;
}

.vp-glint {
  fill: rgba(235, 250, 255, 0.95);
  filter: drop-shadow(0 0 8px rgba(188, 240, 255, 0.95));
}

.vp-glint--alt {
  fill: rgba(165, 224, 255, 0.9);
}

.goals-target {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.gt-ring {
  fill: none;
  stroke-width: 1.5;
  animation: gtRingBreath 3.6s ease-in-out infinite;
}

.gt-ring--1 {
  stroke: rgba(188, 230, 255, 0.46);
}

.gt-ring--2 {
  stroke: rgba(124, 210, 255, 0.58);
  animation-delay: 0.6s;
}

.gt-ring--3 {
  stroke: rgba(84, 216, 255, 0.72);
  animation-delay: 1.2s;
}

.gt-core {
  fill: rgba(226, 247, 255, 0.92);
  filter: drop-shadow(0 0 7px rgba(160, 232, 255, 0.92));
}

.gt-cross {
  stroke: rgba(188, 230, 255, 0.5);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 3, 5;
  animation: gtCrossSweep 2.6s linear infinite;
}

.gt-pulse {
  fill: none;
  stroke: rgba(178, 228, 255, 0.56);
  stroke-width: 1.4;
}

.gt-pulse--alt {
  stroke: rgba(108, 206, 255, 0.52);
}

.gt-hit {
  fill: rgba(228, 249, 255, 0.95);
  filter: drop-shadow(0 0 8px rgba(178, 236, 255, 0.95));
}

.gt-hit--alt {
  fill: rgba(255, 198, 146, 0.93);
  filter: drop-shadow(0 0 7px rgba(255, 198, 146, 0.84));
}

.process-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.17;
  pointer-events: none;
  z-index: 0;
}

.pf-track {
  stroke: rgba(233, 236, 247, 0.38);
  stroke-width: 2;
  stroke-linecap: round;
}

.pf-step {
  fill: rgba(233, 236, 247, 0.16);
  stroke: rgba(233, 236, 247, 0.78);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(180, 222, 255, 0.32));
  animation: pfStepPulse 4.8s ease-in-out infinite;
}

.pf-step--2 {
  animation-delay: 1.2s;
}

.pf-step--3 {
  animation-delay: 2.4s;
}

.pf-step--4 {
  animation-delay: 3.6s;
}

.pf-arrow,
.pf-arrow-head {
  fill: none;
  stroke: rgba(84, 216, 255, 0.64);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3, 4;
  animation: pfArrowFlow 2.2s linear infinite;
}

.pf-caption {
  fill: rgba(233, 236, 247, 0.22);
  animation: pfCaptionBlink 4.8s ease-in-out infinite;
}

.pf-caption:nth-of-type(2) {
  animation-delay: 1.2s;
}

.pf-caption:nth-of-type(3) {
  animation-delay: 2.4s;
}

.pf-caption:nth-of-type(4) {
  animation-delay: 3.6s;
}

.pf-token {
  fill: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 6px rgba(132, 214, 255, 0.84));
}

.pf-token--alt {
  fill: rgba(255, 186, 132, 0.9);
  filter: drop-shadow(0 0 5px rgba(255, 186, 132, 0.64));
}

.people-first-matrix {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.people-matrix {
  width: 100%;
  height: 100%;
  opacity: 0.32;
}

.pm-vignette {
  fill: rgba(12, 22, 28, 0.22);
  stroke: rgba(112, 248, 194, 0.18);
  stroke-width: 1;
}

.pm-rain {
  fill: rgba(108, 255, 182, 0.64);
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  filter: drop-shadow(0 0 6px rgba(108, 255, 182, 0.45));
}

.pm-rain--bright {
  fill: rgba(210, 255, 231, 0.88);
  filter: drop-shadow(0 0 8px rgba(146, 255, 198, 0.62));
}

.approach-word-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.awr-matrix {
  width: 100%;
  height: 100%;
  opacity: 0.32;
}

.awr-vignette {
  fill: rgba(10, 20, 30, 0.24);
  stroke: rgba(125, 203, 255, 0.2);
  stroke-width: 1;
}

.awr-rain {
  font-family: "Courier New", monospace;
  font-size: 10.6px;
  letter-spacing: 0.03em;
  text-anchor: middle;
  filter: drop-shadow(0 0 5px rgba(122, 196, 255, 0.46));
}

.awr-rain--fe {
  fill: rgba(132, 232, 255, 0.68);
}

.awr-rain--ai {
  fill: rgba(152, 255, 199, 0.72);
}

.awr-rain--ml {
  fill: rgba(206, 232, 255, 0.74);
}

.awr-rain--be {
  fill: rgba(255, 203, 160, 0.68);
}

@keyframes pfStepPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pfArrowFlow {
  to {
    stroke-dashoffset: -14;
  }
}

@keyframes pfCaptionBlink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.92;
  }
}

@keyframes msLinkFlow {
  to {
    stroke-dashoffset: -14;
  }
}

@keyframes vpRidgeFlow {
  to {
    stroke-dashoffset: -16;
  }
}

@keyframes vpPeakBlink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes gtRingBreath {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes gtCrossSweep {
  to {
    stroke-dashoffset: -16;
  }
}

@keyframes tfFlow {
  to {
    stroke-dashoffset: -14;
  }
}

@keyframes tfAttnSweep {
  to {
    stroke-dashoffset: -24;
  }
}

.about-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.space-nebula {
  fill: url(#space-nebula);
}

.space-galaxy {
  transform-origin: center;
  animation: spaceGalaxyBreathe 8s ease-in-out infinite;
}

.space-halo {
  fill: rgba(196, 216, 255, 0.08);
  filter: blur(2px);
}

.space-arms {
  transform-origin: center;
  animation: spaceRotate 32s linear infinite;
}

.space-arm {
  fill: none;
  stroke: url(#space-arm-stroke);
  stroke-width: 6.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(160, 208, 255, 0.28));
}

.space-arm--soft {
  stroke-width: 4.2;
  opacity: 0.5;
}

.space-dust {
  fill: none;
  stroke: rgba(189, 126, 94, 0.42);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-dasharray: 2, 6;
  animation: spaceDustDrift 12s linear infinite;
}

.space-core-glow {
  fill: url(#space-core-glow);
  animation: spaceGlowPulse 4.8s ease-in-out infinite;
}

.space-core {
  fill: rgba(225, 242, 255, 0.92);
  filter: drop-shadow(0 0 9px rgba(132, 208, 255, 0.72));
}

.space-orbit {
  fill: none;
  stroke: rgba(140, 206, 255, 0.36);
  stroke-width: 1.3;
  stroke-dasharray: 2, 4;
}

.space-orbit--outer {
  stroke: rgba(98, 178, 255, 0.28);
}

.space-rotor {
  transform-origin: center;
}

.space-rotor--a {
  animation: spaceRotate 9s linear infinite;
}

.space-rotor--b {
  animation: spaceRotateReverse 12s linear infinite;
}

.space-rotor--c {
  animation: spaceRotate 15s linear infinite;
}

.space-planet {
  filter: drop-shadow(0 0 5px rgba(152, 216, 255, 0.66));
}

.space-planet--a {
  fill: rgba(102, 210, 255, 0.95);
}

.space-planet--b {
  fill: rgba(255, 188, 126, 0.9);
}

.space-planet--c {
  fill: rgba(196, 217, 255, 0.92);
}

.space-star {
  fill: rgba(226, 241, 255, 0.9);
  filter: drop-shadow(0 0 3px rgba(196, 226, 255, 0.42));
  animation: spaceTwinkle 4.8s ease-in-out infinite;
}

.space-star--2,
.space-star--5,
.space-star--8,
.space-star--11,
.space-star--14 {
  animation-delay: 0.6s;
}

.space-star--3,
.space-star--7,
.space-star--10,
.space-star--12,
.space-star--15 {
  animation-delay: 1.2s;
}

.space-star--4,
.space-star--6,
.space-star--9,
.space-star--13,
.space-star--16 {
  animation-delay: 1.8s;
}

.space-spark {
  stroke: rgba(236, 246, 255, 0.78);
  stroke-width: 0.9;
  stroke-linecap: round;
  animation: spaceTwinkle 3.6s ease-in-out infinite;
}

.space-fly {
  opacity: 0;
}

.space-fly-tail {
  display: none;
}

.space-fly-head {
  fill: rgba(240, 248, 255, 0.98);
  filter: drop-shadow(0 0 5px rgba(186, 223, 255, 0.75));
}

.space-fly--near .space-fly-tail {
  stroke-width: 1.55;
  stroke: rgba(228, 244, 255, 0.78);
}

.space-fly--near .space-fly-head {
  filter: drop-shadow(0 0 8px rgba(204, 234, 255, 0.92));
}

.space-fly--mid .space-fly-tail {
  stroke-width: 1.2;
  stroke: rgba(194, 228, 255, 0.58);
}

.space-fly--mid .space-fly-head {
  filter: drop-shadow(0 0 6px rgba(170, 218, 255, 0.72));
}

.space-fly--far .space-fly-tail {
  stroke-width: 0.85;
  stroke: rgba(170, 214, 255, 0.36);
}

.space-fly--far .space-fly-head {
  filter: drop-shadow(0 0 3px rgba(154, 204, 255, 0.42));
}

.space-fly--2 .space-fly-tail {
  stroke: rgba(180, 222, 255, 0.46);
}

.space-fly--3 .space-fly-tail {
  stroke: rgba(226, 210, 255, 0.4);
}

@keyframes spaceRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spaceRotateReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes spaceGalaxyBreathe {
  0%,
  100% {
    opacity: 0.94;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spaceDustDrift {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes spaceGlowPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spaceTwinkle {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
  }
}

.team-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.team-connection {
  stroke: rgba(84, 216, 255, 0.5);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3, 4;
  animation: teamConnectionFlow 3s linear infinite;
}

.team-connection:nth-of-type(2n) {
  stroke: rgba(255, 140, 90, 0.4);
  animation-delay: 0.5s;
}

.team-connection:nth-of-type(3n) {
  stroke: rgba(98, 188, 255, 0.45);
  animation-delay: 1s;
}

.team-pulse {
  filter: drop-shadow(0 0 3px currentColor);
}

.team-avatar {
  fill: rgba(233, 236, 247, 0.12);
  stroke: rgba(233, 236, 247, 0.7);
  stroke-width: 1.5;
}

.team-head {
  fill: rgba(233, 236, 247, 0.85);
  filter: drop-shadow(0 0 2px rgba(233, 236, 247, 0.6));
}

.team-body {
  fill: none;
  stroke: rgba(233, 236, 247, 0.85);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.team-ring {
  fill: none;
  stroke: rgba(84, 216, 255, 0.6);
  stroke-width: 1.2;
}

@keyframes teamConnectionFlow {
  to {
    stroke-dashoffset: -14;
  }
}

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

.info-card {
  --card-accent-1: rgba(0, 200, 255, 0.06);
  --card-accent-2: rgba(255, 130, 70, 0.05);
  --card-base-1: rgba(24, 18, 55, 0.04);
  --card-base-2: rgba(12, 14, 38, 0.05);
  --card-glow-1: rgba(94, 210, 255, 0.28);
  --card-glow-2: rgba(164, 120, 255, 0.22);
  --card-glow-3: rgba(255, 140, 90, 0.2);
  --card-tint: rgba(12, 16, 28, 0.22);
  position: relative;
  padding: 2.1rem 2.1rem 2.4rem;
  border-radius: 18px;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 220px;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 20%, var(--card-glow-1), rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 85% 15%, var(--card-glow-2), rgba(0, 0, 0, 0) 50%),
    radial-gradient(circle at 80% 80%, var(--card-glow-3), rgba(0, 0, 0, 0) 55%),
    var(--card-tint);
  z-index: 0;
  background-size: 200% 200%;
  transition: opacity 0.35s ease;
  opacity: 0.78;
  filter: saturate(var(--card-sat));
}


.info-card__title {
  position: relative;
  z-index: 1;
  font-family: Arial, sans-serif;
  font-size: 2.05rem;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  margin-bottom: 0.8rem;
}

.info-card__text {
  position: relative;
  z-index: 1;
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-grid .info-card__title {
  font-size: 1.28rem;
}

.card-grid .info-card__text {
  font-size: 0.79rem;
}

.card-grid .info-card {
  display: flex;
  flex-direction: column;
}

.card-grid .info-card__more {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0.65rem;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.card-grid .info-card__more:hover,
.card-grid .info-card__more:focus-visible {
  color: rgba(188, 230, 255, 0.95);
}

.home-page .card-grid .info-card__more {
  text-decoration-style: dotted;
  text-underline-offset: 0.16em;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 720px) {
  .topic-block__title {
    font-size: 1.12rem;
    line-height: 1.28;
  }

  .topic-block__subtitle {
    display: block;
    font-size: 0.92rem;
    line-height: 1.34;
  }


  .topic-block__trigger {
    padding-right: 2.5rem;
  }

  .home-page .topic-block__trigger {
    padding-right: 0;
  }

  .home-page .topic-block__trigger .topic-block__title {
    padding-right: 2.5rem;
  }


  .products-page-split {
    grid-template-columns: 1fr;
  }

  .products-page-split__text {
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px dotted var(--border-soft);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: auto;
  }
}



.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.3rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.8rem;
  row-gap: 1rem;
  align-items: start;
}

.site-footer__group {
  display: grid;
  align-content: start;
  justify-items: start;
  text-align: left;
  gap: 0.45rem;
  margin-inline: auto;
  max-width: 16rem;
}

.site-footer__heading {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 0.25rem;
}

.site-footer__link {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
  justify-self: start;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.site-footer__social-icon {
  width: 0.7rem;
  height: 0.7rem;
  display: inline-flex;
  opacity: 0.92;
}

.site-footer__social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer__mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.site-footer__mail-icon {
  width: 0.68rem;
  height: 0.68rem;
  display: inline-flex;
  opacity: 0.9;
}

.site-footer__mail-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer__contact,
.site-footer__contact-label {
  font-family: Arial, sans-serif;
  font-size: 0.64rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.site-footer__contact {
  max-width: 28ch;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.site-footer__contact-label {
  color: var(--text-strong);
  margin-top: 0.2rem;
}


.site-footer__copy {
  padding-top: 1rem;
  border-top: 1px solid var(--footer-border);
  font-family: Arial, sans-serif;
  font-size: 0.64rem;
  color: var(--text-muted);
  text-align: center;
}

.legal-page {
  background: var(--page-bg);
  color: var(--text-strong);
  min-height: 100vh;
}

.legal-wrap {
  width: min(1000px, 92vw);
  margin: 8vh auto 10vh;
  padding: 2.6rem 2.8rem;
  border-radius: 18px;
  background: rgba(8, 12, 24, 0.45);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.legal-page > .site-footer {
  width: min(1000px, 92vw);
}

.legal-wrap h1 {
  font-family: "Orbitron", "Michroma", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 1rem;
}

.legal-wrap h2 {
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  margin: 1.6rem 0 0.6rem;
}

.legal-wrap h3 {
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--text-strong);
  margin: 1.2rem 0 0.4rem;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-wrap ul {
  margin: 0.6rem 0 0.8rem 1.2rem;
}

.legal-wrap hr {
  border: 0;
  height: 1px;
  background: var(--border-soft);
  margin: 2rem 0;
}

.legal-wrap a {
  color: inherit;
  text-decoration: underline;
}

.legal-footer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legal-footer__links {
  margin-bottom: 0.4rem;
}

@media (max-width: 720px) {
  .legal-wrap {
    padding: 2rem 1.6rem;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: fixed;
  top: calc(var(--header-height) + 12px);
  right: 22px;
  z-index: 50;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  visibility: visible;
}

.home-page .theme-toggle {
  top: calc(var(--header-height) + 12px);
}

.theme-toggle__label {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--toggle-label, var(--text-muted));
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.theme-switch__track {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--toggle-track);
  border: 1px solid var(--toggle-border);
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.25);
}

.theme-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.theme-switch input:checked + .theme-switch__track .theme-switch__thumb {
  transform: translateX(12px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pixels span {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 2px;
  border-radius: 1px;
  opacity: 0;
  animation: pixelRise 2.8s linear infinite;
}

.pixels span:nth-child(1) {
  left: 8%;
  background: #e8e2ff;
  animation-delay: 0.1s;
}

.pixels span:nth-child(2) {
  left: 18%;
  background: #a8c8ff;
  animation-delay: 0.6s;
}

.pixels span:nth-child(3) {
  left: 28%;
  background: #7fc7ff;
  animation-delay: 1.2s;
}

.pixels span:nth-child(4) {
  left: 38%;
  background: #4f7bff;
  animation-delay: 1.8s;
}

.pixels span:nth-child(5) {
  left: 48%;
  background: #7fc7ff;
  animation-delay: 0.9s;
}

.pixels span:nth-child(6) {
  left: 58%;
  background: #6f92ff;
  animation-delay: 1.4s;
}

.pixels span:nth-child(7) {
  left: 68%;
  background: #a86bff;
  animation-delay: 0.3s;
}

.pixels span:nth-child(8) {
  left: 78%;
  background: #c48fff;
  animation-delay: 1.1s;
}

.pixels span:nth-child(9) {
  left: 88%;
  background: #e8e2ff;
  animation-delay: 2s;
}

.pixels span:nth-child(10) {
  left: 95%;
  background: #7fc7ff;
  animation-delay: 2.4s;
}

@keyframes chromaShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pixelRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) scale(0.4);
    opacity: 0;
  }
}



@media (max-width: 720px) {
  .logo-wrap {
    padding-top: calc(3vh + var(--header-height));
  }

  .logo {
    width: min(100px, 36vw); /* 25% smaller on phones (owner request) */
  }

  .site-footer {
    padding: 1.4rem 1.2rem;
  }

  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.9rem;
  }

  .site-footer__heading {
    font-size: 0.56rem;
  }

  .site-footer__link,
  .site-footer__copy {
    font-size: 0.54rem;
  }

  .site-footer__contact,
  .site-footer__contact-label {
    font-size: 0.54rem;
    line-height: 1.35;
  }

  .site-footer__social-icon {
    width: 0.58rem;
    height: 0.58rem;
  }

  .site-footer__mail-icon {
    width: 0.56rem;
    height: 0.56rem;
  }

  .info-panel {
    grid-template-columns: 1fr;
    padding: 2.2rem 2rem;
  }
}

/* =====================================================================
   v2 "wow" redesign — design layer
   Source: AstraCodex_Wow_Spec.md + astracodex-wow-combined-en_1.html
   Prototype → site class map:
     .section → .topic-block   .sec-head → .topic-block__trigger
     .sec-body > .inner → .topic-block__body > .card-grid
     .card / .illus → .info-card   .detail → .products-page-split
     .footer-card → .site-footer   .pill → .topic-block__subtitle
   ===================================================================== */

/* ---- 1. Section wrapper: glass card (spec §4.2) ---- */
.topic-block,
.home-page .topic-block,
.subpage .topic-block--subpage {
  gap: 0.9rem;
  padding: 30px 36px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

/* Spotlight border + soft inner glow following the cursor (spec §4.2).
   The base .topic-block::before rule already applies the 1px double-mask. */
.topic-block::before {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(120, 180, 255, 0.5), transparent 60%);
}

.topic-block::after {
  content: none;
}

.home-page .topic-block__header,
.home-page .topic-block--about .topic-block__header,
.home-page :is(.topic-block--vision, .topic-block--engineering, .topic-block--products) .topic-block__header,
.subpage .topic-block--subpage .topic-block__header {
  padding: 0;
}

.home-page .about-panel__index,
.home-page .topic-panel__index,
.subpage .topic-block--subpage .topic-panel__index {
  margin-bottom: 8px;
  color: var(--accent1);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.topic-block__title,
.home-page .topic-block__trigger .topic-block__title,
.subpage .topic-block--subpage .topic-block__title {
  font-size: clamp(1.15rem, 2.2vw, 1.625rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.home-page .topic-block__subtitle,
.subpage .topic-block--subpage .topic-block__subtitle {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  color: #d6d8ee;
  font-size: 13.5px;
  line-height: 1.4;
  overflow: visible;
  justify-self: start;
}

/* Header→cards spacing lives inside the collapsible grid item (a pseudo row),
   so a collapsed section really is 0px tall. 8px + the 1rem grid gap = 24px. */
.home-page .topic-block__body .card-grid {
  margin-top: 0;
  padding-top: 0;
}

.home-page .topic-block__body .card-grid::before {
  content: "";
  grid-column: 1 / -1;
  height: 8px;
}

/* ---- 2. Mini-cards: base tint + hover border (spec §4.3) ---- */
.info-card,
.card-grid .info-card,
.products-page-split .info-card {
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: #0c1218;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: 180px;
  opacity: 1;
  transition: border-color 0.25s ease;
}

.info-card::after {
  content: none;
}

/* Cursor light on cards is switched off (owner decision): cards only lift
   their border colour on hover. */
.info-card::before {
  content: none;
}

.card-grid .info-card:nth-child(3n + 1),
.topic-block__body > .products-page-split:nth-child(3n + 1) .info-card {
  background: radial-gradient(120% 100% at 20% 0%, rgba(58, 120, 170, 0.3), transparent 55%), #0c1218;
}

.card-grid .info-card:nth-child(3n + 2),
.topic-block__body > .products-page-split:nth-child(3n + 2) .info-card {
  background: radial-gradient(120% 100% at 20% 0%, rgba(130, 80, 190, 0.28), transparent 55%), #12101c;
}

.card-grid .info-card:nth-child(3n),
.topic-block__body > .products-page-split:nth-child(3n) .info-card {
  background: radial-gradient(120% 100% at 80% 100%, rgba(190, 120, 70, 0.28), transparent 55%), #161210;
}

.info-card:hover,
.info-card:focus-within {
  border-color: rgba(140, 180, 255, 0.3);
}

.card-grid .info-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-grid .info-card__text {
  font-size: 13px;
  line-height: 1.55;
  color: #b9bcd6;
  margin-bottom: 16px;
}

.card-grid .info-card__more,
.home-page .card-grid .info-card__more {
  display: inline-block;
  width: max-content;
  padding-top: 0;
  font-size: 13px;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.card-grid .info-card__more:hover,
.card-grid .info-card__more:focus-visible {
  color: #ffffff;
}

.info-card__arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.info-card:hover .info-card__arrow,
.info-card__more:focus-visible .info-card__arrow {
  transform: translateX(4px);
}

/* ---- 3. Footer: glass card (spec §9) ---- */
.site-footer {
  width: min(1200px, 100%);
  margin: 0 auto 4vh;
  padding: 38px 36px 28px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(120, 180, 255, 0.45), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.site-footer::after {
  content: none;
}

.site-footer__grid {
  gap: 28px;
}

.site-footer__group {
  gap: 11px;
  margin-inline: 0;
  max-width: none;
}

.site-footer__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.site-footer__link,
.site-footer__contact,
.site-footer__contact-label {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: #d6d8ee;
  line-height: 1.4;
}

.site-footer__contact-label {
  color: var(--text-dim);
}

.site-footer__link {
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transition: right 0.25s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: #ffffff;
  transform: none;
}

.site-footer__link:hover::after,
.site-footer__link:focus-visible::after {
  right: 0;
}

.site-footer__social-link::after {
  display: none;
}

.site-footer__social-link {
  gap: 8px;
}

.site-footer__social-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer__social-icon svg {
  width: 15px;
  height: 15px;
}

.site-footer__social-link:hover .site-footer__social-icon,
.site-footer__social-link:focus-visible .site-footer__social-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(140, 180, 255, 0.35);
  transform: translateY(-2px);
}

.site-footer__mail-icon {
  width: 14px;
  height: 14px;
}

.site-footer__copy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: left;
}

/* Small AstraCodex mark next to the copyright (uses the existing footer logo asset) */
.site-footer__copy::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 16px;
  background: url("img/logo_footer.png") center / contain no-repeat;
}

@media (max-width: 720px) {
  .site-footer {
    padding: 28px 22px 22px;
  }

  .site-footer__heading {
    font-size: 11px;
  }

  .site-footer__link,
  .site-footer__contact,
  .site-footer__contact-label,
  .site-footer__copy {
    font-size: 13px;
  }

  .site-footer__social-icon {
    width: 34px;
    height: 34px;
  }

  .site-footer__mail-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 640px) {
  .topic-block,
  .home-page .topic-block,
  .subpage .topic-block--subpage {
    padding: 24px 22px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

/* Legal pages: content and footer are direct children of <body>, keep them above the background layers */
.legal-wrap,
.legal-page > .site-footer {
  position: relative;
  z-index: 1;
}

/* ---- 4. Home accordion: grid-row expand, chevron, card cascade (spec §10) ----
   Hidden state only exists when JS runs (html.has-js), so without JS every
   section is expanded and readable. Existing toggle logic in script.js is kept. */
.home-page .topic-block {
  gap: 0;
}

.has-js .home-page .topic-block__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.has-js .home-page .topic-block.is-expanded .topic-block__body {
  grid-template-rows: 1fr;
}

.home-page .topic-block__body > .card-grid {
  overflow: hidden;
  min-height: 0;
}

.home-page .topic-block__trigger::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dfe1f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.45s var(--ease), background-color 0.2s ease, border-color 0.2s ease;
}

.home-page .topic-block__trigger:hover::after {
  background-color: rgba(255, 255, 255, 0.09);
}

.home-page .topic-block.is-expanded .topic-block__trigger::after {
  transform: rotate(180deg);
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(140, 180, 255, 0.35);
}

.topic-block__trigger:focus-visible {
  outline: 2px solid rgba(120, 180, 255, 0.6);
  outline-offset: 6px;
  border-radius: 8px;
}

.has-js .home-page .card-grid .info-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.25s ease;
}

.has-js .home-page .topic-block.is-expanded .card-grid .info-card {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.12s + var(--i, 0) * 0.06s), calc(0.12s + var(--i, 0) * 0.06s), 0s;
}

.card-grid .info-card:nth-child(1) { --i: 0; }
.card-grid .info-card:nth-child(2) { --i: 1; }
.card-grid .info-card:nth-child(3) { --i: 2; }

/* ---- 5. Scroll reveal (spec §6): .reveal is added by JS only ---- */
.topic-block,
.products-page-split {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.products-page-split.reveal {
  transform: translateY(16px);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .home-page .topic-block__trigger::after {
    width: 32px;
    height: 32px;
  }
}

/* ---- 6. Detail pages (spec §4.4): round back button, dashed rows, illus cards ---- */
.subpage .topic-block--subpage .topic-block__header {
  padding-right: 56px;
}

.topic-block__back-link,
body[data-theme="dark"] .topic-block__back-link {
  right: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dfe1f5;
  font-size: 16px;
  box-shadow: none;
  text-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topic-block__back-link:hover,
.topic-block__back-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(140, 180, 255, 0.35);
  transform: translateX(-2px);
}

.subpage .topic-block__body {
  margin-top: 14px;
}

.products-page-split,
.products-page-split + .products-page-split {
  margin-top: 0;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  padding: 24px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.topic-block__body > .products-page-split:first-child {
  border-top: none;
  padding-top: 0;
}

.topic-block__body > .products-page-split:last-child {
  padding-bottom: 0;
}

.products-page-split .info-card {
  min-height: 200px;
  padding: 20px;
}

.products-page-split .info-card__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 14px;
}

.products-page-split .info-card:hover,
.products-page-split .info-card:focus-within {
  border-color: rgba(255, 190, 140, 0.3);
}

.products-page-split__text {
  gap: 14px;
  padding: 4px 0 4px 30px;
  border-left: none;
}

.products-page-split__paragraph {
  font-size: 14.5px;
  line-height: 1.65;
  color: #c7c9de;
}

@media (max-width: 720px) {
  .products-page-split,
  .products-page-split + .products-page-split {
    grid-template-columns: 1fr;
  }

  .products-page-split__text {
    padding: 18px 0 0;
    border-top: none;
  }

  .subpage .topic-block--subpage .topic-block__header {
    padding-right: 48px;
  }
}

/* ---- 7. Reduced motion (spec §6): everything static and visible ----
   Scoped to the v2 effects so the logo caption and the mini-card SVG
   animations keep their own existing behaviour. */
@media (prefers-reduced-motion: reduce) {
  .bg-mesh span,
  .topic-block,
  .topic-block::before,
  .topic-block::after,
  .topic-block__body,
  .topic-block__trigger::after,
  .topic-block__back-link,
  .products-page-split,
  .info-card,
  .info-card::before,
  .info-card__arrow,
  .site-footer::before,
  .site-footer__link,
  .site-footer__link::after,
  .site-footer__social-icon {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal * {
    opacity: 1 !important;
    transform: none !important;
  }

  .has-js .home-page .card-grid .info-card {
    transition: none !important;
  }
}

/* ---- 8. Legal pages (privacy, terms): same glass card + spotlight border ---- */
.legal-wrap {
  position: relative;
  width: min(1200px, 100%);
  margin: calc(4vh + var(--header-height)) auto 2rem;
  padding: 30px 36px 36px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

.legal-page {
  padding: 0 6vw;
}

.legal-page > .site-footer {
  width: min(1200px, 100%);
}

.legal-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(120, 180, 255, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.legal-wrap > * {
  position: relative;
  z-index: 1;
}

.legal-wrap h1 {
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.625rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 18px;
}

.legal-wrap h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  margin: 28px 0 10px;
}

.legal-wrap h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 6px;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 14.5px;
  line-height: 1.65;
  color: #c7c9de;
}

.legal-wrap strong {
  color: var(--text);
  font-weight: 600;
}

.legal-wrap hr {
  background: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

.legal-wrap a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.legal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .legal-wrap {
    padding: 24px 22px 28px;
  }
}

/* Home-page sections: iOS-style frosted glass (owner request) —
   light white tint, backdrop blur, brighter edge and a soft top highlight */
.home-page .topic-block {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

/* ---- Logo reflection: a small canvas over the logo, masked to the logo
   shape, that mirrors the cosmic web passing behind it (fed by cosmic-web.js) ---- */
.logo-stack > a {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.logo-reflect {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(4px) saturate(160%);
  opacity: 0.9;
}
