/* ============================================================
   TMT Computing — tmtcomputing.com
   Design system & global styles
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg-0: #06060e;
  --bg-1: #0a0a16;
  --bg-2: #10101f;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.05);
  --ink: #f2f1fb;
  --muted: #a6a3c4;
  --faint: #6f6c8f;
  --brand: #645fce;
  --brand-2: #8b84f4;
  --brand-3: #b7b2ff;
  --deep: #40356f;
  --line: rgba(139, 132, 244, 0.16);
  --line-soft: rgba(139, 132, 244, 0.09);
  --glow: rgba(100, 95, 206, 0.35);
  --grad: linear-gradient(100deg, #b7b2ff 0%, #8b84f4 35%, #645fce 100%);
  --grad-btn: linear-gradient(135deg, #7d76ec 0%, #645fce 55%, #4c3f96 100%);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* film-grain texture */
  content: '';
  position: fixed;
  inset: 0;
  background: url('../img/noise.png') repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 2000;
  mix-blend-mode: overlay;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-3); text-decoration: none; }
a:hover { color: #d4d0ff; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
p { margin: 0 0 1em; }
::selection { background: rgba(100, 95, 206, 0.45); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #2a2749; border-radius: 6px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #3d3870; }

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 18px; z-index: 3000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 7, 16, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: #fff; }
.brand img { height: 34px; width: auto; filter: drop-shadow(0 0 14px rgba(139, 132, 244, 0.45)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name span { color: var(--brand-3); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-link[aria-current='page'] { color: var(--ink); background: rgba(139, 132, 244, 0.12); }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 40px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  z-index: 990;
  background: rgba(8, 8, 18, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px 26px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a[aria-current='page'] { color: var(--brand-3); }
.mobile-menu .btn { margin-top: 18px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { flex: none; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 34px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 16px 44px -8px rgba(100, 95, 206, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(139, 132, 244, 0.5);
  background: rgba(139, 132, 244, 0.08);
  color: #fff;
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 16.5px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 108px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-3);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
}
.section-head.center .eyebrow::after {
  content: '';
  width: 26px; height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
}
h2.section-title {
  font-size: clamp(30px, 4.4vw, 44px);
  margin-bottom: 18px;
}
.lead { font-size: 18.5px; color: var(--muted); max-width: 62ch; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: clamp(660px, 100svh, 980px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 64px) 0 72px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 132, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 132, 244, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.orb.o1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(100, 95, 206, 0.5), transparent 65%); top: -140px; right: -80px; }
.orb.o2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(64, 53, 111, 0.65), transparent 65%); bottom: -180px; left: -120px; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg-0));
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(139, 132, 244, 0.07);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand-3);
  margin-bottom: 26px;
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #76b900; /* NVIDIA green nod */
  box-shadow: 0 0 10px #76b900;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

.hero-title {
  font-size: clamp(42px, 6.2vw, 74px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* floating spec cards */
.hero-cards { position: relative; display: grid; gap: 18px; }
.spec-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
}
.spec-card:nth-child(2) { animation-delay: -2.4s; transform-origin: left; margin-left: 34px; }
.spec-card:nth-child(3) { animation-delay: -4.8s; margin-right: 34px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.sc-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.sc-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.sc-tag.ok { background: rgba(118, 185, 0, 0.12); color: #a8e063; border: 1px solid rgba(118, 185, 0, 0.3); }
.sc-tag.info { background: rgba(139, 132, 244, 0.12); color: var(--brand-3); border: 1px solid var(--line); }
.sc-tag.warn { background: rgba(255, 173, 51, 0.1); color: #ffc266; border: 1px solid rgba(255, 173, 51, 0.32); }
.sc-row {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
}
.sc-sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.sc-bar {
  margin-top: 14px; height: 5px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden; position: relative;
}
.sc-bar i {
  position: absolute; inset: 0; border-radius: 4px;
  background: var(--grad);
  transform-origin: left;
  animation: fill 3.2s ease-out infinite alternate;
}
@keyframes fill { from { transform: scaleX(0.55); } to { transform: scaleX(0.92); } }

/* ---------- Stats strip ---------- */
.stats-strip {
  position: relative; z-index: 2;
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(139, 132, 244, 0.045), rgba(139, 132, 244, 0.015));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 28px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ---------- Ecosystem marquee ---------- */
.eco-strip { padding: 40px 0 8px; }
.eco-label {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 600;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.eco-item {
  display: flex; align-items: center; gap: 26px;
  padding: 6px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.05em;
  color: #56537a;
  white-space: nowrap;
  transition: color 0.25s;
}
.eco-item::after { content: '◆'; font-size: 8px; color: #2e2b52; }
.eco-item:hover { color: var(--brand-3); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 132, 244, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 132, 244, 0.38);
  background: var(--panel-2);
  box-shadow: 0 24px 54px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 132, 244, 0.08);
}
.card:hover::before { opacity: 1; }
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(139, 132, 244, 0.16), rgba(100, 95, 206, 0.06));
  border: 1px solid var(--line);
  color: var(--brand-3);
  margin-bottom: 22px;
}
.icon-badge svg { width: 26px; height: 26px; }
.card h3 { font-size: 21.5px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 20px;
  font-weight: 600; font-size: 14.5px;
  font-family: var(--font-display);
}
.card .card-link svg { transition: transform 0.2s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.img-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(100, 95, 206, 0.16), transparent 45%, rgba(6, 6, 14, 0.5));
  pointer-events: none;
}
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.img-frame:hover img { transform: scale(1.035); }
.img-frame .frame-caption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.frame-caption::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px;
  background: var(--grad);
}

.why-list { display: grid; gap: 8px; margin-top: 10px; }
.why-item {
  display: flex; gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.why-item:last-child { border-bottom: 0; }
.why-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-2);
  padding-top: 3px;
  min-width: 34px;
}
.why-item h4 { font-size: 17.5px; margin-bottom: 5px; }
.why-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li {
  display: flex; gap: 13px; align-items: flex-start;
  color: var(--muted); font-size: 15.5px;
}
.checklist li strong { color: var(--ink); font-weight: 600; }
.checklist li::before {
  content: '';
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7b2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(139, 132, 244, 0.13);
  border: 1px solid var(--line);
}

/* ---------- Project cards ---------- */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 132, 244, 0.4);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.65);
}
.pc-media { position: relative; min-height: 280px; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(10, 10, 22, 0.55));
}
.pc-body { padding: 38px 36px; display: flex; flex-direction: column; justify-content: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-3);
  border: 1px solid var(--line);
  background: rgba(139, 132, 244, 0.08);
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--font-display);
}
.pc-body h3 { font-size: 24px; }
.pc-body p { color: var(--muted); font-size: 15.5px; }
.metric {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.metric b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric span { color: var(--muted); font-size: 14px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.step {
  position: relative;
  padding: 30px 26px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(139, 132, 244, 0.35); }
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-2);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.step-num::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.step h4 { font-size: 18.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 22px;
  padding: 74px 56px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(139, 132, 244, 0.28), transparent 70%),
    linear-gradient(180deg, #12112362, #0c0b1a);
  border: 1px solid var(--line);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 132, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 132, 244, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.cta-band p { color: var(--muted); font-size: 18px; max-width: 54ch; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(100, 95, 206, 0.16), transparent 70%),
    radial-gradient(700px 380px at 10% 0%, rgba(64, 53, 111, 0.22), transparent 70%);
}
.page-hero .grid-overlay { opacity: 0.7; }
.page-hero .container { position: relative; }
.page-title { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -0.025em; margin-bottom: 18px; }
.page-hero .lead { font-size: 19px; }

/* ---------- Sub-nav pills ---------- */
.subnav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 34px;
}
.subnav a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.subnav a:hover { color: var(--ink); border-color: rgba(139, 132, 244, 0.5); background: rgba(139, 132, 244, 0.09); }

/* ---------- Feature rows (solutions) ---------- */
.feature { padding: 88px 0; }
.feature + .feature { border-top: 1px solid rgba(255, 255, 255, 0.045); }
.feature .split { gap: 80px; }
.feature h2 { font-size: clamp(27px, 3.4vw, 36px); }
.feature .kicker {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
  display: block;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip-row .mini {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- Case studies ---------- */
.case {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  padding: 72px 0;
}
.case + .case { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.case-meta { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.case-meta .img-frame { margin-bottom: 24px; aspect-ratio: 4 / 3; }
.case-meta dl { margin: 0; display: grid; gap: 13px; }
.case-meta dt {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); font-family: var(--font-display); font-weight: 600;
}
.case-meta dd { margin: 3px 0 0; color: var(--ink); font-size: 15px; }
.case-body h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 22px; }
.case-body h3 {
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-2); margin: 34px 0 12px;
}
.case-body p { color: var(--muted); }
.outcomes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.outcome {
  border: 1px solid var(--line);
  background: rgba(139, 132, 244, 0.06);
  border-radius: 14px;
  padding: 16px 22px;
  min-width: 150px;
}
.outcome b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outcome span { font-size: 13px; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 30px 0 0; padding-left: 34px; display: grid; gap: 38px; }
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-2), rgba(100, 95, 206, 0.08));
  border-radius: 2px;
}
.t-item { position: relative; }
.t-item::before {
  content: '';
  position: absolute; left: -33px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 3px solid var(--brand-2);
  box-shadow: 0 0 16px rgba(139, 132, 244, 0.6);
}
.t-date {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-3);
}
.t-item h4 { font-size: 19px; margin: 7px 0 6px; }
.t-item p { color: var(--muted); font-size: 15px; margin: 0; max-width: 56ch; }

/* ---------- Values / leadership ---------- */
.value-card h3 { display: flex; align-items: center; gap: 12px; }
.leader-card {
  display: flex;
  gap: 30px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px;
}
.avatar {
  flex: none;
  width: 96px; height: 96px;
  border-radius: 24px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 14px 34px -10px var(--glow);
  letter-spacing: 0.02em;
}
.avatar-photo {
  object-fit: cover;
  border: 1px solid var(--line);
}
.leader-card h3 { margin-bottom: 4px; font-size: 22px; }
.leader-role { color: var(--brand-3); font-size: 14px; font-weight: 600; margin-bottom: 12px; font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.leader-card p { color: var(--muted); font-size: 15px; margin: 0; }

.partner-panel {
  display: grid;
  grid-template-columns: minmax(170px, 230px) 1fr;
  gap: 34px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 38px;
}
.badge-plate {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6);
}
.badge-plate img { max-height: 96px; width: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.route-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.route-card:hover { border-color: rgba(139, 132, 244, 0.4); transform: translateY(-3px); background: var(--panel-2); }
.route-card .icon-badge { margin: 0; width: 46px; height: 46px; border-radius: 12px; }
.route-card .icon-badge svg { width: 22px; height: 22px; }
.route-card h3 { font-size: 17px; margin-bottom: 3px; }
.route-card p { font-size: 14px; color: var(--muted); margin: 0 0 7px; }
.route-card a.route-link { font-weight: 600; font-size: 15px; font-family: var(--font-display); }

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 42px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a3c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field select option { background: #12111f; color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(100, 95, 206, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.form-status {
  display: none;
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}
.form-status.ok { display: block; background: rgba(118, 185, 0, 0.1); border: 1px solid rgba(118, 185, 0, 0.35); color: #b8e986; }
.form-status.err { display: block; background: rgba(255, 92, 92, 0.09); border: 1px solid rgba(255, 92, 92, 0.35); color: #ff9d9d; }
.form-note { font-size: 13px; color: var(--faint); margin-top: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(800px 300px at 85% 120%, rgba(100, 95, 206, 0.12), transparent 70%),
    var(--bg-1);
  padding: 76px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}
.f-brand .brand { margin-bottom: 18px; }
.f-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.f-col h4 {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f-col a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.f-col a:hover { color: var(--brand-3); }
.f-col li { color: var(--muted); font-size: 15px; }
.small-print {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}
.small-print a { color: var(--faint); }
.small-print a:hover { color: var(--brand-3); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }
.reveal[data-delay='4'] { transition-delay: 0.32s; }

/* ---------- 404 ---------- */
.error-hero {
  min-height: clamp(560px, 100svh, 860px);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(110px, 22vw, 220px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-cards { max-width: 520px; }
  .split, .feature .split { grid-template-columns: 1fr; gap: 44px; }
  .split.media-last-desktop .img-frame { order: -1; }
  .case { grid-template-columns: 1fr; gap: 36px; }
  .case-meta { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .partner-panel { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line-soft); }
  .stat:nth-child(-n + 2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .project-card { grid-template-columns: 1fr; }
  .pc-media { min-height: 220px; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .section { padding: 76px 0; }
  .grid-3, .grid-4, .process, .form-grid, .case-meta { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding: 54px 26px; }
  .form-panel { padding: 28px 22px; }
  .leader-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .spec-card:nth-child(2), .spec-card:nth-child(3) { margin: 0; }
}

/* ---------- Cursor-reactive background field (all pages, full height) ----------
   Injected by main.js as body's first child. The latent circuit grid is invisible
   until the cursor passes over it: lines + solder points energize in a glow that
   trails the pointer. Sits at z-index -1 so all content paints above it. */
.cursor-field {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(240px circle at var(--gx, -999px) var(--gy, -999px), rgba(125, 118, 236, 0.16), rgba(125, 118, 236, 0.05) 45%, transparent 70%),
    linear-gradient(rgba(198, 194, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 194, 255, 0.45) 1px, transparent 1px),
    radial-gradient(circle at 0 0, rgba(233, 231, 255, 0.9) 1.8px, transparent 2.8px);
  background-size: 100% 100%, 56px 56px, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(210px circle at var(--gx, -999px) var(--gy, -999px), black 0%, rgba(0, 0, 0, 0.45) 50%, transparent 74%);
  mask-image: radial-gradient(210px circle at var(--gx, -999px) var(--gy, -999px), black 0%, rgba(0, 0, 0, 0.45) 50%, transparent 74%);
  opacity: var(--gi, 0);
}

/* ---------- Supply hero + sourcing viz ---------- */
.supply-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center;
}
.supply-viz { position: relative; }
.supply-viz svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 0 34px rgba(100, 95, 206, 0.3));
  animation: viz-breathe 8s ease-in-out infinite;
}
@keyframes viz-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.viz-rot { transform-origin: 260px 260px; animation: viz-spin 55s linear infinite; }
.viz-rot-rev { transform-origin: 260px 260px; animation: viz-spin-rev 85s linear infinite; }
.viz-trace { animation: viz-fade 10s ease-in-out infinite; }
.viz-trace.t2 { animation-delay: -1.25s; }
.viz-trace.t3 { animation-delay: -2.5s; }
.viz-trace.t4 { animation-delay: -3.75s; }
.viz-trace.t5 { animation-delay: -5s; }
.viz-trace.t6 { animation-delay: -6.25s; }
.viz-trace.t7 { animation-delay: -7.5s; }
.viz-trace.t8 { animation-delay: -8.75s; }
.viz-flow { animation: viz-flow 2.2s linear infinite; }
.viz-flow.f2 { animation-duration: 2.8s; animation-delay: -1.3s; }
.viz-flow.f3 { animation-duration: 2.4s; animation-delay: -0.6s; }
.viz-flow.f4 { animation-duration: 3s; animation-delay: -2.1s; }
.viz-flow.f5 { animation-duration: 2.6s; animation-delay: -1.8s; }
.viz-flow.f6 { animation-duration: 2.9s; animation-delay: -0.9s; }
.viz-scan { animation: viz-scan 4.5s ease-in-out infinite; }
.viz-core-glow { animation: viz-core 4s ease-in-out infinite; }
.viz-pip { animation: viz-blink 2s ease-in-out infinite; }
.viz-pip.p2 { animation-delay: 0.66s; }
.viz-pip.p3 { animation-delay: 1.33s; }
@keyframes viz-spin { to { transform: rotate(360deg); } }
@keyframes viz-spin-rev { to { transform: rotate(-360deg); } }
@keyframes viz-flow { to { stroke-dashoffset: -252; } }
@keyframes viz-fade {
  0%, 100% { opacity: 0.08; }
  35%, 65% { opacity: 1; }
}
@keyframes viz-scan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.8; }
  88% { opacity: 0.8; }
  100% { transform: translateY(104px); opacity: 0; }
}
@keyframes viz-core {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes viz-blink {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 1; }
}
@media (max-width: 900px) {
  .supply-hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .supply-viz svg { max-width: 280px; }
}

/* ---------- Supply notes: collapsed archive ---------- */
.insights-toggle-wrap { display: flex; justify-content: center; margin-top: 28px; }
.insights-toggle svg { transition: transform 0.3s ease; }
.insights-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
