@font-face { font-family:'Saira Extra Condensed'; src:url('assets/fonts/SairaExtraCondensed-SemiBold.woff') format('woff'); font-weight:600; font-style:normal; font-display:swap; ascent-override:92%; descent-override:26%; line-gap-override:0%; }
@font-face { font-family:'Saira Extra Condensed'; src:url('assets/fonts/SairaExtraCondensed-Bold.woff') format('woff'); font-weight:700 900; font-style:normal; font-display:swap; ascent-override:92%; descent-override:26%; line-gap-override:0%; }
/* Portfolio 08: one canonical stylesheet, three display roles, regular/bold reading. */
@font-face {
  font-family:'Signal Archivo';
  src:url('assets/fonts/Archivo-Latin.woff2') format('woff2');
  font-style:normal;
  font-weight:100 900;
  font-stretch:62% 125%;
  font-display:swap;
}
:root {
  --paper:#fff; --ink:#080808; --muted:#515151; --rule:#b6b6b6; --panel:#f0f0f0;
  --blue:#0000e1; --cyan:#07fbf0; --yellow:#e1fc00; --magenta:#d100f7; --green:#07ff01; --red:#c90000;
  --mono:'Courier New',Courier,monospace;
  --display:'Saira Extra Condensed','Arial Narrow',Arial,sans-serif;
  /* Layout programme, pass 2 (see guides/visual.md). One 12-column grid, four alignment lines:
     A = column 1 (headings, labels, ladders), B = column 5 (reading text, tables),
     M = column 7 (the second of two equal text columns), C = column 9 (third card, hero copy, signal band).
     Density first: the Home first screen must show name, role, What I do, both buttons and the photo at 1440×900. */
  --display-wdth:100; --display-wght:700;
  /* Pass 3 (Home below the first screen): type on line A, signal from line C to the right edge,
     every section opened by a 2px rule. Chapter titles are the largest type below the name. */
  --heading-chapter:clamp(52px,6.6vw,96px);
  --rule-strong:2px;
  --lead:18px;
  --heading-name:clamp(40px,5vw,76px);
  --heading-display:clamp(60px,12vw,196px);
  --heading-page:clamp(44px,5.6vw,88px);
  --heading-section:clamp(32px,3.4vw,48px);
  --heading-lead:clamp(24px,2.2vw,32px);
  --heading-item:clamp(20px,calc(10px + 1vw),26px);
  --reading:17px; --list:16px; --metadata:14px;
  /* Ladder steps: one plane per role, each step higher than the last. */
  --step-base:96px; --step-rise:36px;
  --margin:clamp(24px,7.5vw,120px);
  --max:1296px;
  --edge:max(var(--margin),calc((100vw - var(--max))/2));
  --gutter:24px;
  --unit:calc((100% + var(--gutter))/12);
  --space-1:8px; --space-2:24px; --space-3:clamp(32px,3.4vw,48px); --space-4:clamp(56px,6.4vw,96px);
  --at-full:1/-1; --at-label:1/5; --at-text:5/11; --at-wide:5/-1; --at-aside:9/-1;
  --tab-h:12px; --tab-div:6;
  --indent:calc(4 * var(--unit));
}
* { box-sizing:border-box; }
html { scroll-padding-top:100px; }
body { margin:0; background:var(--paper); color:var(--ink); isolation:isolate; font:400 var(--reading)/1.6 var(--mono); letter-spacing:-.015em; -webkit-font-smoothing:antialiased; }
body { position:relative; min-height:100vh; }
/* Paper grain covers the whole document, so it never shows a seam where the first screen ends. */
body::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:url('assets/signal/grain.svg') repeat; opacity:.31; }
h1,h2,h3,p,figure,blockquote,dl,dd { margin:0; }
h1,h2,h3,.film-title,.other-name,.village-scale-number,.role-overview-action {
  font-family:var(--display); font-weight:var(--display-wght); font-stretch:calc(var(--display-wdth) * 1%); font-variation-settings:'wght' var(--display-wght),'wdth' var(--display-wdth);
  font-optical-sizing:none; font-synthesis:none; letter-spacing:-.005em; line-height:.98;
}
h1 { font-size:var(--heading-page); line-height:.92; }
h2 { font-size:var(--heading-section); }
h3,.film-title,.other-name { font-size:var(--heading-item); line-height:1.05; letter-spacing:0; }
/* The grid: any block that needs side-by-side placement uses the same 12 columns. */
.hero,.chapter-head,.chapter-introduction,.chapter-intro,.other-layout,.footer-main,.editorial-grid>div,.cv-row,.about-intro,.freelance-talks,.project-copy,.case-main {
  display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--gutter);
}
/* Signal tab: a 2-column fragment hanging from the top edge of a section, flush with the grid's right edge. */
.related-projects { position:relative; }
.other::before,.site-footer::before,.dark::before,.related-projects::before,.subhead::before {
  content:''; position:absolute; top:0; right:var(--edge); height:var(--tab-h); pointer-events:none;
  width:calc((100% - 2 * var(--edge) + var(--gutter)) / var(--tab-div) - var(--gutter));
  background:var(--cyan) url('assets/signal/signal-strip-clean.svg') center/cover;
}
h1,h2,h3 { text-wrap:pretty; word-break:normal; overflow-wrap:normal; }
a { color:inherit; text-decoration:none; text-underline-offset:4px; }
a:hover { text-decoration:underline; }
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
button { border-radius:0; cursor:pointer; color:inherit; font:700 var(--reading)/1.4 var(--mono); letter-spacing:inherit; }
button:disabled { cursor:default; }
button,input,a,summary { touch-action:manipulation; }
img { display:block; max-width:100%; height:auto; }
strong,b { font-weight:700; }
::selection { background:var(--yellow); color:var(--ink); }
.wrap { padding-inline:var(--edge); }
.mono,.eyebrow,.breadcrumb,.chapter-period,.article-meta,.reference-source,.other-role,.other-foot,.footer-meta,.dates,.period,.cv-note { font:400 var(--metadata)/1.5 var(--mono); letter-spacing:-.015em; }
.eyebrow { display:block; }
.muted,.chapter-period { color:var(--muted); }
.pink { color:var(--blue); }
.skip { position:fixed; top:-100px; left:20px; z-index:100; background:white; padding:12px; }
.skip:focus { top:12px; }
.top-signal { position:relative; height:8px; overflow:hidden; background:var(--ink) url('assets/signal/signal-strip-clean.svg') center 23%/100% auto no-repeat; }
.top-signal::after { content:''; position:absolute; inset:0; pointer-events:none; opacity:.4; mix-blend-mode:screen; background:url('assets/signal/noise-tile.png') 0 0/192px; animation:signal-grain 2.4s steps(4,end) infinite; }
@keyframes signal-grain { 0%,100%{background-position:0 0}25%{background-position:43px 17px}50%{background-position:11px 59px}75%{background-position:61px 31px} }
.site-header { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:flex-end; padding:12px var(--edge); background:white; border-bottom:1px solid var(--ink); }
.site-header nav { display:flex; gap:10px; align-items:center; font-weight:700; }
.site-header nav a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:7px 16px; border:1px solid var(--rule); }
.site-header nav a:nth-child(1) { --nav-color:var(--yellow); }
.site-header nav a:nth-child(2) { --nav-color:var(--cyan); }
.site-header nav a:nth-child(3) { --nav-color:var(--magenta); }
.site-header nav a:hover,.site-header nav a:focus-visible,.site-header nav a[aria-current=page] { background:var(--nav-color); color:var(--ink); border-color:var(--ink); text-decoration:none; }
.link { display:inline-flex; align-items:center; justify-content:space-between; gap:16px; min-height:44px; padding:8px 0; border-bottom:1px solid currentColor; font-weight:700; }
.link span,.article-title span,.reference-title span { font-family:var(--mono); font-weight:400; font-variation-settings:normal; letter-spacing:-.015em; }
.article-title span,.reference-title span { color:var(--blue); }

/* First screen. Name as a label with the colour bars beside it; photo on A (cols 1–8), copy on C (cols 9–12).
   The photo takes the height of the copy column, so nothing is left empty under the buttons. */
.hero { padding-block:var(--space-3) var(--space-3); row-gap:var(--space-2); grid-template-rows:auto auto; }
.hero-type { grid-column:1/9; grid-row:1; align-self:end; }
/* Capitals read wider than lower case at the same axis value, so the name sits at the narrowest width. */
.hero-type h1 { display:flex; flex-wrap:wrap; gap:0 .22em; font-size:var(--heading-name); line-height:.84; text-transform:uppercase; font-stretch:62%; font-variation-settings:'wght' var(--display-wght),'wdth' 62; letter-spacing:0; }
.hero-type h1 span { max-width:100%; }
/* The one large signal fragment: bars on line C, sitting on the name's baseline, cropped by the right edge of the screen. */
.signal-band { position:relative; grid-column:var(--at-aside); grid-row:1; align-self:end; height:calc(var(--heading-name) * .7); margin-bottom:calc(var(--heading-name) * .06); margin-right:calc(-1 * var(--edge)); background:var(--ink) url('assets/signal/signal-strip-clean.svg') left center/cover no-repeat; }
.signal-band::after { content:''; position:absolute; inset:0; pointer-events:none; background:url('assets/signal/noise-tile.png') repeat; opacity:.29; mix-blend-mode:screen; }
.hero-photo { position:relative; grid-column:1/9; grid-row:2; min-height:360px; background:#dedede; }
.hero-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 55%; }
.hero-copy { grid-column:var(--at-aside); grid-row:2; display:flex; flex-direction:column; align-items:start; gap:var(--space-2); min-width:0; }
.hero-role { font-size:var(--heading-lead); line-height:1.1; text-wrap:pretty; }
.hero-do { align-self:stretch; }
.hero-do-title { font-size:15px; line-height:1; letter-spacing:.06em; text-transform:uppercase; padding-bottom:10px; border-bottom:1px solid var(--ink); }
/* Six bullets, six bar colours in test-card order: the band above, read as points down the list. */
.do-list { margin:0; padding:0; list-style:none; font-size:var(--list); line-height:1.4; }
.do-list li { position:relative; padding:7px 0 7px 26px; border-bottom:1px solid var(--rule); }
.do-list li::before { content:''; position:absolute; left:0; top:calc(7px + .7em - 5px); width:10px; height:10px; background:var(--bar,var(--ink)); }
.do-list li:nth-child(1) { --bar:var(--yellow); }
.do-list li:nth-child(2) { --bar:var(--cyan); }
.do-list li:nth-child(3) { --bar:var(--green); }
.do-list li:nth-child(4) { --bar:var(--magenta); }
.do-list li:nth-child(5) { --bar:var(--red); }
.do-list li:nth-child(6) { --bar:var(--blue); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
/* Calls to action: solid and outlined squares, the same language as the navigation. Instant colour change, no motion. */
.hero-actions .link { gap:14px; padding:10px 18px; border:2px solid var(--ink); }
.hero-actions .link:first-child { background:var(--ink); color:var(--paper); }
.hero-actions .link:hover { background:var(--yellow); color:var(--ink); text-decoration:none; }

/* Shared by the inner chapter pages: organisation context and personal text as two equal columns on A and M. */
.chapter-introduction,.chapter-intro { align-items:start; row-gap:var(--space-2); }
.organisation-context { grid-column:1/7; padding-right:var(--gutter); max-width:62ch; }
.chapter-role { grid-column:7/-1; min-width:0; max-width:62ch; }
.chapter-role p+p { margin-top:var(--space-2); }
.career-growth { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:var(--space-2); font-weight:700; }
.career-step { display:inline-block; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.career-arrow { display:inline; color:inherit; }
.section-index { margin-bottom:var(--space-2); }
.heading-tail { display:inline-block; }
.reading-header { margin-bottom:var(--space-2); }

/* ---- Home below the first screen (pass 3) ----
   Programme: every section opens with a 2px ink rule and its title on line A; signal fragments sit from
   line C to the right edge of the screen or at a crossing of rules, never under reading text. */
main { overflow-x:clip; }
.home .capabilities,.home .chapter-preview,.home .freelance-section { padding-block:var(--space-3) var(--space-4); border-top:var(--rule-strong) solid var(--ink); }
.sec-head { margin-bottom:var(--space-3); }
.sec-head h2 { font-size:var(--heading-page); line-height:.92; }
.sub-head { margin-bottom:var(--space-2); padding-top:14px; border-top:1px solid var(--ink); }
.sub-head h3 { font-size:var(--heading-lead); line-height:1; }

/* What I bring: four competences as quadrants. The cross of rules and the calibration disc at its centre
   are the test card's own centre mark, set on the grid: vertical rule in the middle gutter, horizontal rule
   between the rows. Text sits on A and M and keeps clear of the disc by the quadrant padding. */
.cap-field { --disc:88px; --clear:calc(var(--disc) / 2 + 16px); position:relative; }
.cap-list { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--gutter); margin:0; padding:0; list-style:none; counter-reset:cap; }
.cap-list::before { content:''; position:absolute; top:0; bottom:0; left:50%; width:1px; background:var(--ink); }
.cap-item { counter-increment:cap; min-width:0; display:flex; flex-direction:column; gap:10px; padding:0 var(--space-2) var(--clear) 0; }
.cap-item:nth-child(2n) { padding-left:0; }
.cap-item:nth-child(n+3) { padding-top:var(--clear); padding-bottom:0; border-top:1px solid var(--ink); }
.cap-item:nth-child(4) { position:relative; margin-left:calc(-1 * var(--gutter)); padding-left:var(--gutter); }
.cap-item::before { content:counter(cap,decimal-leading-zero); font:400 var(--metadata)/1 var(--mono); }
.cap-item h3 { font-size:var(--heading-lead); line-height:1; }
.cap-item p { max-width:44ch; }
.cap-item:nth-child(4)::after { content:''; position:absolute; top:calc(-1 * var(--disc) / 2); left:calc(var(--gutter) / 2 - var(--disc) / 2); width:var(--disc); height:var(--disc); background:url('assets/signal/disc.svg') center/contain no-repeat; pointer-events:none; }

/* Chapter opener: dates and the chapter title on A, the career ladder rising from line C (three roles) or line B
   (four roles) to the right edge of the screen, both standing on one 2px ground line. */
.chapter-head { position:relative; align-items:end; margin-bottom:var(--space-3); }
.chapter-head .chapter-kicker { grid-column:1/5; grid-row:1; margin:0 0 10px; color:var(--muted); }
.chapter-head h2 { grid-column:1/5; grid-row:2; padding-bottom:.2em; font-size:var(--heading-chapter); line-height:.86; white-space:nowrap; }
.chapter-head::after { content:''; grid-column:1/-1; grid-row:3; height:var(--rule-strong); margin-right:calc(-1 * var(--edge)); background:var(--ink); }
.ladder { --cols:6; grid-column:7/-1; grid-row:1/3; display:grid; grid-template-columns:repeat(var(--cols),minmax(0,1fr)); column-gap:var(--gutter); align-items:end; margin:0; padding:0; list-style:none; }
.ladder:has(>:nth-child(4)) { --cols:8; grid-column:5/-1; }
.ladder-step { --i:0; grid-column:span 2; margin-right:calc(-1 * var(--gutter)); min-width:0; display:flex; flex-direction:column; gap:6px; height:calc(var(--step-base) + var(--i) * var(--step-rise)); padding:12px 14px; background:var(--step,var(--panel)); color:var(--ink); }
/* The newest role runs off the right edge, like the bars on the first screen. */
.ladder-step:last-child { margin-right:calc(-1 * var(--edge)); }
.ladder-step:nth-child(2) { --i:1; } .ladder-step:nth-child(3) { --i:2; } .ladder-step:nth-child(4) { --i:3; }
.ladder-step:nth-last-child(1) { --step:var(--blue); color:var(--paper); }
.ladder-step:nth-last-child(2) { --step:var(--magenta); }
.ladder-step:nth-last-child(3) { --step:var(--cyan); }
.ladder-step:nth-last-child(4) { --step:var(--yellow); }
.ladder-dates { font:400 13px/1.3 var(--mono); }
.ladder-role { font-family:var(--display); font-weight:var(--display-wght); font-stretch:calc(var(--display-wdth) * 1%); font-variation-settings:'wght' var(--display-wght),'wdth' var(--display-wdth); font-size:clamp(17px,calc(6px + 1vw),20px); line-height:1.02; letter-spacing:0; text-wrap:pretty; }

/* Introduction: organisation context on rail A, Pavel's own text on line B. Same size and colour (Pavel's rule: no small-then-large). */
.home .chapter-introduction { align-items:start; row-gap:var(--space-2); }
.home .organisation-context { grid-column:1/5; padding-right:var(--gutter); font-size:var(--lead); line-height:1.55; max-width:none; }
.home .home-culttech-intro,.home .home-village-intro { grid-column:5/12; max-width:64ch; font-size:var(--lead); line-height:1.55; }
.home .home-culttech-intro p+p { margin-top:var(--space-2); }
.role-overview-link { margin-top:var(--space-2); }
.home-project-section,.home-village-stories { margin-top:var(--space-3); }

/* Selected projects: one large plane and five small ones while all are closed (scale contrast, the flagship first);
   as soon as one opens, the grid returns to equal cards so the reading panel takes a full row. */
@media(min-width:1050px) {
  .home-project-grid>.project:first-child { grid-column:span 2; grid-row:span 2; }
  .home-project-grid:has(>.project[open])>.project:first-child:not([open]) { grid-column:auto; grid-row:auto; }
  .home-project-grid>.project:first-child[open] { grid-column:1/-1; grid-row:auto; }
  .home-project-grid:not(:has(>.project[open]))>.project:first-child>summary { display:flex; flex-direction:column; height:100%; }
  .home-project-grid:not(:has(>.project[open]))>.project:first-child .project-cover { flex:1 1 auto; min-height:0; }
  .home-project-grid:not(:has(>.project[open]))>.project:first-child .project-cover-image { position:absolute; inset:0; height:100%; aspect-ratio:auto; }
  .home-project-grid:not(:has(>.project[open]))>.project:first-child .project-summary h3 { font-size:var(--heading-lead); }
}

/* External references: one footnote line under the projects, text on A, the switch on the right. */
.home .culttech-references { padding:14px 0 0; margin-top:var(--space-3); border-top:1px solid var(--rule); }
.home .culttech-references>* { margin-left:0; }
.home .external-context { max-width:62ch; font-size:var(--metadata); }
.home .external-references { margin-top:12px; }

/* Native disclosures keep the selected cover compact when opened. */
.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-2) var(--gutter); }
.project { min-width:0; border-bottom:1px solid var(--rule); scroll-margin-top:96px; }
.project>summary { position:relative; cursor:pointer; list-style:none; }
.project>summary::-webkit-details-marker { display:none; }
.project-cover { position:relative; overflow:hidden; background:#dedede; }
.project-cover-image { width:100%; aspect-ratio:3/2; object-fit:cover; }
#project-viennaup .project-cover-image { object-position:50% 32%; }
.project-sign { position:absolute; right:0; bottom:0; display:grid; place-items:center; width:44px; height:44px; background:var(--paper); color:var(--ink); font:400 27px/1 var(--mono); }
.project>summary:hover .project-sign { background:var(--yellow); }
.project-summary { padding:var(--space-2) 0; }
.project-summary h2,.project-summary h3 { margin-bottom:var(--space-1); font-size:var(--heading-item); line-height:1.05; letter-spacing:0; }
.project[open] { grid-column:1/-1; padding-bottom:var(--space-2); }
/* Opened card: thumbnail on the label rail (cols 1–2), title on line B, on the same 12 columns. */
.project[open]>summary { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--gutter); align-items:center; }
.project[open] .project-cover { grid-column:1/3; }
.project[open] .project-summary { grid-column:var(--at-wide); }
.project[open] .project-cover-image { height:120px; aspect-ratio:auto; }
.project[open] .project-summary { padding:12px 0; }
.project[open] .project-sign { background:var(--yellow); font-size:0; }
.project[open] .project-sign::after { content:'−'; font:400 27px/1 var(--mono); }
.project-panel { margin-top:var(--space-2); padding-top:var(--space-2); border-top:1px solid var(--rule); }
.project-copy { row-gap:var(--space-2); }
.project-copy>div { grid-column:var(--at-label); min-width:0; padding-right:var(--gutter); }
.project-copy>div+div { grid-column:var(--at-text); padding-right:0; }
.project-copy p { max-width:64ch; }
.project-copy-label { font-weight:700; margin-bottom:var(--space-1); }
.project-panel-footer { display:flex; justify-content:flex-end; border-top:1px solid var(--rule); margin-top:var(--space-2); padding-top:16px; }
.project-close-bottom,.print-button { min-height:44px; border:1px solid currentColor; background:transparent; padding:10px 16px; }
.project-close-bottom:hover,.print-button:hover { background:var(--ink); color:white; }
.project-section { padding-block:var(--space-3) var(--space-4); border-top:1px solid var(--ink); }
.film-module { max-width:calc(6 * var(--unit) - var(--gutter)); margin:var(--space-3) 0 0 var(--indent); }
.film-frame { position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:18px; width:100%; aspect-ratio:16/9; padding:24px; background:var(--blue); color:white; }
.film-title { max-width:30ch; }
.film-frame iframe,.video-cover iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.play-film { align-self:start; min-height:44px; background:var(--ink); border:1px solid var(--ink); color:white; padding:10px 14px; }
.play-film:hover { background:var(--yellow); border-color:var(--yellow); color:var(--ink); }
.film-module-note { margin-top:12px; }

/* Quiet, optional corroborating sources. */
.culttech-references { padding-block:var(--space-3) 0; }
.culttech-references>* { margin-left:var(--indent); }
.culttech-references.wrap { padding-bottom:var(--space-4); }
.external-context { max-width:64ch; }
.external-references { margin-top:var(--space-2); }
.external-references>summary { display:inline-flex; align-items:center; gap:20px; min-height:44px; padding:8px 12px; border:1px solid currentColor; list-style:none; cursor:pointer; font-weight:700; }
.external-references>summary::-webkit-details-marker { display:none; }
.external-references[open]>summary span { transform:rotate(45deg); }
.reference-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:20px; }
.coverage-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.reference-card { min-width:0; }
.reference-card img { width:100%; aspect-ratio:2/1; object-fit:cover; }
.reference-source { display:block; margin-top:10px; }
.reference-title { margin-top:5px; }
.coverage-row .reference-card a { display:grid; grid-template-columns:96px minmax(0,1fr); gap:4px 14px; }
.coverage-row .reference-card img { grid-row:1 /span 2; aspect-ratio:4/3; }
.coverage-row .reference-source,.coverage-row .reference-title { margin:0; }

/* Reading cards use the same image and heading grammar. */
.reading-block { min-width:0; margin-top:var(--space-3); }
.article-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-3) var(--gutter); }
.article-card { min-width:0; }
.article-hit { display:block; }
.article-hit:hover { text-decoration:none; }
.article-hit:hover .article-title { text-decoration:underline; text-decoration-thickness:1px; }
.article-image { position:relative; overflow:hidden; background:#e7e7e7; }
.article-image img { width:100%; aspect-ratio:8/5; object-fit:cover; }
.article-title { margin-top:14px; }
.article-meta { margin-top:12px; }
.article-meta+.article-title { margin-top:8px; }
/* A lone card sits on line B at six columns rather than stretching across the page. */
.article-grid-single { grid-template-columns:minmax(0,1fr); max-width:calc(6 * var(--unit) - var(--gutter)); margin-left:var(--indent); }
/* The darker interlude remains deliberately asymmetric. */
.other,.related-projects,.dark { background:var(--ink); color:white; }
.other { position:relative; padding:var(--space-3) var(--edge) var(--space-4); }
.other-layout { row-gap:var(--space-2); }
.other-intro { grid-column:var(--at-label); padding-right:var(--gutter); }
.other-layout>div:last-child { grid-column:var(--at-wide); min-width:0; }
.other h2 { color:var(--yellow); margin-bottom:var(--space-2); }
.other-intro p { max-width:34ch; }
.other details { border-top:1px solid #676767; }
.other details:last-of-type { border-bottom:1px solid #676767; }
/* Rows sit on the outer grid: name on line B (4 cols), role on line C (3 cols), sign in the last column. */
.other summary { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); align-items:center; column-gap:var(--gutter); min-height:44px; padding:20px 0; list-style:none; cursor:pointer; }
.other summary .other-name { grid-column:1/5; }
.other summary .other-role { grid-column:5/8; }
.other summary .plus { grid-column:8; justify-self:end; }
.other summary::-webkit-details-marker { display:none; }
.other-role,.other-foot { color:#c2c3bc; }
.other .plus { color:var(--cyan); }
.other details[open] .plus { transform:rotate(45deg); }
.other details>div { padding-bottom:var(--space-3); }
.other details>div>p { max-width:64ch; }
.other details .eyebrow { color:#c2c3bc; margin-top:16px; }
.other-foot { margin-top:20px; }
.other-project-preview { margin-top:20px; }
.other-project-preview a { display:block; position:relative; }
.other-project-preview img { width:100%; aspect-ratio:8/5; object-fit:cover; }
.image-expand { position:absolute; bottom:12px; right:12px; padding:8px 12px; background:white; color:var(--ink); font-size:var(--metadata); }
.other .reference-row { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x proximity; padding-bottom:12px; scrollbar-width:thin; }
.other .reference-card { flex:0 0 max(210px,calc((100% - 32px) / 3)); scroll-snap-align:start; }
.other .article-title span,.other .reference-title span,.dark .pink,.dark-label { color:var(--cyan); }
.other .article-grid { margin-top:20px; }

/* Freelance, as in the lab version: three image features in thirds, then two text-only talks in halves.
   The change of unit (thirds, then halves) gives the block its editorial irregularity. */
.freelance-section { position:relative; padding-block:var(--space-3) var(--space-4); }
.freelance-section::before { content:''; position:absolute; top:0; right:var(--edge); height:var(--tab-h); pointer-events:none; width:calc((100% - 2 * var(--edge) + var(--gutter)) / var(--tab-div) - var(--gutter)); background:var(--cyan) url('assets/signal/signal-strip-clean.svg') center/cover; }
.home .freelance-section { border-top:0; }
.freelance-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-3) var(--gutter); }
.freelance-video { min-width:0; }
.video-cover { position:relative; aspect-ratio:8/5; }
.video-cover>img { height:100%; }
.video-cover .play-film { position:absolute; left:12px; bottom:12px; background:var(--magenta); color:var(--ink); border:0; }
.video-source { display:inline-flex; align-items:center; min-height:44px; margin-top:8px; text-decoration:underline; }
.freelance-talks { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-2) var(--gutter); margin-top:var(--space-3); padding-top:14px; border-top:1px solid var(--ink); }
.freelance-talks .article-title { max-width:34ch; }
.freelance-talks .article-meta { margin-top:0; }
.freelance-description { margin-top:12px; max-width:65ch; }

/* Inner pages keep the same three visual heading sizes. */
.subhead { position:relative; padding:var(--space-2) var(--edge) var(--space-4); }
/* Inner pages echo the hero band: a thin strip from line C to the right edge of the screen. */
.subhead::before { right:0; width:auto; left:calc(var(--edge) + 8 * (100% - 2 * var(--edge) + var(--gutter)) / 12); }
.breadcrumb { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:var(--space-3); }
.breadcrumb a { display:inline-flex; align-items:center; min-height:32px; }
.chapter-period { margin-bottom:var(--space-2); }
.subhead h1 { margin-bottom:var(--space-3); }
.sub-intro { margin-top:var(--space-3); }
.chapter-role .link { margin-top:var(--space-2); }
.editorial-section { padding:var(--space-3) var(--edge) var(--space-4); border-top:1px solid var(--ink); }
.editorial-grid>div { row-gap:var(--space-3); align-items:start; }
.editorial-content>div { min-width:0; }
/* Section heading on the label rail, text on line B, card grids across the full width. */
.editorial-grid>div>h2 { grid-column:var(--at-label); padding-right:var(--gutter); }
.editorial-grid>div>* { grid-column:var(--at-text); min-width:0; }
.editorial-grid>div>.reading-block { grid-column:var(--at-full); margin-top:0; }
.editorial-grid>div>.link { justify-self:start; }
.body-copy { max-width:64ch; }
.body-copy p+p { margin-top:var(--space-2); }
.role-history>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--gutter); padding:12px 0; border-top:1px solid var(--rule); }
.period { color:var(--muted); }
.chapter { position:relative; padding:var(--space-3) var(--edge) var(--space-4); }
.case-heading { max-width:20ch; margin-block:var(--space-2) var(--space-3); }
.case-head { max-width:64ch; margin-left:var(--indent); }
.case-main { row-gap:var(--space-3); margin-top:var(--space-3); }
.case-main>div { grid-column:5/9; padding-right:var(--gutter); }
.case-main>div+div { grid-column:9/-1; padding-right:0; }
.case-main h3 { margin-bottom:var(--space-2); }
.village-scale { padding-block:var(--space-3) var(--space-4); border-top:1px solid var(--ink); }
.village-scale-layout { display:flex; flex-wrap:wrap; align-items:end; gap:var(--space-2) var(--space-3); margin-top:var(--space-2); }
.village-scale-number { font-size:var(--heading-display); line-height:.86; }
.village-scale-number span { color:var(--blue); }
.next-chapter { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:24px; padding-block:var(--space-3); border-top:1px solid var(--ink); }
.about-intro { align-items:start; row-gap:var(--space-3); }
.about-intro>div { grid-column:var(--at-text); grid-row:1; padding-top:var(--space-2); }
.about-intro p { max-width:64ch; }
.about-intro p+p { margin-top:var(--space-2); }
.about-intro .link { margin-top:var(--space-2); }
.about-portrait { grid-column:1/4; grid-row:1; }
.about-portrait img { width:100%; aspect-ratio:4/5; object-fit:cover; object-position:50% 35%; }
.languages { max-width:64ch; }
.languages h3 { margin-bottom:var(--space-2); }
.language-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; }
.language-list>div { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--rule); }
.language-list dt { font-weight:700; }
.language-list dd { text-align:right; }
.cv-head { display:flex; align-items:end; justify-content:space-between; gap:24px; }
.cv-head h1 { margin:0; }
.cv-intro { margin-top:var(--space-2); max-width:64ch; }
.cv-contact { margin-top:12px; }
.cv-contact a { display:inline-flex; align-items:center; min-height:32px; text-decoration:underline; }
.cv-note { margin-top:12px; color:var(--muted); }
.cv-page .subhead { padding-bottom:var(--space-3); }
.cv-section-title { margin-bottom:var(--space-3); }
/* CV rows: employer and dates on the label rail, positions on line B. */
.cv-row { row-gap:var(--space-2); padding:var(--space-2) 0; border-top:1px solid var(--rule); }
.cv-row>div:first-child { grid-column:var(--at-label); padding-right:var(--gutter); }
.cv-row>div+div { grid-column:var(--at-text); min-width:0; }
.cv-row .dates { display:block; color:var(--muted); margin-top:8px; }
.cv-position p,.cv-row p { max-width:64ch; }
.cv-position-title,.cv-role { font-weight:700; }
.cv-position>.dates+p,.cv-role+p { margin-top:12px; }
.cv-position+.cv-position { margin-top:20px; padding-top:20px; border-top:1px solid var(--rule); }

/* Footer: the last plane of the page. Title on A, contact on line M with the address set large,
   then the bottom row of the test card (blue, white, magenta blocks on the first six columns) closes the page,
   answering the bars that open it at the top right. */
.site-footer { position:relative; padding:var(--space-4) var(--edge) 20px; background:var(--ink); color:white; }
.footer-main { align-items:start; row-gap:var(--space-3); }
.footer-main>h2 { grid-column:1/7; font-size:var(--heading-page); line-height:.92; }
.footer-contact { grid-column:7/-1; display:grid; gap:16px; justify-items:start; }
.contact-email { display:inline-flex; align-items:center; min-height:44px; color:var(--cyan); font-size:clamp(19px,1.8vw,26px); font-weight:700; text-decoration:underline; text-decoration-thickness:1px; overflow-wrap:anywhere; }
/* Flat blocks drawn with hard colour stops (no blending); edges fall on column lines. */
.footer-main::after { --c:calc((100% + var(--gutter)) / 12); content:''; grid-column:1/-1; height:28px; margin-top:var(--space-3);
  background:linear-gradient(90deg, var(--blue) 0 calc(2 * var(--c)), var(--paper) 0 calc(4 * var(--c)), var(--magenta) 0 calc(6 * var(--c) - var(--gutter)), transparent 0); }
.social-links { display:flex; gap:10px; margin:0; padding:0; list-style:none; }
.social-links a { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--rule); }
.social-links a:hover { background:var(--yellow); color:var(--ink); }
.social-links svg { width:20px; height:20px; }
.footer-links { display:flex; flex-wrap:wrap; gap:24px; }
.footer-meta { display:flex; justify-content:space-between; align-items:center; gap:20px; padding-top:16px; border-top:1px solid #676767; }
.site-footer .footer-meta { border-top-color:var(--paper); }
.footer-meta a { display:inline-flex; align-items:center; min-height:32px; }

/* Image viewer retains native dialog semantics and keyboard controls. */
html.has-image-viewer { overflow:hidden; }
.image-viewer { width:calc(100vw - 48px); max-width:1440px; max-height:calc(100dvh - 48px); padding:0; border:1px solid #676767; background:var(--ink); color:white; border-radius:0; overflow:auto; }
.image-viewer::backdrop { background:rgb(0 0 0 / .84); }
.image-viewer-inner { padding:18px 22px; }
.image-viewer-top,.image-viewer-bottom,.image-viewer-navigation { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.image-viewer-top { padding-bottom:16px; border-bottom:1px solid #676767; }
.image-viewer-top h2 { font-size:var(--heading-item); }
.image-viewer button { min-height:44px; border:1px solid #777; padding:10px 14px; background:transparent; }
.image-viewer button:hover:not(:disabled) { background:white; color:var(--ink); }
.image-viewer button:disabled { opacity:.35; }
.image-viewer button[hidden] { display:none; }
.image-viewer-figure { margin-top:18px; }
.image-viewer-figure img { width:100%; height:min(65dvh,820px); object-fit:contain; }
.image-viewer-figure figcaption:empty { display:none; }
.image-viewer-bottom { margin-top:18px; padding-top:14px; border-top:1px solid #676767; }
.image-viewer [data-viewer-original] { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; }

@media(min-width:1050px) {
  .project-grid,.home-village-stories .article-grid,.freelance-features { grid-template-columns:repeat(3,minmax(0,1fr)); }
  /* Home: the five external references as one index row, image above source and title. */
  .home .coverage-row { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .home .coverage-row .reference-card a { display:block; }
  .home .coverage-row .reference-card img { aspect-ratio:2/1; }
  .home .coverage-row .reference-source { margin-top:10px; }
  .home .coverage-row .reference-title { margin-top:4px; }
}
@media(min-width:620px) and (max-width:1049px) {
  .freelance-video { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:0 24px; align-content:start; }
  .freelance-video .article-image { grid-row:1/span 3; }
  .freelance-video .article-meta { margin-top:0; }
  .freelance-video .article-title { margin-top:8px; align-self:start; }
  .freelance-video .video-source { justify-self:start; align-self:start; }
  .home-village-stories .article-card:last-child { grid-column:1/-1; max-width:calc((100% - 24px)/2); }
}
/* Mid widths: reading text keeps line B but may run to the right edge; the hero copy takes five columns. */
@media(max-width:1199px) {
  :root { --at-text:5/-1; }
  .hero-type { grid-column:1/7; }
  .signal-band { grid-column:7/-1; }
  .hero-photo { grid-column:1/7; }
  .hero-copy { grid-column:7/-1; }
  /* The ladder leaves the title's row and runs the full width under it, four or three columns a step. */
  .chapter-head h2 { grid-column:1/-1; }
  .chapter-head .ladder { --cols:12; grid-column:1/-1; grid-row:3; margin-top:var(--space-2); }
  .chapter-head::after { grid-row:4; }
  .ladder-step { grid-column:span 4; }
  .ladder:has(>:nth-child(4)) .ladder-step { grid-column:span 3; }
  .home .organisation-context { grid-column:1/6; }
  .home .home-culttech-intro,.home .home-village-intro { grid-column:6/-1; }
}
/* Small screens: the same 12 columns, but every block spans the full width; indents collapse. */
@media(max-width:899px) {
  :root { --at-label:1/-1; --at-text:1/-1; --at-wide:1/-1; --at-aside:1/-1; --indent:0px; }
  /* Phones and small tablets: name, role, What I do, buttons, then the bars and the photo. */
  .hero { grid-template-rows:none; row-gap:0; padding-top:var(--space-2); }
  .hero-type { grid-column:1/-1; grid-row:auto; margin-bottom:var(--space-2); }
  .hero-copy { grid-column:1/-1; grid-row:auto; gap:20px; }
  .signal-band { order:2; grid-column:4/-1; grid-row:auto; height:16px; margin-top:var(--space-3); }
  .hero-photo { order:3; grid-column:1/-1; grid-row:auto; min-height:0; }
  .hero-photo img { position:static; height:auto; aspect-ratio:3/2; }
  .organisation-context,.chapter-role,.home .organisation-context,.home .home-culttech-intro,.home .home-village-intro { grid-column:1/-1; padding-right:0; }
  /* Ladder on small screens: steps stack and read bottom to top, each one wider than the role before it;
     the newest runs off the right edge, as on desktop. */
  .chapter-head .ladder { display:flex; flex-direction:column-reverse; align-items:start; }
  .chapter-head .ladder-step,.chapter-head .ladder:has(>:nth-child(4)) .ladder-step { height:auto; width:calc(100% - (3 - var(--i)) * 12%); margin-right:0; padding:10px 14px; }
  .chapter-head .ladder:not(:has(>:nth-child(4))) .ladder-step { width:calc(100% - (2 - var(--i)) * 14%); }
  .chapter-head .ladder-step:last-child { width:calc(100% + var(--edge)); margin-right:calc(-1 * var(--edge)); }
  .chapter-head h2 { white-space:normal; }
  /* What I bring: one column; the cross becomes rules between items and the disc sits beside the title. */
  .capabilities .sec-head { display:flex; justify-content:space-between; align-items:center; gap:var(--gutter); }
  .capabilities .sec-head::after { content:''; flex:none; width:64px; height:64px; background:url('assets/signal/disc.svg') center/contain no-repeat; }
  .cap-list::before,.cap-item:nth-child(4)::after { display:none; }
  .cap-list { grid-template-columns:minmax(0,1fr); }
  .cap-item,.cap-item:nth-child(n+3),.cap-item:nth-child(4) { margin-left:0; padding:var(--space-2) 0; border-top:1px solid var(--ink); }
  .cap-item:last-child { padding-bottom:0; }
  .footer-main>h2,.footer-contact { grid-column:1/-1; }
  .chapter-introduction,.chapter-intro { row-gap:var(--space-2); }
  .organisation-context { padding-right:0; }
  .other-intro p { max-width:65ch; }
  .about-portrait { grid-column:1/7; grid-row:1; }
  .about-intro>div { grid-row:2; padding-top:0; }
  .cv-row { row-gap:var(--space-1); }
  .case-main>div,.case-main>div+div { grid-column:var(--at-full); padding-right:0; }
  .freelance-talks>article,.freelance-talks>article+article { grid-column:var(--at-full); }
  .film-module,.article-grid-single { max-width:none; }
  .project[open] .project-cover { grid-column:1/4; }
  .project[open] .project-summary { grid-column:4/-1; }
}
@media(max-width:619px) {
  :root { --gutter:16px; --margin:24px; --tab-h:8px; --tab-div:4; }
  .site-header { padding-block:10px; }
  .site-header nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:8px; }
  .site-header nav a { padding-inline:10px; }
  .hero-type h1 { font-size:clamp(38px,12.4vw,56px); }
  .hero-actions { gap:8px; }
  .hero-actions .link { padding-inline:14px; }
  .project-grid,.article-grid,.freelance-features,.coverage-row { grid-template-columns:minmax(0,1fr); }
  /* Phones: the first project and story stay large; the rest become compact rows (thumbnail on columns 1–5,
     title on 6–12), the same form an opened project takes. Denser to scan, one image weight per section. */
  .home-project-grid { row-gap:0; }
  .home-project-grid>.project:first-child { padding-bottom:var(--space-1); }
  .home-project-grid>.project:not(:first-child):not([open])>summary { display:grid; grid-template-columns:5fr 7fr; column-gap:var(--gutter); align-items:start; padding-block:12px; }
  .home-project-grid>.project:not(:first-child):not([open]) .project-summary { padding:0; }
  .home-project-grid>.project:not(:first-child):not([open]) .project-sign { width:32px; height:32px; font-size:22px; }
  .home-project-grid>.project:not(:first-child):not([open]) .project-summary p { font-size:var(--metadata); }
  .home-village-stories .article-grid { row-gap:0; }
  .home-village-stories .article-card { padding-bottom:12px; border-bottom:1px solid var(--rule); }
  .home-village-stories .article-card:not(:first-child) { padding-top:12px; }
  .home-village-stories .article-card:not(:first-child) .article-hit { display:grid; grid-template-columns:5fr 7fr; column-gap:var(--gutter); align-items:start; }
  .home-village-stories .article-card:not(:first-child) .article-title { margin-top:0; }
  .project[open] .project-cover { grid-column:1/6; }
  .project[open] .project-summary { grid-column:6/-1; }
  .project[open] .project-cover-image { height:80px; }
  .project[open] .project-sign { width:32px; height:32px; }
  .project[open] .project-summary p { display:none; }
  .project[open] .project-summary h2,.project[open] .project-summary h3 { margin-bottom:0; }
  .film-frame { padding:18px; aspect-ratio:auto; min-height:240px; }
  .other summary { grid-template-columns:repeat(8,minmax(0,1fr)); column-gap:12px; }
  .other summary .other-name { grid-column:1/5; }
  .other summary .other-role { grid-column:5/8; }
  .other .article-grid { grid-template-columns:minmax(0,1fr); }
  .reference-row { grid-template-columns:minmax(0,1fr); }
  .freelance-talks>article+article { border-top:1px solid var(--rule); padding-top:var(--space-2); }
  .role-history>div { grid-template-columns:minmax(0,1fr); gap:6px; }
  .language-list { grid-template-columns:minmax(0,1fr); }
  .cv-head { flex-direction:column; align-items:start; gap:16px; }
  .footer-meta { flex-wrap:wrap; }
  .image-viewer { width:100vw; max-height:100dvh; margin:0; border:0; }
  .image-viewer-inner { padding:14px 16px; }
  .image-viewer-top { gap:12px; }
  .image-viewer-bottom { align-items:stretch; flex-direction:column; gap:12px; }
  .image-viewer-navigation { gap:12px; }
}
@media(max-width:359px) {
  .other summary .other-name { grid-column:1/8; }
  .other summary .other-role { grid-column:1/8; grid-row:2; }
  .other summary .plus { grid-column:8; grid-row:1; }
}
@media(prefers-reduced-motion:reduce) {
  .top-signal::after { animation:none; }
}
@media print {
  :root { --heading-display:40pt; --heading-page:32pt; --heading-section:23pt; --heading-item:16pt; --reading:10pt; --metadata:9pt; --edge:0px; --at-label:1; --at-text:2; --at-wide:2; --indent:0px; }
  body { background:white; color:black; }
  body::before,.subhead::before,.top-signal,.site-header,.site-footer,.print-button,.skip,.image-viewer,.project-panel-footer { display:none; }
  .subhead,.editorial-section { padding:16pt 0; }
  .cv-head { display:block; }
  .cv-row { grid-template-columns:1fr 2fr; gap:24pt; padding:16pt 0; }
  .cv-position { break-inside:avoid; }
  .cv-note { font-size:9pt; }
  .article-card { break-inside:avoid; }
}

/* Career timeline (replaces the ladder): one row read left to right, each role a colour bar on the chapter rule,
   bar width follows time in role on a softened (square-root) scale, so long junior years do not dominate (Pavel); the last bar runs off the right edge (still going / the latest step). */
.timeline { grid-column:5/-1; grid-row:1/3; align-self:end; display:flex; margin:0 calc(-1 * var(--edge)) 0 var(--gutter); padding:0; list-style:none; }
.tl-step { flex:var(--w,1) 1 0; min-width:9.5em; display:flex; flex-direction:column; justify-content:end; gap:4px; padding-left:10px; border-left:1px solid var(--ink); }
.tl-step::after { content:''; display:block; height:18px; margin:10px 0 0 -11px; background:var(--c,var(--panel)); }
.tl-step:last-child { min-width:15.5em; }
.tl-step:nth-last-child(1) { --c:var(--blue); } .tl-step:nth-last-child(2) { --c:var(--magenta); }
.tl-step:nth-last-child(3) { --c:var(--cyan); } .tl-step:nth-last-child(4) { --c:var(--yellow); }
.tl-dates { font:400 13px/1.3 var(--mono); color:var(--muted); }
.tl-role { font-family:var(--display); font-weight:var(--display-wght); font-stretch:calc(var(--display-wdth) * 1%); font-variation-settings:'wght' var(--display-wght),'wdth' var(--display-wdth); font-size:clamp(17px,calc(6px + 1vw),21px); line-height:1.02; padding-right:12px; }
@media(max-width:1199px) {
  .chapter-head .timeline { grid-column:1/-1; grid-row:3; margin:var(--space-2) calc(-1 * var(--edge)) 0 0; }
}
@media(max-width:619px) {
  /* Phone: the same order top to bottom (earliest first), each role marked by its colour on a left rule. */
  .chapter-head .timeline { flex-direction:column; gap:0; margin-right:0; }
  .tl-step { flex:none; min-width:0; padding:8px 0 8px 14px; border-left:6px solid var(--c); }
  .tl-step::after { display:none; }
}

/* Heading face: Saira Extra Condensed (static weights 600/700). Width is built into the face, so neutralise the
   width axis and synthetic stretch that were tuned for Archivo. */
h1,h2,h3,.film-title,.other-name,.village-scale-number,.role-overview-action,.tl-role,.hero-type h1 { font-stretch:normal; font-variation-settings:normal; }
