/*
 * AH Digital — About Page v1
 */

.ah-about-page,
.ah-about-page * {
  box-sizing: border-box;
}

.ah-about-page {
  overflow-x: clip;
  background: var(--ah-color-bg);
  color: var(--ah-color-text);
}

.ah-about-page :where(h1, h2, h3, p) {
  margin-block-start: 0;
}

.ah-about-page :where(section, div, article) {
  min-width: 0;
}

.ah-about-eyebrow {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: clamp(0.66rem, 0.62rem + 0.1vw, 0.74rem);
  font-weight: 750;
  letter-spacing: 0.085em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* Hero */
.ah-about-hero {
  position: relative;
  padding-block: clamp(76px, 8vw, 124px);
  background:
    radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--ah-color-brand) 8%, transparent), transparent 28%),
    var(--ah-color-bg);
}

.ah-about-hero::before,
.ah-about-markets::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ah-color-border) 54%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ah-color-border) 54%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  pointer-events: none;
}

.ah-about-hero::before {
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.ah-about-hero > .ah-container,
.ah-about-markets > .ah-container {
  position: relative;
  z-index: 1;
}

.ah-about-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.ah-about-hero__copy h1 {
  max-width: 12.5ch;
  margin-block: 18px 0;
  color: var(--ah-color-text);
  font-size: clamp(3.2rem, 5vw, 5.65rem);
  letter-spacing: -0.064em;
  line-height: 0.99;
  text-wrap: balance;
}

.ah-about-hero__lead {
  max-width: 60ch;
  margin-block-start: 26px;
  color: var(--ah-color-text-secondary);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.13rem);
  line-height: 1.72;
}

.ah-about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 30px;
}

.ah-about-profile {
  overflow: hidden;
  border: 1px solid var(--ah-color-border);
  border-radius: 28px;
  background: var(--ah-color-surface);
  box-shadow: var(--ah-shadow-feature);
}

.ah-about-profile__visual {
  position: relative;
  display: grid;
  min-height: 450px;
  place-items: end center;
  overflow: hidden;
  border-block-end: 1px solid var(--ah-color-border);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--ah-color-brand) 13%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--ah-color-brand) 6%, var(--ah-color-surface)), var(--ah-color-surface));
}

.ah-about-profile__visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ah-color-border) 52%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ah-color-border) 52%, transparent) 1px, transparent 1px);
  background-size: 68px 68px;
  content: "";
  pointer-events: none;
}

.ah-about-profile__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(88%, 520px);
  height: auto;
  object-fit: contain;
}

.ah-about-profile__badge {
  position: absolute;
  z-index: 2;
  inset-block-start: 22px;
  inset-inline-start: 22px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--ah-color-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ah-color-surface) 90%, transparent);
  padding: 11px 13px;
}

.ah-about-profile__badge span {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.ah-about-profile__badge strong {
  font-size: 0.78rem;
}

.ah-about-profile__meta {
  padding: 18px 22px 22px;
}

.ah-about-profile__meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ah-color-text-muted);
  font-family: var(--ah-font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ah-about-profile__identity {
  display: grid;
  gap: 4px;
  padding-block: 22px;
  border-block-end: 1px solid var(--ah-color-border);
}

.ah-about-profile__identity strong {
  font-size: 1.04rem;
}

.ah-about-profile__identity span {
  color: var(--ah-color-text-secondary);
  font-size: 0.8rem;
}

.ah-about-profile dl {
  margin: 0;
}

.ah-about-profile dl > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding-block: 11px;
  border-block-end: 1px solid var(--ah-color-border);
}

.ah-about-profile dt {
  color: var(--ah-color-text-muted);
  font-family: var(--ah-font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ah-about-profile dd {
  margin: 0;
  color: var(--ah-color-text);
  font-size: 0.78rem;
}

/* Shared section heading */
.ah-about-principles,
.ah-about-experience,
.ah-about-system,
.ah-about-process,
.ah-about-markets {
  position: relative;
  padding-block: clamp(86px, 9vw, 140px);
}

.ah-about-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: clamp(42px, 6vw, 88px);
}

.ah-about-section-head h2,
.ah-about-experience__intro h2,
.ah-about-system__copy h2,
.ah-about-process__head h2,
.ah-about-markets__layout h2,
.ah-about-cta__shell h2 {
  margin-block-start: 16px;
  color: var(--ah-color-text);
  font-size: clamp(2.45rem, 4vw, 4.5rem);
  letter-spacing: -0.052em;
  line-height: 1.02;
  text-wrap: balance;
}

.ah-about-section-head h2 {
  max-width: 12ch;
}

.ah-about-section-head > p,
.ah-about-experience__intro > p,
.ah-about-system__copy > p {
  color: var(--ah-color-text-secondary);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* Principles */
.ah-about-principles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-block-start: clamp(52px, 6vw, 78px);
  overflow: hidden;
  border: 1px solid var(--ah-color-border);
  border-radius: 24px;
  background: var(--ah-color-border);
}

.ah-about-principles__grid article {
  min-height: 300px;
  background: var(--ah-color-surface);
  padding: clamp(28px, 3.5vw, 42px);
}

.ah-about-principles__grid article > span {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: 0.66rem;
  font-weight: 800;
}

.ah-about-principles__grid h3 {
  max-width: 18ch;
  margin-block-start: 50px;
  color: var(--ah-color-text);
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.ah-about-principles__grid p {
  max-width: 58ch;
  margin-block-start: 14px;
  color: var(--ah-color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Experience */
.ah-about-experience {
  background: var(--ah-color-surface-soft);
}

.ah-about-experience__intro {
  max-width: 920px;
}

.ah-about-experience__intro h2 {
  max-width: 15ch;
}

.ah-about-experience__intro > p {
  max-width: 64ch;
  margin-block-start: 20px;
}

.ah-about-experience__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: 58px;
  border-block: 1px solid var(--ah-color-border);
}

.ah-about-experience__metrics > div {
  display: grid;
  min-height: 220px;
  align-content: center;
  gap: 8px;
  padding: 26px;
}

.ah-about-experience__metrics > div + div {
  border-inline-start: 1px solid var(--ah-color-border);
}

.ah-about-experience__metrics strong {
  color: var(--ah-color-text);
  font-size: clamp(2.7rem, 4vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.ah-about-experience__metrics span {
  max-width: 18ch;
  color: var(--ah-color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ah-about-experience__metric-text span {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ah-about-experience__metric-text strong {
  max-width: 19ch;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

/* System */
.ah-about-system__shell {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(430px, 1.3fr);
  align-items: center;
  gap: clamp(46px, 7vw, 94px);
  border: 1px solid var(--ah-color-border);
  border-radius: 28px;
  background: var(--ah-color-surface);
  padding: clamp(34px, 5vw, 64px);
}

.ah-about-system__copy h2 {
  max-width: 12ch;
}

.ah-about-system__copy > p {
  margin-block: 20px 28px;
}

.ah-about-system__map {
  overflow: hidden;
  border: 1px solid var(--ah-color-border);
  border-radius: 20px;
  background: var(--ah-color-surface-soft);
}

.ah-about-system__map-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-block-end: 1px solid var(--ah-color-border);
  color: var(--ah-color-text-muted);
  font-family: var(--ah-font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-inline: 18px;
}

.ah-about-system__nodes {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  gap: 8px;
  padding: 40px 18px;
}

.ah-about-system__nodes > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  border: 1px solid var(--ah-color-border);
  border-radius: 14px;
  background: var(--ah-color-surface);
  padding: 16px 13px;
}

.ah-about-system__nodes > div span {
  color: var(--ah-color-text-muted);
  font-family: var(--ah-font-mono);
  font-size: 0.54rem;
  font-weight: 700;
}

.ah-about-system__nodes > div strong {
  color: var(--ah-color-text);
  font-size: 0.78rem;
}

.ah-about-system__nodes > div.is-outcome {
  border-color: color-mix(in srgb, var(--ah-color-signal) 50%, var(--ah-color-border));
}

.ah-about-system__nodes > div.is-outcome span {
  color: var(--ah-color-signal);
}

.ah-about-system__nodes > i {
  width: clamp(12px, 1.4vw, 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--ah-color-brand), var(--ah-color-intelligence));
}

/* Process */
.ah-about-process {
  background: var(--ah-color-surface-soft);
}

.ah-about-process__head {
  max-width: 880px;
}

.ah-about-process__head h2 {
  max-width: 14ch;
}

.ah-about-process__flow {
  display: grid;
  grid-template-columns: repeat(11, auto);
  align-items: center;
  gap: 10px;
  margin-block-start: 58px;
  overflow: hidden;
  border: 1px solid var(--ah-color-border);
  border-radius: 24px;
  background: var(--ah-color-surface);
  padding: 28px;
}

.ah-about-process__flow > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.ah-about-process__flow > div span {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: 0.58rem;
  font-weight: 800;
}

.ah-about-process__flow > div strong {
  color: var(--ah-color-text);
  font-size: 0.9rem;
}

.ah-about-process__flow > div small {
  max-width: 14ch;
  color: var(--ah-color-text-muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.ah-about-process__flow > i {
  width: clamp(16px, 2vw, 30px);
  height: 1px;
  background: var(--ah-color-border-strong);
}

/* Markets */
.ah-about-markets {
  overflow: hidden;
}

.ah-about-markets::before {
  opacity: 0.6;
}

.ah-about-markets__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: end;
  gap: clamp(48px, 7vw, 100px);
}

.ah-about-markets__layout h2 {
  max-width: 13ch;
}

.ah-about-markets__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ah-about-markets__list span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-pill);
  background: var(--ah-color-surface);
  color: var(--ah-color-text-secondary);
  font-size: 0.78rem;
  padding: 8px 14px;
}

/* CTA */
.ah-about-cta {
  padding-block: clamp(72px, 7vw, 108px);
}

.ah-about-cta__shell {
  overflow: hidden;
  border: 1px solid var(--ah-color-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 26%, color-mix(in srgb, var(--ah-color-intelligence) 10%, transparent), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--ah-color-brand) 7%, var(--ah-color-surface)), var(--ah-color-surface));
  padding: clamp(36px, 6vw, 72px);
}

.ah-about-cta__shell h2 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 3.9vw, 4.45rem);
}

.ah-about-cta__shell > p {
  max-width: 58ch;
  margin-block: 22px 30px;
  color: var(--ah-color-text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* Zoom-safe / laptop */
@media (max-width: 1220px) {
  .ah-about-hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-about-hero__copy {
    max-width: 900px;
  }

  .ah-about-profile {
    width: min(100%, 780px);
  }

  .ah-about-system__shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-about-system__map {
    width: min(100%, 900px);
  }

  .ah-about-process__flow {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
  }

  .ah-about-process__flow > i {
    display: none;
  }
}

@media (min-width: 900px) and (max-height: 760px) {
  .ah-about-hero {
    padding-block: 58px 72px;
  }
}

/* Tablet */
@media (max-width: 960px) {
  .ah-about-section-head,
  .ah-about-markets__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-about-principles__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-about-principles__grid article {
    min-height: 0;
  }

  .ah-about-experience__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-about-experience__metrics > div:nth-child(3) {
    border-inline-start: 0;
    border-block-start: 1px solid var(--ah-color-border);
  }

  .ah-about-experience__metrics > div:nth-child(4) {
    border-block-start: 1px solid var(--ah-color-border);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ah-about-hero,
  .ah-about-principles,
  .ah-about-experience,
  .ah-about-system,
  .ah-about-process,
  .ah-about-markets {
    padding-block: 70px;
  }

  .ah-about-cta {
    padding-block: 60px;
  }

  .ah-about-hero__copy h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11.5vw, 4rem);
  }

  .ah-about-section-head h2,
  .ah-about-experience__intro h2,
  .ah-about-system__copy h2,
  .ah-about-process__head h2,
  .ah-about-markets__layout h2,
  .ah-about-cta__shell h2 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9.5vw, 3.4rem);
  }

  .ah-about-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ah-about-hero__actions .ah-button {
    width: 100%;
    justify-content: space-between;
  }

  .ah-about-profile__visual {
    min-height: 360px;
  }

  .ah-about-profile dl > div {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .ah-about-experience__metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-about-experience__metrics > div + div {
    border-inline-start: 0;
    border-block-start: 1px solid var(--ah-color-border);
  }

  .ah-about-system__nodes {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .ah-about-system__nodes > i {
    width: 1px;
    height: 16px;
    margin-inline-start: 16px;
    background: linear-gradient(180deg, var(--ah-color-brand), var(--ah-color-intelligence));
  }

  .ah-about-process__flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
  }

  .ah-about-cta__shell {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .ah-about-profile {
    border-radius: 20px;
  }

  .ah-about-profile__visual {
    min-height: 320px;
  }

  .ah-about-profile__badge {
    inset-block-start: 16px;
    inset-inline-start: 16px;
  }

  .ah-about-process__flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-about-markets__list {
    display: grid;
  }

  .ah-about-markets__list span {
    width: 100%;
  }
}

@supports not (color: color-mix(in srgb, black, white)) {
  .ah-about-hero,
  .ah-about-profile__visual,
  .ah-about-cta__shell {
    background: var(--ah-color-bg);
  }
}
