/* ==========================================================================
   ED-AI — Smarter targeting, higher engagement
   ========================================================================== */

:root {
  /* Palette: deep navy + electric blue/violet gradient */
  --bg:           #060818;
  --bg-2:         #0a0f2e;
  --bg-3:         #0e1538;
  --surface:      rgba(20, 27, 64, 0.55);
  --surface-2:    rgba(28, 36, 80, 0.7);
  --border:       rgba(120, 140, 220, 0.18);
  --border-2:     rgba(120, 140, 220, 0.32);

  --ink:          #f5f7ff;
  --ink-2:        #c8cef0;
  --ink-3:        #8a92bf;

  --blue:         #4f9cff;
  --cyan:         #6cd4ff;
  --violet:       #9a6bff;
  --magenta:      #d56bff;

  --grad-1:       linear-gradient(135deg, #4f9cff 0%, #9a6bff 60%, #d56bff 100%);
  --grad-soft:    linear-gradient(135deg, rgba(79,156,255,0.18), rgba(154,107,255,0.18));
  --grad-text:    linear-gradient(110deg, #6cd4ff 0%, #4f9cff 35%, #9a6bff 70%, #d56bff 100%);

  --glow-blue:    0 0 60px rgba(79, 156, 255, 0.35);
  --glow-violet:  0 0 60px rgba(154, 107, 255, 0.35);
  --shadow-card:  0 20px 60px rgba(2, 4, 20, 0.55), inset 0 1px 0 rgba(255,255,255,0.04);

  --radius:       20px;
  --radius-sm:    14px;
  --radius-lg:    32px;

  --max:          1240px;
  --pad-section:  clamp(4rem, 8vw, 7rem);

  --display:      'Barlow Condensed', 'Bebas Neue', sans-serif;
  --body:         'Inter', system-ui, sans-serif;
}

/* Reset & base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient orbs (atmosphere) ------------------------------------ */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}
body::before {
  top: -20vmax; left: -20vmax;
  background: radial-gradient(circle, #4f9cff 0%, transparent 65%);
  animation: orb-drift-1 28s ease-in-out infinite alternate;
}
body::after {
  bottom: -25vmax; right: -25vmax;
  background: radial-gradient(circle, #9a6bff 0%, transparent 65%);
  animation: orb-drift-2 32s ease-in-out infinite alternate;
}
@keyframes orb-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20vw, 15vh) scale(1.15); }
}
@keyframes orb-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-15vw, -10vh) scale(1.2); }
}

/* Subtle grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120,140,220,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,140,220,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Typography ------------------------------------------------------------- */
h1, h2, h3, h4, .display, .eyebrow, .brand, .btn, nav a {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink);
}
h1, h2 { line-height: 0.95; font-weight: 700; }
h3 { line-height: 1.05; font-weight: 600; }
.lead, p { color: var(--ink-2); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad-1);
}

/* Layout ----------------------------------------------------------------- */
.container {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
}
.section {
  padding: var(--pad-section) 0;
  position: relative;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 8, 24, 0.65);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(6, 8, 24, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 76px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-mark {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-mark .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-tag {
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-top: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
nav.primary a {
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  transition: color 0.25s ease;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--grad-1);
  transition: width 0.3s ease, left 0.3s ease;
}
nav.primary a:hover { color: var(--ink); }
nav.primary a:hover::after { width: 100%; left: 0; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  width: 44px; height: 44px;
  color: var(--ink);
  font-size: 1.2rem;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-1);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(79, 156, 255, 0.35);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d56bff 0%, #9a6bff 50%, #4f9cff 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(154, 107, 255, 0.45);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary { background: rgba(255,255,255,0.04); }
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.btn-cta {
  height: 44px;
  padding: 0 1.2rem;
  font-size: 0.74rem;
}

/* HERO ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: min(calc(100vh - 200px), 640px);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.hero h1 .line-1 { display: block; color: var(--ink); }
.hero h1 .line-2 {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease-in-out infinite;
}
.hero-divider {
  width: 80px; height: 3px;
  background: var(--grad-1);
  border-radius: 2px;
  margin: 0 0 1.8rem;
}
.hero .lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  max-width: 52ch;
  margin: 0 0 2.2rem;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Hero visual ------------------------------------------------------------ */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
}
.hero-orb {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(108, 212, 255, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(213, 107, 255, 0.30), transparent 55%),
    radial-gradient(circle at center, rgba(79, 156, 255, 0.22), transparent 70%);
  filter: blur(8px);
  animation: pulse-orb 6s ease-in-out infinite;
}
@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.05); opacity: 1; }
}
.hero-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32%; height: 32%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 60%),
    var(--grad-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 0 60px rgba(79, 156, 255, 0.6),
    0 0 120px rgba(154, 107, 255, 0.4);
  z-index: 3;
}
.hero-core::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  animation: ring-rotate 12s linear infinite;
}
.hero-core::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(108, 212, 255, 0.25);
  animation: ring-rotate 24s linear infinite reverse;
}
@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.hero-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  background: rgba(20, 27, 64, 0.7);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  z-index: 4;
  animation: node-float 5s ease-in-out infinite;
}
.hero-node .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-1);
  box-shadow: 0 0 12px rgba(79,156,255,0.6);
  flex: none;
}
.hero-node-1 { top: 10%;  left: 4%;  animation-delay: 0s;   }
.hero-node-2 { top: 28%;  left: 0%;  animation-delay: 0.5s; }
.hero-node-3 { top: 49%;  left: 0%;  animation-delay: 1.0s; }
.hero-node-5 { top: 70%;  left: 6%;  animation-delay: 1.5s; }
.hero-node-4 { top: 88%;  left: 14%; animation-delay: 2.0s; }
.hero-node-r1 { top: 8%;   right: 2%;  animation-delay: 0.3s; }
.hero-node-r2 { top: 36%;  right: -2%; animation-delay: 0.9s; }
.hero-node-r3 { top: 64%;  right: 0%;  animation-delay: 1.5s; }
.hero-node-r4 { top: 86%;  right: 8%;  animation-delay: 2.1s; }
@keyframes node-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-stats {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  border-top: 1px solid var(--border);
  padding-top: clamp(1.5rem, 3vw, 2rem);
}
.hero-stat .num {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.hero-stat .num .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat .lbl {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 0.4rem;
  text-transform: uppercase;
}

/* Section headings ------------------------------------------------------- */
.section-head {
  max-width: 720px;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
.section-head .lead { font-size: 1.05rem; max-width: 60ch; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Generic split ---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

/* Image card (with frame & glow) ----------------------------------------- */
.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-card);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  will-change: transform;
}
.image-card.tilting { transition: transform 0.1s linear; }
.image-card:hover { box-shadow: 0 30px 80px rgba(2, 4, 20, 0.7), 0 0 60px rgba(79, 156, 255, 0.15); }
.image-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* JS handles the parallax transform — do NOT set transform here. */
}
.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(6, 8, 24, 0.85) 100%);
  pointer-events: none;
}
/* tilt-l/tilt-r kept for compat, but no transform (would conflict with 3D tilt) */
.image-card.tilt-l, .image-card.tilt-r { /* no rotate — handled by 3D tilt instead */ }

.image-card .badge {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  padding: 0.45rem 0.9rem;
  background: rgba(6, 8, 24, 0.75);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* Cards ------------------------------------------------------------------ */
.card {
  position: relative;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108,212,255,0.4), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 1; }
.card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
  color: var(--ink);
}
.card p { margin: 0; color: var(--ink-2); }

.card-index {
  display: inline-block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}
.card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  margin-bottom: 1.2rem;
  color: var(--cyan);
}
.card-icon svg { width: 24px; height: 24px; }

.card.featured {
  background: linear-gradient(135deg, rgba(79,156,255,0.22), rgba(154,107,255,0.22));
  border-color: rgba(108, 212, 255, 0.4);
}
.card.featured::before { opacity: 1; }
.card.featured h3 { color: var(--ink); }

/* Solution showcase grid ------------------------------------------------- */
.cards-grid {
  display: grid;
  gap: 1.2rem;
}
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Showcase block (image + copy) ----------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Deliverables ---------------------------------------------------------- */
.deliverable {
  position: relative;
  padding: 1.8rem 1.8rem 1.8rem 5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  margin-bottom: 1rem;
  transition: transform 0.4s ease, border-color 0.3s ease;
}
.deliverable:hover {
  transform: translateX(6px);
  border-color: var(--border-2);
}
.deliverable .num {
  position: absolute;
  left: 1.2rem; top: 1.5rem;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-1);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,156,255,0.35);
}
.deliverable h3 { font-size: 1.3rem; margin: 0 0 0.6rem; color: var(--ink); }
.deliverable p  { margin: 0 0 0.7rem; }
.deliverable ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.deliverable ul li { margin-bottom: 0.3rem; }

/* Compliance: badges row ------------------------------------------------- */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(108, 212, 255, 0.08);
  border: 1px solid rgba(108, 212, 255, 0.3);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-transform: uppercase;
}
.badge-pill svg { width: 14px; height: 14px; }

/* Audience mosaic ------------------------------------------------------- */
.audience-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.audience-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.audience-tile.tilting { transition: transform 0.1s linear, border-color 0.3s ease, box-shadow 0.4s ease; }
.audience-tile:nth-child(1) { aspect-ratio: 4 / 5; }
.audience-tile:nth-child(2) { aspect-ratio: 3 / 4; margin-top: 2rem; }
.audience-tile:nth-child(3) { aspect-ratio: 4 / 5; }
.audience-tile:nth-child(4) { aspect-ratio: 3 / 4; margin-top: 2rem; }
.audience-tile:hover {
  border-color: var(--cyan);
  box-shadow: 0 25px 60px rgba(2, 4, 20, 0.6), 0 0 50px rgba(108, 212, 255, 0.2);
}
.audience-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* JS handles parallax — no transition/transform here. */
}
.audience-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 8, 24, 0.92) 100%);
  pointer-events: none;
}
.audience-tile figcaption {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile-kicker {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.tile-title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
}
@media (max-width: 1080px) {
  .audience-mosaic { grid-template-columns: 1fr 1fr; }
  .audience-tile:nth-child(2),
  .audience-tile:nth-child(4) { margin-top: 0; }
}
@media (max-width: 560px) {
  .audience-mosaic { grid-template-columns: 1fr; }
  .audience-tile,
  .audience-tile:nth-child(1),
  .audience-tile:nth-child(2),
  .audience-tile:nth-child(3),
  .audience-tile:nth-child(4) { aspect-ratio: 4 / 3; margin-top: 0; }
}


.contact-section { position: relative; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.contact-info {
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(160deg, rgba(20, 27, 64, 0.85), rgba(28, 36, 80, 0.6));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(154,107,255,0.4) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.contact-info > * { position: relative; }
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.contact-info ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
  color: var(--ink-2);
}
.contact-info ul li svg {
  width: 20px; height: 20px;
  color: var(--cyan);
  margin-top: 2px;
  flex: none;
}
/* Process list (numbered steps) ----------------------------------------- */
.process-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  counter-reset: step;
}
.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.7rem 0;
  color: var(--ink-2);
  position: relative;
}
.process-list li + li {
  border-top: 1px solid var(--border);
}
.process-list .step-num {
  flex: none;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-1);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(79, 156, 255, 0.35);
}
.process-list .step-body {
  padding-top: 7px;
  font-size: 0.96rem;
  line-height: 1.55;
}
.contact-direct {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--ink-3);
}
.contact-direct a {
  color: var(--cyan);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.contact-direct a:hover { border-color: var(--cyan); }

/* Form ------------------------------------------------------------------- */
.contact-form {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}
.form-row { margin-bottom: 1.4rem; }
.form-row label {
  display: block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.55rem;
}
.form-row.has-error label { color: #ff9a9a; }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: rgba(6, 8, 24, 0.5);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--ink);
  font: 500 1rem var(--body);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--ink-3); }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--cyan);
  background: rgba(6, 8, 24, 0.75);
  box-shadow: 0 0 0 4px rgba(108, 212, 255, 0.12);
}
.form-row.has-error input,
.form-row.has-error textarea,
.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: rgba(255, 100, 100, 0.72);
  background: rgba(42, 10, 20, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 100, 100, 0.12);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.field-error {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #ff9a9a;
}
.field-error:empty { display: none; }
.form-note {
  margin: -0.1rem 0 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-3);
}
.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}
.form-msg {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  display: none;
}
.form-msg.success {
  display: block;
  background: rgba(108, 212, 255, 0.1);
  border: 1px solid rgba(108, 212, 255, 0.3);
  color: var(--cyan);
}
.form-msg.error {
  display: block;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  color: #ff8888;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-row p,
.footer-row a {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.footer-row a:hover { color: var(--cyan); }
.footer-meta {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* Reveal animations ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in { transition-delay: 0.08s; }
.reveal-delay-2.in { transition-delay: 0.16s; }
.reveal-delay-3.in { transition-delay: 0.24s; }
.reveal-delay-4.in { transition-delay: 0.32s; }

/* When .audience-tile is itself a .reveal, the transform must combine
   the translateY (reveal) AND the perspective tilt (3D hover). */
.audience-tile.reveal {
  transform: translateY(28px) perspective(1000px)
             rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.audience-tile.reveal.in {
  transform: translateY(0) perspective(1000px)
             rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

/* Masked image reveal: when a .reveal wraps an .image-card / .audience-tile,
   the inner image gets a clip-path that opens upward as the parent .in's. */
.reveal .image-card,
.reveal .audience-tile,
.reveal.audience-tile {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition:
    clip-path 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s ease,
    border-color 0.3s ease;
}
.reveal.in .image-card,
.reveal.in .audience-tile,
.reveal.audience-tile.in {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
/* Stagger the inner card's clip-path slightly after the parent's translate. */
.reveal.in .image-card,
.reveal.in .audience-tile { transition-delay: 0.05s, 0s, 0s, 0s; }
.reveal-delay-1.in .image-card,
.reveal-delay-1.in .audience-tile,
.reveal-delay-1.audience-tile.in { transition-delay: 0.13s, 0s, 0s, 0s; }
.reveal-delay-2.in .image-card,
.reveal-delay-2.in .audience-tile,
.reveal-delay-2.audience-tile.in { transition-delay: 0.21s, 0s, 0s, 0s; }
.reveal-delay-3.in .image-card,
.reveal-delay-3.in .audience-tile,
.reveal-delay-3.audience-tile.in { transition-delay: 0.29s, 0s, 0s, 0s; }
.reveal-delay-4.in .image-card,
.reveal-delay-4.in .audience-tile,
.reveal-delay-4.audience-tile.in { transition-delay: 0.37s, 0s, 0s, 0s; }

/* Hero entrance staggered */
.hero h1 .line-1,
.hero h1 .line-2,
.hero-divider,
.hero .lead,
.hero-actions,
.hero-stats,
.hero-visual {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero h1 .line-1   { animation-delay: 0.1s; }
.hero h1 .line-2   { animation-delay: 0.25s; }
.hero-divider      { animation-delay: 0.4s; }
.hero .lead        { animation-delay: 0.5s; }
.hero-actions      { animation-delay: 0.65s; }
.hero-stats        { animation-delay: 0.85s; }
.hero-visual       { animation-delay: 0.3s; transform: translateY(20px) scale(0.96); }
.hero-visual.in,
.hero-visual { /* gets animated by keyframes above */ }
@keyframes rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Reduced motion --------------------------------------------------------- */
/* When the user requests reduced motion, we keep gentle 200ms transitions
   on entrances (so things still feel deliberate, not "appearing all at once")
   but we disable all the looping/distracting effects: floating orbs,
   ambient ring rotations, gradient shifts, hero-node bobbing, etc. */
@media (prefers-reduced-motion: reduce) {
  /* Stop infinite/looping animations (orbs, rings, gradient shifts, nodes). */
  body::before,
  body::after,
  .hero-orb,
  .hero-core::before,
  .hero-core::after,
  .hero-node,
  .gradient-text,
  .hero h1 .line-2 { animation: none !important; }

  /* Keep entrance/scroll-reveal transitions visible but short. */
  .reveal,
  .reveal .image-card,
  .reveal .audience-tile,
  .reveal.audience-tile,
  .image-card,
  .audience-tile,
  .card,
  .deliverable {
    transition-duration: 0.25s !important;
  }

  .hero h1 .line-1,
  .hero h1 .line-2,
  .hero-divider,
  .hero .lead,
  .hero-actions,
  .hero-stats,
  .hero-visual {
    animation-duration: 0.25s !important;
  }

  /* Disable scroll-coupled side effects (parallax + smooth scroll). */
  html { scroll-behavior: auto !important; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split, .showcase, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

  /* Below 1080px the hero stacks. The diagram (orb + nodes + lines) is
     hidden entirely — title, lead, CTAs and stats carry the page on their own. */
  .hero-visual { display: none; }
}
@media (max-width: 920px) {
  nav.primary {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem;
    background: rgba(6, 8, 24, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s;
    pointer-events: none;
    visibility: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  }
  nav.primary.open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
  }
  nav.primary a {
    padding: 0.8rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  nav.primary .btn-cta { margin-top: 0.6rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 760px) {
  .cards-grid.cols-4,
  .cards-grid.cols-3,
  .cards-grid.cols-2 { grid-template-columns: 1fr; }

  .hero-stats { grid-template-columns: 1fr; gap: 1.2rem; }

  .image-card.tilt-l, .image-card.tilt-r { transform: none; }
}
@media (max-width: 480px) {
  .container { width: min(calc(100% - 1.2rem), var(--max)); }
  .deliverable { padding: 1.5rem 1.2rem 1.2rem 4rem; }
  .deliverable .num { left: 0.9rem; width: 38px; height: 38px; font-size: 1rem; }
  .card { padding: 1.4rem; }
}
