@import url("./interactive-cards.css?v=20261125-1");

/* AB LIT CONSULT — cinematic 3D hero system */
:root {
  --cinematic-navy: #001224;
  --cinematic-blue: #075fd9;
  --cinematic-cyan: #10d9ec;
  --cinematic-x: 0deg;
  --cinematic-y: 0deg;
}

/* The supplied logo contains dark lettering, so give it a clean light plate over dark heroes. */
.home-v2 .v2-header:not(.is-scrolled) .brand {
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(0,8,20,.22);
  backdrop-filter: blur(10px);
}

.home-v2 .v2-header.is-scrolled .brand {
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.v2-carousel,
.service-page-hero,
.about-v2-hero,
.projects-v2-hero,
.services-hero-refresh,
.contact-v2-hero,
.reference-blog-hero,
.single-blog-hero {
  isolation: isolate;
  perspective: 1400px;
}

/* Homepage: the image is presented as a lit 3D scene instead of a flat backdrop. */
.v2-carousel {
  min-height: 680px;
  background:
    radial-gradient(circle at 78% 30%, rgba(16, 217, 236, .19), transparent 24%),
    radial-gradient(circle at 54% 92%, rgba(7, 95, 217, .25), transparent 34%),
    linear-gradient(128deg, #00101f 0%, #001d3a 58%, #003c6c 100%);
}

.v2-carousel::before,
.v2-carousel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.v2-carousel::before {
  z-index: 1;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 50%, #000 100%);
}

.v2-carousel::after {
  z-index: 3;
  right: 8%;
  bottom: 5%;
  width: 38%;
  height: 18%;
  border-radius: 50%;
  background: rgba(0, 160, 232, .28);
  filter: blur(54px);
  transform: rotate(-9deg);
}

.v2-slide {
  background: transparent !important;
  transform: none;
  transition: opacity .62s ease, visibility .62s ease;
}

.v2-slide::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 104px -4vw 58px 47%;
  border: 1px solid rgba(170, 237, 255, .3);
  border-radius: 34px;
  background-image:
    linear-gradient(135deg, rgba(0, 15, 35, .08), rgba(0, 22, 52, .08)),
    var(--slide-image);
  background-position: center;
  background-size: cover;
  box-shadow:
    -30px 42px 80px rgba(0, 5, 20, .48),
    0 0 0 9px rgba(255, 255, 255, .025),
    0 0 68px rgba(16, 217, 236, .17);
  filter: saturate(1.12) contrast(1.05);
  transform: perspective(1250px) rotateY(calc(-8deg + var(--cinematic-x))) rotateX(calc(2deg + var(--cinematic-y))) translateZ(0);
  transform-origin: 50% 50%;
  transition: transform .28s ease-out, opacity .6s ease;
}

.v2-slide::after {
  z-index: 1;
  inset: 0;
  height: auto;
  background:
    linear-gradient(90deg, #00101f 0%, rgba(0,16,31,.98) 34%, rgba(0,16,31,.72) 50%, transparent 74%),
    linear-gradient(180deg, rgba(0,10,22,.22), transparent 65%, rgba(0,10,22,.75));
}

.v2-slide:not(.is-active)::before {
  opacity: 0;
  transform: perspective(1250px) rotateY(-13deg) rotateX(4deg) translateX(52px) scale(.96);
}

.v2-slide-inner {
  z-index: 4;
}

.v2-slide-copy {
  position: relative;
  max-width: 590px;
  margin-left: 38px;
  padding: 32px 34px 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-left-color: rgba(16,217,236,.62);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0,15,31,.72), rgba(0,24,48,.28));
  box-shadow: 0 28px 70px rgba(0,7,20,.27);
  backdrop-filter: blur(10px);
}

.v2-slide-copy::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cinematic-cyan));
  box-shadow: 0 0 18px var(--cinematic-cyan);
}

.v2-slide h1,
.v2-slide h2 {
  text-shadow: 0 8px 28px rgba(0,0,0,.34);
}

.v2-carousel-arrow {
  background: rgba(0,18,38,.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 14px 34px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}

/* Service pages: image stage on the right with a soft cinematic rim light. */
[data-service-slug="website-development"] { --cinematic-image: url("../images/generated/ab-lit-consult-hero-workspace.webp"); }
[data-service-slug="social-media-management"] { --cinematic-image: url("../images/generated/social-media-advertising.webp"); }
[data-service-slug="ai-video-content"] { --cinematic-image: url("../images/generated/ai-video-production.webp"); }
[data-service-slug="branding-digital-identity"] { --cinematic-image: url("../images/generated/ab-lit-consult-hero-workspace.webp"); }
[data-service-slug="security-systems"] { --cinematic-image: url("../images/cctv-control-room-screens.webp"); }

.service-page-hero,
.reference-service-page .service-page-hero {
  min-height: 500px;
  padding: 64px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(16,217,236,.18), transparent 23%),
    radial-gradient(circle at 58% 110%, rgba(7,95,217,.28), transparent 38%),
    linear-gradient(125deg, #00101f 0%, #001d3b 56%, #004575 100%) !important;
}

.service-page-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 54px;
  right: -2.5%;
  bottom: 54px;
  width: 52%;
  border: 1px solid rgba(160,232,255,.28);
  border-radius: 34px;
  background-image:
    linear-gradient(90deg, rgba(0,18,39,.15), rgba(0,18,39,0)),
    var(--cinematic-image);
  background-position: center;
  background-size: cover;
  box-shadow:
    -28px 38px 74px rgba(0,5,20,.44),
    0 0 0 9px rgba(255,255,255,.025),
    0 0 64px rgba(16,217,236,.16);
  filter: saturate(1.13) contrast(1.04);
  transform: perspective(1250px) rotateY(calc(-7deg + var(--cinematic-x))) rotateX(calc(2deg + var(--cinematic-y)));
  transform-origin: center;
  transition: transform .28s ease-out;
}

.service-page-hero::after,
.reference-service-page .service-page-hero::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, #00101f 0%, rgba(0,16,31,.99) 37%, rgba(0,16,31,.74) 53%, transparent 76%),
    linear-gradient(180deg, rgba(0,7,18,.1), transparent 62%, rgba(0,7,18,.5));
  pointer-events: none;
}

.service-page-hero-grid {
  z-index: 3;
}

.reference-service-page .service-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
}

.reference-service-page .service-page-hero-copy {
  width: auto;
  max-width: 680px;
  padding: 28px 30px 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-left-color: rgba(16,217,236,.6);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,15,31,.74), rgba(0,27,53,.24));
  box-shadow: 0 28px 64px rgba(0,7,20,.24);
  backdrop-filter: blur(9px);
}

.service-page-hero h1 {
  text-shadow: 0 9px 30px rgba(0,0,0,.34);
}

/* About, projects, services, contact and blog use the same lighting language. */
.about-v2-hero,
.contact-v2-hero,
.reference-contact-page .contact-v2-hero,
.reference-blog-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 24%, rgba(16,217,236,.2), transparent 24%),
    linear-gradient(125deg, #00101f 0%, #001f40 57%, #00517e 100%) !important;
}

.about-v2-hero::before,
.contact-v2-hero::before,
.reference-blog-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 42px;
  right: -3%;
  bottom: 42px;
  width: 53%;
  border: 1px solid rgba(160,232,255,.28);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(0,18,39,.06), transparent),
    url("../images/generated/ab-lit-consult-hero-workspace.webp") center/cover;
  box-shadow: -25px 34px 70px rgba(0,5,20,.42), 0 0 58px rgba(16,217,236,.14);
  filter: saturate(1.12) contrast(1.04);
  transform: perspective(1200px) rotateY(calc(-7deg + var(--cinematic-x))) rotateX(calc(2deg + var(--cinematic-y)));
  transition: transform .28s ease-out;
}

.about-v2-hero::after,
.contact-v2-hero::after,
.reference-blog-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #00101f 0%, rgba(0,16,31,.98) 39%, rgba(0,16,31,.7) 55%, transparent 78%);
  pointer-events: none;
}

.about-v2-hero-grid,
.contact-v2-hero-grid,
.reference-blog-hero > .container {
  position: relative;
  z-index: 3;
}

.about-v2-hero h1,
.contact-v2-hero h1,
.reference-blog-hero h1 {
  text-shadow: 0 9px 30px rgba(0,0,0,.34);
}

.projects-v2-hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(16,217,236,.18), transparent 23%),
    linear-gradient(125deg, #00101f 0%, #001f40 58%, #00527e 100%) !important;
}

.projects-v2-hero::before {
  width: 560px;
  height: 560px;
  right: -160px;
  top: -220px;
  border: 1px solid rgba(16,217,236,.3);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(16,217,236,.1);
  transform: none;
}

.projects-v2-hero::after {
  width: 680px;
  height: 420px;
  right: 8%;
  bottom: -350px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.projects-v2-kicker,
.projects-v2-hero h1 span {
  color: var(--cinematic-cyan);
}

.projects-v2-hero h1,
.projects-v2-hero h1 + p,
.projects-hero-points span {
  color: #fff;
}

.projects-v2-hero h1 {
  text-shadow: 0 9px 30px rgba(0,0,0,.34);
}

.projects-v2-hero h1 + p,
.projects-hero-points span {
  color: rgba(255,255,255,.8);
}

.projects-v2-hero-card {
  overflow: visible;
  border: 1px solid rgba(160,232,255,.28);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  box-shadow: -28px 38px 74px rgba(0,5,20,.42), 0 0 58px rgba(16,217,236,.13);
  transform: perspective(1100px) rotateY(calc(-8deg + var(--cinematic-x))) rotateX(calc(3deg + var(--cinematic-y))) rotateZ(1deg);
  transition: transform .28s ease-out;
}

.projects-v2-hero-card img {
  border-radius: 22px;
}

.services-hero-refresh {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(16,217,236,.2), transparent 25%),
    linear-gradient(125deg, #00101f 0%, #001f40 58%, #00527e 100%) !important;
}

.services-hero-refresh::before {
  content: "";
  position: absolute;
  right: 4%;
  top: 54px;
  width: min(42%, 520px);
  height: calc(100% - 108px);
  border: 1px solid rgba(160,232,255,.25);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
  box-shadow: -26px 34px 70px rgba(0,5,20,.37), inset 0 1px 0 rgba(255,255,255,.16);
  transform: perspective(1100px) rotateY(calc(-7deg + var(--cinematic-x))) rotateX(calc(2deg + var(--cinematic-y)));
  transition: transform .28s ease-out;
}

.services-hero-grid {
  position: relative;
  z-index: 2;
}

.services-hero-list {
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
  box-shadow: 0 25px 60px rgba(0,7,20,.28);
  backdrop-filter: blur(12px);
}

.single-blog-hero {
  overflow: hidden;
  box-shadow: inset 0 -70px 80px rgba(0,10,25,.34);
}

.single-blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,13,28,.94), rgba(0,24,51,.72) 55%, rgba(0,31,66,.24)),
    linear-gradient(180deg, transparent 60%, rgba(0,8,18,.48));
}

.single-blog-hero > .container {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .v2-slide.is-active::before {
    animation: cinematic-breathe 10s ease-in-out infinite alternate;
  }

  .projects-v2-hero-card,
  .services-hero-list {
    animation: cinematic-float 7s ease-in-out infinite;
  }
}

@keyframes cinematic-breathe {
  from { background-size: 100%; }
  to { background-size: 104%; }
}

@keyframes cinematic-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@media (max-width: 900px) {
  .v2-slide::before,
  .service-page-hero::before,
  .about-v2-hero::before,
  .contact-v2-hero::before,
  .reference-blog-hero::before {
    inset: 0;
    width: auto;
    border: 0;
    border-radius: 0;
    transform: none;
    opacity: .56;
    box-shadow: none;
  }

  .v2-slide::after,
  .service-page-hero::after,
  .reference-service-page .service-page-hero::after,
  .about-v2-hero::after,
  .contact-v2-hero::after,
  .reference-blog-hero::after {
    background: linear-gradient(90deg, rgba(0,13,28,.96), rgba(0,20,42,.86) 66%, rgba(0,25,52,.64));
  }

  .v2-slide-copy {
    margin-left: 0;
    max-width: 650px;
  }

  .reference-service-page .service-page-hero-grid {
    display: block;
  }

  .reference-service-page .service-page-hero-copy {
    width: min(100%, 680px);
  }

  .projects-v2-hero-card,
  .services-hero-refresh::before {
    transform: none;
  }
}

@media (max-width: 620px) {
  .v2-carousel,
  .v2-slide-inner {
    min-height: 660px;
  }

  .v2-slide-copy,
  .reference-service-page .service-page-hero-copy {
    padding: 24px 21px 25px;
    border-radius: 17px;
  }

  .v2-slide h1,
  .v2-slide h2 {
    font-size: clamp(2.25rem, 10.5vw, 3.15rem);
  }

  .service-page-hero,
  .reference-service-page .service-page-hero {
    min-height: 490px;
    padding: 48px 0 54px;
  }

  .services-hero-refresh::before {
    display: none;
  }

  .services-hero-list {
    padding: 12px 17px;
  }
}
