:root {
  --ap-max: 1180px;
  --ap-title: #0b4a96;
  --ap-text: #2a4a68;
}
.ap-wrap {
  width: min(var(--ap-max), 100% - 40px);
  margin-inline: auto;
}
@keyframes ashine {
  to {
    background-position: -200% 0;
  }
}
:root {
  --abn-min-h: clamp(330px, 31vw, 450px); /* banner height */
  --abn-img-w: 66%; /* how wide the photo area is */
  --abn-img-pos: 70% 62%; /* which part of the photo stays visible */
  --abn-text-w: 46%; /* width of the text block */
}
.abn {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--abn-min-h);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(100deg, #e4f2f9 0%, #f6fbfe 55%, #eaf7f5 100%);
  padding: clamp(40px, 6vw, 76px) 0 clamp(64px, 8vw, 104px);
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
}
.abn__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.abn__sq {
  position: absolute;
  border-radius: 28px;
  will-change: translate, rotate;
}
.abn__sq--1 {
  width: 300px;
  height: 300px;
  left: -90px;
  top: -80px;
  background: linear-gradient(
    135deg,
    rgba(23, 168, 160, 0.26),
    rgba(23, 168, 160, 0)
  );
  rotate: calc(24deg + var(--p, 0) * 40deg);
  translate: calc(var(--p, 0) * 80px) calc(var(--p, 0) * -50px);
}
.abn__sq--2 {
  width: 150px;
  height: 150px;
  left: 34%;
  top: 10%;
  border: 2px solid rgba(15, 95, 174, 0.18);
  rotate: calc(-18deg + var(--p, 0) * -50deg);
  translate: calc(var(--p, 0) * -60px) calc(var(--p, 0) * 60px);
}
.abn__sq--3 {
  width: 90px;
  height: 90px;
  left: 8%;
  bottom: 16%;
  border: 2px dashed rgba(23, 168, 160, 0.4);
  rotate: calc(var(--p, 0) * 120deg);
  animation: abob 6s ease-in-out infinite;
}
@keyframes abob {
  50% {
    transform: translateY(-14px);
  }
}

/* photo */
.abn__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--abn-img-w);
  z-index: -1;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
.abn__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--abn-img-pos);
  transform-origin: right center;
  /*animation: abnzoom 14s ease-out both;*/
}
@keyframes abnzoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}
.abn__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(244, 250, 253, 0.55),
    rgba(244, 250, 253, 0) 40%
  );
}

/* text */
.abn__inner {
  position: relative;
}
.abn__content {
  max-width: var(--abn-text-w);
}
.crumb {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 95, 174, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ap-text);
  margin-bottom: 22px;
}
.crumb ol {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.crumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
}
.crumb a:hover {
  color: var(--teal);
}
.crumb svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.crumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid #8aa4ba;
  border-top: 2px solid #8aa4ba;
  transform: rotate(45deg);
}
.crumb [aria-current] {
  color: var(--blue-d);
  font-weight: 800;
}
.abn__title {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 4.8vw, 48px);
  color: var(--ap-title);
}
.abn__title b {
  display: block;
  background: linear-gradient(115deg, var(--blue), var(--teal), var(--blue));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ashine 6s linear infinite;
}
.abn__line {
  display: block;
  width: 90px;
  height: 5px;
  border-radius: 5px;
  background: var(--grad);
  margin: 20px 0 18px;
}
.abn__sub {
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.3vw, 1.14rem);
  color: var(--ap-text);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .abn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 36px 0 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }
  .abn__inner {
    padding-bottom: 22px;
  }
  .abn__content {
    max-width: none;
  }
  .abn__line {
    margin-inline: auto;
  }
  .abn__sub {
    margin-inline: auto;
  }
  .abn__sq--2 {
    display: none;
  }
  .abn__media {
    position: relative;
    width: 100%;
    height: clamp(200px, 54vw, 330px);
    order: 2;
    -webkit-mask-image: none;
    mask-image: none;
    z-index: 0;
  }
  .abn__media::after {
    display: none;
  }
  .abn__media img {
    object-position: center bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abn *,
  .abn *::before {
    animation: none !important;
    transition: none !important;
  }
  .abn__sq {
    translate: none !important;
  }
  .abn__media img {
    transform: none;
  }
  .has-io .abn [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
/* reveal for banner text */
.has-io .abn [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.has-io .abn [data-reveal].in {
  opacity: 1;
  transform: none;
}
