/* -------------------------------------------------------
   About intro (homepage "Arianus's vision" section)
   Behaviour lives in assets/js/about-intro.js.
------------------------------------------------------- */
.about-intro {
  --ab-base: var(--base-color, #dd6531);
  --ab-coral: #ef5f43;
  --ab-peach: #f38c4b;
  --ab-ink: var(--dark-gray, #292d36);
  --ab-muted: var(--medium-gray, #808291);
  --ab-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ab-ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.25);
  position: relative;
  overflow: hidden;
  overflow: clip;
  background-color: #fff;
  background-image: radial-gradient(rgba(41, 45, 54, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ab-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.ab-glow-1 {
  width: 440px;
  height: 440px;
  top: 30%;
  left: -160px;
  background: var(--ab-peach);
  opacity: 0.22;
  animation: ab-drift 18s ease-in-out infinite;
}

.ab-glow-2 {
  width: 380px;
  height: 380px;
  bottom: -160px;
  right: -120px;
  background: var(--ab-coral);
  opacity: 0.16;
  animation: ab-drift 22s ease-in-out infinite reverse;
}

/* Feature cards */
.ab-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 90px;
}

.ab-feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(41, 45, 54, 0.07);
  box-shadow: 0 18px 40px -28px rgba(41, 45, 54, 0.35);
  overflow: hidden;
}

.ab-feature::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ab-base), var(--ab-peach));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ab-ease-out);
}

.ab-feature:hover::after {
  transform: scaleX(1);
}

.ab-feature-icon {
  flex: none;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 25px;
  color: var(--ab-base);
  background: rgba(221, 101, 49, 0.1);
  transition: color 0.4s ease, background 0.4s ease, transform 0.5s var(--ab-ease-spring), box-shadow 0.4s ease;
}

.ab-feature:hover .ab-feature-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--ab-base), var(--ab-peach));
  box-shadow: 0 12px 24px -10px rgba(221, 101, 49, 0.85);
  transform: rotate(-8deg) scale(1.08);
}

.ab-feature-title {
  display: block;
  margin-bottom: 2px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ab-ink);
}

.ab-feature p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ab-muted);
}

/* Main block */
.ab-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

/* Photo collage */
.ab-media {
  position: relative;
  max-width: 520px;
  padding-bottom: 70px;
}

.ab-photo {
  border-radius: 28px;
  overflow: hidden;
  background: var(--very-light-gray, #f7f7f7);
}

.ab-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ab-ease-out);
}

.ab-photo:hover img {
  transform: scale(1.06);
}

.ab-photo-main {
  width: 75%;
  aspect-ratio: 430 / 553;
  box-shadow: 0 30px 60px -30px rgba(41, 45, 54, 0.5);
}

.ab-photo-side {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 352 / 452;
  border: 8px solid #fff;
  border-radius: 32px;
  box-shadow: 0 30px 60px -25px rgba(41, 45, 54, 0.55);
  transform: translateY(var(--ab-parallax, 0px));
  will-change: transform;
}

/* Rotating text badge */
.ab-badge {
  position: absolute;
  z-index: 2;
  top: 34%;
  left: 62%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--ab-ink);
  box-shadow: 0 20px 40px -18px rgba(41, 45, 54, 0.7);
  transform: translate(-50%, -50%);
}

.ab-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ab-spin 14s linear infinite;
}

.ab-badge text {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  fill: #fff;
}

.ab-badge-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--ab-base), var(--ab-peach));
  transform: translate(-50%, -50%);
  animation: ab-core-pulse 2.4s ease-out infinite;
}

/* Content */
.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ab-base);
  background: #fff;
  border: 1px solid rgba(221, 101, 49, 0.2);
  box-shadow: 0 6px 18px -10px rgba(221, 101, 49, 0.5);
}

.ab-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ab-base);
  animation: ab-pulse 1.8s ease-out infinite;
}

.ab-heading {
  margin-bottom: 22px;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: var(--ab-ink);
}

.ab-gradient-text {
  background: linear-gradient(90deg, var(--ab-base), var(--ab-coral), var(--ab-peach), var(--ab-base));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ab-text-flow 7s linear infinite;
}

.ab-text {
  max-width: 460px;
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ab-muted);
}

.ab-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.ab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--ab-ink);
  box-shadow: 0 16px 30px -16px rgba(41, 45, 54, 0.8);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.35s ease, transform 0.35s var(--ab-ease-out);
}

.ab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ab-peach), var(--ab-coral));
  transform: translateX(-101%);
  transition: transform 0.5s var(--ab-ease-out);
}

.ab-btn:hover,
.ab-btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(221, 101, 49, 0.8);
}

.ab-btn:hover::before,
.ab-btn:focus-visible::before {
  transform: none;
}

.ab-btn:focus-visible,
.ab-link:focus-visible {
  outline: 3px solid rgba(221, 101, 49, 0.35);
  outline-offset: 3px;
}

.ab-btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: var(--ab-ink);
  background: #fff;
  transition: transform 0.45s var(--ab-ease-spring);
}

.ab-btn:hover .ab-btn-icon {
  transform: rotate(45deg);
}

.ab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ab-ink);
  background: linear-gradient(var(--ab-base), var(--ab-base)) left bottom / 0 2px no-repeat;
  transition: background-size 0.45s var(--ab-ease-out), color 0.3s ease;
}

.ab-link i {
  transition: transform 0.4s var(--ab-ease-spring);
}

.ab-link:hover,
.ab-link:focus-visible {
  color: var(--ab-base);
  background-size: 100% 2px;
}

.ab-link:hover i {
  transform: translateX(5px);
}

/* Scroll reveal (only hidden once JS is running) */
.ab-js .ab-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.8s var(--ab-ease-out);
  transition-delay: calc(var(--ab-i, 0) * 100ms);
}

.ab-js .ab-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.ab-js .ab-feature.ab-reveal.is-visible {
  transition: opacity 0.7s ease, transform 0.5s var(--ab-ease-out), box-shadow 0.4s ease;
  transition-delay: 0s;
}

.ab-js .ab-feature.ab-reveal.is-visible:hover,
.ab-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -28px rgba(41, 45, 54, 0.5);
}

/* Photos wipe in and the badge pops in */
.ab-js .ab-media .ab-photo-main,
.ab-js .ab-media .ab-photo-side img {
  clip-path: inset(0 100% 0 0 round 28px);
  transition: clip-path 1.1s var(--ab-ease-out);
}

.ab-js .ab-media .ab-photo-side img {
  clip-path: inset(0 0 0 100%);
  transition-delay: 0.35s;
}

.ab-js .ab-media.is-visible .ab-photo-main,
.ab-js .ab-media.is-visible .ab-photo-side img {
  clip-path: inset(0 0 0 0 round 28px);
}

.ab-js .ab-media.is-visible .ab-photo-side img {
  clip-path: inset(0 0 0 0);
}

.ab-js .ab-media .ab-badge {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(-90deg);
  transition: opacity 0.5s ease 0.7s, transform 0.8s var(--ab-ease-spring) 0.7s;
}

.ab-js .ab-media.is-visible .ab-badge {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Keyframes */
@keyframes ab-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

@keyframes ab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(221, 101, 49, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(221, 101, 49, 0); }
}

@keyframes ab-core-pulse {
  0% { box-shadow: 0 0 0 0 rgba(243, 140, 75, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(243, 140, 75, 0); }
}

@keyframes ab-spin {
  to { transform: rotate(360deg); }
}

@keyframes ab-text-flow {
  to { background-position: 300% 0; }
}

/* Responsive */
@media (max-width: 1199px) {
  .ab-features {
    gap: 16px;
  }

  .ab-feature {
    padding: 20px;
  }

  .ab-main {
    gap: 50px;
  }
}

@media (max-width: 991px) {
  .ab-features {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin: 0 auto 60px;
  }

  .ab-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }

  .ab-media {
    margin: 0 auto;
    width: 100%;
  }

  .ab-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }

  .ab-text {
    margin-left: auto;
    margin-right: auto;
  }

  .ab-actions {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .ab-media {
    padding-bottom: 50px;
  }

  .ab-badge {
    width: 100px;
    height: 100px;
  }

  .ab-badge-core {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .about-intro *,
  .about-intro *::before,
  .about-intro *::after {
    animation: none !important;
    transition: none !important;
  }

  .ab-js .ab-reveal,
  .ab-js .ab-media .ab-badge {
    opacity: 1;
  }

  .ab-js .ab-reveal {
    transform: none;
  }

  .ab-js .ab-media .ab-photo-main,
  .ab-js .ab-media .ab-photo-side img {
    clip-path: none;
  }

  .ab-js .ab-media .ab-badge {
    transform: translate(-50%, -50%);
  }

  .ab-photo-side {
    transform: none;
  }
}
