/* About / Typography & Flow. Deliberately isolated from the portfolio's other pages. */
body[data-page="about"] .about-flow {
  --flow-page: #0a0a0a;
  --flow-title-shift: 0px;
  --flow-copy-shift: 0px;
  --flow-text-opacity: 1;
  --flow-copy-opacity: 1;
  position: relative;
  padding: 0;
  color: #fff;
  background: var(--flow-page);
}
.about-flow__stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  background: #5340b3;
}
.about-flow__fallback,
.about-flow__canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* A still, accessible composition if WebGL is unavailable. No animated light blobs. */
.about-flow__fallback {
  background: linear-gradient(125deg, #4332b9 5%, #7541b4 47%, #b747a2 76%, #d9588e 100%);
}
.about-flow__canvas { opacity: 0; }
.about-flow.is-rendered .about-flow__canvas { opacity: 1; }
.about-flow__content {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  align-content: center;
  min-height: 100svh;
  padding-top: clamp(8.5rem, 16svh, 11rem);
  padding-bottom: clamp(2rem, 5svh, 4rem);

}
body.typography-system[data-page="about"] .about-flow__eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 clamp(1.7rem, 3.6svh, 2.6rem);
  color: #fff;
  opacity: calc(.87 * var(--flow-text-opacity));
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .14em;
  transform: translate3d(0, var(--flow-title-shift), 0);
}
body.typography-system[data-page="about"] .about-flow__title {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(4rem, 7.2vw, 8rem);
  font-weight: 450;
  letter-spacing: -.03em;
  line-height: 1.06;
  text-wrap: initial;
  overflow-wrap: anywhere;
  transform: translate3d(0, var(--flow-title-shift), 0);
  opacity: var(--flow-text-opacity);
}
.about-flow__title-line { display: block; }
body.typography-system[data-page="about"] .about-flow__copy {
  grid-column: 9 / -1;
  grid-row: 3;
  width: 100%;
  max-width: 28.75rem;
  margin: -2.5rem 0 0 auto;
  color: #fff;
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: pretty;
  opacity: var(--flow-copy-opacity);
  transform: translate3d(0, var(--flow-copy-shift), 0);
}
.about-flow__next {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  display: flex;
  width: 48px;
  min-height: 48px;
  margin-top: clamp(2rem, 5svh, 3rem);
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  opacity: var(--flow-copy-opacity);
  transform: translate3d(0, var(--flow-copy-shift), 0);
}
.about-flow__next:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
/* Native sticky geometry, no wheel interception or synthetic scrolling. */
.about-flow.is-flowing { height: calc(var(--flow-stage-height, 100svh) + 72svh); }
.about-flow.is-flowing .about-flow__stage { position: sticky; top: 0; }

body[data-page="about"].about-flow-active:not(.nav-open) .site-header[data-header] {
  min-height: 4.8rem;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body[data-page="about"].about-flow-active:not(.nav-open) .site-nav > a,
body[data-page="about"].about-flow-active:not(.nav-open) .language-switch,
body[data-page="about"].about-flow-active:not(.nav-open) .language-switch button { color: rgba(255,255,255,.96); }

body.typography-system[data-page="about"][data-lang="zh"] .about-flow__title {
  font-size: clamp(3.75rem, 6.8vw, 7.5rem);
  font-weight: 450;
  letter-spacing: 0;
}
body.typography-system[data-page="about"][data-lang="zh"] .about-flow__copy { margin-top: 2rem; }

@media (max-width: 1024px) {
  body.typography-system[data-page="about"] .about-flow__copy { grid-column: 7 / -1; width: 100%; margin-top: 1.5rem; }
  .about-flow__content { padding-top: max(8rem, 14svh); align-content: center; }
  .about-flow__next { margin-top: auto; padding-top: 1.5rem; }
}
@media (max-width: 760px) {
  .about-flow__content {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding-top: max(calc(var(--mobile-header-height) + 3.5rem), 18svh);
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
  }
  body.typography-system[data-page="about"] .about-flow__eyebrow { margin-bottom: 1.7rem; font-size: 12px; }
  body.typography-system[data-page="about"] .about-flow__title {
    max-width: 11ch;
    font-size: clamp(2.875rem, 12.8vw, 4.75rem);
    line-height: 1.035;
    letter-spacing: -.025em;
  }
  .about-flow__title-line { display: contents; }
  body.typography-system[data-page="about"] .about-flow__copy {
    width: 91%;
    margin-top: 2rem;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
  }
  .about-flow__next { align-self: flex-start; margin-top: auto; padding-top: 1.5rem; min-height: 72px; }
  .about-flow.is-flowing { height: auto; }
  .about-flow.is-flowing .about-flow__stage { position:relative; }
  body[data-page="about"] .experience-section { padding-top:40px; }
  body[data-page="about"].about-flow-active:not(.nav-open) .site-header[data-header] { min-height: var(--mobile-header-height); }
  body[data-page="about"].about-flow-active:not(.nav-open) .mobile-browser-chrome { background: transparent; pointer-events: none; }
  body.typography-system[data-page="about"][data-lang="zh"] .about-flow__title { max-width: 7em; font-size: clamp(3.25rem, 14vw, 4rem); }
  body.typography-system[data-page="about"][data-lang="zh"] .about-flow__title-line { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .about-flow.is-flowing { height: auto; }
  .about-flow.is-flowing .about-flow__stage { position: relative; }
  .about-flow__stage::after {
    position: absolute;
    z-index: -1;
    inset: 72% 0 0;
    content: "";
    background: linear-gradient(transparent, #0a0a0a);
  }
  body[data-page="about"] :is(.about-flow__title, .about-flow__copy, .about-flow__eyebrow, .about-flow__next) { transform: none; opacity: 1; }
}

/* Text leaves the shared canvas before reaching the floating navigation. */
.about-flow.is-ready .about-flow__content {
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--flow-read-edge, 76px), #000 calc(var(--flow-read-edge, 76px) + 24px));
  mask-image: linear-gradient(to bottom, transparent var(--flow-read-edge, 76px), #000 calc(var(--flow-read-edge, 76px) + 24px));
}

/* Same native straight-edge cover as Home; no synthetic pin distance. */
body[data-page="about"] .about-flow,
body[data-page="about"] .about-flow.is-flowing {
 position:sticky; top:0; z-index:0; height:auto;
}
body[data-page="about"] .about-flow .about-flow__stage {
 position:relative; top:auto;
 transform:scale(var(--about-cover-scale,1));
 filter:brightness(var(--about-cover-brightness,1));
}
body[data-page="about"] .about-flow.is-ready .about-flow__content {
 mask-image:none; -webkit-mask-image:none;
}
body[data-page="about"] .about-flow ~ section {
 position:relative; z-index:2; background-color:#0a0a0a;
}
@media(prefers-reduced-motion:reduce) {
 body[data-page="about"] .about-flow {position:relative;}
 body[data-page="about"] .about-flow .about-flow__stage {transform:none;filter:none;}
}
