
:root {
  --radius: 0.75rem;
  --navy-bg: #050b1a;
  --navy-surface: #091222;
  --navy-fg: #F8F9FC;
  --navy-muted: #9CA3C4;
  --navy-border: rgba(255,255,255,0.09);
  --navy-border-strong: rgba(255,255,255,0.16);

  --light-bg: #FAFBFD;
  --light-surface: #FFFFFF;
  --light-fg: #0B1220;
  --light-muted: #5B6478;
  --light-border: rgba(11,18,32,0.09);
  --light-border-strong: rgba(11,18,32,0.16);

  --primary: #1C6EF2;
  --primary-deep: #124FB3;
  --primary-glow: #4B8FF7;
  --gold: #B8933E;
  --gold-light: #C9A84C;

  /* active theme tokens — default dark */
  --bg: var(--navy-bg);
  --surface: var(--navy-surface);
  --fg: var(--navy-fg);
  --muted: var(--navy-muted);
  --border: var(--navy-border);
  --border-strong: var(--navy-border-strong);
  --card-grad-1: rgba(9,18,34,0.85);
  --card-grad-2: rgba(9,18,34,0.5);

  --nav-h: 116px;
}
@media (max-width: 899px) { :root { --nav-h: 76px; } }
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }
html { scroll-behavior: smooth; background: #000208; scroll-padding-top: calc(var(--nav-h) + 40px); }
body {
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  background-color: #000208;
  background-image:
    radial-gradient(ellipse 70% 50% at 12% 8%, rgba(43,110,242,0.24) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 92% 18%, rgba(75,143,247,0.16) 0%, transparent 62%),
    radial-gradient(ellipse 90% 60% at 50% 22%, transparent 0%, rgba(0,1,8,0.85) 100%),
    radial-gradient(ellipse 160% 110% at 50% -10%, #163d8f 0%, #0d2259 26%, #071433 55%, #010408 100%),
    linear-gradient(160deg, #12295e 0%, #0b1c40 35%, #060f28 65%, #020610 100%);
  background-attachment: fixed;
  background-size: cover;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
  body::before {
    content: ''; position: fixed; inset: 0; z-index: -1;
    background-image:
      radial-gradient(ellipse 70% 50% at 12% 8%, rgba(43,110,242,0.24) 0%, transparent 60%),
      radial-gradient(ellipse 60% 45% at 92% 18%, rgba(75,143,247,0.16) 0%, transparent 62%),
      radial-gradient(ellipse 90% 60% at 50% 22%, transparent 0%, rgba(0,1,8,0.85) 100%),
      linear-gradient(160deg, #12295e 0%, #0b1c40 35%, #060f28 65%, #020610 100%);
    background-size: cover; background-color: #000208;
  }
}
/* Reusable navy→blue gradient panel for "dark" alternating sections */
.section-navy {
  background: linear-gradient(150deg, #0d1c44 0%, #0a1730 45%, #060f28 100%);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  position: relative;
}
.section-navy::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(75,143,247,0.14) 0%, transparent 60%);
}
.section-navy > .container { position: relative; z-index: 1; }
h1, h2, h3, h4, h5 { font-family: 'Barlow Condensed', 'Inter', sans-serif; letter-spacing: -0.012em; font-weight: 700; margin: 0; line-height: 1.06; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

/* ─── LAYOUT ─── */
.container { width: 100%; margin-inline: auto; padding-inline: 1.5rem; max-width: 1240px; }
.section { padding: 6.5rem 0; position: relative; }
.section-tight { padding: 4.5rem 0; }

/* Theme surfaces — sections alternate between transparent-navy and light card panels */
.theme-light {
  --bg: var(--light-bg);
  --surface: var(--light-surface);
  --fg: var(--light-fg);
  --muted: var(--light-muted);
  --border: var(--light-border);
  --border-strong: var(--light-border-strong);
  --card-grad-1: #FFFFFF;
  --card-grad-2: #F7F8FB;
  background: var(--light-bg);
  color: var(--light-fg);
  position: relative;
  isolation: isolate;
}
.theme-light::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--light-bg);
}
.theme-light .eyebrow { background: rgba(28,110,242,0.07); border-color: rgba(28,110,242,0.22); color: var(--primary-deep); }
.theme-light .eyebrow-gold { background: rgba(184,147,62,0.08); border-color: rgba(184,147,62,0.3); color: var(--gold); }

/* ─── NAVBAR (white glassmorphism) ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(11,18,32,0.07);
  box-shadow: 0 1px 20px rgba(11,18,32,0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-brand { display: flex; align-items: center; gap: .75rem; z-index: 2; }
.nav-logo-img { height: 92px; width: auto; max-height: calc(var(--nav-h) - 24px); }
.nav-links a { font-size: 15px; font-weight: 600; color: #2A3247; transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 700; }

/* ─── MOBILE NAV TOGGLE (hamburger) ─── */
.nav-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; height: 44px; margin-left: auto; border-radius: 8px;
  -webkit-tap-highlight-color: transparent; z-index: 2;
}
.nav-toggle:hover { background: rgba(11,18,32,0.05); }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: #0B1220; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: nav-links become a full-height slide-in drawer */
.nav-links {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  position: fixed; top: 0; right: 0; height: 100%; height: 100dvh;
  width: min(320px, 84vw); max-width: 320px;
  background: #fff; box-shadow: -12px 0 40px rgba(11,18,32,0.18);
  padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2rem;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 1;
}
.nav.is-open .nav-links { transform: translateX(0); }
.nav-links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(11,18,32,0.08); font-size: 1.0625rem; }
.nav-cta-mobile { display: flex !important; margin-top: 1.5rem; justify-content: center; }
.nav-cta-desktop { display: none !important; }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 49; background: rgba(5,11,26,0.45);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-toggle, .nav-backdrop { display: none !important; }
  .nav-links {
    position: static; height: auto; width: auto; max-width: none; box-shadow: none;
    background: transparent; padding: 0; transform: none; flex-direction: row; gap: 2.25rem;
    align-items: center; overflow: visible;
  }
  .nav-links a:not(.btn) { padding: 0; border-bottom: 0; font-size: 15px; }
  .nav-cta-mobile { display: none !important; }
  .nav-cta-desktop { display: flex !important; }
}

/* ─── HERO VISUAL (right-side floating icon graphic) ─── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; } }
.hero-visual { display: none; position: relative; align-items: center; justify-content: center; }
@media (min-width: 960px) { .hero-visual { display: flex; } }
.hero-visual::before {
  content: ''; position: absolute; width: 120%; height: 120%; z-index: 0;
  background: radial-gradient(circle, rgba(28,110,242,0.28) 0%, transparent 68%);
  filter: blur(10px);
}
.hero-visual-inner {
  position: relative; z-index: 1; width: 100%; max-width: 460px; aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(circle at center, black 52%, transparent 76%);
  mask-image: radial-gradient(circle at center, black 52%, transparent 76%);
}
.hero-visual-inner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }

/* Logo mark variant: the radial-fade mask above is tuned for a photo, not
   a crisp vector-style logo — it would clip the shield's edges. Show the
   full mark instead, centered, with a drop shadow for depth. */
.hero-visual-logo { -webkit-mask-image: none; mask-image: none; display: flex; align-items: center; justify-content: center; }
.hero-visual-logo img { width: 78%; height: 78%; object-fit: contain; opacity: 1; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.45)); }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 0.8rem 1.6rem; border-radius: 8px; font-weight: 600; font-size: .9375rem; transition: all .2s; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-glow); transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(28,110,242,0.5); }
.btn-outline { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn-outline:hover { background: rgba(28,110,242,0.08); border-color: rgba(28,110,242,0.4); }
.btn-sm { padding: .55rem 1.05rem; font-size: .8125rem; }
.btn-arrow::after { content: '→'; font-size: 1.1em; transition: transform .2s; }
.btn:hover .btn-arrow::after, a.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── ATOMS ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(28,110,242,0.09); border: 1px solid rgba(28,110,242,0.26);
  color: var(--primary-glow); font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.eyebrow-gold { color: var(--gold-light); background: rgba(201,168,76,0.09); border-color: rgba(201,168,76,0.3); }

.display-xl { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 0.99; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(2.125rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.018em; }
.display-md { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.08; }
.display-sm { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.18; }
.lead { font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }
.text-gold { color: var(--gold-light); }
.theme-light .text-gold { color: var(--gold); }
.text-primary { color: var(--primary-glow); }
.theme-light .text-primary { color: var(--primary-deep); }

/* ─── CARD (theme-aware) ─── */
.card {
  background: linear-gradient(180deg, var(--card-grad-1) 0%, var(--card-grad-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.theme-light .card { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.card:hover { border-color: rgba(28,110,242,0.35); transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5); }
.theme-light .card:hover { box-shadow: 0 20px 40px -18px rgba(11,18,32,0.14); }

/* ─── GRIDS ─── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ─── HERO ─── */
.hero { padding: 12.5rem 0 5.5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -220px; right: -220px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(28,110,242,0.16) 0%, transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.5rem; }
.hero-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 4.25rem; padding-top: 2.5rem; border-top: 1px solid var(--navy-border); }
@media (min-width: 700px) { .hero-stats { grid-template-columns: repeat(3, 1fr); } }
.stat-value { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 2.125rem; line-height: 1; color: #fff; margin-bottom: .4rem; }
.stat-label { font-size: .75rem; font-weight: 500; color: var(--navy-muted); text-transform: uppercase; letter-spacing: 0.14em; }

/* ─── BREADCRUMB ─── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--navy-muted); margin-bottom: 1.75rem; }
.breadcrumb a:hover { color: var(--primary-glow); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: rgba(248,249,252,0.85); }

/* ─── SUB-NAV ─── */
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(5,11,26,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--navy-border); }
.subnav-inner { display: flex; gap: 2rem; overflow-x: auto; padding: 1rem 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { font-size: .8125rem; font-weight: 500; color: var(--navy-muted); white-space: nowrap; padding: .375rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.subnav a:hover, .subnav a.active { color: #fff; border-color: var(--primary); }

/* ─── SECTION HEAD ─── */
.section-head { max-width: 800px; margin-bottom: 3.75rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 1.25rem; }

/* ─── PANEL (Challenge) ─── */
.panel {
  background: linear-gradient(180deg, rgba(15,34,96,0.35) 0%, rgba(9,18,34,0.55) 100%);
  border: 1px solid rgba(28,110,242,0.2);
  border-radius: 20px; padding: 3rem;
}
.theme-light .panel {
  background: linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%);
  border: 1px solid rgba(28,110,242,0.16);
}
.panel-quote { font-family: 'Barlow Condensed'; font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.22; letter-spacing: -0.01em; margin-bottom: 1.5rem; color: var(--fg); overflow-wrap: anywhere; }
.panel-body { color: var(--muted); line-height: 1.75; font-size: 1rem; }
.panel-body p + p { margin-top: 1rem; }
.panel-body strong { color: var(--fg); font-weight: 600; }

/* ─── STEPS ─── */
.steps { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .steps.count-3 { grid-template-columns: repeat(3, 1fr); } .steps.count-4 { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 2.25rem 2rem; background: var(--card-grad-1); border: 1px solid var(--border); border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-2px); }
.theme-light .step { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.step-num { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 3rem; line-height: 1; color: var(--primary); opacity: 0.75; margin-bottom: 1rem; }
.step-title { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 1.375rem; margin-bottom: .75rem; }
.step-desc { color: var(--muted); font-size: .9375rem; line-height: 1.65; }

/* ─── PILLAR (detail service block) ─── */
.pillar { padding: 2.75rem; background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2)); border: 1px solid var(--border); border-radius: 18px; margin-bottom: 1.5rem; }
.theme-light .pillar { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.pillar-head { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.pillar-icon { flex-shrink: 0; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: #0a1730; }
.pillar-icon img { width: 100%; height: 100%; object-fit: cover; }
.pillar-head h3 { font-size: 1.625rem; line-height: 1.12; margin-bottom: .5rem; }
.pillar-head p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.pillar-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-block h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-light); margin-bottom: .75rem; font-family: 'Inter'; }
.theme-light .pillar-block h4 { color: var(--gold); }
.pillar-block ul { display: flex; flex-direction: column; gap: .625rem; }
.pillar-block li { color: var(--muted); font-size: .875rem; line-height: 1.55; padding-left: 1rem; position: relative; }
.pillar-block li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: 0.8; }
.pillar-block.why li::before { background: var(--gold-light); }

/* ─── PILLAR CARD (grid on services/home pages) with icon image ─── */
.service-card { padding: 1.85rem; background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2)); border: 1px solid var(--border); border-radius: 16px; height: 100%; transition: all .2s; display: flex; flex-direction: column; }
.theme-light .service-card { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.service-card:hover { border-color: rgba(28,110,242,0.35); transform: translateY(-3px); }
.service-card-icon { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); margin-bottom: 1.25rem; background: #0a1730; }
.service-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.service-card-num { font-size: .6875rem; font-weight: 700; color: var(--primary-glow); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: .5rem; }
.theme-light .service-card-num { color: var(--primary-deep); }
.service-card h3 { font-size: 1.3125rem; line-height: 1.15; margin-bottom: .875rem; }
.service-card ul { margin: .75rem 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.service-card li { color: var(--muted); font-size: .875rem; line-height: 1.5; padding-left: 1rem; position: relative; }
.service-card li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.card-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1rem; font-size: .8125rem; font-weight: 700; color: var(--primary-glow); text-transform: uppercase; letter-spacing: 0.08em; transition: gap .2s; }
.theme-light .card-link { color: var(--primary-deep); }
.card-link:hover { gap: .75rem; }

/* ─── INDUSTRY CHIPS ─── */
.chips { display: flex; flex-wrap: wrap; gap: .625rem; }
.chip { padding: .65rem 1.2rem; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--fg); font-size: .875rem; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: rgba(28,110,242,0.4); background: rgba(28,110,242,0.08); color: var(--primary-glow); }
.theme-light .chip:hover { color: var(--primary-deep); }

/* ─── DIFFERENTIATORS ─── */
.diff-list { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .diff-list { grid-template-columns: repeat(2, 1fr); } }
.diff-item { display: flex; gap: 1rem; padding: 1.5rem; background: var(--card-grad-1); border: 1px solid var(--border); border-radius: 14px; }
.theme-light .diff-item { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.diff-check { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: rgba(28,110,242,0.14); color: var(--primary-glow); display: grid; place-items: center; font-weight: 700; }
.theme-light .diff-check { color: var(--primary-deep); }
.diff-item p { color: var(--fg); font-size: .9375rem; line-height: 1.55; margin: 0; padding-top: .25rem; opacity: 0.92; }

/* ─── LEADERSHIP (with real headshots) ─── */
.leader { padding: 0; background: var(--card-grad-1); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.theme-light .leader { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.leader:hover { transform: translateY(-3px); }
.leader-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: #0a1730; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-body { padding: 1.75rem; }
.leader-role { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-light); margin-bottom: .625rem; }
.theme-light .leader-role { color: var(--gold); }
.leader-body h3 { font-size: 1.5rem; margin-bottom: .875rem; }
.leader-body p { color: var(--muted); font-size: .875rem; line-height: 1.6; margin-bottom: 1rem; }
.leader-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1rem; }
.leader-tag { padding: .3rem .7rem; border-radius: 5px; background: rgba(28,110,242,0.09); border: 1px solid rgba(28,110,242,0.22); font-size: .6875rem; color: var(--fg); font-weight: 600; opacity: 0.85; }
.leader-link { font-size: .8125rem; font-weight: 700; color: var(--primary-glow); text-transform: uppercase; letter-spacing: 0.08em; }
.theme-light .leader-link { color: var(--primary-deep); }
.leader-linkedin-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 8px;
  background: #0A66C2; color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: 0.02em;
  transition: all .2s; border: 1px solid #0A66C2;
}
.leader-linkedin-btn:hover { background: #004182; border-color: #004182; transform: translateY(-1px); }
.leader-linkedin-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── TESTIMONIAL ─── */
.quote { padding: 2.25rem; background: var(--card-grad-1); border-left: 3px solid var(--gold-light); border-radius: 0 14px 14px 0; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.theme-light .quote { border-left-color: var(--gold); box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.quote-text { font-family: 'Barlow Condensed'; font-weight: 500; font-size: 1.3125rem; line-height: 1.35; color: var(--fg); margin-bottom: 1rem; font-style: italic; }
.quote-attr { font-size: .8125rem; color: var(--muted); font-weight: 600; }

/* ─── FAQ ─── */
.faq details {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #C9A84C 0%, #B8933E 100%);
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 14px; margin-bottom: .75rem; transition: all .2s;
}
.faq details[open] { border-color: #C9A84C; box-shadow: 0 12px 30px -12px rgba(201,168,76,0.45); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: 'Barlow Condensed'; font-weight: 600; font-size: 1.1875rem; line-height: 1.3; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: #fff; font-weight: 300; font-size: 1.75rem; transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: rgba(255,255,255,0.92); font-size: .9375rem; line-height: 1.65; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.28); }

/* ─── INSIGHT CARD ─── */
.insight { padding: 1.85rem; background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2)); border: 1px solid var(--border); border-radius: 16px; transition: all .2s; height: 100%; display: flex; flex-direction: column; }
.theme-light .insight { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.insight:hover { border-color: rgba(28,110,242,0.35); transform: translateY(-3px); }
.insight-tag { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-light); margin-bottom: .875rem; }
.theme-light .insight-tag { color: var(--gold); }
.insight h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: .75rem; }
.insight p { color: var(--muted); font-size: .9375rem; line-height: 1.55; margin-bottom: 1.25rem; flex: 1; }
.insight-meta { font-size: .75rem; color: var(--muted); }

/* ─── CTA banner ─── */
.cta-banner {
  padding: 4.25rem 2.5rem; border-radius: 22px;
  background:
    radial-gradient(ellipse at top right, rgba(28,110,242,0.22), transparent 60%),
    linear-gradient(180deg, rgba(15,34,96,0.55), rgba(9,18,34,0.88));
  border: 1px solid rgba(28,110,242,0.3);
  text-align: center;
}
.theme-light .cta-banner {
  background:
    radial-gradient(ellipse at top right, rgba(28,110,242,0.1), transparent 60%),
    linear-gradient(180deg, #EEF3FF, #FFFFFF);
  border: 1px solid rgba(28,110,242,0.18);
}
.cta-banner h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); margin-bottom: 1rem; }
.cta-banner p { color: var(--muted); max-width: 600px; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .875rem; justify-content: center; }

/* ─── CONTACT ─── */
.contact { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.15fr; } }
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info-lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; margin-bottom: 2.5rem; }
.contact-item { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 1px solid var(--border); }
.contact-item-label { font-size: .6875rem; font-weight: 700; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: .375rem; }
.theme-light .contact-item-label { color: var(--gold); }
.contact-item-value { font-size: 1.0625rem; color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.contact-item-value a:hover { color: var(--primary-glow); }
.form-card {
  padding: 2.5rem; background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2));
  border: 1px solid rgba(28,110,242,0.25); border-radius: 20px;
}
.theme-light .form-card { box-shadow: 0 4px 24px rgba(11,18,32,0.06); }
.form-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .875rem; border-radius: 999px; background: rgba(28,110,242,0.1); border: 1px solid rgba(28,110,242,0.3); font-size: .6875rem; color: var(--primary-glow); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.25rem; }
.theme-light .form-eyebrow { color: var(--primary-deep); }
.form-card h3 { font-size: 1.875rem; line-height: 1.1; margin-bottom: .75rem; }
.form-card > p { color: var(--muted); font-size: .9375rem; margin-bottom: 1.5rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 1rem 0; margin-bottom: 1.75rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: .375rem; }
.trust-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); }
.theme-light .trust-row .dot { background: var(--gold); }
.field { margin-bottom: 1.125rem; }
.field label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg); opacity: 0.72; margin-bottom: .5rem; }
.field label .req { color: var(--gold-light); margin-left: .125rem; }
.theme-light .field label .req { color: var(--gold); }
.field input, .field textarea, .field select {
  width: 100%; padding: .875rem 1rem; background: rgba(0,0,0,0.22); border: 1px solid var(--border-strong); border-radius: 9px;
  color: var(--fg); font-size: .9375rem; transition: border-color .15s, background .15s;
}
.theme-light .field input, .theme-light .field textarea, .theme-light .field select {
  background: #F5F7FB;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-submit { width: 100%; padding: 1rem; border-radius: 9px; background: var(--primary); color: white; font-weight: 700; font-size: .9375rem; letter-spacing: 0.02em; transition: all .2s; }
.form-submit:hover { background: var(--primary-glow); box-shadow: 0 10px 30px -8px rgba(28,110,242,0.5); }
.form-note { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 1rem; }

/* ─── FOOTER ─── */
.footer { padding: 4.5rem 0 2rem; border-top: 1px solid var(--navy-border); background: rgba(3, 6, 18, 0.7); margin-top: 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 3rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--navy-muted); font-size: .875rem; line-height: 1.6; margin: 1rem 0; max-width: 340px; }
.footer-logo-badge { display: inline-block; background: #fff; padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: .75rem; line-height: 0; }
.footer-logo-img { height: 64px; width: auto; display: block; }
.footer-tag { font-size: .6875rem; font-weight: 700; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.18em; }
.footer-col h4 { font-size: .75rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1rem; font-family: 'Inter'; }
.footer-col ul li { margin-bottom: .625rem; }
.footer-col a { color: rgba(248,249,252,0.65); font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: var(--primary-glow); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--navy-border); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; justify-content: space-between; font-size: .75rem; color: var(--navy-muted); letter-spacing: 0.02em; }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom .tags { display: flex; gap: 1rem; color: var(--gold-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: .6875rem; }

/* ─── INDUSTRY CARDS (3×3 grid) ─── */
.industry-card { padding: 1.75rem; background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2)); border: 1px solid var(--border); border-radius: 14px; transition: all .2s; height: 100%; }
.theme-light .industry-card { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.industry-card:hover { border-color: rgba(28,110,242,0.35); transform: translateY(-3px); }
.industry-badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: rgba(28,110,242,0.12); border: 1px solid rgba(28,110,242,0.28); color: var(--primary-glow); font-family: 'Barlow Condensed'; font-weight: 700; font-size: .9375rem; letter-spacing: 0.02em; margin-bottom: 1.1rem; }
.theme-light .industry-badge { color: var(--primary-deep); }
.industry-card h4 { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 1.1875rem; line-height: 1.2; margin-bottom: .625rem; }
.industry-card p { color: var(--muted); font-size: .8437rem; line-height: 1.55; }
/* ─── HERO IMAGE GALLERY (auto-rotating) ─── */
.hero-gallery { display: none; position: relative; align-items: center; justify-content: center; }
@media (min-width: 960px) { .hero-gallery { display: flex; } }
.hero-gallery-inner {
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 3/2;
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}
.hero-gallery-inner::before {
  content: ''; position: absolute; inset: -30px; z-index: -1;
  background: radial-gradient(circle, rgba(28,110,242,0.24) 0%, transparent 68%);
  filter: blur(10px);
}
.hero-gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-gallery-slide.active { opacity: 1; }
.hero-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.25rem 1.1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: 0.02em;
}
.hero-gallery-dots { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .375rem; z-index: 2; }
.hero-gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: background .3s; }
.hero-gallery-dots span.active { background: #fff; }
.hero-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(5,11,26,0.5); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; cursor: pointer; transition: background .2s, transform .2s;
}
.hero-gallery-nav:hover { background: rgba(28,110,242,0.7); border-color: rgba(28,110,242,0.7); }
.hero-gallery-nav:active { transform: translateY(-50%) scale(0.92); }
.hero-gallery-nav.prev { left: 16px; }
.hero-gallery-nav.next { right: 16px; }
.hero-gallery-nav svg { width: 20px; height: 20px; }

/* ─── BLOG CARD ─── */
.blog-card { display: block; border-radius: 16px; overflow: hidden; background: var(--card-grad-1); border: 1px solid var(--border); transition: all .2s; }
.theme-light .blog-card { box-shadow: 0 1px 3px rgba(11,18,32,0.04); }
.blog-card:hover { border-color: rgba(28,110,242,0.35); transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.35); }
.blog-card-img { width: 100%; aspect-ratio: 5/3; overflow: hidden; background: #0a1730; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.5rem 1.5rem 1.75rem; }
.blog-card-body h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: .875rem; color: var(--fg); }
.blog-card-meta { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.blog-card-meta .author { font-weight: 600; color: var(--fg); opacity: 0.85; display: block; margin-bottom: .25rem; }
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: .625rem; margin-top: 3rem; }
.blog-pagination a, .blog-pagination span {
  width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 600; border: 1px solid var(--border-strong); color: var(--fg); transition: all .2s;
}
.blog-pagination a:hover { border-color: rgba(28,110,242,0.4); color: var(--primary-glow); }
.blog-pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }

.rule { height: 1px; background: var(--border); width: 100%; }

/* ══════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION
   Tighter spacing, safe-area support and touch-friendly sizing for
   phones/small tablets. Desktop (≥900px) is untouched above this point.
   ══════════════════════════════════════════════════════════════════ */

/* Respect notches / home-indicator on iOS */
.nav-inner { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }

/* Bigger, easier-to-tap targets for small text links on touch devices
   (buttons/chips already clear 44px via their padding, so left as-is) */
@media (hover: none) and (pointer: coarse) {
  .footer-col a, .subnav a { display: inline-flex; align-items: center; min-height: 40px; }
  .card-link { min-height: 40px; }
}

@media (max-width: 899px) {
  .container { padding-inline: 1.25rem; }

  /* Sections: the desktop rhythm (6.5rem / 4.5rem) is too much scrolling on a phone */
  .section { padding: 3.75rem 0; }
  .section-tight { padding: 3rem 0; }
  .section-head { margin-bottom: 2.5rem; }

  /* Buttons: the desktop nowrap look forces long CTA labels wider than the
     viewport on phones, causing horizontal scroll — let them wrap/stack instead. */
  .btn { white-space: normal; text-align: center; }

  /* Hero: reclaim vertical space eaten by the fixed-height desktop nav padding */
  .hero { padding: calc(var(--nav-h) + 2.5rem) 0 3rem; }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.25rem; margin-top: 2.75rem; padding-top: 1.75rem; }

  .cta-banner { padding: 2.75rem 1.5rem; border-radius: 16px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; }

  .panel { padding: 1.75rem; border-radius: 16px; }
  .pillar { padding: 1.75rem; border-radius: 14px; }
  .pillar-head { gap: 1rem; }
  .form-card { padding: 1.75rem; border-radius: 16px; }

  /* Buttons full-width in narrow stacked contexts reduces mis-taps */
  .form-submit { padding: 1.05rem; }
  .field input, .field textarea, .field select { padding: .95rem 1rem; font-size: 16px; } /* 16px prevents iOS auto-zoom on focus */

  .footer { padding-top: 3.25rem; }
  .footer-grid { gap: 2.25rem; margin-bottom: 2.25rem; }

  /* Prevent large decorative blur shapes from ever forcing horizontal scroll */
  .hero::before, .hero-visual::before, .hero-gallery-inner::before { max-width: 100vw; }
}

@media (max-width: 380px) {
  .nav-logo-img { max-height: 40px; }
  .display-xl { font-size: clamp(2.25rem, 9vw, 2.75rem); }
}

/* ══════════════════════════════════════════════════════════════════
   QUICK CONSULTATION MODAL
   Reuses the existing --navy tokens / .field / .form-submit styling so
   it matches the full contact form, just in a focused popup.
   ══════════════════════════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(3,6,18,0.72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; z-index: 1; margin: 6vh auto; width: min(480px, calc(100% - 2.5rem));
  max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #0d1c44 0%, #0a1730 100%);
  border: 1px solid rgba(28,110,242,0.25); border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity .25s ease, transform .25s ease;
}
.modal.is-open .modal-panel { opacity: 1; transform: translateY(0) scale(1); }
.modal-body { padding: 2.5rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--navy-border-strong); color: #fff;
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,0.14); }
.modal-close svg { width: 16px; height: 16px; }
.modal .field input, .modal .field textarea { background: rgba(0,0,0,0.28); }
.consultation-success { text-align: center; padding: 1.5rem 0; }
.consultation-success-icon {
  width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%;
  background: rgba(28,110,242,0.16); border: 1px solid rgba(28,110,242,0.35);
  color: var(--primary-glow); display: flex; align-items: center; justify-content: center;
}
.consultation-success-icon svg { width: 26px; height: 26px; }
body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .modal-panel { margin: 0; width: 100%; max-width: none; height: 100%; max-height: 100dvh; border-radius: 0; }
  .modal-body { padding: calc(1.5rem + env(safe-area-inset-top)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); }
}
