/* About comp (/about): editorial and calm, the quiet page between the product pages.
   Built on tokens.css + site.css; this file only adds what About needs and site.css does not
   have: the hero's spec strip, FIG. 01 as a research-report exhibit (a real table), the three
   beliefs, and the closing band's place. The founder story, the
   people and the contact sections are not on the page yet; their styles left with them (they are
   in git history, commit 6285509) and come back when those sections do. Breakpoints as site.css:
   480, 720, 1100. */

/* ===================================================================== Page rhythm */
/* Phones and tablets: every block takes the full row, cards no wider than the narrow measure.
   From 1,100 px: FIG. 01 on the same eight columns as the section heads, so every section shares
   one left and one right edge. */
@media (min-width: 1100px) {
  .grid-12 > .about-fig1 {
    grid-column: 1 / span 8;
  }
}

/* ===================================================================== Hero */
/* No figure and no cobalt: type, the faint paper grid fading out downward, and the launch strip. */
.about-hero .hero-backdrop {
  /* run the grid up under the transparent header, so the paper reads as one sheet */
  inset: calc(-1 * var(--s-9)) 0 0;
}
.about-hero .hero-backdrop::before {
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 90%);
}
.about-hero .hero-backdrop::after {
  content: none;
}
.about-lede {
  max-width: 52ch;
}
/* The headline's three lines (the same three as the share image) need the room of nine columns.
   Narrower, the headline flows and balances as one sentence, and holds still. Its measure is 16ch
   of Inter's display cut, written in em: a ch is measured on whichever font is showing, and the
   stand-in's is 12% narrower, so in ch the headline would run a line longer until Inter arrives. */
@media (max-width: 1099.98px) {
  .about-title {
    max-width: 10.21em;
  }
  .about-title .line,
  .about-title .line > span {
    display: inline;
    overflow: visible;
    margin: 0;
    padding: 0;
    animation: none;
  }
}
@media (min-width: 1100px) {
  .about-title {
    max-width: none;
  }
  .about-lede {
    /* seven of the twelve columns */
    max-width: calc((100% - 11 * var(--gutter)) / 12 * 7 + 6 * var(--gutter));
  }
}

/* The launch strip: a mono label and four hairline chips, on a hairline. */
.about-spec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .about-spec {
    /* the hairline is exactly as long as the strip: one object, never into the dial */
    width: fit-content;
    max-width: 100%;
  }
}
/* Tablets: the label above its chips, as on phones. Side by side the strip needs the whole 720 px
   row at 768 to the hundredth of a pixel, so one font or platform's rounding would push the chips
   under the label with the hairline still running the full row. */
@media (min-width: 720px) and (max-width: 1099.98px) {
  .about-spec {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (min-width: 1100px) {
  .about-spec {
    /* one row on desktop: the label, then the four chips */
    flex-wrap: nowrap;
  }
}

/* The instrument dial, from 1,100 px: the gate ring of the share image, drawn as part of the paper
   (hairlines and fine ticks in ink greys, no cobalt, no orange), with its one opening and the dot
   passing through it. Still, decorative, on the right four columns beside the headline. */
.about-dial {
  display: none;
}
@media (min-width: 1100px) {
  .about-hero .container {
    position: relative;
  }
  .about-dial {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    z-index: -1;
    display: block;
    width: clamp(300px, 100vw - 780px, 452px);
    height: auto;
    overflow: visible;
    translate: 0 -50%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.35) 100%);
    mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.35) 100%);
  }
}
.about-dial-ring,
.about-dial-faint,
.about-dial-cross {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1px;
}
.about-dial-ring--in {
  stroke: var(--border);
}
.about-dial-faint {
  stroke: var(--border);
  stroke-dasharray: 2 6;
}
.about-dial-ticks,
.about-dial-major {
  fill: none;
  stroke: var(--text-3);
  opacity: 0.32;
}
.about-dial-ticks {
  stroke-width: 8px;
  stroke-dasharray: 0.36 2.64;
}
.about-dial-major {
  stroke-width: 14px;
  stroke-dasharray: 0.5 29.5;
  stroke-dashoffset: 24;
  opacity: 0.6;
}
.about-dial-dot {
  fill: var(--text-2);
}
.about-spec-label {
  margin: 0;
}
.about-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-chip {
  height: var(--s-6);
  padding: 0 var(--s-3);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text-2);
}
@media (max-width: 719.98px) {
  .about-spec-label {
    flex-basis: 100%;
  }
}

/* ===================================================================== FIG. 01 · the exhibit */
/* A real table (roles kept, so the layout may change without losing its meaning). Desktop: three
   columns on a subgrid, hairline rules, the 97Agents row on a white surface in a cobalt frame (the
   section's one cobalt moment). Phones: each row's name above its two cells, each cell with its
   column label. */
.about-fig1 {
  grid-column: 1 / -1;
}
.exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  border-top: 1px solid var(--border-strong);
  font-size: var(--fs-body);
  line-height: 1.45;
}
.exhibit > thead,
.exhibit > tbody {
  display: contents;
}
.exhibit-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--border);
}
.exhibit-row > th,
.exhibit-row > td {
  padding: 0;
  text-align: left;
  font-weight: inherit;
}
.exhibit-row > th[scope='row'] {
  grid-column: 1 / -1;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.exhibit-row > td {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-1);
}
.exhibit-k {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}
/* Each answer carries a key, as a report's comparison matrix does: a solid ink dot for "You", an
   open ring for the software. The rows read at a glance (two dots, two rings, then ring and dot);
   the words say the same, so the keys are decoration only. */
.exhibit-v {
  color: var(--text-2);
}
.exhibit-v::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--s-2);
  border-radius: 50%;
  vertical-align: 0.1em;
  box-shadow: inset 0 0 0 1.25px var(--text-3);
}
.exhibit-v.is-you {
  color: var(--text);
  font-weight: 600;
}
.exhibit-v.is-you::before {
  background: var(--text);
  box-shadow: none;
}
/* Phones: the column heads live in each cell instead (the real heads stay for screen readers). */
.exhibit-head .exhibit-row {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.exhibit-row:has(+ .exhibit-row--ours) {
  border-bottom-color: transparent;
}
.exhibit-row--ours {
  margin-top: var(--s-2);
  padding-inline: var(--s-4);
  border-bottom: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
/* The frame draws itself once (about.js adds .is-armed, then .is-in at half in view). Without
   JavaScript, or with reduced motion, it is simply there. */
.exhibit-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.exhibit-frame-line {
  x: 0.5px;
  y: 0.5px;
  width: calc(100% - 1px);
  height: calc(100% - 1px);
  rx: calc(var(--r-md) - 0.5px);
  fill: none;
  stroke: var(--brand);
  stroke-width: 1px;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dur-3) var(--ease-out);
}
.about-fig1.is-armed:not(.is-in) .exhibit-frame-line {
  stroke-dashoffset: 1;
}
@media (min-width: 720px) {
  .exhibit {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.55fr);
  }
  .exhibit-row {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: baseline;
    gap: 0;
    padding: 0;
  }
  .exhibit-row > th,
  .exhibit-row > td {
    display: block;
    padding: var(--s-5) var(--s-4);
  }
  .exhibit-row > :first-child {
    padding-left: var(--s-4);
  }
  .exhibit-row > th[scope='row'] {
    grid-column: auto;
  }
  .exhibit-k {
    display: none;
  }
  .exhibit-head .exhibit-row {
    position: relative;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    border-bottom-color: var(--border-strong);
  }
  .exhibit {
    border-top: 0;
  }
  /* the empty corner cell too, or its padding pushes the column heads 36 px down, off the 64 px
     between the lede and the figure */
  .exhibit-head th,
  .exhibit-head td {
    padding-block: 0 var(--s-3);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--text-3);
  }
  .exhibit-row--ours {
    padding-inline: 0;
  }
}
/* From 1,100 px the words sit on the page's left edge, and the 97Agents card reaches out past
   it, like a marked row in a report. */
@media (min-width: 1100px) {
  .exhibit-row > :first-child {
    padding-left: 0;
  }
  .exhibit-row--ours {
    /* 16 px out while the page margin is narrow, 24 px once there is room */
    --out: var(--s-4);
    margin-inline: calc(-1 * var(--out));
    padding-inline: var(--out) 0;
  }
}
@media (min-width: 1280px) {
  .exhibit-row--ours {
    --out: var(--s-5);
  }
}

/* ===================================================================== 02 · beliefs */
/* Three beliefs as a ruled row: a number, the point, one line. */
.about-beliefs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .about-beliefs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.about-belief {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5) 0 var(--s-6);
  border-top: 1px solid var(--border-strong);
}
.about-belief-n {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-label);
  color: var(--text-3);
}
.about-belief-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.about-belief-text {
  max-width: 34ch;
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ===================================================================== 03 · Next step */
/* The shared closing band: the band itself starts the section, so no divider and
   no second gap above it. */
.about-cta {
  padding-top: 0;
}
.about-cta::before {
  content: none;
}
