/* ============================================================
   ABOUT / PROFILE — closing personal chapter.
   Shares the design language of the rest of the home (css/hero.css
   vars): dark ground, cyan glow, glass, mono labels, engineering
   grid, 100px pills. Reuses .glass, .live-dot, .eyebrow-sep,
   .eyebrow-dim from hero.css rather than redefining them.
   A reading section, not a live workflow: motion is a one-shot
   entrance only (js/about.js toggles .revealed via
   IntersectionObserver, same pattern as cycle/showcase/interfaces).
   ============================================================ */

.about-section {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 110px 32px 140px;
  overflow-x: clip;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 40px 0 40px;
  background:
    linear-gradient(rgba(125, 180, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 180, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}

.about-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-accent { color: var(--cyan); }

/* ---------- eyebrow (reused 3×: profile / capabilities / stack) ---------- */

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 34px;
}

.about-subeyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

/* ---------- section heading — outside the module, shared macro-heading
   system (identical rhythm to THE CYCLE / THE AI CASES / THE INTERFACES).
   Type comes from .pf-shead-* (css/section-head.css); only the spacing
   to the module below is owned here. ---------- */

.about-head {
  margin-bottom: clamp(30px, 4vw, 46px);
}

/* ---------- entrance (one-shot, mirrors interfaces.css) ---------- */

.about-head,
.about-profile,
.about-row,
.about-cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-section.revealed .about-head    { opacity: 1; transform: none; }
.about-section.revealed .about-profile { opacity: 1; transform: none; transition-delay: 0.12s; }
.about-section.revealed .about-row     { opacity: 1; transform: none; transition-delay: 0.26s; }
.about-section.revealed .about-cta     { opacity: 1; transform: none; transition-delay: 0.3s; }

/* ============ MAIN PROFILE PANEL ============ */

.about-profile {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 40px 44px 42px;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.05fr 1.55fr;
  gap: 44px;
  align-items: stretch;
}

/* ---------- portrait ----------
   A full-bleed background layer of the panel itself (not a boxed
   image inside its grid column): an absolutely positioned child is
   contained by its ancestor's PADDING box already, so inset:0 here
   is flush with the panel's true edges without any extra offset —
   then masked to fade into the dark panel toward the right. The
   grid column it used to occupy is left empty on purpose so
   .about-statement/.about-career keep their exact positions;
   they're pinned to their columns explicitly below so removing the
   portrait from flow can never shift them. */

.about-portrait {
  position: absolute;
  z-index: -1;
  top: 26px;
  left: 0;
  bottom: 0;
  width: 52%;
  pointer-events: none;
}

.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: linear-gradient(to right, black 38%, transparent 62%);
  mask-image: linear-gradient(to right, black 38%, transparent 62%);
}

.about-statement { grid-column: 2; }
.about-career { grid-column: 3; }

/* ---------- statement ---------- */

.about-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.about-bio {
  max-width: 380px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.about-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.about-location svg { color: var(--cyan); flex-shrink: 0; }

.about-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(125, 180, 255, 0.1);
}

.about-metric { display: flex; flex-direction: column; gap: 4px; }

.about-metric b {
  font-size: 26px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  font-variant-numeric: tabular-nums;
}

.about-metric span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.about-metric-sep {
  width: 1px;
  height: 30px;
  background: rgba(125, 180, 255, 0.12);
}

/* ---------- career (education + experience) ---------- */

.about-career {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-career-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-timeline {
  display: flex;
  flex-direction: column;
}

.about-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 16px 1fr;
  align-items: start;
  column-gap: 12px;
  padding-bottom: 20px;
}

.about-tl-item:last-child { padding-bottom: 0; }

.about-tl-year {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--cyan);
  white-space: nowrap;
}

.about-tl-node {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
}

.about-tl-node::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
  z-index: 1;
}

.about-tl-item.is-current .about-tl-node::before {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.about-tl-item:not(:last-child) .about-tl-node::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 13px;
  bottom: -20px;
  width: 1px;
  background: rgba(125, 180, 255, 0.14);
}

.about-tl-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  margin-left: 16px;
}

.about-tl-body b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.about-tl-body > span {
  font-size: 12px;
  color: var(--muted);
}

.about-tag {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
}

/* ============ LOWER LEVELS: CAPABILITIES → STACK ============
   Two stacked full-width levels under the profile card, with more
   air between them than inside them. CAPABILITIES is the primary
   level (glass panel, strongest type); STACK is supporting info
   (bare hairline container, smaller + muted type). */

.about-row {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 26px;
}

.about-capabilities { padding: 32px 40px 34px; }

.about-capabilities .about-eyebrow { margin-bottom: 26px; }

/* ---------- capabilities: CORE (practice) / ENABLERS (leverage) ----------
   One hierarchy read top-down, not eight equal job titles:
   CORE items are large text with cyan markers, ENABLERS are small
   mono pills one step down in weight and color. */

.about-cap-rows {
  display: flex;
  flex-direction: column;
}

.about-cap-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 24px;
}

.about-cap-row.is-core { padding-bottom: 22px; }

.about-cap-row.is-enablers {
  padding-top: 20px;
  border-top: 1px solid rgba(125, 180, 255, 0.1);
}

.about-cap-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.about-cap-idx { color: var(--dim); letter-spacing: 0.08em; }

.is-enablers .about-cap-label { color: var(--muted); }

.about-cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* CORE — strongest weight */
.is-core .about-cap-list { gap: 12px 34px; }

.is-core .about-cap-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(15px, 1.45vw, 19px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.is-core .about-cap-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
  flex-shrink: 0;
}

/* ENABLERS — one step down: small mono pills, muted */
.is-enablers .about-cap-list { gap: 8px; }

.is-enablers .about-cap-list li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* ---------- my stack — supporting level ----------
   One hairline container split into four groups by vertical
   dividers; no per-group cards, no icons. */

.about-stack {
  padding: 24px 40px 26px;
  border: 1px solid rgba(125, 180, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(140, 180, 255, 0.012);
}

.about-stack .about-eyebrow { margin-bottom: 18px; font-size: 10px; }

.about-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.about-stack-cat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 2px 22px;
  border-left: 1px solid rgba(125, 180, 255, 0.1);
}

.about-stack-cat:first-child { padding-left: 0; border-left: 0; }
.about-stack-cat:last-child { padding-right: 0; }

.about-stack-cat b {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text);
}

.about-stack-tools {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.about-stack-tool { white-space: nowrap; }

.about-stack-tool:not(:last-child)::after {
  content: '·';
  margin-left: 6px;
  color: var(--dim);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px) {
  .about-section { padding: 80px 16px 96px; }

  .about-profile { padding: 30px 26px 34px; }

  .about-profile-grid {
    grid-template-columns: 0.9fr 1.2fr;
    grid-template-areas:
      "portrait statement"
      "career   career";
    gap: 28px 32px;
  }

  /* below 1080px the portrait returns to a normal, contained
     grid-area box (the full-bleed background treatment above is
     desktop-only, matching the reference composition) */
  .about-portrait {
    grid-area: portrait;
    position: relative;
    z-index: auto;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(ellipse 85% 75% at 50% 100%, rgba(56, 189, 248, 0.08), transparent 70%);
    
  }

  .about-portrait img {
    position: static;
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  }

  .about-statement { grid-area: statement; }
  .about-career {
    grid-area: career;
    flex-direction: row;
    gap: 40px;
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid rgba(125, 180, 255, 0.1);
  }
  .about-career-group { flex: 1; }

  .about-row { gap: 20px; margin-top: 18px; }
  .about-capabilities { padding: 28px 26px 30px; }
  .about-stack { padding: 22px 26px 24px; }
  .about-cap-row { grid-template-columns: 118px 1fr; gap: 18px; }
}

@media (max-width: 780px) {
  .about-profile-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "statement"
      "career";
  }

  .about-portrait { min-height: 220px; }
  .about-bio { max-width: none; }

  .about-career { flex-direction: column; gap: 28px; }

  /* stack: 2 × 2 groups; divider only between the two columns */
  .about-stack-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .about-stack-cat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .about-stack-cat:nth-child(even) { padding-right: 0; }
}

@media (max-width: 640px) {
  .about-inner { gap: 16px; }
  .about-eyebrow { margin-bottom: 24px; }
  .about-head { margin-bottom: 26px; }

  .about-profile { padding: 24px 18px 28px; }

  .about-metrics { gap: 22px; }

  .about-row { gap: 16px; margin-top: 12px; }
  .about-capabilities { padding: 22px 18px 24px; }
  .about-stack { padding: 20px 18px 22px; }

  /* label sits above its items; items wrap naturally */
  .about-cap-row { grid-template-columns: 1fr; gap: 12px; }
  .is-core .about-cap-list { gap: 10px 22px; }
  .is-core .about-cap-list li { font-size: 15px; }
}

@media (max-width: 420px) {
  .about-stack-grid { grid-template-columns: 1fr; row-gap: 14px; }
  .about-stack-cat,
  .about-stack-cat:nth-child(even) { padding: 0; border-left: 0; }
  .about-stack-tool { white-space: normal; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  .about-head, .about-profile, .about-row, .about-cta {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
