/* =========================================================
   NexLabs Studios
   File: style.css
   Purpose: Global styling for public website
   ========================================================= */

:root {
  --bg: #050507;
  --bg-soft: #09090d;
  --panel: rgba(16, 16, 24, 0.78);
  --panel-strong: rgba(20, 20, 31, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.035);

  --text: #f6f7fb;
  --text-soft: #d8d9e5;
  --muted: #a4a7ba;
  --muted-2: #7d8195;

  --purple: #5051c7;
  --purple-bright: #7778ff;
  --purple-soft: rgba(80, 81, 199, 0.22);

  --red: #ff0000;
  --red-soft: rgba(255, 0, 0, 0.16);

  --green: #45d483;
  --green-soft: rgba(69, 212, 131, 0.16);

  --amber: #f6b94f;
  --amber-soft: rgba(246, 185, 79, 0.16);

  --blue: #5ba8ff;
  --blue-soft: rgba(91, 168, 255, 0.16);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.28);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --container: 1220px;
  --header-height: 78px;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(80, 81, 199, 0.18), transparent 32%),
    radial-gradient(circle at 90% 5%, rgba(255, 0, 0, 0.08), transparent 28%),
    linear-gradient(180deg, #050507 0%, #07070b 45%, #050507 100%);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

::selection {
  background: rgba(80, 81, 199, 0.75);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(119, 120, 255, 0.55);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.75rem) 0;
}

.section-border {
  border-top: 1px solid var(--border);
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fff;
  color: #050507;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.34;
  will-change: transform;
}

.orb-one {
  width: 32rem;
  height: 32rem;
  top: -12rem;
  left: -10rem;
  background: rgba(80, 81, 199, 0.6);
  animation: orbDriftOne 18s ease-in-out infinite alternate;
}

.orb-two {
  width: 26rem;
  height: 26rem;
  top: 18%;
  right: -10rem;
  background: rgba(255, 0, 0, 0.18);
  animation: orbDriftTwo 22s ease-in-out infinite alternate;
}

.orb-three {
  width: 28rem;
  height: 28rem;
  bottom: -15rem;
  left: 35%;
  background: rgba(80, 81, 199, 0.25);
  animation: orbDriftThree 20s ease-in-out infinite alternate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.5'/%3E%3C/svg%3E");
}

@keyframes orbDriftOne {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(7rem, 5rem, 0) scale(1.08); }
}

@keyframes orbDriftTwo {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-7rem, 7rem, 0) scale(1.1); }
}

@keyframes orbDriftThree {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5rem, -6rem, 0) scale(1.12); }
}

/* =========================================================
   REUSABLE
   ========================================================= */

.glass-panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(9, 9, 14, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    color 0.22s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  border-color: rgba(119, 120, 255, 0.52);
  background:
    linear-gradient(
      135deg,
      rgba(80, 81, 199, 1),
      rgba(93, 74, 210, 0.95) 58%,
      rgba(255, 0, 0, 0.34)
    );
  box-shadow:
    0 14px 40px rgba(80, 81, 199, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.button-primary:hover {
  border-color: rgba(140, 141, 255, 0.82);
  box-shadow:
    0 18px 46px rgba(80, 81, 199, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.button-full {
  width: 100%;
}

.gradient-text {
  color: transparent;
  background:
    linear-gradient(
      90deg,
      #ffffff 0%,
      #9d9eff 38%,
      #7778ff 58%,
      #ff5151 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
}

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading > p,
.split-heading > p {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.section-kicker {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--purple-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}

.split-heading h2 {
  margin-bottom: 0;
}

.split-heading > p {
  margin-bottom: 0;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 7, 0.46);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 7, 0.86);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, #5051c7 0%, #37388e 55%, #7f1025 100%);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(80, 81, 199, 0.16);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark::before {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.brand-mark::after {
  width: 5px;
  height: 22px;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(-35deg);
}

.brand-mark-core {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 0.26rem;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.22rem;
}

.desktop-nav a {
  padding: 0.6rem 0.72rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-contact {
  min-height: 42px;
  padding: 0.58rem 0.85rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
  transition:
    transform 0.24s var(--ease),
    opacity 0.18s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 7, 0.97);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.mobile-nav-inner {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.85rem;
}

.mobile-nav a:not(.button) {
  padding: 0.86rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 750;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding-top: clamp(4rem, 7vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  margin-bottom: 1.15rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--purple-bright);
  box-shadow:
    0 0 0 4px rgba(119, 120, 255, 0.11),
    0 0 16px rgba(119, 120, 255, 0.45);
}

.hero h1 {
  max-width: 10.5ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 66ch;
  margin-bottom: 1.55rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.45rem;
}

.hero-meta span {
  padding: 0.35rem 0.58rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem;
  font-weight: 750;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 4% 2% 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(80, 81, 199, 0.32), transparent 62%);
  filter: blur(24px);
}

.command-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
}

.command-topbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 50px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.command-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.command-dot:first-child {
  background: rgba(255, 82, 82, 0.72);
}

.command-dot:nth-child(2) {
  background: rgba(246, 185, 79, 0.72);
}

.command-dot:nth-child(3) {
  background: rgba(69, 212, 131, 0.72);
}

.command-title {
  margin-left: auto;
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.command-body {
  padding: 0.6rem 1.05rem 0.25rem;
}

.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.15rem;
  border-bottom: 1px solid var(--border);
}

.system-row:last-child {
  border-bottom: 0;
}

.system-row > div {
  min-width: 0;
}

.system-label {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.system-row strong {
  display: block;
  font-size: 0.95rem;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 25px;
  padding: 0.28rem 0.52rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.status-live,
.status-active {
  color: #a9f8ca;
  border-color: rgba(69, 212, 131, 0.22);
  background: var(--green-soft);
}

.status-rd {
  color: #c6c7ff;
  border-color: rgba(119, 120, 255, 0.24);
  background: rgba(119, 120, 255, 0.12);
}

.status-soon {
  color: #ffd78e;
  border-color: rgba(246, 185, 79, 0.24);
  background: var(--amber-soft);
}

.system-pulse {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.35rem;
  align-items: end;
  min-height: 70px;
  padding: 1rem 1.2rem 1.25rem;
  border-top: 1px solid var(--border);
}

.system-pulse span {
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--purple-bright), rgba(80, 81, 199, 0.16));
  animation: pulseBars 1.8s ease-in-out infinite;
}

.system-pulse span:nth-child(1) { height: 36%; animation-delay: 0s; }
.system-pulse span:nth-child(2) { height: 68%; animation-delay: 0.12s; }
.system-pulse span:nth-child(3) { height: 46%; animation-delay: 0.24s; }
.system-pulse span:nth-child(4) { height: 84%; animation-delay: 0.36s; }
.system-pulse span:nth-child(5) { height: 58%; animation-delay: 0.48s; }
.system-pulse span:nth-child(6) { height: 74%; animation-delay: 0.6s; }
.system-pulse span:nth-child(7) { height: 42%; animation-delay: 0.72s; }
.system-pulse span:nth-child(8) { height: 64%; animation-delay: 0.84s; }

@keyframes pulseBars {
  0%,
  100% {
    transform: scaleY(0.82);
    opacity: 0.62;
  }
  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
}

.strip-item {
  min-height: 128px;
  padding: 1.15rem;
  background: rgba(8, 8, 12, 0.92);
}

.strip-item strong {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 1rem;
}

.strip-item span {
  color: var(--muted);
  font-size: 0.87rem;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  position: relative;
  min-height: 260px;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(10, 10, 15, 0.68);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s var(--ease),
    background 0.24s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background:
    radial-gradient(circle at 10% 0%, rgba(80, 81, 199, 0.12), transparent 36%),
    rgba(12, 12, 18, 0.78);
}

.feature-index {
  display: inline-block;
  margin-bottom: 4.5rem;
  color: var(--purple-bright);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.28rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(80, 81, 199, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(10, 10, 15, 0.72);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.26s var(--ease),
    border-color 0.26s var(--ease),
    box-shadow 0.26s var(--ease);
}

.project-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.08), transparent 68%);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(119, 120, 255, 0.24);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 36px rgba(80, 81, 199, 0.06);
}

.project-featured {
  grid-column: span 2;
  min-height: 360px;
  background:
    radial-gradient(circle at 0% 0%, rgba(80, 81, 199, 0.2), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255, 0, 0, 0.08), transparent 28%),
    rgba(11, 11, 18, 0.82);
}

.project-featured h3 {
  font-size: clamp(2rem, 4vw, 3.4rem) !important;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-category {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--purple-bright);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.project-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.035em;
}

.project-description {
  max-width: 72ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1.3rem;
}

.project-tags span {
  padding: 0.34rem 0.52rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 750;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.45rem;
}

.project-note {
  color: var(--muted-2);
  font-size: 0.78rem;
}

.text-link {
  color: #bfc0ff;
  font-size: 0.84rem;
  font-weight: 850;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: #fff;
}

.link-muted {
  color: var(--muted-2);
  font-size: 0.8rem;
  font-weight: 750;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 390px;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(9, 9, 14, 0.72);
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s var(--ease),
    background 0.24s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background:
    radial-gradient(circle at 0% 0%, rgba(80, 81, 199, 0.11), transparent 30%),
    rgba(11, 11, 17, 0.82);
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 3rem;
  border: 1px solid rgba(119, 120, 255, 0.2);
  border-radius: 16px;
  color: #d2d3ff;
  background:
    linear-gradient(135deg, rgba(80, 81, 199, 0.35), rgba(255, 0, 0, 0.08));
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.91rem;
}

.service-card ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.83rem;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--purple-bright);
}

/* =========================================================
   TECHNOLOGY
   ========================================================= */

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-cloud span {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(9, 9, 14, 0.62);
  font-size: 0.87rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.tech-cloud span:hover {
  transform: translateY(-2px);
  border-color: rgba(119, 120, 255, 0.23);
  color: #fff;
}

/* =========================================================
   APPROACH
   ========================================================= */

.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.approach-layout .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  margin-bottom: 0;
}

.approach-list {
  display: grid;
}

.approach-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}

.approach-row:last-child {
  border-bottom: 1px solid var(--border);
}

.approach-row > span {
  color: var(--purple-bright);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
}

.approach-row h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.approach-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================================================
   ROADMAP
   ========================================================= */

.roadmap {
  position: relative;
  max-width: 930px;
  margin-inline: auto;
}

.roadmap-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 1px;
  background:
    linear-gradient(
      to bottom,
      rgba(119, 120, 255, 0.55),
      rgba(119, 120, 255, 0.11),
      transparent
    );
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1rem;
  padding-bottom: 2rem;
}

.roadmap-marker {
  position: relative;
  z-index: 2;
  width: 23px;
  height: 23px;
  margin-top: 0.2rem;
  border: 5px solid #09090d;
  border-radius: 999px;
  background: var(--purple-bright);
  box-shadow: 0 0 0 1px rgba(119, 120, 255, 0.25);
}

.roadmap-content {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 10, 15, 0.68);
}

.roadmap-content > span {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--purple-bright);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.roadmap-content h3 {
  margin-bottom: 0.38rem;
  font-size: 1.2rem;
}

.roadmap-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   TEAM
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  min-height: 230px;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(9, 9, 14, 0.72);
  box-shadow: var(--shadow-soft);
}

.team-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  border: 1px solid rgba(119, 120, 255, 0.22);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.25), transparent 25%),
    linear-gradient(135deg, #5051c7, #28295e 60%, #6a0f23);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.team-card h3 {
  margin: 0.18rem 0 0.12rem;
  font-size: 1.15rem;
}

.team-card div > span {
  color: var(--purple-bright);
  font-size: 0.78rem;
  font-weight: 850;
}

.team-card p {
  margin: 0.72rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact-copy h2 {
  max-width: 10ch;
  margin-bottom: 1.15rem;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contact-copy > p {
  max-width: 58ch;
  color: var(--muted);
}

.contact-points {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-points > div {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.contact-points strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.95rem;
}

.contact-points span {
  display: block;
  max-width: 52ch;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.contact-card {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
}

.field-group.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.field-wrap {
  margin-bottom: 0.9rem;
}

.field-wrap label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 850;
}

.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.field-wrap input,
.field-wrap select {
  min-height: 48px;
  padding: 0 0.85rem;
}

.field-wrap textarea {
  min-height: 160px;
  padding: 0.78rem 0.85rem;
  resize: vertical;
}

.field-wrap input::placeholder,
.field-wrap textarea::placeholder {
  color: rgba(164, 167, 186, 0.52);
}

.field-wrap input:focus,
.field-wrap select:focus,
.field-wrap textarea:focus {
  border-color: rgba(119, 120, 255, 0.48);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(80, 81, 199, 0.13);
}

.field-wrap select option {
  color: #fff;
  background: #0d0d13;
}

.form-status {
  min-height: 1.3rem;
  margin: 0.72rem 0 0;
  color: var(--muted-2);
  font-size: 0.8rem;
  font-weight: 700;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(80, 81, 199, 0.22), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(255, 0, 0, 0.09), transparent 30%),
    rgba(10, 10, 16, 0.78);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 5, 7, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(150px, 0.6fr));
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  max-width: 42ch;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
}

.footer-column h3 {
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer-column a {
  width: fit-content;
  color: var(--muted-2);
  font-size: 0.82rem;
  transition: color 0.18s ease;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.6rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.footer-disclaimer {
  text-align: right;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.72s var(--ease),
    transform 0.72s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   LEGAL PAGE SUPPORT
   Reused by the legal HTML files coming next.
   ========================================================= */

.legal-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
}

.legal-hero h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-hero p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.legal-meta span {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
  font-weight: 750;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 10, 15, 0.62);
}

.legal-sidebar strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}

.legal-sidebar a {
  display: block;
  padding: 0.42rem 0;
  color: var(--muted-2);
  font-size: 0.8rem;
}

.legal-sidebar a:hover {
  color: var(--text);
}

.legal-content {
  min-width: 0;
}

.legal-section {
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.legal-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.35rem;
}

.legal-section li {
  margin: 0.45rem 0;
}

.legal-callout {
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid rgba(119, 120, 255, 0.18);
  border-radius: 14px;
  background: rgba(80, 81, 199, 0.08);
  color: var(--text-soft);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .hero-visual {
    max-width: 760px;
  }

  .command-card {
    transform: none;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    max-width: 820px;
  }

  .footer-grid {
    grid-template-columns: 1.25fr repeat(3, 0.75fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  .nav-contact {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .split-heading h2 {
    margin-bottom: 0.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-column: span 1;
  }

  .approach-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .approach-layout .section-heading {
    position: static;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    gap: 0.36rem;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .strip-item {
    min-height: auto;
  }

  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-index {
    margin-bottom: 2.5rem;
  }

  .service-card {
    min-height: auto;
  }

  .service-icon {
    margin-bottom: 2rem;
  }

  .project-top,
  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card,
  .project-featured {
    min-height: auto;
  }

  .field-group.two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .system-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1rem;
  }
}

/* =========================================================
   REDUCED MOTION / ACCESSIBILITY
   ========================================================= */

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
