:root {
  color-scheme: dark;
  --bg: #06121f;
  --bg-soft: #0b1a2c;
  --surface: rgba(9, 19, 34, 0.74);
  --surface-strong: rgba(8, 18, 32, 0.92);
  --text: #ecf4ff;
  --muted: rgba(236, 244, 255, 0.74);
  --line: rgba(255, 255, 255, 0.1);
  --primary: #023088;
  --accent: #029be1;
  --accent-soft: rgba(2, 155, 225, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  --pointer-x: 0;
  --pointer-y: 0;
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(2, 155, 225, 0.26), transparent 28%),
    radial-gradient(circle at left 10%, rgba(2, 48, 136, 0.38), transparent 34%),
    linear-gradient(180deg, #06111d 0%, #081421 55%, #050b12 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  left: -12vmax;
  top: -10vmax;
  width: 58vmax;
  height: 58vmax;
  inset: auto;
  background:
    radial-gradient(circle at 26% 34%, rgba(236, 244, 255, 0.92) 0 1.5px, transparent 2px),
    radial-gradient(circle at 58% 18%, rgba(236, 244, 255, 0.7) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 74% 60%, rgba(236, 244, 255, 0.78) 0 1.4px, transparent 2px),
    radial-gradient(circle at 38% 74%, rgba(236, 244, 255, 0.62) 0 1.1px, transparent 1.7px),
    linear-gradient(28deg, transparent 46%, rgba(2, 155, 225, 0.24) 47%, rgba(2, 155, 225, 0.24) 49%, transparent 50%),
    linear-gradient(-34deg, transparent 53%, rgba(236, 244, 255, 0.12) 54%, rgba(236, 244, 255, 0.12) 55%, transparent 56%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(2, 155, 225, 0.14) 56% 57%, transparent 58%);
  filter: blur(0.2px);
  opacity: 0.52;
  transform-origin: center center;
  animation: constellationDrift 18s linear infinite;
}

body::after {
  right: -14vmax;
  bottom: -12vmax;
  width: 50vmax;
  height: 50vmax;
  inset: auto;
  background:
    radial-gradient(circle at 40% 30%, rgba(236, 244, 255, 0.85) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 66% 66%, rgba(236, 244, 255, 0.68) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 24% 72%, rgba(236, 244, 255, 0.58) 0 1px, transparent 1.5px),
    linear-gradient(145deg, transparent 44%, rgba(2, 48, 136, 0.22) 45%, rgba(2, 48, 136, 0.22) 47%, transparent 48%),
    linear-gradient(210deg, transparent 47%, rgba(2, 155, 225, 0.16) 48%, rgba(2, 155, 225, 0.16) 49%, transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(2, 48, 136, 0.16) 61% 62%, transparent 63%);
  opacity: 0.38;
  filter: blur(0.1px);
  transform-origin: center center;
  animation: constellationDriftReverse 26s linear infinite;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text strong,
.page-hero h1,
.contact-side strong,
.form-card button {
  font-family: "Noto Serif Arabic", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  position: relative;
  overflow: clip;
  z-index: 1;
  isolation: isolate;
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.42;
  filter: none;
  animation: constellationPulse 10s ease-in-out infinite alternate;
}

.aurora,
.paper-layer {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  will-change: transform, opacity;
}

.aurora {
  mix-blend-mode: screen;
  filter: blur(22px);
  opacity: 0.65;
  transform: translate3d(
      calc(var(--pointer-x, 0) * 18px),
      calc(var(--pointer-y, 0) * 14px + var(--scroll-progress, 0) * 18px),
      0
    )
    rotate(-16deg);
  animation: auroraFloat 24s ease-in-out infinite alternate;
}

.aurora-one {
  top: -8vh;
  right: -14vw;
  width: 58vw;
  height: 24vh;
  background:
    linear-gradient(90deg, transparent 6%, rgba(2, 155, 225, 0.06) 18%, rgba(2, 155, 225, 0.24) 40%, rgba(236, 244, 255, 0.14) 52%, rgba(2, 48, 136, 0.18) 68%, transparent 92%),
    linear-gradient(135deg, rgba(236, 244, 255, 0.08), transparent 66%);
  border-radius: 999px;
  opacity: 0.58;
}

.aurora-two {
  bottom: 3vh;
  left: -8vw;
  width: 52vw;
  height: 22vh;
  background:
    linear-gradient(90deg, transparent 4%, rgba(236, 244, 255, 0.06) 16%, rgba(2, 48, 136, 0.2) 38%, rgba(2, 155, 225, 0.2) 56%, rgba(236, 244, 255, 0.12) 72%, transparent 96%),
    linear-gradient(145deg, rgba(2, 155, 225, 0.08), transparent 68%);
  border-radius: 999px;
  opacity: 0.5;
  transform: translate3d(
      calc(var(--pointer-x, 0) * -14px),
      calc(var(--pointer-y, 0) * -10px + var(--scroll-progress, 0) * -12px),
      0
    )
    rotate(20deg);
  animation-duration: 30s;
  animation-direction: reverse;
}

.paper-layer {
  opacity: 0.16;
  mix-blend-mode: screen;
  filter: none;
  background-repeat: no-repeat;
  background-size: cover;
}

.paper-one {
  top: 10vh;
  left: -10vw;
  width: 70vw;
  height: 62vh;
  background-image:
    linear-gradient(128deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.012) 36%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 18% 24%, rgba(2, 155, 225, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 68%, rgba(236, 244, 255, 0.08) 0 2px, transparent 3px);
  border-radius: 30px;
  transform: translate3d(
      calc(var(--pointer-x, 0) * 10px),
      calc(var(--pointer-y, 0) * 8px + var(--scroll-progress, 0) * 36px),
      0
    )
    rotate(-7deg);
  animation: paperDriftA 34s ease-in-out infinite alternate;
}

.paper-two {
  top: 20vh;
  right: -16vw;
  width: 64vw;
  height: 58vh;
  background-image:
    linear-gradient(150deg, rgba(255, 255, 255, 0.03) 0%, rgba(2, 48, 136, 0.06) 34%, transparent 72%),
    repeating-linear-gradient(102deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(8deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 26px),
    radial-gradient(circle at 28% 18%, rgba(236, 244, 255, 0.07) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 66%, rgba(2, 155, 225, 0.08) 0 2px, transparent 3px);
  border-radius: 26px;
  opacity: 0.14;
  transform: translate3d(
      calc(var(--pointer-x, 0) * -12px),
      calc(var(--pointer-y, 0) * -8px + var(--scroll-progress, 0) * -30px),
      0
    )
    rotate(9deg);
  animation: paperDriftB 42s ease-in-out infinite alternate-reverse;
}

.paper-three {
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.025) 48%, transparent 54%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 30px),
    radial-gradient(circle at 50% 50%, transparent 54%, rgba(2, 155, 225, 0.05) 58%, transparent 64%);
  opacity: 0.08;
  transform: translate3d(
      calc(var(--pointer-x, 0) * 6px),
      calc(var(--pointer-y, 0) * 5px + var(--scroll-progress, 0) * 12px),
      0
    )
    rotate(-2deg);
  animation: paperDriftC 52s linear infinite;
}

.ambient-one {
  top: -80px;
  right: -90px;
  width: 280px;
  height: 280px;
  background:
    radial-gradient(circle at 30% 32%, rgba(236, 244, 255, 0.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 64% 24%, rgba(236, 244, 255, 0.68) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 56% 66%, rgba(236, 244, 255, 0.52) 0 1.1px, transparent 1.7px),
    linear-gradient(38deg, transparent 42%, rgba(2, 155, 225, 0.22) 43%, rgba(2, 155, 225, 0.22) 45%, transparent 46%),
    linear-gradient(-18deg, transparent 54%, rgba(2, 48, 136, 0.2) 55%, rgba(2, 48, 136, 0.2) 57%, transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(2, 155, 225, 0.16) 0 34%, transparent 36%);
  mix-blend-mode: screen;
  transform-origin: 60% 40%;
  animation-duration: 14s;
}

.ambient-two {
  left: -70px;
  top: 45vh;
  width: 240px;
  height: 240px;
  background:
    radial-gradient(circle at 36% 28%, rgba(236, 244, 255, 0.82) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 68% 62%, rgba(236, 244, 255, 0.58) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 24% 74%, rgba(236, 244, 255, 0.46) 0 1px, transparent 1.5px),
    linear-gradient(148deg, transparent 45%, rgba(2, 48, 136, 0.22) 46%, rgba(2, 48, 136, 0.22) 48%, transparent 49%),
    linear-gradient(216deg, transparent 49%, rgba(2, 155, 225, 0.16) 50%, rgba(2, 155, 225, 0.16) 52%, transparent 53%),
    radial-gradient(circle at 50% 50%, rgba(2, 48, 136, 0.16) 0 32%, transparent 34%);
  mix-blend-mode: screen;
  transform-origin: 40% 60%;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.topbar,
main,
.footer {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(7, 15, 28, 0.72);
  box-shadow: var(--shadow);
  transform: translate3d(calc(var(--pointer-x, 0) * 3px), calc(var(--pointer-y, 0) * 2px), 0);
  transition: transform 220ms ease, box-shadow 180ms ease, background 180ms ease;
  will-change: transform;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translate3d(calc(var(--pointer-x, 0) * 2px), calc(var(--pointer-y, 0) * 1.5px), 0);
  transition: transform 220ms ease;
  will-change: transform;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(2, 155, 225, 0.28);
}

.brand-mark-image {
  overflow: hidden;
  background: transparent;
  padding: 0;
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translate3d(calc(var(--pointer-x, 0) * 1px), calc(var(--pointer-y, 0) * 1px), 0) scale(1.02);
  transition: transform 220ms ease;
  will-change: transform;
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav a.active {
  color: white;
}

.nav-cta {
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white !important;
  box-shadow: 0 18px 40px rgba(2, 155, 225, 0.24);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

main {
  padding: 36px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  padding: 34px 0 18px;
  min-height: calc(100vh - 120px);
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 5.2rem);
  max-width: 12ch;
}

.eyebrow,
.section-heading span,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(236, 244, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-copy p,
.soft-card p,
.value-card p,
.service-card p,
.contact-card p,
.page-hero p,
.contact-side p,
.form-card p,
.page-note {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.03rem;
}

.hero-copy > p {
  max-width: 60ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 18px 40px rgba(2, 155, 225, 0.24);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
  border-color: rgba(2, 155, 225, 0.35);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics article,
.mini-card,
.card,
.panel-card,
.contact-card,
.contact-side,
.form-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  color: white;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  gap: 16px;
  transform: translate3d(calc(var(--pointer-x, 0) * 10px), calc(var(--pointer-y, 0) * 8px), 0);
  transition: transform 220ms ease;
  will-change: transform;
}

.panel-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  transform: translate3d(calc(var(--pointer-x, 0) * 4px), calc(var(--pointer-y, 0) * 3px), 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.panel-card:hover {
  transform: translate3d(calc(var(--pointer-x, 0) * 4px), calc(var(--pointer-y, 0) * 3px - 3px), 0);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.4);
}

.panel-glow::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(2, 155, 225, 0.35), transparent 65%);
}

.panel-card h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.panel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  --mouse-shift-x: 6px;
  --mouse-shift-y: 5px;
  padding: 18px;
  border-radius: 22px;
  min-height: 122px;
  transform: translate3d(calc(var(--pointer-x, 0) * var(--mouse-shift-x)), calc(var(--pointer-y, 0) * var(--mouse-shift-y)), 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mini-card:nth-child(even) {
  --mouse-shift-x: -5px;
  --mouse-shift-y: 6px;
}

.mini-card:hover,
.card:hover,
.contact-side:hover,
.form-card:hover {
  transform: translate3d(calc(var(--pointer-x, 0) * var(--mouse-shift-x, 5px)), calc(var(--pointer-y, 0) * var(--mouse-shift-y, 4px) - 4px), 0);
  border-color: rgba(2, 155, 225, 0.2);
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.38);
}

.page-link-card {
  display: block;
}

.page-link-card span {
  color: rgba(236, 244, 255, 0.56);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-link-card strong {
  display: block;
  margin-top: 28px;
  font-size: 1.08rem;
}

.page-link-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 62px 0 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.8vw, 3rem);
}

.content-grid,
.cards {
  display: grid;
  gap: 16px;
}

.content-grid-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  --mouse-shift-x: 5px;
  --mouse-shift-y: 4px;
  border-radius: var(--radius-xl);
  padding: 22px;
  transform: translate3d(calc(var(--pointer-x, 0) * var(--mouse-shift-x)), calc(var(--pointer-y, 0) * var(--mouse-shift-y)), 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card > * {
  position: relative;
  z-index: 1;
}

.soft-card,
.value-card,
.service-card {
  background: var(--surface-strong);
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(2, 48, 136, 0.42), rgba(2, 155, 225, 0.12)),
    var(--surface-strong);
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card strong,
.service-card h3 {
  font-size: 1.18rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.service-card:nth-child(3n + 1) {
  --mouse-shift-x: 7px;
  --mouse-shift-y: 5px;
}

.service-card:nth-child(3n + 2) {
  --mouse-shift-x: -6px;
  --mouse-shift-y: 4px;
}

.service-card:nth-child(3n + 3) {
  --mouse-shift-x: 4px;
  --mouse-shift-y: -5px;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -28% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(2, 155, 225, 0.2), transparent 70%);
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-icon-bg {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 132px;
  height: 132px;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  transform: rotate(-10deg);
  filter: saturate(0.95) blur(0.2px);
}

.service-icon img {
  width: 66%;
  height: 66%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(2, 155, 225, 0.22));
}

.service-icon-bg img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 18px rgba(2, 155, 225, 0.12));
}

.service-card h3 {
  margin: 18px 0 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  margin: 0;
  position: relative;
  z-index: 1;
}

.card-icon-bg {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 138px;
  height: 138px;
  pointer-events: none;
  opacity: 0.1;
  z-index: 0;
  transform: rotate(-10deg);
  filter: saturate(0.95) blur(0.2px);
}

.card-icon-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(2, 155, 225, 0.14));
}

.contact-card .card-icon-bg {
  top: -6px;
  left: -2px;
  width: 168px;
  height: 168px;
  opacity: 0.12;
}

.contact-side .card-icon-bg {
  width: 128px;
  height: 128px;
  opacity: 0.09;
}

.card-icon-bg.icon-right {
  left: auto;
  right: 16px;
}

.contact-section {
  padding-bottom: 18px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 8px);
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(2, 48, 136, 0.92), rgba(2, 155, 225, 0.74)),
    var(--surface-strong);
  --mouse-shift-x: 8px;
  --mouse-shift-y: 6px;
  transform: translate3d(calc(var(--pointer-x, 0) * var(--mouse-shift-x)), calc(var(--pointer-y, 0) * var(--mouse-shift-y)), 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -10% auto auto -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
}

.contact-card .eyebrow {
  background: rgba(255, 255, 255, 0.16);
}

.contact-card h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
}

.contact-card p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
}

.contact-card .button {
  margin-top: 10px;
  background: white;
  color: var(--primary);
}

.contact-side,
.form-card {
  --mouse-shift-x: 6px;
  --mouse-shift-y: 5px;
  transform: translate3d(calc(var(--pointer-x, 0) * var(--mouse-shift-x)), calc(var(--pointer-y, 0) * var(--mouse-shift-y)), 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  will-change: transform;
}

.contact-side:hover,
.form-card:hover {
  transform: translate3d(calc(var(--pointer-x, 0) * var(--mouse-shift-x)), calc(var(--pointer-y, 0) * var(--mouse-shift-y) - 4px), 0);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.contact-side {
  padding: 24px;
}

.contact-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.contact-mini-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-mini-grid span,
.field label {
  display: block;
  color: rgba(236, 244, 255, 0.62);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.contact-mini-grid strong {
  font-size: 1rem;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--surface-strong);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(236, 244, 255, 0.44);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(2, 155, 225, 0.45);
  box-shadow: 0 0 0 4px rgba(2, 155, 225, 0.12);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.footer {
  padding: 18px 0 36px;
  color: rgba(236, 244, 255, 0.62);
  text-align: center;
}

.page-hero {
  display: grid;
  gap: 14px;
  padding: 44px 0 10px;
  max-width: 900px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  line-height: 1.15;
}

.page-note {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 560ms ease forwards;
  will-change: transform, opacity;
}

.hero.reveal,
.page-hero.reveal {
  animation-delay: 0ms;
}

.section.reveal {
  animation-delay: 90ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitA {
  from {
    transform: rotate(0deg) translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: rotate(360deg) translate3d(6px, -8px, 0) scale(1.03);
  }
}

@keyframes orbitB {
  from {
    transform: rotate(0deg) translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: rotate(360deg) translate3d(-8px, 10px, 0) scale(1.02);
  }
}

@keyframes constellationDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  to {
    transform: translate3d(14px, -10px, 0) rotate(360deg) scale(1.04);
  }
}

@keyframes constellationDriftReverse {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  to {
    transform: translate3d(-12px, 12px, 0) rotate(-360deg) scale(1.03);
  }
}

@keyframes constellationPulse {
  from {
    opacity: 0.34;
  }

  to {
    opacity: 0.5;
  }
}

@keyframes auroraFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(-16deg) scale(1);
  }

  to {
    transform: translate3d(18px, -12px, 0) rotate(-10deg) scale(1.05);
  }
}

@keyframes paperDriftA {
  from {
    transform: translate3d(0, 0, 0) rotate(-7deg);
  }

  to {
    transform: translate3d(22px, -10px, 0) rotate(-4deg);
  }
}

@keyframes paperDriftB {
  from {
    transform: translate3d(0, 0, 0) rotate(9deg);
  }

  to {
    transform: translate3d(-18px, 14px, 0) rotate(6deg);
  }
}

@keyframes paperDriftC {
  from {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  to {
    transform: translate3d(10px, -8px, 0) rotate(1deg);
  }
}

@keyframes ambientFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(16px, 18px, 0) scale(1.08);
  }
}

@keyframes bgDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-10px, 12px, 0) scale(1.03);
  }
}

@keyframes bgPan {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 56px 56px;
  }
}

@media (max-width: 1080px) {
  .hero,
  .contact-layout,
  .content-grid-large,
  .three-up,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    position: relative;
    top: auto;
    border-radius: 24px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 15, 28, 0.95);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 12px 8px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .contact-mini-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 26px;
  }
}

@media (max-width: 520px) {
  main {
    padding-top: 18px;
  }

  .topbar,
  .card,
  .panel-card,
  .contact-card {
    border-radius: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .page-hero {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body::before,
  body::after {
    animation: none !important;
  }

  .ambient {
    animation: none !important;
  }

  .aurora,
  .paper-layer {
    animation: none !important;
    transform: none !important;
  }

  .topbar,
  .brand,
  .brand-mark-image img,
  .hero-panel,
  .panel-card,
  .mini-card,
  .card,
  .contact-card,
  .contact-side,
  .form-card {
    transform: none !important;
  }
}