/* =============================================================
   HZL Microsite — Section 3: About Hindustan Zinc
   CKI Group–inspired: grid bg · marquee band · floating image
   ─────────────────────────────────────────────────────────────
   Layout (all absolute inside 100vh shell):
     z 0  grid lines
     z 1  oversized marquee text (behind image)
     z 2  top-left copy block + bottom stats strip
     z 3  floating image window (above text)
     z 4  scroll cue

   After section → .about-expand drives image → full-screen
   ============================================================= */

/* ── Section shell — tall for scroll-zoom travel ───────────── */
.about {
  position: relative;
  height: 340vh;        /* 100vh sticky pin + 240vh travel (≈77vh read-hold + ≈163vh zoom) */
  /* TRANSPARENT — the empty 150vh scroll track below the sticky must not
     cover the BS section. z-index:2 makes About render above BS (z-index:1)
     so the sticky's video covers any BS dark artefacts; transparent bg lets
     BS show through once the sticky has scrolled off the top.            */
  background: transparent;
  z-index: 2;
  /* NO overflow:hidden here — needed for sticky child to work */
}

/* ── Sticky viewport — pins while video zooms ───────────────── */
.about__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  background: #0a0826;  /* match .bs__sticky — seamless About → BS transition */
}



/* ── Subtle grid lines ─────────────────────────────────────── */
.about__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.044) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.044) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Oversized marquee band — absolute vertical center ─────── */
.about__marquee {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  margin-top: 0.5vh;
}

.about__marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: aboutMarquee 34s linear infinite;
  will-change: transform;
}

.about__mq-word {
  font-family: var(--font-display);
  font-size: clamp(88px, 13vw, 190px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.92;
  white-space: nowrap;
  flex: none;
  padding: 0 0.06em;
}

.about__mq-word--solid   { color: rgba(255, 255, 255, 0.06); }

.about__mq-word--outline {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
  color: transparent;
}

.about__mq-sep {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 82px);
  font-weight: 300;
  color: rgba(127, 185, 66, 0.55);
  line-height: 1;
  flex: none;
  padding: 0 0.14em;
  align-self: center;
  margin-top: -0.08em;
}

/* Seamless loop: track = 2 identical copies → animate -50% */
@keyframes aboutMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Floating image window ─────────────────────────────────── */
.about__img-window {
  position: absolute;
  top: 50%;
  left: 53%;            /* slightly right of centre — clears left heading */
  transform: translate(-50%, -50%);
  z-index: 3;
  width: clamp(260px, 28vw, 440px);   /* responsive: scales with viewport */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.70),
    0 0 0 1px rgba(255, 255, 255, 0.09);
  will-change: transform;
}

.about__img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  will-change: transform;
}

/* video inherits same cover behaviour as the image it replaced */
.about__img-window video.about__img {
  height: 100%;
  object-position: center center;
}

/* ── Top-left copy block ───────────────────────────────────── */
.about__header {
  position: absolute;
  top: calc(var(--utility-h, 0px) + var(--bar-h, 64px) + 2rem);
  left: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: min(400px, calc(50vw - 2rem));
}

.about__eyebrow {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7fb942;
}

/* 35px · 2 lines via <br> */
.about__tagline {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 700;
  color: rgba(238, 242, 246, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.18;
  margin: 0;
}

/* ── Shiny borders CTA ─────────────────────────────────────── */
/* Technique: dual background-clip layers on a single element.
   Layer 1 (padding-box) = solid dark inner fill
   Layer 2 (border-box)  = animated gradient fills the border  */
.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.68em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;           /* space for the gradient border */
  background:
    linear-gradient(var(--navy-900), var(--navy-900)) padding-box,
    linear-gradient(
      135deg,
      #0060a3  0%,
      #4fe0cf  22%,
      #ffffff  44%,
      #7fb942  66%,
      #4fe0cf  82%,
      #0060a3 100%
    ) border-box;
  background-size: 100%, 300% 300%;
  animation: aboutCtaShimmer 2.8s ease-in-out infinite;
  color: rgba(238, 242, 246, 0.88);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-start;                    /* never stretch in flex column */
  transition: color 0.22s;
}

@keyframes aboutCtaShimmer {
  0%   { background-position: 0 0, 0%   50%; }
  50%  { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0%   50%; }
}

.about__cta:hover {
  color: #ffffff;
  background:
    linear-gradient(rgba(0, 96, 163, 0.18), rgba(0, 96, 163, 0.18)) padding-box,
    linear-gradient(
      135deg,
      #0060a3 0%,
      #4fe0cf 22%,
      #ffffff 44%,
      #7fb942 66%,
      #4fe0cf 82%,
      #0060a3 100%
    ) border-box;
  background-size: 100%, 300% 300%;
}

.about__cta-arrow {
  display: inline-block;
  transition: transform 0.22s;
}

.about__cta:hover .about__cta-arrow {
  transform: translateX(4px);
}


/* ── Bottom strip: body copy stacked above stat tiles ─────── */
.about__footer {
  position: absolute;
  bottom: 0;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
  padding-bottom: 8rem;
}

/* Body copy — 18px, right-aligned above the stat tiles */
.about__desc {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(238, 242, 246, 0.82);
  margin: 0;
  max-width: 500px;
  text-align: right;
}

/* ── 4 glass stat tiles ────────────────────────────────────── */
.about__stats {
  display: flex;
  gap: 0.9rem;
}

.about__stat {
  flex: 0 0 auto;
  width: 148px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 1.05rem 1.1rem 0.95rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.28s, border-color 0.28s;
}

.about__stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0060a3 0%, #7fb942 100%);
  border-radius: 0 0 2px 2px;
}

.about__stat:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(127, 185, 66, 0.25);
}

.about__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.38rem;
}

.about__stat-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.72);
  line-height: 1.45;
}



/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .about__img-window { width: clamp(240px, 30vw, 400px); }
}

@media (max-width: 1100px) {
  .about__tagline    { font-size: 28px; }
  .about__stat       { width: 132px; }
  .about__img-window { width: clamp(220px, 32vw, 360px); }
}

@media (max-width: 960px) {
  .about__img-window { width: min(340px, 46vw); left: 55%; }
  .about__header     { max-width: calc(50vw - 1.5rem); }
  .about__stats      { gap: 0.6rem; }
  .about__stat       { width: 118px; }
}

@media (max-width: 640px) {
  .about {
    height: auto;
    min-height: 100svh;
    background: var(--navy-900);
    display: flex;
    flex-direction: column;
    padding: calc(var(--utility-h, 0px) + var(--bar-h, 56px) + 1rem)
             clamp(1.25rem, 5vw, 2rem) 3rem;
    gap: 2rem;
    overflow: visible; /* let content breathe on mobile */
  }

  /* Reset absolute positioning for mobile flow */
  .about__header,
  .about__footer {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    max-width: 100%;
    padding-bottom: 0;
  }

  .about__img-window {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 82vw;
    margin: 0 auto;
  }

  .about__marquee {
    top: 45%;
    opacity: 0.6;
  }

  .about__tagline { font-size: 22px; }

  .about__footer { align-items: flex-start; }

  .about__desc {
    text-align: left;
    max-width: 100%;
  }

  .about__stats { flex-wrap: wrap; }

  .about__stat {
    width: calc(50% - 0.45rem);
    flex: none;
  }

  .about__mq-word { font-size: clamp(52px, 18vw, 88px); }

}

/* ── Energy Saver / Reduced Motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .about__marquee-track              { animation: none !important; }
  .about__cta                        { animation: none !important; }
  .about__img,
  .about__img-window                 { will-change: auto; }
  .about__img-window video.about__img { display: none; }  /* pause video for reduced-motion */
}
body.is-saver .about__marquee-track { animation-play-state: paused !important; }
body.is-saver .about__cta           { animation-play-state: paused !important; }
