:root {
  --ink-950: #0a1126;
  --ink-900: #0f1b38;
  --ink-800: #1b2a4f;
  --ink-700: #2b3f6d;
  --slate-300: #c7d0e0;
  --slate-200: #dde3ee;
  --slate-100: #edf1f7;
  --paper: #f7f9fc;
  --white: #ffffff;
  --accent: #cc3300;
  --accent-soft: #e26a44;
  /* Engitech-style CTA (primary orange, sharp geometry) */
  --btn-primary: #ff5e14;
  --btn-primary-hover: #ea5612;
  --btn-primary-active: #cf4a0f;
  --btn-cta-radius: 0;
  --text-main: #162342;
  --text-soft: #5e6c88;
  --radius-sm: 9px;
  --radius-md: 12px;
  --shadow-sm: 0 8px 22px rgba(9, 21, 50, 0.06);
  --shadow-md: 0 14px 30px rgba(8, 18, 44, 0.1);
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-heading: "Montserrat", "Nunito Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.68;
  font-weight: 500;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: #0f1d3c;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.08rem, 1.25vw, 1.28rem);
  font-weight: 700;
}

p {
  color: var(--text-soft);
  line-height: 1.72;
}

/* Motion foundation: restrained reveal + reduced-motion support */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease, border-color 180ms ease, box-shadow 180ms ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-shell {
  background: #0f1b38;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--white);
}

.brand-text-soft {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.brand-logo {
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--white);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

.btn-brand {
  background: var(--btn-primary);
  color: var(--white);
  border: 2px solid var(--btn-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: var(--btn-cta-radius);
  padding: 0.78rem 1.65rem;
  box-shadow: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--white);
  box-shadow: none;
}

.btn-brand:active {
  background: var(--btn-primary-active);
  border-color: var(--btn-primary-active);
  box-shadow: none;
}

.btn:focus-visible,
footer a:focus-visible,
.nav-link:focus-visible,
.service-card-more:focus-visible {
  outline: 2px solid rgba(255, 94, 20, 0.65);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-top-nav .btn-brand {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  padding: 0.65rem 1.35rem;
}

.hero .btn-brand {
  font-size: 0.8125rem;
  letter-spacing: 0.11em;
  padding: 0.82rem 1.75rem;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-image: url("../img/Edmonton.jpg");
  background-color: #0f1b38;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark gradient: heavy veil on the left (copy column), easing toward the photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      108deg,
      rgba(8, 16, 34, 0.86) 0%,
      rgba(10, 20, 42, 0.64) 40%,
      rgba(14, 28, 56, 0.3) 72%
    ),
    linear-gradient(
      90deg,
      rgba(8, 14, 30, 0.9) 0%,
      rgba(10, 18, 38, 0.78) 20%,
      rgba(14, 24, 46, 0.62) 42%,
      rgba(20, 34, 58, 0.44) 64%,
      rgba(28, 44, 70, 0.3) 82%,
      rgba(36, 54, 80, 0.24) 100%
    );
}

/* Sibling of .hero-shell so sticky isn’t clipped when the header block ends */
.site-top-nav {
  --nav-sticky-bg: rgba(15, 27, 56, 0.86);
  --nav-solid-bg: #0f1b38;
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  background: var(--nav-solid-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.28s ease;
}

/* Translucent bar only once page content scrolls underneath (see site-motion.js) */
.site-top-nav.site-top-nav--overlapping {
  background: var(--nav-sticky-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-top-nav > .container {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: 0;
  padding-bottom: 0;
}

.site-top-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.site-top-nav .navbar-toggler-icon {
  filter: invert(1) brightness(1.08);
}

.site-top-nav .navbar-collapse {
  transition: all 180ms ease;
}

.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 1020;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--btn-cta-radius);
  background: var(--ink-900);
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(8, 16, 34, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--ink-800);
  color: var(--white);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--btn-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition-duration: 0.01ms;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .row {
  --bs-gutter-y: 2rem;
  min-height: 510px;
}

.hero h1 {
  max-width: none;
  width: 100%;
  margin-bottom: 1.5rem;
  line-height: 1.08;
  color: #ffffff;
  font-size: clamp(2.05rem, 3.8vw, 2.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.93);
  max-width: 560px;
  font-size: 1.03rem;
  line-height: 1.8;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 1.7rem !important;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.hero .eyebrow {
  margin-bottom: 1.75rem !important;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.hero .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--white);
  background: transparent;
  border-radius: var(--btn-cta-radius);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.82rem 1.75rem;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.hero .btn.btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  line-height: 1;
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
  transform: translateY(0.04em);
}

.trust-strip {
  background: #f5f7fb;
  border-top: 1px solid #dce2ee;
  border-bottom: 1px solid #dce2ee;
  padding: 1.25rem 0;
}

.trust-strip-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.trust-strip-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: trustStripLoop 48s linear infinite;
  will-change: transform;
}

@keyframes trustStripLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .trust-strip-marquee:hover .trust-strip-track {
    animation-play-state: paused;
  }
}

.trust-strip-list {
  margin: 0;
  padding: 0.35rem 2rem 0.35rem 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  column-gap: 2.75rem;
}

.trust-strip-list li {
  color: #475673;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-strip-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a96ad;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--white);
}

/* Hero staged entrance */
.hero-enter {
  opacity: 0;
  transform: translateY(12px);
  animation: heroEnter 620ms ease forwards;
}

.hero-enter-1 { animation-delay: 90ms; }
.hero-enter-2 { animation-delay: 170ms; }
.hero-enter-3 { animation-delay: 250ms; }
.hero-enter-4 { animation-delay: 330ms; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 1.75rem !important;
}

.mini-proof span {
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.mini-proof span:last-child {
  border-right: 0;
  padding-right: 0;
}

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

.section-soft {
  background: var(--paper);
}

.stats-bar {
  border-bottom: 1px solid var(--slate-200);
  background: #fbfcff;
}

.stat-item {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
}

.stat-item strong {
  color: var(--ink-800);
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  margin-right: 0.15rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 3.2rem !important;
}

.section-heading h2 {
  margin-bottom: 1rem;
  line-height: 1.14;
  color: #101f3f;
}

.section-heading p {
  color: var(--text-soft);
  line-height: 1.76;
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1rem;
}

#services .section-heading,
#inner-layout .section-heading {
  margin-bottom: 3.55rem !important;
}

/* Engitech Home-15–style band (services + how we deliver) */
.section-services {
  background: #eef1f7;
}

#projects .row,
#about .row {
  --bs-gutter-y: 2.2rem;
}

.eyebrow-dark {
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.67rem;
  font-weight: 800;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 4px;
  padding: 2rem 1.75rem 1.65rem;
  box-shadow: 0 10px 36px rgba(15, 27, 56, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 27, 56, 0.11);
  border-color: #d8deeb;
}

/* Stacked tile + white Font Awesome glyph (site primary orange) */
.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 1.35rem;
  border-radius: 10px;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  background: linear-gradient(
    152deg,
    #ff7a38 0%,
    var(--btn-primary) 45%,
    var(--btn-primary-active) 100%
  );
  box-shadow: 0 8px 22px rgba(255, 94, 20, 0.38);
}

.service-card-icon i {
  display: block;
  line-height: 1;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 1.2vw, 1.3rem);
  font-weight: 700;
  margin: 0 0 1.05rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #0f1b38;
  max-width: 22ch;
}

.service-card-body {
  flex: 1 1 auto;
  width: 100%;
}

.service-card-lead {
  color: #5a6578;
  margin-bottom: 1rem;
  line-height: 1.72;
  font-size: 0.94rem;
  max-width: 56ch;
}

.service-card .service-points {
  margin: 0;
  padding-left: 1.05rem;
  color: #6b7a93;
  font-size: 0.86rem;
  line-height: 1.58;
}

.service-card .service-points li {
  margin-bottom: 0.4rem;
  padding-left: 0.05rem;
}

.service-card .service-points li:last-child {
  margin-bottom: 0;
}

.service-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid #edf0f6;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0f1b38;
  transition: color 0.2s ease;
}

.service-card-more-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.service-card-more:hover,
.service-card-more:focus-visible {
  color: var(--btn-primary);
}

.service-card:hover .service-card-more-icon {
  transform: translateX(5px);
}

.service-kicker {
  margin: 0 0 1rem;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: #4c5873;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.service-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #5f6b86;
}

.project-list {
  color: var(--text-soft);
  padding-left: 1.2rem;
  font-size: 0.96rem;
  line-height: 1.72;
  margin-bottom: 1.7rem !important;
}

.project-list li {
  margin-bottom: 0.45rem;
}

.project-meta {
  display: grid;
  gap: 0.75rem;
}

.project-meta-group {
  background: #f6f8fc;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem 0.75rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-meta-group:hover {
  border-color: #c7d1e3;
  box-shadow: 0 3px 10px rgba(16, 30, 58, 0.05);
  transform: translateY(-1px);
}

.project-meta-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #12234a;
  margin: 0 0 0.45rem;
}

.project-meta-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #4f5f7b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-meta-list li {
  position: relative;
  margin-bottom: 0.38rem;
  padding-left: 1.35rem;
}

.project-meta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #2d4577 0%, var(--ink-800) 62%, var(--ink-900) 100%);
  box-shadow: 0 0 0 2px rgba(27, 42, 79, 0.16);
}

.project-meta-list li:last-child {
  margin-bottom: 0;
}

.project-visual {
  margin: 0;
  background: #eef2f8;
  border: 1px solid #d4dcea;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: 0 8px 20px rgba(10, 23, 48, 0.08);
}

.project-visual-media {
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
  min-height: 360px;
  background: #d9e0ee;
}

.project-visual-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (min-width: 992px) {
  #projects .project-visual--featured {
    min-height: 100%;
  }

  #projects .project-visual--featured .project-visual-media {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 670px;
  }

  #projects .project-visual--featured .project-visual-img {
    flex: 1 1 auto;
    width: 100%;
    min-height: 670px;
    height: auto;
    object-fit: cover;
  }
}

.project-visual-caption {
  margin-top: 0.4rem;
  padding-top: 0.34rem;
  border-top: 1px solid #e7ebf3;
  font-size: 0.71rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #72819b;
  font-weight: 500;
}

.btn-project-secondary {
  background: transparent;
  color: var(--ink-900);
  border: 2px solid var(--ink-800);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-radius: var(--btn-cta-radius);
  padding: 0.78rem 1.65rem;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn-project-secondary:hover,
.btn-project-secondary:focus {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
}

.project-cta-actions .btn-brand,
.project-cta-actions .btn-project-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 2.85rem;
  padding-top: 0.76rem;
  padding-bottom: 0.76rem;
}

.dmv-modal .modal-header,
.dmv-modal .modal-footer {
  border-color: #d8dfeb;
}

.dmv-modal .modal-header {
  padding: 1.1rem 1.5rem;
}

.dmv-modal .modal-footer {
  padding: 0.9rem 1.5rem 1.1rem;
}

.dmv-modal .modal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #102246;
}

.dmv-modal-body {
  max-height: min(72vh, 900px);
  padding: 1.4rem 1.85rem 1.75rem;
}

.dmv-modal-body > p:first-of-type {
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.68;
}

.dmv-modal-body p {
  color: #4d5d79;
  font-size: 0.94rem;
  line-height: 1.68;
  margin-bottom: 0.6rem;
}

.dmv-modal-intro {
  margin: 0 0 1.35rem;
  padding: 1rem 1.05rem 1.05rem;
  background: #f6f8fc;
  border: 1px solid #dce3ef;
  border-radius: var(--radius-sm);
}

.dmv-modal-intro-lead {
  margin: 0 0 0.85rem !important;
  color: #3a4d6e !important;
  font-size: 0.92rem !important;
  line-height: 1.62 !important;
}

.dmv-modal-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.dmv-modal-summary-list li {
  padding: 0.28rem 0.62rem;
  border: 1px solid #cfd8e8;
  border-radius: 999px;
  background: #ffffff;
  color: #32466b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.dmv-modal-section {
  padding-top: 1.05rem;
  margin-top: 1.2rem;
  border-top: 1px solid #e6eaf2;
}

.dmv-modal-section h4 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.55rem;
  color: #12234a;
  line-height: 1.3;
}

.dmv-modal-section > p {
  margin-bottom: 0.5rem;
}

.dmv-modal-section > p + ul {
  margin-top: 0.15rem;
}

.dmv-modal-section ul {
  margin: 0 0 0.35rem;
  padding-left: 1.15rem;
  color: #4d5d79;
  font-size: 0.925rem;
  line-height: 1.62;
}

.dmv-modal-section li {
  margin-bottom: 0.38rem;
  padding-left: 0.15rem;
}

.dmv-modal-section li:last-child {
  margin-bottom: 0;
}

.dmv-modal-section ul + p {
  margin-top: 0.85rem;
}

@media (max-width: 991.98px) {
  .project-visual-media,
  .project-visual-img {
    min-height: 320px;
  }
}

/* Match .service-card shell (How projects are delivered) */
.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 4px;
  padding: 2rem 1.75rem 1.65rem;
  box-shadow: 0 10px 36px rgba(15, 27, 56, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.detail-main:hover,
.detail-side:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 27, 56, 0.11);
  border-color: #d8deeb;
}

#inner-layout .detail-main .service-kicker,
#inner-layout .detail-side .service-kicker {
  color: var(--ink-800);
  margin-bottom: 0.55rem;
}

#inner-layout .detail-main .service-kicker::before,
#inner-layout .detail-side .service-kicker::before {
  background: var(--ink-800);
  opacity: 0.85;
}

#inner-layout .detail-main .service-card-title,
#inner-layout .detail-side .service-card-title {
  margin-bottom: 1.05rem;
  max-width: none;
}

#inner-layout .delivery-card-body p {
  color: #5a6578;
  line-height: 1.72;
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

#inner-layout .delivery-card-body p:last-child {
  margin-bottom: 0;
}

#inner-layout .delivery-card-body strong {
  color: #0f1b38;
  font-weight: 700;
}

#inner-layout .detail-side .service-points {
  width: 100%;
  margin: 0 0 1.25rem;
  padding-left: 1.05rem;
  color: #6b7a93;
  font-size: 0.86rem;
  line-height: 1.58;
}

#inner-layout .detail-side .service-points li {
  margin-bottom: 0.4rem;
}

#inner-layout .detail-side .service-points li:last-child {
  margin-bottom: 0;
}

#inner-layout .service-card-icon {
  background: linear-gradient(
    152deg,
    #3c5382 0%,
    var(--ink-800) 45%,
    var(--ink-900) 100%
  );
  box-shadow: 0 8px 22px rgba(27, 42, 79, 0.32);
}

#inner-layout .btn-brand {
  background: var(--ink-800);
  border-color: var(--ink-800);
}

#inner-layout .btn-brand:hover,
#inner-layout .btn-brand:focus {
  background: var(--ink-700);
  border-color: var(--ink-700);
}

#inner-layout .btn-brand:active {
  background: var(--ink-900);
  border-color: var(--ink-900);
}

.qa-prose p {
  color: var(--text-soft);
  line-height: 1.74;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.qa-prose p:last-child {
  margin-bottom: 0;
}

.qa-prose strong {
  color: #0f1b38;
  font-weight: 700;
}

#quality-assurance .section-heading p {
  max-width: 62ch;
}

.about-prose {
  max-width: none;
}

.about-prose > p {
  max-width: 62ch;
  line-height: 1.74;
}

.about-prose h2 {
  max-width: 22ch;
  margin-bottom: 1.05rem !important;
}

/* Our Story — matches project visual frame (services section tone) */
#about .about-visual {
  margin: 0;
  background: #eef2f8;
  border: 1px solid #d4dcea;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: 0 8px 20px rgba(10, 23, 48, 0.08);
}

#about .about-visual-media {
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
  min-height: 260px;
  background: #d9e0ee;
}

#about .about-visual-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

#about .about-visual-caption {
  flex-shrink: 0;
  margin-top: 0.4rem;
  padding-top: 0.34rem;
  border-top: 1px solid #e7ebf3;
  font-size: 0.71rem;
  letter-spacing: 0.02em;
  color: #72819b;
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 992px) {
  #about .about-visual {
    min-height: 100%;
  }

  #about .about-visual-media {
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 320px;
  }

  #about .about-visual-img {
    flex: 1 1 auto;
    min-height: 320px;
    height: auto;
    object-fit: cover;
  }
}

#about.section-pad {
  padding-top: 92px;
  padding-bottom: 88px;
  border-top: 1px solid #d8e0eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.about-eyebrow::before {
  content: "";
  width: 2px;
  height: 0.9rem;
  background: #49556f;
  border-radius: 1px;
}

.about-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: #102246;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 34, 70, 0.2);
  padding-bottom: 0.18rem;
}

.about-link:hover {
  border-bottom-color: #102246;
}

.about-facts {
  display: grid;
  gap: 0.9rem;
}

.about-fact {
  background: #f5f7fb;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.1rem;
  box-shadow: 0 1px 0 rgba(16, 37, 77, 0.02);
}

.about-fact strong {
  display: block;
  color: #111f3e;
  font-family: var(--font-heading);
  font-size: 1.14rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.about-fact span {
  color: #505f7b;
  font-size: 0.96rem;
  line-height: 1.48;
}

.contact-cta {
  background: linear-gradient(180deg, #13264c 0%, #101f3e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 7.15rem;
  padding-bottom: 6.6rem;
  border-top: 1px solid rgba(8, 16, 34, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(204, 51, 0, 0.15) 0%, rgba(204, 51, 0, 0) 48%);
  pointer-events: none;
}

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

.contact-cta .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.contact-head {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-cta h2 {
  color: #ffffff;
}

.contact-offices {
  --bs-gutter-y: 1.3rem;
}

/* Same shell as .service-card (radius, padding, lift) — contact CTA colors unchanged */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 2rem 1.75rem 1.65rem;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease,
    background-color 0.28s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.contact-card h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: clamp(1.08rem, 1.1vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0 0 1.05rem;
}

.contact-card h3 span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.contact-line,
.contact-hours {
  margin: 0 0 0.52rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-address {
  margin: 0.45rem 0 0.65rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-card a:hover,
.contact-card a:focus {
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

footer {
  background: #0a1126;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  color: #ffc1ad;
}

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

  .hero {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-position: 72% center;
  }

  .site-top-nav .navbar-collapse {
    margin-top: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.6rem 0.7rem 0.75rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-top-nav .navbar-nav .nav-link {
    padding: 0.6rem 0.45rem;
    border-radius: 6px;
  }

  .site-top-nav .navbar-nav .nav-link:hover,
  .site-top-nav .navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.06);
  }

  .site-top-nav .navbar-nav .btn-brand {
    width: 100%;
    margin-top: 0.45rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 5.2vw, 2.45rem);
  }

  .trust-strip {
    padding: 1.05rem 0;
  }

  .trust-strip-list {
    column-gap: 2rem;
    padding-right: 1.5rem;
  }

  .trust-strip-list li {
    font-size: 0.82rem;
  }

  .trust-strip-track {
    animation-duration: 56s;
  }

  .mini-proof span {
    border-right: 0;
    padding-right: 0;
  }

  .section-heading {
    margin-bottom: 2.55rem !important;
  }

  #services .section-heading,
  #inner-layout .section-heading {
    margin-bottom: 2.8rem !important;
  }

  .contact-cta {
    padding-top: 5.6rem;
    padding-bottom: 5.2rem;
  }

  .contact-head {
    margin-bottom: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .trust-strip-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .trust-strip-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    row-gap: 0.65rem;
  }

  .trust-strip-list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.35rem 0;
    column-gap: 2rem;
    row-gap: 0.55rem;
  }

  .trust-strip-list--clone {
    display: none;
  }

  .reveal-on-scroll,
  .hero-enter {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .project-meta-group,
  .contact-card,
  .service-card,
  .detail-main,
  .detail-side,
  .btn-brand,
  .nav-link::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .service-card:hover .service-card-more-icon {
    transform: none !important;
  }
}