/* Copyright (c) 2025-2026 CS Inspiration. All Rights Reserved.
   VietAlpha - https://csinspiration.org
   About page stylesheet (lab identity, 2026-07). Loads after
   assets/vietalpha-home.css and only adds the long-form reading
   compositions; all tokens, header, footer, buttons, rules, the loop
   diagram, and responsive header behavior come from the home sheet. */

/* ── Page opening ───────────────────────────────────────────────────── */

.about-head {
  padding-top: clamp(56px, 8vh, 100px);
  padding-bottom: clamp(56px, 7vw, 92px);
}

.about-title {
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.about-lede {
  margin-top: clamp(26px, 3.2vw, 38px);
  max-width: 62ch;
}
.about-lede p {
  font-size: clamp(1.05rem, 1.4vw, 1.17rem);
  line-height: 1.72;
}
.about-lede p + p {
  margin-top: 1.1em;
  font-size: 1.02rem;
  color: var(--mid);
}

.about-contents {
  margin-top: clamp(30px, 4vw, 42px);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mid);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.about-contents-label { font-weight: 500; margin-right: 6px; }
.about-contents ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.about-contents li + li::before {
  content: "\00B7";
  margin-right: 12px;
  color: var(--rule);
}
.about-contents a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.about-contents a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Single coordinated entrance, matching the homepage hero. */
html.js .about-title,
html.js .about-lede,
html.js .about-contents {
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
html.js .about-lede { animation-delay: 0.1s; }
html.js .about-contents { animation-delay: 0.18s; }

/* ── Long-form section rhythm ───────────────────────────────────────── */

.about-section { padding-bottom: clamp(64px, 8vw, 104px); }

.about-section h2 { max-width: 24ch; }

.prose { margin-top: clamp(26px, 3.5vw, 38px); }
.prose p {
  font-size: clamp(1.02rem, 1.3vw, 1.1rem);
  line-height: 1.72;
  max-width: 60ch;
}
.prose p + p { margin-top: 1.15em; }
.prose + .prose { margin-top: 2.1em; }

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.18s ease;
}
.prose a:hover { text-decoration-color: var(--ink); }

/* Slightly larger register for section-opening paragraphs. */
.prose--lede p {
  font-size: clamp(1.05rem, 1.4vw, 1.17rem);
  max-width: 62ch;
}

/* ── Purpose and mission statements ─────────────────────────────────── */

.statement {
  margin: clamp(34px, 4.5vw, 50px) 0;
  border-left: 1px solid var(--rule);
  padding-left: clamp(20px, 3vw, 34px);
}
.statement p {
  font-size: clamp(1.26rem, 2vw, 1.58rem);
  line-height: 1.55;
  letter-spacing: -0.006em;
  max-width: 44ch;
}

/* ── The record: two collections ────────────────────────────────────── */

.record-cols {
  margin-top: clamp(30px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 5.5vw, 76px);
}
.record-col p {
  font-size: clamp(1rem, 1.25vw, 1.06rem);
  line-height: 1.72;
  max-width: 52ch;
}
.record-col + .record-col {
  border-left: 1px solid var(--rule-soft);
  padding-left: clamp(40px, 5.5vw, 76px);
}

.record-gap {
  margin-top: clamp(34px, 4.5vw, 50px);
}
.record-gap p {
  font-size: clamp(1.05rem, 1.4vw, 1.17rem);
  line-height: 1.7;
  max-width: 66ch;
}

/* ── Discipline section accents ─────────────────────────────────────── */

.pivot {
  margin: clamp(30px, 4vw, 44px) 0;
  font-weight: 500;
  font-size: clamp(1.14rem, 1.7vw, 1.34rem);
  line-height: 1.5;
  max-width: 40ch;
}

.reason-lead { font-weight: 600; }

.saves { font-weight: 600; }

/* ── Origins: compact typographic comparison ────────────────────────── */

.figs {
  margin: clamp(34px, 4.5vw, 50px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px clamp(44px, 6vw, 84px);
}
.fig { max-width: 30ch; }
.fig + .fig {
  border-left: 1px solid var(--rule-soft);
  padding-left: clamp(28px, 4vw, 48px);
}
.fig-num {
  display: block;
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums tabular-nums;
}
.fig-cap {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
}

/* ── Commitments register ───────────────────────────────────────────── */

.commit-row {
  list-style: none;
  margin-top: clamp(28px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.commit {
  border-left: 1px solid var(--rule-soft);
  padding: 6px 26px 2px;
}
.commit:first-child { border-left: 0; padding-left: 0; }
.commit p {
  font-size: 0.99rem;
  line-height: 1.66;
}

/* ── Equity-era video ───────────────────────────────────────────────── */

.artifact {
  margin-top: clamp(40px, 5.5vw, 60px);
  max-width: 720px;
}
.artifact-note {
  font-size: clamp(1.02rem, 1.3vw, 1.1rem);
  line-height: 1.72;
  max-width: 60ch;
  margin-bottom: clamp(22px, 3vw, 30px);
}
.artifact-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: rgba(17, 17, 17, 0.04);
}
.artifact-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 2px;
}
.artifact figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
}
.artifact figcaption a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}
.artifact figcaption a:hover { text-decoration-color: var(--ink); }

/* ── Network ────────────────────────────────────────────────────────── */

.affiliation {
  margin: clamp(28px, 3.5vw, 40px) 0 0;
  font-size: clamp(1.14rem, 1.7vw, 1.36rem);
  line-height: 1.55;
  max-width: 40ch;
}

.dir {
  list-style: none;
  margin-top: clamp(32px, 4vw, 46px);
}
.dir-item {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 10px 44px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
}
.dir-name {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}
.dir-role {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 7px;
}
.dir-desc {
  font-size: 0.98rem;
  line-height: 1.64;
  max-width: 56ch;
}

/* ── Team ───────────────────────────────────────────────────────────── */

.profiles {
  list-style: none;
  margin-top: clamp(32px, 4vw, 46px);
}
.profile {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px 44px;
  padding: 30px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: start;
}
.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}
.profile-name {
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.35;
}
.profile-role {
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
}
.profile-bio {
  margin-top: 12px;
  font-size: 0.99rem;
  line-height: 1.66;
  max-width: 52ch;
}

/* ── Resources close ────────────────────────────────────────────────── */

.about-close {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(84px, 11vw, 150px);
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .record-cols { grid-template-columns: 1fr; }
  .record-col + .record-col {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
    padding-left: 0;
    margin-top: 26px;
    padding-top: 26px;
  }

  .commit-row { grid-template-columns: 1fr; }
  .commit,
  .commit:first-child {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
    padding: 18px 0 14px;
  }
  .commit:first-child { border-top: 0; padding-top: 0; }
}

@media (max-width: 720px) {
  .dir-item { grid-template-columns: 1fr; gap: 8px; }
  .dir-desc { max-width: 60ch; }
}

@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; gap: 18px; }
  .profile-photo { max-width: 180px; }

  .fig + .fig {
    border-left: 0;
    padding-left: 0;
  }

  .statement { padding-left: 18px; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html.js .about-title,
  html.js .about-lede,
  html.js .about-contents { animation: none; }
}
