/* About: the founder's story in one column at the centre of the page, its sections listed on the left gutter
   and kept in view. Overrides site.css for this page only; every selector starts at main[data-page="about"]. */

/* the reading column: 27em of body text, so the measure stays about 63 characters a line at every size */
main[data-page="about"] { --measure: calc(27 * clamp(1.0625rem, 1.25vw, 1.1875rem)); }

/* the title, centred over the column, and where we started just under it */
main[data-page="about"] .post-head { max-width: 1440px; justify-items: center; text-align: center; }
main[data-page="about"] .thesis-h { max-width: 17ch; font-size: clamp(2.25rem, 4.4vw, 3.75rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.05em; text-wrap: balance; }
main[data-page="about"] .origin { margin-top: 6px; padding: 9px 14px; border: 1px solid rgba(0, 5, 10, 0.22); font-size: 0.875rem; line-height: 1.4; letter-spacing: -0.01em; color: rgba(0, 5, 10, 0.76); text-wrap: balance; }

/* the story between two equal side columns, so it sits on the page's centre; the contents take the left one.
   The space under the story is part of its row, the contents' sticky range, so they stay in view through the last section. */
main[data-page="about"] .post { padding-bottom: 0; }
main[data-page="about"] .post-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(48px, 6vw, 88px); }
main[data-page="about"] .post-body { grid-column: 2; grid-row: 1; max-width: none; margin-top: 0; padding-bottom: var(--sec); }

/* the contents: the legal pages' numbered list, on a hairline rail; the section being read is inked and marked */
main[data-page="about"] .post-toc { grid-column: 1; grid-row: 1; justify-self: start; position: sticky; top: 116px; }
main[data-page="about"] .post-toc ol { display: grid; counter-reset: toc; border-left: 1px solid var(--rule); }
main[data-page="about"] .post-toc a { position: relative; display: flex; gap: 10px; padding: 7px 0 7px 16px; text-decoration: none; color: var(--mist); font-size: 0.9375rem; line-height: 1.4; transition: color 0.2s; }
main[data-page="about"] .post-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font: 500 0.8125rem/1.6 var(--narrow); }
main[data-page="about"] .post-toc a::after { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--void); transform: scaleY(0); transition: transform 0.25s; }
main[data-page="about"] .post-toc a:hover, main[data-page="about"] .post-toc a[aria-current] { color: var(--void); }
main[data-page="about"] .post-toc a[aria-current]::after { transform: none; }

/* what we make: on the story's column, under a rule as wide as the column */
main[data-page="about"] .made .wrap { grid-template-columns: minmax(0, var(--measure)); justify-content: center; gap: 22px; border-top: 0; padding-top: 0; }
main[data-page="about"] .made .wrap::before { content: ""; height: 1px; margin-bottom: clamp(26px, 4vw, 66px); background: var(--rule); }

/* the hardware: the product in its room, edge to edge, always lit. The section grows by --grow below the
   screen-high scene, so the picture scales up and the box sits right of the words; the copy stays centred in
   the scene above. The floor then fades into the paper over --fade on an eased curve (a cosine, sampled every
   tenth), flat at both ends, so no band edge shows. A link to #hardware lands with the section at the top,
   under the bar, cancelling the page's scroll-padding, so the bar turns white over the dark room. */
main[data-page="about"] .peek { --grow: clamp(120px, 14vw, 220px); --fade: clamp(260px, 26vw, 380px);
  --fade-out: linear-gradient(#000 calc(100% - var(--fade)), rgba(0, 0, 0, 0.976) calc(100% - var(--fade) * 0.9), rgba(0, 0, 0, 0.905) calc(100% - var(--fade) * 0.8), rgba(0, 0, 0, 0.794) calc(100% - var(--fade) * 0.7), rgba(0, 0, 0, 0.655) calc(100% - var(--fade) * 0.6), rgba(0, 0, 0, 0.5) calc(100% - var(--fade) * 0.5), rgba(0, 0, 0, 0.345) calc(100% - var(--fade) * 0.4), rgba(0, 0, 0, 0.206) calc(100% - var(--fade) * 0.3), rgba(0, 0, 0, 0.095) calc(100% - var(--fade) * 0.2), rgba(0, 0, 0, 0.024) calc(100% - var(--fade) * 0.1), transparent);
  -webkit-mask-image: var(--fade-out); mask-image: var(--fade-out);
  min-height: calc(clamp(640px, 100svh, 980px) + var(--grow)); margin-bottom: clamp(24px, 4vw, 56px); scroll-margin-top: -84px; }
main[data-page="about"] .peek > .bd { object-position: 0% 50%; }
main[data-page="about"] .peek .wrap { padding-bottom: calc(var(--sec) + var(--grow)); }

/* narrower screens: the contents go, and the story takes the width */
@media (max-width: 999px) {
  main[data-page="about"] .post-main { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
  main[data-page="about"] .post-toc { display: none; }
  main[data-page="about"] .post-body { grid-column: 1; }
}
@media (max-width: 899px) {
  /* on phones, a 4:5 crop around the product so it reads at a useful size; the scene is the picture and
     the copy under it, and the fade runs below the copy */
  main[data-page="about"] .peek > .bd { aspect-ratio: 4 / 5; object-position: 43% 50%; }
  main[data-page="about"] .peek::after { height: 125vw; }
  main[data-page="about"] .peek { --grow: 0px; --fade: clamp(200px, 52vw, 300px); min-height: 0; }
  main[data-page="about"] .peek .wrap { padding-bottom: calc(var(--fade) + 24px); }
}
@media (prefers-reduced-motion: reduce) {
  main[data-page="about"] .post-toc a, main[data-page="about"] .post-toc a::after { transition: none; }
}
