#section-about {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #073643 url('/images/bihar-landscape-bg.jpg') center / cover no-repeat;
  background-image: image-set(url('/images/bihar-landscape-bg.webp') type('image/webp'), url('/images/bihar-landscape-bg.jpg') type('image/jpeg'));
}
/* Contain horizontal overflow without changing vertical fullPage scrolling. */
#section-about .fp-overflow {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
#section-about .about-landscape,
#section-about .about-capabilities { box-sizing: border-box; }
#section-about .about-copy,
#section-about .about-capabilities li,
#section-about .about-capabilities li span { min-width: 0; }
#section-about .about-capabilities li span { overflow-wrap: anywhere; }
#section-about::before, #section-about::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
#section-about::before {
  display: none;
}
#section-about .sidebar-wrapper { pointer-events: none; }
#section-about .sidebar, #section-about .sidebar-tab { pointer-events: auto; }
#section-about::after {
  opacity: 1;
  background: linear-gradient(180deg, rgba(0, 35, 57, .78), rgba(0, 30, 48, .72));
}
.about-landscape {
  position: relative; z-index: 1;
  width: 100%; min-height: 100vh; padding: clamp(48px, 7vh, 90px) 9% 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: linear-gradient(0deg, rgba(0, 28, 39, .65) 0%, rgba(0, 28, 39, .4) 15%, transparent 48%);
}
.about-overview { display: flex; justify-content: space-between; align-items: center; gap: 9%; }
.about-copy { width: 58%; max-width: 760px; }
#section-about .about-copy .title { color: #fff; font-size: clamp(30px, 3.4vw, 50px); margin-bottom: 18px; padding-top: .12em; padding-bottom: 14px; line-height: 1.4; }
#section-about .about-copy .title::before { background: #bce4e7; width: 64px; }
#section-about .about-copy .title::after { display: none; }
#section-about .about-copy .description, #section-about .about-copy .description p {
  color: #f1f7f8; text-align: justify; text-align-last: start; font-size: calc(clamp(15px, 1.2vw, 18px) * var(--fs-scale, 1)); line-height: 1.5;
}
#section-about .about-copy .description p { margin: 0 0 14px; }
#section-about .about-overview .btn-knowmore { background: linear-gradient(#27b8f1, #0076bf); margin-top: 12px; padding: 10px 24px; font-size: 14px; letter-spacing: 0; text-transform: none; box-shadow: 0 6px 18px #001a2940; align-self: flex-start; }
#section-about .about-overview .btn-knowmore i { background: none; width: auto; height: auto; }
.about-capabilities { width: 220px; flex-shrink: 0; padding: 18px; border-radius: 22px; background: rgba(12, 56, 79, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid #ffffff40; box-shadow: 0 12px 36px #002c3c30; }
.about-capabilities li { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; }
.about-capabilities i { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: #effafa; color: #185768; font-size: 24px; }
/* Glimpses: the clips sit as one stack of cards fanned out from the front card's
   top-left corner (back cards peek out above it); clicking opens the carousel. */
.about-gallery { --stack-w: min(340px, 100%); }
.about-stack {
  position: relative; display: block; width: var(--stack-w); aspect-ratio: 16 / 9;
  margin-top: calc(var(--stack-w) * .27); /* room for the fanned cards */
  padding: 0; border: 0; border-radius: 12px; background: none; color: #fff; text-align: left; cursor: pointer;
}
.about-stack-card {
  --depth: 0;
  position: absolute; inset: 0; overflow: hidden; border: 2px solid #ffffffb3; border-radius: 12px; background: #123d49;
  box-shadow: 0 10px 26px #00141f8c;
  transform-origin: 0 0; transform: rotate(calc(var(--depth) * -5deg));
  transition: transform .45s cubic-bezier(.3, 1.35, .5, 1), border-color .2s;
}
.about-stack-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.about-stack-card:not(.is-front) img { filter: brightness(calc(1 - var(--depth) * .14)); }
.about-stack:is(:hover, :focus-visible) .about-stack-card { transform: rotate(calc(var(--depth) * -6.5deg)) translateX(calc(var(--depth) * 3px)); }
.about-stack:is(:hover, :focus-visible) .is-front { border-color: #87d9c5; }
.about-stack-card.is-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #001b26e6); }
.about-stack-label { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 9px; display: grid; gap: 2px; line-height: 1.25; }
.about-stack-label strong { font-size: clamp(13px, calc(var(--stack-w) * .066), 17px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-stack-label span { font-size: clamp(11px, calc(var(--stack-w) * .05), 13px); color: #cdeef0; }
.about-play { position: absolute; z-index: 1; left: 50%; top: 38%; transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(38px, calc(var(--stack-w) * .16), 50px); height: clamp(38px, calc(var(--stack-w) * .16), 50px); border: 3px solid white; border-radius: 50%; background: #002934b3; color: white; font-size: 19px; padding-left: 3px; }
.about-play::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #87d9c5; animation: about-pulse 2.2s ease-out infinite; }
@keyframes about-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
#section-about :is(button, a):focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* Carousel dialog */
.about-player { margin: auto; width: min(1000px, 94vw); max-height: 96vh; padding: 58px 20px 18px; border: 1px solid #537782; border-radius: 16px; background: #052631; color: white; overflow: auto; }
.about-player::backdrop { background: #00131deb; }
.about-player-head { position: absolute; top: 16px; left: 22px; right: 64px; display: flex; align-items: baseline; gap: 14px; }
.about-player-head h3 { margin: 0; color: #fff; font-size: 20px; font-weight: 600; }
.about-player-count { color: #9fd8e0; font-size: 14px; font-variant-numeric: tabular-nums; }
.about-player-close { position: absolute; top: 6px; right: 10px; width: 44px; height: 44px; border: 0; background: none; color: white; font-size: 28px; cursor: pointer; }
.about-carousel { position: relative; }
.about-carousel-viewport { overflow: hidden; border-radius: 10px; background: #000; touch-action: pan-y; }
.about-carousel-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.about-carousel-track.no-anim { transition: none; }
.about-carousel-slide { position: relative; flex: 0 0 100%; }
.about-carousel-slide video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 68vh; background: #000; }
.about-player-error { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 16px; background: #052631e6; color: white; }
.about-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffff59; border-radius: 50%; background: #00131db3; color: white; font-size: 18px; cursor: pointer; transition: background .2s; }
.about-carousel-arrow:hover { background: #0076bf; }
.about-carousel-arrow[data-direction='-1'] { left: 12px; }
.about-carousel-arrow[data-direction='1'] { right: 12px; }
.about-player-toggle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: #0009; color: #fff; font-size: 26px; cursor: pointer; opacity: 0; pointer-events: none; transition: background .2s, opacity .2s; }
.about-carousel:hover .about-player-toggle,
.about-player-toggle:focus-visible { opacity: 1; pointer-events: auto; }
@media (hover: none) { .about-player-toggle { opacity: 1; pointer-events: auto; } }
.about-player-toggle:hover { background: #000c; }
.about-player-toggle .fa-play { margin-left: 4px; }
.about-carousel-thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.about-carousel-thumb { flex: 0 1 120px; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid transparent; border-radius: 8px; background: #123d49; opacity: .55; cursor: pointer; transition: opacity .2s, border-color .2s; }
.about-carousel-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-carousel-thumb:hover { opacity: .85; }
.about-carousel-thumb[aria-current='true'] { border-color: #80d6bd; opacity: 1; }
.about-player :is(button):focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 1100px) { .about-landscape { padding-inline: 8%; } .about-copy { width: 65%; } .about-capabilities { width: 190px; padding: 12px; } .about-capabilities li { font-size: 14px; gap: 10px; } }
/* Budget the desktop section around the viewport, including the gallery. */
@media (min-width: 768px) {
  .about-landscape {
    box-sizing: border-box;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    padding: clamp(24px, 5vh, 52px) 5% 16px;
    gap: clamp(20px, 4vh, 44px);
  }
  .about-overview { gap: clamp(28px, 3vw, 56px); flex: 0 0 auto; min-height: 0; align-items: stretch; }
  .about-capabilities { display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
  .about-copy { flex: 1; width: auto; max-width: none; min-width: 0; }
  #section-about .about-copy .description { max-width: none; }
  #section-about .about-copy .title {
    font-size: clamp(32px, 4.8vh, 48px);
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  #section-about .about-copy .description,
  #section-about .about-copy .description p {
    font-size: calc(clamp(14px, 2.15vh, 20px) * var(--fs-scale, 1));
    line-height: 1.5;
  }
  #section-about .about-copy .description p { margin-bottom: 10px; }
  #section-about .about-overview .btn-knowmore { padding: 8px 22px; min-height: 40px; }
}
/* Tablet: copy across the top, then the capability card (2×2) beside the video stack */
@media (min-width: 768px) and (max-width: 1100px) {
  .about-landscape { padding-inline: 6%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 16px 32px; }
  .about-overview { display: contents; }
  .about-copy { grid-column: 1 / -1; width: 100%; }
  #section-about .about-overview .btn-knowmore { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
  .about-capabilities { grid-column: 1; align-self: end; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 12px 16px; }
  .about-capabilities li { padding: 4px 0; font-size: 14px; gap: 10px; }
  .about-capabilities i { width: 36px; height: 36px; flex-basis: 36px; font-size: 18px; }
  .about-gallery { grid-column: 2; align-self: end; --stack-w: min(280px, 30vw, 22vh * 16 / 9 / 1.27); }
}
@media (max-width: 767px) {
  #section-about::after {
    background: linear-gradient(180deg, rgba(0, 35, 57, .96), rgba(0, 30, 48, .94));
  }
  #section-about { background-position: 70% center; }
  #section-about::before { display: none; }
  .about-landscape { min-height: auto; padding: 70px 24px 35px; gap: 36px; }
  .about-overview { flex-direction: column; align-items: stretch; gap: 24px; }
  .about-copy { width: 100%; }
  .about-capabilities { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .about-capabilities i { width: 38px; height: 38px; flex-basis: 38px; font-size: 20px; }
  /* The fan juts out to the right (~15% of the width), so offset to centre it visually */
  .about-gallery { display: flex; justify-content: center; --stack-w: min(300px, 76vw); }
  .about-stack { margin-right: calc(var(--stack-w) * .15); }
  .about-carousel-arrow { width: 40px; height: 40px; font-size: 15px; }
  .about-carousel-arrow[data-direction='-1'] { left: 6px; }
  .about-carousel-arrow[data-direction='1'] { right: 6px; }
  .about-player { padding: 54px 10px 12px; }
}
.about-copy-edge { display: none; }
/* Wide desktop: dark diagonal panel on the left, photo on the right. All copy and
   the gallery stay inside the panel; the capability card floats over the photo. */
@media (min-width: 1101px) {
  #section-about {
    --edge-top: 58vw;     /* x where the diagonal meets the top of the section */
    --edge-bottom: 88vw;  /* x where it meets the bottom */
    --copy-left: 5vw;
    --copy-t0: 0.07;      /* copy block spans 7vh … 58vh */
    --copy-t1: 0.84;
    /* Right column: capability card + video stack. Kept left of the floating
       back-to-top / game buttons (bottom-right corner), and lifted on short
       viewports so the stack never runs off the bottom. */
    --side-w: clamp(200px, min(17vw, 30vh), 320px);
    --side-right: calc(3vw + 64px);
    --caps-h: 250px;                                  /* capability card, approx. */
    --stack-h: calc(var(--side-w) * (.27 + 9 / 16));  /* fanned cards + front card */
    --col-top: calc(var(--map-bottom) + 3vh);
    /* The video stack sits left of the column, straddling the diagonal below the copy */
    --stack-right: calc(var(--side-right) + var(--side-w) * .85);
    --stack-top: min(calc(var(--col-top) + var(--caps-h) + 2vh), calc(100vh - var(--stack-h) - 24px));
    /* Photo sized by width and pinned top-right so the whole Bihar map sits inside the
       photo triangle (image is 2103x748: height = width / 2.81; map bottom ≈ 69.5% of it).
       Below the photo it fades into dark teal, where the capability card sits. */
    --photo-w: min(70vw, calc((100vh - var(--caps-h) - 6vh) * 2.81 / 0.695));
    --photo-h: calc(var(--photo-w) / 2.81);
    --map-bottom: calc(var(--photo-h) * 0.695);
    background:
      linear-gradient(90deg, #03293b 0%, rgba(3, 41, 59, 0) 30%) right top / var(--photo-w) var(--photo-h) no-repeat,
      linear-gradient(180deg, rgba(3, 41, 59, 0) 70%, #03293b 100%) right top / var(--photo-w) var(--photo-h) no-repeat,
      url('/images/bihar-landscape-bg.jpg') right top / var(--photo-w) auto no-repeat,
      #03293b;
    background:
      linear-gradient(90deg, #03293b 0%, rgba(3, 41, 59, 0) 30%) right top / var(--photo-w) var(--photo-h) no-repeat,
      linear-gradient(180deg, rgba(3, 41, 59, 0) 70%, #03293b 100%) right top / var(--photo-w) var(--photo-h) no-repeat,
      image-set(url('/images/bihar-landscape-bg.webp') type('image/webp'), url('/images/bihar-landscape-bg.jpg') type('image/jpeg')) right top / var(--photo-w) auto no-repeat,
      #03293b;
  }
  #section-about::after {
    background: linear-gradient(160deg, rgba(0, 33, 52, .95) 0%, rgba(0, 40, 58, .88) 55%, rgba(0, 28, 42, .94) 100%);
    clip-path: polygon(0 0, var(--edge-top) 0, var(--edge-bottom) 100%, 0 100%);
  }
  #section-about::before {
    display: block;
    background: linear-gradient(180deg, #27b8f1, #80d6bd);
    clip-path: polygon(var(--edge-top) 0, calc(var(--edge-top) + 5px) 0, calc(var(--edge-bottom) + 5px) 100%, var(--edge-bottom) 100%);
  }
  .about-landscape {
    /* Budget the map, services and gallery within the desktop viewport. */
    height: 100vh;
    min-height: 0;
    padding: calc(var(--copy-t0) * 100vh) 3vw 12px var(--copy-left);
    justify-content: flex-start;
    gap: 0;
    background: none;
  }
  .about-overview { display: block; }
  .about-copy {
    width: calc(var(--edge-top) + (var(--edge-bottom) - var(--edge-top)) * var(--copy-t1) - var(--copy-left) - 2.5vw);
    height: calc((var(--copy-t1) - var(--copy-t0)) * 100vh);
    overflow: hidden;
  }
  /* Invisible float whose slanted left side makes the text wrap along the diagonal,
     with a notch so any text reaching down to the video stack wraps short of it.
     Points: diagonal top → right edge → notch (stack's left side, from its top
     down) → diagonal at the section bottom → back to the top. Lines only ever
     wrap at the leftmost edge in their band, so the notch-to-diagonal edge is inert. */
  .about-copy-edge {
    display: block;
    float: right;
    width: 100%;
    height: 100%;
    shape-outside: polygon(
      calc(var(--edge-top) + (var(--edge-bottom) - var(--edge-top)) * var(--copy-t0) - var(--copy-left) - 2.5vw) 0,
      100% 0,
      100% 200vh,
      calc(100vw - var(--stack-right) - var(--side-w) - var(--copy-left) - 1.5vw) 200vh,
      calc(100vw - var(--stack-right) - var(--side-w) - var(--copy-left) - 1.5vw) calc(var(--stack-top) - var(--copy-t0) * 100vh - 4px),
      calc(var(--edge-bottom) - var(--copy-left) - 2.5vw) calc((1 - var(--copy-t0)) * 100vh)
    );
  }
  .about-copy.is-clipped { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 3em), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 3em), transparent); }
  #section-about .about-copy .title { font-size: clamp(34px, 5.8vh, 62px); }
  #section-about .about-copy .description,
  #section-about .about-copy .description p { font-size: calc(clamp(16px, 2.5vh, 25px) * var(--fs-scale, 1)); line-height: 1.55; text-align: start; }
  #section-about .about-copy .description p { margin-bottom: 1.6vh; }
  #section-about .about-overview .btn-knowmore { margin-top: 1.5vh; }
  .about-capabilities {
    position: absolute;
    top: var(--col-top); /* just below the map */
    right: 0;
    border-radius: 22px 0 0 22px;
    border-right: 0;
    width: var(--side-w);
    padding: 10px 16px;
    background: rgba(8, 44, 64, .62);
  }
  .about-capabilities li { padding: 7px 0; }
  .about-capabilities i { width: 42px; height: 42px; flex-basis: 42px; font-size: 20px; }
  /* Video stack below the capability card, shifted left across the diagonal;
     its own top margin leaves room for the fanned cards. */
  .about-gallery { position: absolute; right: var(--stack-right); top: var(--stack-top); --stack-w: var(--side-w); }
}
@media (prefers-reduced-motion: reduce) {
  #section-about *, .about-player * { transition: none !important; }
  .about-play::before { animation: none; }
}
