/* Mark and curve inner-page banners, 23 November 2026.
   Loaded only on the six inner photo banner pages. India Chipchase and
   the home page do not use this file. Hand-built SVG and CSS. */

.about-hero.banner-dir-b {
  position: relative;
  min-height: 0;
  aspect-ratio: 3.15 / 1;
  max-height: 560px;
  align-items: flex-end;
  overflow: hidden;
  background: #1E0C28;
}

.about-hero.banner-dir-b .banner-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.about-hero.banner-dir-b .banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.about-hero.banner-dir-b .banner-motif {
  position: absolute;
  right: 7%;
  top: 46%;
  transform: translateY(-58%);
  width: min(24vw, 280px);
  height: auto;
  display: block;
  overflow: visible;
}

.about-hero.banner-dir-b .banner-motif-wide {
  width: min(32vw, 380px);
}

.about-hero.banner-dir-b .banner-logo-wrap {
  position: absolute;
  right: 8%;
  top: 42%;
  transform: translateY(-58%);
  width: min(24vw, 270px);
}

.about-hero.banner-dir-b .banner-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.28));
}

.about-hero.banner-dir-b .about-hero-wash {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(30, 12, 40, 0.62) 0%, rgba(30, 12, 40, 0.28) 42%, rgba(30, 12, 40, 0.08) 70%, transparent 100%),
    linear-gradient(180deg, rgba(30, 12, 40, 0.08) 0%, rgba(30, 12, 40, 0.35) 48%, rgba(30, 12, 40, 0.88) 100%);
}

.about-hero.banner-dir-b .about-hero-copy {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .about-hero.banner-dir-b .banner-art * {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .about-hero.banner-dir-b {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }

  .about-hero.banner-dir-b .banner-art {
    position: relative;
    width: 100%;
    height: 230px;
    container-type: inline-size;
  }

  /* Vertically centre each motif in the space between the top of the
     art (flush with the sticky header at rest) and the top of the
     purple curve at the horizontal centre. The curve trough is at
     y=345 in the 406-tall viewBox. Do not crop the motif. */

  .about-hero.banner-dir-b .banner-motif,
  .about-hero.banner-dir-b .banner-logo-wrap {
    right: 50%;
    top: calc((100% - 100% * 61 / 406) / 2);
    bottom: auto;
    transform: translate(50%, -50%);
    width: 148px;
  }

  .about-hero.banner-dir-b .banner-motif-wide {
    width: 210px;
  }

  .about-hero.banner-dir-b .about-hero-wash {
    display: none;
  }

  .about-hero.banner-dir-b .about-hero-copy {
    padding: 28px 24px 32px;
    background: var(--night);
  }
}

/* From 726px the banner art is width-sliced, so the curve sits slightly
   lower. Recentre using the art's own inline size (not 100vw, which can
   include a scrollbar). Desktop from 901px is unchanged. */
@media (min-width: 726px) and (max-width: 900px) {
  .about-hero.banner-dir-b .banner-motif,
  .about-hero.banner-dir-b .banner-logo-wrap {
    top: calc((100% - (115px - 142 * 100cqw / 1280)) / 2);
  }
}