/* ─── TOKENS ────────────────────────────────────────────────────────────── */
:root {
  --navy:        #0d1f35;
  --navy-mid:    #1e3a5f;
  --navy-light:  #2c4e78;
  --steel:       #4a6a8a;
  --mist:        #cfd9e0;
  --off-white:   #f4f6f8;
  --white:       #ffffff;
  --charcoal:    #282728;
  --mid-gray:    #6b7a8d;
  --light-rule:  #dce4eb;
  --amber:       #c8893a;
  --amber-dark:  #a86f26;
  --pdi-red:     #ed1c24;
  --pdi-charcoal:#2f3033;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --shadow-inset: inset 0 0 0 1px rgba(13,31,53,0.14);
  --shadow-card:  0 2px 16px rgba(13,31,53,0.08);
  --shadow-lift:  0 8px 32px rgba(13,31,53,0.14);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --radius-sm: 3px;
  --radius-md: 7px;
}

/* ─── RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ─── LAYOUT UTILITIES ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section-label {
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 0.82vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  line-height: 1.35;
}
.section-label.light { color: var(--mist); opacity: 0.7; }
@media (max-width: 768px) {
  .section-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
  }
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,137,58,0.35); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy-light);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-arrow::after { content: '→'; }

/* ─── CLEAN NAVIGATION ───────────────────────────────────────────────────
   Single source of truth for desktop and mobile navigation.
────────────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(52,52,54,0.10);
  box-shadow: 0 10px 32px rgba(23,23,25,0.055);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  transition: box-shadow var(--transition), background var(--transition);
}

nav.scrolled {
  box-shadow: 0 8px 28px rgba(47,48,51,0.10);
}

nav > .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.nav-inner {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  width: 100%;
  height: 76px;
}

.nav-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  display: none;
}

.pdi-logo-img {
  width: clamp(180px, 22vw, 300px);
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
  transform: translateX(-52px);
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(52,52,54,0.025);
  box-shadow: inset 0 0 0 1px rgba(52,52,54,0.06);
  transform: translateX(-12px);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(52,52,54,0.68);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 9px 15px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--pdi-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--pdi-red);
  background: rgba(237,28,36,0.08);
  box-shadow: inset 0 0 0 1px rgba(237,28,36,0.12);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  margin: 0;
}

.nav-cta .btn,
nav .btn-primary {
  min-height: 44px;
  padding: 0 25px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(237,28,36,0.18);
}

.nav-hamburger {
  display: none;
  justify-self: end;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 100001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--pdi-charcoal);
  transition: all var(--transition);
}

@media (max-width: 900px) {
  nav > .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    height: 68px;
  }

  .pdi-logo-img {
    width: 210px;
    max-height: 40px;
    transform: translateX(-26px);
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    z-index: 100000;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(0,0,0,0.28);
    border: 1px solid rgba(0,0,0,0.10);
    transform: none;
  }

  .nav-links.mobile-open a {
    justify-content: flex-start;
    color: #202124;
    background: #ffffff;
    box-shadow: none;
    padding: 14px 16px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 14px;
    font-weight: 600;
  }

  .nav-links.mobile-open a:last-child {
    border-bottom: none;
  }

  .nav-links.mobile-open a::after {
    display: none;
  }

  .nav-links.mobile-open a:hover,
  .nav-links.mobile-open a.is-active,
  .nav-links.mobile-open a[aria-current="page"] {
    color: var(--pdi-red);
    background: rgba(237,28,36,0.06);
  }
}

@media (max-width: 520px) {
  .pdi-logo-img {
    width: 178px;
  }
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: #0a0c10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Deep vignette atmosphere */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(20,38,62,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(200,137,58,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 10%, rgba(44,78,120,0.18) 0%, transparent 55%);
  pointer-events: none;
}

/* Particle canvas */
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* Animated accent lines */
.hero-lines {
  position: absolute; inset: 0;
  pointer-events: none;
}
.h-line, .v-line {
  position: absolute;
  background: rgba(255,255,255,0.065);
  will-change: transform, opacity;
}
.h-line {
  height: 1px; left: 0; right: 0;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  animation: heroDrawX 900ms cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.h-line:nth-child(1) { top: 22%;  animation-delay: 200ms; }
.h-line:nth-child(2) { top: 50%;  animation-delay: 340ms; }
.h-line:nth-child(3) { top: 78%;  animation-delay: 480ms; }
.v-line {
  width: 1px; top: 0; bottom: 0;
  transform: scaleY(0);
  transform-origin: 50% 0%;
  animation: heroDrawY 1000ms cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.v-line:nth-child(4) { left: 20%;  animation-delay: 560ms; }
.v-line:nth-child(5) { left: 50%;  animation-delay: 680ms; }
.v-line:nth-child(6) { left: 80%;  animation-delay: 800ms; }

/* Shimmer pulse on lines */
.h-line::after, .v-line::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  animation: heroShimmer 900ms ease-out forwards;
}
.h-line:nth-child(1)::after { animation-delay: 200ms; }
.h-line:nth-child(2)::after { animation-delay: 340ms; }
.h-line:nth-child(3)::after { animation-delay: 480ms; }
.v-line:nth-child(4)::after { animation-delay: 560ms; }
.v-line:nth-child(5)::after { animation-delay: 680ms; }
.v-line:nth-child(6)::after { animation-delay: 800ms; }

@keyframes heroDrawX {
  0%   { transform: scaleX(0); opacity: 0; }
  50%  { opacity: 0.9; }
  100% { transform: scaleX(1); opacity: 0.7; }
}
@keyframes heroDrawY {
  0%   { transform: scaleY(0); opacity: 0; }
  50%  { opacity: 0.9; }
  100% { transform: scaleY(1); opacity: 0.7; }
}
@keyframes heroShimmer {
  0%   { opacity: 0; }
  30%  { opacity: 0.3; }
  100% { opacity: 0; }
}

/* Hero content — centered */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 140px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,137,58,0.85);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: heroFadeUp 0.7s 0.1s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: rgba(200,137,58,0.5);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  color: #f0f4f8;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  animation: heroFadeUp 0.75s 0.22s cubic-bezier(0.4,0,0.2,1) both;
}
.hero h1 em {
  font-style: italic;
  color: rgba(207,217,224,0.6);
}

.hero-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(207,217,224,0.62);
  max-width: 540px;
  margin-bottom: 40px;
  animation: heroFadeUp 0.75s 0.34s cubic-bezier(0.4,0,0.2,1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 0;
  animation: heroFadeUp 0.75s 0.46s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bottom trust band inside hero */
.hero-trust-band {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  animation: heroFadeUp 0.75s 0.65s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(207,217,224,0.4);
}
.hero-trust-item:last-child { border-right: none; }
.trust-dot {
  width: 4px; height: 4px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .hero-content { padding: 130px 24px 0; max-width: 100%; }
  .hero h1 { font-size: 34px; }
  .hero-body { font-size: 15px; }
  .hero-trust-band { padding: 20px 24px; gap: 8px; }
  .hero-trust-item { padding: 6px 16px; border-right: none; font-size: 9px; }
  .v-line:nth-child(4), .v-line:nth-child(6) { display: none; }
}

/* ─── CREDIBILITY STRIP ─────────────────────────────────────────────────── */
.cred-strip {
  background: var(--navy-mid);
  padding: 0;
}
.cred-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cred-item {
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.cred-item:last-child { border-right: none; }
.cred-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.cred-label {
  font-size: 12px;
  color: rgba(207,217,224,0.55);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .cred-strip-inner { grid-template-columns: 1fr 1fr; }
  .cred-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .cred-item:nth-child(2n) { border-right: none; }
}

/* ─── SECTION SPACING ───────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-subtitle {
  font-size: 16px;
  color: var(--mid-gray);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 52px;
}
.section-subtitle.light { color: rgba(207,217,224,0.7); }
.section-header { margin-bottom: 52px; }

/* ─── CATEGORIES — EXPANDING CARDS ─────────────────────────────────────── */
#categories { padding: 100px 0; }

.ec-header { margin-bottom: 52px; }

.ec-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 1fr;
  gap: 6px;
  height: 520px;
  width: 100%;
  /* columns set by JS */
  transition: grid-template-columns 0.55s cubic-bezier(0.4,0,0.2,1);
  list-style: none;
}

/* Each card */
.ec-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  min-width: 52px;
  flex-shrink: 0;
  outline: none;
}
.ec-card:focus-visible { box-shadow: 0 0 0 2px var(--amber), 0 0 0 4px rgba(200,137,58,0.25); }

/* Image layer */
.ec-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  transform: scale(1.06);
  filter: grayscale(1) brightness(0.7);
  will-change: transform, filter;
}
.ec-card[data-active="true"] .ec-img {
  transform: scale(1);
  filter: grayscale(0) brightness(0.55);
}

/* Gradient overlay */
.ec-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,10,18,0.92) 0%,
    rgba(5,10,18,0.5) 40%,
    rgba(5,10,18,0.12) 100%
  );
}

/* Collapsed: rotated title strip */
.ec-collapsed-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  top: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 0 20px 0;
  pointer-events: none;
}
.ec-collapsed-label span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  margin: 0 auto;
  transition: opacity 0.25s ease;
}
.ec-card[data-active="true"] .ec-collapsed-label span { opacity: 0; }

/* Expanded: content reveal */
.ec-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  pointer-events: none;
}
.ec-icon {
  color: var(--amber);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s 0.08s ease, transform 0.28s 0.08s ease;
  margin-bottom: 10px;
  width: 26px; height: 26px;
}
.ec-icon svg { width: 26px; height: 26px; stroke: currentColor; }
.ec-card[data-active="true"] .ec-icon {
  opacity: 1; transform: translateY(0);
}

.ec-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s 0.16s ease, transform 0.28s 0.16s ease;
}
.ec-card[data-active="true"] .ec-title {
  opacity: 1; transform: translateY(0);
}

.ec-desc {
  font-size: 13px;
  color: rgba(207,217,224,0.78);
  line-height: 1.65;
  max-width: 280px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s 0.24s ease, transform 0.28s 0.24s ease;
  margin-bottom: 14px;
}
.ec-card[data-active="true"] .ec-desc {
  opacity: 1; transform: translateY(0);
}

.ec-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s 0.3s ease, transform 0.25s 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ec-card[data-active="true"] .ec-cta {
  opacity: 1; transform: translateY(0);
}

/* Mobile services: stable touch accordion */
@media (max-width: 768px) {
  .ec-list {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    transition: none;
  }

  .ec-card {
    min-width: 0;
    min-height: 64px;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    transition: min-height 0.28s ease;
  }

  .ec-card[data-active="true"] {
    min-height: 300px;
  }

  .ec-collapsed-label {
    display: flex;
    align-items: center;
    padding: 0 20px;
  }

  .ec-collapsed-label span {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0;
    font-size: 11px;
  }

  .ec-card[data-active="true"] .ec-collapsed-label {
    opacity: 0;
  }

  .ec-content {
    padding: 22px;
  }

  .ec-img {
    transform: scale(1.02);
    filter: grayscale(1) brightness(0.68);
  }

  .ec-card[data-active="true"] .ec-img {
    transform: scale(1);
    filter: grayscale(0) brightness(0.55);
  }

  .ec-icon,
  .ec-title,
  .ec-desc,
  .ec-cta {
    opacity: 0;
    transform: translateY(10px);
  }

  .ec-card[data-active="true"] .ec-icon,
  .ec-card[data-active="true"] .ec-title,
  .ec-card[data-active="true"] .ec-desc,
  .ec-card[data-active="true"] .ec-cta {
    opacity: 1;
    transform: none;
  }

  .ec-title {
    font-size: 19px;
  }

  .ec-desc {
    max-width: 100%;
  }
}

/* ─── WHY PACIFIC DETECTION ───────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.why-left { }
.why-right { padding-top: 8px; }
.why-points { display: flex; flex-direction: column; gap: 0; }
.why-point {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--light-rule);
}
.why-point:first-child { border-top: 1px solid var(--light-rule); }
.why-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 3px;
  flex-shrink: 0;
  width: 24px;
}
.why-point-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.why-point-body {
  font-size: 13.5px;
  color: var(--mid-gray);
  line-height: 1.65;
}
.why-stat-block {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.why-stat-block::before {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(200,137,58,0.08);
}
.why-stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.why-stat-label {
  font-size: 14px;
  color: rgba(207,217,224,0.65);
  line-height: 1.5;
}
.why-estimate {
  background: var(--off-white);
  border-left: 3px solid var(--amber);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.why-estimate p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.6;
}
.why-estimate cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 12px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ─── WHY REDESIGN — TRUST & EXECUTION PANEL ───────────────────────────── */
.why-redesigned .section-subtitle {
  max-width: 560px;
  margin-bottom: 42px;
}
.why-redesigned .why-points {
  border-top: 1px solid var(--light-rule);
}
.why-redesigned .why-point {
  padding: 26px 0;
}
.why-redesigned .why-point:first-child {
  border-top: none;
}
.why-redesigned .why-point-title {
  font-size: 16px;
}
.why-redesigned .why-point-body {
  max-width: 470px;
}
.why-expect-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #171719 0%, #252629 100%);
  border-radius: 12px;
  padding: clamp(32px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(13,31,53,0.18);
}
.why-expect-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ed1c24;
}
.why-expect-panel::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(237,28,36,0.1);
  pointer-events: none;
}
.why-panel-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ed1c24;
  margin-bottom: 18px;
}
.why-expect-panel h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 30px;
}
.why-expect-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.why-expect-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.74);
  font-size: 13.5px;
  line-height: 1.45;
}
.why-expect-list span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ed1c24;
  box-shadow: 0 0 0 5px rgba(237,28,36,0.12);
  flex-shrink: 0;
}
.why-risk-strip {
  margin-top: 18px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--light-rule);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}
.why-risk-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.why-risk-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.why-risk-items span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a3b3f 0%, #2a2b2f 100%);
  border: 1px solid rgba(237,28,36,0.22);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(13,31,53,0.10);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .why-expect-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .why-expect-panel { padding: 30px 26px; }
  .why-risk-strip { padding: 20px; }
  .why-risk-items { grid-template-columns: 1fr 1fr; }
  .why-risk-items span { white-space: normal; }
}


/* ─── WHO WE SERVE / APPLICATIONS ──────────────────────────────────────── */
#applications.section-navy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(237, 28, 36, 0.14), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(255,255,255,0.055), transparent 28%),
    linear-gradient(135deg, #1f2023 0%, #2b2c30 48%, #202124 100%);
}
#applications.section-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 28%, rgba(0,0,0,0.9), transparent 68%);
  pointer-events: none;
}
#applications .container {
  position: relative;
  z-index: 1;
}
#applications .section-header {
  max-width: 820px;
}
#applications .section-title.light {
  color: #ffffff;
  text-shadow: 0 12px 34px rgba(0,0,0,0.35);
}
#applications .section-subtitle.light {
  color: rgba(255,255,255,0.74);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.app-card {
  position: relative;
  min-height: 124px;
  background: linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 28px 26px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
  transition: min-height 0.36s ease, transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease, background 0.34s ease;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ed1c24 0%, rgba(237,28,36,0.28) 100%);
  opacity: 0.9;
}
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(237,28,36,0.18), transparent 34%);
  opacity: 0;
  transition: opacity 0.34s ease;
  pointer-events: none;
}
.app-card:hover {
  min-height: 196px;
  transform: translateY(-6px);
  border-color: rgba(237,28,36,0.46);
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  box-shadow: 0 26px 70px rgba(0,0,0,0.34), 0 0 0 1px rgba(237,28,36,0.18);
}
.app-card:hover::after { opacity: 1; }
.app-card-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-ui, var(--font-mono));
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}
.app-card-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ed1c24;
  box-shadow: 0 0 0 5px rgba(237,28,36,0.12);
}
.app-card-title {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  transition: margin-bottom 0.32s ease;
}
.app-card:hover .app-card-title { margin-bottom: 12px; }
.app-card-body {
  position: relative;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  font-size: 14px;
  color: rgba(255,255,255,0.74);
  line-height: 1.72;
  transition: max-height 0.38s ease, opacity 0.26s ease, transform 0.32s ease;
}
.app-card:hover .app-card-body {
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
}
.app-card-number {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-ui, var(--font-mono));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.23);
}
@media (max-width: 900px) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app-card {
    min-height: 178px;
  }
  .app-card-body {
    max-height: 160px;
    opacity: 1;
    transform: none;
  }
  .app-card-title { margin-bottom: 12px; }
}
@media (max-width: 620px) {
  .apps-grid { grid-template-columns: 1fr; gap: 14px; }
  .app-card { min-height: unset; padding: 24px 24px 26px; }
}

/* ─── TECHNICAL SUPPORT ─────────────────────────────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.support-left { }
.support-right { }
.support-items { display: flex; flex-direction: column; gap: 0; }
.support-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--light-rule);
}
.support-item:first-child { border-top: 1px solid var(--light-rule); }
.support-check {
  width: 20px; height: 20px;
  background: rgba(200,137,58,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.support-check svg { width: 10px; height: 10px; color: var(--amber); }
.support-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.support-item-body {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.6;
}
.support-visual {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.support-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200,137,58,0.08) 0%, transparent 70%);
}
.support-visual-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}
.support-visual-heading {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.support-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
}
.support-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body { font-size: 13px; color: rgba(207,217,224,0.7); line-height: 1.5; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ─── BRANDS ────────────────────────────────────────────────────────────── */
.brands-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--light-rule);
  border: 1px solid var(--light-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
}
.brand-cell {
  background: var(--white);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.brand-cell:hover { background: var(--off-white); }
.brand-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: center;
  font-weight: 500;
}
@media (max-width: 768px) { .brands-track { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .brands-track { grid-template-columns: repeat(2, 1fr); } }

/* ─── GALLERY / PROOF ───────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--navy-mid);
}
.gallery-card:first-child { grid-row: span 2; }
.gallery-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.gallery-card:first-child .gallery-img-placeholder { height: 100%; min-height: 460px; }
.gallery-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 80px at 50% 50%, rgba(74,106,138,0.4) 0%, transparent 70%),
    radial-gradient(circle 40px at 75% 30%, rgba(200,137,58,0.15) 0%, transparent 50%);
}
.gallery-img-label {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(207,217,224,0.3);
  text-align: center;
  white-space: nowrap;
}
.gallery-caption {
  padding: 18px 20px;
}
.gallery-caption-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.gallery-caption-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(207,217,224,0.35);
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card:first-child { grid-row: span 1; }
  .gallery-card:first-child .gallery-img-placeholder { min-height: 260px; }
}

/* ─── ABOUT / FOUNDERS ────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(46px, 6vw, 86px);
  align-items: center;
}
.about-content {
  max-width: 560px;
}
.about-photo {
  min-height: clamp(440px, 42vw, 600px);
  width: 100%;
  background:
    linear-gradient(160deg, rgba(13,31,53,0.03) 0%, rgba(13,31,53,0.14) 100%),
    url('../images/about-founders-photo.png') center center / cover no-repeat;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(13,31,53,0.16);
}
.about-photo::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(5,9,16,0.62) 0%, rgba(5,9,16,0.10) 42%, transparent 72%),
    radial-gradient(ellipse 70% 50% at 20% 95%, rgba(237,28,36,0.16) 0%, transparent 58%);
  pointer-events: none;
}

.about-photo {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.about-photo-label {
  position: absolute;
  bottom: 28px; left: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  z-index: 1;
}
.about-photo-tag {
  position: absolute;
  bottom: 28px; right: 28px;
  background: rgba(237,28,36,0.16);
  border: 1px solid rgba(237,28,36,0.36);
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  z-index: 1;
}
.about-photo-tag-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}
.about-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-rule);
}
.about-body {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.75;
  margin-bottom: 28px;
}
.about-founder-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 34px;
}
.about-founder-card {
  background: var(--white);
  border: 1px solid var(--light-rule);
  border-left: 3px solid #ed1c24;
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(13,31,53,0.06);
}

.about-founder-card {
  transition:
    transform 0.32s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.32s cubic-bezier(0.4,0,0.2,1),
    border-color 0.32s cubic-bezier(0.4,0,0.2,1),
    background 0.32s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.about-founder-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(13,31,53,0.14);
  border-color: rgba(237,28,36,0.22);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.about-founder-card strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 5px;
}
.about-founder-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid-gray);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 42px; }
  .about-content { max-width: 100%; }
  .about-photo { min-height: 420px; }
}
@media (max-width: 560px) {
  .about-photo { min-height: 320px; }
  .about-founder-note { grid-template-columns: 1fr; }
}

/* ─── CTA SECTION ───────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,137,58,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 50%, rgba(74,106,138,0.2) 0%, transparent 60%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-body {
  font-size: 16px;
  color: rgba(207,217,224,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.cta-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cta-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
}
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(207,217,224,0.55);
}
.cta-contact-item a { color: rgba(207,217,224,0.8); transition: color var(--transition); }
.cta-contact-item a:hover { color: var(--white); }

/* ─── QUOTE FORM CARD ───────────────────────────────────────────────────── */
.estimate-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 44px);
  max-width: 720px;
  margin: 0 auto 28px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.22);
}
.estimate-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.estimate-form-full { margin-bottom: 14px; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(207,217,224,0.45);
}
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 5px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(207,217,224,0.25); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(237,28,36,0.55);
  background: rgba(255,255,255,0.075);
  box-shadow: 0 0 0 3px rgba(237,28,36,0.10);
}
.form-select { appearance: none; }
.form-select option { color: #202124; background: #ffffff; }
.form-textarea { height: 88px; resize: vertical; }
@media (max-width: 600px) { .estimate-form-grid { grid-template-columns: 1fr; } }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(207,217,224,0.3);
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 13px;
  color: rgba(207,217,224,0.45);
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(207,217,224,0.5);
  margin-bottom: 8px;
}
.footer-contact-line a { color: rgba(207,217,224,0.7); transition: color var(--transition); }
.footer-contact-line a:hover { color: var(--white); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(207,217,224,0.35);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(207,217,224,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(207,217,224,0.25);
  font-family: var(--font-mono);
}
.footer-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(207,217,224,0.2);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ─── FADE-IN ANIMATION ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.18s; }
.fade-up-d3 { transition-delay: 0.26s; }
.fade-up-d4 { transition-delay: 0.34s; }


/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Real photo background ── */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  animation: bgReveal 1.8s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes bgReveal {
  from { transform: scale(1.05); opacity: 0.5; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Gradient overlay — dark left third for copy, 
      let the building breathe on the right ── */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(5,9,16,0.94)  0%,
      rgba(5,9,16,0.90)  30%,
      rgba(5,9,16,0.80)  52%,
      rgba(5,9,16,0.64)  72%,
      rgba(5,9,16,0.52)  100%
    ),
    linear-gradient(to top,
      rgba(5,9,16,0.78)  0%,
      rgba(5,9,16,0.24)  34%,
      transparent        62%
    );
}

/* ── Structural accent lines ── */
.hero-lines {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
}
.h-line, .v-line {
  position: absolute;
  background: rgba(255,255,255,0.05);
  will-change: transform, opacity;
}
.h-line {
  height: 1px; left: 0; right: 0;
  transform: scaleX(0); transform-origin: 0% 50%;
  animation: drawX 1.2s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.h-line:nth-child(1) { top: 33%;  animation-delay: 500ms; }
.h-line:nth-child(2) { top: 62%;  animation-delay: 700ms; }
.h-line:nth-child(3) { top: 88%;  animation-delay: 880ms; }
.v-line {
  width: 1px; top: 0; bottom: 0;
  transform: scaleY(0); transform-origin: 50% 0%;
  animation: drawY 1.2s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.v-line:nth-child(4) { left: 52%; animation-delay: 450ms; }
.v-line:nth-child(5) { left: 76%; animation-delay: 640ms; }

@keyframes drawX {
  0%   { transform: scaleX(0); opacity: 0; }
  40%  { opacity: 0.7; }
  100% { transform: scaleX(1); opacity: 0.5; }
}
@keyframes drawY {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 0.4; }
}

/* ── Copy block — left-aligned ── */
.hero-body-wrap {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 148px 0 64px;
  justify-content: center;
}

.hero-inner { max-width: 580px; margin-left: auto; margin-right: auto; }

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--amber); opacity: 0.55; flex-shrink: 0;
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #edf1f7;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.8s 0.48s cubic-bezier(0.4,0,0.2,1) forwards;
}
.hero-headline em {
  font-style: italic;
  color: rgba(207,217,224,0.58);
}

/* Amber rule divider */
.hero-rule {
  width: 48px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  margin: 26px 0;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Body copy */
.hero-copy {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(207,217,224,0.65);
  max-width: 460px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.75s 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* CTAs */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s 0.82s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Category pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  opacity: 0;
  animation: fadeUp 0.7s 0.96s cubic-bezier(0.4,0,0.2,1) forwards;
}
.hero-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(207,217,224,0.4);
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 2px;
  transition: border-color var(--transition), color var(--transition);
  cursor: default;
}
.hero-pill:hover {
  border-color: rgba(200,137,58,0.45);
  color: rgba(200,137,58,0.85);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Trust band ── */
.hero-trust-band {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,0.065);
  padding: 22px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.7s 1.1s cubic-bezier(0.4,0,0.2,1) forwards;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.065);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(207,217,224,0.36);
}
.hero-trust-item:first-child { padding-left: 0; }
.hero-trust-item:last-child  { border-right: none; }
.trust-dot {
  width: 4px; height: 4px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0.65;
  flex-shrink: 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero-bg { background-position: 70% 55%; }
  .hero-overlay {
    background:
      rgba(5,9,16,0.82),
      linear-gradient(to top, rgba(5,9,16,0.85) 0%, transparent 50%);
  }
  .hero-body-wrap { padding: 116px 0 48px; }
  .hero-inner { max-width: 100%; }
  .hero-headline { font-size: 34px; }
  .hero-copy { font-size: 15px; max-width: 100%; }
  .hero-trust-band { padding: 18px 24px; gap: 10px; }
  .hero-trust-item { padding: 4px 14px; border-right: none; font-size: 9px; }
  .v-line { display: none; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 29px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}

/* --- Integrated About / Team section --- */
.about-team-section {
  background: linear-gradient(180deg, var(--white) 0%, #fbfcfd 100%);
  padding-top: 120px;
  padding-bottom: 120px;
}
.about-team-section .about-team-wrap {
  max-width: 1040px;
  margin: 0 auto;
}
.about-team-section h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #273142;
  margin-bottom: 10px;
  text-align: center;
}
.about-team-section .subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 56px;
  text-align: center;
}
.about-team-section .showcase {display:flex;align-items:flex-start;gap:56px;max-width:920px;margin:0 auto;user-select:none}
.about-team-section .grid{display:flex;gap:10px;flex-shrink:0}
.about-team-section .col{display:flex;flex-direction:column;gap:10px}
.about-team-section .col-2{margin-top:68px}
.about-team-section .col-3{margin-top:32px}
.about-team-section .photo{overflow:hidden;border-radius:14px;cursor:pointer;flex-shrink:0;transition:opacity .35s ease, transform .35s ease;box-shadow:0 12px 28px rgba(13,31,53,0.1)}
.about-team-section .photo img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:filter .45s ease, transform .45s ease;filter:grayscale(1) brightness(.82);display:block}
.about-team-section .photo.active img{filter:grayscale(0) brightness(1);transform:scale(1.02)}
.about-team-section .photo.dimmed{opacity:.52}
.about-team-section .col-1 .photo{width:155px;height:165px}
.about-team-section .col-2 .photo{width:172px;height:182px}
.about-team-section .col-3 .photo{width:162px;height:172px}
.about-team-section .list{display:flex;flex-direction:column;gap:20px;flex:1;padding-top:4px}
.about-team-section .member{cursor:pointer;transition:opacity .28s ease}
.about-team-section .member.dimmed{opacity:.45}
.about-team-section .name-row{display:flex;align-items:center;gap:10px}
.about-team-section .pip{width:16px;height:12px;border-radius:5px;background:#1a1a1a;flex-shrink:0;transition:all .3s;opacity:.16}
.about-team-section .member.active .pip{width:20px;opacity:1;background:var(--amber)}
.about-team-section .mname{font-size:17px;font-weight:500;line-height:1;letter-spacing:-.02em;color:#6a7687;transition:color .3s}
.about-team-section .member.active .mname{color:#13263f}
.about-team-section .role{margin-top:5px;padding-left:27px;font-family:var(--font-mono);font-size:10px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:#9ca8b5}
@media(max-width:860px){
  .about-team-section .showcase{flex-direction:column;gap:36px;align-items:center}
  .about-team-section .list{width:100%;max-width:420px}
}
@media(max-width:700px){
  .about-team-section{padding-top:92px;padding-bottom:92px}
  .about-team-section .col-1 .photo{width:110px;height:120px}
  .about-team-section .col-2 .photo{width:122px;height:132px}
  .about-team-section .col-3 .photo{width:115px;height:125px}
  .about-team-section .col-2{margin-top:48px}
  .about-team-section .col-3{margin-top:22px}
}


/* --- Integrated Testimonial / Trust section --- */
.case-studies-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(237, 28, 36, 0.13), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(255,255,255,0.055), transparent 28%),
    linear-gradient(135deg, #1f2023 0%, #2b2c30 48%, #202124 100%);
  color: #ffffff;
  padding-top: 104px;
  padding-bottom: 104px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.case-studies-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 28%, rgba(0,0,0,0.9), transparent 68%);
  pointer-events: none;
}
.case-studies-section .container {max-width: 1200px; position: relative; z-index: 1;}
.case-studies-section .header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.case-studies-section .header-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 12px 34px rgba(0,0,0,0.35);
}
.case-studies-section .header-left p {
  max-width: 620px;
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}
.case-studies-section .section-label {color:#ff2a32;}
.case-studies-section .nav-buttons {display:flex;gap:10px;flex-shrink:0}
.case-studies-section .nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: #ffffff;
  cursor: pointer;
  display:flex;align-items:center;justify-content:center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
  box-shadow: 0 16px 34px rgba(0,0,0,0.16);
}
.case-studies-section .nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(237,28,36,0.46);
  background: rgba(255,255,255,0.11);
  box-shadow: 0 22px 48px rgba(0,0,0,0.28), 0 0 0 1px rgba(237,28,36,0.14);
}
.case-studies-section .nav-btn:disabled {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.case-studies-section .carousel-wrapper {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  position: relative;
  z-index: 1;
}
.case-studies-section .carousel-wrapper.dragging {cursor:grabbing}
.case-studies-section .carousel-track {
  display:flex;
  gap:24px;
  will-change: transform;
  transition: transform .45s cubic-bezier(.25,.1,.25,1);
}
.case-studies-section .carousel-item {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
}
.case-studies-section .card-link {display:block;text-decoration:none;border-radius:18px;height:100%}
.case-studies-section .card-inner {
  position:relative;
  min-height: 360px;
  height: 100%;
  border-radius:18px;
  overflow:hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.038));
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  padding: 30px 30px 28px;
  display:flex;
  flex-direction:column;
  transition: transform .34s ease, border-color .34s ease, box-shadow .34s ease, background .34s ease;
}
.case-studies-section .card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ed1c24 0%, rgba(237,28,36,0.28) 100%);
  opacity: .9;
}
.case-studies-section .card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(237,28,36,0.17), transparent 34%);
  opacity: 0;
  transition: opacity .34s ease;
  pointer-events:none;
}
.case-studies-section .card-link:hover .card-inner {
  transform: translateY(-6px);
  border-color: rgba(237,28,36,0.46);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.048));
  box-shadow: 0 26px 70px rgba(0,0,0,0.34), 0 0 0 1px rgba(237,28,36,0.18);
}
.case-studies-section .card-link:hover .card-inner::after {opacity:1}
.case-studies-section .card-kicker {
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:22px;
  font-family:var(--font-mono);
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.58);
}
.case-studies-section .card-kicker::before {
  content:'';
  width:7px;
  height:7px;
  border-radius:999px;
  background:#ed1c24;
  box-shadow:0 0 0 5px rgba(237,28,36,.12);
}
.case-studies-section .quote-mark {
  position:relative;
  z-index:1;
  font-family:var(--font-display);
  font-size:64px;
  line-height:.6;
  color:rgba(255,255,255,.18);
  margin:6px 0 10px;
}
.case-studies-section .card-title {
  position:relative;
  z-index:1;
  font-size:1.16rem;
  font-weight:700;
  line-height:1.28;
  color:#fff;
  margin-bottom:14px;
  letter-spacing:-.02em;
}
.case-studies-section .card-desc {
  position:relative;
  z-index:1;
  font-size:.95rem;
  line-height:1.68;
  color:rgba(255,255,255,.77);
  margin-bottom:28px;
}
.case-studies-section .card-meta {
  position:relative;
  z-index:1;
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.10);
}
.case-studies-section .card-client {
  font-size:.88rem;
  font-weight:700;
  color:#fff;
  margin-bottom:5px;
}
.case-studies-section .card-context {
  font-family:var(--font-mono);
  font-size:.66rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.48);
}
.case-studies-section .card-stars {
  margin-top:14px;
  color:#fff;
  letter-spacing:.12em;
  font-size:.78rem;
  opacity:.82;
}
.case-studies-section .dots{display:flex;justify-content:center;gap:8px;margin-top:28px;position:relative;z-index:1}
.case-studies-section .dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.24);border:none;cursor:pointer;transition:background .2s, transform .2s;padding:0}
.case-studies-section .dot.active{background:#ed1c24;transform:scale(1.25)}
@media (max-width:1023px){
  .case-studies-section .carousel-wrapper{width:min(1200px, calc(100% - 48px))}
  .case-studies-section .carousel-item{flex:0 0 calc((100% - 24px) / 2);max-width:calc((100% - 24px) / 2)}
}
@media (max-width:768px){
  .case-studies-section{padding-top:84px;padding-bottom:84px}
  .case-studies-section .header-row{flex-direction:column;align-items:flex-start}
  .case-studies-section .carousel-wrapper{width:calc(100% - 40px)}
  .case-studies-section .carousel-track{gap:18px}
  .case-studies-section .carousel-item{flex:0 0 100%;max-width:100%}
  .case-studies-section .card-inner{min-height:330px;padding:26px 24px 26px}
}


/* --- Final polish updates: nav logo spacing, hero pill line, case-study typography --- */
.nav-logo {
  gap: 6px;
  line-height: 1.02;
}
.nav-logo-sub {
  color: rgba(207,217,224,0.68);
  opacity: 1;
  font-size: 8.5px;
  letter-spacing: 0.19em;
  margin-top: 1px;
}
.hero-pills {
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  max-width: none;
}
.hero-pill {
  font-size: 8.5px;
  padding: 5px 10px;
  white-space: nowrap;
}
.case-studies-section .header-left h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}
.case-studies-section .header-left p {
  max-width: 520px;
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.7;
}
.case-studies-section .header-left strong {
  color: var(--navy);
  font-weight: 500;
}
@media (max-width: 768px) {
  .hero-pills {
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
  }
}


.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ─── PACIFIC DETECTION BRAND OVERRIDES ─────────────────────────────── */
:root {
  --navy: #2f3033;
  --navy-mid: #3b3c40;
  --navy-light: #5a5b60;
  --steel: #5f6064;
  --mist: #eef0f2;
  --off-white: #f7f7f8;
  --white: #ffffff;
  --charcoal: #2f3033;
  --mid-gray: #6d6e72;
  --light-rule: #e3e4e6;
  --amber: #e21b2d;
  --amber-dark: #b91422;
}
body { background: #fff; color: var(--charcoal); }
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 8px 20px rgba(226,27,45,0.16); }
.btn-primary:hover { background: var(--amber-dark); box-shadow: 0 10px 26px rgba(226,27,45,0.24); }
.btn-outline-white { color: var(--charcoal); background: rgba(255,255,255,0.70); box-shadow: inset 0 0 0 1px rgba(47,48,51,0.22); }
.btn-outline-white:hover { color: var(--amber); background: #fff; box-shadow: inset 0 0 0 1px rgba(226,27,45,0.45); }
.btn-outline-navy:hover { background: var(--amber); color: #fff; box-shadow: inset 0 0 0 1px var(--amber); }
.hero { background: #fff; color: var(--charcoal); min-height: 92vh; }
.hero-bg { background: linear-gradient(120deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 42%, rgba(244,245,247,0.82) 100%) !important; }
.hero-overlay { background: radial-gradient(circle at 70% 25%, rgba(226,27,45,0.08), transparent 34%), linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 58%, rgba(247,247,248,0.78) 100%) !important; }
.hero::before { background: radial-gradient(ellipse 70% 60% at 75% 18%, rgba(226,27,45,0.08) 0%, transparent 60%), radial-gradient(ellipse 55% 55% at 12% 80%, rgba(47,48,51,0.05) 0%, transparent 65%); }
.h-line, .v-line { background: rgba(47,48,51,0.08); }
.h-line::after, .v-line::after { background: linear-gradient(90deg, transparent, rgba(226,27,45,0.22), transparent); }
.hero-eyebrow { color: var(--amber); }
.hero-eyebrow::before, .hero-eyebrow::after { background: rgba(226,27,45,0.45); }
.hero-headline, .hero h1 { color: rgba(255,255,255,0.96) !important; text-shadow: 0 2px 18px rgba(0,0,0,0.28); }
.hero h1 em { color: rgba(226,27,45,0.98) !important; text-shadow: 0 2px 18px rgba(0,0,0,0.22); }
.hero-copy, .hero-body { color: rgba(47,48,51,0.70) !important; }
.hero-rule { background: rgba(226,27,45,0.55) !important; }
.hero-pill { background: #fff; color: rgba(47,48,51,0.72); border: 1px solid rgba(47,48,51,0.12); }
.hero-trust-band { border-top: 1px solid rgba(47,48,51,0.10); background: rgba(255,255,255,0.78); }
.hero-trust-item { color: rgba(47,48,51,0.62); border-right: 1px solid rgba(47,48,51,0.10); }
.trust-dot { background: var(--amber); }
.cred-strip { background: var(--charcoal); }
.section-navy { background: var(--charcoal); }
#applications { background-image: linear-gradient(120deg, rgba(47,48,51,0.96), rgba(47,48,51,0.88)), radial-gradient(circle at 80% 20%, rgba(226,27,45,0.18), transparent 35%) !important; }
.section-label, .why-num, .support-visual-label, .step-num, .ec-cta { color: var(--amber); }
.section-label.light { color: rgba(255,255,255,0.72); }
.ec-card:focus-visible { box-shadow: 0 0 0 2px var(--amber), 0 0 0 4px rgba(226,27,45,0.18); }
.ec-img { filter: grayscale(1) brightness(0.82); }
.ec-card[data-active="true"] .ec-img { filter: grayscale(0.35) brightness(0.50); }
.ec-icon { color: var(--amber); }
.app-card:hover { border-color: rgba(226,27,45,0.45); }
.support-check { background: rgba(226,27,45,0.09); }
.support-check svg { color: var(--amber); }
.support-visual { background: var(--charcoal); }
.support-visual::before { background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(226,27,45,0.12) 0%, transparent 70%); }
.brand-cell:hover { background: #fff5f6; }
.brand-name { color: var(--charcoal); }
/* Preserve embedded About photo; do not override with placeholder gradient. */
.about-photo {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.about-photo::before { display:none !important; }
.about-photo-label, .about-photo-tag-text { color: #fff; }
.cta-section { background: linear-gradient(135deg, #2f3033 0%, #1f2023 100%) !important; }
.cta-inner::before { background: radial-gradient(circle at 80% 10%, rgba(226,27,45,0.24), transparent 35%) !important; }
.footer-logo-img { width: clamp(200px, 26vw, 340px); max-height: 54px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
footer { background: #242528 !important; }


/* ─── PDI VIDEO HERO + WHITE FOOTER REFINEMENT ─────────────────────────── */
:root {
  --pdi-red: #d71920;
  --pdi-charcoal: #363636;
  --pdi-charcoal-deep: #171717;
  --pdi-soft-gray: #f6f6f4;
}

.hero {
  background: var(--pdi-charcoal-deep) !important;
  min-height: 100vh;
  align-items: stretch;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.95) contrast(1.05) brightness(0.76);
  transform: scale(1.01);
}

.hero-bg { display: none !important; }

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(16,16,16,0.94) 0%,
      rgba(24,24,24,0.88) 31%,
      rgba(24,24,24,0.66) 56%,
      rgba(24,24,24,0.38) 78%,
      rgba(24,24,24,0.62) 100%
    ),
    radial-gradient(circle at 22% 52%, rgba(215,25,32,0.18) 0%, transparent 38%),
    linear-gradient(to top, rgba(0,0,0,0.82), transparent 42%) !important;
}

.hero-lines { opacity: 0.36; }
.hero-body-wrap { z-index: 3; padding: 142px 0 70px; }
.hero-inner {
  max-width: 660px !important;
  padding: 38px 40px 40px;
  border-left: 4px solid var(--pdi-red);
  background: linear-gradient(135deg, rgba(20,20,20,0.84), rgba(38,38,38,0.58));
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  backdrop-filter: blur(8px);
}

.hero-eyebrow { color: rgba(255,255,255,0.82) !important; margin-bottom: 20px; }
.hero-eyebrow::before { background: var(--pdi-red) !important; opacity: 1; }
.hero-headline {
  color: #ffffff !important;
  text-shadow: 0 2px 22px rgba(0,0,0,0.4);
}
.hero-headline em { color: rgba(255,255,255,0.72) !important; }
.hero-rule { background: var(--pdi-red) !important; opacity: 1; }
.hero-copy {
  color: rgba(255,255,255,0.84) !important;
  max-width: 560px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.42);
}
.hero-pill {
  background: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.78) !important;
  border-color: rgba(255,255,255,0.18) !important;
}
.btn-primary {
  background: var(--pdi-red) !important;
  color: #fff !important;
}
.btn-primary:hover { background: #b9151b !important; box-shadow: 0 8px 20px rgba(215,25,32,0.28) !important; }
.btn-outline-white:hover { background: rgba(255,255,255,0.14) !important; }
.hero-trust-band {
  z-index: 3;
  background: rgba(18,18,18,0.72);
  backdrop-filter: blur(8px);
}
.trust-dot { background: var(--pdi-red) !important; }

footer {
  background: #ffffff !important;
  color: var(--pdi-charcoal) !important;
  border-top: 1px solid rgba(54,54,54,0.12);
}
.footer-grid { border-bottom-color: rgba(54,54,54,0.12) !important; }
.footer-logo-img {
  filter: none !important;
  opacity: 1 !important;
  width: clamp(220px, 28vw, 380px) !important;
  max-height: 72px !important;
  object-fit: contain;
  object-position: left center;
}
.footer-brand-name,
.footer-col-title { color: var(--pdi-charcoal) !important; }
.footer-brand-sub { color: rgba(54,54,54,0.54) !important; }
.footer-brand-desc,
.footer-contact-line,
.footer-links a,
.footer-bottom,
.footer-bottom-links a { color: rgba(54,54,54,0.66) !important; }
.footer-contact-line a { color: var(--pdi-charcoal) !important; }
.footer-links a:hover,
.footer-bottom-links a:hover,
.footer-contact-line a:hover { color: var(--pdi-red) !important; }
.footer-contact-line svg { color: var(--pdi-red) !important; }

@media (max-width: 768px) {
  .hero-body-wrap { padding: 118px 0 42px; }
  .hero-inner {
    padding: 28px 24px 30px;
    border-left-width: 3px;
    border-radius: 12px;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(13,13,13,0.90) 0%, rgba(20,20,20,0.82) 45%, rgba(15,15,15,0.92) 100%),
      radial-gradient(circle at 30% 35%, rgba(215,25,32,0.16) 0%, transparent 45%) !important;
  }
  .hero-video-bg { filter: saturate(0.9) contrast(1.05) brightness(0.58); }
  .footer-logo-img { width: 240px !important; max-height: 58px !important; }
}

/* ─── HERO VIDEO VISIBILITY REFINEMENT — 85% BACKGROUND VISIBLE ───────── */
.hero-video-bg {
  filter: saturate(1.06) contrast(1.02) brightness(1.08) !important;
  opacity: 1 !important;
}

.hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.16) 0%,
      rgba(0,0,0,0.12) 34%,
      rgba(0,0,0,0.06) 58%,
      rgba(0,0,0,0.04) 78%,
      rgba(0,0,0,0.10) 100%
    ),
    linear-gradient(to top, rgba(0,0,0,0.18), rgba(0,0,0,0.02) 42%) !important;
}

.hero-lines { opacity: 0.16 !important; }

.hero-body-wrap {
  padding: 132px 0 64px !important;
}

.hero-inner {
  max-width: 610px !important;
  padding: 34px 38px 36px !important;
  background: linear-gradient(135deg, rgba(16,16,16,0.84), rgba(28,28,28,0.68)) !important;
  box-shadow: 0 22px 58px rgba(0,0,0,0.28) !important;
  backdrop-filter: blur(5px) !important;
}

.hero-headline {
  font-size: clamp(38px, 4.9vw, 64px) !important;
  line-height: 1.06 !important;
}

.hero-copy {
  color: rgba(255,255,255,0.90) !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
}

.hero-trust-band {
  background: rgba(18,18,18,0.42) !important;
  backdrop-filter: blur(4px) !important;
}

@media (max-width: 768px) {
  .hero-video-bg { filter: saturate(1.02) contrast(1.02) brightness(0.96) !important; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.24) 100%) !important;
  }
  .hero-inner {
    background: linear-gradient(135deg, rgba(16,16,16,0.88), rgba(28,28,28,0.72)) !important;
  }
}


/* Readability tuning: keep video visible while making headline readable */
.hero-inner { background: rgba(16,17,19,0.64) !important; border-left-color: var(--amber) !important; }
.hero-headline, .hero h1 { color: rgba(255,255,255,0.96) !important; text-shadow: 0 2px 18px rgba(0,0,0,0.28); }
.hero h1 em { color: rgba(226,27,45,0.98) !important; }
.hero-copy, .hero-body { color: rgba(255,255,255,0.86) !important; }
.hero-pill { background: rgba(255,255,255,0.08) !important; color: rgba(255,255,255,0.88) !important; border-color: rgba(255,255,255,0.22) !important; }



.hero-trust-band {
  background: rgba(255,255,255,0.88) !important;
  border-top: 1px solid rgba(54,54,54,0.12) !important;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.hero-trust-item {
  color: rgba(47,48,51,0.84) !important;
  border-right: 1px solid rgba(47,48,51,0.16) !important;
  font-weight: 700 !important;
  letter-spacing: 0.13em !important;
  text-shadow: none !important;
}
.hero-trust-item:last-child { border-right: none !important; }
.trust-dot {
  background: var(--pdi-red) !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 4px rgba(215,25,32,0.10);
}

@media (max-width: 900px) {
  .nav-links { gap: 0 !important; }
}
@media (max-width: 768px) {
  .hero-body-wrap .container { justify-content: center !important; }
  .hero-trust-band { background: rgba(255,255,255,0.92) !important; }
  .hero-trust-item { color: rgba(47,48,51,0.86) !important; }
}

/* Hero trust band readability */
.hero-trust-band {
  background: rgba(12, 12, 14, 0.34) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-top: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow: 0 -12px 38px rgba(0,0,0,0.18) !important;
}
.hero-trust-item {
  color: rgba(255,255,255,0.92) !important;
  border-right: 1px solid rgba(255,255,255,0.22) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45) !important;
}
.hero-trust-item:last-child { border-right: none !important; }
.hero-trust-item .trust-dot, .trust-dot {
  background: var(--brand-red, #e31b23) !important;
  box-shadow: 0 0 0 4px rgba(227,27,35,0.18), 0 0 12px rgba(227,27,35,0.45) !important;
  opacity: 1 !important;
}
@media (max-width: 768px) {
  .hero-trust-band { background: rgba(12,12,14,0.42) !important; }
  .hero-trust-item { font-size: 10px !important; letter-spacing: 0.11em !important; }
}

/* ─── FINAL TYPOGRAPHY + RED/CHARCOAL SYSTEM UPGRADE ─────────────────────
   Applies Space Grotesk to UI/navigation/labels, tightens rhythm, and
   aligns accent behavior to Pacific Detection's red + charcoal identity.
*/
:root {
  --pdi-red: #e31b23;
  --pdi-red-dark: #bd1219;
  --pdi-charcoal: #343436;
  --pdi-charcoal-dark: #171719;
  --pdi-charcoal-soft: #4b4c50;
  --pdi-line: rgba(52,52,54,0.14);
  --brand-red: var(--pdi-red);
  --navy: var(--pdi-charcoal);
  --navy-mid: #2b2c2f;
  --navy-light: #55575c;
  --steel: #5a5d62;
  --amber: var(--pdi-red);
  --amber-dark: var(--pdi-red-dark);
  --font-ui: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
}

body { color: var(--pdi-charcoal); }
button, input, textarea, select { font-family: var(--font-ui) !important; }

/* UI font pass */
nav,
.nav-links a,
.btn,
.section-label,
.hero-eyebrow,
.hero-pill,
.hero-trust-item,
.cred-label,
.ec-collapsed-label span,
.ec-cta,
.why-num,
.support-visual-label,
.step-num,
.brand-name,
.gallery-caption-sub,
.footer-col-title,
.footer-links a,
.footer-contact-line,
.footer-bottom,
.form-label,
.estimate-card input,
.estimate-card textarea,
.estimate-card select,
.estimate-card button {
  font-family: var(--font-ui) !important;
}

/* Keep the hero editorial, but make UI around it more engineered */
.hero-headline,
.hero h1,
.section-title,
.cred-num,
.why-stat-number {
  letter-spacing: -0.035em;
}

.hero-body-wrap .container {
  justify-content: center !important;
}

.hero-inner {
  max-width: 625px !important;
  padding: 38px 42px 38px !important;
  border-left: 4px solid var(--pdi-red) !important;
  background: linear-gradient(135deg, rgba(16,17,19,0.70), rgba(30,31,34,0.54)) !important;
  box-shadow: 0 26px 70px rgba(0,0,0,0.30) !important;
}
.hero-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.88) !important;
  margin-bottom: 22px !important;
}
.hero-headline,
.hero h1 {
  color: #fff !important;
  text-shadow: 0 3px 24px rgba(0,0,0,0.42) !important;
}
.hero-headline em,
.hero h1 em {
  color: var(--pdi-red) !important;
}
.hero-rule { background: var(--pdi-red) !important; width: 50px !important; height: 2px !important; }
.hero-copy,
.hero-body {
  color: rgba(255,255,255,0.90) !important;
  font-size: 16.5px !important;
  line-height: 1.78 !important;
}
.hero-actions { gap: 14px !important; }
.hero-actions .btn {
  min-height: 50px !important;
  padding: 0 26px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}
.hero-actions .btn-outline-white {
  background: rgba(255,255,255,0.78) !important;
  color: var(--pdi-charcoal) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35) !important;
}
.hero-actions .btn-outline-white:hover {
  background: #fff !important;
  color: var(--pdi-red) !important;
}
.hero-pill {
  font-size: 10.5px !important;
  letter-spacing: 0.10em !important;
  font-weight: 700 !important;
  border-color: rgba(255,255,255,0.24) !important;
}

/* Transparent lower band restored, but more readable and less generic */
.hero-trust-band {
  background: rgba(12,12,14,0.32) !important;
  backdrop-filter: blur(9px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.08) !important;
  border-top: 1px solid rgba(255,255,255,0.20) !important;
  box-shadow: 0 -14px 40px rgba(0,0,0,0.18) !important;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}
.hero-trust-item {
  color: rgba(255,255,255,0.95) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.135em !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.62) !important;
}
.trust-dot {
  width: 6px !important;
  height: 6px !important;
  background: var(--pdi-red) !important;
  box-shadow: 0 0 0 4px rgba(227,27,35,0.18), 0 0 16px rgba(227,27,35,0.55) !important;
}

/* Site-wide red/charcoal polish */
.section-label,
.ec-icon,
.ec-cta,
.why-num,
.support-check svg,
.support-visual-label,
.step-num,
.app-card-icon,
.footer-contact-line svg {
  color: var(--pdi-red) !important;
}
.btn-primary {
  background: var(--pdi-red) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--pdi-red-dark) !important;
  box-shadow: 0 8px 22px rgba(227,27,35,0.26) !important;
}
.btn-outline-navy {
  color: var(--pdi-charcoal) !important;
  box-shadow: inset 0 0 0 1px rgba(52,52,54,0.34) !important;
}
.btn-outline-navy:hover {
  background: var(--pdi-charcoal) !important;
  color: #fff !important;
}
.section-title,
.why-point-title,
.support-item-title { color: var(--pdi-charcoal) !important; }
.cred-strip,
.section-navy,
.support-visual,
.why-stat-block { background: var(--pdi-charcoal-dark) !important; }

/* Footer white + logo remains clean */
footer {
  background: #fff !important;
  color: var(--pdi-charcoal) !important;
}
.footer-logo-img,
.footer-brand-head .pdi-nav-logo img,
.footer-brand-head img {
  filter: none !important;
  opacity: 1 !important;
}
.footer-col-title {
  color: var(--pdi-charcoal) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
.footer-links a,
.footer-contact-line,
.footer-bottom,
.footer-bottom-links a {
  color: rgba(52,52,54,0.68) !important;
  font-size: 13px !important;
}
.footer-links a:hover,
.footer-bottom-links a:hover,
.footer-contact-line a:hover {
  color: var(--pdi-red) !important;
}

@media (max-width: 900px) {
  .nav-inner { height: 68px !important; }
  .nav-links { background: transparent !important; box-shadow: none !important; }
}
@media (max-width: 768px) {
  .hero-inner {
    max-width: 100% !important;
    padding: 30px 24px 32px !important;
  }
  .hero-copy, .hero-body { font-size: 15.5px !important; }
  .hero-trust-band { padding: 18px 22px !important; }
  .hero-trust-item { font-size: 10.5px !important; letter-spacing: 0.105em !important; }
}

/* Final fix: keep Who We Serve headline readable on dark background */
#applications .section-header .section-title.light,
#applications h2.section-title.light {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 12px 34px rgba(0,0,0,0.45) !important;
}
#applications .section-header .section-subtitle.light {
  color: rgba(255,255,255,0.78) !important;
}


/* Final adjustment: remove CCTV pill spacing issue and center hero service pills */
.hero-pills {
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}



/* Testimonial section: fixed cards, readable hover behavior */
.case-studies-section {
  overflow: visible !important;
}
.case-studies-section::before {
  overflow: hidden !important;
}
.case-studies-section .header-left h2 {
  color: #ffffff !important;
  text-shadow: 0 12px 34px rgba(0,0,0,0.35) !important;
}
.case-studies-section .header-left p {
  color: rgba(255,255,255,0.76) !important;
}
.case-studies-section .nav-buttons,
.case-studies-section .dots {
  display: none !important;
}
.case-studies-section .carousel-wrapper {
  overflow: visible !important;
  cursor: default !important;
  width: min(1200px, calc(100% - 80px)) !important;
  padding-top: 8px !important;
}
.case-studies-section .carousel-track {
  transform: none !important;
}
.case-studies-section .card-link {
  cursor: pointer;
}
.case-studies-section .card-link:hover .card-inner {
  transform: translateY(-4px) !important;
}
@media (max-width: 1023px) {
  .case-studies-section .carousel-wrapper {
    width: min(1200px, calc(100% - 48px)) !important;
  }
}
@media (max-width: 768px) {
  .case-studies-section .carousel-wrapper {
    width: calc(100% - 40px) !important;
  }
}


/* ─── CAPABILITY PROOF / TRUST SECTION ─────────────────────────────────── */
.capability-proof-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(237,28,36,0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,0.07), transparent 30%),
    linear-gradient(135deg, #18191c 0%, #26282c 52%, #1b1c20 100%);
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.35);
}
.capability-proof-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 34%, rgba(0,0,0,0.95), transparent 74%);
  pointer-events: none;
}
.capability-proof-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #ed1c24 0%, rgba(237,28,36,0.2) 70%, transparent 100%);
  opacity: 0.85;
}
.capability-proof-section .container { position: relative; z-index: 1; }
.capability-proof-section .section-label { color: #ed1c24; }
.capability-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 56px;
  align-items: stretch;
  margin-bottom: 34px;
}
.capability-proof-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: #ffffff;
  max-width: 760px;
  margin-bottom: 22px;
}
.capability-proof-copy p {
  max-width: 680px;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.8;
}
.capability-proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 660px;
  margin-top: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.capability-proof-stats div {
  padding: 22px 20px;
  background: rgba(255,255,255,0.045);
}
.capability-proof-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}
.capability-proof-stats span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.54);
}
.license-panel {
  position: relative;
  min-height: 100%;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 70px rgba(0,0,0,0.26);
  overflow: hidden;
}
.license-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: #ed1c24;
}
.license-panel::after {
  content: '';
  position: absolute;
  right: -70px; bottom: -70px;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(237,28,36,0.28);
  box-shadow: 0 0 0 34px rgba(237,28,36,0.055);
}
.license-panel-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.license-panel-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.license-panel p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 28px;
}
.license-panel-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.license-panel-meta span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}
.capability-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.capability-group {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform 0.32s ease, background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.capability-group:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(237,28,36,0.38);
  box-shadow: 0 18px 48px rgba(0,0,0,0.25);
}
.capability-group-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  margin-bottom: 18px;
}
.capability-group-label::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ed1c24;
  box-shadow: 0 0 0 5px rgba(237,28,36,0.12);
}
.capability-group ul { display: grid; gap: 12px; }
.capability-group li {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.capability-group li:last-child { border-bottom: none; padding-bottom: 0; }
@media (max-width: 900px) {
  .capability-proof-grid { grid-template-columns: 1fr; gap: 28px; }
  .capability-groups { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .capability-proof-stats { grid-template-columns: 1fr; }
  .license-panel { padding: 28px 24px; }
}


/* ─── FOOTER FINAL ALIGNMENT + DESIGN CREDIT ───────────────────────────── */
footer .footer-brand-head {
  justify-content: flex-start;
  margin-left: 0;
  padding-left: 0;
}
footer .footer-logo-img {
  display: block;
  /* Align the visible logo mark with the footer description text below. */
  margin-left: -20px !important;
  transform: none !important;
  object-position: left center;
}
footer .footer-brand-desc {
  max-width: 330px;
}
.footer-bottom {
  position: relative;
  justify-content: space-between;
}
.footer-designed-by {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(47,48,51,0.48);
  white-space: nowrap;
}
.footer-designed-by a {
  color: rgba(47,48,51,0.62);
  transition: color var(--transition);
}
.footer-designed-by a:hover {
  color: var(--amber);
}
.footer-designed-by .m8-red {
  color: var(--amber);
  font-weight: 700;
}
@media (max-width: 760px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-designed-by {
    position: static;
    transform: none;
    order: 3;
  }
}
