/* ==========================================================================
   Quantrux — design tokens & shared styles
   ========================================================================== */

:root {
  --navy-950: #050a16;
  --navy-900: #08122a;
  --navy-800: #0c1a3a;
  --navy-700: #1a2a5c;
  --navy-600: #17275a;
  --blue-600: #2f5ce6;
  --blue-500: #4470f0;
  --blue-400: #6f93f7;
  --lavender-200: #c9cfe8;
  --lavender-100: #e3e6f5;
  --teal-400: #34c7c2;
  --amber-400: #f2ab3d;

  --ink-900: #0a0e1a;
  --ink-700: #333a52;
  --ink-500: #5c657f;
  --ink-400: #838ba3;

  --paper-0: #ffffff;
  --paper-50: #f7f8fc;
  --paper-100: #eef0f8;
  --paper-200: #dfe3f0;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 20, 60, 0.06), 0 1px 1px rgba(10, 20, 60, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 30, 90, 0.18), 0 2px 8px -2px rgba(15, 30, 90, 0.10);
  --shadow-lg: 0 24px 60px -16px rgba(10, 20, 60, 0.28), 0 8px 24px -8px rgba(20, 40, 100, 0.16);
  --shadow-glow: 0 0 0 1px rgba(111, 147, 247, 0.15), 0 20px 50px -12px rgba(47, 92, 230, 0.35);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink-900);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 900px) {
  .container { padding: 0 40px; }
}

/* ---- grain texture overlay (used on dark sections) ---- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(47, 92, 230, 0.55), 0 2px 8px -2px rgba(47, 92, 230, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(47, 92, 230, 0.65), 0 4px 12px -2px rgba(47, 92, 230, 0.4); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 0 0 6px rgba(47, 92, 230, 0.55); }

.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.btn-ghost-dark:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }

.btn-outline {
  background: transparent;
  border-color: var(--paper-200);
  color: var(--ink-900);
}
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); background: var(--paper-50); }
.btn-outline:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47, 92, 230, 0.25); }

.btn-block { width: 100%; }

/* ==========================================================================
   Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), padding 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(5, 10, 22, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-md);
  padding: 12px 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.brand img { width: 30px; height: 30px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color 0.25s, background-color 0.25s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.is-active { color: #fff; background: rgba(255,255,255,0.1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  color: #fff;
}

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  padding: 100px 28px 40px;
  gap: 6px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu .btn { margin-top: 24px; }

@media (min-width: 980px) {
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  padding: 168px 0 120px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(70, 120, 255, 0.55), transparent 60%),
    radial-gradient(45% 50% at 15% 85%, rgba(52, 199, 194, 0.22), transparent 60%),
    linear-gradient(160deg, #050a16 0%, #0a1530 45%, #123064 78%, #1c58c9 130%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 60% 30%, black, transparent 80%);
  animation: driftGrid 40s linear infinite;
}

@keyframes driftGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 128px 128px, 128px 128px; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
  opacity: 0.55;
  animation: floatOrb 12s ease-in-out infinite;
}
.hero-orb.o1 { width: 10px; height: 10px; background: var(--blue-400); top: 22%; left: 62%; animation-delay: 0s; }
.hero-orb.o2 { width: 6px; height: 6px; background: var(--teal-400); top: 40%; left: 78%; animation-delay: 2s; }
.hero-orb.o3 { width: 8px; height: 8px; background: var(--lavender-200); top: 65%; left: 55%; animation-delay: 4s; }
.hero-orb.o4 { width: 5px; height: 5px; background: var(--blue-400); top: 15%; left: 40%; animation-delay: 1s; }
.hero-orb.o5 { width: 7px; height: 7px; background: var(--teal-400); top: 75%; left: 30%; animation-delay: 3s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.35; }
  50% { transform: translate(-14px,-22px) scale(1.4); opacity: 0.9; }
}

.hero-inner { position: relative; max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--lavender-200);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(52,199,194,0.25); }

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  color: #fff;
  margin-bottom: 26px;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-400), var(--teal-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero .lead {
  font-size: 1.15rem;
  color: rgba(226, 230, 245, 0.82);
  max-width: 620px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Sections / typography helpers
   ========================================================================== */

section { position: relative; }

.section-pad { padding: 110px 0; }
.section-pad-sm { padding: 72px 0; }

.eyebrow-light {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; line-height: 1.7; }

.bg-paper { background: var(--paper-50); }
.bg-dark { background: var(--navy-950); color: #fff; }
.bg-dark .section-head p { color: rgba(226,230,245,0.75); }
.bg-dark h2, .bg-dark h3 { color: #fff; }

/* ==========================================================================
   Pillars / cards
   ========================================================================== */

.pillar-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card {
  position: relative;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--blue-600), #1a3fb0);
  box-shadow: 0 10px 24px -8px rgba(47,92,230,0.5);
  color: #fff;
}
.pillar-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.pillar-card p { color: var(--ink-500); font-size: 0.98rem; line-height: 1.65; }

/* ==========================================================================
   Stat strip
   ========================================================================== */

.proof-band {
  background: var(--paper-100);
  border-radius: var(--radius-lg);
  padding: 42px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 860px) {
  .proof-band { flex-direction: row; align-items: center; }
}

.proof-quote { max-width: 420px; }
.proof-quote p { font-family: "Sora", sans-serif; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.proof-quote a { color: var(--blue-600); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.proof-quote a:hover { text-decoration: underline; }

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-item .num { font-family: "Sora", sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--blue-600); letter-spacing: -0.02em; }
.stat-item .label { font-size: 0.85rem; color: var(--ink-500); max-width: 140px; margin-top: 4px; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950) 60%);
  border-radius: var(--radius-lg);
  padding: 64px 44px;
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(70,120,255,0.45), transparent 70%);
  z-index: -1;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 640px; margin: 0 auto 18px; }
.cta-band p { color: rgba(226,230,245,0.78); max-width: 600px; margin: 0 auto 34px; font-size: 1.02rem; line-height: 1.7; }

.cta-band-simple {
  background: var(--navy-950);
  padding: 90px 0;
  text-align: center;
}
.cta-band-simple h2 { color: #fff; margin-bottom: 16px; }
.cta-band-simple p { color: rgba(226,230,245,0.75); max-width: 520px; margin: 0 auto 32px; }

/* ==========================================================================
   Services page
   ========================================================================== */

.service-block {
  display: grid;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--paper-200);
}
.service-block:first-of-type { border-top: none; }

@media (min-width: 900px) {
  .service-block { grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
}

.service-index {
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block;
}

.service-block h3 { font-size: 1.6rem; margin-bottom: 10px; }
.service-block .tagline { color: var(--ink-500); font-size: 1.05rem; margin-bottom: 4px; }

.check-list { display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-700);
  line-height: 1.6;
}
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-600); }

.callout-box {
  margin-top: 26px;
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-left: 3px solid var(--blue-600);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.callout-box .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-600); margin-bottom: 8px; display: block; }
.callout-box p { font-size: 0.95rem; color: var(--ink-700); line-height: 1.65; }

/* ==========================================================================
   How it works / case study
   ========================================================================== */

.case-hero {
  background: var(--navy-950);
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--lavender-200);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.case-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 760px; margin-bottom: 22px; }
.case-hero p { color: rgba(226,230,245,0.8); font-size: 1.08rem; max-width: 620px; line-height: 1.7; }

.case-step {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid var(--paper-200);
}
@media (min-width: 900px) {
  .case-step { grid-template-columns: 1fr 1fr; gap: 70px; }
  .case-step.reverse .case-step-media { order: 2; }
}

.case-step-number {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-600);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}
.case-step h3 { font-size: 1.7rem; margin-bottom: 16px; }
.case-step p { color: var(--ink-500); font-size: 1.02rem; line-height: 1.75; }

.case-step-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--paper-200);
}

.mock-card {
  background: var(--paper-0);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.mock-post {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  margin-bottom: 12px;
}
.mock-post:last-child { margin-bottom: 0; }
.mock-post .thumb { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--blue-500), var(--teal-400)); flex-shrink: 0; }
.mock-post .lines { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.mock-post .lines span { display: block; height: 8px; border-radius: 4px; background: var(--paper-200); }
.mock-post .lines span:first-child { width: 60%; background: var(--ink-400); opacity: 0.4; }
.mock-post .status { align-self: center; font-size: 0.7rem; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-full); }
.mock-post .status.pending { background: #fef3d6; color: #9a6b00; }
.mock-post .status.approved { background: #dcf6ee; color: #0a8f6d; }

.mock-funnel { display: flex; flex-direction: column; gap: 10px; }
.mock-funnel-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--paper-200); }
.mock-funnel-row .name { font-weight: 600; font-size: 0.92rem; }
.mock-funnel-row .meta { font-size: 0.78rem; color: var(--ink-400); }
.temp-pill { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); }
.temp-pill.hot { background: #fde3de; color: #c8451f; }
.temp-pill.warm { background: #fef1d6; color: #b3790a; }
.temp-pill.cold { background: #e3ecfb; color: #2f5ce6; }

.mock-filter { display: flex; flex-direction: column; gap: 16px; }
.mock-filter-row { display: flex; flex-direction: column; gap: 8px; }
.mock-filter-row .filter-label { font-size: 0.8rem; color: var(--ink-500); font-weight: 600; }
.mock-bar { height: 10px; border-radius: var(--radius-full); background: var(--paper-200); overflow: hidden; }
.mock-bar span { display: block; height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--blue-500), var(--teal-400)); }

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero {
  background: var(--navy-950);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.about-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 780px; }
.about-hero .lead { color: rgba(226,230,245,0.8); font-size: 1.1rem; max-width: 680px; margin-top: 26px; line-height: 1.75; }

.about-body { max-width: 760px; }
.about-body p { color: var(--ink-700); font-size: 1.05rem; line-height: 1.8; margin-bottom: 22px; }

.who-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
.who-card {
  display: flex;
  gap: 16px;
  padding: 26px;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-spring);
}
.who-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.who-card .num { font-family: "Sora", sans-serif; font-weight: 700; color: var(--blue-600); font-size: 1.1rem; flex-shrink: 0; }
.who-card p { font-size: 0.98rem; color: var(--ink-700); line-height: 1.6; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-hero {
  background: var(--navy-950);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.contact-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.2rem); max-width: 640px; }
.contact-hero p { color: rgba(226,230,245,0.8); font-size: 1.08rem; max-width: 560px; margin-top: 22px; line-height: 1.7; }

.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
}

.form-card {
  background: var(--paper-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--paper-200);
}

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.field input, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--paper-200);
  background: var(--paper-50);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink-900);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c657f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:hover, .field select:hover { border-color: var(--ink-400); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 92, 230, 0.14);
}

.side-card {
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  height: fit-content;
}
.side-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.98rem; color: var(--ink-700); }
.contact-line .icon-dot {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), #1a3fb0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.locations { display: flex; gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--paper-200); }
.location-chip { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--ink-700); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: rgba(226,230,245,0.72);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 26px; height: 26px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 26px; font-size: 0.85rem; color: rgba(226,230,245,0.5); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Misc utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-lg { margin-top: 60px; }
.hide-mobile { display: none; }
@media (min-width: 780px) { .hide-mobile { display: block; } }

/* ==========================================================================
   Articles — index & post
   ========================================================================== */

.articles-hero {
  background: var(--navy-950);
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}
.articles-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 720px; }
.articles-hero p { color: rgba(226,230,245,0.8); font-size: 1.08rem; max-width: 600px; margin-top: 22px; line-height: 1.7; }

/* ---- index list ---- */
.article-list { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .article-list { grid-template-columns: repeat(2, 1fr); } }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-lg);
  padding: 34px 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--ink-400);
}
.article-meta .cat {
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.article-meta .sep { opacity: 0.5; }

.article-card h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 14px;
}
.article-card h2 a { transition: color 0.25s; }
.article-card h2 a:hover { color: var(--blue-600); }

.article-card .excerpt {
  color: var(--ink-500);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.article-card .read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap 0.3s var(--ease-out), color 0.25s;
}
.article-card .read-more:hover { gap: 12px; color: var(--blue-500); }
.article-card .read-more:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47,92,230,0.25); border-radius: 4px; }

/* ---- single post ---- */
.post-hero {
  background: var(--navy-950);
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.post-hero .container { position: relative; }
.post-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  max-width: 860px;
  margin-bottom: 24px;
}
.post-hero .standfirst {
  color: rgba(226,230,245,0.82);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 760px;
  font-style: italic;
  border-left: 3px solid var(--blue-500);
  padding-left: 20px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.82rem;
  color: rgba(226,230,245,0.6);
}
.post-meta .cat {
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-400);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(226,230,245,0.7);
  margin-bottom: 26px;
  transition: gap 0.3s var(--ease-out), color 0.25s;
}
.back-link:hover { gap: 12px; color: #fff; }

/* article body */
.post-body {
  max-width: 760px;
  margin: 0 auto;
}
.post-body > * + * { margin-top: 26px; }

.post-body p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink-700);
}
.post-body strong { color: var(--ink-900); font-weight: 650; }

.post-body h2 {
  font-size: 1.75rem;
  margin-top: 60px;
  padding-top: 8px;
  line-height: 1.25;
}
.post-body h3 {
  font-size: 1.28rem;
  margin-top: 44px;
  line-height: 1.3;
}

.post-body ul, .post-body ol {
  padding-left: 0;
  display: grid;
  gap: 14px;
}
.post-body ul li {
  position: relative;
  padding-left: 26px;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-700);
}
.post-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}
.post-body ol { counter-reset: postlist; list-style: none; }
.post-body ol li {
  position: relative;
  padding-left: 40px;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-700);
  counter-increment: postlist;
}
.post-body ol li::before {
  content: counter(postlist);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-100);
  color: var(--blue-600);
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-body hr {
  border: none;
  height: 1px;
  background: var(--paper-200);
  margin: 54px 0;
}

.post-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--blue-500); }

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-100);
  border: 1px solid var(--paper-200);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ink-900);
}

/* pull-quote style callout */
.post-callout {
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-left: 3px solid var(--blue-600);
  border-radius: var(--radius-md);
  padding: 26px 30px;
}
.post-callout p { font-size: 1.06rem; margin: 0; }
.post-callout p + p { margin-top: 14px; }

/* tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.post-body thead th {
  background: var(--paper-50);
  text-align: left;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  padding: 15px 18px;
  border-bottom: 1px solid var(--paper-200);
}
.post-body tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--paper-100);
  color: var(--ink-700);
  line-height: 1.6;
  vertical-align: top;
}
.post-body tbody tr:last-child td { border-bottom: none; }
.post-body tbody tr:nth-child(even) { background: rgba(247,248,252,0.6); }
.post-body tbody td:first-child { color: var(--ink-900); font-weight: 550; }

/* sources block */
.post-sources {
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  margin-top: 54px;
}
.post-sources h3 { font-size: 1.05rem; margin-top: 0; margin-bottom: 20px; }
.post-sources ul { display: grid; gap: 12px; }
.post-sources li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-500);
  padding-left: 20px;
  position: relative;
}
.post-sources li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-400);
}
.post-sources em { font-style: italic; }

/* ==========================================================================
   Homepage — capability grid, steps, article teasers
   ========================================================================== */

/* ---- five-capability grid: 3 on top, 2 wider below ---- */
.cap-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cap-grid { grid-template-columns: repeat(6, 1fr); }
  .cap-card:nth-child(-n+3) { grid-column: span 2; }
  .cap-card:nth-child(n+4)  { grid-column: span 3; }
}

.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.cap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.cap-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue-600), #1a3fb0);
  box-shadow: 0 8px 20px -8px rgba(47,92,230,0.5);
  color: #fff;
  flex-shrink: 0;
}
.cap-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; }
.cap-card p { color: var(--ink-500); font-size: 0.95rem; line-height: 1.65; margin-bottom: 16px; }

.cap-list { display: grid; gap: 6px; margin-bottom: 20px; }
.cap-list li {
  font-size: 0.86rem;
  color: var(--ink-500);
  padding-left: 15px;
  position: relative;
  line-height: 1.5;
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-400);
}

.cap-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap 0.3s var(--ease-out), color 0.25s;
}
.cap-link:hover { gap: 11px; color: var(--blue-500); }
.cap-link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47,92,230,0.25); border-radius: 4px; }

/* ---- audience split ---- */
.audience-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 44px;
}
@media (min-width: 760px) { .audience-row { grid-template-columns: 1fr 1fr; } }

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.35s var(--ease-spring);
}
.audience-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); transform: translateY(-3px); }
.audience-card .who { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-400); }
.audience-card h3 { color: #fff; font-size: 1.1rem; }
.audience-card p { color: rgba(226,230,245,0.72); font-size: 0.92rem; line-height: 1.6; }
.audience-card .go { color: #fff; font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; transition: gap 0.3s var(--ease-out); }
.audience-card:hover .go { gap: 11px; }

/* ---- three-step process ---- */
.steps-row {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  counter-reset: stepnum;
}
@media (min-width: 860px) { .steps-row { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.step-item { counter-increment: stepnum; position: relative; padding-top: 8px; }
.step-item::before {
  content: counter(stepnum, decimal-leading-zero);
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  line-height: 1;
}
.step-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step-item p { color: var(--ink-500); font-size: 0.95rem; line-height: 1.65; }

/* ---- three-up article teasers ---- */
.article-list.three { grid-template-columns: 1fr; }
@media (min-width: 900px) { .article-list.three { grid-template-columns: repeat(3, 1fr); } }
.article-list.three .article-card { padding: 28px 26px 26px; }
.article-list.three .article-card h2 { font-size: 1.08rem; }
.article-list.three .article-card .excerpt { font-size: 0.92rem; margin-bottom: 20px; }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ==========================================================================
   Hero — word-by-word entrance
   ========================================================================== */

/* .word spans only exist once JS has split the heading, so a JS failure
   leaves the heading fully visible and unstyled. */
.hero h1 .word,
.hero .lead.reveal-block,
.hero .hero-ctas.reveal-block,
.hero .audience-row.reveal-block {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
}

.hero h1 .word { display: inline-block; }

.hero h1.is-in .word,
.hero .lead.reveal-block.is-in,
.hero .hero-ctas.reveal-block.is-in,
.hero .audience-row.reveal-block.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .word,
  .hero .lead.reveal-block,
  .hero .hero-ctas.reveal-block,
  .hero .audience-row.reveal-block {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Lead paragraph decodes rather than blurring in, so keep the blur off it
   and hide the mid-scramble text from assistive tech. */
.hero .lead.reveal-block { filter: none; }
.hero .lead.is-scrambling {
  font-variant-ligatures: none;
  -webkit-font-feature-settings: "liga" 0;
  font-feature-settings: "liga" 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero .lead.is-scrambling { font-feature-settings: normal; }
}

/* ---- recursive erosion particle sphere (hero, right-weighted) ---- */
.erosion-sphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  animation: erosionIn 2.2s var(--ease-out) 0.25s forwards;
}
@keyframes erosionIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .erosion-sphere { display: none; }
}

/* ==========================================================================
   Capability deck — 3D scroll-driven carousel
   ==========================================================================
   Mobile and reduced-motion keep a plain stacked list; the sticky 3D stage
   only engages on wide viewports where there is room for it. */

.cap-section { position: relative; }

/* default (mobile / no-JS): behave like the old stacked grid */
.cap-scroll { position: relative; }
.cap-stage { padding: 90px 0; }
.cap-deck { display: grid; gap: 22px; grid-template-columns: 1fr; }
.cap-dots { display: none; }

@media (min-width: 980px) {
  /* tall driver: one viewport to settle, then a screen of scroll per card */
  .cap-scroll.is-deck { height: calc(100vh + 4 * 68vh); }

  .cap-scroll.is-deck .cap-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  .cap-scroll.is-deck .section-head { margin-bottom: 38px; }

  .cap-scroll.is-deck .cap-deck {
    display: block;
    position: relative;
    height: 430px;
    perspective: 1700px;
    perspective-origin: 50% 50%;
  }

  .cap-scroll.is-deck .cap-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(560px, 46vw);
    height: 430px;
    margin: 0;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }

  /* the deck drives its own depth, so suppress the hover lift */
  .cap-scroll.is-deck .cap-card:hover { transform: none; }

  .cap-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    margin-top: 40px;
  }
  .cap-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--paper-200);
    transition: background-color 0.35s var(--ease-out), transform 0.35s var(--ease-spring);
  }
  .cap-dot:hover { background: var(--ink-400); }
  .cap-dot.is-active { background: var(--blue-600); transform: scale(1.5); }
  .cap-dot:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47,92,230,0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .cap-scroll.is-deck { height: auto; }
  .cap-scroll.is-deck .cap-stage { position: static; height: auto; padding: 90px 0; overflow: visible; }
  .cap-scroll.is-deck .cap-deck { display: grid; height: auto; gap: 22px; }
  .cap-scroll.is-deck .cap-card { position: static; width: auto; height: auto; transform: none !important; opacity: 1 !important; }
  .cap-dots { display: none; }
}

/* ==========================================================================
   Holo card — 3D foil tilt (ported from the Motiq HoloCard component)
   ==========================================================================
   Sprung tilt chases the pointer with lag; the foil and glare stay pinned to
   the RAW pointer, so light is instant while mass is not. Dark-surface values
   are used throughout because these cards sit on the navy hero. */

.holo-wrap {
  position: relative;
  perspective: 1100px;
}

.holo-wrap .holo-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -22px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(2, 5, 12, 0.65), transparent 70%);
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.holo-wrap.is-holo .holo-shadow { opacity: 0.75; }

/* the rAF loop drives transform, so it must not be transitioned */
.holo-wrap.is-holo .audience-card {
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}

/* card text sits above the foil and glare layers */
.holo-wrap.is-holo .audience-card > * {
  position: relative;
  z-index: 2;
}

/* iridescent foil, pinned to the raw pointer */
.holo-wrap.is-holo .audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: color-dodge;
  opacity: 0;
  filter: hue-rotate(calc(var(--holo-hue, 0) * 1deg)) saturate(1.25);
  transition: opacity 0.45s var(--ease-out);
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 5px),
    conic-gradient(
      from 210deg at calc(var(--holo-px, 0.5) * 100%) calc(var(--holo-py, 0.5) * 100%),
      #2f5ce6 0deg,
      #34c7c2 90deg,
      #95e2df 160deg,
      #2f5ce6 230deg,
      #2548b3 300deg,
      #2f5ce6 360deg
    );
}
.holo-wrap.is-holo .audience-card.is-lit::before { opacity: 0.3; }

/* specular hotspot, also pinned to the raw pointer */
.holo-wrap.is-holo .audience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(
    200px circle at calc(var(--holo-px, 0.5) * 100%) calc(var(--holo-py, 0.5) * 100%),
    rgba(255, 255, 255, 0.5),
    transparent 65%
  );
}
.holo-wrap.is-holo .audience-card.is-lit::after { opacity: var(--holo-glare-o, 0.3); }

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .holo-wrap.is-holo .audience-card::before,
  .holo-wrap.is-holo .audience-card::after,
  .holo-wrap .holo-shadow { display: none; }
  .holo-wrap.is-holo .audience-card { transform: none !important; }
}

/* The holo wrapper sits between the grid and the card, so the grid's stretch
   lands on the wrapper. Pass it through so both cards match height again. */
.audience-row > .holo-wrap { display: flex; }
.audience-row > .holo-wrap > .audience-card { flex: 1 1 auto; }

/* Stat counters: fixed-width digits so the number does not jitter while it
   rolls up, and the label stays put. */
.stat-item .num {
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}

/* ---- deck stage: fit within 100vh on short desktop viewports ----
   The stage is 100vh with overflow:hidden, so fixed heights caused the
   centred content to overhang and clip the eyebrow on ~700px-tall laptops.
   Everything vertical now scales with viewport height. */
@media (min-width: 980px) {
  .cap-scroll.is-deck .section-head {
    margin-bottom: clamp(16px, 3.2vh, 38px);
  }
  .cap-scroll.is-deck .section-head h2 {
    font-size: clamp(1.7rem, 2.6vw + 0.2vh, 2.6rem);
  }
  .cap-scroll.is-deck .section-head p {
    font-size: clamp(0.95rem, 1.6vh, 1.05rem);
  }

  .cap-scroll.is-deck .cap-deck {
    height: clamp(300px, 46vh, 430px);
  }
  .cap-scroll.is-deck .cap-card {
    height: 100%;
  }

  .cap-dots {
    margin-top: clamp(16px, 3.4vh, 40px);
  }
}

/* Too short to stage the 3D deck at all: fall back to the stacked grid. */
@media (min-width: 980px) and (max-height: 560px) {
  .cap-scroll.is-deck { height: auto; }
  .cap-scroll.is-deck .cap-stage {
    position: static;
    height: auto;
    padding: 80px 0;
    overflow: visible;
  }
  .cap-scroll.is-deck .cap-deck {
    display: grid;
    height: auto;
    gap: 22px;
    grid-template-columns: repeat(6, 1fr);
  }
  .cap-scroll.is-deck .cap-card {
    position: static;
    width: auto;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
  }
  .cap-scroll.is-deck .cap-card:nth-child(-n+3) { grid-column: span 2; }
  .cap-scroll.is-deck .cap-card:nth-child(n+4)  { grid-column: span 3; }
  .cap-dots { display: none; }
}

/* The sticky stage starts at top:0, so the fixed header overlays its top edge.
   Reserve that height and centre the content in the space below it. */
@media (min-width: 980px) {
  .cap-scroll.is-deck .cap-stage {
    padding-top: 92px;
    padding-bottom: 12px;
  }
}
@media (min-width: 980px) and (max-height: 560px) {
  .cap-scroll.is-deck .cap-stage { padding-top: 80px; padding-bottom: 80px; }
}

/* ---- shared animated hero background (all pages except home) ----
   .hero-canvas sits at z-index:-2, so its section must establish a stacking
   context or the canvas would paint behind the section's own background.
   The homepage .hero already does this; these need it too. */
.services-hero,
.work-hero,
.articles-hero,
.post-hero,
.case-hero,
.about-hero,
.contact-hero {
  isolation: isolate;
}

/* ==========================================================================
   FAQ block (marketing pages)
   ========================================================================== */

.faq-list {
  display: grid;
  gap: 0;
  max-width: 820px;
  border-top: 1px solid var(--paper-200);
}

.faq-item {
  border-bottom: 1px solid var(--paper-200);
  padding: 26px 0;
}

.faq-item h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--ink-900);
}

.faq-item p {
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 720px;
}
.faq-item p + p { margin-top: 12px; }
.faq-item strong { color: var(--ink-700); font-weight: 600; }
.faq-item a { color: var(--blue-600); font-weight: 600; }
.faq-item a:hover { text-decoration: underline; }

.faq-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-100);
  border: 1px solid var(--paper-200);
  border-radius: 5px;
  padding: 2px 6px;
}

/* dark-section variant */
.bg-dark .faq-list { border-top-color: rgba(255,255,255,0.12); }
.bg-dark .faq-item { border-bottom-color: rgba(255,255,255,0.12); }
.bg-dark .faq-item h3 { color: #fff; }
.bg-dark .faq-item p { color: rgba(226,230,245,0.75); }

/* footer social link */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s var(--ease-out);
}
.footer-social svg { flex-shrink: 0; }
.footer-social:hover { color: #fff; }
.footer-social:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 147, 247, 0.4);
  border-radius: 4px;
}

/* semantic corrections */
address.side-card { font-style: normal; }
.video-caption {
  padding: 16px 20px 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(226, 230, 245, 0.72);
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
