/* About page: an editorial field notebook */

.page.type-about {
  --about-bg: #f3f5f1;
  --about-surface: #ffffff;
  --about-surface-soft: #e9eeea;
  --about-ink: #1f2a26;
  --about-muted: #64716b;
  --about-faint: #8b9690;
  --about-line: #d2dcd5;
  --about-line-strong: #b8c7bc;
  --about-primary: #326a55;
  --about-primary-dark: #244e3f;
  --about-primary-soft: #dcebe2;
  --about-coral: #c85f49;
  --about-coral-soft: #f3dfd9;
  --about-focus: #2d8065;
  --about-logo-surface: #f8faf7;
  --about-shadow: 0 14px 34px rgba(29, 46, 38, 0.09);
  --about-font-body: 'Fira Sans', 'Noto Sans SC', sans-serif;
  --about-font-display: 'Newsreader', 'Noto Serif SC', serif;
  --about-font-mono: 'Fira Code', 'SFMono-Regular', Consolas, monospace;
  min-height: 0;
  padding: 0;
  background: var(--about-bg);
  color: var(--about-ink);
}

[data-theme='dark'] .page.type-about {
  --about-bg: #111815;
  --about-surface: #18211d;
  --about-surface-soft: #202c26;
  --about-ink: #edf3ef;
  --about-muted: #adbbb2;
  --about-faint: #87958d;
  --about-line: #34443b;
  --about-line-strong: #4b5e51;
  --about-primary: #82b89e;
  --about-primary-dark: #a4d3b8;
  --about-primary-soft: #1f3c2e;
  --about-coral: #ed927f;
  --about-coral-soft: #4a2d27;
  --about-focus: #9bc9af;
  --about-logo-surface: #f4f7f4;
  --about-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.type-about *,
.type-about *::before,
.type-about *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.type-about #aside-content,
.type-about #card-toc {
  display: none !important;
}

.type-about #content-inner {
  width: 100%;
  max-width: none;
  padding: 0;
}

.type-about #page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.type-about #article-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: inherit;
}

.type-about #article-container > link,
.type-about #article-container > script {
  display: none;
}

/* The header uses the actual avatar as a quiet, full-width portrait. */
#page-header.about-page-hero {
  --about-hero-ink: #ffffff;
  --about-hero-muted: rgba(255, 255, 255, 0.8);
  --about-hero-line: rgba(255, 255, 255, 0.34);
  position: relative;
  height: 510px;
  overflow: hidden;
  background-color: #0a140f;
  background-image: none;
}

#page-header.about-page-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(10, 22, 18, 0.63);
  content: '';
}

#page-header.about-page-hero::after {
  position: absolute;
  z-index: 0;
  top: 0;
  right: max(24px, calc((100% - 1200px) / 2 + 24px));
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  content: '';
}

#page-header.about-page-hero #nav {
  position: relative;
  z-index: 3;
}

#page-header.about-page-hero:not(.nav-fixed) #nav a,
#page-header.about-page-hero:not(.nav-fixed) #nav .site-page,
#page-header.about-page-hero:not(.nav-fixed) #nav .site-name,
#page-header.about-page-hero:not(.nav-fixed) #toggle-menu {
  color: var(--about-hero-ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

#page-header.about-page-hero #page-site-info {
  position: absolute;
  z-index: 1;
  top: 0;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 60px 24px 0;
  align-items: center;
}

#page-header.about-page-hero .about-hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  color: var(--about-hero-ink);
  text-align: left;
  animation: aboutHeroEnter 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#page-header.about-page-hero .about-hero-content::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 3px;
  background: var(--about-coral);
  content: '';
}

#page-header.about-page-hero .about-hero-kicker {
  display: flex;
  margin: 0 0 19px;
  align-items: center;
  gap: 13px;
  color: var(--about-hero-muted);
  font-family: var(--about-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
}

#page-header.about-page-hero .about-hero-kicker i {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--about-hero-line);
}

#page-header.about-page-hero #site-title {
  margin: 0;
  color: var(--about-hero-ink);
  font-family: var(--about-font-display);
  font-size: 4.2rem;
  font-weight: 600;
  line-height: 1.03;
  text-align: left;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
}

#page-header.about-page-hero .about-hero-lede {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--about-hero-muted);
  font-family: var(--about-font-body);
  font-size: 1rem;
  line-height: 1.75;
}

#page-header.about-page-hero .about-hero-meta {
  display: flex;
  margin: 27px 0 0;
  flex-wrap: wrap;
  gap: 12px 28px;
}

#page-header.about-page-hero .about-hero-meta span {
  display: inline-flex;
  padding-left: 13px;
  border-left: 1px solid var(--about-hero-line);
  color: var(--about-hero-muted);
  font-family: var(--about-font-mono);
  font-size: 0.7rem;
  line-height: 1.4;
}

#page-header.about-page-hero .about-hero-scroll {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - 1200px) / 2 + 43px));
  bottom: 27px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--about-hero-line);
  border-radius: 50%;
  background: rgba(10, 22, 18, 0.35);
  color: var(--about-hero-ink);
  text-decoration: none;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

#page-header.about-page-hero .about-hero-scroll:hover {
  border-color: var(--about-coral);
  background: rgba(10, 22, 18, 0.72);
  transform: translateY(3px);
}

#page-header.about-page-hero .about-hero-scroll:focus-visible,
.type-about a:focus-visible,
.type-about button:focus-visible {
  outline: 3px solid var(--about-focus);
  outline-offset: 3px;
}

@keyframes aboutHeroEnter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 112px;
  font-family: var(--about-font-body);
}

/* Butterfly's generic .container a rule is intentionally blue; keep this page's links in its own palette. */
#article-container .about-container a {
  color: var(--about-ink);
  text-decoration: none;
}

#article-container .about-container a:hover {
  text-decoration: none;
}

#article-container .about-container .about-button-primary,
#article-container .about-container .about-button-primary:hover {
  color: #ffffff;
}

#article-container .about-container .about-library-link {
  color: var(--about-primary-dark);
}

.about-container h2,
.about-container p,
.about-container figure,
.about-container dl,
.about-container ol {
  margin-top: 0;
}

.about-container h2 {
  margin-bottom: 0;
  color: var(--about-ink);
  font-family: var(--about-font-display);
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1.1;
}

.about-container p {
  color: var(--about-muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.about-kicker {
  margin-bottom: 17px;
  color: var(--about-primary);
  font-family: var(--about-font-mono);
  font-size: 0.68rem !important;
  font-weight: 600;
  line-height: 1.4 !important;
}

.about-intro {
  display: grid;
  min-height: 470px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 96px;
}

.about-intro-copy {
  max-width: 590px;
}

.about-intro h2 {
  max-width: 580px;
  font-size: 4.15rem;
  line-height: 0.98;
}

.about-intro h2 em {
  color: var(--about-primary);
  font-style: normal;
}

.about-intro .about-lede {
  max-width: 510px;
  margin: 28px 0 0;
  font-size: 1.04rem;
}

.about-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.about-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--about-line-strong);
  border-radius: 3px;
  color: var(--about-ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.about-button:hover {
  border-color: var(--about-primary);
  background: var(--about-primary-soft);
  color: var(--about-primary-dark);
  transform: translateY(-2px);
}

.about-button-primary {
  border-color: var(--about-primary);
  background: var(--about-primary);
  color: #ffffff;
}

.about-button-primary:hover {
  border-color: var(--about-primary-dark);
  background: var(--about-primary-dark);
  color: #ffffff;
}

.about-portrait {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 14px 14px 0 0;
}

.about-portrait::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border: 1px solid var(--about-line-strong);
  content: '';
}

.about-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--about-shadow);
}

.about-portrait figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: 12px;
  justify-content: space-between;
  color: var(--about-faint);
  font-family: var(--about-font-mono);
  font-size: 0.62rem;
}

.about-manifesto,
.about-path,
.about-focus,
.about-library,
.about-contact {
  border-top: 1px solid var(--about-line);
}

.about-manifesto {
  display: grid;
  padding: 76px 0 82px;
  align-items: start;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 70px;
}

.about-section-label {
  display: flex;
  padding-top: 8px;
  gap: 15px;
  color: var(--about-faint);
  font-family: var(--about-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.about-section-label span:first-child {
  color: var(--about-coral);
}

.about-manifesto h2 {
  font-size: 3.5rem;
}

.about-manifesto p {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 1.12rem;
}

.about-path,
.about-focus {
  display: grid;
  padding: 76px 0 90px;
  align-items: start;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 90px;
}

.about-section-heading h2 {
  font-size: 2.9rem;
}

.about-section-heading > p:last-child {
  max-width: 320px;
  margin: 18px 0 0;
}

.about-timeline {
  position: relative;
  display: grid;
  margin-bottom: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.about-timeline::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 17px;
  width: 1px;
  background: var(--about-line-strong);
  content: '';
}

.about-timeline li {
  position: relative;
  display: grid;
  padding: 0 0 34px 57px;
  grid-template-columns: minmax(0, 1fr);
}

.about-timeline li:last-child {
  padding-bottom: 0;
}

.about-timeline-year {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  width: 35px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--about-primary);
  background: var(--about-bg);
  color: var(--about-primary);
  font-family: var(--about-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.about-timeline strong {
  display: block;
  color: var(--about-ink);
  font-size: 1rem;
  font-weight: 600;
}

.about-timeline p {
  max-width: 540px;
  margin: 7px 0 0;
  font-size: 0.9rem;
}

.about-focus {
  padding-top: 82px;
}

.about-focus-list {
  display: grid;
  border-top: 1px solid var(--about-line);
}

.about-focus-item {
  display: grid;
  min-height: 66px;
  padding: 0 4px;
  align-items: center;
  border-bottom: 1px solid var(--about-line);
  color: var(--about-ink);
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  text-decoration: none;
  transition: padding 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}

.about-focus-item span {
  color: var(--about-faint);
  font-family: var(--about-font-mono);
  font-size: 0.68rem;
}

.about-focus-item strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.about-focus-item i {
  color: var(--about-primary);
  font-size: 0.82rem;
  transition: transform 180ms ease-out;
}

.about-focus-item:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: var(--about-primary-soft);
  color: var(--about-primary-dark);
}

.about-focus-item:hover i {
  transform: translate(2px, -2px);
}

.about-stack {
  display: grid;
  padding: 80px 0 88px;
  align-items: start;
  border-top: 1px solid var(--about-line);
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 82px;
}

.about-stack-heading > p:last-of-type {
  max-width: 330px;
  margin: 18px 0 0;
}

.about-stack-note {
  display: flex;
  margin: 34px 0 0;
  align-items: baseline;
  gap: 12px;
}

.about-stack-note strong {
  color: var(--about-primary);
  font-family: var(--about-font-mono);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
}

.about-stack-note span {
  color: var(--about-faint);
  font-family: var(--about-font-mono);
  font-size: 0.64rem;
}

.about-stack-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px 16px;
}

.about-stack-group {
  min-width: 0;
  border-top: 1px solid var(--about-line-strong);
}

.about-stack-group-heading {
  display: flex;
  margin: 0 0 13px;
  padding-top: 11px;
  align-items: baseline;
  gap: 12px;
}

.about-stack-group-heading > span {
  color: var(--about-coral);
  font-family: var(--about-font-mono);
  font-size: 0.64rem;
  font-weight: 600;
}

.about-stack-group-heading h3 {
  margin: 0;
  color: var(--about-ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.about-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#article-container .about-container .about-stack-item {
  display: grid;
  min-width: 0;
  min-height: 84px;
  padding: 10px;
  align-items: center;
  border: 1px solid var(--about-line);
  background: var(--about-surface);
  grid-template-columns: 52px minmax(0, 1fr) 12px;
  gap: 9px;
  text-decoration: none;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

.about-stack-logo {
  display: grid;
  width: 52px;
  height: 42px;
  padding: 4px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--about-line);
  border-radius: 4px;
  background: var(--about-logo-surface);
}

.about-stack-logo img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.about-stack-label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.about-stack-label strong {
  overflow: hidden;
  color: var(--about-ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-stack-label small {
  overflow: hidden;
  color: var(--about-faint);
  font-size: 0.63rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-stack-item > i {
  color: var(--about-primary);
  font-size: 0.68rem;
  transition: transform 180ms ease-out;
}

#article-container .about-container .about-stack-item:hover {
  border-color: var(--about-primary);
  background: var(--about-primary-soft);
  transform: translateY(-2px);
}

.about-stack-item:hover > i {
  transform: translate(2px, -2px);
}

.about-library {
  display: grid;
  padding: 76px 0 82px;
  align-items: end;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr) auto;
  gap: 60px;
}

.about-library h2 {
  max-width: 270px;
  font-size: 2.65rem;
}

.about-library-facts {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 12px;
}

.about-library-facts > div {
  display: grid;
  min-height: 118px;
  padding: 16px 14px;
  align-content: space-between;
  border-left: 2px solid var(--about-primary);
  background: var(--about-surface-soft);
}

.about-library-facts dt {
  color: var(--about-muted);
  font-size: 0.76rem;
}

.about-library-facts dd {
  margin: 5px 0 0;
  color: var(--about-ink);
  font-family: var(--about-font-mono);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

.about-library-facts span {
  color: var(--about-faint);
  font-size: 0.68rem;
}

.about-library-link {
  display: inline-flex;
  min-height: 42px;
  padding-bottom: 5px;
  align-items: center;
  align-self: end;
  gap: 11px;
  border-bottom: 1px solid var(--about-primary);
  color: var(--about-primary-dark);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 180ms ease-out, color 180ms ease-out;
}

.about-library-link:hover {
  gap: 16px;
  color: var(--about-coral);
}

.about-contact {
  display: grid;
  padding: 78px 0 0;
  align-items: start;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 90px;
}

.about-contact-copy h2 {
  font-size: 3.05rem;
}

.about-contact-copy > p:last-child {
  max-width: 380px;
  margin: 18px 0 0;
}

.about-contact-links {
  display: grid;
  border-top: 1px solid var(--about-line);
}

.about-contact-links a {
  display: grid;
  min-height: 77px;
  padding: 0 2px;
  align-items: center;
  border-bottom: 1px solid var(--about-line);
  color: var(--about-ink);
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 14px;
  text-decoration: none;
  transition: padding 180ms ease-out, color 180ms ease-out, background-color 180ms ease-out;
}

.about-contact-links a > i:first-child {
  color: var(--about-primary);
}

.about-contact-links a > i:last-child {
  color: var(--about-faint);
  font-size: 0.75rem;
  transition: transform 180ms ease-out;
}

.about-contact-links a span {
  display: grid;
  gap: 5px;
  font-family: var(--about-font-mono);
  font-size: 0.82rem;
}

.about-contact-links a small {
  color: var(--about-faint);
  font-size: 0.6rem;
  line-height: 1;
}

.about-contact-links a:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: var(--about-primary-soft);
  color: var(--about-primary-dark);
}

.about-contact-links a:hover > i:last-child {
  color: var(--about-primary);
  transform: translate(2px, -2px);
}

.about-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease-out, transform 560ms ease-out;
}

.about-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  #page-header.about-page-hero {
    height: 460px;
    background-position: 58% 42%;
  }

  #page-header.about-page-hero::after {
    display: none;
  }

  .about-container {
    width: calc(100% - 40px);
    max-width: 680px;
    padding-top: 62px;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
    gap: 42px;
  }

  .about-intro h2 {
    font-size: 3.2rem;
  }

  .about-manifesto,
  .about-path,
  .about-focus,
  .about-stack {
    grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    gap: 38px;
  }

  .about-library {
    grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.45fr);
    gap: 32px;
  }

  .about-library-link {
    grid-column: 2;
    justify-self: start;
  }

  .about-contact {
    grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1.3fr);
    gap: 40px;
  }
}

@media (max-width: 680px) {
  #page-header.about-page-hero {
    height: 390px;
    background-position: 62% 42%;
  }

  #page-header.about-page-hero::before {
    background: rgba(10, 22, 18, 0.68);
  }

  #page-header.about-page-hero #page-site-info {
    padding: 45px 20px 0;
  }

  #page-header.about-page-hero .about-hero-content {
    padding-left: 20px;
  }

  #page-header.about-page-hero .about-hero-kicker {
    margin-bottom: 15px;
    gap: 9px;
    font-size: 0.6rem;
  }

  #page-header.about-page-hero .about-hero-kicker i {
    width: 18px;
  }

  #page-header.about-page-hero #site-title {
    font-size: 3.25rem;
  }

  #page-header.about-page-hero .about-hero-lede {
    max-width: 285px;
    margin-top: 14px;
    font-size: 0.84rem;
  }

  #page-header.about-page-hero .about-hero-meta {
    margin-top: 20px;
    gap: 9px 16px;
  }

  #page-header.about-page-hero .about-hero-meta span {
    font-size: 0.6rem;
  }

  #page-header.about-page-hero .about-hero-scroll {
    right: 20px;
    bottom: 20px;
  }

  .about-container {
    width: calc(100% - 40px);
    padding: 48px 0 78px;
  }

  .about-container h2 {
    font-size: 2.35rem;
  }

  .about-intro {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 42px;
  }

  .about-intro h2 {
    font-size: 3rem;
  }

  .about-intro .about-lede {
    margin-top: 22px;
    font-size: 0.94rem;
  }

  .about-portrait {
    width: min(100%, 360px);
    margin-left: auto;
  }

  .about-manifesto,
  .about-path,
  .about-focus,
  .about-stack,
  .about-library,
  .about-contact {
    display: block;
    padding: 54px 0 60px;
  }

  .about-stack-groups {
    display: block;
    margin-top: 34px;
  }

  .about-stack-group + .about-stack-group {
    margin-top: 34px;
  }

  #article-container .about-container .about-stack-item {
    min-height: 76px;
    padding: 8px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
  }

  .about-stack-logo {
    width: 42px;
    height: 36px;
    padding: 3px;
  }

  .about-stack-item > i {
    display: none;
  }

  .about-stack-label strong {
    font-size: 0.74rem;
  }

  .about-stack-label small {
    font-size: 0.6rem;
  }

  .about-manifesto h2 {
    font-size: 2.65rem;
  }

  .about-manifesto p {
    margin-top: 17px;
    font-size: 0.96rem;
  }

  .about-section-heading {
    margin-bottom: 33px;
  }

  .about-section-heading h2 {
    font-size: 2.5rem;
  }

  .about-section-heading > p:last-child {
    max-width: 330px;
    margin-top: 14px;
  }

  .about-library h2 {
    max-width: none;
    font-size: 2.45rem;
  }

  .about-library-facts {
    margin-top: 28px;
    gap: 8px;
  }

  .about-library-facts > div {
    min-height: 105px;
    padding: 12px 10px;
  }

  .about-library-facts dd {
    font-size: 1.5rem;
  }

  .about-library-facts span {
    font-size: 0.6rem;
  }

  .about-library-link {
    margin-top: 29px;
  }

  .about-contact-copy h2 {
    font-size: 2.55rem;
  }

  .about-contact-links {
    margin-top: 30px;
  }

  .about-contact-links a {
    min-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-header.about-page-hero .about-hero-content,
  .about-reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-button,
  .about-focus-item,
  .about-focus-item i,
  .about-library-link,
  .about-contact-links a,
  .about-contact-links a > i:last-child,
  #page-header.about-page-hero .about-hero-scroll {
    transition: none;
  }
}

/* Full-cover canvas mode: the personal archive fills the viewport. */
#body-wrap.page.type-about {
  --about-bg: #0a140f;
  --about-surface: rgba(9, 25, 17, 0.74);
  --about-surface-soft: rgba(25, 51, 37, 0.78);
  --about-ink: #f4f6ef;
  --about-muted: rgba(232, 241, 234, 0.73);
  --about-faint: rgba(225, 238, 227, 0.49);
  --about-line: rgba(227, 240, 229, 0.2);
  --about-line-strong: rgba(227, 240, 229, 0.38);
  --about-primary: #9fcbb0;
  --about-primary-dark: #d1ead8;
  --about-primary-soft: rgba(61, 116, 83, 0.44);
  --about-coral: #efa081;
  --about-coral-soft: rgba(155, 76, 56, 0.48);
  --about-focus: #b8e1c5;
  --about-logo-surface: #f4f7f4;
  --about-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  min-height: 100vh;
  background: var(--about-bg);
}

#body-wrap.type-about #page-header {
  --about-hero-ink: #ffffff;
  --about-hero-muted: rgba(255, 255, 255, 0.8);
  --about-hero-line: rgba(255, 255, 255, 0.34);
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px !important;
  min-height: 0 !important;
  overflow: visible;
  background: transparent !important;
  pointer-events: none;
}

#body-wrap.type-about #page-header #nav {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

#body-wrap.type-about #page-header:not(.nav-fixed) #nav a,
#body-wrap.type-about #page-header:not(.nav-fixed) #nav .site-page,
#body-wrap.type-about #page-header:not(.nav-fixed) #nav .site-name,
#body-wrap.type-about #page-header:not(.nav-fixed) #toggle-menu {
  color: var(--about-hero-ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

#body-wrap.type-about #page-header::before,
#body-wrap.type-about #page-header::after {
  display: none;
}

#body-wrap.type-about #page-header #page-site-info {
  display: none !important;
}

#body-wrap.type-about #page-header.about-page-hero .about-hero-scroll {
  top: 94px;
  right: max(24px, calc((100% - 1200px) / 2 + 24px));
  bottom: auto;
  background: rgba(6, 17, 11, 0.5);
  pointer-events: auto;
}

#body-wrap.type-about .about-container {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 112px max(24px, calc((100% - 1200px) / 2)) 112px;
  overflow: hidden;
  isolation: isolate;
  background: var(--about-bg);
}

#body-wrap.type-about .about-container::before,
#body-wrap.type-about .about-container::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: '';
}

#body-wrap.type-about .about-container::before {
  background-color: var(--about-bg);
  background-image: none;
}

#body-wrap.type-about .about-container::after {
  background-color: transparent;
  background-image: none;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.34);
}

#body-wrap.type-about .about-container > * {
  position: relative;
  z-index: 1;
}

#body-wrap.type-about .about-container h2,
#body-wrap.type-about .about-timeline strong,
#body-wrap.type-about .about-focus-item strong,
#body-wrap.type-about .about-stack-label strong,
#body-wrap.type-about .about-stack-group-heading h3,
#body-wrap.type-about .about-library-facts dd,
#body-wrap.type-about .about-contact-links a {
  color: var(--about-ink);
}

#body-wrap.type-about .about-container p,
#body-wrap.type-about .about-library-facts dt {
  color: var(--about-muted);
}

#body-wrap.type-about .about-portrait::before,
#body-wrap.type-about .about-manifesto,
#body-wrap.type-about .about-path,
#body-wrap.type-about .about-focus,
#body-wrap.type-about .about-stack,
#body-wrap.type-about .about-library,
#body-wrap.type-about .about-contact,
#body-wrap.type-about .about-focus-list,
#body-wrap.type-about .about-focus-item,
#body-wrap.type-about .about-stack-group,
#body-wrap.type-about .about-stack-item,
#body-wrap.type-about .about-contact-links,
#body-wrap.type-about .about-contact-links a {
  border-color: var(--about-line);
}

#body-wrap.type-about .about-portrait img {
  border: 1px solid var(--about-line-strong);
  box-shadow: var(--about-shadow);
}

#body-wrap.type-about .about-button {
  border-color: var(--about-line-strong);
  background: rgba(7, 20, 13, 0.58);
  color: var(--about-ink);
}

#body-wrap.type-about .about-button:hover {
  border-color: var(--about-primary);
  background: var(--about-primary-soft);
  color: var(--about-primary-dark);
}

#body-wrap.type-about .about-button-primary,
#body-wrap.type-about #article-container .about-button-primary {
  border-color: var(--about-primary);
  background: var(--about-primary-soft);
  color: #ffffff;
}

#body-wrap.type-about .about-button-primary:hover,
#body-wrap.type-about #article-container .about-button-primary:hover {
  border-color: var(--about-primary-dark);
  background: rgba(75, 139, 100, 0.65);
  color: #ffffff;
}

#body-wrap.type-about .about-timeline::before {
  background: var(--about-line-strong);
}

#body-wrap.type-about .about-timeline-year {
  border-color: var(--about-primary);
  background: rgba(7, 20, 13, 0.88);
  color: var(--about-primary);
}

#body-wrap.type-about .about-focus-item:hover,
#body-wrap.type-about .about-contact-links a:hover {
  background: var(--about-primary-soft);
  color: var(--about-primary-dark);
}

#body-wrap.type-about #article-container .about-stack-item {
  border-color: var(--about-line);
  background: var(--about-surface);
  box-shadow: none;
}

#body-wrap.type-about #article-container .about-stack-item:hover {
  border-color: var(--about-primary);
  background: var(--about-primary-soft);
}

#body-wrap.type-about .about-stack-logo {
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--about-logo-surface);
}

#body-wrap.type-about .about-library-facts > div {
  border-color: var(--about-primary);
  background: var(--about-surface-soft);
}

#body-wrap.type-about #article-container .about-library-link {
  color: var(--about-primary-dark);
}

#body-wrap.type-about #article-container .about-library-link:hover {
  color: var(--about-coral);
}

#body-wrap.type-about #footer {
  background: #07100b;
}

@media (max-width: 680px) {
  #body-wrap.type-about #page-header {
    height: 60px !important;
  }

  #body-wrap.type-about #page-header.about-page-hero .about-hero-scroll {
    top: 72px;
    right: 20px;
  }

  #body-wrap.type-about .about-container {
    min-height: 100svh;
    padding: 94px 16px 78px;
  }

  #body-wrap.type-about .about-container::after {
    background-color: transparent;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.3);
  }
}

/* Full-cover refinement: profile facts, chapter index and logo-first toolbox. */
#body-wrap.type-about .about-container {
  overflow: visible;
}

.about-identity {
  display: grid;
  max-width: 590px;
  margin: 34px 0 0;
  border-top: 1px solid var(--about-line);
  border-bottom: 1px solid var(--about-line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-identity > div {
  min-width: 0;
  padding: 14px 16px 13px 0;
}

.about-identity > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--about-line);
}

.about-identity dt,
.about-identity dd {
  margin: 0;
}

.about-identity dt {
  color: var(--about-faint);
  font-family: var(--about-font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1;
}

.about-identity dd {
  margin-top: 7px;
  overflow: hidden;
  color: var(--about-ink);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-section-nav {
  position: sticky;
  z-index: 8;
  top: 60px;
  display: grid;
  min-height: 60px;
  align-items: stretch;
  border-top: 1px solid var(--about-line);
  border-bottom: 1px solid var(--about-line);
  background: rgba(6, 18, 12, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  backdrop-filter: blur(16px);
}

#body-wrap.type-about .about-container > .about-section-nav {
  position: sticky;
  z-index: 8;
}

.about-section-nav::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--about-coral);
  content: '';
  transform: scaleX(var(--about-progress, 0));
  transform-origin: left center;
  transition: transform 100ms linear;
}

.about-section-nav-label {
  display: flex;
  padding: 0 18px 0 0;
  align-items: center;
  gap: 10px;
  color: var(--about-faint);
  font-family: var(--about-font-mono);
  font-size: 0.6rem;
  font-weight: 600;
}

.about-section-nav-label i {
  width: 24px;
  height: 1px;
  background: var(--about-coral);
}

.about-section-nav-links {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#article-container .about-container .about-section-nav a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 8px 9px;
  align-content: center;
  border-left: 1px solid var(--about-line);
  color: var(--about-muted);
  gap: 3px;
  text-align: center;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.about-section-nav a small {
  color: var(--about-coral);
  font-family: var(--about-font-mono);
  font-size: 0.52rem;
  line-height: 1;
}

.about-section-nav a span {
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#article-container .about-container .about-section-nav a:hover,
#article-container .about-container .about-section-nav a.is-active {
  background: var(--about-primary-soft);
  color: var(--about-primary-dark);
}

.about-stack-group:nth-child(1) { --about-stack-accent: #efa081; }
.about-stack-group:nth-child(2) { --about-stack-accent: #84b9d3; }
.about-stack-group:nth-child(3) { --about-stack-accent: #e3c16c; }
.about-stack-group:nth-child(4) { --about-stack-accent: #9fcbb0; }

#body-wrap.type-about .about-stack-group {
  border-top-color: var(--about-stack-accent);
}

#body-wrap.type-about .about-stack-group-heading > span,
#body-wrap.type-about .about-stack-item > i {
  color: var(--about-stack-accent);
}

#body-wrap.type-about #article-container .about-stack-item {
  min-height: 96px;
  padding: 12px;
  grid-template-columns: 62px minmax(0, 1fr) 12px;
  gap: 11px;
}

#body-wrap.type-about .about-stack-logo {
  width: 62px;
  height: 52px;
  padding: 6px;
}

#body-wrap.type-about .about-stack-label strong {
  font-size: 0.82rem;
}

#body-wrap.type-about .about-stack-label small {
  font-size: 0.64rem;
}

.about-stack.is-visible .about-stack-group {
  animation: aboutStackEnter 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-stack.is-visible .about-stack-group:nth-child(2) { animation-delay: 60ms; }
.about-stack.is-visible .about-stack-group:nth-child(3) { animation-delay: 120ms; }
.about-stack.is-visible .about-stack-group:nth-child(4) { animation-delay: 180ms; }

@keyframes aboutStackEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .about-section-nav {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .about-section-nav-label {
    padding-right: 10px;
  }
}

@media (max-width: 680px) {
  .about-identity {
    margin-top: 28px;
  }

  .about-identity > div {
    padding: 12px 8px 11px 0;
  }

  .about-identity > div + div {
    padding-left: 8px;
  }

  .about-identity dd {
    font-size: 0.62rem;
  }

  .about-section-nav {
    top: 60px;
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr);
  }

  .about-section-nav-label {
    display: none;
  }

  #article-container .about-container .about-section-nav a {
    min-height: 54px;
    padding: 7px 3px;
  }

  .about-section-nav a small {
    font-size: 0.48rem;
  }

  .about-section-nav a span {
    font-size: 0.61rem;
  }

  #body-wrap.type-about #article-container .about-stack-item {
    min-height: 84px;
    padding: 9px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }

  #body-wrap.type-about .about-stack-logo {
    width: 48px;
    height: 42px;
    padding: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-section-nav::after,
  .about-stack.is-visible .about-stack-group {
    animation: none;
    transition: none;
  }
}

/* Motion pass: a quiet choreography for the personal archive. */
#body-wrap.type-about .about-intro.is-visible .about-intro-copy > * {
  opacity: 0;
  animation: aboutIntroRise 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#body-wrap.type-about .about-intro.is-visible .about-intro-copy > :nth-child(1) { animation-delay: 40ms; }
#body-wrap.type-about .about-intro.is-visible .about-intro-copy > :nth-child(2) { animation-delay: 80ms; }
#body-wrap.type-about .about-intro.is-visible .about-intro-copy > :nth-child(3) { animation-delay: 120ms; }
#body-wrap.type-about .about-intro.is-visible .about-intro-copy > :nth-child(4) { animation-delay: 165ms; }
#body-wrap.type-about .about-intro.is-visible .about-intro-copy > :nth-child(5) { animation-delay: 210ms; }

#body-wrap.type-about .about-intro.is-visible .about-portrait {
  opacity: 0;
  animation: aboutPortraitEnter 560ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both;
}

#body-wrap.type-about .about-portrait img {
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease;
}

#body-wrap.type-about .about-portrait:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.018);
}

#body-wrap.type-about .about-button i,
#body-wrap.type-about .about-focus-item i,
#body-wrap.type-about .about-contact-links a > i:last-child {
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), color 180ms ease;
}

#body-wrap.type-about .about-button:hover i {
  transform: translateX(3px);
}

#body-wrap.type-about .about-hero-scroll i {
  animation: aboutArrowNudge 2.8s ease-in-out infinite;
}

#body-wrap.type-about .about-path .about-timeline::before {
  transform: scaleY(0);
  transform-origin: top center;
}

#body-wrap.type-about .about-path.is-visible .about-timeline::before {
  animation: aboutLineDraw 720ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

#body-wrap.type-about .about-focus.is-visible .about-focus-item,
#body-wrap.type-about .about-contact.is-visible .about-contact-links a {
  opacity: 0;
  animation: aboutListEnter 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#body-wrap.type-about .about-focus.is-visible .about-focus-item:nth-child(1),
#body-wrap.type-about .about-contact.is-visible .about-contact-links a:nth-child(1) { animation-delay: 70ms; }
#body-wrap.type-about .about-focus.is-visible .about-focus-item:nth-child(2),
#body-wrap.type-about .about-contact.is-visible .about-contact-links a:nth-child(2) { animation-delay: 120ms; }
#body-wrap.type-about .about-focus.is-visible .about-focus-item:nth-child(3) { animation-delay: 170ms; }
#body-wrap.type-about .about-focus.is-visible .about-focus-item:nth-child(4) { animation-delay: 220ms; }
#body-wrap.type-about .about-focus.is-visible .about-focus-item:nth-child(5) { animation-delay: 270ms; }

#body-wrap.type-about .about-stack.is-visible .about-stack-item {
  opacity: 0;
  animation: aboutTileEnter 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#body-wrap.type-about .about-stack-grid .about-stack-item:nth-child(1) { animation-delay: 80ms; }
#body-wrap.type-about .about-stack-grid .about-stack-item:nth-child(2) { animation-delay: 130ms; }
#body-wrap.type-about .about-stack-grid .about-stack-item:nth-child(3) { animation-delay: 180ms; }
#body-wrap.type-about .about-stack-grid .about-stack-item:nth-child(4) { animation-delay: 230ms; }
#body-wrap.type-about .about-stack-grid .about-stack-item:nth-child(5) { animation-delay: 280ms; }

@keyframes aboutIntroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aboutPortraitEnter {
  from { opacity: 0; transform: translate3d(24px, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes aboutArrowNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes aboutLineDraw {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes aboutListEnter {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes aboutTileEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #body-wrap.type-about .about-hero-scroll i,
  #body-wrap.type-about .about-intro.is-visible .about-intro-copy > *,
  #body-wrap.type-about .about-intro.is-visible .about-portrait,
  #body-wrap.type-about .about-path.is-visible .about-timeline::before,
  #body-wrap.type-about .about-focus.is-visible .about-focus-item,
  #body-wrap.type-about .about-contact.is-visible .about-contact-links a,
  #body-wrap.type-about .about-stack.is-visible .about-stack-item {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  #body-wrap.type-about .about-portrait img,
  #body-wrap.type-about .about-button i,
  #body-wrap.type-about .about-focus-item i,
  #body-wrap.type-about .about-contact-links a > i:last-child {
    transition: none;
  }
}
