/* About page — scoped to .about-page only; matches labs-page / toolkit-home golden catalog */

html {
  scroll-behavior: smooth;
}

body.page-toolkit-labs .about-page {
  text-align: left;
}

/* Same rhythm as .tools-container + warm wash (main only) */
.about-page {
  position: relative;
  z-index: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem) 20px max(3.25rem, env(safe-area-inset-bottom, 0px));
  background: transparent;
}

.about-page::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(520px, 58vh);
  z-index: -1;
  pointer-events: none;
  border-radius: 0 0 clamp(20px, 4vw, 36px) clamp(20px, 4vw, 36px);
  background: radial-gradient(ellipse 95% 80% at 50% -5%, rgba(185, 139, 59, 0.14) 0%, transparent 58%);
}

/* ——— Hero — matches .tools-hero ——— */
.about-page__hero {
  position: relative;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: clamp(18px, 2.5vw, 24px);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(145, 103, 48, 0.22);
  background: linear-gradient(165deg, rgba(255, 252, 246, 0.99) 0%, rgba(248, 236, 214, 0.95) 52%, rgba(238, 222, 196, 0.97) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 22px 52px -34px rgba(94, 65, 30, 0.4);
}

.about-page__hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  z-index: 1;
  pointer-events: none;
  border-radius: clamp(18px, 2.5vw, 24px) 0 0 clamp(18px, 2.5vw, 24px);
  background: linear-gradient(180deg, #d4a85c 0%, #b98b3b 38%, #8a6228 100%);
  box-shadow: 3px 0 18px -6px rgba(94, 65, 30, 0.45);
}

.about-page__hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(145, 103, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 103, 48, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 95% 75% at 18% 12%, black 18%, transparent 68%);
}

.about-page__hero-sheen {
  position: absolute;
  inset: -35% -25% auto -35%;
  height: 78%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(185, 139, 59, 0.12) 50%, transparent 62%);
  transform: rotate(-2deg);
}

.about-page__hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.1rem, 3.4vw, 2.35rem) clamp(1.35rem, 3.2vw, 1.9rem);
  padding-left: calc(clamp(1.1rem, 3.4vw, 2.35rem) + 12px);
  max-width: none;
}

.about-page__hero-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(94, 67, 41, 0.88);
}

.about-page__hero-title {
  font-size: clamp(1.32rem, 2.95vw, 1.88rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: #2f2114;
  margin: 0 0 1rem;
}

.about-page__hero-copy {
  font-size: 0.9rem;
  line-height: 1.68;
  color: rgba(88, 64, 38, 0.88);
  max-width: 48rem;
}

.about-page__hero-copy p {
  margin: 0 0 1rem;
}

.about-page__hero-copy p:last-child {
  margin-bottom: 0;
}

.about-page__hero-copy a {
  color: #9f742f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-page__hero-copy a:hover {
  color: #7a5526;
}

/* ——— Metrics ——— */
.about-page__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  padding: 0;
  list-style: none;
  border: none;
  background: transparent;
  overflow: visible;
}

.about-page__metric {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 238, 222, 0.94));
  border-radius: 12px;
  border: 1px solid rgba(145, 103, 48, 0.22);
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.about-page__metric:hover {
  border-color: rgba(171, 124, 52, 0.4);
  box-shadow: 0 12px 32px -18px rgba(94, 65, 30, 0.28);
  transform: translateY(-2px);
}

.about-page__metric-value {
  display: block;
  font-size: 1.42rem;
  font-weight: 800;
  color: #9f742f;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.about-page__metric-label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(94, 67, 41, 0.78);
}

/* ——— TOC + article ——— */
.about-page__frame {
  display: grid;
  grid-template-columns: min(200px, 28%) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.about-page__toc {
  position: sticky;
  top: 5.5rem;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(145, 103, 48, 0.18);
}

.about-page__toc-heading {
  margin: 0 0 12px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(94, 67, 41, 0.75);
}

.about-page__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-page__toc-list li {
  margin-bottom: 6px;
}

.about-page__toc-list a {
  display: block;
  padding: 6px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(94, 67, 41, 0.82);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.about-page__toc-list a:hover {
  color: #7a5526;
  border-left-color: rgba(185, 139, 59, 0.65);
}

.about-page__article {
  min-width: 0;
  border-top: 1px solid rgba(145, 103, 48, 0.18);
  padding-top: 8px;
}

.about-page__block,
.about-page__section,
.about-page__closing {
  scroll-margin-top: 5.5rem;
}

/* ——— Split blocks ——— */
.about-page__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.about-page__block {
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(145, 103, 48, 0.2);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(248, 238, 222, 0.95));
  box-shadow: 0 14px 36px -24px rgba(94, 65, 30, 0.3);
}

.about-page__h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #5e4329;
  margin: 0 0 12px;
  line-height: 1.25;
}

.about-page__lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(88, 64, 38, 0.88);
}

.about-page__footnote {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(94, 67, 41, 0.78);
}

.about-page__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(88, 64, 38, 0.9);
  text-align: left;
}

.about-page__list--tight li + li {
  margin-top: 2px;
}

.about-page__list--compact {
  padding-left: 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.about-page__list--compact li + li {
  margin-top: 1px;
}

.about-page__list--inline-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  list-style: none;
  margin: 8px 0 0;
}

.about-page__list--inline-values li {
  position: relative;
  padding-right: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #5e4329;
}

.about-page__list--inline-values li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(145, 103, 48, 0.28);
}

/* ——— Sections ——— */
.about-page__section {
  padding: 28px 0 32px;
}

.about-page__section--bordered {
  border-top: 1px solid rgba(145, 103, 48, 0.16);
}

.about-page__section .about-page__h2 {
  margin-bottom: 10px;
}

.about-page__section p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.68;
  color: rgba(88, 64, 38, 0.88);
}

.about-page__section p:last-child {
  margin-bottom: 0;
}

.about-page__section .about-page__list {
  margin-top: 8px;
  margin-bottom: 12px;
}

.about-page__intro {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(88, 64, 38, 0.88);
}

/* ——— Category grid ——— */
.about-page__category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-page__category {
  padding: 16px 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(145, 103, 48, 0.2);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(248, 238, 222, 0.88));
}

.about-page__h3 {
  margin: 0 0 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a5526;
}

/* ——— Closing ——— */
.about-page__closing {
  margin-top: 8px;
  padding: 28px 26px;
  border-radius: 16px;
  border: 1px solid rgba(145, 103, 48, 0.22);
  background: linear-gradient(168deg, rgba(255, 252, 246, 0.98) 0%, rgba(248, 236, 214, 0.92) 55%, rgba(238, 222, 196, 0.9) 100%);
  box-shadow: 0 18px 48px -30px rgba(94, 65, 30, 0.35);
}

.about-page__quote {
  margin: 0 0 22px;
  padding: 0;
  border: none;
}

.about-page__quote p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.68;
  color: rgba(88, 64, 38, 0.88);
}

.about-page__quote p:last-of-type {
  margin-bottom: 0;
}

.about-page__quote-em {
  margin-top: 14px !important;
  font-size: 1.05rem !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #9f742f !important;
}

.about-page__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.about-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.about-page__btn--primary {
  background: linear-gradient(180deg, #bc8e3d 0%, #9f742f 100%);
  color: #fff8ef;
  border: 1px solid rgba(121, 85, 40, 0.45);
  box-shadow: 0 4px 18px -10px rgba(94, 65, 30, 0.35);
}

.about-page__btn--primary:hover {
  background: linear-gradient(180deg, #c89a4a 0%, #aa7d34 100%);
  box-shadow: 0 8px 22px -12px rgba(94, 65, 30, 0.45);
  transform: translateY(-1px);
}

.about-page__btn--ghost {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 238, 222, 0.94));
  color: #5e4329;
  border: 1px solid rgba(145, 103, 48, 0.28);
}

.about-page__btn--ghost:hover {
  border-color: rgba(171, 124, 52, 0.45);
  box-shadow: 0 8px 20px -14px rgba(94, 65, 30, 0.22);
  transform: translateY(-1px);
}

.about-page__btn:focus-visible {
  outline: 2px solid rgba(185, 139, 59, 0.65);
  outline-offset: 3px;
}

/* Entrance — labs-page keyframes */
.about-page [data-reveal] {
  animation: fadeInUp 0.6s ease-out backwards;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .about-page [data-reveal] {
    animation: none;
  }

  .about-page__btn {
    transition: none;
  }

  .about-page__btn--primary:hover,
  .about-page__btn--ghost:hover {
    transform: none;
  }

  .about-page__metric:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .about-page__frame {
    grid-template-columns: 1fr;
  }

  .about-page__toc {
    position: static;
    padding: 0 0 8px;
    border-top: none;
  }

  .about-page__toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .about-page__toc-list li {
    margin-bottom: 0;
  }

  .about-page__toc-list a {
    padding: 6px 10px;
    margin-left: 0;
    padding-left: 10px;
    border-radius: 8px;
    border: 1px solid rgba(145, 103, 48, 0.18);
    background: linear-gradient(180deg, #fffaf2 0%, #f8ecd8 100%);
    border-left-width: 1px;
  }

  .about-page__toc-list a:hover {
    border-color: rgba(171, 124, 52, 0.35);
  }

  .about-page__article {
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .about-page__metrics {
    grid-template-columns: 1fr;
  }

  .about-page__split {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .about-page__category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-page {
    padding: 18px 16px 52px;
  }

  .about-page__hero-inner {
    padding: 24px 18px 28px;
    padding-left: calc(18px + 12px);
  }
}
