/* About: page-only layout. Shared components come from site.css. Prefix: .ab- */

/* Header: title and lede left; on the right, a photo of the office staff (two cats),
   set slightly askew like a print on a desk, with two labels. It settles into place once. */
.ab-head__inner { display: grid; gap: var(--space-2xl); }
.ab-head .page-head__title { max-width: 12ch; text-wrap: balance; }
.ab-cats { justify-self: center; width: min(100%, 420px); margin: 0; }
.ab-cats__frame {
  position: relative; padding: 12px; background: var(--white);
  border-radius: var(--radius-panel); box-shadow: inset 0 0 0 1.5px var(--ink);
  rotate: -2deg; transition: rotate 700ms var(--ease-out);
}
.ab-cats__img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ab-cats__tag {
  position: absolute; display: inline-flex; align-items: center; min-height: 32px; padding: 3px 12px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-medium); white-space: nowrap;
}
.ab-cats__tag--morale { left: 7%; top: 15%; rotate: -3deg; }
.ab-cats__tag--qc { right: 6%; top: 5%; rotate: 2deg; background: var(--stage); }
.ab-cats__caption { margin-top: var(--space-m); color: var(--ink-2); font-size: var(--text-s); line-height: 1.45; text-align: center; text-wrap: balance; }
.ab-cats__title { display: block; color: var(--ink); font-family: var(--serif); font-variation-settings: "opsz" 60; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 2px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ab-cats:hover .ab-cats__frame { rotate: 0deg; }
}
html.motion:not(.vt-in) .ab-cats__frame { animation: ab-settle 1100ms var(--ease-out) 150ms backwards; }
html.motion:not(.vt-in) .ab-cats__tag { animation: ab-pop 500ms var(--ease-out) backwards; }
html.motion:not(.vt-in) .ab-cats__tag--morale { animation-delay: 900ms; }
html.motion:not(.vt-in) .ab-cats__tag--qc { animation-delay: 1250ms; }
@keyframes ab-settle { from { opacity: 0; rotate: 5deg; translate: 0 -24px; } }
@keyframes ab-pop { from { opacity: 0; translate: 0 10px; } }
@media (min-width: 900px) {
  .ab-head__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: center; }
}
@media (max-width: 600px) {
  .ab-cats { width: min(100%, 340px); }
  .ab-cats__frame { padding: 8px; }
  .ab-cats__title { font-size: 26px; }
}

/* How I work: one full-width colour band, three short lines across it. No diagrams. */
.ab-band { background: var(--stage); padding: var(--space-3xl) 0; }
.ab-band__list { display: grid; gap: var(--space-xl); }
.ab-band__item { padding-top: var(--space-m); border-top: var(--rule-w) solid var(--ink); }
.ab-band__title {
  font-family: var(--serif); font-weight: var(--weight-regular); font-variation-settings: "opsz" 60;
  font-size: var(--text-statement); line-height: 1.08; letter-spacing: -0.025em; margin-left: -0.02em;
  max-width: 11ch; text-wrap: balance;
}
.ab-band__text { margin-top: var(--space-m); font-size: 20px; line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
@media (min-width: 900px) {
  .ab-band__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-xl); }
}

/* AI only where it pays: each tool's jobs split to two sides, AI on the left in the
   stage colour, everything else on the right. On wide screens the jobs slide out from
   the tool's name the first time the panel is seen (page.js adds .is-sorted). */
.ab-ai__head { margin-bottom: var(--space-2xl); }
.ab-ai__intro { max-width: 36ch; }
.ab-ai .stage__field { min-height: 0; }

.ab-split__head { display: none; }
.ab-split__rows { display: grid; }
.ab-split__row { padding: var(--space-m) 0; border-top: var(--rule-w) solid var(--rule); }
.ab-split__row:first-child { border-top: 0; padding-top: 0; }
.ab-split__tool { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
.ab-split__tool a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line); }
.ab-split__tool a:hover { text-decoration-color: var(--ink); }
.ab-split__side { margin-top: var(--space-s); }
.ab-split__label { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--ink-2); margin-bottom: var(--space-2xs); }
.ab-chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.ab-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px var(--space-s);
  border: var(--line-w) solid var(--line); border-radius: 20px; background: var(--white);
  font-size: var(--text-s); line-height: 1.3;
}
.ab-split__side--ai .ab-chip { background: var(--stage); border-color: var(--ink); }
.ab-split__none { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); font-size: var(--text-s); }

@media (min-width: 900px) {
  .ab-split__head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 11em) minmax(0, 1fr); column-gap: var(--space-l);
    padding-bottom: var(--space-s); margin-bottom: var(--space-s); border-bottom: var(--rule-w) solid var(--ink);
  }
  .ab-split__key { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-s); font-weight: var(--weight-medium); }
  .ab-split__key--ai { grid-column: 1; justify-self: end; }
  .ab-split__key--ai::before { content: ""; width: 16px; height: 16px; background: var(--stage); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 3px; }
  .ab-split__key--plain { grid-column: 3; }
  .ab-split__key--plain::before { content: ""; width: 16px; height: 16px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 3px; }

  .ab-split__row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 11em) minmax(0, 1fr);
    grid-template-areas: "ai tool plain"; column-gap: var(--space-l); align-items: center;
  }
  .ab-split__row:first-child { padding-top: var(--space-xs); }
  /* The name sits on a white block the height of the row, so the jobs slide out from behind it. */
  .ab-split__tool {
    grid-area: tool; align-self: stretch; display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1; background: var(--white); text-align: center; font-size: 20px;
  }
  .ab-split__side { margin-top: 0; }
  .ab-split__side--ai { grid-area: ai; }
  .ab-split__side--plain { grid-area: plain; }
  .ab-split__side--ai .ab-chips { justify-content: flex-end; }
  .ab-split__side--ai .ab-split__none { display: flex; justify-content: flex-end; }
  /* The column keys say which side is which, so each row's labels are for screen readers only. */
  .ab-split__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  html.motion .ab-split__tool,
  html.motion .ab-split .ab-chip,
  html.motion .ab-split__none {
    transition: translate 800ms var(--ease-out), opacity 500ms var(--ease-out);
  }
  html.motion .ab-split__tool { transition-delay: calc(var(--r, 0) * 160ms); }
  html.motion .ab-split:not(.is-sorted) .ab-split__tool { opacity: 0; }
  html.motion .ab-split:not(.is-sorted) .ab-split__side--ai .ab-chip,
  html.motion .ab-split:not(.is-sorted) .ab-split__none { opacity: 0; translate: 140px 0; }
  html.motion .ab-split:not(.is-sorted) .ab-split__side--plain .ab-chip { opacity: 0; translate: -140px 0; }
  html.motion .ab-split .ab-chip, html.motion .ab-split__none { transition-delay: calc(var(--r, 0) * 160ms + 250ms + var(--c, 0) * 70ms); }
}

.ab-ai__end {
  margin-top: var(--space-2xl); max-width: 22ch;
  font-family: var(--serif); font-weight: var(--weight-regular); font-variation-settings: "opsz" 60;
  font-size: var(--text-statement); line-height: 1.12; letter-spacing: -0.025em; margin-left: -0.02em;
}

/* You won't need me forever: a big serif line, then the words that back it up. */
.ab-own { padding-top: 0; }
.ab-own__inner { display: grid; gap: var(--space-xl); padding-top: var(--space-xl); border-top: var(--rule-w) solid var(--ink); }
.ab-own__title {
  font-family: var(--serif); font-weight: var(--weight-regular); font-variation-settings: "opsz" 72;
  font-size: var(--text-title); line-height: var(--leading-tight); letter-spacing: var(--track-display);
  max-width: 11ch; margin-left: -0.03em; text-wrap: balance;
}
.ab-own__text { display: grid; gap: var(--space-m); align-content: start; justify-items: start; max-width: 40ch; font-size: 21px; line-height: 1.5; }
@media (min-width: 900px) {
  .ab-own__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); }
}

/* Contact. */
.ab-contact { padding: var(--space-4xl) 0; border-top: var(--rule-w) solid var(--rule); }
.ab-contact .closing__text { margin-bottom: var(--space-xl); }
.ab-reach { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); }
.ab-address { font-size: var(--text-m); font-weight: var(--weight-medium); letter-spacing: -0.01em; user-select: all; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .ab-band { padding: var(--space-2xl) 0; }
  .ab-band__text { font-size: 18px; }
  .ab-ai__head { margin-bottom: var(--space-xl); }
  .ab-split__tool { font-size: 20px; }
  .ab-chip { font-size: 16px; padding: 6px var(--space-xs); }
  .ab-own__text { font-size: 18px; }
  .ab-contact { padding: var(--space-3xl) 0; }
  .ab-reach { flex-direction: column; align-items: flex-start; }
}
