/* ============================================================
   SIBIN — Impact page (light theme)
   scroll-morph hero · stories grid · story detail pages
   ============================================================ */

/* scroll-morph hero */
.im-hero-wrap { position: relative; height: 280vh; background: #FAFBFD; }
.im-hero {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.im-stage { position: absolute; inset: 0; }
.im-card {
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 90px;
  border-radius: 12px; overflow: hidden;
  background: #E9EDF5;
  box-shadow: 0 14px 34px -18px rgba(12, 17, 26, 0.5);
  will-change: transform, opacity;
}
.im-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.im-intro { position: absolute; z-index: 2; text-align: center; pointer-events: none; padding: 0 24px; max-width: 30vw; transform: translateY(6vh); }
.im-intro h1 { font-size: clamp(26px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; color: var(--text-dark, #0C111A); }
.im-intro .sub {
  margin-top: 22px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dark-lo, rgba(12,17,26,0.6));
}
.im-arc-content {
  position: absolute; top: 12%; z-index: 3; text-align: center; pointer-events: none;
  opacity: 0; padding: 0 24px; max-width: 640px;
}
.im-arc-content .eyebrow { justify-content: center; margin-bottom: 18px; }
.im-arc-content h2 { font-size: clamp(30px, 4.4vw, 60px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; color: var(--text-dark, #0C111A); }
.im-arc-content p { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--text-dark-lo, rgba(12,17,26,0.62)); }
.im-scrollcue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dark-lo, rgba(12,17,26,0.5)); pointer-events: none;
}

/* numbers row (now directly under hero) */
.im-numbers { border-top: 1px solid var(--line-light); }

/* stories grid */
.story-photo-link { display: block; border-radius: 18px; overflow: hidden; }
.story-photo-link img.story-photo { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 18px; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.story-photo-link:hover img.story-photo { transform: scale(1.02); }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.story-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.story-card:hover { border-color: rgba(45,91,255,0.45); transform: translateY(-3px); box-shadow: 0 26px 60px -40px rgba(12,17,26,0.55); }
.story-card .sc-img { aspect-ratio: 16 / 11; background: #E9EDF5; position: relative; overflow: hidden; }
.story-card .sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-card .sc-no {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  background: rgba(12,17,26,0.7); color: #fff; padding: 5px 10px; border-radius: 100px;
}
.story-card .sc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.story-card .sc-state { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt); }
.story-card .sc-title { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.story-card .sc-sub { font-size: 14.5px; line-height: 1.55; color: var(--text-dark-lo); }
.story-card .sc-more { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--cobalt); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .stories-grid { grid-template-columns: 1fr 1fr; }
  .im-card { width: 56px; height: 78px; }
}
@media (max-width: 560px) {
  .stories-grid { grid-template-columns: 1fr; }
}

/* sticky-stacking story cards */
.sstack-section { padding-top: 0; }
.sstack-head {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: #FAFBFD;
  padding: 20px 0 16px;
}
.sstack-intro { margin: 0; max-width: 60ch; }
.sstack { display: flex; flex-direction: column; gap: 0; }
.sstack-card {
  position: sticky;
  top: 210px;
  padding-bottom: 24px;
}
.sstack-card:last-child { padding-bottom: 0; }
.sstack-card .ssc-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 0;
  min-height: 420px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 18px 40px -30px rgba(12,17,26,0.45);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.sstack-card .ssc-inner:hover { border-color: rgba(45,91,255,0.4); box-shadow: 0 36px 80px -44px rgba(12,17,26,0.6); }
.ssc-media { position: relative; overflow: hidden; background: #E9EDF5; }
.ssc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.sstack-card .ssc-inner:hover .ssc-media img { transform: scale(1.04); }
.ssc-no {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  background: rgba(12,17,26,0.72); color: #fff; padding: 6px 12px; border-radius: 100px;
}
.ssc-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ssc-state { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt); }
.ssc-title { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.ssc-sub { font-size: 15px; line-height: 1.55; color: var(--text-dark-lo); max-width: 52ch; }
.ssc-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 4px; }
.ssc-move .mt { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 3px; }
.ssc-move p { font-size: 12.5px; line-height: 1.5; color: var(--text-dark-lo); margin: 0; }
.ssc-more { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--cobalt); }
@media (max-width: 768px) {
  .sstack-card { position: relative; top: 0; padding-bottom: 20px; }
  .sstack-head { position: relative; top: 0; }
  .sstack-card .ssc-inner { grid-template-columns: 1fr; min-height: 0; max-height: none; height: auto; }
  .ssc-media { aspect-ratio: 16 / 10; }
  .ssc-body { padding: 28px; }
  .ssc-moves { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sstack-card, .sstack-head { position: relative; top: 0; }
}

/* horizontal story cards (reuses .ph-* track from products.css) */
.istory-card { flex: none; width: min(86vw, 1040px); }
.istory-card .isc-inner {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  height: min(64vh, 560px);
  border-radius: 22px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(110,146,255,0.22);
  box-shadow: 0 30px 70px -44px rgba(8,11,20,0.7);
  text-decoration: none; color: inherit;
}
.isc-media { position: relative; overflow: hidden; background: #1a2238; }
.isc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.isc-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 14px; overflow-y: auto; }
.isc-pill {
  align-self: flex-start;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(180deg, #3D6BFF 0%, var(--cobalt) 52%, var(--cobalt-deep) 100%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 3px 14px rgba(45,91,255,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  border-radius: 100px; padding: 7px 18px;
}
.isc-title { font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--text-dark); }
.isc-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.isc-sub { font-size: 15.5px; line-height: 1.6; color: var(--text-dark-lo); max-width: 60ch; }
.istory-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 4px; }
.istory-move { display: flex; gap: 14px; align-items: flex-start; }
.istory-move .im-ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cobalt);
  background: linear-gradient(150deg, #EAF0FF 0%, #F7F9FF 60%, #FFFFFF 100%);
  border: 1px solid rgba(45,91,255,0.18);
  box-shadow: 0 8px 18px -10px rgba(45,91,255,0.5), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -3px 8px -4px rgba(45,91,255,0.25);
}
.istory-move .im-ic svg { width: 22px; height: 22px; }
.istory-move .im-t { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-dark); margin-bottom: 3px; }
.istory-move p { font-size: 13px; line-height: 1.5; color: var(--text-dark-lo); margin: 0; }
.isc-more { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--cobalt); }
@media (max-width: 768px) {
  .istory-card { width: 88vw; }
  .istory-card .isc-inner { grid-template-columns: 1fr; height: auto; }
  .isc-media { aspect-ratio: 16/10; }
  .istory-moves { grid-template-columns: 1fr; }
}

/* Impact stories: light theme override of the (dark) products .ph-* styles */
#ph-wrap.ph-wrap { background: #FAFBFD; }
#ph-wrap .ph-stage {
  background:
    radial-gradient(ellipse 60% 60% at 82% 0%, rgba(45,91,255,0.08), transparent 60%),
    #FAFBFD;
}
#ph-wrap .ph-head h2 { color: var(--text-dark); }
#ph-wrap .ph-head .ph-eyebrow { color: var(--cobalt); }
#ph-wrap .ph-head .ph-count { color: var(--text-dark-lo); }
#ph-wrap .ph-progress { background: rgba(12,17,26,0.10); }
#ph-wrap .ph-sub {
  font-size: 16px; line-height: 1.6; color: var(--text-dark-lo);
  max-width: 46ch; margin-top: 18px;
}

/* ---------- story detail page ---------- */
.story-back {
  position: sticky; top: 76px; z-index: 5;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-dark);
  padding: 10px 18px 10px 14px; border: 1px solid var(--line-light); border-radius: 100px;
  background: rgba(250,251,253,0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.back-btn:hover { border-color: rgba(45,91,255,0.5); transform: translateX(-2px); }
.story-hero { padding: 56px max(24px, calc((100vw - var(--max-w)) / 2)) 0; }
.story-hero .eyebrow { margin-bottom: 24px; }
.story-hero h1 { max-width: 20ch; }
.ic-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  background: linear-gradient(180deg, #3D6BFF 0%, var(--cobalt) 52%, var(--cobalt-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 7px 16px;
}
.story-meta {
  display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 36px;
  padding: 24px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.story-meta .sm { }
.story-meta .sm .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dark-lo); }
.story-meta .sm .v { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; color: var(--text-dark); }
.story-lead-img {
  margin: 48px max(24px, calc((100vw - var(--max-w)) / 2));
  border-radius: 20px; overflow: hidden; aspect-ratio: 21 / 9; background: #E9EDF5;
}
.story-lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-body { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.story-move { padding: 48px 0; border-top: 1px solid var(--line-light); }
.story-move:first-child { border-top: none; }
.story-move .sm-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 16px; }
.story-move h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 18px; line-height: 1.12; }
.story-move p { font-size: 17px; line-height: 1.7; color: var(--text-dark-lo); margin-bottom: 16px; }
.story-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  max-width: var(--max-w); margin: 16px auto 0; padding: 0 max(24px, calc((100vw - var(--max-w)) / 2));
}
.story-gallery .sg {
  aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #E9EDF5;
}
.story-gallery .sg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-gallery .sg.wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.story-nextprev {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--max-w); margin: 72px auto 0; padding: 32px max(24px, calc((100vw - var(--max-w)) / 2)) 0;
  border-top: 1px solid var(--line-light);
}
.story-nextprev a { font-size: 15px; font-weight: 500; color: var(--text-dark); display: inline-flex; align-items: center; gap: 8px; }
.story-nextprev a:hover { color: var(--cobalt); }
@media (max-width: 700px) {
  .story-gallery { grid-template-columns: 1fr; }
}


/* ===== Footprint map (ported from about.css) ===== */
/* India footprint map — glowing dots + tooltips */
.footprint-svg { display: flex; justify-content: center; }
.india-map {
  width: 100%;
  max-width: 480px;
  height: auto;
  color: rgba(12, 17, 26, 0.20);
  overflow: visible;
}
.fp-silhouette circle { opacity: 0.9; }
.fp-node { cursor: pointer; }
.fp-glow {
  fill: var(--cobalt);
  opacity: 0.22;
  transform-box: fill-box;
  transform-origin: center;
  animation: fp-pulse 2.6s ease-in-out infinite;
}
.fp-node:nth-child(odd) .fp-glow { animation-delay: 1.1s; }
@keyframes fp-pulse {
  0%, 100% { opacity: 0.12; transform: scale(0.75); }
  50% { opacity: 0.32; transform: scale(1.25); }
}
.fp-dot {
  fill: var(--cobalt);
  filter: drop-shadow(0 0 5px rgba(45, 91, 255, 0.9));
  transition: r 0.2s ease;
}
.fp-node:hover .fp-dot, .fp-node:focus .fp-dot { r: 6; }
.fp-node:focus { outline: none; }
.fp-tip { opacity: 0; transition: opacity 0.22s ease; pointer-events: none; overflow: visible; }
.fp-node:hover .fp-tip, .fp-node:focus-visible .fp-tip, .fp-node:focus .fp-tip { opacity: 1; }
.fp-card {
  background: #0C111A;
  color: #F2F5FA;
  border: 1px solid rgba(45, 91, 255, 0.4);
  border-radius: 10px;
  padding: 11px 13px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  font-family: var(--font-sans);
}
.fp-card .fp-city { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.fp-card .fp-stat { font-size: 11.5px; color: rgba(242, 245, 250, 0.8); margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.fp-card .fp-since { font-size: 10.5px; color: var(--cobalt); margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }

/* short laptop screens (13–15" with browser chrome, ~650–820px tall):
   keep the pinned story header compact so the whole card fits */
@media (min-width: 769px) and (max-height: 820px) {
  #ph-wrap .ph-head { padding-top: 84px; }
  #ph-wrap .ph-head h2 { font-size: clamp(26px, 2.8vw, 40px); margin-top: 8px; }
  #ph-wrap .ph-sub { font-size: 14.5px; margin-top: 10px; max-width: 60ch; }
  #ph-wrap .ph-progress { margin-top: 18px; }
  .istory-card .isc-inner { height: min(64vh, calc(100vh - 290px), 560px); }
  .isc-body { padding: 26px 32px; gap: 10px; }
  .isc-title { font-size: clamp(20px, 1.9vw, 28px); }
  .isc-sub { font-size: 14px; line-height: 1.5; }
  .istory-moves { gap: 12px 22px; }
  .istory-move .im-ic { width: 36px; height: 36px; border-radius: 10px; }
  .istory-move .im-ic svg { width: 18px; height: 18px; }
}
@media (min-width: 769px) and (max-height: 700px) {
  #ph-wrap .ph-sub { display: none; }
  .istory-card .isc-inner { height: min(64vh, calc(100vh - 210px), 560px); }
  .istory-move p { display: none; }
}
