/* ===========================================================
   Triveni Power - Proof, at Full Speed.
   Layout:
     · Top row split - heading LHS / body RHS
     · Below: horizontal slider with 3 case-study cards
       (scroll-snap track + prev/next arrows + position dots)
   =========================================================== */

.proof {
  --ink:        #FFFFFF;
  --ink-80:     rgba(255, 255, 255, 0.84);
  --ink-60:     rgba(255, 255, 255, 0.62);
  --ink-40:     rgba(255, 255, 255, 0.42);
  --accent:     #F58220;

  position: relative;
  background: #231F20;                /* flat warm grey (matches manufacturing-excellence) - WebGL ether removed */
  color: var(--ink);
  padding: clamp(72px, 9vw, 132px) 0 clamp(56px, 7vw, 96px);
  min-height: 662px;
  isolation: isolate;
  overflow: hidden;
}

.proof__container {
  position: relative;
  z-index: 2;                          /* above ether + vignette */
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   INTRO - split row: heading LHS · body RHS
   ========================================================= */
.proof__intro {
  display: block;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}

.proof__title {
  font-family: "Raleway", var(--font-display);
  font-size: var(--fs-l);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
}
.proof__title em {
  font-style: normal;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: unset;
}

.proof__body-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
}
.proof__body {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  line-height: 1.65;
  color: #FFFFFF;
  margin: 0;
  max-width: 56ch;
}
.proof__body strong { color: #FFFFFF; font-weight: 400; }

/* =========================================================
   SLIDER - head row (counter + arrows) + scroll-snap track
   ========================================================= */
.proof__slider {
  position: relative;
  display: flex;
  flex-direction: column;
}

.proof__slider-head {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: clamp(20px, 2vw, 28px);
}

/* Mobile - move the arrows below the cards so the swipe track sits
   above and the navigation reads as a footer control. */
@media (max-width: 767px) {
  .proof__slider-head {
    order: 2;
    margin-bottom: 0;
    margin-top: clamp(16px, 4vw, 24px);
    justify-content: flex-end;
  }
}
.proof__counter { display: none; }
.proof__counter--hidden {
  font-family: var(--font-sans);
  font-feature-settings: "tnum" 1;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.proof__counter::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}
.proof__counter strong {
  color: #FFFFFF;
  font-weight: 500;
  font-size: var(--fs-s);
}

.proof__nav {
  display: flex;
  gap: 10px;
}
/* .proof__nav-btn visual rules moved to css/buttons.css under
   canonical .btn--icon kind. Only the disabled-state opacity
   stays here as it's slider-specific. */
.proof__nav-btn[disabled] {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

/* Scroll-snap track */
.proof__track {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: clamp(8px, 1vw, 12px);
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.proof__track::-webkit-scrollbar { display: none; }

/* =========================================================
   CARD - wide rounded panel: image LHS + content RHS
   ========================================================= */
.proof__card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 800px;
  scroll-snap-align: start;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}
@media (min-width: 1024px) {
  .proof__card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    min-height: clamp(280px, 26vw, 360px);
  }
}
.proof__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.24);
}

/* MEDIA - LHS image */
.proof__card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #15141A;
}
@media (min-width: 1024px) {
  .proof__card-media { aspect-ratio: auto; }
}
.proof__card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 700ms var(--ease-out);
}
.proof__card:hover .proof__card-media img { transform: scale(1.05); }
.proof__card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(245, 130, 32, 0.10) 0%,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0.30) 100%);
  pointer-events: none;
}

/* CONTENT - RHS */
.proof__card-content {
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 20px);
}

.proof__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 130, 32, 0.12);
  border: 1px solid rgba(245, 130, 32, 0.24);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proof__card-icon svg { width: 26px; height: 26px; stroke-width: 1.7; }

.proof__card-tag {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof__card-tag::before { display: none; }

.proof__card-title {
  font-family: var(--font-display);
  font-size: 24px;          /* card titles sit between M and L */
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #231F20;
  margin: 0;
  max-width: 28ch;
}
/* Optional summary line under a short card title (e.g. the Hydroelectric case). */
.proof__card-desc {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(35, 31, 32, 0.70);
  margin: 0;
  max-width: 40ch;
}

/* Challenge / Solution / Outcome list */
.proof__card-points {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 14px);
  margin: clamp(4px, 0.6vw, 8px) 0 0;
  padding: clamp(14px, 1.4vw, 20px) 0 clamp(14px, 1.4vw, 20px);
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
.proof__card-point {
  display: grid;
  grid-template-columns: clamp(82px, 9vw, 110px) minmax(0, 1fr);
  gap: clamp(12px, 1.2vw, 18px);
  align-items: baseline;
  margin: 0;
}
.proof__card-point dt {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(35, 31, 32, 0.58);
  margin: 0;
}
.proof__card-point dd {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  line-height: 1.55;
  color: rgba(35, 31, 32, 0.8);
  margin: 0;
}

/* .proof__card-cta visual rules moved to css/buttons.css under
   canonical .btn--link kind. Only the layout helper stays here. */
.proof__card-cta {
  align-self: flex-start;
}
.proof__card-cta-arrow { display: none; }

/* =========================================================
   DOTS - slider position indicator
   ========================================================= */
.proof__dots {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 2.2vw, 32px);
}
.proof__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    background 280ms var(--ease-out),
    width 280ms var(--ease-out);
}
.proof__dot:hover { background: rgba(255, 255, 255, 0.50); }
.proof__dot[aria-current="true"] {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.proof__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
