/* About page refinements — image treatment and capability cards only.
   The visit panel intentionally uses the untouched AVAVA theme CSS. */

/* Story panorama and photo overlays */
.story__pano,
.story__photo {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, #ff8a24 0%, #f15a24 100%);
}
.story__pano .story__img,
.story__photo .story__img {
  position: relative;
  z-index: 0;
}
.story__pano .story__img {
  object-position: center 50%;
  filter: saturate(1.02) contrast(1.02);
}
.story__photo .story__img {
  object-position: center 48%;
  filter: saturate(.82) contrast(1.06);
}
.story__pano::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(8,27,49,.30) 0%, rgba(14,53,83,.12) 48%, rgba(8,27,49,.06) 100%),
    linear-gradient(0deg, rgba(8,27,49,.08), transparent 58%);
  mix-blend-mode: multiply;
}
.story__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(8,27,49,.72) 0%, rgba(14,53,83,.34) 48%, rgba(8,27,49,.16) 100%),
    linear-gradient(0deg, rgba(8,27,49,.24), transparent 58%);
  mix-blend-mode: multiply;
}
.story__tl,
.story__year,
.story__chips,
.story__x,
.story__photo .story__x { z-index: 2; }
.story__yl {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.story__yr:first-child .story__yl,
.story__yr:last-child .story__yl { color: #000 !important; }
.story__tl::before { background: rgba(255,255,255,.75); opacity: .55; }
.story__dot { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.75); }
.story__yr:first-child .story__dot,
.story__yr:last-child .story__dot { background: var(--acc); }

/* Capability card layout */
.team--capabilities .team__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(340px, auto);
  gap: 18px;
}
.team--capabilities .team__cap-card {
  position: relative;
  isolation: isolate;
  min-height: 340px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #ff8a24 0%, #f15a24 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
}
.team--capabilities .team__cap-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--acc), transparent 82%);
  opacity: .9;
}
.team__cap-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
  color: #fff;
}
.team__cap-num,
.team__cap-kicker,
.team__cap-foot {
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.team__cap-num { font-size: 12px; color: rgba(255,255,255,.75); }
.team__cap-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 14px;
  color: #ff862b;
  font-size: 21px;
  font-weight: 600;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.team__cap-kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: rgba(255,255,255,.82);
  font-size: 10px;
}
.team--capabilities .team__cap-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(20px,1.6vw,27px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.team--capabilities .team__cap-card > p:not(.team__cap-kicker) {
  position: relative;
  z-index: 2;
  max-width: 34ch;
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.65;
}
.team__cap-foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.86);
  font-size: 9px;
  line-height: 1.5;
}
/* Four clear colour panels — no stock photography */
.team--capabilities .team__cap-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.14), transparent 48%);
}
.team--capabilities .team__cap-card:nth-child(1) {
  background: linear-gradient(145deg, #ff8a24, #f15a24);
}
.team--capabilities .team__cap-card:nth-child(2) {
  background: linear-gradient(145deg, #123f63, #092a46);
}
.team--capabilities .team__cap-card:nth-child(3) {
  background: linear-gradient(145deg, #7650a5, #593783);
}
.team--capabilities .team__cap-card:nth-child(4) {
  background: linear-gradient(145deg, #079c98, #087b79);
}
.team--capabilities .team__cap-card:hover {
  transform: translateY(-4px);
  transition: transform .25s ease;
}
.team__subtitle {
  margin: 16px 0 0;
  color: #68717d;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .team--capabilities .team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .team--capabilities .team__cap-card { min-height: 300px; }
}
@media (max-width: 767px) {
  .story__pano::after,
  .story__photo::after {
    background: linear-gradient(180deg, rgba(7,25,44,.22), rgba(7,25,44,.40));
  }
  .team--capabilities .team__grid { grid-template-columns: minmax(0,1fr); }
  .team--capabilities .team__cap-card { min-height: 280px; padding: 22px; }
  .team__cap-top { margin-bottom: 28px; }
}


/* About story — stable desktop composition; keeps the mobile flow intact. */
@media (min-width: 1200px) {
  .story {
    height: auto;
    min-height: 0;
    padding-bottom: clamp(32px, 4vw, 72px);
  }
  .story__pano {
    height: clamp(320px, 34vw, 540px);
    border-radius: clamp(20px, 1.8vw, 32px);
  }
  .story__card {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(calc(100% - clamp(40px, 6vw, 120px)), 1420px);
    margin: clamp(-130px, -7vw, -84px) auto 0;
    padding: clamp(30px, 3vw, 54px);
    border-radius: clamp(22px, 1.8vw, 34px);
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: clamp(20px, 2vw, 34px) clamp(28px, 3vw, 52px);
    align-items: start;
  }
  .story__card-image {
    grid-column: 1;
    grid-row: 2 / span 3;
    min-width: 0;
    height: 100%;
    min-height: 390px;
    max-height: 520px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, #ff8a24 0%, #f15a24 100%);
  }
  .story__card-image .story__img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: 50% 50%;
  }
  .story__h2 {
    grid-column: 2;
    font-size: clamp(38px, 3.25vw, 66px);
    line-height: 1.02;
    overflow-wrap: normal;
  }
  .story__p {
    grid-column: 2;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.7;
  }
  .story__quote, .story__foot { grid-column: 1 / -1; }
  .story__quote { font-size: clamp(20px, 1.55vw, 28px); }
  .story__top { grid-column: 1 / -1; }
}

@media (min-width: 1200px) and (max-width: 1450px) {
  .story__card {
    width: calc(100% - 64px);
    margin-top: -76px;
    padding: 30px;
    gap: 22px 28px;
  }
  .story__card-image { min-height: 350px; }
  .story__h2 { font-size: clamp(36px, 3.2vw, 46px); }
}

@media (max-width: 1199px) {
  .story__card-image {
    grid-column: 1 / -1;
    grid-row: auto;
    height: clamp(190px, 34vw, 300px);
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, #ff8a24 0%, #f15a24 100%);
  }
  .story__card-image .story__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
  }
}

/* About page — give the page heading and story heading clear separation. */
@media (min-width: 768px) {
  #main > .hd-gap {
    height: clamp(88px, 7.5vw, 132px);
  }
}

@media (min-width: 1200px) {
  .phead__txt { gap: clamp(14px, 1.2vw, 22px); }
  .phead__h1 { line-height: 1.02; }
  .story__h2 {
    max-width: 13ch;
    font-size: clamp(36px, 3vw, 60px);
    line-height: 1.08;
    text-wrap: balance;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .story__h2 {
    font-size: clamp(36px, 5.2vw, 58px);
    line-height: 1.08;
    text-wrap: balance;
  }
}
