/* About page — fonts, hero blobs, illustration stacking */

/* Figma uses JetBrains Mono for role labels; Chivo Mono is the hosted substitute. */
@font-face {
  font-family: 'Chivo Mono';
  src: url('../fonts/chivo-mono-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.about-role {
  font-family: 'Chivo Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  line-height: 15.333px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cfc162;
}

.about-hero {
  position: relative;
  overflow: hidden;
  /* Left edge of the page container, so blob positions track the content */
  --about-gutter: 24px;
}

@media (min-width: 768px) {
  .about-hero {
    --about-gutter: 48px;
  }
}

@media (min-width: 1024px) {
  .about-hero {
    /* 1320px max-w-page centered inside 190px side padding */
    --about-gutter: max(190px, (100% - 1320px) / 2);
  }
}

.about-hero-gradients {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Figma ellipses are solid #004461 discs with a 150px Gaussian blur; the
   gradient stops approximate that falloff across the full blurred footprint. */
.about-blob-1 {
  width: 1183px;
  height: 1183px;
  left: calc(var(--about-gutter) - 333px);
  top: -155px;
  opacity: 0.4;
  background: radial-gradient(closest-side,
      rgba(0, 68, 97, 0.97) 0%,
      rgba(0, 68, 97, 0.84) 24%,
      rgba(0, 68, 97, 0.5) 49%,
      rgba(0, 68, 97, 0.16) 75%,
      rgba(0, 68, 97, 0) 100%);
  animation: about-cell-a 9s ease-in-out infinite;
}

.about-blob-2 {
  width: 1494px;
  height: 1494px;
  left: calc(var(--about-gutter) + 140px);
  top: -281px;
  opacity: 0.2;
  background: radial-gradient(closest-side,
      rgba(0, 68, 97, 1) 0%,
      rgba(0, 68, 97, 0.84) 40%,
      rgba(0, 68, 97, 0.5) 60%,
      rgba(0, 68, 97, 0.16) 80%,
      rgba(0, 68, 97, 0) 100%);
  animation: about-cell-b 11s ease-in-out -4s infinite;
}

/* Independent X/Y scale squashes and stretches the disc, which reads as a cell
   deforming rather than a circle sliding. */
@keyframes about-cell-a {
  0% {
    transform: translate(0, 0) scale(1, 1);
    opacity: 0.28;
  }
  20% {
    transform: translate(14%, -8%) scale(1.18, 0.92);
    opacity: 0.52;
  }
  40% {
    transform: translate(20%, 6%) scale(0.9, 1.16);
    opacity: 0.34;
  }
  60% {
    transform: translate(8%, 16%) scale(1.22, 1.05);
    opacity: 0.55;
  }
  80% {
    transform: translate(-6%, 8%) scale(0.95, 0.88);
    opacity: 0.3;
  }
  100% {
    transform: translate(0, 0) scale(1, 1);
    opacity: 0.28;
  }
}

@keyframes about-cell-b {
  0% {
    transform: translate(0, 0) scale(1.05, 1);
    opacity: 0.14;
  }
  20% {
    transform: translate(-15%, 7%) scale(0.88, 1.2);
    opacity: 0.3;
  }
  40% {
    transform: translate(-20%, -8%) scale(1.2, 0.9);
    opacity: 0.18;
  }
  60% {
    transform: translate(-7%, -17%) scale(0.92, 1.12);
    opacity: 0.32;
  }
  80% {
    transform: translate(7%, -7%) scale(1.15, 1.02);
    opacity: 0.16;
  }
  100% {
    transform: translate(0, 0) scale(1.05, 1);
    opacity: 0.14;
  }
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

.about-hero-stack {
  position: relative;
}

/* Figma: rings start 21px below the tag; headline overlaps the bottom 60px of
   the 1095x412 illustration. Overlap scales with the illustration width. */
.about-illustration {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 1095px;
  margin-top: 21px;
  pointer-events: none;
}

.about-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.about-hero-title {
  position: relative;
  z-index: 1;
  margin-top: calc(min(100%, 1095px) * -0.0548);
}

.about-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3bbaf9;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  border-radius: 2px;
}

.about-linkedin:hover {
  text-decoration: underline;
}

.about-linkedin:focus-visible {
  outline: 2px solid #3bbaf9;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .about-blob {
    transform: none;
    will-change: opacity;
  }

  .about-blob-1 {
    animation: about-cell-breathe-a 40s ease-in-out infinite;
  }

  .about-blob-2 {
    animation: about-cell-breathe-b 48s ease-in-out infinite;
  }
}

@keyframes about-cell-breathe-a {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.44;
  }
}

@keyframes about-cell-breathe-b {
  0%,
  100% {
    opacity: 0.17;
  }
  50% {
    opacity: 0.23;
  }
}
