/* ===========================================================
   Bizniaga Technologies — Industries Page (28 Oct)
   First screen: the industry explorer (no banner) — full-screen photo
   background, the current industry on the left, image cards for the
   next industries on the right with arrows / drag. Then the toolkit
   strip (css/services.css) and the footer.
   Behaviour: script/industries.js · Content: data/industries-data.js
   =========================================================== */

.ind-hero {
  --cw: clamp(170px, min(13vw, 26vh), 250px);   /* card width */
  --ch: calc(var(--cw) * 1.38);                 /* card height */
  --gap: clamp(16px, 1.4vw, 24px);
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #0e0a3a;
}

/* ---------------- background photo (layers swap in) ---------------- */
.ind-bg { position: absolute; inset: 0; z-index: 0; }
.ind-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ind-bg-layer.is-growing {
  transition: clip-path 0.95s cubic-bezier(.65,.05,.25,1);
  animation: indSettle 1.6s cubic-bezier(.22,.9,.32,1);
}
@keyframes indSettle { from { transform: scale(1.12); } to { transform: none; } }
.ind-bg-layer.is-fading { opacity: 0; transition: opacity 0.8s ease; }
.ind-bg-layer.is-fading.is-shown { opacity: 1; }
/* darker on the left (behind the words) and along the bottom (behind the controls) */
.ind-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 8, 42, 0.88) 0%, rgba(10, 8, 42, 0.62) 38%, rgba(10, 8, 42, 0.18) 75%, rgba(10, 8, 42, 0.1) 100%),
    linear-gradient(0deg, rgba(10, 8, 42, 0.6) 0%, rgba(10, 8, 42, 0) 40%),
    linear-gradient(180deg, rgba(10, 8, 42, 0.45) 0%, rgba(10, 8, 42, 0) 22%);
}

/* ---------------- the words (left) ---------------- */
.ind-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--nav-space);
  padding-bottom: 6vh;
}
.ind-copy { width: min(560px, 46%); }
.ind-copy > * {
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(.22,.9,.32,1);
}
.ind-copy > :nth-child(2) { transition-delay: 0.08s; }
.ind-copy > :nth-child(3) { transition-delay: 0.16s; }
.ind-copy > :nth-child(4) { transition-delay: 0.24s; }
.ind-copy.is-changing > * { opacity: 0; transform: translateY(-14px); transition-duration: 0.25s; transition-delay: 0s; }
.ind-copy.is-entering > * { opacity: 0; transform: translateY(28px); transition: none; }

.ind-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(10px, 2vh, 18px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(12px, min(0.3vw + 9px, 1.4vh + 5px), 14px);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.ind-eyebrow-line { width: 34px; height: 2px; background: linear-gradient(90deg, var(--red), #8f86ff); }
.ind-title {
  margin: 0 0 clamp(14px, 2.6vh, 24px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, min(5.6vw, 11vh), 104px);
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}
.ind-intro {
  margin: 0 0 clamp(18px, 3.4vh, 30px);
  font-size: clamp(13.5px, min(0.3vw + 10.5px, 1.4vh + 5px), 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------------- pills + hover pop-ups ---------------- */
.ind-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ind-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(12.5px, min(0.2vw + 10px, 1.2vh + 5px), 14px);
  cursor: default;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.ind-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--red), #8f86ff); }
.ind-pill:hover, .ind-pill:focus-visible { background: #fff; color: var(--navy); border-color: #fff; outline: none; }
/* the pop-up sits just above its pill, small, so the title and cards stay clear */
.ind-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 5;
  width: max-content;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink, var(--navy));
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 16px 36px rgba(6, 8, 30, 0.35);
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transform-origin: 20px 100%;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.22,.9,.32,1);
}
.ind-tip::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.ind-pill:hover .ind-tip, .ind-pill:focus-visible .ind-tip { opacity: 1; transform: none; }

/* ---------------- image cards (right) ---------------- */
.ind-cards {
  position: absolute;
  z-index: 3;
  left: 54%;
  right: 0;
  bottom: clamp(96px, 15vh, 150px);
  height: var(--ch);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline: none;
}
.ind-cards.is-grabbing { cursor: grabbing; }
.ind-card {
  --p: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw);
  height: var(--ch);
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: #1a1660;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: calc(20 - var(--p));
  transform: translateX(calc(var(--p) * (var(--cw) + var(--gap)) + var(--drag, 0px)));
  transition: transform 0.85s cubic-bezier(.65,.05,.25,1), opacity 0.6s ease;
}
.ind-cards.is-grabbing .ind-card { transition: transform 0.12s ease-out, opacity 0.6s ease; }
/* the current industry's card has slid under and away to the left */
.ind-card.is-current {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-1 * (var(--cw) + var(--gap)))) scale(0.82);
}
.ind-card.is-hidden { opacity: 0; pointer-events: none; }
.ind-card.no-anim { transition: none; }
.ind-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.ind-card:hover .ind-card-img { transform: scale(1.06); }
.ind-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 30, 0) 40%, rgba(8, 6, 30, 0.85) 100%); }
.ind-card-num {
  position: absolute;
  left: 14px;
  top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.85;
}
.ind-card-title {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, calc(var(--cw) * 0.09), 22px);
  line-height: 1.05;
  text-transform: uppercase;
}
.ind-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------------- arrows, progress, count ---------------- */
.ind-controls {
  position: absolute;
  z-index: 3;
  left: 54%;
  bottom: clamp(28px, 5.4vh, 56px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.ind-arrow {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 18px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ind-arrow:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.ind-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ind-progress { position: relative; width: clamp(110px, 11vw, 200px); height: 2px; margin-left: 10px; background: rgba(255, 255, 255, 0.25); }
.ind-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--red), #fff); transition: width 0.8s cubic-bezier(.65,.05,.25,1); }
.ind-count { margin: 0; font-family: var(--font-display); font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.ind-count strong { color: #fff; font-size: 18px; }

/* first paint: no animations */
.ind-hero.is-first *, .ind-hero.is-first .ind-copy > * { transition: none !important; animation: none !important; }

/* ---------------- phones / tablets ---------------- */
@media (max-width: 860px), (orientation: landscape) and (max-height: 540px) {
  .ind-hero { --cw: 150px; height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .ind-inner { height: auto; padding-top: calc(var(--nav-space) + 36px); padding-bottom: 24px; }
  .ind-copy { width: 100%; }
  .ind-title { font-size: clamp(38px, 11vw, 56px); }
  .ind-hero::before { background: linear-gradient(180deg, rgba(10, 8, 42, 0.75) 0%, rgba(10, 8, 42, 0.7) 60%, rgba(10, 8, 42, 0.9) 100%); }
  .ind-cards { position: relative; left: auto; right: auto; bottom: auto; margin: 8px 0 0 24px; }
  .ind-controls { position: relative; left: auto; bottom: auto; padding: 22px 24px 40px; }
  .ind-tip { max-width: min(260px, 80vw); }
}
@media (prefers-reduced-motion: reduce) {
  .ind-card, .ind-copy > *, .ind-bg-layer { transition: none !important; animation: none !important; }
}

/* ---------------- wide screens (units from css/wide.css) ---------------- */
@media (min-width: 1537px) {
  .ind-intro { font-size: calc(16 * var(--ut)); }
  .ind-pill { font-size: calc(14 * var(--ut)); }
  .ind-tip { font-size: calc(13 * var(--ut)); max-width: calc(260 * var(--ut)); }
  .ind-copy { width: min(calc(600 * var(--u)), 46%); }
}

/* ---------------- PAGE TITLE + QUIETER INDUSTRY NAME (29 Oct) ----------------
   "Industries We Serve" heading on top (same style as Services / Products);
   the industry's own name is smaller and in normal case, with a small
   "Industries · 01 / 05" label above it like the Products page. */
.ind-inner { flex-direction: column; align-items: flex-start; justify-content: center; }
.ind-head { margin-bottom: clamp(14px, 3.4vh, 34px); }
.ind-eyebrow {
  margin-bottom: clamp(6px, 1.2vh, 10px);
  font-size: clamp(11px, min(0.2vw + 8.5px, 1.2vh + 4px), 12.5px);
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.6);
}
.ind-title {
  margin-bottom: clamp(10px, 2vh, 18px);
  font-weight: 700;
  font-size: clamp(26px, min(2.5vw, 5.2vh), 46px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: none;
}
@media (max-width: 860px), (orientation: landscape) and (max-height: 540px) {
  .ind-title { font-size: clamp(26px, 7.5vw, 36px); }
}

/* ---------------- CURRENT CARD SHOWN FIRST (29 Oct) ----------------
   The current industry's card now stays in the row (first slot, white ring);
   the one being left behind slides away to the left and fades (.is-leaving). */
.ind-card.is-current {
  z-index: 21;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(calc(var(--p) * (var(--cw) + var(--gap)) + var(--drag, 0px)));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 22px 44px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.ind-card.is-leaving {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-1 * (var(--cw) + var(--gap)))) scale(0.82);
}
.ind-card.is-leaving.is-hidden { opacity: 0; }
