/* About. The bench photograph with the claim on a plate, the two founders side by side under one hairline, the
   reception photograph with how we work, then one large sentence and the company facts. */

/* ---------- 1. the makers ---------- */
/* The kit gives a scene a 16 by 9 shape, which wins over inset 0 inside a band. Here the scene fills the band. */
.a-top .k-scene { aspect-ratio: auto; }
.a-top .k-cam { transform-origin: 50% 50%; animation: a-push 1.2s var(--out) both; }
.a-top .k-band-over { padding-top: clamp(96px, 7.4vw, 124px); }
.a-plate { width: min(100%, clamp(340px, 31vw, 520px)); animation: a-sheet 0.7s var(--out) 0.2s both; }
.a-plate h1 { font-size: clamp(27px, 2.7vw, 46px); }
@keyframes a-push { from { scale: 1.07; } }
@keyframes a-sheet { from { opacity: 0; translate: 0 44px; } }
/* A mark with script off would be a button that does nothing. */
html:not(.js) .a-top .k-mark { display: none; }

/* ---------- 2. the founders ---------- */
.a-pair { --split: minmax(0, 1fr) minmax(0, 1fr); }
.a-founder { display: grid; grid-template-columns: clamp(150px, 15vw, 250px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(16px, 2vw, 30px); align-content: start; }
.a-portrait { --ar: 15 / 19; grid-area: 1 / 1 / 4 / 2; align-self: start; }
.a-role, .a-name, .a-first { grid-column: 2; }
/* Two lines of room, so both names start on the same line when one role wraps. */
.a-role { align-content: start; min-height: 3em; padding-top: 4px; }
.a-name { margin-block: 12px 22px; font-size: clamp(30px, 3vw, 52px); }
.a-first { align-self: start; }
.a-rest, .a-built { grid-column: 1 / -1; }
.a-rest { display: grid; gap: 14px; margin-top: clamp(28px, 3vw, 44px); }
.a-built { display: grid; gap: 10px; margin-top: clamp(28px, 3vw, 44px); }
/* The portrait window opens with a wipe from the top when it arrives. */
.a-portrait.will-arrive { opacity: 1; translate: none; clip-path: inset(0 0 100% 0); }
.a-portrait.will-arrive.is-in { clip-path: inset(0); transition: clip-path 0.8s var(--out); }

/* On a phone the founders are two rows, and each opens as a sheet. page-about.js builds both from the articles. */
.a-rows { --cols: minmax(0, 1fr) auto; --cols-s: minmax(0, 1fr) auto; display: none; }
.a-rows .k-row { width: 100%; min-height: 60px; align-items: center; text-align: left; }
.a-rows .k-row b { font-size: 19px; }
.a-rows .k-row[aria-expanded="true"] { background: var(--raise); }
/* The kit's card is a grid. In a sheet with a height limit, a grid squeezes any row whose item clips itself, such
   as the picture frame or the row of tags, to nothing. A column that never shrinks keeps each part its height. */
.a-sheet .k-pop-body { display: flex; flex-direction: column; }
.a-sheet .k-pop-body > * { flex: none; }
.a-sheet .k-pic { --ar: 9 / 5; --sq-r: 16px; }
.a-sheet .k-pop-text { display: grid; gap: 10px; }
.a-sheet .k-tags { flex-wrap: nowrap; margin-inline: -18px; padding-inline: 18px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.a-sheet .k-tags::-webkit-scrollbar { display: none; }
.a-sheet .k-tag { flex: none; min-height: 44px; padding-inline: 14px; font-size: 13px; }

/* ---------- 3. how we work ---------- */
.a-work .k-band-pic > img { scale: 1.02; transition: translate 0.7s var(--out); }
.a-work-plate { width: min(100%, clamp(360px, 37vw, 600px)); }
.a-days { margin-block: 4px; }
.a-days .k-row { position: relative; align-items: center; }
.a-days button { min-height: 28px; text-align: left; }
/* The whole row is the target, not only the words. */
.a-days button::after { content: ''; position: absolute; inset: 0; }

/* ---------- 4. who answers ---------- */
.a-answer .wrap { display: grid; gap: clamp(20px, 2.2vw, 32px); }
.a-sentence { max-width: 17.6em; font-size: clamp(31px, 3.6vw, 66px); line-height: 1.02; text-wrap: pretty; }
.a-end { --split: minmax(0, 7fr) minmax(0, 5fr); margin-top: clamp(48px, 9vw, 150px); align-items: end; }
.a-links .k-row { min-height: 52px; align-items: center; }
.a-links .k-row i { font-style: normal; transition: translate 0.4s var(--out); }
.a-links .k-row:hover i { translate: 4px 0; }
.a-company { --gap: 14px; }
.a-company .k-lede a { text-decoration-color: var(--faint); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.a-company .k-actions { margin-top: 12px; }

@media (max-width: 1099px) {
  .a-founder { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .a-portrait { grid-area: auto; width: min(100%, 220px); margin-bottom: 20px; }
  .a-role, .a-name, .a-first { grid-column: auto; }
}

/* Tall screens. The same test the kit uses for a sheet from the bottom. */
@media (max-width: 699px), (max-aspect-ratio: 41/50) {
  .a-top .k-mark { display: none; }
  .a-top .k-band-over { padding-top: 22px; }
  .a-plate, .a-work-plate { width: auto; }
  .a-plate h1 { font-size: clamp(30px, 8vw, 44px); }
  .a-founders.is-rows .a-pair { display: none; }
  .a-founders.is-rows .a-rows { display: grid; }
  .a-days .k-row { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .a-top .k-cam, .a-plate { animation: none; }
  .a-work .k-band-pic > img { transition: none; }
}
