/* ==========================================================================
   Sapiologic — Design System
   ========================================================================== */

:root {
  /* Brand colors (derived from Sapiologic logo) */
  --navy-950: #061626;
  --navy-900: #0a2240;
  --navy-800: #0d2d52;
  --navy-700: #123a68;
  --navy-600: #1a4b82;

  /* Signal accent — used deliberately and sparingly, Gartner-style */
  --red-500: #c81e3c;
  --red-600: #9e1530;
  --red-400: #e2697d;

  /* Backwards-compatible aliases used throughout the stylesheet */
  --teal-500: var(--red-500);
  --teal-400: var(--red-400);
  --amber-500: var(--navy-800);
  --amber-400: var(--navy-700);
  --green-500: var(--navy-800);
  --green-600: var(--navy-900);
  --green-400: var(--navy-700);
  --orange-500: var(--red-500);
  --orange-400: var(--red-400);

  --ink: #0f1b2a;
  --slate-600: #4b5b6b;
  --slate-500: #6b7b8c;
  --slate-300: #c3cdd6;
  --slate-100: #eef2f5;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --bg-soft: #f6faf7;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(10, 34, 64, 0.06);
  --shadow-md: 0 10px 28px rgba(10, 34, 64, 0.1);
  --shadow-lg: 0 20px 48px rgba(10, 34, 64, 0.14);

  --container: 1200px;
  --font-head: "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --transition: 0.25s ease;
}

/* ---------------- Shared animations ---------------- */
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(6deg); } }
@keyframes floatX { 0%, 100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(18px) rotate(-8deg); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

section { position: relative; }

.section-pad { padding: 96px 0; }

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; }

p { color: var(--slate-600); font-weight: 300; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red-500);
  display: inline-block;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--red-500);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(200, 30, 60, 0.28);
}
.btn-primary:hover { background: var(--red-600); box-shadow: 0 10px 26px rgba(200, 30, 60, 0.38); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy-700);
  color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

.btn-ghost {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost svg { width: 14px; height: 14px; transition: transform var(--transition); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-ghost:hover { color: var(--red-600); }

/* ---------------- Logo ---------------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  line-height: 1;
}
.logo-light { color: var(--white); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.0);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-900);
  transition: color var(--transition);
  position: relative;
  padding: 6px 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--red-600); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-outline { padding: 10px 22px; font-size: 0.85rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1100;
}
.menu-toggle span {
  height: 2px; width: 100%; background: var(--navy-900); border-radius: 2px;
  transition: all var(--transition);
}
.site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Light-on-dark header while it floats over the homepage video hero */
body.home .site-header:not(.scrolled) .logo {
  color: var(--white);
}
body.home .site-header:not(.scrolled):not(.menu-open) .main-nav a {
  color: var(--white);
}
body.home .site-header:not(.scrolled):not(.menu-open) .menu-toggle span {
  background: var(--white);
}
body.home .site-header:not(.scrolled):not(.menu-open) .header-actions .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
body.home .site-header:not(.scrolled):not(.menu-open) .header-actions .btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed; inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .site-header.menu-open .main-nav { transform: translateX(0); }
  .main-nav a { color: var(--navy-900); font-size: 1.3rem; }
  .header-actions .btn-outline { display: none; }
  .menu-toggle { display: flex; }
}

/* Page header variant for interior pages */
.inner-hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
  padding: 170px 0 90px;
  color: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.inner-hero::after {
  content: "";
  position: absolute; right: -100px; top: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,41,74,0.10), transparent 70%);
  animation: floatY 7s ease-in-out infinite;
}
.inner-hero::before {
  content: "";
  position: absolute; left: -80px; bottom: -80px;
  width: 220px; height: 220px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(200,30,60,0.10), transparent 70%);
  transform: rotate(20deg);
  animation: floatX 8s ease-in-out infinite;
}
.inner-hero h1 { color: var(--navy-900); max-width: 760px; position: relative; z-index: 1; }
.inner-hero p.lead { color: var(--slate-600); max-width: 620px; font-size: 1.15rem; margin-top: 18px; position: relative; z-index: 1; }
.breadcrumb { font-size: 0.85rem; color: var(--red-600); font-weight: 700; margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; position: relative; z-index: 1; }

/* ---------------- Hero (home) ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: 100px;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: var(--navy-950);
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,38,0.82) 0%, rgba(6,22,38,0.66) 48%, rgba(6,22,38,0.92) 100%);
}
.hero-shapes {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero-shapes .shape { position: absolute; }
.hero-shapes .shape-glow {
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,30,60,0.22), transparent 70%);
  top: -12%; right: -8%;
}
.hero-shapes .shape-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red-500);
  top: 46%; right: 15%;
  animation: bob 4s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-content .eyebrow { color: var(--red-400); }
.hero-content .eyebrow::before { background: var(--red-400); }
.hero-content h1 { color: var(--white); margin-bottom: 22px; }
.hero-content .lead { font-size: 1.2rem; font-weight: 200; color: rgba(255,255,255,0.82); max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats .stat-num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--white); }
.hero-stats .stat-num span { color: var(--red-400); }
.hero-stats .stat-label { font-size: 0.82rem; font-weight: 300; color: rgba(255,255,255,0.72); margin-top: 4px; }

@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hero-shapes .shape-glow { width: 280px; height: 280px; }
}

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.72); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--red-400), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%{ opacity: 0.2 } 50%{ opacity: 1 } 100%{ opacity: 0.2 } }

@media (max-width: 860px) {
  .hero { padding-bottom: 80px; }
  .scroll-cue { display: none; }
}

/* ---------------- Intro / Marquee ---------------- */
.marquee-wrap {
  background: linear-gradient(90deg, var(--navy-950), var(--navy-800));
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after { content: "◆"; color: var(--red-500); font-size: 0.6rem; margin-left: 56px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Section heads ---------------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 52px;
}
.section-head .lead { max-width: 480px; font-size: 1.05rem; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lead { max-width: 620px; }

/* ---------------- Services grid ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform var(--transition);
}
.service-card:nth-child(even) .service-icon { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-icon svg { width: 28px; height: 28px; stroke: var(--white); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; margin-bottom: 18px; }
.service-card .card-link {
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem;
  color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px;
}
.service-card .card-link svg { width: 13px; height: 13px; transition: transform var(--transition); }
.service-card:hover .card-link { color: var(--red-600); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* Capability card — photo-led variant used on the homepage "What we do" grid */
.capability-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.capability-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.capability-card .capability-media {
  height: 160px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.capability-card .capability-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,34,64,0.05) 0%, rgba(10,34,64,0.55) 100%);
}
.capability-card .capability-icon {
  position: absolute; z-index: 1; left: 24px; bottom: -24px;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.capability-card:nth-child(even) .capability-icon { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); }
.capability-card:hover .capability-icon { transform: rotate(-6deg) scale(1.06); }
.capability-card .capability-icon svg { width: 26px; height: 26px; stroke: var(--white); }
.capability-card .capability-body { padding: 36px 28px 30px; }
.capability-card h3 { margin-bottom: 10px; }
.capability-card p { font-size: 0.95rem; margin-bottom: 18px; }
.capability-card .card-link {
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem;
  color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px;
}
.capability-card .card-link svg { width: 13px; height: 13px; transition: transform var(--transition); }
.capability-card:hover .card-link { color: var(--red-600); }
.capability-card:hover .card-link svg { transform: translateX(4px); }

/* ---------------- Split / Why section ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .dot {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--slate-100); display: flex; align-items: center; justify-content: center;
}
.feature-item .dot svg { width: 18px; height: 18px; stroke: var(--navy-900); }
.feature-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.92rem; }

.visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--slate-100);
  padding: 44px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.visual-card::before {
  content: "";
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,30,60,0.08), transparent 70%);
  animation: floatY 7s ease-in-out infinite;
}
.visual-card::after {
  content: "";
  position: absolute; left: -40px; bottom: -40px;
  width: 140px; height: 140px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(16,41,74,0.10), transparent 70%);
  transform: rotate(18deg);
}
.visual-card .tag {
  position: relative; z-index: 1;
  align-self: flex-start;
  background: rgba(200,30,60,0.08);
  color: var(--red-600);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; margin-bottom: auto;
}
.visual-card blockquote { position: relative; z-index: 1; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.4; color: var(--navy-900); }
.visual-card cite { position: relative; z-index: 1; display: block; margin-top: 18px; font-style: normal; font-size: 0.85rem; color: var(--slate-600); }

/* Photo variant — real human imagery behind the quote */
.visual-card.has-photo {
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-color: transparent;
}
.visual-card.has-photo::before,
.visual-card.has-photo::after { display: none; }
.visual-card.has-photo .photo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,38,0.15) 0%, rgba(6,22,38,0.94) 100%);
}
.visual-card.has-photo .tag { background: rgba(255,255,255,0.2); color: var(--white); }
.visual-card.has-photo blockquote { color: var(--white); }
.visual-card.has-photo cite { color: rgba(255,255,255,0.78); }

/* ---------------- Industries ---------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industries-grid { grid-template-columns: 1fr; } }

.industry-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 150px 22px 24px;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: all var(--transition);
  color: var(--white);
}
.industry-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,38,0.2) 0%, rgba(6,22,38,0.9) 76%);
  transition: background var(--transition);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-card:hover::before { background: linear-gradient(180deg, rgba(200,30,60,0.38) 0%, rgba(6,22,38,0.92) 76%); }
.industry-card svg { position: relative; z-index: 1; width: 28px; height: 28px; stroke: var(--white); margin-bottom: 14px; }
.industry-card h4 { position: relative; z-index: 1; font-size: 1rem; margin-bottom: 8px; color: var(--white); }
.industry-card p { position: relative; z-index: 1; font-size: 0.85rem; color: rgba(255,255,255,0.82); }

/* ---------------- Stats band ---------------- */
.stats-band {
  background: var(--bg-soft);
  color: var(--navy-900);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute; top: -60px; left: 8%;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,41,74,0.08), transparent 70%);
  animation: floatY 6s ease-in-out infinite;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  position: relative; z-index: 1;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stats-grid .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--navy-900); }
.stats-grid > div:nth-child(odd) .num { color: var(--red-600); }
.stats-grid > div:nth-child(even) .num { color: var(--navy-900); }
.stats-grid .label { font-size: 0.9rem; color: var(--slate-600); margin-top: 6px; }

/* ---------------- Insights / Cards ---------------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .insights-grid { grid-template-columns: 1fr; } }

.insight-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
}
.insight-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.insight-media {
  height: 180px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.insight-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,38,0.5) 0%, rgba(6,22,38,0.05) 55%);
}
.insight-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.insight-body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.insight-date { font-size: 0.78rem; color: var(--slate-500); font-weight: 600; margin-bottom: 10px; }
.insight-body h3 { font-size: 1.1rem; margin-bottom: 12px; }
.insight-body p { font-size: 0.9rem; margin-bottom: 18px; }
.insight-body .card-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px; }
.insight-card:hover .card-link { color: var(--red-600); }

/* ---------------- Logo cloud ---------------- */
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.logo-cloud .logo-tile {
  display: flex; align-items: center; justify-content: center;
  height: 64px; min-width: 120px;
  padding: 12px 26px;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  background: var(--white);
  filter: grayscale(100%);
  opacity: 0.55;
  transition: all var(--transition);
}
.logo-cloud .logo-tile:hover { filter: grayscale(0%); opacity: 1; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.logo-cloud .logo-tile img { height: 30px; width: auto; max-width: 110px; object-fit: contain; }
.logo-cloud .logo-tile .logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--navy-900); margin-left: 10px;
}
.logo-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.cta-band .cta-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6,22,38,0.95), rgba(10,34,64,0.82));
}
.cta-band::after {
  content: "";
  position: absolute; right: -80px; bottom: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,30,60,0.35), transparent 70%);
  animation: pulseGlow 5s ease-in-out infinite;
}
.cta-band::before {
  content: "";
  position: absolute; left: 6%; top: -40px;
  width: 90px; height: 90px; border-radius: 22px;
  background: rgba(255,255,255,0.12);
  transform: rotate(18deg);
  animation: floatY 6s ease-in-out infinite;
}
.cta-band .cta-content { position: relative; z-index: 1; max-width: 560px; }
.cta-band .cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: 14px;
}
.cta-band .cta-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red-400); display: inline-block; }
.cta-band h2 { color: var(--white); max-width: 520px; position: relative; z-index: 1; margin-bottom: 14px; }
.cta-band p { position: relative; z-index: 1; color: rgba(255,255,255,0.78); font-weight: 300; font-size: 1rem; max-width: 480px; margin-bottom: 28px; }
.cta-band .actions { position: relative; z-index: 1; display: flex; gap: 16px; flex-wrap: wrap; }
.cta-band .cta-trust {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.cta-band .cta-trust .avatar-stack { display: flex; }
.cta-band .cta-trust .avatar-stack .avatar-geo {
  width: 46px; height: 46px;
  border: 2px solid var(--navy-950);
  margin-left: -14px;
}
.cta-band .cta-trust .avatar-stack .avatar-geo:first-child { margin-left: 0; }
.cta-band .cta-trust .avatar-geo::after { display: none; }
.cta-band .cta-trust-label { font-size: 0.85rem; font-weight: 300; color: rgba(255,255,255,0.8); max-width: 150px; line-height: 1.4; }

@media (max-width: 760px) {
  .cta-band { flex-direction: column; align-items: flex-start; padding: 48px 32px; }
  .cta-band .cta-trust { margin-top: 8px; }
}

/* ---------------- Testimonial ---------------- */
.testimonial-strip {
  background: var(--bg-alt);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card p { font-size: 0.95rem; color: var(--ink); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }

/* Real human avatar photo */
.avatar-geo {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--slate-100);
}
.avatar-geo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-geo::after {
  content: "";
  position: absolute; top: -3px; right: -3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--white);
  animation: bob 3s ease-in-out infinite;
}
.avatar-geo.is-orange::after { background: var(--red-500); }
.avatar-geo.is-navy::after { background: var(--red-500); }
.avatar-geo.is-lg { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius-md); }
.avatar-geo.is-lg::after { width: 18px; height: 18px; top: 10px; right: 10px; }

.testimonial-person .name { font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }
.testimonial-person .role { font-size: 0.78rem; color: var(--slate-500); }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 72px 0 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,38,0.62) 0%, rgba(6,22,38,0.88) 100%);
}
.site-footer .container { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--slate-300); font-size: 0.88rem; margin: 18px 0 22px; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-head); color: var(--white); font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.88rem; color: var(--slate-300); transition: color var(--transition); }
.footer-col a:hover { color: var(--red-400); }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-row a:hover { background: var(--red-500); border-color: var(--red-500); }
.social-row svg { width: 16px; height: 16px; stroke: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.8rem;
  color: var(--slate-500);
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--slate-500); }
.footer-bottom a:hover { color: var(--red-400); }

/* ---------------- Forms (contact) ---------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 44px;
  border: 1px solid var(--slate-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  color: var(--navy-900); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-300); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white); color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--red-500);
}
.form-group .error-msg {
  display: none; color: #d64545; font-size: 0.78rem; margin-top: 6px; font-weight: 600;
}
.form-group.invalid input, .form-group.invalid textarea, .form-group.invalid select { border-color: #d64545; }
.form-group.invalid .error-msg { display: block; }
.form-success {
  display: none;
  background: #eaf7ef; border: 1px solid #2f9e5c; color: #1e7a4c;
  padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
  margin-bottom: 24px;
}
.form-success.show { display: block; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .contact-info-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
}
.contact-info-card svg { width: 26px; height: 26px; stroke: var(--green-600); margin-bottom: 14px; }
.contact-info-card h4 { font-size: 1rem; margin-bottom: 8px; }
.contact-info-card p { font-size: 0.9rem; }

/* ---------------- Values / About ---------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { text-align: center; padding: 30px 20px; }
.value-card .num {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-500); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
}
.value-card:nth-child(2) .num { background: var(--orange-500); }
.value-card:nth-child(3) .num { background: var(--navy-900); }
.value-card:nth-child(4) .num { background: linear-gradient(135deg, var(--green-500), var(--orange-500)); }
.value-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--slate-100);
}
.timeline-item .year { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy-900); }
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { font-size: 0.92rem; }

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .leadership-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .leadership-grid { grid-template-columns: 1fr; } }
.leader-card { text-align: center; }
.leader-card .avatar-geo.is-lg { margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.leader-card h4 { font-size: 0.98rem; margin-bottom: 2px; }
.leader-card .role { font-size: 0.82rem; color: var(--slate-500); }

/* ---------------- Careers ---------------- */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .perks-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .perks-grid { grid-template-columns: 1fr; } }

.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--slate-100);
  padding: 22px 28px; border-radius: var(--radius-md);
  transition: all var(--transition);
}
.job-row:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.job-row .job-title { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy-900); margin-bottom: 6px; }
.job-row .job-meta { font-size: 0.82rem; color: var(--slate-500); display: flex; gap: 14px; flex-wrap: wrap; }
.job-row .job-meta span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 640px) { .job-row { flex-direction: column; align-items: flex-start; } }

/* ---------------- Page intro helpers ---------------- */
.tabs-filter { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.tabs-filter button {
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  padding: 10px 20px; border-radius: 100px; border: 1.5px solid var(--slate-300);
  color: var(--slate-600); transition: all var(--transition);
}
.tabs-filter button.active, .tabs-filter button:hover {
  background: var(--green-500); border-color: var(--green-500); color: var(--white);
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------- People section (human element) ---------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }

.people-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.people-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.people-card .avatar-geo {
  width: 84px; height: 84px; margin: 0 auto 18px;
  box-shadow: var(--shadow-sm);
}
.people-card .avatar-geo svg { width: 38px; height: 38px; }
.people-card h4 { font-size: 1rem; margin-bottom: 4px; }
.people-card .role { font-size: 0.82rem; color: var(--slate-500); margin-bottom: 12px; }
.people-card p.quote { font-size: 0.88rem; color: var(--slate-600); font-style: italic; }
.people-card .accent-shape {
  position: absolute; width: 60px; height: 60px; border-radius: 50%;
  opacity: 0.12; top: -20px; right: -20px;
}
.people-card:nth-child(odd) .accent-shape { background: var(--green-500); }
.people-card:nth-child(even) .accent-shape { background: var(--orange-500); }

/* ---------------- Decorative geometric shapes (generic, reusable) ---------------- */
.section-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.section-shapes .shape { position: absolute; }
.section-shapes .shape-circle-sm {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--green-400), var(--green-500));
  opacity: 0.18;
  animation: floatY 7s ease-in-out infinite;
}
.section-shapes .shape-ring-sm {
  width: 120px; height: 120px; border-radius: 50%;
  border: 10px solid rgba(255,106,26,0.18);
  animation: spinSlow 18s linear infinite;
}
.section-shapes .shape-square-sm {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--navy-900); opacity: 0.06;
  animation: floatX 9s ease-in-out infinite;
}

/* ---------------- Misc ---------------- */
.bg-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
