:root {
  /* Palette tuned to match the DukeSys logo (blues + deep black). */
  --bg: #1d1d1d;
  --panel: #0b1220;
  --text: #eef3ff;
  --muted: #b7c2e6;
  --accent: #1f4fff; /* logo-ish royal blue */
  --accent2: #3b82f6; /* secondary blue */
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  /* Nav: scales between comfortable mobile min and larger desktop max */
  --nav-font: clamp(1.0625rem, 0.9vw + 0.92rem, 1.5625rem);
  --nav-font-home: clamp(1.125rem, 1.05vw + 1rem, 1.75rem);
  /* Layout: wider column + responsive side gutters (was 1100px + only 1rem per side) */
  --content-max-width: 1320px;
  --page-gutter: clamp(1.25rem, 4vw, 3.25rem);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    "Montserrat",
    Arial,
    sans-serif,
    -apple-system Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background:
    radial-gradient(
      1200px 800px at 20% -10%,
      rgba(31, 80, 255, 0.116),
      transparent 70%
    ),
    radial-gradient(
      1000px 700px at 90% 0%,
      rgba(59, 130, 246, 0.22),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}

.container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: none;
  margin: 0 auto;
}

.dir-page .container {
  width: min(var(--content-max-width), calc(100% - 2 * var(--page-gutter)));
  max-width: var(--content-max-width);
}

/* Header nav uses full width like other pages so the logo lines up */
body.dir-page header .container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: none;
}

/* DIR vendor: white page shell, navy section panels */
body.dir-page {
  background: #fffdf9;
  color: #64748b;
}

body.dir-page .panel {
  background: #0d2847;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

body.dir-page .panel h2,
body.dir-page .panel h3 {
  color: var(--text);
}

body.dir-page .panel p,
body.dir-page .panel li {
  color: var(--muted);
}

body.dir-page .panel a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.dir-page .panel a:hover {
  color: #bfdbfe;
}

body.dir-page .dir-contact-block {
  text-align: center;
  margin: 0.35rem 0 1rem;
}

body.dir-page .dir-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

body.dir-page .dir-contact-list li + li {
  margin-top: 0.2rem;
}

body.dir-page .table-wrap {
  border-color: rgba(255, 255, 255, 0.14);
}

body.dir-page main {
  padding-top: 0;
  background: #fffdf9;
}

body.dir-page .container.hero.dir-page-hero-wrap {
  padding-top: 0;
}

/* DIR: compact hero band — full viewport width, flush under header */
body.dir-page .dir-page-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 1.5rem;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

/* Navy wash over photo (#051c3d) so the band matches site navy */
body.dir-page .dir-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(5, 28, 61, 0.72) 0%,
    rgba(5, 28, 61, 0.48) 42%,
    rgba(5, 28, 61, 0.28) 72%,
    rgba(5, 28, 61, 0.18) 100%
  );
}

body.dir-page .dir-page-hero-image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: clamp(248px, 40vw, 340px);
  object-fit: cover;
  object-position: center;
  display: block;
}

body.dir-page .dir-page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.45rem;
  padding: clamp(1.35rem, 4vw, 2.25rem) var(--page-gutter);
  box-sizing: border-box;
  background: linear-gradient(
    100deg,
    rgba(5, 28, 61, 0.45) 0%,
    rgba(1, 54, 148, 0.38) 35%,
    rgba(1, 54, 148, 0.14) 68%,
    transparent 100%
  );
}

body.dir-page .dir-page-hero-title {
  margin: 0;
  max-width: min(34rem, 92vw);
  color: #ffffff;
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.22);
}

body.dir-page .dir-page-hero-sub {
  margin: 0;
  max-width: min(32rem, 90vw);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.65vw, 1.14rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

/* DIR logo: bottom of main, centered under primary (left) column */
body.dir-page .dir-page-bottom-logo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  padding: 0.5rem var(--page-gutter) 0.25rem;
  margin: 0 auto;
  width: min(var(--content-max-width), calc(100% - 2 * var(--page-gutter)));
  max-width: 100%;
  box-sizing: border-box;
}

body.dir-page .dir-page-bottom-logo {
  grid-column: 1;
  justify-self: center;
  display: block;
  max-width: min(19rem, 58vw);
  max-height: clamp(3.75rem, 9vw, 5.25rem);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 1000px) {
  body.dir-page .dir-page-bottom-logo-wrap {
    grid-template-columns: 1fr;
  }

  body.dir-page .dir-page-bottom-logo {
    grid-column: 1;
    justify-self: center;
  }
}

/* Match Certifications footer palette/typography token values */
body.dir-page footer {
  --text: #1f1f1f;
  --muted: #5d646c;
  --border: rgba(31, 31, 31, 0.14);
  background: #fffdf9;
  color: var(--muted);
}

body.dir-page footer .container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: none;
}

/* DIR-CPO-5080: navy page shell, cream content panels, navy type */
body.dir-page.dir-page--5080 {
  background: #d3d3d3;
  color: #0d2847;
  --text: #0d2847;
  --muted: #0d2847;
}

body.dir-page.dir-page--5080 main {
  background: #d3d3d3;
}

body.dir-page.dir-page--5080 .panel {
  background: #fffdf9;
  border-color: rgba(13, 40, 71, 0.16);
  color: #0d2847;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

body.dir-page.dir-page--5080 .panel h2,
body.dir-page.dir-page--5080 .panel h3 {
  color: #0d2847;
}

body.dir-page.dir-page--5080 .panel p,
body.dir-page.dir-page--5080 .panel li {
  color: #0d2847;
}

body.dir-page.dir-page--5080 .panel strong {
  color: #0d2847;
}

body.dir-page.dir-page--5080 .panel a {
  color: #013694;
}

body.dir-page.dir-page--5080 .panel a:hover {
  color: #0d2847;
}

body.dir-page.dir-page--5080 .dir-contact-list {
  color: #0d2847;
}

body.dir-page.dir-page--5080 .table-wrap {
  border-color: rgba(13, 40, 71, 0.18);
}

body.dir-page.dir-page--5080 .pricing-table th,
body.dir-page.dir-page--5080 .pricing-table td {
  border-bottom-color: rgba(13, 40, 71, 0.12);
  color: #0d2847;
}

body.dir-page.dir-page--5080 .pricing-table th {
  color: #0d2847;
  background: rgba(1, 54, 148, 0.09);
}

body.dir-page.dir-page--5080 .pricing-table tbody tr:hover {
  background: rgba(1, 54, 148, 0.06);
}

/* Center DIR logo inside the Warranty panel */
body.dir-page.dir-page--5080 .panel .dir-page-bottom-logo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0;
}

body.dir-page.dir-page--5080 .panel .dir-page-bottom-logo {
  grid-column: auto;
  justify-self: auto;
}

body.dir-page.dir-page--5080
  .pricing-table
  tbody
  tr:is(
    :nth-child(2),
    :nth-child(3),
    :nth-child(4),
    :nth-child(6),
    :nth-child(9),
    :nth-child(11),
    :nth-child(12),
    :nth-child(15)
  )
  td {
  border-top: 4px solid rgba(13, 40, 71, 0.38);
}

body.dir-page.dir-page--5080 footer {
  background: #d3d3d3;
  border-top-color: rgba(13, 40, 71, 0.22);
  color: rgba(13, 40, 71, 0.85);
  --text: #0d2847;
  --muted: rgba(13, 40, 71, 0.8);
  --border: rgba(13, 40, 71, 0.16);
}

body.dir-page.dir-page--5080 footer a {
  color: #013694;
}

body.dir-page.dir-page--5080 footer a:hover {
  color: #0d2847;
}

/* Partners overview — Squarespace-style light editorial layout */
body.partners-page {
  background: #fffdf9;
  color: #64748b;
}

body.partners-page .container {
  width: min(var(--content-max-width), calc(100% - 2 * var(--page-gutter)));
  max-width: var(--content-max-width);
}

body.partners-page header .container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: none;
}

body.partners-page main {
  background: #fffdf9;
  padding-top: 0;
}

body.partners-page footer {
  background: #fffdf9;
  color: #94a3b8;
  border-top-color: #013694;
}

body.partners-page footer a {
  color: #013694;
}

body.partners-page footer strong {
  color: #64748b !important;
}

body.partners-page footer .container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: none;
}

body.partners-page .container.hero.about-wide {
  padding-top: 0;
}

/* Full viewport width while parent .container stays content-max (narrow column) */
body.partners-page .about-title-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  border: none;
}

body.partners-page .partners-hero-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  row-gap: 0.4rem;
  column-gap: 0;
  padding: 0.5rem var(--page-gutter) 0.62rem;
  margin: 0;
  background: #013694;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
}

body.partners-page .partners-hero-ribbon a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(0.8rem, 1.45vw, 0.98rem);
  font-weight: 500;
  line-height: 1.3;
  padding: 0.18rem 0;
  border-radius: 6px;
}

body.partners-page .partners-hero-ribbon a:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.48);
  padding-right: 0.7rem;
  margin-right: 0.7rem;
}

body.partners-page .partners-hero-ribbon a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

body.partners-page .partners-hero-ribbon a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

body.partners-page .partners-main {
  padding-top: 0;
  padding-bottom: 3.5rem;
}

body.partners-page .partners-hero {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.75rem clamp(1.25rem, 5vw, 2.25rem) 0.35rem;
}

body.partners-page .partners-hero-title {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 5.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #0f172a;
}

body.partners-page .partners-hero-lede {
  margin: 0;
  font-size: clamp(1.2rem, 2.25vw, 1.45rem);
  line-height: 1.62;
  color: #64748b;
}

body.partners-page .partners-band {
  margin: 2.75rem 0;
  padding: 2.75rem 1.75rem;
  background: #013694;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.partners-page .partners-band-heading {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

body.partners-page .partners-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  body.partners-page .partners-pillars {
    grid-template-columns: 1fr;
  }
}

body.partners-page .partners-pillar {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body.partners-page .partners-pillar h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #013694;
  letter-spacing: -0.01em;
}

body.partners-page .partners-pillar p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #64748b;
}

body.partners-page .partners-ecosystem {
  text-align: center;
  padding: 1.25rem 0 1.5rem;
  max-width: min(72rem, 100%);
  margin: 0 auto;
}

body.partners-page .partners-ecosystem-title {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body.partners-page .partners-ecosystem-copy {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.68;
  color: #64748b;
}

/* Logo category bands — larger blocks similar to DataVox partner sections */
body.partners-page .partners-logo-sections {
  margin-top: 2.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

body.partners-page .partners-logo-section {
  margin-top: 0;
  padding: clamp(2.25rem, 4vw, 3.25rem) clamp(1.35rem, 4vw, 2.75rem)
    clamp(2.5rem, 4.5vw, 3.5rem);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #f8fafc;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  scroll-margin-top: 5.75rem;
}

body.partners-page .partners-logo-section:first-child {
  margin-top: 0;
}

body.partners-page .partners-logo-section-title {
  margin-top: 0;
  margin-bottom: clamp(1.35rem, 2.5vw, 2rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #0f172a;
  text-align: center;
  line-height: 1.18;
}

body.partners-page .partners-logo-section .partners-logo-grid {
  margin-top: 0;
}

body.partners-page .partners-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(1.15rem, 2.5vw, 1.65rem);
  margin: 0 auto 0;
  max-width: 100%;
  text-align: center;
}

body.partners-page .partners-logo-slot {
  aspect-ratio: 1.65 / 1;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(0.85rem, 2vw, 1.1rem);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.partners-page .partners-logo-slot img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

body.partners-page .partners-cta {
  margin-top: 2.75rem;
  padding: 2.75rem 1.75rem;
  text-align: center;
  background: #013694;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.partners-page .partners-cta-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

body.partners-page .partners-cta-copy {
  margin: 0 auto 1.45rem;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

body.partners-page .partners-cta-actions {
  justify-content: center;
}

body.partners-page .partners-cta .btn:not(.primary) {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.partners-page .partners-cta .btn:not(.primary):hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* DIR vendor: main copy left, pricing + table right */
.dir-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}

.dir-page-layout__primary,
.dir-page-layout__pricing {
  min-width: 0;
}

.dir-page-layout__pricing {
  position: sticky;
  top: 5.75rem;
}

.dir-page-layout__pricing > :first-child {
  margin-top: 0;
}

/* Fit pricing grid in column without horizontal scroll (global table min-width: 700px) */
.dir-page-layout__pricing .pricing-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.dir-page-layout__pricing .pricing-table th,
.dir-page-layout__pricing .pricing-table td {
  padding: 0.55rem 0.5rem;
  overflow-wrap: break-word;
}

.dir-page-layout__pricing .table-wrap + p {
  padding-top: 0.85rem;
}

@media (max-width: 1000px) {
  .dir-page-layout {
    grid-template-columns: 1fr;
  }

  .dir-page-layout__pricing {
    position: static;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

/* Shell groups header + primary nav on desktop; mobile drawer nav stays fixed */
.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.65);
  border-bottom: 1px solid var(--border);
}

header {
  position: static;
  background: transparent;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand strong {
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}
.brand span {
  font-size: 0.88rem;
  color: var(--muted);
}

.logo-float {
  position: absolute;
  top: 10px;
  right: 1rem;
  width: 500px;
  height: 500px;
  border-radius: 20px;
  border: none;
  background: transparent;
  object-fit: contain;
  z-index: 60;
}

/* Home: logo left, nav right — dark bar on black page.
   Must override .site-header-bar { backdrop-filter } — without an explicit none,
   the global blur still applies and clips position:absolute .nav-dd-menu. */
body.home .site-header-bar {
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 11, 0.88),
    rgba(6, 7, 11, 0.62)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(31, 79, 255, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

body.home .home-nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 0.75rem;
}

body.home .home-nav-logo img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  border-radius: 42px;
  filter: drop-shadow(0 0 14px rgba(186, 230, 253, 0.55))
    drop-shadow(0 0 24px rgba(147, 197, 253, 0.48))
    drop-shadow(0 0 40px rgba(125, 211, 252, 0.36))
    drop-shadow(0 0 56px rgba(96, 165, 250, 0.2));
  transition: filter 0.25s ease;
}

body.home .home-nav-logo:hover img {
  filter: drop-shadow(0 0 18px rgba(186, 230, 253, 0.68))
    drop-shadow(0 0 30px rgba(147, 197, 253, 0.58))
    drop-shadow(0 0 46px rgba(125, 211, 252, 0.45))
    drop-shadow(0 0 68px rgba(96, 165, 250, 0.28));
}

body.home .home-nav-logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
  border-radius: 21px;
}

body.home .brand {
  display: none;
}

/* Home page: solid navy page background */
body.home {
  min-height: 100%;
  background-color: #051c3d;
  --nav-font-home: clamp(1.02rem, 0.95vw + 0.9rem, 1.55rem);
}
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: #051c3d;
}

body.home::after {
  display: none;
}

body.home header {
  overflow: visible;
}

body.home .nav {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  overflow: visible;
}

body.home .nav-links {
  justify-content: flex-end;
  min-width: 0;
  flex: 1;
  max-width: none;
  width: auto;
  flex-wrap: wrap;
  overflow: visible;
  gap: 0.2rem 0.45rem;
}
body.home .nav-links > a,
body.home .nav-links > .nav-dropdown {
  flex-shrink: 0;
}

body.home .nav-links a {
  color: rgba(238, 243, 255, 0.95);
  border-color: transparent;
  background: transparent;
  padding: 0.35rem 0.55rem;
  font-size: var(--nav-font-home);
  line-height: 1.35;
}

body.home .nav-links summary {
  list-style: none;
  color: rgba(238, 243, 255, 0.95);
  border-color: transparent;
  background: transparent;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  font-size: var(--nav-font-home);
  line-height: 1.35;
}

body.home .nav-links a:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

body.home .nav-links a[aria-current="page"] {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

body.home .nav-dropdown[open] summary {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(238, 243, 255, 0.98);
}

body.home main {
  padding-top: 0;
}

body.home .container.hero.about-wide {
  padding-top: 0;
}

/* Home: Access-style full-bleed image hero + tagline overlay */
body.home .about-title-hero {
  width: calc(100% + 2 * var(--page-gutter));
  max-width: none;
  margin-left: calc(-1 * var(--page-gutter));
  margin-right: calc(-1 * var(--page-gutter));
  border-radius: 0;
  border: none;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  max-height: 520px;
  margin-bottom: 0;
}

body.home .about-title-hero-image {
  width: 100%;
  height: 520px;
  min-height: 0;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: aboutHeroFloat 12s ease-in-out infinite alternate;
}

body.home .about-title-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding: 1.5rem var(--page-gutter);
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28));
}

body.home .about-title-hero-overlay h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 7vw, 5rem);
  line-height: 1.12;
  max-width: min(44rem, 94vw);
  text-wrap: balance;
}

body.home .about-title-hero-overlay h1 .hero-line1,
body.home .about-title-hero-overlay h1 .hero-line2 {
  display: block;
}

body.home .about-title-hero-overlay h1 .hero-line1 {
  margin-bottom: 0.08em;
  max-width: 100%;
}

body.home .about-title-hero-overlay .hero-every {
  color: rgba(147, 197, 253, 0.98);
}

body.home .hero {
  padding: 2rem 0 2.25rem;
}

body.home .hero-grid {
  grid-template-columns: 1fr;
  min-height: auto;
  align-items: center;
}

body.home .hero-card {
  display: none;
}

body.home .hero {
  text-align: center;
}

body.home .hero p {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}

body.home .home-credibility {
  position: relative;
  margin-left: calc(-1 * var(--page-gutter));
  margin-right: calc(-1 * var(--page-gutter));
  width: calc(100% + 2 * var(--page-gutter));
  max-width: none;
  box-sizing: border-box;
  /* Tighter side padding than full --page-gutter so copy sits closer to the band edges */
  padding: 2.75rem clamp(0.45rem, 1.75vw, 1.2rem) 2.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #013694;
  overflow: hidden;
}

/* Same hero photo + float as top banner; extra inset so scale(1.04) never shows gaps */
body.home .home-credibility::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background: #013694 url("assets/home.png") center / cover no-repeat;
  transform-origin: center center;
  animation: aboutHeroFloat 12s ease-in-out infinite alternate;
}

/* Hero-like darken + strong navy wash so type stays readable and on-brand */
body.home .home-credibility::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(1, 54, 148, 0.78), rgba(1, 54, 148, 0.88));
}

@media (prefers-reduced-motion: reduce) {
  body.home .home-credibility::before {
    animation: none;
    inset: 0;
    transform: none;
  }
}

body.home .home-credibility-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(98vw, 1680px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.home .home-credibility-title {
  margin: 0 auto 2.25rem;
  max-width: 100%;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
}

body.home .home-credibility-title-lead {
  color: #ffffff;
  font-weight: 500;
}

body.home .home-credibility-title-brand {
  color: #ffff1f;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #ffffff;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
}

body.home .home-credibility-title-end {
  color: #ffffff;
  font-weight: 500;
}

body.home .home-credibility-prose {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 2rem;
  max-width: min(98vw, 1680px);
  width: 100%;
  text-align: center;
}

body.home .home-credibility-prose p {
  margin: 0 0 1.15rem;
  width: 100%;
  color: rgba(238, 243, 255, 0.9);
  font-size: clamp(1.12rem, 1.85vw, 1.3rem);
  line-height: 1.68;
  text-align: center;
  text-wrap: balance;
}

body.home .home-credibility-prose p.home-credibility-lead {
  margin: 0 0 1.2rem;
  max-width: min(50rem, 100%);
  font-size: clamp(0.78rem, 2.15vw + 0.55rem, 1.95rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  text-wrap: balance;
}

body.home .home-credibility-prose p.home-credibility-sublead {
  margin: 0 0 1.15rem;
  max-width: min(50rem, 100%);
  font-size: clamp(0.72rem, 1.85vw + 0.5rem, 1.65rem);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(252, 252, 255, 0.96);
  text-wrap: balance;
}

body.home .home-credibility-prose p.home-credibility-sublead strong {
  font-weight: 700;
}

body.home .home-credibility-prose p:last-child {
  margin-bottom: 0;
}

body.home .home-credibility-list {
  list-style: none;
  margin: 0 auto 1.65rem;
  padding: 0;
  color: rgba(238, 243, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
  max-width: min(48rem, 100%);
}

body.home .home-credibility-list li + li {
  margin-top: 0.5rem;
}

body.home .home-credibility-actions {
  justify-content: center;
}

body.home .home-credibility-actions .btn {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  padding: 0.85rem 1.35rem;
}

@media (max-width: 520px) {
  body.home .about-title-hero,
  body.home .about-title-hero-image {
    min-height: 320px;
    max-height: 360px;
    height: 360px;
  }
}

/* Above fixed background (::before z-index -2). Bar higher than main so open
   nav dropdowns paint over the hero (equal z-index made main cover menus). */
body.home .site-header-bar {
  position: static;
  z-index: 50;
}

body.home main {
  position: static;
  z-index: 8;
}

/* Inner pages (not home): logo link top-left in nav; no floating corner logo */
body.page .logo-float {
  display: none;
}

/* Inner-page header: light gray base + translucent blue (About-style bar) */
body.page .site-header-bar {
  background:
    linear-gradient(180deg, rgba(1, 54, 148, 0.14), rgba(1, 54, 148, 0.22)),
    rgba(202, 202, 202, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

body.page .nav-links a {
  color: #2a2f36;
}

body.page .nav-links a:hover {
  border-color: rgba(0, 0, 0, 0.14);
  color: #111418;
}

body.page .nav-links a[aria-current="page"] {
  border-color: rgba(1, 54, 148, 0.5);
  background: rgba(255, 255, 255, 0.55);
  color: #013694;
}

body.page .nav-dropdown summary {
  color: #2a2f36;
}

body.page .nav-dropdown[open] summary,
body.page .nav-dropdown summary:hover {
  border-color: rgba(0, 0, 0, 0.14);
  color: #111418;
}

body.page .nav-dropdown summary[aria-current="page"] {
  border-color: rgba(1, 54, 148, 0.45);
  background: rgba(255, 255, 255, 0.5);
  color: #013694;
}

body.page .nav-dd-menu {
  background: #fffef6;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

body.page .nav-dd-menu a {
  color: #3a4048;
}

body.page .nav-dd-menu a:hover {
  color: #0f1216;
  background: rgba(31, 79, 255, 0.14);
  border-left-color: #013694;
}

body.page .nav-dd-menu a[aria-current="page"] {
  color: #013694;
  background: rgba(1, 54, 148, 0.1);
}

body.page .header-nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 1rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Same horizontal logo position on home and every inner page */
body.home .home-nav-logo,
body.page .header-nav-logo {
  margin-left: calc(-1 * var(--page-gutter) + 1.85rem);
}

body.page .header-nav-logo:hover {
  opacity: 0.9;
}

body.page .header-nav-logo:focus-visible {
  outline: 2px solid rgba(1, 54, 148, 0.65);
  outline-offset: 4px;
  border-radius: 4px;
}

body.page .header-nav-logo img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
}

body.page .nav {
  justify-content: space-between;
  padding: 1.05rem 0;
}

@media (min-width: 901px) {
  .site-header-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    overflow: visible;
  }

  .site-header-bar > header {
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
  }

  .site-header-bar > .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .logo-float {
    width: 96px;
    height: 96px;
    top: 0px;
    right: 0.75rem;
    border-radius: 16px;
  }
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  overflow: visible;
}
.nav-links > a,
.nav-links > .nav-dropdown {
  flex-shrink: 0;
}
.nav-links a {
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: var(--nav-font);
  line-height: 1.35;
}
.nav-links a:hover {
  border-color: var(--border);
  color: var(--text);
}
.nav-links a[aria-current="page"] {
  border-color: rgba(31, 79, 255, 0.55);
  background: rgba(31, 79, 255, 0.1);
  color: var(--text);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-family: inherit;
  font-size: var(--nav-font);
  line-height: 1.35;
}
.nav-dropdown summary::-webkit-details-marker {
  display: none;
}
.nav-dropdown summary::marker {
  display: none;
}
.nav-dropdown summary[aria-current="page"] {
  border-color: rgba(31, 79, 255, 0.55);
  background: rgba(31, 79, 255, 0.1);
  color: var(--text);
}
.nav-dropdown[open] summary {
  border-color: var(--border);
  color: var(--text);
}
.nav-dropdown[open] {
  z-index: 85;
}
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  z-index: 80;
  min-width: min(290px, calc(100vw - 2 * var(--page-gutter)));
  max-width: calc(100vw - 2 * var(--page-gutter));
  background: rgba(11, 18, 32, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.35rem 0;
  display: none;
  box-shadow: var(--shadow);
}
.nav-dropdown[open] .nav-dd-menu {
  display: block;
}
.nav-dd-menu a {
  display: block;
  padding: 0.7rem 0.95rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent; /* overwritten from .nav-links a */
  border-radius: 0;
  background: transparent;
  border-left: 3px solid transparent;
  font-size: var(--nav-font);
  line-height: 1.35;
}

body.home .nav-dd-menu a {
  font-size: var(--nav-font-home);
}
.nav-dd-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
  border-left-color: rgba(31, 79, 255, 0.85);
}
.nav-dd-menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(31, 79, 255, 0.1);
  border-color: transparent;
  border-left-color: rgba(31, 79, 255, 0.98);
}

/* Mobile: drawer uses position:fixed; #site-nav-drawer stays a direct child of
   body. Nav + backdrop live in .site-header-bar; backdrop-filter is disabled
   on the bar under 900px so fixed nav isn’t clipped. */
.site-nav-drawer-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}

.nav-menu-button,
.nav-drawer-backdrop {
  display: none;
}

@media (max-width: 900px) {
  body:has(.site-nav-drawer-toggle:checked) {
    overflow: hidden;
  }

  header,
  .site-header-bar {
    overflow: visible;
  }

  body.home .nav,
  body.page .nav {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
  }

  body.home .home-nav-logo img,
  body.page .header-nav-logo img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  body.home .home-nav-logo,
  body.page .header-nav-logo {
    margin-left: 0;
  }

  .nav-menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition:
      border-color 0.2s ease,
      background 0.2s ease;
  }

  body.page .nav-menu-button {
    border-color: rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.88);
  }

  .nav-menu-button:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.95);
    outline-offset: 3px;
  }

  body.page .nav-menu-button:focus-visible {
    outline-color: rgba(1, 54, 148, 0.65);
  }

  .nav-menu-bar {
    display: block;
    width: 1.35rem;
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.92);
    transition:
      transform 0.22s ease,
      opacity 0.22s ease;
  }

  body.page .nav-menu-bar {
    background: #2a2f36;
  }

  /* Menu control stays inside header; checkbox is a body child (avoids backdrop-filter clip) */
  body:has(.site-nav-drawer-toggle:checked)
    .nav-menu-button
    .nav-menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body:has(.site-nav-drawer-toggle:checked)
    .nav-menu-button
    .nav-menu-bar:nth-child(2) {
    opacity: 0;
  }

  body:has(.site-nav-drawer-toggle:checked)
    .nav-menu-button
    .nav-menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    cursor: pointer;
  }

  body:has(.site-nav-drawer-toggle:checked) .nav-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* backdrop-filter on the shell would re-clip position:fixed .nav-links */
  body.home .site-header-bar,
  body.page .site-header-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.home .nav-links,
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: min(300px, 86vw);
    margin: 0;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem
      calc(1.25rem + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 200;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.38);
  }

  body.home .nav-links {
    background: linear-gradient(
      180deg,
      rgba(6, 7, 11, 0.97),
      rgba(11, 18, 32, 0.99)
    );
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  body.page .nav-links {
    background: rgba(255, 254, 246, 0.98);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

  body:has(.site-nav-drawer-toggle:checked) .nav-links {
    transform: translateX(0);
  }

  /* Submenus stack inside the drawer instead of floating */
  .nav-links .nav-dropdown {
    width: 100%;
  }

  .nav-links .nav-dropdown[open] {
    z-index: auto;
  }

  .nav-links .nav-dd-menu {
    position: static;
    margin-top: 0.35rem;
    margin-left: 0.35rem;
    margin-bottom: 0.15rem;
    padding: 0.25rem 0;
    max-width: none;
    min-width: 0;
    width: auto;
    box-shadow: none;
    border-radius: 10px;
  }

  body.home .nav-links .nav-dd-menu {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.page .nav-links .nav-dd-menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
}
.btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.btn.primary {
  border: 2px solid #1a1a1a;
  background: #ffff1f;
  color: #1a1a1a;
  box-shadow: none;
}

.btn.primary:hover {
  border-color: #141414;
  background: #e6e61a;
  color: #141414;
}

main {
  padding: 2.25rem 0 3.5rem;
}

body.services-page,
body.services-page main,
body.services-page footer {
  background: #051c3d;
}

/* Services overview: match home key-solution band (image tiles + overlay) */
body.services-page .services-solutions {
  margin-top: 0;
  border: none;
  background: transparent;
  padding: 0;
}

body.services-page .services-solutions-heading {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}

body.services-page .services-solutions-lead {
  margin: 0 auto 1.75rem;
  max-width: min(48rem, 100%);
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}

/* How projects start — same type rhythm as solutions lead */
body.services-page .services-how-start {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.services-page .services-how-start-lead,
body.services-page .services-how-start-note,
body.services-page .services-how-start-list {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}

body.services-page .services-how-start-lead {
  margin: 0 0 1.2rem;
}

body.services-page .services-how-start-note {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

body.services-page .services-how-start-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

body.services-page .services-how-start-list li {
  margin: 0;
  padding: 0;
}

body.services-page .services-how-start-list li + li {
  margin-top: 0.35rem;
}

.hero {
  padding: 2.25rem 0 1.25rem;
}

/* About page: let sections span the full available page width */
.about-wide {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: none;
}

header .container,
footer .container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: none;
}

/* About: hero meets nav; full-bleed title band */
body.about-page main {
  padding-top: 0;
}

body.about-page .container.hero.about-wide {
  padding-top: 0;
}

body.about-page .about-title-hero {
  width: calc(100% + 2 * var(--page-gutter));
  max-width: none;
  margin-left: calc(-1 * var(--page-gutter));
  margin-right: calc(-1 * var(--page-gutter));
  border-radius: 0;
  border: none;
}

body.about-page .intro-center .about-page-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  row-gap: 0.45rem;
  column-gap: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 2.75rem;
  padding: 0 var(--page-gutter) 0.62rem;
  background: #013694;
  border: 1px solid #013694;
  box-sizing: border-box;
  min-height: 2.75rem;
}

body.about-page .intro-center .about-page-ribbon a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(0.88rem, 1.65vw, 1.02rem);
  font-weight: 500;
  line-height: 1.3;
  padding: 0.2rem 0;
  border-radius: 6px;
}

body.about-page .intro-center .about-page-ribbon a:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.48);
  padding-right: 0.9rem;
  margin-right: 0.9rem;
}

body.about-page .intro-center .about-page-ribbon a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

body.about-page .intro-center .about-page-ribbon a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

body.about-page .intro-center {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.about-page .intro-center h2 {
  margin-top: 9rem;
  margin-bottom: 2.4rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body.about-page .intro-center h2 + p {
  margin-top: 0;
  margin-bottom: 6.25rem;
  text-align: center;
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.kicker {
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0.7rem 0 0.6rem;
  font-size: 2.2rem;
  line-height: 1.1;
}
@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.9rem;
  }
}

.hero p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(32, 28, 240, 0.295),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(15, 27, 51, 0.35);
}
.stat strong {
  font-size: 1.05rem;
}
.stat div {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.section {
  margin-top: 1.8rem;
}
.section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
}
.section p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 27, 51, 0.35);
  padding: 1.25rem;
}

/* Contact page — cream shell; panels keep DukeSys blue (#013694) */
body.contact-page {
  background: #fffdf9;
  color: #1f1f1f;
  --text: #1f1f1f;
  --muted: #5d646c;
}

body.contact-page main {
  background: #fffdf9;
}

body.contact-page footer {
  background: #fffdf9;
  border-top-color: #013694;
  color: var(--muted);
}

body.contact-page footer a {
  color: #013694;
}

body.contact-page footer a:hover {
  color: #111418;
}

body.contact-page .section h2,
body.contact-page .section p,
body.contact-page .panel h2,
body.contact-page .panel h3,
body.contact-page .panel p,
body.contact-page .panel strong {
  color: rgba(255, 255, 255, 0.96);
}

body.contact-page .section p,
body.contact-page .panel p {
  color: rgba(255, 255, 255, 0.88);
}

body.contact-page .panel a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.contact-page .panel a:hover {
  color: rgba(255, 255, 255, 0.85);
}

body.contact-page label {
  color: rgba(255, 255, 255, 0.88);
}

body.contact-page input,
body.contact-page textarea {
  color: #ffffff;
  caret-color: #ffd84d;
}

body.contact-page input::placeholder,
body.contact-page textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

body.contact-page .panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: #013694;
  padding: 1.35rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

body.contact-page .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
  gap: 2rem;
  align-items: center;
}

body.contact-page .contact-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

body.contact-page .contact-right {
  min-width: 0;
}

body.contact-page .contact-right .panel {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

@media (max-width: 900px) {
  body.contact-page .contact-layout {
    grid-template-columns: 1fr;
  }
}

body.contact-page .contact-map-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

body.contact-page .contact-map-wrap iframe {
  border: 0;
  outline: none;
  width: 100%;
  height: min(520px, 64vh);
  display: block;
}

body.contact-page input,
body.contact-page textarea {
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  border-radius: 0;
  padding: 0.85rem 0.1rem 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

body.contact-page input:focus,
body.contact-page textarea:focus {
  border: none;
  border-bottom: 2px solid #fff31a;
  box-shadow: none;
  outline: 2px solid rgba(31, 79, 255, 0.55);
  outline-offset: 4px;
}

body.contact-page form .btn.primary {
  border: 2px solid #1a1a1a;
  background: #ffff1f;
  color: #1a1a1a;
  box-shadow: none;
}

body.contact-page form .btn.primary:hover {
  border-color: #141414;
  background: #e6e61a;
  color: #141414;
}

.about-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.about-links a {
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
}

.about-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.about-section {
  background:
    linear-gradient(180deg, rgba(31, 79, 255, 0.11), rgba(15, 27, 51, 0.22)),
    rgba(15, 27, 51, 0.3);
}

.about-kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.pricing-table th,
.pricing-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
}

.pricing-table th {
  color: var(--text);
  background: rgba(31, 79, 255, 0.14);
  font-weight: 700;
}

.pricing-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.pricing-table tbody tr:nth-child(-n + 4) td {
  color: #ffff1f;
}

.pricing-table tbody tr:nth-last-child(-n + 2) td {
  color: #ffffff;
}

/* Editorial service-page style (photo-led + warmer palette) */
body.service-editorial {
  --bg: #fffdf9;
  --panel: #fffdf9;
  --text: #1f1f1f;
  --muted: #5d646c;
  --accent: #0b0fee;
  --accent2: #2f4f64;
  --border: rgba(31, 31, 31, 0.14);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: var(--bg);
}

body.service-editorial .panel {
  background: var(--panel);
  border: none;
}

.intro-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.intro-center p {
  color: var(--muted);
}

.intro-center .btn-row {
  justify-content: center;
}

body.service-editorial .intro-center h2,
body.service-editorial .feature-band .feature-copy h2,
body.service-editorial .section.panel h2 {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
}

body.service-editorial .intro-center p,
body.service-editorial .feature-band .feature-copy p,
body.service-editorial .section.panel p,
body.service-editorial .service-list {
  font-size: 1.12rem;
  line-height: 1.75;
}

body.service-editorial .about-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--accent2);
}

/* Access-style service layout on default dark theme (no cream palette) */
body.service-format .intro-center h2,
body.service-format .feature-band .feature-copy h2,
body.service-format .section.panel.service-cta h2 {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
}

body.service-format .intro-center p,
body.service-format .feature-band .feature-copy p,
body.service-format .service-list {
  font-size: 1.12rem;
  line-height: 1.75;
}

body.service-format .about-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--accent2);
}

/* Blends into --bg (#1d1d1d) with a long ramp so the image/text edge isn’t a hard line */
body.service-format .feature-media.fade-right::after {
  background: linear-gradient(
    to right,
    rgba(29, 29, 29, 0) 0%,
    rgba(29, 29, 29, 0) 35%,
    rgba(29, 29, 29, 0.08) 48%,
    rgba(29, 29, 29, 0.28) 62%,
    rgba(29, 29, 29, 0.52) 74%,
    rgba(29, 29, 29, 0.78) 86%,
    rgba(29, 29, 29, 0.94) 95%,
    rgb(29, 29, 29) 100%
  );
}

body.service-format .feature-media.fade-left::after {
  background: linear-gradient(
    to left,
    rgba(29, 29, 29, 0) 0%,
    rgba(29, 29, 29, 0) 35%,
    rgba(29, 29, 29, 0.08) 48%,
    rgba(29, 29, 29, 0.28) 62%,
    rgba(29, 29, 29, 0.52) 74%,
    rgba(29, 29, 29, 0.78) 86%,
    rgba(29, 29, 29, 0.94) 95%,
    rgb(29, 29, 29) 100%
  );
}

body.service-format .service-cta {
  border: 1px solid var(--border);
  background: rgba(31, 79, 255, 0.12);
  text-align: center;
  padding: 1.25rem;
}

body.service-format .service-cta p {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

body.service-format .service-cta .btn-row {
  justify-content: center;
}

/* Ribbon-aligned CTA (Access + Voice & Data pages with about-page ribbon) */
body.about-page.service-format .service-cta {
  border: 1px solid #013694;
  background: #013694;
}

body.about-page.service-format .service-cta h2,
body.about-page.service-format .service-cta p {
  color: #ffffff;
}

body.about-page.service-format .service-cta a:not(.btn) {
  color: #ffffff;
}

body.about-page.service-format .service-cta .btn:not(.primary) {
  border-color: rgba(34, 211, 238, 0.65);
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.22),
    rgba(34, 211, 238, 0.08)
  );
  color: #ffffff;
}

/* Voice/Data (etc.): About-style title hero + ribbon on dark service-format pages */
body.about-page.service-format .about-title-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  max-height: 520px;
  margin-bottom: 0;
}

body.about-page.service-format .about-title-hero-image {
  width: 100%;
  height: 520px;
  min-height: 0;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: aboutHeroFloat 12s ease-in-out infinite alternate;
}

body.about-page.service-format .about-title-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem var(--page-gutter);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28));
}

body.about-page.service-format .about-title-hero-overlay h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.65rem, 4.5vw, 3rem);
  line-height: 1.12;
}

body.about-page.service-format .intro-center h2 {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

body.about-page.service-format .intro-center h2 + p {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Voice & Data overview: wider intro copy (cable infrastructure blurb) */
body.about-page.service-format
  section[aria-label="Voice and Data overview"].intro-center {
  max-width: min(100%, 70rem);
}

body.about-page.service-format
  section[aria-label="Voice and Data overview"]
  h2
  + p {
  max-width: none;
  margin-bottom: 5rem;
}

body.about-page.service-format
  section[aria-label="Voice and Data overview"]
  h2 {
  margin-top: 4.25rem;
  margin-bottom: 2.65rem;
}

/* Service-format intros (Access, Camera & Video, Telephone Entry) */
body.about-page.service-format
  section[aria-label="Access Control overview"].intro-center,
body.about-page.service-format
  section[aria-label="Camera and video overview"].intro-center,
body.about-page.service-format
  section[aria-label="Telephone entry overview"].intro-center {
  max-width: min(100%, 70rem);
}

body.about-page.service-format
  section[aria-label="Access Control overview"]
  h2
  + p,
body.about-page.service-format
  section[aria-label="Telephone entry overview"]
  h2
  + p {
  max-width: none;
  margin-bottom: 5rem;
}

/* Camera intro: two paragraphs — space between blurbs; last block matches Access tail spacing */
body.about-page.service-format
  section[aria-label="Camera and video overview"]
  h2
  + p {
  max-width: none;
  margin-bottom: 1.65rem;
}

body.about-page.service-format
  section[aria-label="Camera and video overview"]
  > p:last-of-type {
  margin-top: 0.5rem;
  margin-bottom: 5rem;
}

body.about-page.service-format section[aria-label="Access Control overview"] h2,
body.about-page.service-format
  section[aria-label="Camera and video overview"]
  h2,
body.about-page.service-format
  section[aria-label="Telephone entry overview"]
  h2 {
  margin-top: 4.25rem;
  margin-bottom: 2.65rem;
}

/* Access Control page: navy shell behind existing section treatments */
body.access-control-page,
body.access-control-page main,
body.access-control-page footer {
  background: #051c3d;
}

/* Access Control: blend media edges into the navy page shell */
body.access-control-page .feature-media.fade-right::after {
  background: linear-gradient(
    to right,
    rgba(5, 28, 61, 0) 0%,
    rgba(5, 28, 61, 0) 30%,
    rgba(5, 28, 61, 0.14) 46%,
    rgba(5, 28, 61, 0.38) 62%,
    rgba(5, 28, 61, 0.66) 76%,
    rgba(5, 28, 61, 0.9) 90%,
    rgba(5, 28, 61, 0.98) 96%,
    rgb(5, 28, 61) 100%
  );
}

body.access-control-page .feature-media.fade-left::after {
  background: linear-gradient(
    to left,
    rgba(5, 28, 61, 0) 0%,
    rgba(5, 28, 61, 0) 30%,
    rgba(5, 28, 61, 0.14) 46%,
    rgba(5, 28, 61, 0.38) 62%,
    rgba(5, 28, 61, 0.66) 76%,
    rgba(5, 28, 61, 0.9) 90%,
    rgba(5, 28, 61, 0.98) 96%,
    rgb(5, 28, 61) 100%
  );
}

/* Voice & Data page: match Access Control navy shell + image fade blend */
body.voice-data-page,
body.voice-data-page main,
body.voice-data-page footer {
  background: #051c3d;
}

body.camera-video-page,
body.camera-video-page main,
body.camera-video-page footer,
body.telephone-entry-page,
body.telephone-entry-page main,
body.telephone-entry-page footer {
  background: #051c3d;
}

body.voice-data-page .feature-media.fade-right::after {
  background: linear-gradient(
    to right,
    rgba(5, 28, 61, 0) 0%,
    rgba(5, 28, 61, 0) 30%,
    rgba(5, 28, 61, 0.14) 46%,
    rgba(5, 28, 61, 0.38) 62%,
    rgba(5, 28, 61, 0.66) 76%,
    rgba(5, 28, 61, 0.9) 90%,
    rgba(5, 28, 61, 0.98) 96%,
    rgb(5, 28, 61) 100%
  );
}

body.voice-data-page .feature-media.fade-left::after {
  background: linear-gradient(
    to left,
    rgba(5, 28, 61, 0) 0%,
    rgba(5, 28, 61, 0) 30%,
    rgba(5, 28, 61, 0.14) 46%,
    rgba(5, 28, 61, 0.38) 62%,
    rgba(5, 28, 61, 0.66) 76%,
    rgba(5, 28, 61, 0.9) 90%,
    rgba(5, 28, 61, 0.98) 96%,
    rgb(5, 28, 61) 100%
  );
}

body.camera-video-page .feature-media.fade-right::after,
body.telephone-entry-page .feature-media.fade-right::after {
  background: linear-gradient(
    to right,
    rgba(5, 28, 61, 0) 0%,
    rgba(5, 28, 61, 0) 30%,
    rgba(5, 28, 61, 0.14) 46%,
    rgba(5, 28, 61, 0.38) 62%,
    rgba(5, 28, 61, 0.66) 76%,
    rgba(5, 28, 61, 0.9) 90%,
    rgba(5, 28, 61, 0.98) 96%,
    rgb(5, 28, 61) 100%
  );
}

body.camera-video-page .feature-media.fade-left::after,
body.telephone-entry-page .feature-media.fade-left::after {
  background: linear-gradient(
    to left,
    rgba(5, 28, 61, 0) 0%,
    rgba(5, 28, 61, 0) 30%,
    rgba(5, 28, 61, 0.14) 46%,
    rgba(5, 28, 61, 0.38) 62%,
    rgba(5, 28, 61, 0.66) 76%,
    rgba(5, 28, 61, 0.9) 90%,
    rgba(5, 28, 61, 0.98) 96%,
    rgb(5, 28, 61) 100%
  );
}

/* Voice & Data + Access Control feature rows — no panel chrome */
body.about-page.service-format section[aria-label="Cabling and standards"],
body.about-page.service-format section[aria-label="Integration and value"],
body.about-page.service-format section[aria-label="Access infrastructure"],
body.about-page.service-format section[aria-label="ACMS capabilities"],
body.about-page.service-format
  section[aria-label="Camera scope and infrastructure"],
body.about-page.service-format
  section[aria-label="Camera analytics and support"],
body.about-page.service-format
  section[aria-label="Camera proactive maintenance and support"],
body.about-page.service-format section[aria-label="Telephone entry scope"],
body.about-page.service-format
  section[aria-label="Telephone entry software platform"] {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: visible; /* let media bleed to viewport; .feature-band defaults to hidden */
}

body.about-page.service-format section[aria-label="Integration and value"],
body.about-page.service-format section[aria-label="ACMS capabilities"],
body.about-page.service-format
  section[aria-label="Camera analytics and support"],
body.about-page.service-format
  section[aria-label="Telephone entry software platform"] {
  margin-top: 0;
}

body.about-page.service-format
  section[aria-label="Camera proactive maintenance and support"] {
  margin-top: 0;
}

/* Image-right bands: center copy vertically against the photo column */
body.about-page.service-format
  section[aria-label="Integration and value"]
  .feature-copy,
body.about-page.service-format
  section[aria-label="ACMS capabilities"]
  .feature-copy,
body.about-page.service-format
  section[aria-label="Camera analytics and support"]
  .feature-copy,
body.about-page.service-format
  section[aria-label="Telephone entry software platform"]
  .feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 0; /* snug to image column */
}

/* Image-left: center copy vertically vs photo (two-column layout) */
@media (min-width: 961px) {
  body.about-page.service-format
    section[aria-label="Camera proactive maintenance and support"]
    .feature-copy,
  body.about-page.service-format
    section[aria-label="Telephone entry scope"]
    .feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
    height: 100%;
  }
}

/* Image-left: Voice & Data row — photo matches text column height */
body.about-page.service-format
  section[aria-label="Cabling and standards"]
  .feature-media {
  align-self: stretch;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  margin-left: calc(-1 * var(--page-gutter));
  width: calc(100% + var(--page-gutter));
  max-width: none;
}

/* Access / Camera / Telephone — image-left bands, photo matches text column height */
body.about-page.service-format
  section[aria-label="Access infrastructure"]
  .feature-media,
body.about-page.service-format
  section[aria-label="Camera scope and infrastructure"]
  .feature-media,
body.about-page.service-format
  section[aria-label="Camera proactive maintenance and support"]
  .feature-media,
body.about-page.service-format
  section[aria-label="Telephone entry scope"]
  .feature-media {
  align-self: stretch;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  margin-left: calc(-1 * var(--page-gutter));
  width: calc(100% + var(--page-gutter));
  max-width: none;
  min-width: 0;
  overflow: hidden;
}

body.about-page.service-format
  section[aria-label="Access infrastructure"]
  .feature-media
  img,
body.about-page.service-format
  section[aria-label="Camera scope and infrastructure"]
  .feature-media
  img,
body.about-page.service-format
  section[aria-label="Camera proactive maintenance and support"]
  .feature-media
  img,
body.about-page.service-format
  section[aria-label="Telephone entry scope"]
  .feature-media
  img {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Image-right: Voice & Data — photo matches text column */
body.about-page.service-format
  section[aria-label="Integration and value"]
  .feature-media {
  margin-right: calc(-1 * var(--page-gutter));
  width: calc(100% + var(--page-gutter));
  max-width: none;
  min-width: 0;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
}

/* Access ACMS / Camera analytics / Telephone software — image-right, matches text column */
body.about-page.service-format
  section[aria-label="ACMS capabilities"]
  .feature-media,
body.about-page.service-format
  section[aria-label="Camera analytics and support"]
  .feature-media,
body.about-page.service-format
  section[aria-label="Telephone entry software platform"]
  .feature-media {
  margin-right: calc(-1 * var(--page-gutter));
  width: calc(100% + var(--page-gutter));
  max-width: none;
  min-width: 0;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

body.about-page.service-format
  section[aria-label="ACMS capabilities"]
  .feature-media
  img,
body.about-page.service-format
  section[aria-label="Camera analytics and support"]
  .feature-media
  img,
body.about-page.service-format
  section[aria-label="Telephone entry software platform"]
  .feature-media
  img {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.about-page.service-format
  section[aria-label="Cabling and standards"]
  .feature-media
  img,
body.about-page.service-format
  section[aria-label="Integration and value"]
  .feature-media
  img {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.feature-band .feature-copy {
  padding: 1.2rem 1.25rem;
}

.feature-band .feature-copy h2 {
  color: var(--text);
}

.feature-band .feature-copy p {
  color: var(--muted);
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 420px;
  display: block;
  object-fit: cover;
}

.feature-media {
  position: relative;
  overflow: visible;
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature-media.fade-right::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 72%,
    rgba(255, 253, 249, 0.55) 84%,
    rgba(255, 253, 249, 1) 100%
  );
}

.feature-media.fade-left::after {
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0) 72%,
    rgba(255, 253, 249, 0.55) 94%,
    rgba(255, 253, 249, 1) 100%
  );
}

.service-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.service-list li + li {
  margin-top: 0.2rem;
}

/* Section label + indented sub-bullets (e.g. Voice & Data cabling types) */
.service-list.service-list-tiered > .service-list-group {
  list-style: none;
  margin-left: -1.2rem;
  padding-left: 1.2rem;
  margin-top: 0.85rem;
}

.service-list.service-list-tiered > .service-list-group:first-child {
  margin-top: 0;
}

.service-list.service-list-tiered > .service-list-group > strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 1.02rem;
}

.service-list .service-list-nested {
  margin: 0 0 0.15rem;
  padding-left: 1.35rem;
  list-style-type: disc;
  color: var(--muted);
}

.service-list .service-list-nested li {
  margin-top: 0.35rem;
}

.service-list .service-list-nested li:first-child {
  margin-top: 0;
}

.service-list .service-list-nested li strong {
  color: var(--text);
  font-weight: 600;
}

.service-block {
  padding: 1rem;
}

body.service-editorial .service-cta {
  border: 1px solid #013694;
  background: #013694;
  text-align: center;
  padding: 1.25rem;
}

body.service-editorial .service-cta p {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

body.service-editorial .service-cta .btn-row {
  justify-content: center;
}

body.service-editorial .service-cta h2,
body.service-editorial .service-cta p,
body.service-editorial .service-cta a {
  color: #ffffff;
}

body.service-editorial .service-cta .btn:not(.primary) {
  border-color: rgba(34, 211, 238, 0.65);
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.22),
    rgba(34, 211, 238, 0.08)
  );
}

body.service-editorial .service-cta .btn.primary {
  border: 2px solid #1a1a1a;
  background: #ffff1f;
  color: #1f1f1f;
}

body.service-editorial .service-cta .btn.primary:hover {
  border-color: #141414;
  background: #e6e61a;
  color: #141414;
}

/* About page — editorial layout, light palette */
body.about-editorial {
  --bg: #fffdf9;
  --panel: #fffdf9;
  --text: #1f1f1f;
  --muted: #5d646c;
  --accent: #0b0fee;
  --accent2: #2f4f64;
  --border: rgba(31, 31, 31, 0.14);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: var(--bg);
}

body.certifications-page.about-editorial {
  --bg: #ffffff;
  --panel: #ffffff;
  background: #ffffff;
}

body.partners-page.about-editorial {
  --bg: #ffffff;
  --panel: #ffffff;
  background: #ffffff;
  color: #64748b;
}

body.partners-page.about-editorial .about-title-hero {
  margin-bottom: 0;
}

body.testimonials-page.about-editorial {
  --bg: #fffef6;
  --panel: #fffef6;
  --text: #1f1f1f;
  --muted: #5d646c;
  --accent: #0b0fee;
  --accent2: #2f4f64;
  --border: rgba(31, 31, 31, 0.14);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: #fffef6;
  color: var(--text);
}

body.testimonials-page.about-editorial main,
body.testimonials-page.about-editorial footer {
  background: #fffef6;
}

body.about-editorial .panel {
  background: var(--panel);
  border: none;
}

body.about-editorial .about-band {
  border: none;
  background: var(--panel);
}

/* Full-bleed bands: drop panel padding so stacked image rows meet flush */
body.about-page.about-editorial .feature-band.panel.about-band {
  padding: 0;
}

body.about-page.about-editorial .feature-band.about-band .feature-media img {
  max-height: none;
}

/* Vertically center copy with the image in two-column rows */
body.about-page.about-editorial .feature-band.about-band .feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
}

body.about-editorial .feature-media.fade-right::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 72%,
    rgba(255, 253, 249, 0.55) 84%,
    rgba(255, 253, 249, 1) 100%
  );
}

body.about-editorial .feature-media.fade-left::after {
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0) 72%,
    rgba(255, 253, 249, 0.55) 94%,
    rgba(255, 253, 249, 1) 100%
  );
}

body.about-editorial .intro-center h2,
body.about-editorial .feature-band .feature-copy h2,
body.about-editorial .section.panel h2 {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
}

body.about-editorial .intro-center p,
body.about-editorial .feature-band .feature-copy p,
body.about-editorial .section.panel p {
  font-size: 1.12rem;
  line-height: 1.75;
}

body.about-page.about-editorial
  section[aria-label="MISSION STATEMENT"].feature-band,
body.about-page.about-editorial
  section[aria-label="Responsibility and sustainability"].feature-band,
body.about-page.about-editorial section[aria-label="Partnerships"].feature-band,
body.about-page.about-editorial
  section[aria-label="Certifications"].feature-band {
  overflow: visible;
  border-radius: 0;
}

@media (min-width: 961px) {
  body.about-page.about-editorial
    section[aria-label="MISSION STATEMENT"]
    .feature-media,
  body.about-page.about-editorial
    section[aria-label="Responsibility and sustainability"]
    .feature-media {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: 0;
    width: calc(100% + var(--page-gutter));
  }

  body.about-page.about-editorial
    section[aria-label="Partnerships"]
    .feature-media,
  body.about-page.about-editorial
    section[aria-label="Certifications"]
    .feature-media {
    margin-right: calc(-1 * var(--page-gutter));
    margin-left: 0;
    width: calc(100% + var(--page-gutter));
  }
}

@media (max-width: 960px) {
  body.about-page.about-editorial
    section[aria-label="MISSION STATEMENT"]
    .feature-media,
  body.about-page.about-editorial
    section[aria-label="Responsibility and sustainability"]
    .feature-media,
  body.about-page.about-editorial
    section[aria-label="Partnerships"]
    .feature-media,
  body.about-page.about-editorial
    section[aria-label="Certifications"]
    .feature-media {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    width: calc(100% + 2 * var(--page-gutter));
  }
}

body.about-page
  section[aria-label="MISSION STATEMENT"].feature-band
  + section[aria-label="Responsibility and sustainability"].feature-band {
  margin-top: 0;
}

body.about-page
  section[aria-label="Responsibility and sustainability"].feature-band
  + section[aria-label="Partnerships"].feature-band {
  margin-top: 0;
}

body.about-page
  section[aria-label="Partnerships"].feature-band
  + section[aria-label="Certifications"].feature-band {
  margin-top: 0;
}

/* Certifications page: same full-bleed band behavior as About editorial */
body.certifications-page.about-page.about-editorial
  section[aria-label="Texas Licensing and DIR Contract"].feature-band,
body.certifications-page.about-page.about-editorial
  section[aria-label="Design and installation standards"].feature-band {
  overflow: visible;
  border-radius: 0;
}

/* Certifications: no edge blend on band photos; flat hero scrim (no gradient) */
body.certifications-page.about-editorial .feature-media.fade-right::after,
body.certifications-page.about-editorial .feature-media.fade-left::after {
  display: none;
}

body.certifications-page.about-editorial .about-title-hero-overlay {
  background: rgba(0, 0, 0, 0.35);
}

@media (min-width: 961px) {
  body.certifications-page.about-page.about-editorial
    section[aria-label="Texas Licensing and DIR Contract"]
    .feature-media,
  body.certifications-page.about-page.about-editorial
    section[aria-label="Design and installation standards"]
    .feature-media {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: 0;
    width: calc(100% + var(--page-gutter));
  }
}

@media (max-width: 960px) {
  body.certifications-page.about-page.about-editorial
    section[aria-label="Texas Licensing and DIR Contract"]
    .feature-media,
  body.certifications-page.about-page.about-editorial
    section[aria-label="Design and installation standards"]
    .feature-media {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    width: calc(100% + 2 * var(--page-gutter));
  }
}

/* Flush stack: no vertical gap between Texas + Design bands */
body.certifications-page.about-page.about-editorial
  section[aria-label="Texas Licensing and DIR Contract"].feature-band {
  margin-bottom: 0;
  padding-bottom: 0;
}

body.certifications-page.about-page.about-editorial
  section[aria-label="Texas Licensing and DIR Contract"].feature-band
  + section[aria-label="Design and installation standards"].feature-band {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

body.certifications-page.about-editorial
  section[aria-label="Texas Licensing and DIR Contract"]
  .feature-copy
  h2,
body.certifications-page.about-editorial
  section[aria-label="Design and installation standards"]
  .feature-copy
  h2 {
  color: var(--text);
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
}

body.certifications-page.about-editorial
  section[aria-label="Design and installation standards"]
  .feature-copy
  p {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.65;
}

body.certifications-page.about-editorial
  section[aria-label="Design and installation standards"]
  .feature-copy
  p
  strong {
  font-size: clamp(1.28rem, 2.1vw, 1.55rem);
  line-height: 1.4;
  font-weight: 600;
  color: #013694;
}

/* Certifications: center Design band copy vertically against the image column */
body.certifications-page.about-page.about-editorial
  section[aria-label="Design and installation standards"].feature-band {
  align-items: stretch;
}

body.certifications-page.about-page.about-editorial
  section[aria-label="Design and installation standards"]
  .feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
}

body.certifications-page.about-page.about-editorial
  section[aria-label="Design and installation standards"]
  .feature-media {
  display: flex;
  align-self: stretch;
  min-height: 0;
}

body.certifications-page.about-page.about-editorial
  section[aria-label="Design and installation standards"]
  .feature-media
  img {
  width: 100%;
  flex: 1 1 0;
  min-height: 260px;
  object-fit: contain;
}

body.about-editorial section[aria-label="MISSION STATEMENT"] .feature-copy h2 {
  color: var(--text);
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
}

body.about-editorial section[aria-label="MISSION STATEMENT"] .feature-copy p {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.65;
}

body.about-editorial
  section[aria-label="MISSION STATEMENT"]
  .feature-copy
  p
  strong {
  font-size: clamp(1.28rem, 2.1vw, 1.55rem);
  line-height: 1.4;
  font-weight: 600;
  color: #013694;
}

body.about-editorial
  section[aria-label="Responsibility and sustainability"]
  .feature-copy
  h2 {
  color: var(--text);
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
}

body.about-editorial
  section[aria-label="Responsibility and sustainability"]
  .feature-copy
  p {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.65;
}

body.about-editorial
  section[aria-label="Responsibility and sustainability"]
  .feature-copy
  p
  strong {
  font-size: clamp(1.28rem, 2.1vw, 1.55rem);
  line-height: 1.4;
  font-weight: 600;
  color: #013694;
}

body.about-editorial section[aria-label="Partnerships"] .feature-copy h2,
body.about-editorial section[aria-label="Certifications"] .feature-copy h2 {
  color: var(--text);
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.15;
}

body.about-editorial section[aria-label="Partnerships"] .feature-copy p,
body.about-editorial section[aria-label="Certifications"] .feature-copy p {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.65;
}

body.about-editorial section[aria-label="Partnerships"] .feature-copy p strong,
body.about-editorial
  section[aria-label="Certifications"]
  .feature-copy
  p
  strong {
  font-size: clamp(1.28rem, 2.1vw, 1.55rem);
  line-height: 1.4;
  font-weight: 600;
  color: #013694;
}

body.about-editorial .feature-band .feature-copy .about-band-list {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.65;
}

body.about-editorial .feature-band .feature-copy .about-band-list li + li {
  margin-top: 0.35rem;
}

body.about-editorial .feature-band .feature-copy .about-band-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.about-editorial .feature-band .feature-copy .about-band-cta {
  margin-top: 1.15rem;
}

body.about-editorial .feature-band .feature-copy .about-band-cta .btn {
  color: #013694;
  border-color: #013694;
  background: rgba(1, 54, 148, 0.06);
}

body.about-editorial .feature-band .feature-copy .about-band-cta .btn:hover {
  border-color: #013694;
  background: rgba(1, 54, 148, 0.12);
}

body.about-editorial .about-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--accent2);
}

body.about-editorial .about-title-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  max-height: 520px;
  margin-bottom: 1.1rem;
}

body.about-page.about-editorial .about-title-hero {
  margin-bottom: 0;
}

body.about-editorial .about-title-hero-image {
  width: 100%;
  height: 520px;
  min-height: 0;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: aboutHeroFloat 12s ease-in-out infinite alternate;
}

body.about-editorial .about-title-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem var(--page-gutter);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28));
}

body.about-editorial .about-title-hero-overlay h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.65rem, 4.5vw, 3rem);
  line-height: 1.12;
}

@keyframes aboutHeroFloat {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.04) translateY(-8px);
  }
}

body.about-editorial .about-cta {
  border: 1px solid #013694;
  background: #013694;
  text-align: center;
  padding: 1.25rem;
}

body.about-editorial .about-cta p {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

body.about-editorial .about-cta .btn-row {
  justify-content: center;
}

body.about-editorial .about-cta h2,
body.about-editorial .about-cta p,
body.about-editorial .about-cta a {
  color: #ffffff;
}

body.about-editorial .about-cta .btn:not(.primary) {
  border-color: rgba(34, 211, 238, 0.65);
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.22),
    rgba(34, 211, 238, 0.08)
  );
}

body.about-editorial .about-cta .btn.primary {
  border: 2px solid #1a1a1a;
  background: #ffff1f;
  color: #1f1f1f;
}

body.about-editorial .about-cta .btn.primary:hover {
  border-color: #141414;
  background: #e6e61a;
  color: #141414;
}

/* Testimonials — cream page shell; cards match About CTA blue (#013694) */
body.testimonials-page.about-editorial .testimonials-band {
  border: none;
  background: transparent;
  padding: 0;
  margin-top: clamp(2.75rem, 6vw, 4.75rem);
}

body.testimonials-page.about-editorial
  .testimonials-band
  .testimonials-card-grid {
  gap: 1.25rem;
}

body.testimonials-page.about-editorial .testimonials-band .card {
  background: #013694;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  padding: 1.6rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

body.testimonials-page.about-editorial .testimonials-band .quote {
  color: rgba(255, 255, 255, 0.94);
  flex: 1;
  line-height: 1.65;
}

body.testimonials-page.about-editorial .testimonials-band .icon {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.testimonials-page.about-editorial .testimonials-band .avatar {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

body.testimonials-page.about-editorial .testimonials-band .person strong {
  color: #ffffff;
}

body.testimonials-page.about-editorial .testimonials-band .person span {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 960px) {
  .feature-band {
    grid-template-columns: 1fr;
  }

  /* About + service detail pages: always show image above copy when stacked */
  body.about-page.about-editorial:not(.certifications-page)
    .feature-band
    .feature-media,
  body.about-page.service-format .feature-band .feature-media {
    order: 1;
  }

  body.about-page.about-editorial:not(.certifications-page)
    .feature-band
    .feature-copy,
  body.about-page.service-format .feature-band .feature-copy {
    order: 2;
  }

  /* Certifications: keep full manufacturer image visible on stacked layout */
  body.certifications-page.about-page.about-editorial
    section[aria-label="Design and installation standards"]
    .feature-media {
    background: #0a2f74;
  }

  body.certifications-page.about-page.about-editorial
    section[aria-label="Design and installation standards"]
    .feature-media
    img {
    height: auto;
    max-height: none;
    min-height: 0;
    object-fit: contain;
  }

  body.about-page.service-format
    section[aria-label="Integration and value"]
    .feature-copy,
  body.about-page.service-format
    section[aria-label="ACMS capabilities"]
    .feature-copy,
  body.about-page.service-format
    section[aria-label="Camera analytics and support"]
    .feature-copy,
  body.about-page.service-format
    section[aria-label="Telephone entry software platform"]
    .feature-copy {
    padding-right: 1.25rem;
  }

  body.about-page.service-format
    section[aria-label="Cabling and standards"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Integration and value"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Access infrastructure"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="ACMS capabilities"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Camera scope and infrastructure"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Camera analytics and support"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Camera proactive maintenance and support"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Telephone entry scope"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Telephone entry software platform"]
    .feature-media {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    width: calc(100% + 2 * var(--page-gutter));
    max-width: none;
  }

  /* Access / Camera / Telephone: drop desktop height caps when stacked — full-width photo
     band so images aren’t short strips above long copy */
  body.about-page.service-format
    section[aria-label="Access infrastructure"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Camera scope and infrastructure"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Camera proactive maintenance and support"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Telephone entry scope"]
    .feature-media {
    align-self: stretch;
    max-height: none;
    height: auto;
    min-height: min(56vh, 460px);
    display: flex;
    align-items: stretch;
  }

  body.about-page.service-format
    section[aria-label="Access infrastructure"]
    .feature-media
    img,
  body.about-page.service-format
    section[aria-label="Camera scope and infrastructure"]
    .feature-media
    img,
  body.about-page.service-format
    section[aria-label="Camera proactive maintenance and support"]
    .feature-media
    img,
  body.about-page.service-format
    section[aria-label="Telephone entry scope"]
    .feature-media
    img {
    max-height: none;
    min-height: min(56vh, 460px);
    height: min(56vh, 460px);
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
  }

  body.about-page.service-format
    section[aria-label="ACMS capabilities"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Camera analytics and support"]
    .feature-media,
  body.about-page.service-format
    section[aria-label="Telephone entry software platform"]
    .feature-media {
    align-self: stretch;
    max-height: none;
    height: auto;
    min-height: min(56vh, 480px);
    display: flex;
    align-items: stretch;
  }

  body.about-page.service-format
    section[aria-label="ACMS capabilities"]
    .feature-media
    img,
  body.about-page.service-format
    section[aria-label="Camera analytics and support"]
    .feature-media
    img,
  body.about-page.service-format
    section[aria-label="Telephone entry software platform"]
    .feature-media
    img {
    max-height: none;
    min-height: min(56vh, 480px);
    height: min(56vh, 480px);
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 19, 250, 0.315);
  padding: 1.05rem;
  min-height: 140px;
  display: block;
}
.card h3 {
  margin: 0.65rem 0 0.4rem;
  font-size: 1.02rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.key-box-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.key-box {
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 27, 51, 0.45);
  min-height: 280px;
  overflow: hidden;
}

.key-box-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.key-box-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 18, 0.2) 25%,
    rgba(7, 10, 18, 0.88) 100%
  );
  transition: background 220ms ease;
}

.key-box h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.key-box ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  color: #dce6ff;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 200ms ease,
    max-height 260ms ease;
}

.key-box li + li {
  margin-top: 0.3rem;
}

.key-box-link {
  margin-top: 0.8rem;
  color: #8fc1ff;
  font-weight: 600;
}

.key-box:hover,
.key-box:focus-visible {
  border-color: rgba(31, 79, 255, 0.6);
}

.key-box:hover .key-box-overlay,
.key-box:focus-visible .key-box-overlay {
  background: linear-gradient(
    180deg,
    rgba(7, 10, 18, 0.15) 8%,
    rgba(7, 10, 18, 0.94) 72%,
    rgba(7, 10, 18, 0.98) 100%
  );
}

.key-box:hover ul,
.key-box:focus-visible ul {
  opacity: 1;
  max-height: 180px;
}

@media (max-width: 1100px) {
  .key-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .key-box-grid {
    grid-template-columns: 1fr;
  }

  /* Services landing: photo on top, text block below (not full-bleed overlay) */
  body.services-page .key-box {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.services-page .key-box-image {
    order: 1;
    width: 100%;
    height: 220px;
    min-height: 200px;
    flex-shrink: 0;
  }

  body.services-page .key-box-overlay {
    order: 2;
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 1rem 1rem 1.25rem;
    background: linear-gradient(
      180deg,
      rgba(15, 27, 51, 0.55),
      rgba(15, 27, 51, 0.94)
    );
  }

  body.services-page .key-box ul {
    opacity: 1;
    max-height: none;
  }
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 79, 255, 0.35);
  background: rgba(31, 79, 255, 0.08);
}
.icon svg {
  opacity: 0.95;
}

.testimonial {
  position: relative;
}
.quote {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0.2rem 0 0.9rem;
}
.person {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}
.person strong {
  font-size: 0.98rem;
}
.person span {
  color: var(--muted);
  font-size: 0.9rem;
}

form {
  display: grid;
  gap: 0.9rem;
}
label {
  color: var(--muted);
  font-size: 0.92rem;
}
input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.85rem 0.9rem;
  outline: none;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: rgba(31, 79, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(31, 79, 255, 0.13);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll-in: sections fade up when entering the viewport (see scroll-reveal.js) */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 1.125rem, 0);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid #013694;
  color: var(--muted);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.foot-primary small {
  display: block;
  margin-top: 0.4rem;
}
.foot-trailing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  text-align: right;
  margin-left: auto;
}
.foot-trailing > small {
  display: block;
  margin-top: 0;
}
.foot-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.foot-logo:hover {
  opacity: 0.9;
}
.foot-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 14px;
}
.foot-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}
body.contact-page .foot-logo:focus-visible {
  outline-color: rgba(1, 54, 148, 0.85);
}
body.home .foot-logo:focus-visible {
  outline-color: rgba(147, 197, 253, 0.95);
}
