/* Homepage polish — Compunnel-inspired depth, motion (respects prefers-reduced-motion) */

body.home-page {
  --home-radius: 6px;
}

/* ——— Premium hero ——— */

.hero.hero--premium {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  background: #ffffff;
  /* Prevent 1px seam or photo “bleed” between hero and next section */
  margin-bottom: -2px;
  padding-bottom: 2px;
  box-sizing: border-box;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background: radial-gradient(ellipse 100% 80% at 15% 20%, rgba(216, 84, 28, 0.1), transparent 55%),
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(255, 160, 122, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(216, 84, 28, 0.08), transparent 55%);
  animation: iqMeshPulse 22s ease-in-out infinite alternate;
}

@keyframes iqMeshPulse {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.06) translate(-1%, 1%);
    opacity: 0.65;
  }
}

.hero__grid-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero.hero--premium .hero__inner.hero-carousel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 4.5rem;
  min-height: min(88vh, 820px);
}

.hero.hero--premium .hero-slide {
  display: none;
  position: relative;
  flex: 1;
  align-items: center;
  align-self: stretch;
  width: 100%;
  min-height: min(88vh, 820px);
  overflow: hidden;
  isolation: isolate;
}

.hero.hero--premium .hero-slide.is-active {
  display: flex;
}

.hero-slide__bg {
  position: absolute;
  inset: -4px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: #0c1526;
  transform-origin: center center;
  backface-visibility: hidden;
}

/* Shimmer while WebP hero is loading */
.hero-slide__bg:not([data-bg-loaded]) {
  background-size: 200% 100%;
  background-image: linear-gradient(105deg,
      #121c2e 0%,
      #1c2d4a 35%,
      #243a5c 50%,
      #1c2d4a 65%,
      #121c2e 100%);
  animation: iqShimmer 2.2s ease-in-out infinite;
}

@keyframes iqShimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.hero-slide__bg[data-bg-loaded] {
  transform: scale(1.02);
  animation: iqKenBurns 24s ease-in-out infinite alternate;
}

.hero-slide:not(.is-active) .hero-slide__bg[data-bg-loaded] {
  animation-play-state: paused;
}

.hero-slide.is-active .hero-slide__bg[data-bg-loaded] {
  animation-play-state: running;
}

@keyframes iqKenBurns {
  0% {
    transform: scale(1.03) translate(0, 0);
  }

  100% {
    transform: scale(1.1) translate(-1.5%, -0.5%);
  }
}

.hero-slide__scrim {
  position: absolute;
  inset: -2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0.8) 82%,
      rgba(255, 255, 255, 0.95) 100%),
    linear-gradient(105deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.6) 42%,
      rgba(255, 255, 255, 0.2) 72%,
      rgba(216, 84, 28, 0.05) 100%);
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(44rem, 100%);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 1rem;
}

.hero.hero--premium .hero-eyebrow {
  color: var(--color-brand);
  letter-spacing: 0.14em;
  font-weight: 700;
}

.hero.hero--premium h1 {
  max-width: 42rem;
  font-size: clamp(2rem, 4.5vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--color-text);
  text-shadow: none;
}

.hero.hero--premium .hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  max-width: 38rem;
  line-height: 1.65;
}

.hero-carousel__controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.25rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.25rem;
  pointer-events: none;
}

.hero-carousel__controls>* {
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-carousel__controls {
    bottom: 1.75rem;
  }
}

.hero-arrow {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--home-radius);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 84, 28, 0.25);
}

.hero-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.hero.hero--premium .hero-dots {
  margin-right: auto;
  align-items: center;
  padding-left: 0;
}

.hero.hero--premium .hero-dots button {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--color-text-muted);
  border: none;
  border-radius: 50%;
  opacity: 0.3;
  transition: all 0.2s ease;
}

.hero.hero--premium .hero-dots button[aria-selected="true"] {
  opacity: 1;
  background: var(--color-brand);
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--color-brand-subtle);
}

@media (prefers-reduced-motion: reduce) {

  .hero__mesh,
  .hero-slide__bg,
  .hero-slide__bg:not([data-bg-loaded]),
  .hero-slide__bg[data-bg-loaded],
  .hero-slide.is-active .hero-slide__bg {
    animation: none !important;
  }

  .hero-slide__bg[data-bg-loaded] {
    transform: none;
  }
}

/* ——— Logo marquee ——— */

.logo-marquee-wrap {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.logo-marquee-wrap__head {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.logo-marquee {
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 1.25rem 1.25rem 1.75rem;
  animation: iqMarquee 36s linear infinite;
  white-space: nowrap;
}

@keyframes iqMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.logo-marquee__item {
  font-size: 0.95rem;
  font-weight: 700;
  color: #9aa3b2;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    transform: none;
  }
}


/* ——— Services section headline ——— */

.section--services-home .section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section--services-home .section-head {
  max-width: 38rem;
}

/* Service card photography layer */
.service-card:has(.service-card__photo)::after {
  display: none;
}

.service-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  pointer-events: none;
}

.service-card:hover .service-card__photo {
  transform: scale(1.06);
}

.service-card:has(.service-card__photo)::before {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.88) 100%);
  z-index: 1;
}

.service-card--ai .service-card__photo {
  background-image: url("https://images.unsplash.com/photo-1620712943543-bcc4688e7485?auto=format&fit=crop&w=1400&q=80");
}

.service-card--dt .service-card__photo {
  background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1400&q=80");
}

.service-card--staff .service-card__photo {
  background-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1400&q=80");
}

/* Industries visual cards */
.industry-card.industry-card--visual {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  border: none;
  box-shadow: 0 12px 48px rgba(15, 23, 41, 0.12);
  border-radius: var(--home-radius);
}

.industry-card--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease;
  z-index: 0;
}

.industry-card--visual:hover::before {
  transform: scale(1.05);
}

.industry-card--visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(255, 255, 255, 0.92) 100%);
  z-index: 1;
}

.industry-card--visual .industry-card__content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}

.industry-card--visual h3 {
  color: var(--color-text);
  font-size: 1.35rem;
}

.industry-card--visual p {
  color: var(--color-text-muted);
}

.industry-card--public::before {
  background-image: url("https://images.unsplash.com/photo-1569163139394-de4798aa62b7?auto=format&fit=crop&w=1200&q=80");
}

.industry-card--commercial::before {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80");
}

/* Partners strip with logos */
.partners-strip--logos .partners-strip__inner {
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.25rem;
}

.partners-strip__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.partners-strip__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.partner-logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 0.2s, filter 0.2s;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* CTA band gradient */
.cta-band.cta-band--premium {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #0a1629 0%, #132a4a 45%, #1a5c45 100%);
}

.cta-band.cta-band--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 90% 20%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.cta-band.cta-band--premium .cta-band__inner {
  position: relative;
  z-index: 1;
}

/* ——— Scroll reveal ——— */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}



/* ——— Mega footer (homepage) ——— */

.site-footer--mega {
  background: #060a12;
  color: #a8b0bc;
  font-size: 0.875rem;
}

.site-footer--mega a {
  color: #e8ecf2;
  text-decoration: none;
}

.site-footer--mega a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__mega-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  display: grid;
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 960px) {
  .site-footer__mega-inner {
    grid-template-columns: minmax(14rem, 1.1fr) minmax(0, 3fr);
    align-items: start;
  }
}

.site-footer__brand-col {
  max-width: 22rem;
}

.site-footer__brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer__brand-mark:hover {
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
}

.site-footer__brand-name {
  display: block;
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 1.15rem;
}

.site-footer__brand-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #8b95a5;
}

.site-footer__brand-copy {
  margin: 0 0 1.25rem;
  line-height: 1.55;
  color: #9aa3b2;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--home-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8ecf2;
}

.site-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #fff;
}

.site-footer__mega-cols {
  display: grid;
  gap: 1.75rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .site-footer__mega-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .site-footer__mega-cols {
    grid-template-columns: repeat(5, 1fr);
  }
}

.site-footer__mega-col h3 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.site-footer__mega-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__mega-col li {
  margin-bottom: 0.55rem;
}

.site-footer__mega-col--contact .site-footer__contact-line {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
}

.site-footer__mega-cta {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

@media (min-width: 1100px) {
  .site-footer__mega-cta {
    width: auto;
    display: inline-flex;
  }
}

.site-footer__locations {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__locations-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-footer__locations-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer__locations h3 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.site-footer__locations p {
  margin: 0;
  line-height: 1.55;
  color: #9aa3b2;
}

.site-footer__legal {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__legal-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .site-footer__legal-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal-links a {
  font-size: 0.8rem;
  color: #c5ccd6;
}

.site-footer__legal-copy {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7585;
  max-width: 28rem;
}

.site-footer__bottom--mega {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 2.25rem;
  border-top: none;
}

.site-footer__bottom--mega p {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7585;
}