/* partridge.ch
   Layout idea: one calm column on a light grey ground, with two graphite bands (method, contact).
   Order of the page follows the argument: structure first, then proof, then the way in. */
:root {
  color-scheme: light;
  --ink: #1E2124;
  --muted: #4E5358;
  --soft: #686E75;
  --loose: #9AA0A6;
  --line: #CDD0D3;
  --paper: #F2F3F4;
  --tint: #E7E9EB;
  --card: #FFFFFF;
  --band: #2A2D31;
  --band-ink: #ECEDEE;
  --band-muted: #C8CBCE;
  --band-line: #63686E;
  --display: Newsreader, Georgia, "Times New Roman", serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(48px, 8vw, 104px);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band a:focus-visible { outline-color: var(--band-ink); }
img, svg { max-width: 100%; }
main { flex: 1 0 auto; }
[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #FFFFFF; padding: 12px 16px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--gap); padding-bottom: var(--gap); }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 780px; }

.label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(40px, 7.4vw, 78px); line-height: 1.03; letter-spacing: -0.012em; }
h1 span { color: var(--soft); }
h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.14; letter-spacing: -0.006em; }
h3 { font-size: 23px; line-height: 1.25; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.measure { max-width: 64ch; }

.btn { border: 2px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 22px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn:hover { background: var(--ink); color: #FFFFFF; }
.btn.solid { background: var(--ink); color: #FFFFFF; }
.btn.solid:hover { background: #000000; border-color: #000000; }
.band .btn { border-color: var(--band-ink); color: var(--band-ink); }
.band .btn.solid { background: var(--band-ink); color: var(--ink); }
.band .btn:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }

/* Header */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.logo { height: 54px; width: auto; display: block; }
.logo .ink { fill: var(--ink); }
.logo .rule { fill: none; stroke: var(--ink); stroke-width: 2.79px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.bar nav a { font-size: 15px; font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar nav a:hover { text-decoration: underline; }
.bar .tools { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.lang a, .lang span { min-width: 40px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.lang a { color: var(--soft); }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang [aria-current] { border-bottom: 2px solid var(--ink); }
@media (max-width: 1020px) { .bar nav { display: none; } }
@media (max-width: 620px) { .bar .btn { display: none; } .logo { height: 46px; } }

/* Hero */
.hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 36px 64px; align-items: flex-start; }
.hero .text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero .side { flex: 1 1 250px; max-width: 340px; display: flex; flex-direction: column; gap: 20px; }
.hero .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--tint); }
.ticks { width: 100%; max-width: 620px; height: auto; display: block; }
.ticks line { vector-effect: non-scaling-stroke; stroke-width: 1.5px; }
.ticks .loose { stroke: var(--loose); }
.ticks .mid { stroke: var(--soft); }
.ticks .set { stroke: var(--ink); }
.band .ticks .loose { stroke: var(--band-line); }
.band .ticks .mid { stroke: var(--band-muted); }
.band .ticks .set { stroke: var(--band-ink); }
.facts { border-top: 2px solid var(--ink); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 16px; }
.facts .who dd { font-family: var(--display); font-size: 21px; line-height: 1.25; }
.facts .who small { display: block; font-family: var(--body); font-size: 15px; color: var(--muted); }

/* Graphite bands */
.band { background: var(--band); color: var(--band-ink); padding-top: var(--gap); padding-bottom: var(--gap); }
.band .label { color: var(--band-ink); }
.band .muted { color: var(--band-muted); }
.chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; counter-reset: none; }
.chain li { border: 1px solid var(--band-line); padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.chain li.last { border-style: dashed; border-color: var(--band-ink); }
.chain .step { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.chain .t { font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 500; }
.chain .s { font-size: 15px; color: var(--band-muted); }

/* Situations */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 56px; }
.item { border-top: 1px solid var(--line); padding: 22px 0 26px; display: flex; flex-direction: column; gap: 8px; }
.item p { color: var(--muted); max-width: 56ch; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.role { background: var(--card); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.role .proof { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.role .proof dt, .kv dt { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.role .proof dd { font-size: 16px; }
.aside { margin-top: 16px; border: 1px dashed var(--soft); padding: clamp(18px, 3vw, 28px); display: flex; flex-wrap: wrap; gap: 6px 32px; }
.aside h3 { flex: 0 0 170px; }
.aside p { flex: 1 1 320px; color: var(--muted); }

/* Case */
.case { background: var(--card); border: 1px solid var(--line); padding: clamp(20px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.case h3 { font-size: clamp(25px, 3.6vw, 34px); line-height: 1.15; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.figures div { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.figures .n { white-space: nowrap; font-family: var(--display); font-size: clamp(28px, 4.6vw, 46px); line-height: 1.05; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.figures .l { font-size: 14px; color: var(--muted); }
.map div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.map div:last-child { border-bottom: 0; padding-bottom: 0; }
.map dt { flex: 0 0 190px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 4px; }
.map dd { flex: 1 1 280px; }

/* Stations */
.stations { margin-top: clamp(28px, 4vw, 44px); }
.stations > .label { margin-bottom: 14px; }
.station { border-top: 1px solid var(--line); padding: 26px 0; display: flex; flex-wrap: wrap; gap: 14px 48px; }
.station:last-child { border-bottom: 1px solid var(--line); }
.station .who { flex: 0 0 280px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.station .what { flex: 1 1 380px; min-width: 0; }
.station .meta { font-size: 14px; color: var(--muted); }
.station .job { font-size: 16px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border: 1px solid var(--ink); }
.tag.line { background: var(--ink); color: #FFFFFF; }
.kv { display: flex; flex-direction: column; gap: 12px; }
.kv div { display: flex; flex-direction: column; gap: 2px; }
.kv dd { max-width: 64ch; }
@media (max-width: 760px) { .station .who { flex-basis: 100%; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.steps .step { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--soft); font-variant-numeric: tabular-nums lining-nums; }
.steps p { color: var(--muted); }

/* Background */
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.split > .stack { flex: 1 1 360px; min-width: 0; }
.cv { flex: 1.2 1 420px; min-width: 0; background: var(--card); border: 1px solid var(--line); padding: 6px clamp(18px, 3vw, 30px); }
.cv div { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cv div:last-child { border-bottom: 0; }
.cv dt { flex: 0 0 150px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.cv dd { flex: 1 1 240px; font-size: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 12px 14px; }

/* Contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 36px 72px; align-items: flex-end; }
.contact .stack { flex: 1.4 1 420px; min-width: 0; }
.contact dl { flex: 1 1 280px; border-top: 1px solid var(--band-line); }
.contact dl div { padding: 12px 0; border-bottom: 1px solid var(--band-line); display: flex; flex-direction: column; gap: 2px; }
.contact dt { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-muted); }
.contact dd a { display: inline-flex; align-items: center; min-height: 44px; }

/* Footer */
.foot { background: var(--band); color: var(--band-muted); border-top: 1px solid var(--band-line); font-size: 14px; padding: 22px 0 34px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; }
.foot a { color: var(--band-ink); display: inline-block; padding: 8px 0; }

/* Plain pages (legal, 404) */
.plain { padding-top: clamp(36px, 6vw, 72px); padding-bottom: var(--gap); }
.plain .wrap { max-width: 800px; display: flex; flex-direction: column; gap: 28px; }
.plain h1 { font-size: clamp(34px, 5vw, 52px); }
.plain h2 { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.notice { border: 1px dashed var(--ink); background: var(--card); padding: 12px 16px; font-size: 15px; }

/* Wording of 13 November: ways of working, case details, brief list, experience page */
.head.sub { margin-top: clamp(36px, 5vw, 56px); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 56px; }
.way { border-top: 2px solid var(--ink); padding: 18px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.way p { color: var(--muted); max-width: 56ch; }
.klabel { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kv.handover { border-top: 2px solid var(--ink); padding-top: 14px; }
.aside p.label { flex: 0 0 230px; color: var(--ink); padding-top: 4px; }
.brief li { display: grid; grid-template-columns: 110px minmax(0, 1.4fr) 120px minmax(0, 1.3fr); gap: 4px 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.brief li:last-child { border-bottom: 1px solid var(--line); }
.brief .tag { justify-self: start; }
.brief .org { font-family: var(--display); font-size: 20px; line-height: 1.25; }
.brief .org span { display: block; font-family: var(--body); font-size: 15px; line-height: 1.5; color: var(--muted); }
.brief .yrs { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.brief .res { font-size: 16px; }
@media (max-width: 820px) { .brief li { grid-template-columns: 1fr; } }
.more { margin-top: 22px; }
.hero.page { padding-bottom: clamp(28px, 4vw, 48px); }
.hero.page .text { flex-basis: 100%; max-width: 820px; }
.hero.page h1 { font-size: clamp(36px, 5.6vw, 60px); }
.stations.flush { margin-top: 0; }
.cv.wide { max-width: 860px; }

/* Link to the other page, shown where the section menu is hidden */
.xlink { font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1021px) { .bar nav + .tools .xlink { display: none; } }
@media (max-width: 620px) { .bar .tools { gap: 10px; } .bar .wrap { gap: 8px 12px; } }
.bar nav a[aria-current] { border-bottom: 2px solid var(--ink); }

/* Background: label above both columns, so the card starts level with the headline */
.label.over { margin-bottom: 14px; }
.split .cv { margin-top: 4px; }

.scope-note { margin-top: 12px; max-width: 64ch; }
