/* ==========================================================================
   About page
   ========================================================================== */

/* Hero */
.ab-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 40px;
}
.ab-hero__title { font-size: clamp(48px, 7.2vw, 104px); line-height: 1; }
.ab-hero .page-hero__intro { margin-top: 30px; }
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ab-hero__visual {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 460px);
  justify-self: end;
}
.ab-hero__photo {
  position: absolute;
  inset: 10% 8% 4% 6%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-soft);
  z-index: 2;
}
/* Full-body mascot standing in the circle, pointing at the headline */
.ab-hero__mascot {
  position: absolute;
  z-index: 3;
  left: 52%;
  bottom: 0;
  height: 104%;
  translate: -50% 0;
}
.ab-hero__mascot svg { width: auto; height: 100%; }
.ab-blob { z-index: 1; }
.ab-blob--a { width: 34%; height: 34%; top: -4%; right: 2%; }
.ab-blob--b { width: 28%; height: 28%; bottom: -6%; left: -4%; background: var(--blue); }
.ab-blob--c { width: 16%; height: 16%; top: 30%; left: -8%; }
.ab-sticker {
  position: absolute;
  z-index: 3;
  right: -4%;
  bottom: 18%;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(10,31,92,.35);
  transform: rotate(-8deg);
}

/* Story: words light up as you scroll */
.ab-story__text {
  font-size: clamp(28px, 3.6vw, 50px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: var(--track-heading);
  max-width: 22em;
}
.ab-story__text .word { color: rgba(0,0,0,.14); }

/* Numbers */
.ab-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ab-stats li {
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: var(--blue-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ab-stats li:nth-child(2) { background: var(--blue); color: #fff; }
.ab-stats strong {
  font-size: clamp(56px, 6.4vw, 92px);
  font-weight: 500;
  letter-spacing: var(--track-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ab-stats li > span { font-size: 17px; }

/* Experience timeline */
.ab-timeline { position: relative; padding-left: 0; }
.ab-timeline__line {
  position: absolute;
  top: 8px; bottom: 8px;
  left: calc(22% + 3px);
  width: 2px;
  background: rgba(0,0,0,.08);
}
.ab-timeline__line span {
  position: absolute; inset: 0;
  background: var(--blue);
  transform-origin: 50% 0;
  transform: scaleY(var(--p, 1));
}
.ab-job {
  position: relative;
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 0 56px;
  padding-bottom: 64px;
}
.ab-job:last-child { padding-bottom: 0; }
.ab-job__dot {
  position: absolute;
  left: 22%;
  top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--blue);
  transition: transform .4s var(--ease-out), background-color .4s;
}
.ab-job.is-active .ab-job__dot { background: var(--blue); transform: scale(1.6); }
.ab-job__when { font-size: 16px; color: var(--blue-text); padding-top: 2px; }
.ab-job__role { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: var(--track-heading); line-height: 1.1; }
.ab-job__org { font-size: 16px; color: rgba(0,0,0,.55); margin: 6px 0 14px; }
.ab-job__desc { font-size: 18px; line-height: 1.55; max-width: 34em; }
.ab-job__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ab-job__tags li { font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--blue-soft); color: var(--blue-text); }

/* Process */
.ab-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}
.ab-step {
  position: relative;
  min-height: 320px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,0,0,.1);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transition: color .5s var(--ease-out), border-color .5s;
}
.ab-step::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--c);
  clip-path: circle(0% at 100% 100%);
  transition: clip-path .8s var(--ease-out);
  z-index: -1;
}
.ab-step:hover { color: #fff; border-color: transparent; }
.ab-step:hover::before { clip-path: circle(150% at 100% 100%); }
.ab-step__num { font-size: 14px; opacity: .6; }
.ab-step h3 { font-size: 32px; font-weight: 500; letter-spacing: var(--track-display); margin: auto 0 10px; }
.ab-step p { font-size: 16px; line-height: 1.5; }
.ab-step__icon {
  position: absolute;
  top: 22px; right: 24px;
  font-size: 30px;
  color: var(--c);
  transition: color .5s, transform .8s var(--ease-out);
}
.ab-step:hover .ab-step__icon { color: #fff; transform: rotate(90deg) scale(1.2); }

/* Toolbox */
.ab-tools__cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.ab-tools__cloud li {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: var(--track-heading);
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0,0,0,.14);
  cursor: default;
  transition: background-color .35s, color .35s, border-color .35s;
}
.ab-tools__cloud li:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Certifications */
.ab-certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-cert {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: #f5f7fb;
  overflow: hidden;
}
.ab-cert::after {
  /* shine sweep on hover */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent);
  transform: skewX(-20deg);
  transition: left .9s var(--ease-out);
  pointer-events: none;
}
.ab-cert:hover::after { left: 130%; }
.ab-cert__badge {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--c);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--track-title);
}
.ab-cert h3 { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: var(--track-title); }
.ab-cert p { font-size: 14px; color: rgba(0,0,0,.55); margin-top: 6px; }
.ab-cert__link {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  transition: background-color .3s, color .3s;
}
.ab-cert__link:hover { background: var(--blue); color: #fff; }

/* Channels */
.ab-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ab-channels__label { font-size: 15px; color: rgba(0,0,0,.5); margin-bottom: 10px; }
.ab-links li { border-top: 1px solid rgba(0,0,0,.1); }
.ab-links li:last-child { border-bottom: 1px solid rgba(0,0,0,.1); }
.ab-links a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  overflow: hidden;
  isolation: isolate;
  transition: padding .5s var(--ease-out), color .3s;
}
.ab-links a::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease-out);
  z-index: -1;
}
.ab-links a:hover { color: #fff; padding-left: 18px; padding-right: 18px; }
.ab-links a:hover::before { transform: scaleY(1); }
.ab-links__name { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: var(--track-heading); }
.ab-links__meta { font-size: 14px; opacity: .6; }
.ab-links__arrow { font-size: 20px; transition: transform .5s var(--ease-out); }
.ab-links a:hover .ab-links__arrow { transform: rotate(45deg); }

/* Testimonials */
.ab-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-quote {
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--c);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 300px;
}
.ab-quote blockquote { font-size: 23px; line-height: 1.35; letter-spacing: var(--track-heading); font-weight: 500; }
.ab-quote p { font-size: 14px; opacity: .8; }

/* Beyond work */
.ab-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-more__card {
  position: relative;
  padding: 30px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,0,0,.1);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .4s, translate .6s var(--ease-out);
}
.ab-more__card:hover { border-color: var(--c); translate: 0 -6px; }
.ab-more__emoji { font-size: 40px; transition: transform .6s var(--ease-out); }
.ab-more__card:hover .ab-more__emoji { transform: rotate(-12deg) scale(1.2); }
.ab-more__card h3 { font-size: 28px; font-weight: 500; letter-spacing: var(--track-heading); margin-top: auto; }
.ab-more__card p { font-size: 16px; line-height: 1.5; color: rgba(0,0,0,.6); margin-top: 6px; max-width: 18em; }
.ab-more__go {
  position: absolute;
  top: 26px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform .6s var(--ease-out);
}
.ab-more__card:hover .ab-more__go { transform: rotate(-45deg); }

@media (max-width: 960px) {
  .ab-stats, .ab-process { grid-template-columns: 1fr 1fr; }
  .ab-certs, .ab-quotes, .ab-more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ab-hero { grid-template-columns: 1fr; }
  .ab-hero__visual { justify-self: center; width: min(320px, 80vw); order: -1; }
  .ab-timeline__line { left: 3px; }
  .ab-job { grid-template-columns: 1fr; padding-left: 32px; }
  .ab-job__dot { left: 0; }
  .ab-job__when { margin-bottom: 8px; }
  .ab-channels { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ab-stats, .ab-process, .ab-certs, .ab-quotes, .ab-more { grid-template-columns: 1fr; }
  .ab-step { min-height: 220px; }
  .ab-links__meta { display: none; }
}
