:root {
  --ink: #07090f;
  --night: #0b0f19;
  --midnight: #101624;
  --paper: #f7f8fb;
  --warm-paper: #fff7ef;
  --white: #ffffff;
  --muted: #687084;
  --soft: #d9dde7;
  --line: rgba(17, 24, 39, 0.12);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.18);
  --cyan: #30d5c8;
  --coral: #ff4d3d;
  --amber: #f7b84b;
  --green: #77d682;
  --violet: #9b8cff;
  --shadow: 0 18px 48px rgba(7, 9, 15, 0.14);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

#home {
  scroll-margin-top: 0;
}

body {
  margin: 0;
  background: var(--paper);
  color: #171b26;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.03;
}

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

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

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  left: 20px;
  top: 20px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(7, 9, 15, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 9, 15, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 132px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 124px 0 94px;
  color: var(--white);
  background: var(--ink) url("../img/bg/ai-network-hero.svg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.12) contrast(1.06) brightness(0.9);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 78% 26%, rgba(48, 213, 200, 0.18), transparent 28%),
    linear-gradient(110deg, rgba(7, 9, 15, 0.86) 0%, rgba(7, 9, 15, 0.5) 46%, rgba(7, 9, 15, 0.76) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(180deg, rgba(7, 9, 15, 0), rgba(247, 248, 251, 0.96));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: 3.4rem;
}

.hero-lede {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.24rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #ff7a45);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(255, 77, 61, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 42px rgba(255, 77, 61, 0.36);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-console {
  position: relative;
  min-height: 500px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(22px);
  overflow: hidden;
  isolation: isolate;
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(48, 213, 200, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
}

.console-header,
.particle-stage,
.particle-controls {
  position: relative;
  z-index: 1;
}

.console-header {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.console-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.console-header span:nth-child(2) {
  background: var(--amber);
}

.console-header span:nth-child(3) {
  background: var(--green);
}

.particle-stage {
  position: relative;
  height: 342px;
  border: 1px solid rgba(48, 213, 200, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(48, 213, 200, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(48, 213, 200, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(155, 140, 255, 0.06)),
    rgba(0, 5, 12, 0.72);
  background-size: 38px 38px, 38px 38px, auto, auto;
  box-shadow: inset 0 0 42px rgba(48, 213, 200, 0.12);
  cursor: grab;
  overflow: hidden;
  touch-action: none;
}

.particle-stage:active {
  cursor: grabbing;
}

.particle-stage::before,
.particle-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.particle-stage::before {
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 213, 200, 0.46), transparent);
}

.particle-stage::after {
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(48, 213, 200, 0.36), transparent);
}

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.particle-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at center, transparent 0%, transparent 48%, rgba(0, 5, 12, 0.44) 100%),
    linear-gradient(180deg, rgba(0, 5, 12, 0), rgba(0, 5, 12, 0.18));
  pointer-events: none;
}

.particle-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.particle-status span {
  color: var(--white);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 0.95rem;
}

.particle-hint {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

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

.particle-controls button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.particle-controls button:hover,
.particle-controls button:focus-visible,
.particle-controls button.is-active {
  color: var(--white);
  background: rgba(48, 213, 200, 0.16);
  border-color: rgba(48, 213, 200, 0.5);
  transform: translateY(-1px);
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--paper);
}

.section-warm {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 239, 0.96)),
    var(--warm-paper);
}

.section-dark {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(48, 213, 200, 0.09), transparent 35%),
    linear-gradient(240deg, rgba(255, 77, 61, 0.09), transparent 42%),
    var(--night);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.34;
  pointer-events: none;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-compact {
  padding-top: 78px;
  padding-bottom: 78px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.58fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: 2.85rem;
}

.section-heading p {
  color: var(--muted);
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
  color: var(--white);
}

.section-dark .section-heading > p {
  color: rgba(255, 255, 255, 0.68);
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.carousel-shell {
  position: relative;
  isolation: isolate;
}

.carousel-shell::before,
.carousel-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  z-index: 2;
  width: 72px;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.carousel-shell::before {
  left: -6px;
  background: linear-gradient(90deg, var(--paper), rgba(247, 248, 251, 0));
}

.carousel-shell::after {
  right: -6px;
  background: linear-gradient(270deg, var(--paper), rgba(247, 248, 251, 0));
}

.carousel-shell.is-at-start::before,
.carousel-shell.is-at-end::after {
  opacity: 0;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16);
  cursor: pointer;
  font-size: 1.42rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--white);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.22);
  transform: translateY(-50%) scale(1.04);
}

.carousel-button:disabled {
  opacity: 0.34;
  cursor: default;
  transform: translateY(-50%);
}

.carousel-button-prev {
  left: -22px;
}

.carousel-button-next {
  right: -22px;
}

.carousel-shell .carousel-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.carousel-shell:hover .carousel-button:not(:disabled),
.carousel-shell:focus-within .carousel-button:not(:disabled) {
  opacity: 1;
  pointer-events: auto;
}

.carousel-shell:hover .carousel-button:disabled,
.carousel-shell:focus-within .carousel-button:disabled {
  opacity: 0.34;
}

.horizontal-scroll {
  margin-inline: -4px;
  padding: 4px 4px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll:focus-visible {
  outline: 3px solid rgba(48, 213, 200, 0.45);
  outline-offset: 6px;
}

.card-grid-scroll {
  display: flex;
  gap: 28px;
  width: max-content;
  min-width: 100%;
}

.card-grid-scroll .service-card {
  flex: 0 0 clamp(255px, 22vw, 285px);
  scroll-snap-align: start;
  min-width: 0;
}

.service-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #171b26;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 61, 0.38);
  box-shadow: var(--shadow);
  outline: none;
}

.project-card {
  position: relative;
  min-height: 190px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  justify-content: flex-end;
  gap: 0;
  isolation: isolate;
  color: var(--white);
  background: #0b0f17;
  border-color: rgba(17, 24, 39, 0.12);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: none;
  pointer-events: none;
}

.project-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 360ms ease, filter 220ms ease;
}

.project-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 9, 15, 0), rgba(7, 9, 15, 0.72));
  transition: background 220ms ease, backdrop-filter 220ms ease;
}

.project-card h3 {
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.service-card.project-card p {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  color: rgba(255, 255, 255, 0.86);
  transform: translateY(12px);
  transition: max-height 240ms ease, margin-top 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.project-card:hover::before,
.project-card:focus-visible::before {
  background: none;
}

.project-card:hover .project-card-content,
.project-card:focus-visible .project-card-content {
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.2), rgba(7, 9, 15, 0.82));
  backdrop-filter: blur(2px);
}

.project-card:hover .project-card-image,
.project-card:focus-visible .project-card-image {
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.08);
}

.service-card.project-card:hover p,
.service-card.project-card:focus-visible p {
  max-height: 180px;
  margin-top: 10px;
  opacity: 1;
  transform: translateY(0);
}

.service-card-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.service-card-dark:hover,
.service-card-dark:focus-visible {
  border-color: rgba(48, 213, 200, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.service-card-large {
  min-height: 230px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.18), rgba(255, 77, 61, 0.12));
  font-size: 1.25rem;
}

.service-card-dark .card-icon {
  color: var(--white);
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.22), rgba(155, 140, 255, 0.18));
}

.service-card h3 {
  color: inherit;
  font-size: 1.22rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.service-card-dark p {
  color: rgba(255, 255, 255, 0.68);
}

@media (hover: none) {
  .project-card-content {
    background: linear-gradient(180deg, rgba(7, 9, 15, 0.2), rgba(7, 9, 15, 0.78));
  }

  .service-card.project-card p {
    max-height: 180px;
    margin-top: 10px;
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 9, 15, 0.94), rgba(13, 18, 30, 0.92)),
    url("../img/bg/ai-network-hero.svg");
  background-size: cover;
  background-position: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 46px;
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 34px;
}

.contact-copy-wide {
  max-width: 920px;
}

.contact-copy h2 {
  margin-top: 12px;
  font-size: 2.72rem;
}

.contact-copy p {
  max-width: 600px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 24px;
}

.contact-details h3 {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.25;
}

.contact-email {
  display: inline-flex;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  border-bottom: 2px solid var(--coral);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.draft-form {
  gap: 26px;
  width: 100%;
  padding: 30px;
}

.form-group {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.22);
}

.form-group legend {
  padding: 0 8px;
  color: var(--white);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
}

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

.field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form label em {
  color: var(--coral);
  font-style: normal;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.5);
  color: var(--white);
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form ::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(48, 213, 200, 0.72);
  box-shadow: 0 0 0 4px rgba(48, 213, 200, 0.16);
  background: rgba(7, 9, 15, 0.68);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-form .checkbox-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--coral);
}

.checkbox-field span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
  line-height: 1.55;
}

.contact-form .btn {
  width: fit-content;
  border: 0;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.68);
  background: #05070d;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid a {
  color: var(--white);
  font-weight: 800;
}

@keyframes signal-scan {
  0%,
  100% {
    opacity: 0.38;
    filter: saturate(1);
  }

  50% {
    opacity: 1;
    filter: saturate(1.6);
  }
}

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

  .hero-video {
    display: none;
  }
}

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

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

@media (max-width: 940px) {
  .hero-grid,
  .section-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-console {
    max-width: 560px;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2.35rem;
  }
}

@media (max-width: 780px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-shell {
    min-height: 70px;
  }

  .brand img {
    width: 118px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 82px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(7, 9, 15, 0.96);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.is-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
    padding-bottom: 70px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-console {
    min-height: 430px;
  }

  .particle-stage {
    height: 280px;
  }

  .section {
    padding: 66px 0;
  }

  .card-grid-five,
  .card-grid-three,
  .card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-scroll {
    gap: 18px;
  }

  .card-grid-scroll .service-card {
    flex-basis: clamp(255px, 42vw, 300px);
  }

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

  .field-full {
    grid-column: auto;
  }

  .carousel-button {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .carousel-button-prev {
    left: -6px;
  }

  .carousel-button-next {
    right: -6px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-actions,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .hero-console {
    min-height: 360px;
    padding: 16px;
  }

  .particle-stage {
    height: 236px;
  }

  .particle-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .particle-status {
    align-items: center;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .card-grid-five,
  .card-grid-four,
  .card-grid-three,
  .card-grid-two {
    grid-template-columns: 1fr;
  }

  .card-grid-scroll {
    width: 100%;
  }

  .card-grid-scroll .service-card {
    flex-basis: min(82vw, 300px);
  }

  .carousel-shell::before,
  .carousel-shell::after {
    width: 42px;
  }

  .carousel-button {
    top: auto;
    bottom: -2px;
    transform: none;
  }

  .carousel-button:hover,
  .carousel-button:focus-visible,
  .carousel-button:disabled {
    transform: none;
  }

  .service-card,
  .service-card-large {
    min-height: auto;
  }

  .project-card {
    min-height: 220px;
  }

  .contact-details {
    align-items: flex-start;
    flex-direction: column;
  }

  .draft-form,
  .contact-form {
    padding: 18px;
  }

  .form-group {
    padding: 16px;
  }
}
