#about {
  padding: clamp(1.4rem, 3.6vh, 2.75rem) clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
}

.about__grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: center;
  gap: clamp(2.2rem, 5vh, 3.75rem);
}

.about__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(16rem, 38vw, 30rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* ---- Name / intro ---- */

.about__greeting {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 0.55vw + 0.55vh, 1.25rem);
  color: var(--color-text-muted);
}

.about__name {
  margin: clamp(0.2rem, 0.8vh, 0.4rem) 0 0;
  font-family: var(--font-chunky);
  font-weight: var(--font-chunky-weight);
  font-stretch: var(--font-chunky-stretch);
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.about__first-name,
.about__last-name {
  display: block;
}

.about__first-name,
.about__last-name {
  /* The outer min() caps growth to a width-proportional ceiling so a
     tall, narrow viewport (a resized desktop window, not just mobile)
     can't inflate the vh term past what the hero column can hold —
     these unbreakable words would otherwise clip against the section's
     overflow:hidden. */
  font-size: min(clamp(2.2rem, 5.6vw + 1.6vh, 6.2rem), 8vw);
}

.about__first-name {
  color: var(--color-accent);
}

.about__last-name {
  color: var(--color-black);
}

.about__name-rule {
  margin: clamp(1.5rem, 4vh, 2.4rem) 0 0;
  border: none;
  border-top: 1px solid var(--border-color-soft);
  width: 100%;
}

.about__title-line {
  margin: clamp(1.4rem, 3.4vh, 2rem) 0 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.3rem, 0.9vw + 1vh, 1.6rem);
  color: var(--color-black);
}

.about__summary {
  margin: clamp(1.1rem, 2.8vh, 1.7rem) 0 0;
  max-width: 38rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.6vw + 0.7vh, 1.12rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}


/* ---- Stat band ---- */

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}

.about-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2.6vh, 1.75rem) clamp(1.15rem, 1.9vw, 1.6rem);
  min-width: 0;
  background: var(--color-white);
  border: 1px solid var(--border-color-soft);
  border-radius: var(--radius-soft-sm);
}

.about-stat-card__label {
  font-weight: var(--font-chunky-weight);
  font-size: clamp(0.65rem, 0.4vw + 0.35vh, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about-stat-card__value {
  font-weight: var(--font-chunky-weight);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 0.75vw + 0.75vh, 1.4rem);
  line-height: 1.15;
}

/* The reference gives the numeric "Experience" value (e.g. "4+") extra
   visual weight over the text-based values ("MS in CS"). */
.about-stat-card__value--numeral {
  font-family: var(--font-chunky);
  font-weight: var(--font-chunky-weight);
  font-stretch: var(--font-chunky-stretch);
  letter-spacing: var(--font-chunky-tracking);
  font-size: clamp(1.9rem, 1.9vw + 2vh, 2.7rem);
}

.about-stat-card__value--black {
  color: var(--color-black);
}

.about-stat-card__value--accent {
  color: var(--color-accent);
}

.about-stat-card__description {
  font-weight: var(--font-chunky-weight);
  font-weight: 400;
  font-size: clamp(0.9rem, 0.42vw + 0.5vh, 1rem);
  color: var(--color-black);
}

/* ---- Actions ---- */

.about__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.6rem, 3.6vh, 2.4rem);
}

.about__cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.7rem, 1.4vh, 1rem) clamp(1.2rem, 1.8vw, 1.7rem);
  background: var(--color-accent-strong);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.45vw + 0.45vh, 1.05rem);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border: var(--border-width) solid var(--border-color);
  border-radius: 0;
  box-shadow: var(--shadow-hard);
  white-space: nowrap;
}

.about__cta--outline {
  background: var(--color-white);
  color: var(--color-black);
}

.about__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.3rem, 2.4vw + 1.5vh, 3rem);
  height: clamp(2.3rem, 2.4vw + 1.5vh, 3rem);
  background: var(--color-white);
  color: var(--color-black);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border: var(--border-width) solid var(--border-color);
  border-radius: 0;
  box-shadow: var(--shadow-hard);
  flex: none;
}

.about__icon-svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ---- Portrait ---- */

.about__portrait-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__portrait {
  position: relative;
  z-index: 0;
  width: 100%;
  flex: 1;
  min-height: 16rem;
  max-height: calc(100svh - var(--navbar-h) - 2rem);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  background: transparent;
}

/* Large, low-opacity radial shape behind the portrait — provides depth
   without a hard edge; the character overlaps it and stays fully in
   front (see .about__portrait-image's z-index below). */
.about__portrait::before {
  content: "";
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(92%, 28rem);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--color-accent-pale-strong) 0%, var(--color-accent-pale) 62%, transparent 100%);
  z-index: -1;
}

.about__portrait-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;

  object-position: center;
  display: block;
}

/* Floating AI voice-agent pill — reads as one component with the
   portrait and its background circle. See src/sections/about/about.js
   (data-reveal="pop") for its scroll-entrance. */
.about__portrait-bubble {
  position: absolute;
  top: clamp(-0.5rem, -2%, 0.5rem);
  right: clamp(-0.6rem, -3%, 0.5rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem 0.5rem 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--border-color-accent-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about__portrait-bubble:hover,
.about__portrait-bubble:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-hover);
  border-color: var(--border-color-accent-soft-hover);
}

.about__portrait-bubble:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.about__portrait-bubble-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--color-accent-pale-strong);
  color: var(--color-accent-strong);
}

.about__portrait-bubble-icon svg {
  width: 55%;
  height: 55%;
}

.about__portrait-bubble-message {
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.72rem, 0.4vw + 0.35vh, 0.82rem);
  line-height: 1.3;
  color: var(--color-black);
  user-select: none;
}

.about__portrait-bubble-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-strong);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about__portrait-bubble-arrow svg {
  width: 0.9rem;
  height: 0.9rem;
}

.about__portrait-bubble:hover .about__portrait-bubble-arrow,
.about__portrait-bubble:focus-visible .about__portrait-bubble-arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .about__portrait-bubble,
  .about__portrait-bubble-arrow {
    transition: none;
    transform: none;
  }
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .about__hero {
    grid-template-columns: 1fr;
  }

  /* Stacked layout: the portrait/voice-agent component leads, with the
     name and intro content beneath it. */
  .about__portrait-wrap {
    order: -1;
    width: clamp(11.5rem, 66vw, 19.5rem);
    margin: 0 auto clamp(0.5rem, 2vh, 1rem);
  }

  .about__portrait {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: none;
    box-sizing: border-box;
    padding-top: 3.25rem;
  }

  .about__portrait::before {
    top: calc(46% + 1.6rem);
  }

  /* Sits in the reserved strip above the image instead of over it. */
  .about__portrait-bubble {
    top: 0;
    left: 0;
    right: 0;
    width: fit-content;
    margin-inline: auto;
    padding: 0.4rem 0.7rem 0.4rem 0.4rem;
    gap: 0.4rem;
  }

  .about__portrait-bubble-icon {
    width: 1.6rem;
    height: 1.6rem;
  }

  .about__portrait-bubble-message {
    font-size: clamp(0.62rem, 2vw, 0.7rem);
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .about__stats {
    grid-template-columns: 1fr;
  }

  .about__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .about__cta {
    flex: 1;
    justify-content: center;
  }
}

.about-statement {
  display: grid;
  grid-template-columns: 1fr minmax(9rem, 12rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.about-statement__main {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2.2vh, 1.4rem);
  min-width: 0;
}

/* ---- Eyebrow: "ABOUT ME —— BUILD / LEARN / IMPACT" ---- */

.about-statement__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.about-statement__eyebrow-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.35vw + 0.35vh, 0.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-black);
}

.about-statement__eyebrow-rule {
  width: clamp(2rem, 3vw, 3rem);
  height: 1px;
  background: var(--color-text-muted);
}

.about-statement__eyebrow-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.35vw + 0.35vh, 0.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---- Lead statement ---- */

.about-statement__lead {
  margin: 0;
  max-width: 46rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.6vw + 1vh, 2.4rem);
  line-height: 1.18;
  color: var(--color-black);
}

/* ---- "What I Do" / "What's Next" rows ---- */

.about-statement__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.8vh, 1.25rem);
}

.about-statement__row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) 1fr;
  column-gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}

.about-statement__row-heading {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 0.9rem);
}

.about-statement__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.6rem, 2.2vw + 1.3vh, 3.4rem);
  height: clamp(2.6rem, 2.2vw + 1.3vh, 3.4rem);
  border-radius: 0.85rem;
}

.about-statement__icon svg {
  width: 52%;
  height: 52%;
}

.about-statement__icon--neutral {
  background: var(--color-icon-tint-neutral-bg);
  color: var(--color-icon-tint-neutral-fg);
}

.about-statement__icon--accent {
  background: var(--color-icon-tint-accent-bg);
  color: var(--color-icon-tint-accent-fg);
}

.about-statement__row-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.68rem, 0.35vw + 0.3vh, 0.78rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
  white-space: nowrap;
}

.about-statement__row-text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.92rem, 0.45vw + 0.5vh, 1.12rem);
  line-height: 1.5;
  color: var(--color-black);
}

.about-statement__row-text strong {
  font-weight: 700;
}

/* ---- Decorative aside: dot grid + "Complex Problems / Real Solutions" ---- */

.about-statement__aside {
  display: flex;
  flex-direction: column;
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 1px solid var(--color-text-muted);
}

.about-statement__dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.5rem, 1vw, 0.7rem);
  width: fit-content;
}

.about-statement__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.55;
}

.about-statement__aside-label {
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.68rem, 0.35vw + 0.3vh, 0.78rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.about-statement__aside-rule {
  display: block;
  margin: clamp(0.9rem, 2vh, 1.35rem) 0 0;
  width: 1.5rem;
  height: 1px;
  background: var(--color-text-muted);
}

.about-statement__aside-rule + .about-statement__aside-label {
  margin-top: clamp(0.9rem, 2vh, 1.35rem);
}

@media (max-width: 960px) {
  .about-statement {
    grid-template-columns: 1fr;
  }

  .about-statement__aside {
    display: none;
  }
}

@media (max-width: 640px) {
  .about-statement__row {
    grid-template-columns: 1fr;
    row-gap: 0.6rem;
  }
}

/* ==================== Tech Stack ==================== */

#tech-stack {
  padding: clamp(1.05rem, 3.15vh, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
}

.tech-stack__grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: space-between;
}

.tech-stack__content {
  flex: none;
}

.tech-stack__heading {
  margin: clamp(0.9rem, 3.15vh, 2rem) 0 0;
  font-family: var(--font-chunky);
  font-weight: var(--font-chunky-weight);
  font-stretch: var(--font-chunky-stretch);
  letter-spacing: var(--font-chunky-tracking);
  font-size: clamp(1.6rem, 2vw + 1.2vh, 3rem);
  line-height: 0.95;
  color: var(--color-black);
  text-transform: uppercase;
}

.tech-stack__divider {
  margin: clamp(1.8rem, 4.5vh, 3rem) 0 0;
  border: none;
  border-top: var(--border-width) solid var(--border-color);
}

.tech-stack__items {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: clamp(1rem, 2.6vw, 2.6rem);
  margin-top: clamp(1.8rem, 4vh, 3rem);
}

.tech-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 1.2vh, 0.9rem);
  min-width: 0;
}

.tech-stack-item__box {
  width: 100%;
  max-width: clamp(3.8rem, 5vw, 5.4rem);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: var(--border-width) solid var(--border-color);
  border-radius: 0;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-stack-item__box:hover {
  transform: translateY(-3px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 0 var(--shadow-color);
}

.tech-stack-item__box .tech-stack-item__img,
.tech-stack-item__box svg {
  width: 42%;
  height: 42%;
  object-fit: contain;
}

.tech-stack-item__box--bold-icon .tech-stack-item__img,
.tech-stack-item__box--bold-icon svg {
  width: 54%;
  height: 54%;
}

.tech-stack-item__label {
  display: block;
  min-height: 2.5em;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: clamp(0.8rem, 0.5vw + 0.3vh, 1rem);
  line-height: 1.25;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-black);
  text-align: center;
}

@media (max-width: 1024px) {
  .tech-stack__items {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 640px) {
  .tech-stack__items {
    grid-template-columns: repeat(3, 1fr);
  }
}
