/* About page (about.html). Same system as the other content pages: tokens only, 12-column grid, every length in rem (1rem = 16px at 1440), paragraphs 18px (--fs-link).
   Parts: hero with facts and a wide picture, "how I work" statement, the horizontal scroll section (.ab-hs), the shared dark closing panel.
   The horizontal scroll section is pinned by assets/about.js: vertical scrolling moves the row of cards sideways. Without JavaScript, with reduced motion or when
   there is nothing to move, it is a normal row that scrolls sideways by hand (and with the keyboard). Documented in docs/about-page.md. */

/* masked word rise for the headings of this page (the words are split by assets/animations.js) */
html.anim :is(.ab-statement,.ab-soft-title):not(.is-split){visibility:hidden;}

.editorial .ab-eyebrow{padding-top:0.6em;}

/* 1. hero: label on column 1, title and lead from column 5 (like the contact page), facts on the grid, then a wide picture */
.editorial .ab-hero{padding-top:clamp(2.5rem,6vw,6rem);padding-bottom:var(--block-gap);}
.editorial .ab-hero-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);}
.editorial .ab-hero .ab-eyebrow{grid-column:1 / span 4;grid-row:1;align-self:start;}
.editorial .ab-title{grid-column:5 / span 5;grid-row:1;margin:0;font-family:var(--serif);font-weight:400;font-size:var(--sf-h2);line-height:var(--sf-h2-lh);letter-spacing:var(--sf-ls);text-wrap:balance;}
.editorial .ab-lead{grid-column:5 / span 4;grid-row:2;margin:clamp(1.5rem,2.8vw,2.5rem) 0 0;font-size:var(--fs-link);line-height:1.5;letter-spacing:var(--ls-text);color:var(--muted);}
.editorial .ab-facts{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);row-gap:1.75rem;margin:clamp(3rem,6vw,5.5rem) 0 0;}
.editorial .ab-fact{grid-column:span 2;display:grid;align-content:start;gap:0.625rem;margin:0;}
.editorial .ab-fact:nth-child(odd){grid-column:5 / span 2;}
.editorial .ab-fact:nth-child(even){grid-column:7 / span 2;}
.editorial .ab-fact dt{margin:0;color:var(--muted);}
.editorial .ab-fact dd{margin:0;font-size:var(--fs-link);line-height:1.3;letter-spacing:var(--ls-text);color:var(--ink);}
.editorial .ab-wide{margin:clamp(3rem,6vw,5.5rem) 0 0;border-radius:var(--radius);background:var(--night);aspect-ratio:16 / 7;}
.editorial .ab-wide img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;}

/* 2. how I work: one big statement from column 5, two short paragraphs under it */
.editorial .ab-how{padding-bottom:var(--block-gap);}
.editorial .ab-how-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);}
.editorial .ab-how .ab-eyebrow{grid-column:1 / span 4;grid-row:1;align-self:start;}
/* how I work: label, statement on five columns, the two paragraphs under each other, a button, then the soft skills */
.editorial .ab-statement{grid-column:5 / span 5;grid-row:1;margin:0;font-family:var(--serif);font-weight:400;font-size:var(--sf-h2);line-height:var(--sf-h2-lh);letter-spacing:var(--sf-ls);}
.editorial .ab-how-text{grid-column:5 / span 5;grid-row:2;display:grid;justify-items:start;row-gap:1.5rem;margin-top:clamp(2.5rem,5vw,4.5rem);}
.editorial .ab-how-text p{margin:0;font-size:var(--fs-link);line-height:1.5;letter-spacing:var(--ls-text);color:var(--ink-secondary);}
.editorial .ab-btn{display:inline-flex;align-items:center;gap:0.625rem;min-height:2.5625rem;margin-top:0.5rem;padding:0 1rem;border-radius:62.4375rem;background:var(--ink);color:var(--white);font-family:var(--body);font-size:var(--fs-btn);font-weight:400;letter-spacing:var(--ls-btn);transition:background .28s;}
@media (hover: hover){
.editorial .ab-btn:hover{background:var(--red);}}

/* working together: title and a short text on five columns, the soft skills as a numbered list in serif type (two columns) */
.editorial .ab-soft{padding-block:var(--block-gap) clamp(3rem,6vw,5.5rem);}
.editorial .ab-soft-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);}
.editorial .ab-soft .ab-eyebrow{grid-column:1 / span 4;grid-row:1;align-self:start;}
.editorial .ab-soft-title{grid-column:5 / span 5;grid-row:1;margin:0;font-family:var(--serif);font-weight:400;font-size:var(--sf-h2);line-height:var(--sf-h2-lh);letter-spacing:var(--sf-ls);}
.editorial .ab-soft-text{grid-column:5 / span 5;grid-row:2;margin:clamp(1.5rem,2.8vw,2.5rem) 0 0;font-size:var(--fs-link);line-height:1.5;letter-spacing:var(--ls-text);color:var(--ink-secondary);}
.editorial .ab-skill-list{grid-column:5 / -1;grid-row:3;counter-reset:abs;list-style:none;margin:clamp(3rem,6vw,5.5rem) 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--gutter);row-gap:clamp(1.25rem,2.2vw,2rem);}
.editorial .ab-skill{counter-increment:abs;display:grid;grid-template-columns:2.5rem minmax(0,1fr);align-items:baseline;font-family:var(--serif);font-weight:400;font-size:var(--sf-name);line-height:var(--sf-name-lh);letter-spacing:var(--sf-ls);}
.editorial .ab-skill::before{content:counter(abs,decimal-leading-zero);font-family:var(--body);font-size:var(--fs-meta);line-height:var(--lh-meta);letter-spacing:var(--ls-meta);color:var(--muted);}

/* 3. horizontal scroll, pictures only (a look at the workspace): the section is as tall as the sideways distance plus one screen (set by about.js as --hs-h);
   inside it a screen-high box is pinned and the row of pictures moves left while you scroll down */
.editorial .ab-hs{position:relative;}
.editorial .ab-hs-view{height:min(72svh,38rem);min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;outline-offset:-0.125rem;}
.editorial .ab-hs-view:focus-visible{outline:0.125rem solid var(--red);}
.editorial .ab-hs-track{position:relative;display:flex;align-items:flex-end;gap:var(--gutter);height:100%;margin:0;padding:0 var(--margin);list-style:none;width:max-content;}
.editorial .ab-pic{flex:none;height:100%;margin:0;overflow:hidden;border-radius:var(--radius);background:var(--night);}
.editorial .ab-pic--land{height:76%;}
.editorial .ab-pic img{display:block;height:100%;width:auto;}
/* pinned: the box stays on screen and the row is moved by script */
.editorial .ab-hs.is-pinned{height:var(--hs-h,auto);}
.editorial .ab-hs.is-pinned .ab-hs-stick{position:sticky;top:0;height:100svh;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding-block:clamp(2rem,5vw,4rem);}
.editorial .ab-hs.is-pinned .ab-hs-view{height:100%;overflow:hidden;}
.editorial .ab-hs.is-pinned .ab-hs-track{will-change:transform;}

@media(max-width:999px){
  .editorial .ab-soft .ab-eyebrow,.editorial .ab-soft-title,.editorial .ab-soft-text,.editorial .ab-skill-list{grid-column:1 / -1;}
  .editorial .ab-soft-title{grid-row:2;margin-top:1rem;}
  .editorial .ab-soft-text{grid-row:3;}
  .editorial .ab-skill-list{grid-row:4;}
  .editorial .ab-hero .ab-eyebrow,.editorial .ab-title,.editorial .ab-lead{grid-column:1 / -1;}
  .editorial .ab-title{grid-row:2;margin-top:1rem;}
  .editorial .ab-lead{grid-row:3;grid-column:1 / span 10;}
  .editorial .ab-facts{grid-template-columns:repeat(2,minmax(0,1fr));}
  .editorial .ab-fact,.editorial .ab-fact:nth-child(odd),.editorial .ab-fact:nth-child(even){grid-column:auto;}
  .editorial .ab-wide{aspect-ratio:4 / 3;}
  .editorial .ab-wide img{object-position:30% center;}
  .editorial .ab-how .ab-eyebrow,.editorial .ab-statement,.editorial .ab-how-text{grid-column:1 / -1;}
  .editorial .ab-statement{grid-row:2;margin-top:1rem;}
  .editorial .ab-how-text{grid-row:3;}
}
@media(max-width:699px){
  .editorial .ab-skill-list{grid-template-columns:1fr;}
  .editorial .ab-lead{grid-column:1 / -1;}
}
/* reduced motion: never pinned (about.js also stays off); the row is a plain sideways scroller with snap points */
@media(prefers-reduced-motion:reduce){
  .editorial .ab-hs-view{scroll-snap-type:x proximity;}
}
