:root {
  color-scheme: dark;
  --color-background: #030b17;
  --color-surface: #071321;
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
  --color-blue: #0ea5e9;
  --color-blue-deep: #2563eb;
  --color-orange: #fb923c;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 76px;
  --radius: 20px;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --scroll-parallax: 0px;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --glass: rgba(7, 19, 33, 0.76);
  --shadow-deep: 0 28px 70px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 70%, rgba(251, 146, 60, 0.05), transparent 24rem),
    var(--color-background);
  color: var(--color-text);
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  color: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  max-width: 18ch;
  margin-bottom: clamp(2.25rem, 5vw, 4.25rem);
  font-size: clamp(2.15rem, 4.5vw, 4.7rem);
  letter-spacing: -0.045em;
}

::selection {
  background: var(--color-blue);
  color: var(--color-background);
}

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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 {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--color-orange);
  color: var(--color-background);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(3, 11, 23, 0.72), transparent);
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border-subtle);
  background: rgba(3, 11, 23, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(145%);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  font-family: "Orbitron", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(14, 165, 233, 0.38));
}

.brand span {
  background: linear-gradient(105deg, var(--color-text), #bfeaff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.nav-panel > a,
.portfolio-toggle {
  position: relative;
  padding: 0.6rem 0;
  background: transparent;
  color: #dbeafe;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  cursor: pointer;
}

.nav-panel > a::after,
.portfolio-toggle::after {
  position: absolute;
  right: 0;
  bottom: 0.28rem;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-panel > a:hover::after,
.nav-panel > a:focus-visible::after,
.portfolio-toggle:hover::after,
.portfolio-toggle:focus-visible::after,
.portfolio-toggle[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 11px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(7, 19, 33, 0.58);
  cursor: pointer;
}

.nav-toggle > span[aria-hidden="true"] {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 5px;
  border-radius: 99px;
  background: var(--color-text);
  transition: transform 180ms ease;
}

.mega-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(760px, calc(100vw - 40px));
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(10, 27, 47, 0.94), rgba(3, 11, 23, 0.91));
  box-shadow: var(--shadow-deep), inset 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(22px) saturate(135%);
  transform: translate(-50%, 12px) scale(0.985);
  transform-origin: top;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.portfolio-toggle[aria-expanded="true"] + .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.mega-menu a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.9rem;
  min-width: 0;
  padding: 1.05rem;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
  border-color: rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.075);
  transform: translateY(-2px);
}

.mega-menu a > span {
  grid-row: 1 / span 2;
  color: var(--color-orange);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.mega-menu strong {
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
}

.mega-menu small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 28% 54%, rgba(14, 165, 233, 0.13), transparent 31%),
    radial-gradient(circle at 78% 35%, rgba(37, 99, 235, 0.11), transparent 29%),
    linear-gradient(145deg, #030b17 0%, #041122 56%, #030913 100%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 170px;
  background: linear-gradient(transparent, var(--color-background));
  content: "";
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.circuit-layer {
  --circuit-shift: 76px;
  position: absolute;
  inset: -12%;
  overflow: hidden;
  opacity: 0.58;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.48) 68%, transparent);
  transform: translate3d(
    clamp(-3px, var(--parallax-x), 3px),
    calc(clamp(-2px, var(--parallax-y), 2px) + clamp(-18px, var(--scroll-parallax), 18px)),
    0
  ) rotate(-3deg);
  will-change: transform;
}

.circuit-layer::before {
  position: absolute;
  inset: -152px;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(251, 146, 60, 0.22) 1.2px, transparent 1.5px);
  background-position: center;
  background-size: 76px 76px, 76px 76px, 152px 152px;
  animation: circuit-drift 28s linear infinite;
  content: "";
  will-change: transform;
}

.dna-layer {
  position: absolute;
  top: 5%;
  right: clamp(-70px, 2vw, 46px);
  width: min(40vw, 520px);
  height: 88%;
  overflow: visible;
  opacity: 0.64;
  filter: drop-shadow(0 0 18px rgba(14, 165, 233, 0.16));
  transform: translate3d(
    clamp(-9px, var(--parallax-x), 9px),
    calc(clamp(-7px, var(--parallax-y), 7px) + clamp(-34px, var(--scroll-parallax), 34px)),
    0
  );
  animation: dna-float 12s ease-in-out infinite;
}

.dna-layer path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5;
  transform-box: fill-box;
  transform-origin: center;
}

.dna-blue {
  stroke: var(--color-blue);
  transform: translate3d(
    clamp(-3px, var(--parallax-x), 3px),
    calc(clamp(-2px, var(--parallax-y), 2px) + clamp(-10px, var(--scroll-parallax), 10px)),
    0
  );
}

.dna-orange {
  stroke: var(--color-orange);
  transform: translate3d(
    calc(0px - clamp(-5px, var(--parallax-x), 5px)),
    calc(0px - clamp(-3px, var(--parallax-y), 3px) + clamp(-16px, var(--scroll-parallax), 16px)),
    0
  );
}

.particles,
.particles::before,
.particles::after {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  content: "";
}

.particles {
  background-image:
    radial-gradient(circle, rgba(14, 165, 233, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(251, 146, 60, 0.64) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(248, 250, 252, 0.5) 0 1px, transparent 2px);
  background-position: 15% 32%, 86% 23%, 58% 78%;
  animation: particles-pulse 8s ease-in-out infinite;
}

.particles::before {
  background-image:
    radial-gradient(circle, rgba(14, 165, 233, 0.58) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(251, 146, 60, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(14, 165, 233, 0.5) 0 1px, transparent 2px);
  background-position: 28% 71%, 70% 42%, 92% 82%;
  animation: particles-pulse 11s 2s ease-in-out infinite reverse;
}

.particles::after {
  background-image:
    radial-gradient(circle, rgba(248, 250, 252, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(14, 165, 233, 0.56) 0 1px, transparent 2px);
  background-position: 42% 20%, 8% 84%;
  animation: particles-pulse 13s 1s ease-in-out infinite;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  min-height: 100%;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
}

.hero-brand {
  display: grid;
  place-items: center;
  transform: translate3d(
    clamp(-5px, var(--parallax-x), 5px),
    calc(clamp(-4px, var(--parallax-y), 4px) + clamp(-20px, var(--scroll-parallax), 20px)),
    0
  );
}

.hero-brand img {
  width: min(100%, 460px);
  max-height: 54svh;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(14, 165, 233, 0.36)) drop-shadow(0 22px 30px rgba(0, 0, 0, 0.34));
  animation: logo-breathe 7s ease-in-out infinite;
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 670px;
}

.eyebrow,
.section-index {
  margin-bottom: 1.3rem;
  color: var(--color-blue);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-index::before {
  display: inline-block;
  width: 2rem;
  height: 1px;
  margin-right: 0.7rem;
  background: currentColor;
  content: "";
  vertical-align: middle;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1.7rem;
  font-size: clamp(2.8rem, 6.2vw, 6.6rem);
  letter-spacing: -0.055em;
}

.hero h1 em {
  background: linear-gradient(105deg, var(--color-orange), #fed7aa);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 59ch;
  margin-bottom: 2.25rem;
  color: #bac8d9;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.82rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button-primary {
  background: linear-gradient(112deg, var(--color-blue-deep), var(--color-blue));
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.22), inset 0 1px rgba(255, 255, 255, 0.22);
  color: white;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 17px 42px rgba(14, 165, 233, 0.32), inset 0 1px rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.section {
  position: relative;
  padding-block: clamp(6rem, 11vw, 10.5rem);
}

.portfolio {
  background:
    linear-gradient(180deg, rgba(7, 19, 33, 0.35), rgba(7, 19, 33, 0.88)),
    radial-gradient(circle at 84% 0, rgba(14, 165, 233, 0.08), transparent 28rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: clamp(1.35rem, 2.3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(12, 32, 53, 0.76), rgba(5, 15, 27, 0.86));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.service-card::before {
  position: absolute;
  inset: auto -30% -45% 20%;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 68%);
  content: "";
  transition: transform 300ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(14, 165, 233, 0.52);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.26), 0 0 28px rgba(14, 165, 233, 0.08);
  transform: translateY(-7px);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  transform: translate(-8%, -10%) scale(1.16);
}

.service-card > span {
  color: var(--color-orange);
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.service-card h3 {
  margin: auto 0 1rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

.service-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.about {
  background:
    radial-gradient(circle at 15% 40%, rgba(37, 99, 235, 0.09), transparent 28rem),
    var(--color-background);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.about-grid h2,
.contact-grid h2 {
  margin-bottom: 1.5rem;
}

.about-copy {
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(12, 32, 53, 0.68), rgba(7, 19, 33, 0.5));
  box-shadow: var(--shadow-deep), inset 0 1px rgba(255, 255, 255, 0.04);
}

.about-copy h3 {
  margin-bottom: 0.8rem;
  color: #d8efff;
  font-size: 1.02rem;
}

.about-copy p {
  color: var(--color-muted);
}

.about-copy p:not(:last-child) {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.contact {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 40%, rgba(251, 146, 60, 0.065), transparent 27rem),
    linear-gradient(180deg, rgba(7, 19, 33, 0.82), var(--color-surface));
}

.contact-grid > div > p:last-child {
  max-width: 43ch;
  color: var(--color-muted);
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.35rem, 3.5vw, 3rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(3, 11, 23, 0.5);
  box-shadow: var(--shadow-deep), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: #c8d7e8;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.055em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  outline: 0;
  background: rgba(7, 19, 33, 0.82);
  color: var(--color-text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact-form input {
  min-height: 52px;
  padding: 0.75rem 0.9rem;
}

.contact-form textarea {
  min-height: 140px;
  padding: 0.85rem 0.9rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-blue);
  background: rgba(10, 28, 47, 0.94);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.contact-form .button {
  justify-self: start;
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #020811;
}

.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  min-height: 112px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-brand,
.footer-nav,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-brand,
.footer-contact {
  flex-direction: column;
}

.footer-brand small,
.footer-contact span {
  color: var(--color-muted);
}

.footer-contact {
  font-style: normal;
}

.site-footer a {
  color: #dbeafe;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-blue);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes circuit-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(var(--circuit-shift), var(--circuit-shift), 0);
  }
}

@keyframes dna-float {
  0%,
  100% {
    translate: 0 -5px;
  }

  50% {
    translate: 0 7px;
  }
}

@keyframes particles-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.85;
    transform: translate3d(0, -5px, 0) scale(1.015);
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    transform: scale(0.995);
  }

  50% {
    transform: scale(1.008);
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 280px;
  }

  .about-grid,
  .contact-grid {
    gap: 3rem;
  }

  .site-footer .shell {
    flex-wrap: wrap;
    padding-block: 1.75rem;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 28px);
    --header-height: 68px;
  }

  body {
    font-size: 1.05rem;
  }

  .site-header {
    background: rgba(3, 11, 23, 0.72);
    backdrop-filter: blur(12px);
  }

  html:not(.js) .site-header {
    position: relative;
    height: auto;
  }

  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-bottom: 0.75rem;
  }

  .js .nav {
    flex-wrap: nowrap;
    height: 100%;
    padding-bottom: 0;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand span {
    font-size: 0.8rem;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .nav-toggle[aria-expanded="true"] > span[aria-hidden="true"]:nth-of-type(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .js .nav-toggle[aria-expanded="true"] > span[aria-hidden="true"]:nth-of-type(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 100%;
    gap: 0.25rem;
    padding: 0.5rem 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .js .nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr;
    flex: none;
    gap: 0.25rem;
    max-height: calc(100svh - var(--header-height) - 24px);
    padding: 0.75rem;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: rgba(5, 16, 29, 0.96);
    box-shadow: var(--shadow-deep);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(20px);
    transform: translateY(-8px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .js .nav-toggle[aria-expanded="true"] + .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-panel > a,
  .portfolio-toggle {
    width: 100%;
    padding: 0.8rem 0.7rem;
    text-align: left;
  }

  .nav-panel > a::after,
  .portfolio-toggle::after {
    display: none;
  }

  .mega-menu {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.045);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 220ms ease, opacity 180ms ease, visibility 180ms ease, padding 180ms ease;
  }

  .portfolio-toggle[aria-expanded="true"] + .mega-menu {
    max-height: 430px;
    padding: 0.35rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mega-menu a {
    padding: 0.75rem;
  }

  .mega-menu small {
    white-space: normal;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4.5rem;
    text-align: center;
  }

  .hero-brand {
    order: 0;
    min-height: 32svh;
  }

  .hero-brand img {
    width: min(76vw, 330px);
    max-height: 37svh;
  }

  .hero-copy {
    order: 1;
    max-width: 590px;
    margin-inline: auto;
  }

  .eyebrow::before {
    display: none;
  }

  .hero h1 {
    max-width: 11ch;
    margin-inline: auto;
    font-size: clamp(2.65rem, 13vw, 4.5rem);
  }

  .hero-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .dna-layer {
    top: 13%;
    right: -14%;
    width: 74vw;
    height: 56%;
    opacity: 0.25;
  }

  .dna-layer path {
    stroke-width: 4;
  }

  .circuit-layer {
    --circuit-shift: 64px;
    inset: -8%;
    opacity: 0.4;
  }

  .circuit-layer::before {
    inset: -128px;
    background-size: 64px 64px, 64px 64px, 128px 128px;
  }

  .section {
    padding-block: 5.5rem;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }

  .service-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    min-height: 250px;
  }

  .about-grid,
  .contact-grid {
    gap: 2.5rem;
  }

  .contact-form {
    width: 100%;
  }

  .contact-form .button {
    width: 100%;
  }

  .site-footer .shell {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 2rem;
  }

  .footer-nav,
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .circuit-layer,
  .circuit-layer::before,
  .dna-layer,
  .dna-blue,
  .dna-orange,
  .hero-brand,
  .hero-brand img,
  .particles,
  .particles::before,
  .particles::after {
    translate: none;
    transform: none;
  }

  .js [data-reveal],
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
