/* =========================================================
   NM Technische | HERO  — Full Viewport
   ========================================================= */

.showcase {
  --ease: cubic-bezier(.16, 1, .3, 1);
  --slide-delay: 6000ms;
  position: relative;
  height: calc(100svh - 84px);
  min-height: 620px;
  overflow: hidden;
  background: #071a36;
}

/* ── Gradient overlay: dark-left for text, light-right for image ── */
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      105deg,
      rgba(7, 26, 54, 0.76) 0%,
      rgba(7, 26, 54, 0.48) 32%,
      rgba(7, 26, 54, 0.18) 58%,
      rgba(7, 26, 54, 0.04) 100%
    ),
    linear-gradient(
      to top,
      rgba(7, 26, 54, 0.34) 0%,
      rgba(7, 26, 54, 0.04) 32%,
      transparent 58%
    );
}

/* ──────────────────────────────────────────────────────────
   LAYER 0 — Background slides
   MUST be direct child of .showcase, NOT inside .container
────────────────────────────────────────────────────────── */
.showcase__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #071a36;
}

.showcase__stage::after { display: none; }

.showcase__slides {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .9s var(--ease);
  will-change: transform;
}

.showcase__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
}

.showcase__slide.is-active { z-index: 2; }
.showcase__slide.is-leaving { z-index: 1; }

.showcase__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.showcase__slide.is-active .showcase__media {
  opacity: 1;
  transition-delay: .30s;
}

/* Images have baked-in brand header/footer — crop to photo zone only */
.showcase__media img {
  position: absolute;
  left: 0;
  top: -41.8%;
  width: 100%;
  height: 181.8%;
  max-width: none;

  object-fit: cover;
  object-position: center right;

  filter:
    contrast(1.06)
    saturate(1.06)
    brightness(.98);

  transform: scale(1.01);

  will-change: transform, filter;
}

/* Ken-Burns drift */
.showcase__slide.is-active .showcase__media img {
  animation: showcase-drift 12s ease-out both;
}

/* ──────────────────────────────────────────────────────────
   SLIDE INFO CARD — bottom-right glass panel
   z-index: 5 pierces above overlay (z:1) since stage
   has no isolation:isolate
────────────────────────────────────────────────────────── */
.showcase__info {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(34px, 5vh, 60px);
  left: auto;
  max-width: 260px;
  padding: 18px 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(7, 26, 54, .86);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}

.showcase__slide.is-active .showcase__info {
  opacity: 1;
  transform: none;
  transition-delay: .4s;
}

.showcase__tag {
  display: block;
  margin-bottom: 6px;
  padding-left: 10px;
  border-left: 2px solid #6ba8ff;   /* ← ADD */
  color: #6ba8ff;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.showcase__info h3 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

.showcase__more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .5s var(--ease), opacity .4s ease;
}

.showcase__more > div { overflow: hidden; }

.showcase__more p {
  margin: 8px 0 10px;
  color: rgba(255, 255, 255, .70);
  font-size: .86rem;
  line-height: 1.55;
}

.showcase__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
  font-weight: 700;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  transition: gap .3s var(--ease), color .3s, border-color .3s;
}

.showcase__link:hover { gap: 12px; color: #fff; border-color: rgba(255,255,255,.8); }

.showcase__info:hover .showcase__more,
.showcase__info:focus-within .showcase__more {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (hover: none) {
  .showcase__more { grid-template-rows: 1fr; opacity: 1; }
}

/* ──────────────────────────────────────────────────────────
   COUNTER — top-left glass pill
────────────────────────────────────────────────────────── */
.showcase__count {
  position: absolute;
  z-index: 6;
  top: 24px;
  left: 24px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .55);
}

.showcase__count b {
  color: #fff;
  font-weight: 800;
}

/* ──────────────────────────────────────────────────────────
   ARROWS — top-right
────────────────────────────────────────────────────────── */
.showcase__nav {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.showcase__nav .showcase__arrow {
  pointer-events: auto;
}

.showcase__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;

  background: rgba(7, 26, 54, .82);
  color: #fff;

  box-shadow:
    0 10px 28px rgba(7, 26, 54, .24);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  cursor: pointer;

  transition:
    background .3s var(--ease),
    border-color .3s var(--ease),
    transform .3s var(--ease),
    box-shadow .3s var(--ease);
}

.showcase__arrow:hover {
  background: var(--blue);
  border-color: var(--blue);

  transform: scale(1.08);

  box-shadow:
    0 14px 34px rgba(7, 26, 54, .30);
}

.showcase__arrow:active { transform: scale(.93); }

.showcase__arrow:focus-visible,
.showcase__steps button:focus-visible,
.showcase__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 3px;
}

/* ──────────────────────────────────────────────────────────
   PROGRESS BARS — bottom strip
────────────────────────────────────────────────────────── */
.showcase__steps {
  position: absolute;
  z-index: 6;
  left: 24px;
  right: 24px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  max-width: 480px;
}

.showcase__steps button {
  position: relative;
  flex: 1;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.showcase__steps button::before,
.showcase__steps button::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
}

.showcase__steps button::before { background: rgba(255, 255, 255, .18); }

.showcase__steps button::after {
  background: #6ba8ff;
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 8px rgba(107, 168, 255, .5);
}

.showcase__steps button.is-done::after { transform: scaleX(1); }

.showcase__steps button.is-active::after {
  animation: showcase-fill var(--slide-delay, 6000ms) linear forwards;
}

.showcase__stage.is-paused .showcase__steps button.is-active::after {
  animation-play-state: paused;
}

/* ──────────────────────────────────────────────────────────
   LAYER 3 — Text content overlay
   Direct child of .showcase, NOT inside .container
   z-index 3 = above overlay (z:1), below info card (z:5)
────────────────────────────────────────────────────────── */
.showcase__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding:
    clamp(70px, 8vh, 100px)
    clamp(24px, 7vw, 100px)
    clamp(105px, 12vh, 135px);
  pointer-events: none;
}

.showcase__copy {
  max-width: 560px;
  pointer-events: auto;
}

.showcase__copy > * {
  animation: showcase-rise .85s var(--ease) both;
}

.showcase__copy > :nth-child(1) { animation-delay: .08s; }
.showcase__copy > :nth-child(2) { animation-delay: .18s; }
.showcase__copy > :nth-child(3) { animation-delay: .28s; }
.showcase__copy > :nth-child(4) { animation-delay: .38s; }
.showcase__copy > :nth-child(5) { animation-delay: .48s; }

/* Override global .eyebrow (it uses --blue on light bg) */
.showcase__copy .eyebrow {
  color: rgba(255, 255, 255, .50) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .50) !important;
}

.showcase__copy .eyebrow::before {
  background: rgba(255, 255, 255, .35) !important;
}

.showcase__copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.8rem, 4.6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -.04em;
  color: #fff;
  text-wrap: balance;
}

.showcase__copy h1 span {
  display: block;
  background: linear-gradient(90deg, #4a9aff 0%, #6db4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.showcase__copy .lead {
  max-width: 440px;
  font-size: 1.05rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, .65);
}

.showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 26px;
}

/* Glass outline button — override for dark hero */
.showcase__actions .btn-outline {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.showcase__actions .btn-liquid { color: #fff; }

.showcase__actions .btn-outline:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: none;
}

/* Feature pills */
.showcase__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0; padding: 0;
  list-style: none;
}

.showcase__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .80);
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.showcase__points li::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

/* ── Keyframes ── */
@keyframes showcase-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes showcase-drift {
  from { transform: scale(1.07); }
  to   { transform: scale(1) translate3d(-1.5%, -0.8%, 0); }
}

@keyframes showcase-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .showcase {
    height: calc(100svh - 70px);
  }
  .showcase::before {
    background: linear-gradient(
      to top,
      rgba(7, 26, 54, 0.95) 0%,
      rgba(7, 26, 54, 0.60) 50%,
      rgba(7, 26, 54, 0.20) 100%
    );
  }
  .showcase__grid {
    align-items: flex-end;
    padding: 0 24px 80px;
  }
  .showcase__copy { max-width: 100%; }
  .showcase__copy h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
  .showcase__info { display: none; }
  .showcase__media img { object-position: center center; }
}

@media (max-width: 520px) {
  .showcase__grid { padding: 0 20px 80px; }
  .showcase__copy h1 { font-size: 2.1rem; }
  .showcase__actions .btn { flex: 1 1 100%; }
  .showcase__count { left: 16px; top: 16px; }
  .showcase__nav { left: 16px; right: 16px; top: 50%; }
  .showcase__steps { left: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__copy > *,
  .showcase__slide.is-active .showcase__media img { animation: none !important; }
  .showcase__slide, .showcase__info, .showcase__more { transition-duration: .01s !important; }
}