@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/nunito-400.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/nunito-600.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-700.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-800.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/nunito-900.ttf") format("truetype");
}

:root {
  --accent-blue: #3458dc;
  --accent-blue-strong: #233fba;
  --neon-green: #7eff52;
  --neon-green-strong: #62e645;
  --coral: #ff7a59;
  --gold: #f2b84b;
  --bg: #080a0f;
  --bg-soft: #10151f;
  --panel: rgba(18, 24, 35, 0.82);
  --panel-2: rgba(24, 32, 47, 0.92);
  --panel-hover: rgba(34, 45, 66, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(126, 255, 82, 0.34);
  --text: #f3f6fb;
  --muted: #aeb9c9;
  --white: #ffffff;
  --nav-width: 112px;
  --radius: 8px;
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.35);
  --topbar-height: 92px;
  --topbar-logo-height: 72px;
  --bottombar-height: 44px;
  --hero-canvas-fill: rgba(3, 7, 14, 0.10);
  --hero-particle-alpha-base: 0.58;
  --hero-particle-alpha-pulse: 0.14;
  --hero-particle-link-strength: 0.58;
  --hero-particle-shadow-alpha: 0.48;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Avenir Next", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(52, 88, 220, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 18%, rgba(126, 255, 82, 0.10), transparent 26rem),
    linear-gradient(135deg, #080a0f 0%, #0e1420 48%, #111318 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-height);
  background: rgba(8, 10, 15, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 22px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  height: var(--topbar-logo-height);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.24));
}

.home-page .topbar-inner {
  justify-content: flex-end;
}

.home-page .brand {
  display: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.tb-btn,
.lang-control,
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tb-btn,
.lang-control {
  padding: 0 12px;
}

.tb-btn {
  width: 42px;
  padding: 0;
}

.tb-btn span:not(#themeText),
#themeText {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tb-btn:hover,
.lang-control:hover,
.mobile-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(126, 255, 82, 0.34);
}

.tb-btn svg,
.lang-control svg {
  width: 18px;
  height: 18px;
  color: var(--neon-green);
  flex: 0 0 auto;
}

.searchbar {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 220ms ease, opacity 180ms ease;
}

.searchbar.open {
  width: min(320px, 28vw);
  opacity: 1;
}

.searchbar input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.searchbar input:focus,
input:focus,
textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 4px rgba(126, 255, 82, 0.12);
}

.search-results {
  position: fixed;
  top: calc(var(--topbar-height) + 10px);
  left: calc(var(--nav-width) + 24px);
  right: 24px;
  z-index: 50;
  display: none;
  max-height: min(54vh, 520px);
  overflow: auto;
  background: rgba(11, 15, 23, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.search-results.open { display: block; }
.search-results .item { padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.search-results .item:hover { background: rgba(255, 255, 255, 0.06); }
.search-results .item:last-child { border-bottom: 0; }
.search-results .item-title { color: var(--white); font-weight: 750; margin-bottom: 4px; }
.search-results .item-snippet { color: var(--muted); font-size: 13px; line-height: 1.45; }
.search-results .highlight { color: var(--neon-green); font-weight: 750; }

.lang-menu {
  position: absolute;
  top: 68px;
  right: 22px;
  display: none;
  min-width: 180px;
  padding: 6px;
  background: rgba(11, 15, 23, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.lang-menu.open { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover { background: rgba(255, 255, 255, 0.08); }

/* Left portal navigation */
.sidenav {
  position: fixed;
  top: var(--topbar-height);
  bottom: var(--bottombar-height);
  left: 0;
  z-index: 30;
  width: var(--nav-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  background: rgba(8, 10, 15, 0.52);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-items {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 9px;
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-item:hover {
  transform: translateX(2px);
  color: var(--text);
  border-color: rgba(126, 255, 82, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.nav-item.active {
  color: var(--white);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -13px;
  width: 4px;
  height: 44px;
  border-radius: 999px;
  background: var(--neon-green);
}

.nav-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(35%) sepia(80%) saturate(2659%) hue-rotate(221deg) brightness(89%) contrast(95%) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.24));
}

.nav-caption {
  display: block;
  max-width: 86px;
  color: var(--white);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.08;
  text-align: center;
}

.mobile-toggle {
  position: fixed;
  top: calc(var(--topbar-height) + 12px);
  left: 12px;
  z-index: 60;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
}

main {
  min-height: calc(100vh - var(--topbar-height));
  margin-left: var(--nav-width);
  padding-bottom: calc(var(--bottombar-height) + 36px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 364px;
  display: grid;
  align-items: end;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.slideshow-wrapper {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.slideshow-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.86) 0%, rgba(8, 10, 15, 0.56) 48%, rgba(8, 10, 15, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 10, 15, 0.88) 0%, transparent 48%);
  pointer-events: none;
}

.slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 35%, rgba(52, 88, 220, 0.36), transparent 34%),
    radial-gradient(circle at 28% 72%, rgba(126, 255, 82, 0.12), transparent 26%),
    linear-gradient(116deg, rgba(4, 7, 14, 0.98) 0%, rgba(8, 18, 42, 0.96) 42%, rgba(3, 12, 22, 0.98) 100%);
}

.slideshow::before,
.slideshow::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  will-change: transform, background-position;
}

.slideshow::before {
  opacity: 0.98;
  background:
    radial-gradient(ellipse at 18% 48%, rgba(126, 255, 82, 0.26), transparent 34%),
    radial-gradient(ellipse at 72% 32%, rgba(52, 88, 220, 0.78), transparent 38%),
    conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(52, 88, 220, 0.70) 70deg, rgba(126, 255, 82, 0.22) 132deg, transparent 220deg),
    linear-gradient(108deg, transparent 0 24%, rgba(52, 88, 220, 0.72) 40%, transparent 58%);
  background-size: 90% 90%, 82% 82%, 118% 118%, 102% 102%;
  filter: saturate(1.26) blur(0.2px);
  animation: ix-electric-dream 18s ease-in-out infinite alternate;
}

.slideshow::after {
  opacity: 0.46;
  background:
    radial-gradient(circle at 54% 44%, rgba(126, 255, 82, 0.16), transparent 18%),
    radial-gradient(circle at 68% 34%, rgba(52, 88, 220, 0.32), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(6, 10, 18, 0.76) 84%);
  background-size: 74% 74%, 82% 82%, 100% 100%;
  mix-blend-mode: screen;
  animation: ix-neon-circuit 28s linear infinite;
}

.ix-particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  mix-blend-mode: screen;
  pointer-events: none;
}

.slideshow[data-folder="consulting"]::before {
  background:
    radial-gradient(ellipse at 24% 52%, rgba(126, 255, 82, 0.28), transparent 36%),
    radial-gradient(ellipse at 70% 36%, rgba(52, 88, 220, 0.80), transparent 40%),
    conic-gradient(from 220deg at 52% 50%, transparent 0deg, rgba(52, 88, 220, 0.72) 72deg, rgba(126, 255, 82, 0.22) 138deg, transparent 222deg),
    linear-gradient(112deg, transparent 0 24%, rgba(52, 88, 220, 0.72) 42%, transparent 60%);
}

.slideshow[data-folder="models"]::before {
  background:
    radial-gradient(ellipse at 18% 38%, rgba(126, 255, 82, 0.22), transparent 34%),
    radial-gradient(ellipse at 76% 42%, rgba(52, 88, 220, 0.82), transparent 42%),
    conic-gradient(from 196deg at 50% 48%, transparent 0deg, rgba(52, 88, 220, 0.72) 82deg, rgba(126, 255, 82, 0.18) 146deg, transparent 226deg),
    linear-gradient(96deg, transparent 0 22%, rgba(52, 88, 220, 0.76) 39%, transparent 58%);
}

.slideshow[data-folder="knowledge"]::before,
.slideshow[data-folder="about"]::before {
  background:
    radial-gradient(ellipse at 22% 48%, rgba(126, 255, 82, 0.24), transparent 34%),
    radial-gradient(ellipse at 66% 30%, rgba(52, 88, 220, 0.74), transparent 40%),
    conic-gradient(from 230deg at 48% 50%, transparent 0deg, rgba(52, 88, 220, 0.68) 76deg, rgba(126, 255, 82, 0.20) 140deg, transparent 226deg),
    linear-gradient(128deg, transparent 0 24%, rgba(52, 88, 220, 0.68) 42%, transparent 62%);
}

.slideshow[data-folder="contact"]::before {
  background:
    radial-gradient(ellipse at 20% 54%, rgba(126, 255, 82, 0.32), transparent 36%),
    radial-gradient(ellipse at 72% 36%, rgba(52, 88, 220, 0.70), transparent 40%),
    conic-gradient(from 206deg at 50% 50%, transparent 0deg, rgba(52, 88, 220, 0.66) 74deg, rgba(126, 255, 82, 0.24) 142deg, transparent 224deg),
    linear-gradient(100deg, transparent 0 22%, rgba(52, 88, 220, 0.62) 42%, transparent 64%);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out, transform 8s ease;
  transform: scale(1.02);
}

.slide.active {
  opacity: 1;
  transform: scale(1.06);
}

.slide img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

@keyframes ix-electric-dream {
  0% {
    transform: translate3d(-2.2%, -1.2%, 0) scale(1.035) rotate(-1deg);
    background-position: 0% 48%, 100% 34%, 50% 50%, 0% 42%;
    filter: saturate(1.16) brightness(0.98);
  }
  48% {
    transform: translate3d(1.2%, -0.2%, 0) scale(1.06) rotate(0.4deg);
    background-position: 38% 44%, 62% 58%, 54% 48%, 44% 50%;
    filter: saturate(1.42) brightness(1.08);
  }
  100% {
    transform: translate3d(2.4%, 1.4%, 0) scale(1.07) rotate(1.1deg);
    background-position: 76% 56%, 18% 62%, 58% 52%, 78% 54%;
    filter: saturate(1.24) brightness(1.02);
  }
}

@keyframes ix-neon-circuit {
  0% {
    transform: translate3d(0, 0, 0) scale(1.01);
    background-position: 0 0, 0 0, 54% 44%, 0 0;
    opacity: 0.58;
  }
  50% {
    transform: translate3d(-1.2%, 0.8%, 0) scale(1.02);
    background-position: 82px 54px, -64px 76px, 48% 50%, 0 0;
    opacity: 0.82;
  }
  100% {
    transform: translate3d(-2.2%, 1.8%, 0) scale(1.012);
    background-position: 164px 108px, -128px 152px, 58% 42%, 0 0;
    opacity: 0.64;
  }
}

@keyframes ix-neon-circuit-light {
  0% {
    transform: translate3d(0, 0, 0) scale(1.01);
    background-position: 0 0, 0 0, 54% 44%, 0 0;
    opacity: 0.24;
  }
  50% {
    transform: translate3d(-1.2%, 0.8%, 0) scale(1.02);
    background-position: 82px 54px, -64px 76px, 48% 50%, 0 0;
    opacity: 0.38;
  }
  100% {
    transform: translate3d(-2.2%, 1.8%, 0) scale(1.012);
    background-position: 164px 108px, -128px 152px, 58% 42%, 0 0;
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow::before,
  .slideshow::after {
    animation: none;
  }
}

.title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0;
}

.title h1 {
  max-width: 920px;
  margin: 0;
  color: var(--white);
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 820;
  overflow-wrap: break-word;
}

.title h1 strong {
  color: var(--neon-green);
}

.home-hero-title {
  display: grid;
  justify-items: end;
  gap: 12px;
  width: min(100%, 900px);
}

.home-hero-logo {
  display: block;
  width: min(46vw, 460px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 18px 36px rgba(4, 8, 20, 0.38));
}

.home-hero-title span {
  display: block;
  max-width: 820px;
  color: var(--white);
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.08;
  text-align: right;
}

.lead-brand {
  color: var(--white);
  font-weight: 820;
}

.home-tagline {
  display: block;
  margin-bottom: 8px;
  color: #9cb0ff;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-lead-text {
  display: block;
}

#home .title {
  align-items: flex-end;
  text-align: right;
}

#home .title p {
  max-width: 780px;
  margin-left: auto;
}

.title p {
  max-width: 720px;
  margin: 0;
  color: #dce4ef;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.about-hero {
  min-height: 434px;
  align-items: start;
}

.about-hero .title {
  width: min(440px, calc(100% - 48px));
  max-width: none;
  margin-right: max(24px, calc((100% - 1160px) / 2));
  margin-left: auto;
  margin-top: 96px;
  align-items: flex-end;
  text-align: right;
}

.contact-hero {
  min-height: 650px;
  align-items: start;
  align-content: start;
  gap: 24px;
  padding: 74px 0 38px;
}

.contact-hero .title,
.contact-hero-panel {
  width: min(100% - 48px, 1160px);
  margin-right: auto;
  margin-left: auto;
}

.contact-hero .title {
  max-width: none;
}

.contact-hero-panel {
  position: relative;
  z-index: 2;
}

.contact-hero .contact-card {
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.84), rgba(9, 16, 30, 0.78));
  border-color: rgba(111, 145, 255, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.team-montage {
  position: absolute;
  left: max(24px, calc((100% - 1160px) / 2));
  right: auto;
  bottom: 56px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 32px;
  pointer-events: none;
}

.team-person {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(15.75vw, 174px);
}

.team-person-left {
  position: relative;
  bottom: 0;
}

.team-person-center {
  position: relative;
  bottom: 74px;
  transform: none;
  width: min(15.15vw, 168px);
}

.team-person-right {
  position: relative;
  bottom: 8px;
}

.team-photo-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: end center;
  overflow: visible;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.42));
}

.team-photo-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.team-photo-shell.is-missing {
  align-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(126, 255, 82, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(126, 255, 82, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(52, 88, 220, 0.56), rgba(7, 14, 27, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-md);
}

.team-photo-shell.is-missing::before {
  content: attr(data-initials);
  color: var(--neon-green);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 820;
}

.team-label {
  max-width: 210px;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.62);
}

.team-label h2,
.team-label p {
  margin: 0;
}

.team-label h2 {
  color: #9cb0ff;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1;
  text-shadow: 0 0 18px rgba(156, 176, 255, 0.48), 0 3px 12px rgba(0, 0, 0, 0.68);
}

.team-label p {
  margin-top: 4px;
  color: #6f91ff;
  font-size: clamp(11px, 0.95vw, 14px);
  line-height: 1.08;
  font-weight: 820;
}

.team-person-center .team-label p {
  font-size: clamp(10px, 0.9vw, 13px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 780;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-green), #bcffa4);
  color: #071019;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

section {
  padding: 34px 0;
}

.section-title {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.portal-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

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

.card,
.portal-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  color: var(--text);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.card,
.portal-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.card::before,
.portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-green), var(--accent-blue));
  opacity: 0.88;
}

.card:hover,
.portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 255, 82, 0.28);
}

.card,
.portal-card {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card h3,
.portal-card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 19px;
  line-height: 1.2;
}

.portal-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-card-head h3 {
  margin: 0;
}

.card p,
.portal-card p,
.text-block {
  color: var(--muted);
  line-height: 1.55;
}

.card p,
.portal-card p {
  margin: 0;
}

.portal-card {
  min-height: 148px;
  gap: 0;
}

.portal-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.chip,
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.expertise-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  padding: 24px;
}

form {
  display: grid;
  gap: 12px;
}

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--bottombar-height);
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.84);
  color: var(--muted);
  font-size: 13px;
  backdrop-filter: blur(18px);
}

/* Light theme */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-soft: #edf2f8;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-2: rgba(246, 249, 253, 0.96);
  --panel-hover: rgba(237, 242, 248, 0.96);
  --line: rgba(22, 36, 58, 0.12);
  --line-strong: rgba(52, 88, 220, 0.26);
  --text: #111827;
  --muted: #5f6f84;
  --hero-canvas-fill: rgba(255, 255, 255, 0.04);
  --hero-particle-alpha-base: 0.72;
  --hero-particle-alpha-pulse: 0.16;
  --hero-particle-link-strength: 0.74;
  --hero-particle-shadow-alpha: 0.34;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(52, 88, 220, 0.13), transparent 30rem),
    radial-gradient(circle at 82% 12%, rgba(126, 255, 82, 0.16), transparent 28rem),
    linear-gradient(135deg, #f7f9fd 0%, #eef4f9 52%, #f9fbfe 100%);
}

[data-theme="light"] .slideshow-wrapper {
  background: #f8fbff;
}

[data-theme="light"] .slideshow-wrapper::after {
  background:
    linear-gradient(90deg, rgba(247, 250, 255, 0.66) 0%, rgba(247, 250, 255, 0.26) 48%, rgba(247, 250, 255, 0.06) 100%),
    linear-gradient(0deg, rgba(248, 251, 255, 0.70) 0%, rgba(248, 251, 255, 0.08) 48%);
}

[data-theme="light"] .slideshow {
  background:
    radial-gradient(circle at 68% 35%, rgba(35, 63, 186, 0.28), transparent 34%),
    radial-gradient(circle at 28% 72%, rgba(74, 180, 46, 0.24), transparent 26%),
    linear-gradient(116deg, rgba(255, 255, 255, 0.98) 0%, rgba(230, 239, 252, 0.96) 42%, rgba(240, 250, 239, 0.98) 100%);
}

[data-theme="light"] .slideshow::before {
  opacity: 0.86;
  background:
    radial-gradient(ellipse at 18% 48%, rgba(74, 180, 46, 0.30), transparent 34%),
    radial-gradient(ellipse at 72% 32%, rgba(35, 63, 186, 0.54), transparent 38%),
    conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(35, 63, 186, 0.46) 70deg, rgba(74, 180, 46, 0.26) 132deg, transparent 220deg),
    linear-gradient(108deg, transparent 0 24%, rgba(35, 63, 186, 0.44) 40%, transparent 58%);
}

[data-theme="light"] .slideshow::after {
  opacity: 0.34;
  background:
    radial-gradient(circle at 54% 44%, rgba(74, 180, 46, 0.28), transparent 18%),
    radial-gradient(circle at 68% 34%, rgba(35, 63, 186, 0.36), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.48) 84%);
  animation-name: ix-neon-circuit-light;
}

[data-theme="light"] .ix-particle-canvas {
  opacity: 0.82;
  mix-blend-mode: multiply;
}

[data-theme="light"] .topbar,
[data-theme="light"] .sidenav,
[data-theme="light"] .bottombar {
  background: rgba(255, 255, 255, 0.78);
}

[data-theme="light"] .hero .title h1 {
  color: #ffffff;
}

[data-theme="light"] .hero .title p {
  color: var(--accent-blue-strong);
}

[data-theme="light"] .home-tagline {
  color: var(--accent-blue);
}

[data-theme="light"] .title::before {
  background: rgba(7, 16, 25, 0.44);
}

[data-theme="light"] .searchbar input,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] .tb-btn,
[data-theme="light"] .lang-control,
[data-theme="light"] .mobile-toggle,
[data-theme="light"] .nav-item {
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .card,
[data-theme="light"] .portal-card,
[data-theme="light"] .contact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 243, 250, 0.96));
  border-color: rgba(52, 88, 220, 0.20);
}

[data-theme="light"] .card h3,
[data-theme="light"] .portal-card h3,
[data-theme="light"] .section-title,
[data-theme="light"] .team-label h2 {
  color: var(--accent-blue);
}

[data-theme="light"] .card p,
[data-theme="light"] .portal-card p,
[data-theme="light"] .text-block {
  color: #405168;
}

[data-theme="light"] .nav-caption {
  color: #102033;
}

[data-theme="light"] .nav-item.active .nav-caption {
  color: var(--accent-blue-strong);
}

[data-theme="light"] .search-results,
[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.96);
}

[data-theme="light"] .nav-item.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .btn-outline {
  background: rgba(10, 18, 32, 0.52);
  border-color: rgba(255, 255, 255, 0.34);
}

@media (max-width: 980px) {
  :root {
    --topbar-height: 78px;
    --topbar-logo-height: 58px;
  }

  .topbar-inner {
    padding: 8px 14px;
  }

  .actions {
    gap: 7px;
  }

  .tb-btn span:not(#themeText),
  .lang-control span {
    display: none;
  }

  .searchbar.open {
    position: fixed;
    top: calc(var(--topbar-height) + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    z-index: 70;
  }

  .sidenav {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidenav.open {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: inline-flex;
  }

  main {
    margin-left: 0;
  }

  .search-results {
    left: 12px;
    right: 12px;
  }

  .hero {
    min-height: 392px;
    padding-top: 88px;
  }

  .about-hero {
    min-height: 672px;
    align-items: start;
  }

  .about-hero .title {
    margin-top: 36px;
    margin-right: auto;
    margin-left: auto;
    align-items: flex-start;
    text-align: left;
  }

  .contact-hero {
    min-height: auto;
    padding: 104px 0 28px;
  }

  .contact-hero .title,
  .contact-hero-panel {
    width: min(100% - 28px, 1160px);
  }

  .team-montage {
    position: relative;
    inset: auto;
    width: min(100% - 28px, 720px);
    margin: 122px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    pointer-events: auto;
  }

  .team-person,
  .team-person-left,
  .team-person-center,
  .team-person-right {
    position: static;
    width: 100%;
    transform: none;
  }

  .team-label h2 {
    font-size: 18px;
  }

  .team-label p {
    font-size: 13px;
  }

}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: 413px;
  }

  .title h1 {
    font-size: clamp(32px, 10.5vw, 42px);
  }

  .grid-2,
  form .row,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .about-hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  .team-montage {
    margin-top: 132px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .team-photo-shell {
    width: min(72vw, 315px);
  }

  .team-label h2 {
    font-size: 24px;
  }

  .team-label p {
    font-size: 17px;
  }

  .card,
  .portal-card,
  .contact-card {
    padding: 18px;
  }

  .bottombar {
    font-size: 12px;
  }
}
