/* About: page-specific styles on top of css/site.css. Everything reads without the script. */

/* ---------- first screen: the word About is the stage, one clip sits in the line ---------- */
.ab-hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 14px;
  padding: calc(var(--nav) + 4px) var(--m) 24px;
}
.ab-hero .hl { align-self: center; --f: min(26vw, calc(100svh - 250px)); }
.ab-hero .ab-l { --rest: 64; --tight: 70; }
.ab-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 4vw; animation: fade .9s ease .5s backwards; }
.ab-lede { max-width: 26em; font-size: clamp(20px, 2.15vw, 34px); line-height: 1.16; font-weight: 600; font-stretch: 88%; }
.role { margin: 0; }

/* ---------- the craft sentence: scroll reads it in, word by word ---------- */
.wr__stage { display: flex; flex-direction: column; justify-content: center; padding: var(--s6) var(--m) 0; }
.wr__text {
  margin-top: var(--s2); font-size: clamp(44px, 9.6vw, 176px); line-height: .88; font-weight: 900;
  font-variation-settings: "wght" 900, "wdth" 62; text-transform: uppercase; text-wrap: balance;
}
.wr__text i { font-style: normal; color: var(--y); }
.wd { display: inline-block; opacity: calc(.46 + .54 * var(--wp, 1)); translate: 0 calc((1 - var(--wp, 1)) * .12em); }
@media (prefers-reduced-motion: no-preference) {
  .js .wr { height: 270svh; }
  .js .wr__stage { position: sticky; top: 0; height: 100svh; padding-top: var(--nav); padding-bottom: 0; }
}

/* ---------- bio: measured text beside one real clip ---------- */
.ab-bio { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) calc(var(--m) * 3); align-items: start; }
.ab-bio .display { margin-bottom: var(--s4); }
.ab-lead { max-width: 34em; font-size: clamp(18px, 1.75vw, 26px); line-height: 1.42; }
.ab-langs { max-width: 34em; margin-top: var(--s3); color: var(--dim); }
.clipbox {
  position: sticky; top: calc(var(--nav) + 24px);
  height: min(78svh, 780px); aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--panel);
}
.clipbox .win { inset: 0; width: 100%; height: 100%; border-radius: 0; }

/* ---------- journey ---------- */
.ab-journey .opener { position: sticky; top: calc(var(--nav) + 24px); margin: 0; }
.ab-big { font-size: clamp(60px, 13vw, 220px); }
.ab-journey .trow { grid-template-columns: 11.5em 1fr; padding-bottom: var(--s4); }
.ab-journey .trow__when { font-size: clamp(22px, 2.2vw, 36px); }
.ab-journey .trow h3 { font-size: clamp(22px, 2.15vw, 34px); max-width: 20em; }

/* ---------- skills: large type, short lines ---------- */
.skills { display: grid; gap: var(--s5); }
.skill { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s3) calc(var(--m) * 2); align-items: start; }
.skill h3, .skill-tools h3 {
  font-size: clamp(34px, 4.6vw, 80px); line-height: .86; font-weight: 900; font-stretch: 100%;
  font-variation-settings: "wght" 900, "wdth" 62; text-transform: uppercase; text-wrap: balance;
}
.skill li { font-size: clamp(22px, 2.5vw, 40px); line-height: 1.12; font-weight: 650; font-stretch: 88%; padding: .07em 0; }
.skill:not(.skill--lead) ul { columns: 2; column-gap: var(--m); }
.skill li { break-inside: avoid; }
.skill--lead { grid-template-columns: 1fr; gap: var(--s4); padding-bottom: var(--s4); }
.skill--lead h3 { font-size: clamp(52px, 11.2vw, 210px); line-height: .82; }
.skill--lead ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: .1em var(--m); }
.skill--lead li { font-size: clamp(22px, 3.1vw, 52px); }

/* ---------- tools and platforms: slow rows of large type ---------- */
.skill-tools { margin: var(--s6) calc(-1 * var(--m)) 0; }
.skill-tools header { margin: 0 var(--m) var(--s4); }
.drift__row { overflow: hidden; margin-inline: calc(-1 * var(--m)); }
.drift__row ul { display: flex; flex-wrap: wrap; gap: 0 .5em; padding: 0 var(--m); }
.drift__row li {
  display: flex; align-items: center; gap: .5em;
  font-size: clamp(40px, 8vw, 132px); line-height: 1; font-weight: 900; text-transform: uppercase;
  font-variation-settings: "wght" 900, "wdth" 62; padding-bottom: .04em;
}
.drift__row li::after { content: ""; flex: none; width: .12em; height: .12em; border-radius: 50%; background: var(--dim); }
.drift__row li:last-child::after { display: none; }
.drift__row.is-drift { width: max-content; max-width: none; margin-inline: 0; overflow: visible; display: flex; will-change: transform; }
.drift__row.is-drift ul { flex: none; flex-wrap: nowrap; padding: 0 .5em 0 0; }
.drift__row.is-drift li:last-child::after { display: block; margin-left: 0; }
.drift__row.is-drift li { white-space: nowrap; }
.skill-tools { overflow-x: clip; }

/* ---------- ledgers: the table row, wider ---------- */
.rows--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 calc(var(--m) * 3); }
.rows .row { grid-template-columns: var(--wc, 5.2em) 1fr; padding: .7em 0 .9em; }
.rows--wide .row { --wc: 9em; }
.row__when { font-size: clamp(20px, 1.8vw, 28px); }
.row__what h3 { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.2; font-weight: 650; }
.row__what h3 + p { margin-top: .3em; }
.row__what p + p, .row__what p + p.row__note { color: var(--dim); }
.row__note { color: var(--dim); }
.row--lead { grid-column: 1 / -1; padding-bottom: var(--s4); }
.row--lead .row__what h3 { font-size: clamp(26px, 3.4vw, 56px); line-height: .95; font-weight: 900; font-variation-settings: "wght" 900, "wdth" 62; text-transform: uppercase; max-width: 16em; }
.row--lead .row__when { font-size: clamp(26px, 3.4vw, 56px); line-height: .95; }
.row--lead .logline { margin: var(--s3) 0; font-size: clamp(20px, 2.3vw, 36px); line-height: 1.2; font-weight: 600; font-stretch: 88%; }
.section-note { margin-top: var(--s4); }
.ab-bio ~ .sec .split > .rows, .split > .rows { align-content: start; }
.subhead { font-size: clamp(22px, 2.15vw, 34px); }

/* ---------- footer: the disclosure line ---------- */
.footer__note { flex: 0 0 100%; max-width: 62em; margin: 0; }

/* ---------- phone and tablet ---------- */
@media (max-width: 820px) {
  .ab-hero { padding-bottom: 18px; }
  .ab-hero .hl { --f: 28vw; gap: 8px; --bh: clamp(120px, 34svh, 300px); }
  .ab-hero .ln { flex-wrap: wrap; justify-content: space-between; gap: 8px .2em; }
  .ab-hero .slot { flex: 0 0 calc(100% + 2 * var(--m)); margin-inline: calc(-1 * var(--m)); order: 9; height: var(--bh); min-width: 0; }
  .ab-hero .win { animation: open .95s var(--ease) .25s backwards; }
  .ab-lede { font-size: 20px; }
  .wr__text { font-size: 13.4vw; }
  .ab-bio { grid-template-columns: 1fr; gap: var(--s4); }
  .clipbox { position: relative; top: 0; height: auto; width: min(100%, 360px); }
  .split { gap: var(--s4); }
  .ab-journey .opener { position: static; }
  .ab-journey .trow { grid-template-columns: 7em 1fr; gap: 12px; }
  .skill { grid-template-columns: 1fr; }
  .skill--lead ul { grid-template-columns: 1fr; }
  .skill:not(.skill--lead) ul { columns: 1; }
  .skill h3, .skill-tools h3 { font-size: clamp(34px, 11vw, 56px); }
  .skill--lead h3 { font-size: 15.5vw; }
  .drift__row li { font-size: 17vw; }
  .rows--2 { grid-template-columns: 1fr; }
  .rows--wide .row, .rows .row { --wc: 6.4em; }
  .rows--wide .row { --wc: 7.6em; }
}
@media (max-width: 1099.98px) and (min-width: 821px) {
  .ab-journey .trow { grid-template-columns: 8em 1fr; }
}
