/* ============================================================
   IT PULSE — Midnight Pulse design system
   Global tokens + layout + homepage hero
   ============================================================ */

:root {
  /* surfaces */
  --void: #050416;
  --void-2: #0B0820;
  --void-3: #14102E;
  --surface-1: #0B0820;
  --surface-2: #14102E;
  --surface-3: #1E1942;
  --surface-elev: #251F55;

  /* primary — violet (from logo) */
  --violet: #A78BFA;
  --violet-2: #8B5CF6;
  --violet-3: #6D28D9;
  --violet-glow: #DDD6FE;
  --violet-deep: #4C1D95;

  /* signal — electric mint */
  --mint: #5EEAD4;
  --mint-2: #2DD4BF;
  --mint-3: #14B8A6;
  --mint-glow: rgba(94, 234, 212, 0.55);

  /* warning / hot */
  --hot: #F472B6;
  --hot-2: #EC4899;

  /* ink */
  --ink: #EAE6FF;
  --ink-dim: #A5A0C8;
  --ink-mute: #6F6996;
  --ink-faint: #45406B;

  /* lines & hairlines */
  --line: rgba(167, 139, 250, 0.16);
  --line-strong: rgba(167, 139, 250, 0.32);
  --line-mint: rgba(94, 234, 212, 0.22);

  /* radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadow & glow */
  --glow-violet: 0 0 0 1px rgba(167, 139, 250, 0.18), 0 18px 60px -20px rgba(139, 92, 246, 0.55);
  --glow-mint: 0 0 0 1px rgba(94, 234, 212, 0.22), 0 10px 40px -10px rgba(94, 234, 212, 0.35);
  --inset-edge: inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* type scale */
  --f-display: "Sora", "Sora Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: "Manrope", "Manrope Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "IBM Plex Mono", "IBM Plex Mono Placeholder", ui-monospace, "Cascadia Code", "SF Mono", monospace;

  /* motion */
  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-med: 360ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 720ms cubic-bezier(.2,.7,.2,1);
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--violet); color: var(--void); }

/* ---------------- background stack ---------------- */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-stack::before {
  /* dotted violet grid */
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(rgba(167, 139, 250, 0.12) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: 0.6;
}
.bg-stack::after {
  /* spotlight aurora */
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(139, 92, 246, 0.35), transparent 65%),
    radial-gradient(45% 40% at 85% 75%, rgba(94, 234, 212, 0.18), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(76, 29, 149, 0.25), transparent 70%);
  filter: blur(20px);
  animation: aurora-drift 40s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
  50%  { transform: translate3d(2%, 1%, 0) rotate(0.5deg); }
  100% { transform: translate3d(-1%, 2%, 0) rotate(-0.3deg); }
}

/* ambient pulse line that travels across viewport behind everything */
.bg-pulse-track {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.bg-pulse-track svg {
  position: absolute;
  top: 38%;
  left: 0;
  width: 220%;
  height: 200px;
  animation: pulse-travel 32s linear infinite;
  opacity: 0.18;
}
@keyframes pulse-travel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- layout ---------------- */
.wrap, main, header, footer { position: relative; z-index: 2; }
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 120px 0; position: relative; }
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--mint);
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: balance;
}
.section-lead {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 64ch;
  margin: 0;
  text-wrap: pretty;
}

/* ---------------- nav ---------------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(5,4,22,0.92), rgba(5,4,22,0.6) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--ink);
}
.brand-logo {
  /* Real wordmark image. Sized to fit the nav bar. */
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(1.18) saturate(1.05);
}
.brand-logo-footer {
  height: 52px;
}
.brand-mark {
  width: 44px;
  height: 28px;
  display: inline-block;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand .it {
  color: var(--ink);
  letter-spacing: 0.02em;
}
.brand .pulse {
  color: var(--violet);
  letter-spacing: -0.01em;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] {
  color: var(--violet);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}
.nav-cta {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: var(--void);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  box-shadow: 0 12px 30px -8px rgba(167, 139, 250, 0.6);
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--violet-glow);
  box-shadow: 0 16px 40px -10px rgba(167, 139, 250, 0.8);
}

/* ---------------- hero ---------------- */
.hero {
  padding: 64px 0 100px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 8px 14px;
  border: 1px solid var(--line-mint);
  border-radius: var(--r-pill);
  background: rgba(94, 234, 212, 0.04);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: blip 1.4s ease-in-out infinite;
}
@keyframes blip {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.5; }
}
.hero-brand {
  /* Big logo treatment at the top of the hero copy column */
  display: block;
  width: auto;
  height: clamp(72px, 9vw, 120px);
  margin: 0 0 32px;
  filter: brightness(1.18) saturate(1.05) drop-shadow(0 10px 40px rgba(167, 139, 250, 0.35));
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--violet); }
.hero h1 .accent-mint { color: var(--mint); }
.hero-sub {
  font-size: 20px;
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 0 0 40px;
  text-wrap: pretty;
}
/* Typewriter wrapper: reserves space for the longest cycled word so the
   subhead's wrap point never changes and content below stays put. */
.typewriter {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.typewriter .ghost {
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.typewriter [data-typed] {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--violet);
  color: var(--void);
  box-shadow: 0 18px 40px -12px rgba(167, 139, 250, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--violet-glow);
  box-shadow: 0 24px 50px -12px rgba(167, 139, 250, 0.9);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.08);
}
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-stats {
  display: flex;
  gap: 56px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.hero-stat .num {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--violet);
  letter-spacing: -0.02em;
  line-height: 1;
  height: 44px;
  display: flex;
  align-items: flex-end;
}
.hero-stat .num.infinity {
  /* Keep the layout box the same as the digits so the labels stay aligned;
     scale the glyph visually via transform. */
  font-size: 44px;
  transform: scale(1.3);
  transform-origin: 0 100%;
}
.hero-stat .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
}

/* hero monitor (right side) */
.hero-monitor {
  position: relative;
  aspect-ratio: 4/3.4;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  box-shadow: var(--glow-violet), var(--inset-edge);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-monitor::before {
  /* edge highlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(167,139,250,0.18), transparent 30%, transparent 70%, rgba(94,234,212,0.12));
  pointer-events: none;
  mix-blend-mode: screen;
}
.monitor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.monitor-head .lights { display: inline-flex; gap: 6px; }
.monitor-head .lights span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-faint);
}
.monitor-head .lights span:nth-child(1) { background: var(--mint); box-shadow: 0 0 8px var(--mint-glow); }
.monitor-head .title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.monitor-head .meta {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.12em;
}
.monitor-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  position: relative;
  z-index: 2;
}
.vital-row {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
}
.vital-row .label {
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vital-row .value {
  color: var(--violet);
  text-align: right;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.vital-row .trace {
  height: 36px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(167,139,250,0.04);
}
.vital-row .trace svg {
  position: absolute;
  inset: 0;
  width: 220%;
  height: 100%;
}
.vital-row .trace path {
  stroke: var(--mint);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 6px var(--mint-glow));
}
.vital-row.violet .trace path { stroke: var(--violet); filter: drop-shadow(0 0 6px rgba(167,139,250,0.7)); }
.vital-row.hot .trace path { stroke: var(--hot); filter: drop-shadow(0 0 6px rgba(244,114,182,0.6)); }
.vital-row .trace svg { animation: trace-scroll 6s linear infinite; }
.vital-row.violet .trace svg { animation-duration: 8s; }
.vital-row.hot .trace svg { animation-duration: 5s; }
@keyframes trace-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* boot log strip below monitor */
.boot-log {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(5,4,22,0.55);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.boot-log .line { display: flex; gap: 8px; }
.boot-log .line .prompt { color: var(--violet); }
.boot-log .line .ok { color: var(--mint); margin-left: auto; }

/* ---------------- about / pillars ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pillar {
  padding: 24px 24px 24px 28px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.pillar:hover {
  transform: translateX(4px);
  border-left-color: var(--mint);
  box-shadow: -6px 0 0 -3px var(--mint), var(--glow-violet);
}
.pillar h4 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.pillar p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
}
.pillar .idx {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  display: block;
}

/* ---------------- domains grid ---------------- */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.domain-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.domain-card::before {
  /* corner pulse */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(94,234,212,0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
}
.domain-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
}
.domain-card:hover::before { opacity: 1; }
.domain-card .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.domain-card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.domain-card .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.domain-card p {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0 0 20px;
  flex: 1;
}
.domain-card .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: auto;
  transition: color var(--t-fast), gap var(--t-fast);
}
.domain-card:hover .link { color: var(--mint); gap: 14px; }
.domain-card .pulse-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  opacity: 0.5;
  pointer-events: none;
}
.domain-card .pulse-line svg { width: 100%; height: 100%; }
.domain-card .pulse-line path { stroke: var(--violet); stroke-width: 1.2; fill: none; opacity: 0.5; }
.domain-card:hover .pulse-line path { stroke: var(--mint); opacity: 0.9; }

/* ---------------- process / phases ---------------- */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  position: relative;
}
.phase-grid::before {
  /* connecting wire */
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.phase {
  position: relative;
  padding-top: 76px;
}
.phase .node {
  position: absolute;
  top: 18px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phase .node::after {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}
.phase .step {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 8px;
}
.phase h4 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.phase p {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0;
}

/* ---------------- testimonials ---------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.quote {
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-1), transparent);
  border-radius: var(--r-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}
.quote::before {
  content: "❝";
  position: absolute;
  top: -2px; left: 18px;
  font-size: 60px;
  font-family: var(--f-display);
  color: var(--violet);
  opacity: 0.4;
  line-height: 1;
}
.quote p {
  margin: 24px 0 18px;
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.quote cite {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Pin citation to the bottom of the card so it aligns across siblings */
  margin-top: auto;
  padding-top: 12px;
}

/* ---------------- contact ---------------- */
.contact {
  background: linear-gradient(180deg, var(--surface-1), transparent);
  border-top: 1px solid var(--line);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.contact-list li { margin: 0; }
.contact-list a {
  display: grid;
  grid-template-columns: 64px 12px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: var(--r-md);
  color: var(--ink-dim);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.contact-list a:hover,
.contact-list a:focus-visible {
  background: var(--surface-1);
  color: var(--ink);
  outline: none;
}
.contact-list .k {
  color: var(--mint);
  letter-spacing: 0.16em;
}
.contact-list .sep {
  color: var(--mint);
  opacity: 0.55;
  text-align: center;
}
.contact-list a:hover .sep { opacity: 1; }
.contact-list .v { color: inherit; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------------- custom select ---------------- */
.select { position: relative; }
.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  text-align: left;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.select-trigger:hover { border-color: var(--line-strong); }
.select-trigger:focus-visible,
.select.is-open .select-trigger {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}
.select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-value.is-placeholder { color: var(--ink-mute); }
.select-caret {
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--ink-dim);
  border-bottom: 1.6px solid var(--ink-dim);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--t-fast), border-color var(--t-fast);
  flex: none;
}
.select.is-open .select-caret { transform: rotate(-135deg) translate(-1px, -1px); border-color: var(--violet); }

.select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: linear-gradient(160deg, rgba(30, 25, 66, 0.98), rgba(11, 8, 32, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -18px rgba(5, 4, 22, 0.9), var(--inset-edge);
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.select.is-open .select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.select-menu::-webkit-scrollbar { width: 8px; height: 0; }
.select-menu::-webkit-scrollbar-track { background: transparent; }
.select-menu::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.select-menu::-webkit-scrollbar-thumb:hover { background: var(--violet); background-clip: padding-box; }
.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-dim);
  font-size: 14.5px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.select-option:hover,
.select-option.is-active {
  background: rgba(167, 139, 250, 0.12);
  color: var(--ink);
}
.select-option.is-selected { color: var(--violet); }
.select-option.is-selected::after {
  content: "✓";
  font-size: 13px;
  color: var(--violet);
}

/* ---------------- footer ---------------- */
footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--ink-dim);
  font-size: 14px;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--violet); }
.footer-about {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 18px 0 0;
  max-width: 32ch;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ---------------- reveal animations ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------------- nav hamburger (tablet + mobile) ---------------- */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--ink);
  margin-left: auto;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover { color: var(--mint); border-color: var(--mint); }
.nav-toggle svg { width: 16px; height: 16px; }
.nav-toggle .icon-close { display: none; }
.nav-wrap.menu-open .nav-toggle .icon-open { display: none; }
.nav-wrap.menu-open .nav-toggle .icon-close { display: block; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .phase-grid::before { display: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }

  /* nav collapses to hamburger */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% - 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px;
    background: linear-gradient(160deg, rgba(20,16,46,0.96), rgba(11,8,32,0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--glow-violet), 0 30px 60px -20px rgba(0,0,0,0.7);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--t-fast), transform var(--t-fast);
    z-index: 60;
  }
  .nav-wrap.menu-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    padding: 12px 14px;
    border-radius: var(--r-md);
    text-align: left;
    border: 1px solid transparent;
  }
  .nav-link:hover { background: rgba(167,139,250,0.08); border-color: var(--line); }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link[aria-current="page"] {
    background: rgba(167,139,250,0.12);
    border-color: var(--violet);
  }
  .nav { flex-wrap: nowrap; }
  .nav-cta { margin-left: 8px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .domain-grid { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero { padding-top: 40px; min-height: auto; }
  .nav-cta {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .brand { font-size: 16px; }
  .brand-mark { width: 36px; height: 22px; }
  section { padding: 64px 0; }
}

/* ================= homepage media ================= */
/* --- about: 3D flip portrait --- */
.about-grid--media {
  grid-template-columns: 0.82fr 1fr 0.86fr;
  gap: 44px;
  align-items: start;
}
.about-visual {
  margin: 0;
  perspective: 1500px;
  cursor: pointer;
  outline: none;
}
.flip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 820ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.about-visual:hover .flip-inner,
.about-visual:focus-visible .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow-violet), var(--inset-edge);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-face img { width: 100%; height: 100%; object-fit: cover; }
.flip-face::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 4, 22, 0.78));
  pointer-events: none;
}
.flip-back { transform: rotateY(180deg); }
.flip-back .scan-img { filter: brightness(0.82) contrast(1.16) saturate(1.5) hue-rotate(125deg); }
.flip-back::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    repeating-linear-gradient(0deg, rgba(94, 234, 212, 0.08) 0 1px, transparent 1px 4px),
    radial-gradient(120% 80% at 50% 0%, rgba(94, 234, 212, 0.14), transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.face-label {
  position: absolute;
  left: 16px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.flip-front .face-label { color: var(--violet); }
.flip-back .face-label { color: var(--mint); }
.face-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* --- full-bleed Abu Dhabi band --- */
.media-band { padding: 0; margin: 8px 0; }
.media-band-frame {
  position: relative;
  width: 100%;
  height: clamp(300px, 38vw, 520px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.media-band-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1400ms cubic-bezier(.2,.7,.2,1);
}
.media-band-frame:hover img { transform: scale(1.12); }
.media-band-frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 22, 0.72), transparent 30%, transparent 78%, rgba(5, 4, 22, 0.42)),
    linear-gradient(180deg, rgba(5, 4, 22, 0.32), transparent 26%, transparent 60%, rgba(5, 4, 22, 0.82));
  pointer-events: none;
}
.media-band-cap {
  position: absolute;
  left: clamp(20px, 6vw, 88px);
  bottom: clamp(24px, 5vw, 56px);
  z-index: 5;
  max-width: 560px;
}
.media-band-cap .kicker {
  display: block;
  margin-bottom: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}
.media-band-cap strong {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

/* --- fiber-pulse band in impact --- */
.pulse-band {
  position: relative;
  margin: 44px 0 4px;
  height: clamp(140px, 18vw, 220px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.pulse-band img { width: 100%; height: 100%; object-fit: cover; }
.pulse-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--void), transparent 12%, transparent 88%, var(--void));
  pointer-events: none;
}

/* --- stage lights: illuminate key imagery on reveal --- */
[data-lights] { position: relative; overflow: hidden; }
[data-lights] > img {
  filter: brightness(0.56) saturate(0.78) contrast(1.05);
  transition: filter 1700ms cubic-bezier(.2,.7,.2,1);
}
[data-lights].lit > img {
  filter: brightness(1.14) saturate(1.1) contrast(1.02);
}
.light-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(140% 120% at var(--fx, 50%) var(--fy, 45%),
    transparent 6%, rgba(3, 2, 14, 0.5) 46%, rgba(3, 2, 14, 0.9) 100%);
  opacity: 1;
  transition: opacity 1800ms cubic-bezier(.2,.7,.2,1);
}
[data-lights].lit .light-veil { opacity: 0.26; }
.light-sweep {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(72deg, transparent 38%, rgba(94, 234, 212, 0.10) 49%, rgba(255, 255, 255, 0.16) 51%, transparent 63%);
  transform: translateX(-130%);
  opacity: 0;
}
[data-lights].lit .light-sweep {
  animation: lightSweep 1700ms cubic-bezier(.2,.7,.2,1) 220ms 1;
}
@keyframes lightSweep {
  0% { transform: translateX(-130%); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}
.flip-front img { filter: brightness(1.12) saturate(1.06); }
@media (prefers-reduced-motion: reduce) {
  [data-lights] > img { filter: brightness(1.08) saturate(1.05); }
  .light-veil { opacity: 0.26; }
  .light-sweep { display: none; }
}

/* --- recessed circles: indicator dots sit IN the surface, not on it --- */
.phase .node {
  background: var(--void-2);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.55),
    inset 0 -1px 2px rgba(167, 139, 250, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.05);
}
.monitor-head .lights span {
  box-shadow:
    inset 0 1.5px 3px rgba(0, 0, 0, 0.6),
    inset 0 -0.5px 1px rgba(255, 255, 255, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-eyebrow .dot {
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 12px var(--mint),
    0 1px 0 rgba(255, 255, 255, 0.05);
}
.face-label .dot {
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 8px currentColor;
}

@media (max-width: 1024px) {
  .about-grid--media { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner, .media-band-frame img { transition: none; }
}
