/* ── AskMe design tokens ─────────────────────────────────────────────── */
:root {
  --background: #000000;
  --foreground: #eef0fb;
  --bone: #eef0fb;
  --bone-dim: #b9bcd6;
  --brand: #2656ff;
  --brand-dim: #6b8cff;
  --charcoal: #0a1240;
  --card: rgb(238 240 251 / 0.05);
  --ring: rgb(238 240 251 / 0.1);
  --container-max: 72rem;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: auto;
  overflow-y: scroll;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-tap-highlight-color: transparent;
  background: var(--background);
  color: var(--foreground);
  color-scheme: dark;
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: 15px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-dim);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: var(--bone);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
}

/* ── Atmospheric layers (from AskMe app.css) ───────────────────────────── */
.atmosphere {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
}

.scan-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(rgb(38 86 255 / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(38 86 255 / 0.09) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.35;
  animation: scan-grid-drift 6s linear infinite;
  -webkit-mask-image: radial-gradient(125% 100% at 50% 45%, #000 28%, transparent 88%);
  mask-image: radial-gradient(125% 100% at 50% 45%, #000 28%, transparent 88%);
}

@keyframes scan-grid-drift {
  to {
    background-position: 0 30px, 30px 0;
  }
}

.scan-radar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: conic-gradient(
    from 0deg at 50% 35%,
    transparent 0deg,
    transparent 296deg,
    rgb(38 86 255 / 0.05) 320deg,
    rgb(110 144 255 / 0.18) 352deg,
    transparent 360deg
  );
  opacity: 0.45;
  animation: scan-radar-spin 4s linear infinite;
}

@keyframes scan-radar-spin {
  to {
    transform: rotate(360deg);
  }
}

.scan-aura {
  position: absolute;
  top: -10%;
  right: -10%;
  bottom: -10%;
  left: -10%;
  background:
    radial-gradient(38% 34% at 16% 22%, rgb(140 100 255 / 0.5), transparent 72%),
    radial-gradient(42% 38% at 84% 26%, rgb(38 86 255 / 0.5), transparent 72%),
    radial-gradient(46% 42% at 78% 82%, rgb(110 200 255 / 0.45), transparent 72%),
    radial-gradient(40% 40% at 20% 82%, rgb(70 120 255 / 0.45), transparent 72%);
  filter: blur(34px);
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(closest-side at 50% 44%, transparent 26%, #000 78%);
  mask-image: radial-gradient(closest-side at 50% 44%, transparent 26%, #000 78%);
  animation: aura-drift 14s ease-in-out infinite alternate;
}

@keyframes aura-drift {
  from {
    transform: scale(1) rotate(0deg);
    opacity: 0.82;
  }
  to {
    transform: scale(1.12) rotate(6deg);
    opacity: 1;
  }
}

.scanlines {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgb(38 86 255 / 0.06) 0px,
    rgb(38 86 255 / 0.06) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.25;
  animation: scan-drift 7s linear infinite;
}

@keyframes scan-drift {
  to {
    background-position: 0 -240px;
  }
}

.scan-grade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(38 86 255 / 0.18), transparent 60%),
    linear-gradient(
      to bottom,
      rgb(6 14 48 / 0.35) 0%,
      transparent 30%,
      transparent 60%,
      rgb(2 8 30 / 0.82) 100%
    );
  opacity: 0.4;
}

/* ── Flare borders (static — cross-browser safe) ─────────────────────── */
.flare-brand {
  position: relative;
  border: 1px solid rgb(38 86 255 / 0.4);
  box-shadow:
    0 0 28px -4px rgb(38 86 255 / 0.3),
    inset 0 1px 0 rgb(122 158 255 / 0.12);
}

.flare-green {
  position: relative;
  border: 1px solid rgb(34 197 94 / 0.35);
  box-shadow:
    0 0 28px -4px rgb(34 197 94 / 0.2),
    inset 0 1px 0 rgb(74 222 128 / 0.1);
}

/* ── Card shimmer (AskMe) ──────────────────────────────────────────────── */
@keyframes card-shimmer {
  0% {
    transform: translateX(-140%);
  }
  88% {
    transform: translateX(140%);
  }
  100% {
    transform: translateX(140%);
  }
}

.card-shimmer {
  position: relative;
  overflow: hidden;
}

.card-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgb(245 245 247 / 0.04) 45%,
    rgb(245 245 247 / 0.1) 50%,
    rgb(245 245 247 / 0.04) 55%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: card-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.7;
}

/* ── HUD animations ──────────────────────────────────────────────────── */
@keyframes hud-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hud-in {
  animation: hud-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--hud-delay, 0s);
}

@keyframes hud-sweep {
  0% {
    transform: translateY(-12%);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(112%);
    opacity: 0;
  }
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section--alt {
  background: rgb(10 18 36 / 0.45);
  border-top: 1px solid var(--ring);
  border-bottom: 1px solid var(--ring);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head--split {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.section-head__aside {
  margin: 0;
  max-width: 28rem;
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dim);
}

.section-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--bone);
}

.section-title em {
  font-style: normal;
  color: var(--brand-dim);
}

.body-text {
  margin: 0.75rem 0 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  color: var(--bone-dim);
}

.body-text strong {
  color: var(--bone);
  font-weight: 600;
}

.text-brand-dim {
  color: var(--brand-dim);
  font-weight: 600;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: backdrop-filter 0.25s, background 0.25s, -webkit-backdrop-filter 0.25s;
}

.site-header.is-scrolled {
  background: rgb(0 0 0 / 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
}

.nav__logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-decoration: none;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav__links {
  display: none;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.nav__links li {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgb(238 240 251 / 0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__links a:hover {
  color: var(--bone);
}

.nav__pill {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(238 240 251 / 0.7);
  text-decoration: none;
  border: 1px solid rgb(238 240 251 / 0.2);
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color 0.15s, transform 0.15s;
}

.nav__pill:hover {
  color: var(--bone);
}

.nav__pill:active {
  transform: scale(0.95);
}

.nav-progress {
  height: 3px;
  background: rgb(238 240 251 / 0.1);
}

.nav-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--brand);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding-top: 5.5rem;
  padding-bottom: 2rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero__visual {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 14rem;
  height: 14rem;
  max-width: 100%;
  margin-inline: auto;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}

.hero__orb--1 {
  width: 60%;
  height: 40%;
  top: 20%;
  left: 10%;
  background: rgb(38 86 255 / 0.35);
  animation: aura-drift 8s ease-in-out infinite alternate;
}

.hero__orb--2 {
  width: 50%;
  height: 35%;
  bottom: 25%;
  right: 5%;
  background: rgb(140 100 255 / 0.3);
  animation: aura-drift 10s ease-in-out infinite alternate-reverse;
}

.hero__ring {
  position: absolute;
  width: 72%;
  max-width: 16rem;
  height: 72%;
  max-height: 16rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(38 86 255 / 0.25);
  animation: face-guide-breathe 2.6s ease-in-out infinite;
}

@keyframes face-guide-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.hero__avatar {
  position: relative;
  width: 14rem;
  height: 14rem;
  -webkit-flex: 0 0 14rem;
  flex: 0 0 14rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--charcoal), #000);
  border: 1.5px solid rgb(38 86 255 / 0.45);
  box-shadow:
    0 0 28px -4px rgb(38 86 255 / 0.45),
    0 16px 44px -18px rgb(0 0 0 / 0.7);
  overflow: hidden;
}

.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 15%;
  vertical-align: top;
}

.hero__scan-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-dim), transparent);
  animation: hud-sweep 2.8s ease-in-out infinite;
}

.hero__copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__title {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--bone);
  letter-spacing: -0.02em;
}

.hero__title em {
  display: block;
  font-style: normal;
  color: var(--brand-dim);
}

.hero__lead {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--bone-dim);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__actions .btn-primary,
.hero__actions .btn-secondary {
  margin-top: 0;
  width: 100%;
}

.hero__stats {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  text-align: left;
}

.stat-viz__bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgb(238 240 251 / 0.1);
}

.stat-viz__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w, 89%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(38 86 255 / 0.4), var(--brand));
  animation: bar-grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes bar-grow {
  from {
    width: 0;
  }
}

.stat-viz__dot {
  position: absolute;
  left: var(--w, 89%);
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--background);
  transform: translate(-50%, -50%);
}

.stat-viz__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--bone-dim);
}

.stat-viz__meta strong {
  color: var(--bone);
  font-weight: 600;
}

/* ── Buttons (AskMe primary) ─────────────────────────────────────────── */
.btn-primary {
  display: -webkit-inline-flex;
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 14px 36px -14px rgb(38 86 255 / 0.55),
    0 8px 22px -10px rgb(0 0 0 / 0.35);
  transition: transform 0.15s;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary--inline {
  width: auto;
  display: inline-flex;
  margin-top: 1.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgb(238 240 251 / 0.28);
  background: rgb(238 240 251 / 0.1);
  color: var(--bone);
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 10px 28px -12px rgb(0 0 0 / 0.6),
    inset 0 1px 0 rgb(245 245 247 / 0.08);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.btn-secondary:hover {
  border-color: rgb(107 140 255 / 0.55);
  background: rgb(38 86 255 / 0.12);
  color: var(--bone);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--ring);
  box-shadow:
    0 10px 28px -12px rgb(0 0 0 / 0.6),
    inset 0 1px 0 rgb(245 245 247 / 0.06);
}

.intro-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #0a1124;
  box-shadow:
    0 0 28px -4px rgb(38 86 255 / 0.45),
    0 16px 44px -18px rgb(0 0 0 / 0.7);
}

.about__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.about__aside-title {
  margin: 0 0 1rem;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dim);
}

.about__metric {
  margin-top: 1.25rem;
  padding: 1.25rem;
  text-align: center;
}

.about__metric-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-dim);
}

.about__metric-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--bone-dim);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--ring);
  font-size: 13px;
  font-weight: 500;
  color: var(--bone);
}

/* ── Capabilities ────────────────────────────────────────────────────── */
.capability-grid {
  display: grid;
  gap: 1rem;
}

.capability {
  padding: 1.5rem;
  height: 100%;
}

.capability h3 {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: var(--bone);
}

.capability > p {
  margin: 0.375rem 0 0;
  max-width: 22rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--bone-dim);
}

/* EthnicityViz port */
.ethnicity-viz {
  margin-top: 1rem;
}

.ethnicity-viz__bar {
  display: flex;
  gap: 4px;
  height: 12px;
}

.ethnicity-viz__bar .seg {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 999px;
  animation: bar-grow 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.seg-1 { background: var(--brand); animation-delay: 0.1s; }
.seg-2 { background: rgb(38 86 255 / 0.6); animation-delay: 0.2s; }
.seg-3 { background: rgb(38 86 255 / 0.35); animation-delay: 0.3s; }
.seg-4 { background: rgb(38 86 255 / 0.2); animation-delay: 0.4s; }

.ethnicity-viz__label {
  margin: 0.625rem 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--bone-dim);
}

.ethnicity-viz__label strong {
  color: var(--bone);
  font-weight: 600;
}

/* GlobalViz port */
.global-viz {
  margin-top: 1rem;
}

.global-viz__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgb(238 240 251 / 0.1);
}

.global-viz__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w, 89%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(38 86 255 / 0.4), var(--brand));
  animation: bar-grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.global-viz__dot {
  position: absolute;
  left: var(--w, 89%);
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--background);
  transform: translate(-50%, -50%);
}

.global-viz__label {
  margin: 0.625rem 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--bone-dim);
}

.global-viz__label strong {
  color: var(--bone);
}

/* ── Timeline ──────────────────────────────────────────────────────────── */
.timeline-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  height: 100%;
}

.timeline__num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: rgb(107 140 255 / 0.7);
}

.timeline__item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--bone);
}

.timeline__meta {
  margin: 0.25rem 0 0.75rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-dim);
}

.timeline__item ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--bone-dim);
}

.timeline__item li + li {
  margin-top: 0.35rem;
}

/* ── Marquee ───────────────────────────────────────────────────────────── */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-wrap {
  overflow: hidden;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--ring);
  border-bottom: 1px solid var(--ring);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(185 188 214 / 0.55);
  white-space: nowrap;
}

/* ── Projects ────────────────────────────────────────────────────────── */
.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: linear-gradient(160deg, #0a1124 0%, #000 55%, #0a1838 100%);
  display: flex;
  flex-direction: column;
}

.project-card__glow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(ellipse at 50% 0%, rgb(38 86 255 / 0.25), transparent 60%);
  pointer-events: none;
}

.project-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: rgb(107 140 255 / 0.7);
}

.project-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  margin-top: auto;
  background: linear-gradient(
    to bottom,
    rgb(8 14 30 / 0.15) 0%,
    rgb(8 14 30 / 0.55) 55%,
    rgb(8 14 30 / 0.95) 100%
  );
}

.project-card__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgb(38 86 255 / 0.15);
  border: 1px solid rgb(38 86 255 / 0.25);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dim);
  width: fit-content;
}

.project-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--bone);
}

.project-card p {
  margin: 0.5rem 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--bone-dim);
}

.project-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Reviews ───────────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  gap: 1rem;
}

.review {
  margin: 0;
  padding: 1.5rem;
  height: 100%;
}

.review p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--bone-dim);
}

.review footer {
  margin-top: 0.75rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--bone);
}

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  background: #0a1124;
  box-shadow:
    0 0 28px -4px rgb(34 197 94 / 0.2),
    0 16px 44px -18px rgb(0 0 0 / 0.7);
}

.contact-links {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.contact-chip {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgb(238 240 251 / 0.06);
  border: 1px solid rgb(238 240 251 / 0.15);
  text-decoration: none;
  color: var(--bone);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.contact-chip:hover {
  background: rgb(238 240 251 / 0.1);
  border-color: rgb(38 86 255 / 0.35);
  color: var(--bone);
}

.contact-chip__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dim);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--ring);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 12px;
  font-weight: 500;
  color: rgb(185 188 214 / 0.7);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-dim);
}

/* ── Scroll reveal (visible by default; JS adds motion) ─────────────────── */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
}

html.js .reveal {
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .hud-in,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee {
    animation: none;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero__actions .btn-primary,
  .hero__actions .btn-secondary {
    width: auto;
    min-width: 11rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid .project-card:first-child {
    grid-column: span 2;
    min-height: 16rem;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .nav__links {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
  }

  .hero__grid {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .hero__visual {
    width: 14rem;
    height: 14rem;
    margin-inline: 0;
  }

  .hero__copy {
    text-align: left;
  }

  .hero__lead {
    margin-inline: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .about__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
  }

  .capability-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .section-head--split {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-grid .project-card:first-child {
    grid-column: auto;
    min-height: 20rem;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .hero__title em {
    display: inline;
  }
}
