/* ---------- ABOUT ME (bio + capabilities) ---------- */

.about-me {
  --am-bg: #0f1318;
  --am-text: #ffffff;
  --am-muted: #9aa3b2;
  --am-accent: #ff705a;
  --am-accent-rgb: 255, 112, 90;
  --am-accent-soft: rgba(var(--am-accent-rgb), 0.18);
  --about-pointer-x: 70%;
  --about-pointer-y: 32%;
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: var(--am-bg);
  color: var(--am-text);
  padding: clamp(82px, 9vw, 124px) var(--gutter);
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-me[data-about-active="apps"] {
  --am-accent: #34d399;
  --am-accent-rgb: 52, 211, 153;
}

.about-me[data-about-active="design"] {
  --am-accent: #f472b6;
  --am-accent-rgb: 244, 114, 182;
}

.about-me[data-about-active="systems"] {
  --am-accent: #818cf8;
  --am-accent-rgb: 129, 140, 248;
}

.about-me::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 100% 40%, rgba(99, 102, 241, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 50% at 0% 80%, rgba(var(--am-accent-rgb), 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 50%);
}

.about-me::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.about-me__sec-head {
  position: relative;
  z-index: 1;
  max-width: var(--container, 1200px);
  margin: 0 auto clamp(38px, 4.5vw, 52px);
}

.about-me__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container, 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: start;
}

/* Left: capability timeline */
.about-me__services-wrap {
  position: relative;
  padding-left: 32px;
}

.about-me__pick {
  margin: 0 0 18px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-accent);
}

.about-me__pick::after {
  content: '';
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.45em;
  vertical-align: -0.15em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 8h8M8 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 8h8M8 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-me__services-wrap:hover .about-me__pick::after {
  transform: translateX(4px);
}

.about-me__services {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  position: relative;
}

.about-me__rail {
  position: absolute;
  left: 5px;
  top: 2.6rem;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: rgba(var(--am-accent-rgb), 0.18);
  overflow: hidden;
}

.about-me__rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    var(--am-accent),
    rgba(var(--am-accent-rgb), 0.58) 55%,
    var(--am-accent)
  );
  transform: scaleY(0);
  transform-origin: top center;
  box-shadow: 0 0 12px rgba(var(--am-accent-rgb), 0.4);
}

.about-me__service {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 12px 14px 12px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  transition:
    opacity 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-me__service::before {
  content: attr(data-about-index);
  flex: 0 0 26px;
  align-self: flex-start;
  padding-top: 5px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.about-me__service:not(.is-active) {
  opacity: 0.72;
}

.about-me__service:hover,
.about-me__service:focus-visible,
.about-me__service.is-active {
  opacity: 1;
}

.about-me__service:hover,
.about-me__service:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.about-me__service.is-active {
  background:
    linear-gradient(105deg, rgba(var(--am-accent-rgb), 0.13), rgba(var(--am-accent-rgb), 0.045) 68%, transparent);
  border-color: rgba(var(--am-accent-rgb), 0.34);
  box-shadow:
    inset 3px 0 0 var(--am-accent),
    inset 0 0 0 1px rgba(var(--am-accent-rgb), 0.06),
    0 18px 42px -30px rgba(var(--am-accent-rgb), 0.65);
  transform: none;
}

.about-me__service.is-active::before {
  color: var(--am-accent);
}

.about-me__service:focus-visible {
  outline: 2px solid var(--am-accent);
  outline-offset: 3px;
}

.about-me__service.is-active .about-me__service-icon {
  color: var(--am-accent);
  background: rgba(var(--am-accent-rgb), 0.09);
  border-color: rgba(var(--am-accent-rgb), 0.36);
  box-shadow: 0 0 24px rgba(var(--am-accent-rgb), 0.18);
}

.about-me__service-cue {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    color 0.3s ease;
}

.about-me__service:hover .about-me__service-cue,
.about-me__service:focus-visible .about-me__service-cue,
.about-me__service.is-active .about-me__service-cue {
  opacity: 1;
  transform: translateX(0);
}

.about-me__service.is-active .about-me__service-cue {
  color: var(--am-accent);
}

.about-me__service.is-active .about-me__service-cue-label {
  display: none;
}

.about-me__dot {
  position: absolute;
  left: -39px;
  top: 50%;
  margin-top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--am-accent);
  box-shadow: 0 0 0 4px var(--am-accent-soft);
  z-index: 1;
  transform: scale(0);
}

.about-me__service.is-lit .about-me__dot {
  box-shadow:
    0 0 0 5px rgba(var(--am-accent-rgb), 0.12),
    0 0 18px rgba(var(--am-accent-rgb), 0.42);
}

.about-me__service-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.about-me__service-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-me__service:hover .about-me__service-icon {
  color: var(--am-accent);
  background: rgba(var(--am-accent-rgb), 0.08);
  border-color: rgba(var(--am-accent-rgb), 0.35);
  box-shadow: 0 0 24px rgba(var(--am-accent-rgb), 0.2);
  transform: translateY(-2px);
}

.about-me__service-text {
  min-width: 0;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-me__service-title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--am-text);
}

.about-me__service-sub {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--am-muted);
  max-width: 28ch;
}

/* Right: open capability composition */
.about-me__copy {
  position: relative;
  min-width: 0;
  min-height: 580px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.about-me__copy::before {
  content: "";
  position: absolute;
  inset: -80px -100px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  background:
    radial-gradient(
      circle 360px at var(--about-pointer-x) var(--about-pointer-y),
      rgba(var(--am-accent-rgb), 0.12),
      transparent 72%
    );
  filter: blur(14px);
  transition: opacity 0.35s ease;
}

.about-me__copy::after {
  content: none;
}

.about-me__copy-meta,
.about-me__panels,
.about-me__stats {
  position: relative;
  z-index: 1;
}

.about-me__copy-meta {
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(24px, 2.4vw, 28px);
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.about-me__copy-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.about-me__copy-count strong {
  color: var(--am-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.about-me__copy-count span {
  color: rgba(255, 255, 255, 0.28);
}

.about-me__copy-label {
  justify-self: start;
}

.about-me__copy-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.62);
}

.about-me__copy-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--am-accent);
  box-shadow: 0 0 0 5px rgba(var(--am-accent-rgb), 0.1);
}

.about-me__panels {
  /* Stack panels so section height stays fixed to the tallest tab */
  display: grid;
}

.about-me__panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.about-me__panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: am-panel-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-me__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-accent);
}

.about-me__title {
  margin: 0 0 clamp(18px, 2vw, 22px);
  font-family: var(--font-display, inherit);
  max-width: 13ch;
  font-size: clamp(2.4rem, 4.2vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--am-text);
}

.about-me__bio {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(0.96rem, 1.08vw, 1.03rem);
  line-height: 1.58;
  color: var(--am-muted);
}

.about-me__bio p {
  margin: 0 0 1em;
}

.about-me__bio p:last-child {
  margin-bottom: 0;
}

.about-me__feature-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 18px 0 0;
  padding: 0;
}

.about-me__feature-chips li {
  padding: 7px 11px;
  border: 1px solid rgba(var(--am-accent-rgb), 0.2);
  border-radius: 999px;
  background: rgba(var(--am-accent-rgb), 0.065);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.2;
  transition:
    color 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-me__feature-chips li:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(var(--am-accent-rgb), 0.42);
  background: rgba(var(--am-accent-rgb), 0.12);
}

@keyframes am-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-me__stats {
  list-style: none;
  margin: clamp(24px, 2.7vw, 30px) 0 0;
  padding: clamp(18px, 2vw, 22px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-me__stat {
  min-width: 0;
  position: relative;
  padding-left: clamp(0px, 1vw, 8px);
}

.about-me__stat + .about-me__stat {
  padding-left: clamp(16px, 2vw, 28px);
}

.about-me__stat + .about-me__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.about-me__stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-display, inherit);
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--am-text);
}

/* Text badges (e.g. ACE/ACP) — keep them inside the column */
.about-me__stat.is-text-stat .about-me__stat-value {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.about-me__stat.is-text-stat .stat__num {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.about-me__stat.is-text-stat .about-me__stat-label {
  max-width: 22ch;
}

.about-me__stat-suffix {
  color: var(--am-accent);
  font-weight: 800;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-me__stat-suffix.is-hidden {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.about-me__stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--am-muted);
  max-width: 14ch;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-me__stats .stat__num {
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-me__stats.is-swapping .about-me__stat-label {
  opacity: 0.35;
}

.about-me__stats.is-swapping .stat__num {
  opacity: 0.55;
}

/*
 * Desktop capability stage
 * Keep the entire About composition stationary while its tab content swaps.
 * The explicit card height prevents longer stat labels from resizing the
 * section, and the phone is anchored from the section top instead of bottom.
 */
@media (min-width: 1025px) {
  .about-me__inner {
    min-height: 560px;
    align-items: start;
  }

  .about-me__copy {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    height: 560px;
    min-height: 560px;
  }

  .about-me__panels {
    min-height: 0;
    align-items: start;
  }

  .about-me__panel {
    display: none;
  }

  .about-me__panel.is-active {
    display: block;
  }

  .about-me__stats {
    align-self: start;
  }

  .about-me > .floater--bl {
    top: 68%;
    bottom: auto;
  }
}

@media (max-width: 900px) {
  .about-me {
    padding-inline: max(16px, var(--gutter));
  }

  .about-me__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 40px);
  }

  .about-me__services-wrap {
    padding-left: 0;
  }

  .about-me__service::before {
    display: none;
  }

  .about-me__pick {
    margin-bottom: 14px;
  }

  .about-me__services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-me__service {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 14px 16px;
  }

  .about-me__service.is-active .about-me__service-cue {
    opacity: 1;
    transform: none;
  }

  .about-me__rail,
  .about-me__dot {
    display: none;
  }

  .about-me__service-cue-label {
    display: none;
  }

  .about-me__title {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .about-me__copy {
    min-height: 0;
    padding: 0;
    border-radius: 0;
  }

  .about-me__copy-meta {
    margin-bottom: 24px;
  }

  .about-me__stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-me__stat + .about-me__stat {
    padding-left: 0;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .about-me__stat + .about-me__stat::before {
    display: none;
  }

  .about-me__stat-label {
    max-width: none;
  }

  .about-me__stat-value {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
}

@media (max-width: 560px) {
  .about-me__copy-meta {
    display: none;
  }

  .about-me__bio {
    font-size: 0.98rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-me__service.is-lit .about-me__dot {
    animation: none;
  }

  .about-me__rail-fill {
    transform: none;
  }

  .about-me__service:hover .about-me__service-icon {
    transform: none;
  }

  .about-me__pick::after {
    animation: none;
  }

  .about-me__service:hover,
  .about-me__service:focus-visible {
    transform: none;
  }

  .about-me__panel.is-active {
    animation: none;
  }

  .about-me__feature-chips li,
  .about-me__copy::before {
    transition: none;
  }
}
