/* about.css — page-local styles for about.html (R5, "Snap-fit").
   No page motion: only hover/press micro-interactions. Reuses R0 .rail, .layout-aside and .section--ink. */

/* ---------- Hero: statement beside a joined in-page index ---------- */
.about-hero {
  padding-block: var(--section-pad) var(--space-2xl);
}

.about-hero__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

.about-hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  min-inline-size: 0;
}

.about-index {
  min-inline-size: 0;
}

.about-index__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-s);
  align-items: center;
  min-block-size: 3.5rem;
  padding: var(--space-s) var(--space-m);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.about-index__name {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--fw-label);
  font-stretch: var(--wdth-label);
  line-height: var(--lh-snug);
}

.about-index__note {
  grid-column: 1;
  font-size: var(--step--1);
  line-height: var(--lh-snug);
  color: var(--color-text-muted);
}

.about-index__chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  fill: none;
  color: var(--color-text-muted);
  transition: transform var(--dur-micro) var(--ease-out);
}

.about-index__link:hover,
.about-index__link:focus-visible {
  background: var(--color-surface-raised);
}

.about-index__link:hover .about-index__name {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about-index__link:hover .about-index__chevron {
  transform: translateY(2px);
}

.about-index__link:active .about-index__chevron {
  transform: translateY(3px);
}

/* Three index items: the odd third one spans the row where the rail has two columns (640-1023px). */
@media (min-width: 640px) and (max-width: 1023px) {
  .about-index__list > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .about-hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .about-hero__intro {
    grid-column: 1 / span 7;
  }

  .about-index {
    grid-column: 9 / -1;
  }

  .about-index__list {
    --rail-cols: 1;
  }
}

/* ---------- Story: prose beside the rating plate ---------- */
.about-story {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

.about-story__text,
.about-facts {
  min-inline-size: 0;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.about-facts__title {
  font-size: var(--step-1);
  font-weight: var(--fw-label);
  font-stretch: var(--wdth-label);
}

.about-facts__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  padding: var(--space-s) var(--space-m);
}

.about-facts__item dt {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.about-facts__item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--fw-label);
  font-stretch: var(--wdth-label);
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .about-facts__item {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-m);
  }

  .about-facts__item dt {
    flex: 0 0 10rem;
  }

  .about-facts__item dd {
    flex: 1 1 0;
    min-inline-size: 0;
  }
}

@media (min-width: 1024px) {
  .about-story {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .about-story__text {
    grid-column: 1 / span 7;
  }

  .about-facts {
    grid-column: 9 / -1;
  }

  /* The aside is narrow here: stack label over value again. */
  .about-facts__item {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3xs);
  }

  .about-facts__item dt {
    flex: none;
  }
}

/* ---------- Values: running bond, joints offset between rows ---------- */
.about-values > li {
  display: flex;
}

/* The cards sit inside the li cells (not direct rail children), so R0's .rail > * rule does not
   reach them: reset the measure cap and strip the card chrome here. */
.about-values .card {
  max-inline-size: none;
  flex: 1 1 auto;
  padding: var(--space-l);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-values .card__icon {
  justify-items: start;
  inline-size: auto;
  block-size: auto;
}

.about-values .card__title {
  font-size: var(--step-2);
  font-stretch: var(--wdth-label);
}

.about-values .card__text {
  max-inline-size: var(--measure);
  color: var(--color-text);
}

.about-values .icon {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  fill: none;
  color: var(--graphite);
}

@media (min-width: 768px) {
  .about-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .about-values {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .about-values > li:nth-child(1),
  .about-values > li:nth-child(4) {
    grid-column: span 5;
  }

  .about-values > li:nth-child(2),
  .about-values > li:nth-child(3) {
    grid-column: span 3;
  }
}

/* ---------- Team: nameplate rail with empty photo slots ---------- */
.team-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: var(--space-m);
  align-items: start;
  padding: var(--space-s);
  block-size: 100%;
}

/* Empty slot: Block face ground with a dashed inset outline, reads as "photo to come". */
.team-card__avatar {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--block-face);
  color: var(--graphite);
}

.team-card__avatar::before {
  content: "";
  position: absolute;
  inset: var(--space-3xs);
  border: 1px dashed var(--graphite);
  pointer-events: none;
}

.team-card__icon {
  inline-size: 55%;
  block-size: 55%;
  fill: none;
}

/* A real photo fills the same box. */
.team-card__photo {
  display: block;
  inline-size: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  min-inline-size: 0;
}

.team-card__name {
  font-size: var(--step-1);
  font-weight: var(--fw-label);
  font-stretch: var(--wdth-label);
  line-height: var(--lh-snug);
}

.team-card__role {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  font-stretch: var(--wdth-label);
  color: var(--color-text);
}

.team-card__bio {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .team-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .team-card__avatar {
    inline-size: 100%;
  }

  .team-card__icon {
    inline-size: 30%;
    block-size: 30%;
  }

  .team-card__body {
    padding: var(--space-m);
    border-block-start: 1px solid var(--pegboard);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    --rail-cols: 4;
  }
}

/* ---------- Process: numbered rail, the page's one seam on its bottom edge ---------- */
.about-process__step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: var(--space-s);
  padding: var(--space-m);
}

.about-process__num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: var(--wdth-wide);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

.about-process__title {
  grid-column: 2;
  font-size: var(--step-2);
  font-stretch: var(--wdth-label);
}

.about-process__text {
  grid-column: 2;
  color: var(--color-text-muted);
}

/* The last step is launch, where the parts lock. */
.about-process__step:last-child::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: var(--seam-w);
  background: var(--gradient-seam);
}

.about-process__more {
  margin-block-start: var(--space-l);
}

.about-process__link,
.about-cta__link {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: var(--fw-label);
  font-stretch: var(--wdth-label);
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--graphite);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.about-process__link:hover {
  text-decoration-color: var(--signal-magenta);
  text-decoration-thickness: 2px;
}

@media (min-width: 640px) {
  .about-process__step {
    grid-template-columns: 4rem minmax(0, 1fr);
    padding: var(--space-m) var(--space-l);
  }
}

/* ---------- Final CTA: Ink plate inside the container ---------- */
.about-cta .about-cta__plate {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding-inline: var(--space-xl);
}

.about-cta__actions {
  margin-block-start: var(--space-s);
  gap: var(--space-m);
}

.about-cta__link {
  text-decoration-color: var(--signal-cyan);
  text-decoration-thickness: 2px;
}

@media (min-width: 1024px) {
  .about-cta .about-cta__plate {
    padding-inline: var(--space-2xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-index__link:hover .about-index__chevron,
  .about-index__link:active .about-index__chevron {
    transform: none;
  }
}
