/* ==========================================================================
   BLAZON AGENCY - V4 REBUILD
   Premium, trustworthy, DEPT/Vervaunt-inspired
   Font: Roobert | Black bg throughout
   Palette: #000 #FFF #211D29 | #46BBEC #79F1CD #8F74CE
   ========================================================================== */

/* --- FONT FACES --- */
@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- RESET & VARIABLES --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* --- Blazon Dark Palette — Rich Near-Black --- */
  /* Tighter layering: dark end of spectrum, nothing above #3a */
  --black: #0f1218;            /* Page base — Figma exact */
  --black-deep: #080a0d;       /* Darker sections (Impact, Work) — Figma exact */
  --card-bg: #161b24;          /* Cards, sections, panels — Figma exact */
  --card-bg-hover: #1e2530;    /* Card hover — Figma exact */
  --bg-layer-2: #1e2530;       /* Dropdowns, nested, popovers */
  --bg-layer-3: #2a3140;       /* Deep nested (rare) */

  /* Hover layers */
  --hover-base: #161b24;       /* Hover on page background */
  --hover-layer-2: #1e2530;    /* Hover on layer-2 */

  /* Borders — matching Figma dark navy palette */
  --border: #1e2530;           /* Subtle — card edges, dividers, rules */
  --border-strong: #2a3340;    /* Medium — component borders, inputs */
  --border-emphasis: #3a4555;  /* Strong — active/focus borders */

  /* Brand palette */
  --white: #ffffff;
  --dark-purple: #211D29;
  --cyan: #53CAFC;
  --mint: #79F1CD;
  --purple: #8F74CE;

  /* Text — Warm-neutral grey scale */
  --text: #ededec;             /* Primary body — warm off-white */
  --text-secondary: #b4b3af;   /* Secondary, labels — warm mid-grey */
  --text-dim: #b5b0a9;         /* Descriptions, subheads — warm neutral, brightened */
  --text-muted: #95958f;       /* Metadata, captions — WCAG AA 6.5:1 on #0d0d0d */

  /* Component tokens */
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
  --nav-height: 72px;
  --font: 'Roobert', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  --space-3xl: 160px;

  /* Noise texture — very subtle grain */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: 0.018;
}

/* Skip-link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--cyan);
  color: var(--black);
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--black);
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Thin vertical lines aligned to container edges */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--container);
  max-width: 100%;
  height: 100%;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  pointer-events: none;
  z-index: 100;
  will-change: transform;
  contain: strict;
}

/* Global noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--noise);
  background-size: 200px;
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  contain: strict;
}

/* Section dividers — Carbon border-subtle */
.about-intro,
.services,
.work,
.industries,
.testimonials,
.founder,
.insights,
.contact {
  border-top: 1px solid var(--border);
  contain: content;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
select, input, textarea { font: inherit; }

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

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  will-change: opacity, transform;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
/* Stagger */
.method__card:nth-child(2).revealed { transition-delay: 0.1s; }
.method__card:nth-child(3).revealed { transition-delay: 0.2s; }
.services__card:nth-child(2).revealed { transition-delay: 0.06s; }
.services__card:nth-child(3).revealed { transition-delay: 0.12s; }
.services__card:nth-child(4).revealed { transition-delay: 0.18s; }
.services__card:nth-child(5).revealed { transition-delay: 0.24s; }
.services__card:nth-child(6).revealed { transition-delay: 0.3s; }
.testimonials__card:nth-child(2).revealed { transition-delay: 0.1s; }
.testimonials__card:nth-child(3).revealed { transition-delay: 0.2s; }
.work__card:nth-child(2).revealed { transition-delay: 0.1s; }
.work__card:nth-child(3).revealed { transition-delay: 0.2s; }

/* --- TYPOGRAPHY --- */
.section-header {
  margin-bottom: var(--space-xl);
}
.section-header--center {
  text-align: center;
}
.section-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: var(--space-sm) auto 0;
  line-height: 1.6;
}
.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

.section-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-top: var(--space-sm);
  line-height: 1.7;
}
.section-desc--center {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: var(--space-sm);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.btn--gradient {
  padding: 14px 34px;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--white);
}
.btn--gradient:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.1);
}

.btn--ghost {
  padding: 14px 34px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  background: transparent;
  transition: background 0.3s;
}
.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.82rem;
}
.btn--lg {
  padding: 18px 42px;
  font-size: 0.95rem;
}
.btn--xl {
  padding: 22px 52px;
  font-size: 1.1rem;
}
.btn--full { width: 100%; }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.nav__logo img { height: 32px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav__link:hover { color: var(--white); }

.btn--nav-mobile { display: none; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger--active span:nth-child(2) { opacity: 0; }
.nav__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle svg {
  margin-left: 2px;
  transition: transform 0.2s;
}
.nav__dropdown--open .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-layer-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.nav__dropdown--open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav__dropdown-menu a:hover {
  color: var(--white);
  background: var(--hover-layer-2);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 72px) 0 48px;
  overflow: visible;
  background: var(--black);
  /* Subtle radial glow behind hero content */
  background-image: radial-gradient(
    ellipse 70% 50% at 50% 40%,
    rgba(83, 202, 252, 0.06),
    transparent
  );
}

/* Beams iframe background */
.hero__beams-iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--container);
  max-width: 100%;
  height: 140%;
  z-index: 0;
  border: none;
  pointer-events: none;
  /* Compound mask: fade left edge, fade right edge, fade bottom */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, transparent 20%, rgba(0,0,0,0.3) 35%, black 50%, black 85%, rgba(0,0,0,0.3) 93%, transparent 100%),
    linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, transparent 20%, rgba(0,0,0,0.3) 35%, black 50%, black 85%, rgba(0,0,0,0.3) 93%, transparent 100%),
    linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Subtle neutral tint over beams */
.hero__beams-tint {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--container);
  max-width: 100%;
  height: 140%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%, rgba(255, 255, 255, 0.02) 100%);
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, transparent 30%, rgba(0,0,0,0.3) 42%, black 58%),
    linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, transparent 30%, rgba(0,0,0,0.3) 42%, black 58%),
    linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform;
  contain: layout style;
  backface-visibility: hidden;
}

.hero__orb--1 {
  width: 55vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation: heroOrb1 18s ease-in-out infinite;
}
.hero__orb--2 {
  width: 45vw;
  height: 45vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  top: 5%;
  right: -5%;
  animation: heroOrb2 24s ease-in-out infinite;
}
.hero__orb--3 {
  width: 40vw;
  height: 40vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  bottom: -10%;
  left: 30%;
  animation: heroOrb3 20s ease-in-out infinite;
}

/* Subtle noise grain overlay */
.hero__aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

@keyframes heroOrb1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  25% { transform: translate3d(5vw, -2vw, 0) scale(1.08); }
  50% { transform: translate3d(2vw, 4vw, 0) scale(1.15); }
  75% { transform: translate3d(-4vw, 2vw, 0) scale(0.95); }
}
@keyframes heroOrb2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  25% { transform: translate3d(-4vw, 3vw, 0) scale(1.1); }
  50% { transform: translate3d(3vw, -1vw, 0) scale(0.95); }
  75% { transform: translate3d(-2vw, -3vw, 0) scale(1.05); }
}
@keyframes heroOrb3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  25% { transform: translate3d(3vw, -4vw, 0) scale(1.12); }
  50% { transform: translate3d(-3vw, 1vw, 0) scale(0.9); }
  75% { transform: translate3d(5vw, 3vw, 0) scale(1.08); }
}

/* --- SERVICE PAGE BEAMS (real Three.js iframe, shared) --- */
/* --- CERTIFICATION / TRUST BADGES --- */
.cert-strip {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cert-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.cert-strip__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.cert-strip__badge:hover { opacity: 1; }
.cert-strip__badge img {
  height: 32px;
  width: auto;
}
.cert-strip__badge span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .cert-strip__inner { gap: var(--space-md); }
  .cert-strip__badge img { height: 24px; }
  .cert-strip__badge span { font-size: 0.65rem; }
}

/* --- CROSS-SERVICE LINKS --- */
.related-services {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}
.related-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.related-services__card {
  display: block;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 0;
  text-decoration: none;
  transition: background 0.3s;
}
.related-services__card:hover {
  border-color: var(--cyan);
  background: rgba(83, 202, 252, 0.04);
}
.related-services__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.related-services__card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* service-beams classes removed — all pages now use hero__beams-iframe */

/* --- RIBBON / BEAM STREAKS (CSS fallback, kept for reference) --- */
.ribbon-bg {
  --rc: var(--ribbon-color, #0F1218);
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

.ribbon-bg::before,
.ribbon-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  transform: rotate(-35deg);
}

.ribbon-bg::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      var(--rc) 80px,
      var(--rc) 82px,
      transparent 82px,
      transparent 200px,
      var(--rc) 200px,
      var(--rc) 201px,
      transparent 201px,
      transparent 340px,
      var(--rc) 340px,
      var(--rc) 343px,
      transparent 343px,
      transparent 500px
    );
  animation: ribbonDrift 30s linear infinite;
}

.ribbon-bg::after {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      var(--rc) 120px,
      var(--rc) 121px,
      transparent 121px,
      transparent 280px,
      var(--rc) 280px,
      var(--rc) 282px,
      transparent 282px,
      transparent 440px
    );
  opacity: 0.5;
  animation: ribbonDrift 45s linear infinite reverse;
}

@keyframes ribbonDrift {
  0% { transform: rotate(-35deg) translateY(0); }
  100% { transform: rotate(-35deg) translateY(-200px); }
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: center;
}

.hero__title {
  font-family: var(--font);
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto var(--space-md);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Partner Trust Badges */
.hero__partners-label {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}

.hero__partners {
  display: flex;
  gap: 20px 28px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 180px auto 0;
}

.partner-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  transition: opacity 0.3s;
}
.partner-badge:hover {
  opacity: 1;
}

.partner-badge img {
  height: 48px;
  width: auto;
  opacity: 1;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s, filter 0.3s;
}

.partner-badge span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}


/* --- HERO TITLE LINES --- */
.hero__title-line {
  display: block;
}

.hero__title-line--gradient {
  color: var(--white);
  font-size: inherit;
}

/* --- CLIENTS --- */
.clients {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.clients__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-md);
}

.clients__strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.clients__strip img {
  height: 42px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.clients__strip img:hover {
  opacity: 0.85;
}

/* Standalone trust section */
.clients-trust {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-trust .clients__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clients-trust .clients__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}
.clients-trust .clients__logos img {
  height: 42px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.clients-trust .clients__logos img:hover {
  opacity: 0.85;
}
.clients-trust .clients__logos .clients__logo--sbd {
  height: 34px;
}

/* --- CREDENTIALS --- */
.credentials {
  padding: var(--space-md) 0;
  background: var(--black-deep);
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.credentials__item {
  text-align: center;
  padding: var(--space-md) var(--space-md);
  border-right: 1px solid var(--border);
}

.credentials__item:last-child {
  border-right: none;
}

.credentials__number {
  display: block;
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.credentials__label {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* --- ABOUT INTRO --- */
.about-intro {
  padding: var(--space-xl) 0;
}

.about-intro__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: end;
}

.about-intro__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.02em;
}

.about-intro__right p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}
.about-intro__right p:last-child {
  margin-bottom: 0;
}

/* --- SERVICES --- */
.services {
  padding: var(--space-xl) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.services__card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--card-bg);
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: 220px;
}
.services__card:hover {
  border-color: var(--border-strong);
  background: var(--card-bg-hover);
}

.services__card-number {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.services__card-icon {
  height: 24px;
  margin-bottom: 16px;
}
.services__card-icon img {
  height: 22px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.services__card:hover .services__card-icon img {
  opacity: 0.8;
}
/* Informative (non-clickable) card grids — tight 1px borders, no radius */
.services__grid:has(> div.services__card) {
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
div.services__card {
  cursor: default;
  background: var(--black);
  border: none;
  border-radius: 0;
  min-height: auto;
  padding: 36px 28px;
}
div.services__card:hover {
  background: var(--card-bg-hover);
  border-color: transparent;
}

.services__card h3 {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.services__card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: auto;
}

.services__card-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--cyan);
  transition: transform 0.3s;
}
.services__card:hover .services__card-arrow {
  color: var(--cyan);
}

/* --- WORK / CASE STUDIES --- */
.work {
  padding: var(--space-xl) 0;
  background: var(--black-deep);
}

.work__brands-label {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Work brands strip */
.work__brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
  margin-bottom: 24px;
}
.work__brands img {
  height: 38px;
  width: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.work__brands img:hover {
  opacity: 1;
  filter: brightness(0) invert(1);
}
.work__brands .clients__logo--sbd {
  height: 30px;
}
.work__brands .clients__logo--absolut {
  height: 44px;
}
.work__brands--press {
  gap: 40px;
}
.work__brands--press img {
  height: 32px;
}

/* Feature case study */
.work__feature {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--card-bg);
  margin-bottom: 24px;
}
.work__feature:hover {
  background: var(--card-bg-hover);
}

.work__feature-media {
  overflow: hidden;
  min-height: 400px;
}
.work__feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.work__feature:hover .work__feature-media img {
  transform: none;
}

.work__feature-info {
  padding: var(--space-lg) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work__tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.work__feature-info h3 {
  font-family: var(--font);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.work__feature-info p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.work__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: gap 0.3s;
}
.work__feature:hover .work__link {
  gap: 10px;
}
.work__link svg {
  stroke: var(--cyan);
}

/* Work grid (3 col) */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.work__card {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--card-bg);
}
.work__card:hover {
  background: var(--card-bg-hover);
}

.work__card-media {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.work__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work__card:hover .work__card-media img {
  transform: none;
}

.work__card-info {
  padding: var(--space-md) var(--space-md);
}

.work__card-info h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.work__card-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Compact work row */
.work__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work__compact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px;
  border: none;
  border-radius: 4px;
  background: var(--card-bg);
  transition: background 0.3s;
}
.work__compact:hover {
  background: var(--card-bg-hover);
}

.work__compact-media {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.work__compact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__compact-client {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.work__compact-info h4 {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* --- METHODOLOGY --- */
.method {
  padding: var(--space-xl) 0;
  position: relative;
}

.method__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.method__cards--4col {
  grid-template-columns: repeat(4, 1fr);
}

.method__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.method__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
.method__card:hover::before {
  opacity: 1;
}
.method__card > * {
  position: relative;
  z-index: 1;
}
.method__card:hover {
  border-color: var(--border-strong);
  background: var(--card-bg-hover);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.03), inset 0 0 40px rgba(255, 255, 255, 0.01);
}

.method__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.method__number {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.method__icon {
  width: 36px;
  height: 36px;
}

.method__card h3,
.method__card-title {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.method__card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.method__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}
.method__card:hover .tag {
  border-color: var(--border-strong);
  color: var(--white);
}

/* Method title with arrows */
.method__step-word {
  display: inline-block;
}

.method__arrow {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 12px;
  opacity: 0.7;
}

.method__arrow svg {
  display: block;
}

/* --- TESTIMONIALS --- */
.testimonials {
  padding: var(--space-xl) 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonials__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  transition: background 0.35s;
}
.testimonials__card:hover {
  border-color: var(--border-strong);
  background: var(--card-bg-hover);
}

.testimonials__card blockquote {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text);
  font-style: normal;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonials__logo {
  width: 80px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.testimonials__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
}

.testimonials__role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- FOUNDER --- */
.founder {
  padding: var(--space-xl) 0;
}

/* Compact founder variant */
.founder--compact {
  padding: var(--space-lg) 0;
}
.founder__compact-inner {
  max-width: 780px;
}
.founder__compact-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 12px;
}
.founder__compact-text strong {
  color: var(--white);
  font-weight: 600;
}
.founder__compact-link {
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.founder__compact-link:hover {
  opacity: 0.8;
}

.founder__inner {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.founder__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.founder__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.founder__stat { text-align: center; }

.founder__stat-num {
  display: block;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.founder__stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.founder__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.founder__badge {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: var(--card-bg);
}

.founder__badge-logo {
  height: 28px;
  width: auto;
  margin: 0 auto var(--space-md);
  opacity: 0.5;
}

.founder__badge-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.founder__badge-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Founder with photo */
.founder--with-photo {
  padding: var(--space-xl) 0;
}

.founder__photo-layout {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.founder__photo-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: var(--card-bg);
}

.founder__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s;
}
.founder__photo-wrap:hover .founder__photo-img {
  filter: grayscale(0%);
}

.founder__photo-text {
  flex: 1;
}

/* --- CTA --- */
.cta {
  position: relative;
  padding: var(--space-xl) 0;
  text-align: center;
  overflow: hidden;
}

.cta__beams-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border: none;
  pointer-events: none;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, black 25%, transparent 65%);
  mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, black 25%, transparent 65%);
}

.cta__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.2;
  will-change: transform;
  contain: layout style;
  backface-visibility: hidden;
}
.cta__orb--1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  top: -20%;
  left: 10%;
  animation: heroOrb2 20s ease-in-out infinite;
}
.cta__orb--2 {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  bottom: -30%;
  right: 10%;
  animation: heroOrb3 22s ease-in-out infinite;
}

.cta .eyebrow {
  position: relative;
  z-index: 1;
}

.cta__title {
  position: relative;
  z-index: 1;
  font-family: var(--font);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta__sub {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.cta .btn {
  position: relative;
  z-index: 1;
}

/* --- INSIGHTS --- */
.insights {
  padding: var(--space-lg) 0;
}
.insights__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.insights__bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.insights__bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  white-space: nowrap;
}
.insights__bar-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}
.insights__bar-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.insights__bar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.insights__bar-link:hover {
  color: var(--cyan);
}
.insights__bar-link svg {
  transition: transform 0.3s ease;
}
.insights__bar-link:hover svg {
  transform: none;
}

/* --- CONTACT --- */
.contact {
  padding: var(--space-xl) 0;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__left .section-title {
  margin-bottom: var(--space-sm);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.contact .section-desc {
  color: var(--text-dim);
}

.contact__offices {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.contact__office-city {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white) !important;
  margin-bottom: 10px;
  opacity: 1 !important;
}

.contact__office p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.contact__office a {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: inline-block;
  margin-top: 6px;
}
.contact__office a:hover { color: var(--white); }

.contact__form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  background: var(--card-bg);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
}
.form__group--full {
  margin-top: 16px;
}

.form__group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.req { color: var(--cyan); }

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 13px 16px;
  min-height: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(83, 202, 252, 0.1);
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-muted);
}
.form__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(255,255,255,0.35)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form__group select option {
  background: var(--card-bg);
  color: var(--white);
}
.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- FORM LOADING SPINNER --- */
.btn--loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.btn--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* --- INLINE VALIDATION --- */
.form__group input:not(:placeholder-shown):invalid,
.form__group select:invalid:not([value=""]),
.form__group textarea:not(:placeholder-shown):invalid {
  border-color: #FF6B6B;
}
.form__group input:not(:placeholder-shown):valid,
.form__group textarea:not(:placeholder-shown):valid {
  border-color: #05CE78;
}

/* --- COMPACT CTA --- */
.cta--compact {
  padding: var(--space-lg) 0;
  text-align: left;
  overflow: visible;
}
.cta--compact .cta__compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.cta--compact .eyebrow {
  margin-bottom: var(--space-xs);
}
.cta__compact-title {
  font-family: var(--font);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .cta--compact .cta__compact-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }
}

/* --- CONTACT BOOK A CALL --- */
.contact__actions {
  margin-top: var(--space-lg);
}

/* --- INDUSTRIES MARQUEE --- */
.industries {
  padding: var(--space-lg) 0;
}

.industries__header {
  margin-bottom: var(--space-xl);
}

.industries__marquee {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  /* No edge fade — pills always visible from edge to edge */
}

.industries__track {
  overflow: hidden;
  width: 100%;
}

.industries__track-inner {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.industries__track--left .industries__track-inner {
  animation: marqueeLeft 30s linear infinite;
}

.industries__track--right .industries__track-inner {
  animation: marqueeRight 30s linear infinite;
}

.industries__marquee:hover .industries__track-inner {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.industries__pill {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--card-bg);
  white-space: nowrap;
  transition: background 0.3s;
  flex-shrink: 0;
}

.industries__pill:hover {
  border-color: rgba(83, 202, 252, 0.3);
  background: rgba(83, 202, 252, 0.06);
  color: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  .industries__track-inner,
  .hero__orb,
  .cta__orb,
  .ribbon-bg__strip,
  .hero__grid,
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__beams-iframe,
  .cta__beams-iframe {
    display: none;
  }
}

@media (max-width: 768px) {
  .insights__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .insights__bar-left {
    flex-wrap: wrap;
  }
}

/* --- FOOTER --- */
/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
  background: var(--black);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  align-items: start;
}

.footer__logo {
  height: 30px;
  width: auto;
  margin-bottom: 14px;
  opacity: 1;
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 18px;
}

.footer__email {
  font-size: 0.85rem;
  color: var(--cyan);
  display: inline-block;
}
.footer__email:hover { color: var(--white); }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-xl);
  justify-self: end;
  padding-left: var(--space-md);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
  padding: 28px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom-inner > p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer__legal a:hover { color: var(--text-dim); }

/* Footer offices */
.footer__offices {
  display: flex;
  gap: var(--space-lg);
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer__office {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.footer__office p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.footer__office-city {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 2px;
}
.footer__office a {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: inline-block;
  margin-top: 4px;
}
.footer__office a:hover { color: var(--white); }

@media (max-width: 480px) {
  .footer__offices {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* --- DOCK --- */
.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dock__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dock__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
}

.dock__item:hover {
  color: var(--white);
  background: var(--hover-base);
}

.dock__item:active {
  opacity: 0.8;
}

.dock__item--cta {
  width: auto;
  border-radius: 100px;
  padding: 0 18px;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--white);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 600;
}

.dock__item--cta:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.dock__item--cta .dock__label {
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0.82rem;
  white-space: nowrap;
  pointer-events: auto;
  visibility: visible !important;
  color: var(--black) !important;
}

.dock__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(10, 10, 15, 0.9);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dock__item:hover .dock__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hide individual labels on CTA since text is inline */
.dock__item--cta:hover .dock__label {
  opacity: 0;
}

@media (max-width: 480px) {
  .dock__inner {
    gap: 2px;
    padding: 6px 8px;
  }
  .dock__item {
    width: 38px;
    height: 38px;
  }
  .dock__item svg {
    width: 17px;
    height: 17px;
  }
  .dock__item--cta {
    width: auto;
    padding: 0 12px;
    height: 38px;
  }
  .dock__item--cta .dock__label {
    font-size: 0.72rem;
  }
}

/* Old industries styles removed - see industries marquee section above */

/* --- BONUS POLISH --- */

/* Focus-visible styles for keyboard navigation */
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}



/* Case study card hover glow */
.work__card:hover,
.work__feature:hover {
  box-shadow: 0 0 40px rgba(83, 202, 252, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Decorative quote marks on testimonials */
.testimonials__card {
  position: relative;
}
.testimonials__card::before {
  content: '\201C';
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(83, 202, 252, 0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__partners {
    gap: 10px;
  }
  .partner-badge {
    padding: 10px 16px;
  }
  .credentials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-intro__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__feature {
    grid-template-columns: 1fr;
  }
  .work__feature-media {
    min-height: 220px;
  }
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__grid .work__card:nth-child(3) {
    grid-column: span 2;
  }
  .work__row {
    grid-template-columns: 1fr;
  }
  .method__cards {
    grid-template-columns: 1fr;
  }
  .method__cards--4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .founder__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer__nav {
    justify-self: stretch;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  .industries__showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .founder__photo-layout {
    gap: var(--space-md);
  }
  .founder__photo-wrap {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 56px;
    --space-2xl: 80px;
    --space-3xl: 100px;
  }

  .container { padding: 0 24px; }

  .nav__inner { padding: 0 24px; border-left: none; border-right: none; min-height: 60px; }
  .nav__logo img { height: 26px; }

  .nav__links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    padding: 32px 24px;
    gap: 4px;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .nav__links--open { display: flex; }
  .nav__link {
    padding: 16px 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__right .btn { display: none; }
  .btn--nav-mobile { display: inline-flex; margin-top: 16px; }
  .nav__hamburger { display: flex; }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    opacity: 1;
    pointer-events: auto;
    display: none;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-top: 4px;
  }
  .nav__dropdown--open .nav__dropdown-menu {
    display: block;
    transform: none;
  }
  .nav__dropdown-menu a {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 48px) 0 32px;
  }
  .hero__beams-iframe {
    height: 130%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 30%, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 30%, black 55%, transparent 100%);
    -webkit-mask-composite: auto;
    mask-composite: add;
  }
  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero__content {
    margin: 0 auto var(--space-md);
    text-align: center;
  }
  .hero__sub {
    margin: 0 auto var(--space-md);
    font-size: 0.95rem;
  }
  .hero__actions {
    justify-content: center;
    gap: 12px;
  }

  /* Scale buttons down on mobile */
  .btn--lg {
    padding: 14px 32px;
    font-size: 0.88rem;
  }
  .btn--xl {
    padding: 16px 36px;
    font-size: 0.95rem;
  }

  .hero__partners {
    gap: 8px;
  }
  .partner-badge {
    padding: 8px 14px;
    gap: 8px;
  }
  .partner-badge img {
    height: 38px;
  }
  .partner-badge span {
    font-size: 0.72rem;
  }

  .clients__strip {
    gap: 28px 36px;
  }
  .clients__strip img { height: 34px; }

  .credentials__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
  .method__cards--4col {
    grid-template-columns: 1fr;
  }

  .work { padding: var(--space-lg) 0; }
  .work__grid {
    grid-template-columns: 1fr;
  }
  .work__grid .work__card:nth-child(3) {
    grid-column: span 1;
  }

  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .method { padding: var(--space-lg) 0; }
  .testimonials { padding: var(--space-lg) 0; }
  .founder { padding: var(--space-lg) 0; }

  .founder__stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .founder__stat-divider {
    display: none;
  }

  .contact { padding: var(--space-lg) 0; }
  .contact__form { padding: 24px; }
  .contact__offices {
    flex-direction: column;
    gap: var(--space-md);
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .form__row--optional {
    display: none;
  }
  .form__row {
    gap: 12px;
    margin-bottom: 12px;
  }
  .form__group label {
    margin-bottom: 5px;
    font-size: 0.72rem;
  }
  .form__group--full {
    margin-top: 10px;
  }
  .form__group input,
  .form__group select {
    padding: 11px 14px;
    min-height: 44px;
  }
  .form__group textarea {
    min-height: 64px;
  }
  .contact__left .section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .contact__left .eyebrow {
    margin-bottom: 8px;
  }
  .contact .section-desc {
    font-size: 0.88rem;
    margin-top: 6px;
    margin-bottom: 0;
  }
  .contact__inner {
    gap: var(--space-md);
  }

  .cta { padding: var(--space-lg) 0; text-align: center; }
  .cta__title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
  .cta .btn { margin: 0 auto; }
  .industries__showcase {
    grid-template-columns: 1fr;
  }
  .founder__photo-layout {
    flex-direction: column;
    text-align: center;
  }
  .method__arrow {
    margin: 0 6px;
  }
  .method__arrow svg {
    width: 24px;
    height: 24px;
  }

  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm) var(--space-md);
    padding-left: 0;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer {
    padding-bottom: 72px;
  }
}

/* --- SHARED TESTIMONIAL --- */
.testimonial {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.testimonial__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.testimonial__glow::before {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 241, 205, 0.06) 0%, transparent 70%);
  top: -20%;
  left: 30%;
  filter: blur(80px);
}
.testimonial__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.testimonial__quote-mark {
  font-size: 6rem;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.2;
  margin-bottom: -20px;
  display: block;
}
.testimonial__quote {
  font-family: var(--font);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  font-style: normal;
}
.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.testimonial__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(83, 202, 252, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
  border: 1px solid rgba(83, 202, 252, 0.2);
}
.testimonial__author-info {
  text-align: left;
}
.testimonial__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}
.testimonial__role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- SHARED INSIGHTS / BLOG CARDS --- */
.insights-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}
.insights-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.insights-section__card {
  display: block;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: transform 0.3s ease;
}
.insights-section__card:hover {
  border-color: var(--cyan);
}
.insights-section__tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.insights-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}
.insights-section__excerpt {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .insights-section__grid {
    grid-template-columns: 1fr;
  }
  .testimonial__quote {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 44px;
    --space-lg: 32px;
    --space-2xl: 64px;
    --space-3xl: 80px;
  }

  .hero__title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .btn--lg {
    padding: 12px 28px;
    font-size: 0.85rem;
  }
  .btn--xl {
    padding: 14px 32px;
    font-size: 0.88rem;
  }
  .btn--gradient, .btn--ghost {
    padding: 12px 28px;
    font-size: 0.85rem;
  }
  .contact__form {
    padding: 16px;
  }
  .industries__pill {
    padding: 10px 20px;
    font-size: 0.82rem;
  }
  .credentials__grid {
    grid-template-columns: 1fr;
  }
  .credentials__number {
    font-size: 2rem;
  }
  .about-intro__title {
    font-size: 1.3rem;
  }
  .services__card {
    min-height: auto;
    padding: 28px 24px;
  }
  .work__feature-info {
    padding: var(--space-md);
  }
  .work__feature-info h3 {
    font-size: 1.25rem;
  }
  .container {
    padding: 0 16px;
  }
  .nav__inner { padding: 0 16px; }
  .nav__logo img { height: 22px; }
  .hero {
    padding: calc(var(--nav-height) + 40px) 0 32px;
  }
  .hero__sub {
    font-size: 0.88rem;
  }
  .clients__strip {
    gap: 20px 24px;
  }
  .clients__strip img {
    height: 28px;
  }
  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .footer__offices {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .cta__compact-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  .partner-badge img {
    height: 32px;
  }
  .hero__partners {
    gap: 6px 12px;
  }
}

/* ========== MOBILE PERFORMANCE: REDUCE GPU COST ========== */
/* Disable expensive blur filters, infinite animations, and backdrop-filter on mobile */
@media (max-width: 768px) {
  /* Kill hero orb blur + animations — saves massive GPU compositing cost */
  .hero__orb {
    filter: blur(60px);
    animation: none !important;
    will-change: auto;
  }
  /* Kill CTA orb blur + animations */
  .cta__orb {
    filter: blur(60px);
    animation: none !important;
  }
  /* Reduce ribbon marquee to static — saves continuous paint */
  .ribbon-bg::before,
  .ribbon-bg::after {
    animation: none !important;
  }
  /* Testimonial glow: reduce blur */
  .testimonial__glow::before {
    filter: blur(40px);
  }
  /* Nav: reduce backdrop-filter complexity */
  .nav.nav--scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  /* Dock: reduce backdrop-filter complexity */
  .dock {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Also respect prefers-reduced-motion globally */
@media (prefers-reduced-motion: reduce) {
  .hero__orb,
  .cta__orb {
    animation: none !important;
    will-change: auto;
  }
  .ribbon-bg::before,
  .ribbon-bg::after {
    animation: none !important;
  }
}

/* ==========================================================================
   CASE STUDY PAGES
   ========================================================================== */

/* --- HERO --- */
.case-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 80px) 0 var(--space-xl);
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(83, 202, 252, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(143, 116, 206, 0.06), transparent 50%),
    var(--black);
  overflow: hidden;
}

.case-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.case-hero__content {
  position: relative;
  width: 100%;
}

.case-hero__tag {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
  background: color-mix(in srgb, var(--cyan) 5%, transparent);
}

.case-hero__client {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.case-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  max-width: 720px;
  letter-spacing: -0.02em;
}

.case-hero__image {
  width: 100%;
  max-width: 960px;
  margin-top: 2.5rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- STATS BAR --- */
.case-stats {
  background: var(--black-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.case-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.case-stats__grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.case-stats__item {
  border-right: 1px solid var(--border);
}

.case-stats__item:last-child {
  border-right: none;
}

.case-stats__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--white) 30%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-stats__label {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- OVERVIEW (sidebar layout) --- */
.case-overview {
  padding: var(--space-xl) 0;
}

.case-overview__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.case-overview__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.case-overview__text h2:first-of-type {
  margin-top: 0;
}

.case-overview__text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

/* --- DETAILS SIDEBAR --- */
.case-details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.case-details__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.case-details__item {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.case-details__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.4rem;
}

.case-details__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
}

/* --- CASE BODY (full-width layout) --- */
.case-body {
  padding: var(--space-xl) 0;
}

.case-body .container {
  max-width: 780px;
}

.case-body__summary {
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 700px;
  border-left: 2px solid var(--cyan);
  padding-left: 1.25rem;
}

.case-body h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  margin-top: 3rem;
}

.case-body h2:first-of-type {
  margin-top: 0;
}

.case-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.case-body ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.case-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.case-body__cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.case-body__cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.case-body__cta a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.case-body__cta a:hover {
  text-decoration: underline;
}

/* --- CASE CONTENT (used by overview layout) --- */
.case-content {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.case-content__inner {
  max-width: 780px;
}

.case-content__inner.case-content__inner--wide {
  max-width: 100%;
}

.case-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.case-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.case-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.case-content ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.case-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}

/* --- RESULTS GRID --- */
.case-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.case-results__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.case-results__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-results__card:hover {
  border-color: color-mix(in srgb, var(--cyan) 25%, transparent);
  transform: translateY(-2px);
}

.case-results__card:hover::before {
  opacity: 1;
}

.case-results__card-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--white) 40%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-results__card-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

/* --- NEXT PROJECT --- */
.case-next {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.case-next__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #fff;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card-bg);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.case-next__link:hover {
  border-color: color-mix(in srgb, var(--cyan) 35%, transparent);
  background: var(--card-bg-hover);
}

.case-next__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.case-next__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}

.case-next__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.case-next__link:hover .case-next__arrow {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  transform: translateX(4px);
}

/* --- CASE STUDY IMAGES (inline) --- */
.case-overview__text img,
.case-body img:not(.case-hero__image) {
  width: 100%;
  border-radius: 2px;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- CASE STUDY REVEAL STAGGER --- */
.case-stats__item:nth-child(2).revealed { transition-delay: 0.08s; }
.case-stats__item:nth-child(3).revealed { transition-delay: 0.16s; }
.case-stats__item:nth-child(4).revealed { transition-delay: 0.24s; }
.case-results__card:nth-child(2).revealed { transition-delay: 0.1s; }
.case-results__card:nth-child(3).revealed { transition-delay: 0.2s; }

/* --- CASE STUDY RESPONSIVE --- */
@media (max-width: 900px) {
  .case-overview__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .case-details {
    position: static;
  }

  .case-stats__grid,
  .case-stats__grid--three {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .case-stats__item:nth-child(2) {
    border-right: none;
  }

  .case-results__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .case-hero {
    min-height: 55vh;
    padding-top: calc(var(--nav-height) + 48px);
  }

  .case-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .case-stats {
    padding: var(--space-md) 0;
  }

  .case-stats__grid,
  .case-stats__grid--three {
    grid-template-columns: 1fr 1fr;
  }

  .case-stats__item {
    border-right: none;
  }

  .case-stats__number {
    font-size: 1.5rem;
  }

  .case-next__link {
    padding: 1.5rem;
  }

  .case-body__summary {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   PAGE-SPECIFIC ACCENT COLORS
   ========================================================================== */
[data-page="strategy"] { --cyan: #818CF8; }
[data-page="shopify"]  { --cyan: #79F1CD; }
[data-page="pr"]       { --cyan: #34D399; }
[data-page="growth"]   { --cyan: #34D399; }
[data-page="equity"]       { --cyan: #FFB74D; }
[data-page="product-hunt"] { --cyan: #FF6154; }
[data-page="crowdfunding"] { --cyan: #05CE78; }
[data-page="gaming"]       { --cyan: #A78BFA; }
[data-page="technology"]   { --cyan: #3B82F6; }
[data-page="startups"]     { --cyan: #F59E0B; }

/* Who We Are: shorter hero */
[data-page="who-we-are"] .hero { min-height: auto; padding: calc(var(--nav-height) + 80px) 0 var(--space-xl); }
[data-page="who-we-are"] .hero__title { font-size: clamp(2rem, 4vw, 3rem); }

/* ==========================================================================
   PRODUCT LAUNCH AGENCY — FAQ ACCORDION & HERO CENTER
   ========================================================================== */
.faq-accordion { max-width: 760px; margin: var(--space-lg) auto 0; }
.faq-accordion details { border-bottom: 1px solid var(--border); }
.faq-accordion details[open] summary { color: var(--white); }
.faq-accordion summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; font-size: 0.95rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; list-style: none;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--text-dim);
}
.faq-accordion details[open] summary::after { content: '\2212'; }
.faq-accordion .faq-accordion__answer {
  padding: 0 0 1.25rem; font-size: 0.9rem; line-height: 1.7; color: var(--text-dim);
}

/* Homepage hero — left-aligned */
[data-page="home"] .hero__content { text-align: left; margin-left: 0; }
[data-page="home"] .hero__sub { margin-left: 0; margin-right: 0; }
[data-page="home"] .hero__actions { justify-content: flex-start; }
[data-page="home"] .hero__partners { justify-content: center; }
[data-page="home"] .hero__partners-label { text-align: center; }

[data-page="product-launch-agency"] .hero__content { text-align: center; align-items: center; }
[data-page="product-launch-agency"] .hero__sub { max-width: 620px; margin-left: auto; margin-right: auto; }
[data-page="product-launch-agency"] .hero__actions { justify-content: center; }
[data-page="product-launch-agency"] .hero__partners { justify-content: center; }
[data-page="product-launch-agency"] .hero__partners-label { text-align: center; width: 100%; }

/* ==========================================================================
   WHO WE ARE — FOUNDER FEATURE, TEAM CARDS, CAREERS
   ========================================================================== */
.founder-feature { padding: var(--space-xl) 0; background: var(--black); border-bottom: 1px solid var(--border); }
.founder-feature__inner { display: grid; grid-template-columns: 380px 1fr; gap: var(--space-2xl); align-items: start; }
.founder-feature__photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(100%); }
.founder-feature__content { display: flex; flex-direction: column; gap: var(--space-md); }
.founder-feature__name { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--white); line-height: 1.1; }
.founder-feature__role { font-size: 1.05rem; color: var(--cyan); font-weight: 500; }
.founder-feature__bio { font-size: 1.05rem; color: var(--text-muted); line-height: 1.85; }
.founder-feature__bio p + p { margin-top: var(--space-sm); }
.founder-feature__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-md); padding-top: var(--space-lg); border-top: 1px solid var(--border); }
.founder-feature__stat-number { font-size: 1.6rem; font-weight: 700; color: var(--white); display: block; }
.founder-feature__stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; display: block; }

/* Team Section */
.team { padding: var(--space-xl) 0; background: var(--black); }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); margin-top: var(--space-xl); max-width: 900px; margin-left: auto; margin-right: auto; }
.team-card { background: var(--black); border: 1px solid var(--border); padding: 10px; }
.team-card:hover { border-color: rgba(83, 202, 252, 0.3); box-shadow: 0 0 30px rgba(83, 202, 252, 0.06); }
.team-card__photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; filter: grayscale(100%) brightness(0.7) contrast(1.1); background: var(--black); }
.team-card:hover .team-card__photo { filter: grayscale(100%) brightness(0.9) contrast(1.1); }
.team-card__name { font-size: 0.82rem; font-weight: 600; color: var(--white); margin-top: 10px; }
.team-card__role { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.team-card--cta { display: flex; align-items: center; justify-content: center; text-decoration: none; border-style: dashed; border-color: var(--border); min-height: 100%; }
.team-card--cta:hover { border-color: var(--cyan); border-style: solid; background: rgba(83, 202, 252, 0.04); box-shadow: 0 0 30px rgba(83, 202, 252, 0.06); }
.team-card__cta-inner { text-align: center; padding: var(--space-md) var(--space-sm); }
.team-card__cta-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--border); font-size: 1.6rem; font-weight: 300; color: var(--text-dim); margin: 0 auto var(--space-sm); }
.team-card--cta:hover .team-card__cta-icon { border-color: var(--cyan); color: var(--cyan); }
.team-card--cta .team-card__role { color: var(--cyan); }

/* Careers Section */
.careers { position: relative; padding: var(--space-xl) 0; background: var(--black); border-top: 1px solid var(--border); text-align: center; overflow: hidden; }
.careers__aurora { position: absolute; inset: -30%; z-index: 0; pointer-events: none; }
.careers__orb { position: absolute; border-radius: 50%; filter: blur(120px); }
.careers__orb--1 { width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, rgba(83, 202, 252, 0.18) 0%, transparent 70%); top: 10%; left: 10%; animation: careersOrb1 18s ease-in-out infinite; }
.careers__orb--2 { width: 45vw; height: 45vw; max-width: 650px; max-height: 650px; background: radial-gradient(circle, rgba(143, 116, 206, 0.14) 0%, transparent 70%); bottom: 10%; right: 10%; animation: careersOrb2 22s ease-in-out infinite; }
@keyframes careersOrb1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(0.95); } }
@keyframes careersOrb2 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-35px, 25px) scale(1.05); } 66% { transform: translate(25px, -20px) scale(0.92); } }
.careers__title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; color: var(--white); margin-bottom: var(--space-md); position: relative; z-index: 1; }
.careers__sub { font-size: 1.05rem; color: var(--text-muted); max-width: 540px; margin: 0 auto var(--space-lg); position: relative; z-index: 1; line-height: 1.7; }
.careers .btn { position: relative; z-index: 1; }
.careers__positions { max-width: 700px; margin: var(--space-xl) auto 0; display: flex; flex-direction: column; gap: var(--space-md); position: relative; z-index: 1; }
.position-card { background: var(--black-deep); border: 1px solid var(--border); padding: 28px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.position-card:hover { border-color: rgba(83, 202, 252, 0.35); box-shadow: 0 0 30px rgba(83, 202, 252, 0.06); }
.position-card__info { flex: 1; }
.position-card__title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.position-card__meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 0.02em; }
.position-card__meta span { opacity: 0.5; margin: 0 6px; }
.position-card__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.position-card__cta { font-size: 0.85rem; font-weight: 600; color: var(--cyan); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.position-card__cta:hover { color: var(--text); }
.careers__fallback { position: relative; z-index: 1; font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-xl); }
.careers__fallback a { color: var(--cyan); text-decoration: none; }
.careers__fallback a:hover { color: var(--text); }

/* Who We Are responsive */
@media (max-width: 1024px) {
  .founder-feature__inner { grid-template-columns: 320px 1fr; }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .founder-feature__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .founder-feature__photo { max-width: 340px; }
}
@media (max-width: 600px) {
  .position-card { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
}
@media (max-width: 480px) {
  .team__grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
  .founder-feature__stats { grid-template-columns: 1fr; gap: var(--space-sm); }
}
