/* ============================================================
   ABOUT PAGE — advanced modern redesign
   ============================================================ */

.ap-page {
  --ap-navy: #0b2147;
  --ap-sky: #3d7ea6;
  --ap-amber: #e8913a;
  --ap-ink: #1a2744;
  --ap-mute: #536274;
  --ap-shell: 1320px;
  --ap-gutter: clamp(20px, 5vw, 64px);
  /* HomeVisionaries uses hp-shell / hp-gutter from homepage.css */
  --hp-shell: var(--ap-shell);
  --hp-gutter: var(--ap-gutter);
  background: #fff;
  color: var(--ap-ink);
  overflow-x: clip;
}

.ap-shell {
  width: 100%;
  max-width: var(--ap-shell);
  margin-inline: auto;
  padding-inline: var(--ap-gutter);
}

.ap-section {
  position: relative;
  padding-block: clamp(72px, 10vw, 120px);
}

.ap-accent {
  color: var(--ap-amber);
}

.ap-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.4px;
  color: var(--ap-ink);
  margin: 0 0 14px;
}

.ap-heading-rule {
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e8913a 0%, #3d7ea6 100%);
  margin-bottom: 22px;
}

/* Floating orbs */
.ap-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: ap-float 12s ease-in-out infinite;
}

.ap-orb--amber {
  background: radial-gradient(circle, rgba(232, 145, 58, 0.45) 0%, transparent 70%);
}

.ap-orb--sky {
  background: radial-gradient(circle, rgba(61, 126, 166, 0.4) 0%, transparent 70%);
  animation-delay: -4s;
}

.ap-orb--navy {
  background: radial-gradient(circle, rgba(11, 33, 71, 0.22) 0%, transparent 70%);
  animation-delay: -7s;
}

.ap-orb--sm {
  width: 120px;
  height: 120px;
}

@keyframes ap-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.08); }
}

@keyframes ap-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ap-pulse-soft {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.04); }
}

/* ---------- Hero ---------- */

.ap-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* padding-block: clamp(64px, 10vw, 120px) clamp(56px, 8vw, 88px); */
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}

.ap-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8913a 0%, #3d7ea6 100%);
  z-index: 2;
  width: 100%;
  pointer-events: none;
}

.ap-hero > .ap-hero__sonar {
  position: absolute;
  inset: 0;
  z-index: 0;
  --sonar-grid-color: #9bb8cf;
}

.ap-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ap-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ap-mute);
}

.ap-breadcrumb a {
  color: var(--ap-navy) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.ap-breadcrumb a:hover {
  color: var(--ap-amber) !important;
}

.ap-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--ap-navy);
  margin: 0 0 18px;
}

.ap-hero__title span {
  color: var(--ap-navy);
}

.ap-hero__rule {
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8913a 0%, #3d7ea6 100%);
  margin: 0 auto;
}

/* ---------- Who we are ---------- */

.ap-who {
  background: #fff;
  overflow: hidden;
}

.ap-who__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 126, 166, 0.14) 0%, transparent 68%);
  animation: ap-pulse-soft 8s ease-in-out infinite;
  pointer-events: none;
}

.ap-who__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .ap-who__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
  }
}

.ap-who__copy p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ap-mute);
}

.ap-who__copy p:last-child {
  margin-bottom: 0;
}

.ap-who__copy a {
  color: var(--ap-sky) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ap-who__copy a:hover {
  color: var(--ap-amber) !important;
}

.ap-who__visual {
  position: relative;
  padding: 18px;
}

.ap-who__ring {
  position: absolute;
  width: 140px;
  height: 140px;
  top: -8px;
  left: -8px;
  z-index: 2;
  animation: ap-spin-slow 28s linear infinite;
  pointer-events: none;
}

.ap-who__media {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 28px 56px rgba(26, 39, 68, 0.14);
  background:
    linear-gradient(160deg, #0b2147 0%, #3d7ea6 70%, #e8913a 120%);
  aspect-ratio: 4 / 5;
}

.ap-who__media::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 1;
  pointer-events: none;
}

.ap-who__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.ap-who__visual:hover .ap-who__media img {
  transform: scale(1.04);
}

.ap-who__caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(11, 33, 71, 0.86);
  backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.ap-who__caption span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e8913a;
}

.ap-who__caption strong {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
}

/* ---------- Approach ---------- */

.ap-approach {
  overflow: hidden;
  background:
    radial-gradient(46% 40% at 0% 0%, rgba(232, 145, 58, 0.12) 0%, transparent 58%),
    radial-gradient(46% 40% at 100% 100%, rgba(61, 126, 166, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #f7f4ed 0%, #f4f8fc 100%);
}

.ap-approach__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 33, 71, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 33, 71, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  animation: ap-mesh-drift 28s linear infinite;
}

@keyframes ap-mesh-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

.ap-approach__head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 52px);
}

@media (min-width: 900px) {
  .ap-approach__head {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: end;
    gap: 48px;
  }
}

.ap-approach__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ap-mute);
  max-width: 56ch;
}

.ap-approach__grid {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .ap-approach__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

.ap-approach__card {
  margin: 0;
  padding: 28px 26px 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 14px 36px rgba(26, 39, 68, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: ap-card-in 0.7s ease both;
  animation-delay: var(--ap-delay, 0ms);
}

@keyframes ap-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ap-approach__card--amber {
  border-top: 3px solid #e8913a;
}

.ap-approach__card--sky {
  border-top: 3px solid #3d7ea6;
}

.ap-approach__card--navy {
  border-top: 3px solid #0b2147;
}

.ap-approach__card:hover {
  transform: translateY(-5px);
  border-color: rgba(61, 126, 166, 0.28);
  box-shadow: 0 24px 52px rgba(26, 39, 68, 0.12);
}

.ap-approach__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(11, 33, 71, 0.04);
  color: inherit;
}

.ap-approach__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.ap-approach__card--amber .ap-approach__icon {
  color: #e8913a;
  background: rgba(232, 145, 58, 0.12);
}

.ap-approach__card--sky .ap-approach__icon {
  color: #3d7ea6;
  background: rgba(61, 126, 166, 0.12);
}

.ap-approach__card--navy .ap-approach__icon {
  color: #0b2147;
  background: rgba(11, 33, 71, 0.08);
}

.ap-approach__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ap-approach__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ap-ink);
  margin: 0;
}

.ap-approach__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ap-mute);
}

/* ---------- EDI ---------- */

.ap-edi {
  background: #fff;
}

.ap-edi__panel {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(61, 126, 166, 0.14) 0%, transparent 58%),
    radial-gradient(40% 50% at 0% 100%, rgba(232, 145, 58, 0.1) 0%, transparent 55%),
    linear-gradient(160deg, #f4f8fc 0%, #ffffff 100%);
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 22px 48px rgba(26, 39, 68, 0.07);
  position: relative;
  overflow: hidden;
  align-items: stretch;
}

.ap-edi__panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #e8913a 0%, #3d7ea6 100%);
}

@media (min-width: 900px) {
  .ap-edi__panel {
    grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1fr);
    gap: 36px 40px;
    padding: clamp(28px, 3.5vw, 40px);
    padding-left: clamp(36px, 4vw, 48px);
    min-height: 480px;
  }
}

.ap-edi__media {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #0b2147;
  box-shadow: 0 18px 40px rgba(11, 33, 71, 0.14);
  isolation: isolate;
}

@media (min-width: 900px) {
  .ap-edi__media {
    min-height: 100%;
    align-self: stretch;
  }
}

.ap-edi__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center center;
  will-change: transform;
  animation: ap-edi-ken 10s ease-in-out infinite alternate;
}

.ap-edi__media-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 42%, rgba(11, 33, 71, 0.38) 100%),
    radial-gradient(60% 50% at 80% 18%, rgba(232, 145, 58, 0.24) 0%, transparent 55%);
  animation: ap-edi-glow 5s ease-in-out infinite alternate;
}

@keyframes ap-edi-ken {
  0% {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
  100% {
    transform: scale(1.1) translate3d(1.2%, -2%, 0);
  }
}

@keyframes ap-edi-glow {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

.ap-edi__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ap-edi__intro {
  margin-bottom: 18px;
}

.ap-edi__copy p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ap-mute);
}

.ap-edi__copy p:last-child {
  margin-bottom: 0;
}

.ap-edi__copy a {
  color: var(--ap-sky) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ap-edi__copy a:hover {
  color: var(--ap-amber) !important;
}

@media (prefers-reduced-motion: reduce) {
  .ap-edi__media img,
  .ap-edi__media-glow {
    animation: none;
  }

  .ap-edi__media img {
    transform: none;
  }
}

/* ---------- CTA ---------- */

.ap-cta {
  background:
    radial-gradient(46% 40% at 0% 50%, rgba(232, 145, 58, 0.12) 0%, transparent 58%),
    linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
  padding-block: clamp(48px, 7vw, 88px);
}

.ap-cta__panel {
  display: grid;
  gap: 28px;
  padding: clamp(32px, 4.5vw, 48px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 22px 48px rgba(26, 39, 68, 0.08);
  position: relative;
  overflow: hidden;
}

.ap-cta__panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #e8913a 0%, #3d7ea6 55%, #0b2147 100%);
}

.ap-cta__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ap-cta__orbit {
  position: absolute;
  inset: 0;
  animation: none;
}

.ap-cta__orbit .ap-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 1;
  animation: none;
  mix-blend-mode: multiply;
}

.ap-cta__orbit .ap-orb--amber {
  top: -8%;
  right: 6%;
  width: min(220px, 34vw);
  height: min(220px, 34vw);
  background: radial-gradient(
    circle at 45% 40%,
    rgba(232, 145, 58, 0.95) 0%,
    rgba(232, 145, 58, 0.55) 42%,
    rgba(232, 145, 58, 0.12) 68%,
    transparent 78%
  );
  transform-origin: 35% 65%;
  animation: ap-cta-orb-amber 9s linear infinite;
}

.ap-cta__orbit .ap-orb--sky {
  bottom: -12%;
  right: 18%;
  width: min(240px, 38vw);
  height: min(240px, 38vw);
  background: radial-gradient(
    circle at 50% 45%,
    rgba(61, 126, 166, 0.95) 0%,
    rgba(61, 126, 166, 0.5) 44%,
    rgba(61, 126, 166, 0.12) 68%,
    transparent 78%
  );
  transform-origin: 60% 30%;
  animation: ap-cta-orb-sky 12s linear infinite;
}

@keyframes ap-cta-orb-amber {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: rotate(90deg) translate3d(18px, -14px, 0) scale(1.08);
  }
  50% {
    transform: rotate(180deg) translate3d(8px, 10px, 0) scale(0.96);
  }
  75% {
    transform: rotate(270deg) translate3d(-16px, 6px, 0) scale(1.1);
  }
  100% {
    transform: rotate(360deg) translate3d(0, 0, 0) scale(1);
  }
}

@keyframes ap-cta-orb-sky {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0) scale(1.05);
  }
  25% {
    transform: rotate(-90deg) translate3d(-14px, 12px, 0) scale(0.94);
  }
  50% {
    transform: rotate(-180deg) translate3d(10px, -16px, 0) scale(1.12);
  }
  75% {
    transform: rotate(-270deg) translate3d(16px, 8px, 0) scale(0.98);
  }
  100% {
    transform: rotate(-360deg) translate3d(0, 0, 0) scale(1.05);
  }
}

@media (min-width: 900px) {
  .ap-cta__panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
    padding-left: clamp(40px, 4.5vw, 52px);
  }
}

.ap-cta__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--ap-ink);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.ap-cta__lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ap-mute);
  max-width: 46ch;
  position: relative;
  z-index: 1;
}

.ap-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ap-orb,
  .ap-cta__orbit,
  .ap-cta__orbit .ap-orb,
  .ap-who__ring,
  .ap-who__glow,
  .ap-approach__mesh,
  .ap-approach__card,
  .ap-who__media img {
    animation: none !important;
    transition: none !important;
  }

  .ap-approach__card:hover,
  .ap-who__visual:hover .ap-who__media img {
    transform: none;
  }
}
