/* ============================================================
   AHMAD NAEEM - Enterprise AI Architect
   Portfolio design system
   Palette: Ink / Innovatek Emerald / Cyan lift  (aurora identity)
   ============================================================ */

:root {
  /* Core */
  --ink:         #0a0b0d;
  --ink-2:       #0d0f12;
  --surface:     #141619;
  --surface-2:   #1a1d21;
  --border:      #262a31;
  --text:        #eceef1;
  --dim:         #99a0aa;
  --faint:       #61676f;
  --white:       #ffffff;

  --brand:       #0c8f6c;
  --brand-2:     #0aa67a;
  --cyan:        #0d9bbd;
  --aurora:      linear-gradient(120deg, #0aa67a, #0c8f6c 45%, #0d9bbd);

  /* Derived */
  --line:        rgba(236, 238, 241, 0.08);
  --line-strong: rgba(236, 238, 241, 0.16);
  --card:        rgba(20, 22, 25, 0.55);
  --card-hi:     rgba(26, 29, 33, 0.75);
  --ink-1:       var(--text);
  --ink-mid:     rgba(236, 238, 241, 0.72);
  --ink-low:     rgba(236, 238, 241, 0.56);

  --shadow-sm:   0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg:   0 40px 80px -30px rgba(0, 0, 0, 0.8);
  --glow-brand:  0 30px 80px -24px rgba(10, 166, 122, 0.4);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--ink-1);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

::selection { background: var(--brand-2); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ----------------------- Ambient background ---------------------- */
/* Grain - non-blended fixed layer (cheap; no full-page recomposite on scroll) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.035;
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Aurora glows - promoted to isolated layers so they don't repaint on scroll */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  transform: translateZ(0);
}
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  transform: translateZ(0);
}
.aurora .a1 { width: 60vw; height: 60vw; top: -22vw; right: -14vw;
  background: radial-gradient(circle, rgba(10, 166, 122, 0.22), transparent 62%); }
.aurora .a2 { width: 46vw; height: 46vw; top: 42vh; left: -18vw;
  background: radial-gradient(circle, rgba(13, 155, 189, 0.14), transparent 64%); opacity: 0.8; }
.aurora .a3 { width: 40vw; height: 40vw; bottom: -12vw; right: -8vw;
  background: radial-gradient(circle, rgba(12, 143, 108, 0.16), transparent 66%); }

.page { position: relative; z-index: 2; }

/* ------------------------- Layout helpers ------------------------ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--brand-2);
  display: inline-block; opacity: 0.9;
}

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { display: inline-flex; }

.section-title {
  font-weight: 650;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.035em; margin-top: 18px; color: var(--white);
}
.section-sub { margin-top: 20px; font-size: 1.08rem; color: var(--ink-mid); max-width: 62ch; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.grn { color: var(--brand-2); }
.grad {
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ----------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; font-weight: 600; font-size: 0.98rem;
  letter-spacing: -0.01em; transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.35s, color 0.3s, border-color 0.3s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn--primary {
  background: var(--aurora); color: var(--ink);
  box-shadow: 0 12px 30px -14px rgba(10, 166, 122, 0.65);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--glow-brand); color: var(--ink); filter: saturate(1.15) brightness(1.06); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand-2); background: rgba(10, 166, 122, 0.07); transform: translateY(-3px); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ----------------------- Scroll progress bar --------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--aurora);
  z-index: 100; transition: width 0.1s linear;
}

/* ------------------------------- Nav ----------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(11px) saturate(135%);
  -webkit-backdrop-filter: blur(11px) saturate(135%);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; }
.brand__word { font-weight: 750; font-size: 1.22rem; letter-spacing: -0.03em; color: var(--white); }
.brand__word i { font-style: normal; color: var(--brand-2); }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 0.92rem; font-weight: 550; color: var(--ink-mid);
  transition: color 0.25s; position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--aurora); border-radius: 2px; transition: width 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__ctaBtn { padding: 12px 22px; font-size: 0.9rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 82vw);
    background: rgba(13, 15, 18, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; gap: 8px; padding: 96px 34px 34px;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    border-left: 1px solid var(--line); margin-left: 0; z-index: 1;
    visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .nav__links a { font-size: 1.15rem; padding: 12px 0; }
  .nav.open .nav__links { transform: translateX(0); visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
  .nav__ctaBtn { display: none; }
  .nav__toggle { display: flex; margin-left: auto; position: relative; z-index: 2; }
}

/* ------------------------------- Hero ---------------------------- */
.hero { padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero__orb--1 { width: 420px; height: 420px; top: -80px; right: 6vw;
  background: radial-gradient(circle, rgba(10, 166, 122, 0.2), transparent 65%); }
.hero__orb--2 { width: 320px; height: 320px; bottom: -60px; left: -4vw;
  background: radial-gradient(circle, rgba(13, 155, 189, 0.14), transparent 65%); }
.hero__beam {
  position: absolute; top: 0; left: 50%; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(10, 166, 122, 0.25) 30%, transparent 80%);
}
.hero__gridlines {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(236, 238, 241, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 238, 241, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(75% 60% at 50% 35%, black, transparent);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 35%, black, transparent);
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__eyebrow { margin-bottom: 26px; }
.eyebrow__pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); position: relative;
}
.eyebrow__pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--brand-2); opacity: 0.7;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero__title {
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02;
  letter-spacing: -0.042em; color: var(--white);
}
.hero__title em {
  font-style: normal;
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line__in {
  display: inline-block; transform: translateY(110%);
  animation: lineUp 0.9s var(--ease) forwards; animation-delay: var(--d, 0s);
}
@keyframes lineUp { to { transform: translateY(0); } }

.hero__sub { margin-top: 28px; font-size: 1.14rem; color: var(--ink-mid); max-width: 54ch; }
.hero__sub strong { color: var(--text); font-weight: 650; }

.hero__actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero__meta { display: flex; align-items: center; gap: 22px; margin-top: 46px; flex-wrap: wrap; }
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-item b { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em; color: var(--white); }
.hero__meta-item span { font-size: 0.82rem; color: var(--ink-low); font-weight: 500; }
.hero__meta-div { width: 1px; height: 40px; background: var(--line-strong); }

.hero__scroll {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(48px, 7vw, 84px);
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-low);
  transition: color 0.3s;
}
.hero__scroll svg { width: 16px; height: 16px; animation: bounceY 2.2s var(--ease) infinite; }
.hero__scroll:hover { color: var(--brand-2); }
@keyframes bounceY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* entrance helpers */
.anim-up { opacity: 0; transform: translateY(26px); animation: fadeUp 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ------------------------------ Portrait ------------------------- */
.portrait { position: relative; }
.anim-portrait { opacity: 0; transform: translateY(30px) scale(0.97); animation: portraitIn 1.1s var(--ease) forwards; animation-delay: var(--d, 0.3s); }
@keyframes portraitIn { to { opacity: 1; transform: translateY(0) scale(1); } }

.portrait__scene { position: relative; max-width: 470px; margin: 0 auto; transition: transform 0.2s ease-out; }

/* Background removed: he stands in front of a themed aurora arch */
.portrait__stage {
  position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1.14;
  margin: 0 auto; z-index: 1;
}
.portrait__archbg {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78%;
  border-radius: 999px 999px 28px 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(130% 110% at 50% 0%, rgba(10, 166, 122, 0.26), transparent 58%),
    radial-gradient(90% 70% at 78% 18%, rgba(13, 155, 189, 0.14), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--ink-2));
  box-shadow: var(--shadow-lg), 0 24px 90px -30px rgba(10, 166, 122, 0.35);
  overflow: hidden;
}
.portrait__archbg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(236, 238, 241, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000, transparent 75%);
}
/* the cutout: head breaks above the arch, base melts into it */
.portrait__cut {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: bottom center; z-index: 2;
  will-change: transform;
  filter: saturate(0.98) contrast(1.03)
          drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 34px rgba(10, 166, 122, 0.28));
  -webkit-mask-image: linear-gradient(180deg, #000 88%, rgba(0, 0, 0, 0.4) 97%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 88%, rgba(0, 0, 0, 0.4) 97%, transparent 100%);
}

.portrait__glow {
  position: absolute; inset: 8% -6% -4% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(10, 166, 122, 0.28), transparent 70%);
  filter: blur(30px);
}
.portrait__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(10, 166, 122, 0.28); }
.portrait__ring--1 { width: 118%; height: 118%; top: -9%; left: -9%; animation: spin 34s linear infinite; border-style: dashed; opacity: 0.5; }
.portrait__ring--2 { width: 132%; height: 132%; top: -16%; left: -16%; opacity: 0.22; }
@keyframes spin { to { transform: rotate(360deg); } }

.portrait__dots {
  position: absolute; width: 130px; height: 130px; right: -34px; bottom: 40px; z-index: -1; opacity: 0.6;
  background-image: radial-gradient(rgba(10, 166, 122, 0.55) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
/* Masthead: AHMAD lives BEHIND him (depth), NAEEM is printed across his chest (front) */
.portrait__mast, .portrait__chest {
  position: absolute; inset: 0; pointer-events: none; user-select: none;
}
.portrait__mast { z-index: 1; }
.portrait__chest { z-index: 3; }
.portrait__mast b, .portrait__chest b {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-weight: 800; letter-spacing: 0.1em; line-height: 1; white-space: nowrap;
  font-size: clamp(3.4rem, 7.4vw, 5.9rem);
  animation: mastIn 1.1s var(--ease) 0.75s backwards;
}
.portrait__mast b {
  top: 6.5%;
  background: linear-gradient(180deg, rgba(236, 238, 241, 0.95), rgba(236, 238, 241, 0.32));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.portrait__chest { filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(10, 166, 122, 0.35)); }
.portrait__chest b {
  top: 79%; left: calc(66% + 48px); animation-delay: 0.95s;
  font-size: clamp(2.9rem, 6.3vw, 5rem);
  background: linear-gradient(180deg, #3ecf9a, rgba(13, 155, 189, 0.75));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes mastIn { from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); } }
/* thin scanner arc circling behind his head */
.portrait__scan {
  position: absolute; width: 82%; aspect-ratio: 1 / 1; top: 4%; left: 9%;
  border-radius: 50%; z-index: 1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 292deg, rgba(62, 207, 154, 0.65) 328deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin 9s linear infinite;
}

.portrait__fallback {
  position: absolute; inset-inline: 0; bottom: 0; height: 78%;
  border-radius: 999px 999px 28px 28px; overflow: hidden;
  display: grid; place-content: center; gap: 6px; text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
}
.portrait__mono {
  font-weight: 800; font-size: 4rem; letter-spacing: -0.04em;
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.portrait__nm { font-weight: 700; font-size: 1.2rem; color: var(--white); }
.portrait__rl { font-size: 0.85rem; color: var(--dim); }

.portrait__badge {
  position: absolute; top: 25%; left: -14px; z-index: 5;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(13, 15, 18, 0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 10px 16px; font-size: 0.82rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.portrait__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(10, 166, 122, 0.18); animation: blink 2.4s ease infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.portrait__chip {
  position: absolute; z-index: 5;
  background: rgba(13, 15, 18, 0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 12px 18px; display: flex; flex-direction: column; gap: 1px;
  box-shadow: var(--shadow-sm);
}
.portrait__chip b { font-size: 1.02rem; font-weight: 750; letter-spacing: -0.02em; color: var(--white); white-space: nowrap; }
.portrait__chip span { font-size: 0.74rem; color: var(--dim); font-weight: 500; white-space: nowrap; }
.portrait__chip--1 { right: -20px; top: 26%; }
.portrait__chip--1 b {
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.portrait__chip--2 { left: 4%; bottom: -24px; flex-direction: row; align-items: center; gap: 8px; }
.portrait__chip--2 b { color: var(--brand-2); }

.float { animation: floatY 5.5s ease-in-out infinite; }
.float.d1 { animation-delay: 1.4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { order: -1; }
  .portrait__scene { max-width: 340px; }
  .portrait__tag { display: none; }
  .portrait__chip--1 { right: -8px; }
  .portrait__chip--2 { left: 4%; }
  .portrait__badge { left: -6px; }
  .portrait__chest b { left: 50%; top: 82%; font-size: clamp(2rem, 8.5vw, 3rem); letter-spacing: 0.06em; }
  .portrait__mast b { font-size: clamp(2.6rem, 10.5vw, 3.9rem); }
}

/* ------------------------------ Marquee -------------------------- */
.marquee { padding: 34px 0 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee__label { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-low); margin-bottom: 22px; font-weight: 600; }
.marquee__track {
  display: flex; gap: 64px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink-low);
  white-space: nowrap; transition: color 0.3s; display: inline-flex; align-items: center; gap: 14px;
}
.marquee__track span svg {
  width: 26px; height: 26px; flex-shrink: 0;
  color: var(--brand-2); opacity: 0.75;
}
.marquee__track span::after { content: "✦"; font-size: 0.8rem; color: rgba(10, 166, 122, 0.5); margin-left: 50px; }
.marquee__track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------- Stats --------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.3s, background 0.3s;
}
.stat:hover { border-color: rgba(10, 166, 122, 0.4); background: var(--card-hi); }
.stat__ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(10, 166, 122, 0.1); color: var(--brand-2); margin-bottom: 16px;
}
.stat__ic svg { width: 22px; height: 22px; }
.stat b { font-size: 2.5rem; font-weight: 780; letter-spacing: -0.04em; color: var(--white); line-height: 1.1; }
.stat span { font-weight: 600; color: var(--text); margin-top: 2px; }
.stat small { color: var(--ink-low); font-size: 0.86rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* ------------------------------- About --------------------------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about__name { margin-top: 14px; }
.about__tag { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; color: var(--text); margin: 18px 0 22px; }
.about__p { color: var(--ink-mid); margin-bottom: 16px; }
.about__p strong { color: var(--text); font-weight: 650; }
.about__punch { font-size: 1.55rem; font-weight: 750; letter-spacing: -0.03em; color: var(--white); margin-top: 28px; }
.about__body { padding-top: clamp(0px, 4vw, 58px); }
.about__body p { color: var(--ink-mid); margin-bottom: 18px; }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 500; }
.about__list svg { width: 20px; height: 20px; color: var(--brand-2); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } .about__body { padding-top: 0; } }

/* ------------------------------ Services ------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
  cursor: pointer;
}
.svc:hover { border-color: rgba(10, 166, 122, 0.45); background: var(--card-hi); }
.svc__ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(10, 166, 122, 0.1); color: var(--brand-2); margin-bottom: 8px;
  transition: background 0.3s, color 0.3s;
}
.svc:hover .svc__ic { background: var(--aurora); color: var(--ink); }
.svc__ic svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.svc p { font-size: 0.95rem; color: var(--ink-mid); flex-grow: 1; }
.svc__link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 650;
  color: var(--brand-2); margin-top: 6px;
}
.svc__link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.svc:hover .svc__link svg { transform: translateX(4px); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* ----------------------------- Case studies ---------------------- */
.cases { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.case {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 60px);
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 4vw, 52px); align-items: center;
  transition: border-color 0.3s;
}
.case:hover { border-color: rgba(10, 166, 122, 0.35); }
.case--flip .case__visual { order: 2; }
.case--flip .case__body { order: 1; }

.case__visual { min-width: 0; }
.case__panel {
  background: linear-gradient(165deg, var(--surface-2), var(--ink-2));
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 30px 28px; position: relative; overflow: hidden;
}
.case__panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--aurora); opacity: 0.85;
}
.case__tagline {
  display: inline-block; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 16px;
}
.case__big {
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em;
  color: var(--white); line-height: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.case__arrow { font-style: normal; color: var(--brand-2); font-weight: 400; }
.case__caption { font-size: 0.88rem; color: var(--ink-low); margin-top: 10px; }

.case__bars { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.case__bar span { display: block; height: 12px; border-radius: 8px; background: var(--surface); position: relative; overflow: hidden; }
.case__bar span::after {
  content: ""; position: absolute; inset: 0; width: var(--w, 50%);
  background: var(--faint); border-radius: 8px;
}
.case__bar--after span::after { background: var(--aurora); }
.case__bar em { font-style: normal; font-size: 0.76rem; color: var(--ink-low); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 6px; }

.case__chat { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.case__msg {
  align-self: flex-start; max-width: 85%;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 14px 14px 14px 4px; padding: 12px 16px;
  font-size: 0.88rem; color: var(--ink-mid);
}
.case__msg--ai {
  align-self: flex-end; border-radius: 14px 14px 4px 14px;
  background: rgba(10, 166, 122, 0.1); border-color: rgba(10, 166, 122, 0.3);
  color: var(--text);
}

.case__search { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.case__query {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 16px; font-size: 0.88rem; color: var(--text); font-weight: 550;
}
.case__query svg { width: 16px; height: 16px; color: var(--brand-2); flex-shrink: 0; margin-top: 2px; }
.case__answer {
  background: rgba(10, 166, 122, 0.08); border: 1px solid rgba(10, 166, 122, 0.25);
  border-radius: 12px; padding: 13px 16px; font-size: 0.86rem; color: var(--ink-mid);
}
.case__answer b { display: block; margin-top: 8px; color: var(--brand-2); font-size: 0.78rem; font-weight: 650; }

.case__body { min-width: 0; }
.case__num {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; color: var(--brand-2);
  display: inline-block; margin-bottom: 14px;
}
.case__body h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 720; letter-spacing: -0.03em; color: var(--white); line-height: 1.2; }
.case__role { font-size: 0.86rem; font-weight: 600; color: var(--ink-low); margin: 10px 0 16px; letter-spacing: 0.02em; }
.case__body > p:not(.case__role) { color: var(--ink-mid); margin-bottom: 14px; font-size: 0.99rem; }

.case__results { display: flex; gap: 28px; margin: 22px 0 20px; flex-wrap: wrap; }
.case__res { display: flex; flex-direction: column; }
.case__res b { font-size: 1.5rem; font-weight: 780; letter-spacing: -0.03em; color: var(--brand-2); }
.case__res span { font-size: 0.82rem; color: var(--ink-low); }

.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags span {
  font-size: 0.76rem; font-weight: 600; color: var(--dim);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px 13px;
  transition: color 0.3s, border-color 0.3s;
}
.case__tags span:hover { color: var(--brand-2); border-color: rgba(10, 166, 122, 0.4); }

@media (max-width: 900px) {
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__visual { order: 1; }
  .case--flip .case__body { order: 2; }
}

/* --------------------------- Founder / products ------------------- */
.founder { background: linear-gradient(to bottom, transparent, rgba(13, 15, 18, 0.6) 20%, rgba(13, 15, 18, 0.6) 80%, transparent); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.3s, background 0.3s;
}
.product:hover { border-color: rgba(10, 166, 122, 0.45); background: var(--card-hi); }
.product__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.product__mark {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em;
  background: var(--aurora); color: var(--ink);
}
.product__mark--bx { background: linear-gradient(135deg, #10131a, #1b2334); color: var(--white); border: 1px solid rgba(90, 140, 255, 0.35); }
.product__mark { overflow: hidden; }
.product__mark--img { background: #0d0f12; border: 1px solid var(--line-strong); padding: 0; }
.product__mark--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__mark--mv svg { width: 26px; height: 26px; }
.product__mark--nx { background: linear-gradient(135deg, #0aa67a, #0d9bbd); }
.product__mark--mv { background: linear-gradient(135deg, #12a574, #0d9bbd); }
.product__live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2);
}
.product__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); animation: blink 2.4s ease infinite; }
.product h3 { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; color: var(--white); }
.product__tag { font-size: 0.84rem; font-weight: 600; color: var(--brand-2); margin-top: -6px; }
.product > p:not(.product__tag) { font-size: 0.94rem; color: var(--ink-mid); flex-grow: 1; }
.product__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 0.86rem; font-weight: 650; color: var(--dim); transition: color 0.3s;
}
.product__link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.product:hover .product__link { color: var(--brand-2); }
.product:hover .product__link svg { transform: translate(3px, -3px); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

/* ------------------------------ Process --------------------------- */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  border-top: 1px solid var(--line-strong); padding-top: 24px; position: relative;
}
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px;
  background: var(--aurora);
}
.step__n {
  font-size: 0.85rem; font-weight: 750; letter-spacing: 0.1em; color: var(--brand-2);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em; color: var(--white); margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--ink-mid); }
@media (max-width: 980px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process__grid { grid-template-columns: 1fr; } }

/* ------------------------------- Stack ---------------------------- */
.stack__chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.stack__chips span {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 12px 22px; transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.stack__chips span:hover { border-color: rgba(10, 166, 122, 0.5); color: var(--brand-2); transform: translateY(-3px); }

/* ----------------------------- Experience ------------------------- */
.xp { display: flex; flex-direction: column; }
.xp__item { display: grid; grid-template-columns: 92px 40px 1fr; gap: 10px; }
.xp__when {
  font-size: 0.82rem; font-weight: 650; color: var(--ink-low); text-align: right;
  padding-top: 34px; line-height: 1.5; letter-spacing: 0.02em;
}
.xp__line { position: relative; display: flex; justify-content: center; }
.xp__line::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.xp__line i {
  position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: 2.5px solid var(--brand-2); margin-top: 38px;
  box-shadow: 0 0 0 5px rgba(10, 166, 122, 0.12);
}
.xp__item:first-child .xp__line::before { top: 38px; }
.xp__item:last-child .xp__line::before { bottom: calc(100% - 50px); }
.xp__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; margin: 14px 0;
  transition: border-color 0.3s, background 0.3s;
}
.xp__card:hover { border-color: rgba(10, 166, 122, 0.4); background: var(--card-hi); }
.xp__card h3 {
  font-size: 1.16rem; font-weight: 720; letter-spacing: -0.02em; color: var(--white);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.xp__card h3 span { font-size: 0.86rem; font-weight: 650; color: var(--brand-2); }
.xp__card p { font-size: 0.95rem; color: var(--ink-mid); }
@media (max-width: 720px) {
  .xp__item { grid-template-columns: 1fr; }
  .xp__when { text-align: left; padding-top: 0; }
  .xp__when br { display: none; }
  .xp__line { display: none; }
  .xp__card { margin-top: 8px; }
}

/* ---------------------------- Credentials ------------------------- */
.creds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.creds__h {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; color: var(--white);
  margin-bottom: 20px;
}
.creds__h svg { width: 24px; height: 24px; color: var(--brand-2); }
.cred {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 26px; display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px;
  transition: border-color 0.3s, background 0.3s;
}
.cred:hover { border-color: rgba(10, 166, 122, 0.4); background: var(--card-hi); }
.cred b { font-weight: 700; letter-spacing: -0.015em; color: var(--white); font-size: 1.02rem; }
.cred span { color: var(--ink-mid); font-size: 0.92rem; font-weight: 550; }
.cred small { color: var(--ink-low); font-size: 0.82rem; }
@media (max-width: 760px) { .creds__grid { grid-template-columns: 1fr; } }

/* ---------------------------- Philosophy -------------------------- */
.philosophy { text-align: center; }
.philosophy blockquote {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -0.035em;
  color: var(--white); line-height: 1.25; max-width: 21ch; margin: 0 auto;
}
.philosophy blockquote em {
  font-style: normal;
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.philosophy cite {
  display: block; margin-top: 26px; font-style: normal;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-low);
}

/* ------------------------------ Contact --------------------------- */
.contact__card {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(120% 160% at 50% -30%, rgba(10, 166, 122, 0.16), transparent 55%),
    linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line-strong); border-radius: 32px;
  padding: clamp(52px, 8vw, 96px) clamp(24px, 6vw, 80px);
}
.contact__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--aurora);
}
.contact__card h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 720; letter-spacing: -0.04em;
  color: var(--white); line-height: 1.08;
}
.contact__card h2 em {
  font-style: normal;
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contact__card > p { max-width: 56ch; margin: 22px auto 0; color: var(--ink-mid); font-size: 1.06rem; }
.contact__actions { display: flex; justify-content: center; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.contact__note { margin-top: 26px; font-size: 0.86rem; color: var(--ink-low); }

/* ------------------------------- Footer --------------------------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: clamp(32px, 5vw, 80px); }
.footer__brand p { color: var(--ink-low); font-size: 0.92rem; margin-top: 16px; max-width: 34ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h5 {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-low); margin-bottom: 6px;
}
.footer__col a { font-size: 0.92rem; color: var(--ink-mid); transition: color 0.25s; width: fit-content; cursor: pointer; }
.footer__col span { font-size: 0.92rem; color: var(--ink-mid); width: fit-content; }
.footer__col a:hover { color: var(--brand-2); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 60px); padding-top: 26px;
  font-size: 0.84rem; color: var(--ink-low);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } .footer__cols { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------ To top ---------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(13, 15, 18, 0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); color: var(--text);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s var(--ease), border-color 0.3s, color 0.3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* ---------------------------- Reveal on scroll --------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ============================================================
   MARVEL - product page (the AI job radar)
   ============================================================ */

.mv-hero { padding-top: clamp(130px, 16vh, 180px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.mv-hero__copy { text-align: center; max-width: 820px; margin: 0 auto; }
.mv-eyebrow { justify-content: center; }
.mv-hero__title { font-size: clamp(2.7rem, 6.4vw, 5rem); }
.mv-hero__sub { margin-left: auto; margin-right: auto; }
.mv-hero__actions { justify-content: center; }

/* ------------------------- The machine --------------------------- */
.mv-scene {
  position: relative; max-width: 920px; margin: clamp(56px, 8vw, 96px) auto 0;
  perspective: 1600px;
}
.mv-ring { width: 108%; height: 130%; top: -15%; left: -4%; border-radius: 40%; }
.mv-dots { right: -44px; top: -30px; bottom: auto; }
.mv-word {
  position: absolute; top: -0.72em; left: 50%; transform: translateX(-50%);
  font-weight: 800; letter-spacing: 0.14em; font-size: clamp(4rem, 11vw, 8.4rem);
  color: transparent; -webkit-text-stroke: 1px rgba(236, 238, 241, 0.1);
  user-select: none; white-space: nowrap; z-index: -1;
}
.mv-glow {
  position: absolute; inset: 30% -8% -10% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(50% 55% at 50% 60%, rgba(18, 165, 116, 0.3), transparent 70%);
  filter: blur(36px);
}

.mv-app {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(170deg, #101215, #0c0e11);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), 0 30px 110px -34px rgba(18, 165, 116, 0.4);
  transform: rotateX(11deg) scale(0.98);
  transform-origin: 50% 0%;
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
  font-size: 13px; line-height: 1.45;
}
.mv-scene:hover .mv-app { transform: rotateX(2deg) scale(1); box-shadow: var(--shadow-lg), 0 40px 130px -30px rgba(18, 165, 116, 0.5); }
.mv-app::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(18, 165, 116, 0.55), transparent 28%, transparent 68%, rgba(13, 155, 189, 0.45)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.mv-app__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(20, 22, 25, 0.7);
}
.mv-app__lights { display: inline-flex; gap: 6px; }
.mv-app__lights i { width: 10px; height: 10px; border-radius: 50%; background: #2e333b; }
.mv-app__lights i:first-child { background: #e5484d99; }
.mv-app__lights i:nth-child(2) { background: #f59e0b99; }
.mv-app__lights i:last-child { background: #12a57499; }
.mv-app__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 12.5px; letter-spacing: -0.01em; }
.mv-logo {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(135deg, #12a574, #0d9bbd); color: var(--ink);
  font-weight: 800; font-size: 12px;
}
.mv-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #12a574;
}
.mv-live i { width: 7px; height: 7px; border-radius: 50%; background: #12a574; box-shadow: 0 0 0 4px rgba(18, 165, 116, 0.16); animation: blink 1.8s ease infinite; }

.mv-app__body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.mv-side {
  border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(13, 15, 18, 0.55);
}
.mv-side__item {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 9px;
  color: var(--ink-low); font-weight: 550; font-size: 12px;
}
.mv-side__item svg { width: 15px; height: 15px; }
.mv-side__item--on { background: rgba(18, 165, 116, 0.12); color: #3ecf9a; }
.mv-side__scan {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px; font-size: 11px; color: var(--ink-low); font-weight: 550;
}
.mv-side__scan i { width: 6px; height: 6px; border-radius: 50%; background: #12a574; animation: blink 1.8s ease infinite; }

.mv-main { padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.mv-main__head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mv-chip {
  font-size: 11px; font-weight: 600; color: var(--dim);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 5px 12px;
}
.mv-chip--on { background: rgba(18, 165, 116, 0.14); border-color: rgba(18, 165, 116, 0.4); color: #3ecf9a; }
.mv-chip--rule { margin-left: auto; color: var(--ink-low); border-style: dashed; }

.mv-feed { display: flex; flex-direction: column; gap: 10px; }

.mv-job {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center;
  background: rgba(26, 29, 33, 0.65); border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 14px; overflow: hidden;
  max-height: 200px;
  transition: opacity 0.6s var(--ease), border-color 0.3s;
}
.mv-job--in { animation: mvJobIn 0.7s var(--ease); }
@keyframes mvJobIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mv-job--out { opacity: 0 !important; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -10px;
  transition: opacity 0.45s, max-height 0.5s var(--ease) 0.1s, padding 0.5s var(--ease) 0.1s, margin 0.5s var(--ease) 0.1s; }

.mv-score { position: relative; width: 46px; height: 46px; }
.mv-score svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.mv-score circle { fill: none; stroke-width: 3.4; }
.mv-score__bg { stroke: rgba(236, 238, 241, 0.1); }
.mv-score__fg { stroke: var(--sc, #12a574); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.mv-score b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13.5px; font-weight: 780; color: var(--sc, #12a574); letter-spacing: -0.02em;
}

.mv-job__body { min-width: 0; }
.mv-job__body h4 { font-size: 13px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-job__meta { font-size: 11.5px; color: var(--ink-low); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-job__meta .ok { color: #3ecf9a; font-weight: 600; }
.mv-job__meta .bad { color: #e5484d; font-weight: 600; }

.mv-job__verdict {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; white-space: nowrap;
  background: rgba(18, 165, 116, 0.14); color: #3ecf9a; border: 1px solid rgba(18, 165, 116, 0.35);
}
.mv-job--filtered { opacity: 0.55; }
.mv-job--filtered .mv-job__verdict { background: rgba(229, 72, 77, 0.12); color: #e5484d; border-color: rgba(229, 72, 77, 0.35); }
.mv-job--filtered .mv-job__body h4 { text-decoration: line-through; text-decoration-color: rgba(229, 72, 77, 0.6); }

/* floating proof chips */
.mv-float { position: absolute; z-index: 7; }
.mv-float--tr { top: -40px; right: 2%; left: auto; }
.mv-float--r { right: -14px; top: 38%; }
.mv-float--l { left: -18px; bottom: 12%; }

.mv-ministats { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: clamp(44px, 6vw, 70px); flex-wrap: wrap; }
.mv-ministat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mv-ministat b { font-size: 1.5rem; font-weight: 780; letter-spacing: -0.03em; color: var(--white); }
.mv-ministat span { font-size: 0.82rem; color: var(--ink-low); font-weight: 500; }

/* ------------------------- Pipeline ------------------------------ */
.mv-pipe { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mv-pipe__line {
  position: absolute; top: 21px; left: 4%; right: 4%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, rgba(18, 165, 116, 0.55), rgba(13, 155, 189, 0.55));
  opacity: 0.45;
}
.mv-stage { position: relative; z-index: 1; }
.mv-stage__n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid rgba(18, 165, 116, 0.5);
  font-size: 0.82rem; font-weight: 750; color: #3ecf9a; margin-bottom: 16px;
  box-shadow: 0 0 0 6px rgba(18, 165, 116, 0.07);
}
.mv-stage h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; color: var(--white); margin-bottom: 8px; }
.mv-stage p { font-size: 0.9rem; color: var(--ink-mid); }
.mv-pipe__note {
  margin-top: clamp(32px, 5vw, 52px); text-align: center; color: var(--ink-low); font-size: 0.94rem;
  max-width: 52ch; margin-left: auto; margin-right: auto;
}
@media (max-width: 980px) { .mv-pipe { grid-template-columns: repeat(2, 1fr); } .mv-pipe__line { display: none; } }
@media (max-width: 540px) { .mv-pipe { grid-template-columns: 1fr; } }

/* ------------------------- Origin versus ------------------------- */
.mv-versus { display: flex; flex-direction: column; gap: 6px; }
.mv-versus__row {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px;
  background: var(--card);
}
.mv-versus__row--new { border-color: rgba(18, 165, 116, 0.4); background: rgba(18, 165, 116, 0.06); }
.mv-versus__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-low); margin-bottom: 8px;
}
.mv-versus__row--new .mv-versus__tag { color: #3ecf9a; }
.mv-versus__row p { font-size: 0.96rem; color: var(--ink-mid); }
.mv-versus__arrow { display: flex; justify-content: center; color: var(--brand-2); opacity: 0.7; }
.mv-versus__arrow svg { width: 20px; height: 20px; }
.mv-origin__note { margin-top: 24px; color: var(--ink-mid); font-size: 0.97rem; }

/* ------------------------- Marvel responsive --------------------- */
@media (max-width: 760px) {
  .mv-app__body { grid-template-columns: 1fr; min-height: 0; }
  .mv-side { display: none; }
  .mv-chip--rule { display: none; }
  .mv-float--tr { right: 0; top: -40px; }
  .mv-float--r { right: -6px; top: auto; bottom: -18px; }
  .mv-float--l { display: none; }
  .mv-word { display: none; }
  .mv-app { transform: rotateX(6deg) scale(0.99); font-size: 12px; }
  .mv-job { grid-template-columns: 40px 1fr; }
  .mv-job__verdict { display: none; }
  .mv-score, .mv-score svg { width: 40px; height: 40px; }
}

/* ============ Portrait v2: crafted into the scene ============ */
/* emerald backlight halo behind the head, between arch and cutout */
.portrait__backlight {
  position: absolute; top: 3%; left: 50%; transform: translateX(-50%);
  width: 76%; aspect-ratio: 1 / 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(16, 185, 129, 0.42), rgba(13, 155, 189, 0.16) 48%, transparent 72%);
  filter: blur(28px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.07); } }
/* grounding shadow so the arch sits ON the page instead of floating */
.portrait__ground {
  position: absolute; bottom: -20px; left: 6%; right: 6%; height: 44px;
  border-radius: 50%; z-index: -1; filter: blur(10px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.65), transparent 70%);
}
/* a slow orbiting spark around the whole composition */
.portrait__orbit {
  position: absolute; inset: -9%; border-radius: 50%; z-index: 3;
  animation: spin 26s linear infinite; pointer-events: none;
}
.portrait__orbit i {
  position: absolute; top: 50%; left: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 14px 3px rgba(10, 166, 122, 0.7);
}
/* small floating skill tags: the picture tells the AI story */
.portrait__tag {
  position: absolute; z-index: 5;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 100px; white-space: nowrap;
  background: rgba(13, 15, 18, 0.82); backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 166, 122, 0.35); color: #3ecf9a;
  box-shadow: var(--shadow-sm);
}
.portrait__tag--1 { left: -10px; top: 36%; }
.portrait__tag--2 { right: -6px; top: 48%; }

/* ============ Nexus suite: the other modules, shown as products ============ */
.suite { margin-top: clamp(48px, 7vw, 76px); }
.suite__head { max-width: 640px; margin-bottom: 34px; }
.suite__head h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700;
  letter-spacing: -0.03em; color: var(--white);
}
.suite__head p { margin-top: 12px; color: var(--ink-mid); font-size: 1rem; }
.suite__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 24px; display: flex; flex-direction: column;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.mod__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mod__mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--acc, #0aa67a) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc, #0aa67a) 40%, transparent);
  color: var(--acc, var(--brand-2));
}
.mod__mark svg { width: 23px; height: 23px; }
.mod__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-low);
}
.mod__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc, var(--brand-2)); animation: blink 2.4s ease infinite; }
.mod__desc { flex-grow: 1; }
.mod__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mod__chips span {
  font-size: 0.72rem; font-weight: 600; color: var(--dim);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 5px 11px;
}
.mod::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--acc, var(--brand-2)); opacity: 0.9;
}
.mod:hover { background: var(--card-hi); border-color: color-mix(in srgb, var(--acc, #0aa67a) 45%, transparent); }
.mod h4 {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.05rem; font-weight: 720; letter-spacing: -0.015em; color: var(--white);
}
.mod h4::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--acc, var(--brand-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc, #0aa67a) 16%, transparent);
}
.mod__tag {
  font-size: 0.78rem; font-weight: 650; color: var(--acc, var(--brand-2));
  margin: 5px 0 10px; letter-spacing: 0.02em;
}
.mod > p:not(.mod__tag) { font-size: 0.9rem; color: var(--ink-mid); }
@media (max-width: 980px) { .suite__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .suite__grid { grid-template-columns: 1fr; } }

/* ------------------------------ Skills ---------------------------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px;
  transition: border-color 0.3s, background 0.3s;
}
.skill:hover { border-color: rgba(10, 166, 122, 0.4); background: var(--card-hi); }
.skill__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.skill__head h3 { font-size: 1.16rem; font-weight: 720; letter-spacing: -0.02em; color: var(--white); }
.skill__head .svc__ic { margin-bottom: 0; }
.skill__list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.skill__list li {
  position: relative; padding-left: 26px;
  font-size: 0.93rem; color: var(--ink-mid); font-weight: 500;
}
.skill__list li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2);
  transform: rotate(-45deg);
}
@media (max-width: 980px) { .skills { grid-template-columns: 1fr; } }

/* ------------------------- Stack categories ----------------------- */
.stackcats {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.stackcat {
  display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center;
  padding: 16px 6px; border-bottom: 1px solid var(--line);
}
.stackcat__label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-low);
}
.stackcat__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.stackcat__chips span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 18px; transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.tlogo { width: 17px; height: 17px; opacity: 0.85; }
.stackcat__chips span:hover { border-color: rgba(10, 166, 122, 0.5); color: var(--brand-2); transform: translateY(-2px); }
@media (max-width: 640px) {
  .stackcat { grid-template-columns: 1fr; gap: 10px; padding: 14px 2px; }
}

/* AI-capability chip: the intelligence in each product, highlighted */
.mod__chips span.ai {
  border-color: color-mix(in srgb, var(--acc, #0aa67a) 50%, transparent);
  color: var(--acc, var(--brand-2));
  background: color-mix(in srgb, var(--acc, #0aa67a) 10%, transparent);
  font-weight: 700;
}

/* ============================================================
   PRODUCT / COMPANY detail pages (nexus, blackx, vault, ...)
   Shared components; one template, 9 pages
   ============================================================ */
.pp-hero { padding-top: clamp(130px, 16vh, 180px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
.pp-mark {
  width: 62px; height: 62px; border-radius: 17px; display: grid; place-items: center; overflow: hidden;
  margin-bottom: 24px;
  background: rgba(10, 166, 122, 0.1); border: 1px solid rgba(10, 166, 122, 0.32); color: var(--brand-2);
}
.pp-mark svg { width: 32px; height: 32px; }
.pp-mark img { width: 100%; height: 100%; object-fit: cover; }
.pp-mark--img { background: #0d0f12; border-color: var(--line-strong); }
.pp-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-low); transition: color 0.25s;
}
.pp-back svg { width: 15px; height: 15px; }
.pp-back:hover { color: var(--brand-2); }
.pp-ministats { display: flex; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.pp-ministat { display: flex; flex-direction: column; gap: 3px; max-width: 200px; }
.pp-ministat b { font-size: 1.06rem; font-weight: 720; letter-spacing: -0.02em; color: var(--white); }
.pp-ministat span { font-size: 0.82rem; color: var(--ink-low); }

/* the framed product panel (real per-product data) */
.pp-scene { position: relative; max-width: 470px; margin: 0 auto; perspective: 1400px; }
.pp-glow {
  position: absolute; inset: 12% -6% -6% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(50% 55% at 50% 55%, rgba(10, 166, 122, 0.26), transparent 70%); filter: blur(34px);
}
.pp-panel {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(170deg, #101215, #0c0e11); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), 0 26px 90px -34px rgba(10, 166, 122, 0.4);
  transform: rotateX(7deg) rotateY(-6deg) scale(0.98); transform-origin: 50% 30%;
  transition: transform 0.9s var(--ease); font-size: 13px;
}
.pp-scene:hover .pp-panel { transform: rotateX(1deg) rotateY(0deg) scale(1); }
.pp-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--aurora); }
.pp-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(20, 22, 25, 0.7); }
.pp-bar__dots { display: inline-flex; gap: 6px; }
.pp-bar__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2e333b; }
.pp-bar__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; color: var(--text); }
.pp-bar__title svg { width: 15px; height: 15px; color: var(--brand-2); }
.pp-bar__live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-2); }
.pp-bar__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(10, 166, 122, 0.16); animation: blink 1.9s ease infinite; }
.pp-rows { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pp-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: rgba(26, 29, 33, 0.65); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.pp-row__l b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.pp-row__l span { font-size: 11.5px; color: var(--ink-low); }
.pp-row__v { font-size: 14px; font-weight: 750; letter-spacing: -0.02em; color: var(--brand-2); white-space: nowrap; }
.pp-row__pill { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; background: rgba(10, 166, 122, 0.14); color: #3ecf9a; border: 1px solid rgba(10, 166, 122, 0.3); white-space: nowrap; }

/* how-it-works reuses .mv-pipe/.mv-stage; capabilities reuse .services/.svc; stack reuses .stack__chips */
@media (max-width: 900px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-scene { order: -1; max-width: 400px; }
}
.pp-stack { display: flex; flex-wrap: wrap; gap: 11px; }
.pp-stack span { font-size: 0.92rem; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px; }

/* Explore link on module cards */
.mod { cursor: pointer; }
.mod__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 0.85rem; font-weight: 650; color: var(--brand-2);
}
.mod__more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.mod:hover .mod__more svg { transform: translateX(4px); }

/* ---- Product line rendered as case-study rows (suite-cases) ---- */
.suite-cases { margin-top: clamp(32px, 5vw, 52px); }
.suite-case .pp-panel--flat {
  transform: none; max-width: 100%; width: 100%; font-size: 12.5px;
  box-shadow: var(--shadow-lg), 0 22px 70px -38px rgba(10, 166, 122, 0.34);
}
.suite-case .case__visual { display: flex; align-items: center; }
.case__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 0.92rem; font-weight: 650; color: var(--brand-2);
}
.case__link svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.case__link:hover svg { transform: translateX(4px); }
.case__tags span.ai {
  border-color: rgba(10, 166, 122, 0.5); color: var(--brand-2);
  background: rgba(10, 166, 122, 0.1); font-weight: 700;
}
