/* eappz.eu styles: homepage (<body class="home">), case pages and case-studies list (<body class="inner">).
   Most rules are shared. The few that differ per page type are scoped with :where(.home) / :where(.inner),
   which adds no specificity. Colours use light-dark(): the theme comes from color-scheme, set by the system
   or by data-theme on <html> (theme toggle). Responsive rules are grouped by breakpoint at the end.
   Print styles: css/print.css. Source: tools/fieldnotes/site.css */

/* ---- tokens ---- */
:root{color-scheme:light dark;
  --bg:light-dark(#f4f0e9,#1a1815);--surface:light-dark(#fffdf8,#24211d);--sunk:light-dark(#ebe5db,#2e2a25);
  --ink:light-dark(#1d1a16,#f1ebe2);--muted:light-dark(#574d44,#c0b4a6);--line:light-dark(#d8cfc2,#3d3731);
  --pen:light-dark(#b8361a,#ff8f6b);--pen-soft:light-dark(rgba(184,54,26,.09),rgba(255,143,107,.1));
  --hl:light-dark(rgba(255,206,77,.55),rgba(255,190,70,.24));
  --before:light-dark(#7d7064,#a69888);--after:var(--ink);--btn-ink:light-dark(#fffdf8,#1a1815);
  --shadow:0 1px 2px light-dark(rgba(40,30,20,.06),rgba(0,0,0,.3)),0 8px 24px light-dark(rgba(40,30,20,.06),rgba(0,0,0,.25));
  --logo-leaf:light-dark(#6e9b3f,#93c35f);
  --r-lg:22px;--r:16px;--r-sm:12px}
:root[data-theme="light"]{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark}

/* ---- base ---- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--bg);color:var(--ink);font:18px/1.6 system-ui,-apple-system,"Segoe UI",Ubuntu,Roboto,"Helvetica Neue",Arial,sans-serif}
img{max-width:100%;display:block}
a{color:inherit}
p{margin:0}
:focus-visible{outline:3px solid var(--pen);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--bg);padding:8px 14px;border-radius:6px;z-index:20}
.skip:focus{left:16px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1200px;margin:0 auto;padding:0 40px}
h1,h2,h3{font-family:Charter,"Bitstream Charter","Sitka Text",Cambria,"Iowan Old Style","Palatino Linotype",P052,Georgia,serif;font-weight:700;line-height:1.15;letter-spacing:-.01em;margin:0}
h1{font-size:50px;letter-spacing:-.015em;line-height:1.08;text-wrap:balance}
h2{font-size:clamp(30px,3vw,40px)}
h3{font-size:22px}

/* shared link and card patterns */
.more-link,.all-link a,.glance .alt a,.rec-more a,.start a,.proj .links a,.case-foot a,.go,.proof-more,.crumbs a,.case-ctx a{text-underline-offset:4px;text-decoration-color:var(--line)}
.more-link:hover,.all-link a:hover,.glance .alt a:hover,.rec-more a:hover,.start a:hover,.proj .links a:hover,.case-foot a:hover,.go:hover,.proof:hover .proof-more,.crumbs a:hover,.case-ctx a:hover{text-decoration-color:var(--pen)}
.case h3 a,.text h3 a{text-decoration:none}
.case h3 a:hover,.text h3 a:hover,.index a:hover .t{text-decoration:underline;text-decoration-color:var(--pen);text-underline-offset:4px}
.chip:hover,.proof:hover{border-color:var(--muted)}
.case-nav a:hover,.lnk:hover{border-color:var(--ink)}
.glance,.proof,.case,.rec,.proj,.contact,.outro,.list,.case-nav a{background:var(--surface);border:1px solid var(--line)}
.glance,.proof,.case,.rec,.contact,.outro,.list,.portrait img{box-shadow:var(--shadow)}

/* ---- pen notes and highlights ---- */
.hand{font-family:"Iowan Old Style","Palatino Linotype",Palatino,"URW Palladio L",P052,Georgia,serif;font-style:italic;color:var(--pen);font-weight:400;letter-spacing:0}
.note{position:relative;font-size:18px;line-height:1.35;max-width:22ch}
.note svg{position:absolute;overflow:visible;fill:none;stroke:var(--pen);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.loop{position:relative;display:inline-block;padding:.1em .5em;margin:0 .06em;white-space:nowrap}
.nw{white-space:nowrap}
.loop>svg,.ul>svg{position:absolute;pointer-events:none;overflow:visible;fill:none;stroke:var(--pen);stroke-linecap:round;stroke-linejoin:round}
.loop>svg{left:-.12em;top:-.16em;width:calc(100% + .24em);height:calc(100% + .32em);stroke-width:2.2}
.ul{position:relative;white-space:nowrap}
.ul>svg{left:-2%;width:104%;bottom:-.34em;height:.42em;stroke-width:2.6}
.hl{background:linear-gradient(100deg,transparent .2em,var(--hl) .3em,var(--hl) calc(100% - .3em),transparent calc(100% - .15em)) 0 62%/100% 58% no-repeat;padding:0 .12em;margin:0 -.06em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@keyframes draw{from{clip-path:inset(-20% 100% -20% -2%)}to{clip-path:inset(-20% -2% -20% -2%)}}
@keyframes fadein{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  .hero svg.reveal{animation:draw .8s .5s cubic-bezier(.6,.1,.3,1) both}
  .hero .note.reveal{animation:fadein .6s 1.1s both}
  :where(.inner) .loop>svg{animation:draw .8s .4s cubic-bezier(.6,.1,.3,1) both}
  :where(.inner) .note{animation:fadein .6s .9s both}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

/* ---- header, footer, buttons ---- */
.top{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:28px;height:68px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;font-weight:800;font-size:18px;letter-spacing:-.01em;margin-right:auto}
.brand img{width:34px;height:34px;border-radius:8px;object-fit:contain;background:#fff;border:1px solid var(--line)}
.brand .logo{display:block;height:30px;width:auto;color:var(--ink);flex:none}
.brand .bn{padding-left:14px;border-left:1px solid var(--line)}
.nav{display:flex;gap:24px}
.nav a{text-decoration:none;font-size:16px;font-weight:600;color:var(--muted)}
.nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--pen)}
.nav a[aria-current="page"]{color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--pen);text-decoration-thickness:2px}
.tools{display:flex;gap:8px}
.chip{font:inherit;font-size:15px;font-weight:600;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:7px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.chip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* theme toggle: icon and label follow the theme, no JS needed */
.ic-dark{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ic-light{display:none}:root:not([data-theme="light"]) .ic-dark{display:inline}}
:root[data-theme="dark"] .ic-light{display:none}
:root[data-theme="dark"] .ic-dark{display:inline}
footer{margin:56px 0 0;padding:26px 0 40px;border-top:1px solid var(--line);color:var(--muted);font-size:15px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:17px;font-weight:700;text-decoration:none;padding:11px 20px;border-radius:999px;border:1.5px solid var(--ink);cursor:pointer}
.btn.solid{background:var(--ink);color:var(--btn-ink)}
.btn.ghost{background:transparent;color:var(--ink)}

/* ---- before/after bars (homepage cards, case-studies list) ---- */
.track{height:12px}
.bar{display:block;height:100%;border-radius:4px}
.bar.b{background:repeating-linear-gradient(-45deg,var(--before) 0 2px,transparent 2px 6px);border:1.5px solid var(--before)}
.bar.a{background:var(--after)}
.bars{display:grid;grid-template-columns:auto 1fr auto;gap:8px 12px;align-items:center;font-size:15px}
.bars .k,.mini .k{color:var(--muted);font-weight:600}
.bars .track{height:20px;position:relative}
.bars .v{font-weight:800;font-size:16px;text-align:right;white-space:nowrap}
.bars .v.b{color:var(--muted);font-weight:700}

/* ---- homepage ---- */
:where(.home) section{padding:72px 0 0}
.hero{display:grid;grid-template-columns:400px 1fr;gap:64px;padding:44px 0 36px;align-items:start}
.portrait{position:relative}
.portrait img{width:400px;height:430px;object-fit:cover;object-position:50% 30%;border-radius:var(--r-lg)}
.portrait .note{margin:16px 0 0 64px;max-width:24ch}
.portrait .note svg{left:-58px;top:-26px;width:50px;height:40px}
.eyebrow{font-size:16px;font-weight:600;color:var(--muted);margin-bottom:14px}
.hero h1 .l2{display:block;color:var(--muted)}
.lead{font-size:21px;line-height:1.55;margin-top:20px;max-width:34em}
.lead strong{font-weight:700}
.proofrow{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:26px;align-items:start;margin-top:28px}
.proof{display:block;text-decoration:none;border-radius:var(--r);padding:20px 22px 18px}
.proof-top{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.big{font-size:44px;font-weight:800;letter-spacing:-.03em;line-height:1.1;white-space:nowrap}
.big .arr{color:var(--muted);font-weight:600;margin:0 .18em}
.proof-label{font-size:16px;color:var(--muted);line-height:1.4}
.proof-label b{color:var(--ink)}
.proof .bars{margin-top:14px}
.proof-more{margin-top:12px;font-size:16px;font-weight:700;text-decoration-line:underline}
.proofrow .note{margin-top:34px}
.proofrow .note svg.short{display:none}
.proofrow .note svg.long{left:-124px;top:-8px;width:110px;height:30px}
/* below its full width the proof card brings "4 GB" too close to the side note: put the note under the card */
.hero-text{container-type:inline-size}
@container (max-width:655px){
  .proofrow{grid-template-columns:1fr}
  .proofrow .note{margin:12px 0 0 44px;max-width:30ch}
  .proofrow .note svg.long{display:none}
  .proofrow .note svg.short{display:block;left:-38px;top:-16px;width:30px;height:30px}
}
.facts{margin-top:26px;font-size:17px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px 22px}
.facts b{color:var(--ink);font-weight:700}
.ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.sec-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 40px;align-items:end;margin-bottom:28px}
.sec-head>div>p{color:var(--muted);margin-top:10px;max-width:40em}
.sec-head .note{max-width:26ch;margin-right:8px}
.sec-head .note svg{left:-40px;top:6px;width:34px;height:34px}
.more-link{font-weight:700;font-size:17px}
.featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.case{border-radius:var(--r);padding:24px 26px 22px;display:flex;flex-direction:column}
.case .meta{font-size:15px;color:var(--muted);font-weight:600}
.case h3{margin-top:6px}
.case .desc{font-size:17px;color:var(--muted);margin-top:8px}
.case .chart{margin-top:18px;padding:16px 16px 14px;background:var(--sunk);border-radius:var(--r-sm)}
.case .chart-t{font-size:15px;font-weight:700;margin-bottom:10px}
.case .bars .v{min-width:7.2em}
.chart-x{font-size:15px;color:var(--muted);margin-top:10px}
.case-foot{display:flex;flex-direction:row-reverse;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:16px;flex:1}
.case-foot .note{max-width:25ch;padding-right:40px;margin-top:2px;text-align:right}
.case-foot .note svg{right:6px;top:-16px;width:30px;height:30px;transform:scaleX(-1)}
.case-foot a{font-size:16px;font-weight:700;white-space:nowrap;margin-top:2px}
.index-h{font-size:17px;font-weight:700;margin:40px 0 4px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:baseline}
.index{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
.index li{border-bottom:1px solid var(--line)}
.index a{display:grid;grid-template-columns:176px minmax(0,1fr);gap:18px;padding:15px 4px;text-decoration:none;align-items:baseline}
.index .fig b{display:block;font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:1.2;white-space:nowrap}
.index .fig small{display:block;font-size:14px;color:var(--muted);line-height:1.3}
.index .t{font-weight:700;font-size:17px;line-height:1.35}
.index .c{display:block;font-size:15px;color:var(--muted);margin-top:2px}
.recs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.rec{margin:0;border-radius:var(--r);padding:22px 22px 20px;display:flex;flex-direction:column;gap:18px}
.rec blockquote{margin:0;padding-top:26px;font-size:17px;line-height:1.6;position:relative}
.rec blockquote p+p{margin-top:10px}
.rec blockquote::before{content:"“";position:absolute;left:-2px;top:-4px;font:700 54px/1 Charter,"Bitstream Charter","Sitka Text",Cambria,Georgia,serif;color:var(--pen);opacity:.5}
.rec figcaption{display:flex;gap:12px;align-items:center;font-size:15px;line-height:1.35;color:var(--muted)}
.rec figcaption img{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:none;border:1px solid var(--line)}
.rec figcaption b{display:block;color:var(--ink);font-size:16px}
.rec-col{display:flex;flex-direction:column}
.rec-more{margin-top:18px;text-align:right}
.projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.proj{border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.thumb{background:var(--sunk);border-bottom:1px solid var(--line);padding:16px;display:flex;align-items:center}
.thumb img{width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;border-radius:6px}
.thumb img.fill{object-fit:cover;object-position:top}
.proj-b{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.proj h3{font-size:20px}
.proj .meta{font-size:15px;color:var(--muted);margin-top:4px;font-weight:600}
.proj p.d{font-size:17px;line-height:1.5;margin-top:10px;flex:1}
.proj .links{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;font-size:16px;font-weight:700}
.earlier{margin-top:28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.earlier summary{cursor:pointer;padding:16px 4px;font-weight:700;font-size:17px;list-style:none;display:flex;gap:10px;align-items:center}
.earlier summary::-webkit-details-marker{display:none}
.earlier summary::before{content:"";flex:none;box-sizing:border-box;width:24px;height:24px;border:1.5px solid var(--ink);border-radius:50%;background:linear-gradient(var(--ink),var(--ink)) center/10px 2px no-repeat,linear-gradient(var(--ink),var(--ink)) center/2px 10px no-repeat}
.earlier[open] summary::before{background:linear-gradient(var(--ink),var(--ink)) center/10px 2px no-repeat}
.earlier ul{list-style:none;margin:0;padding:0 0 12px}
.earlier li{display:grid;grid-template-columns:220px 210px minmax(0,1fr);gap:20px;padding:11px 4px;border-top:1px dashed var(--line);font-size:16px}
.earlier li b{font-weight:700}
.earlier li span{color:var(--muted)}
.contact{margin-top:80px;border-radius:var(--r-lg);padding:44px 48px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:44px}
.contact>div>p{color:var(--muted);margin-top:12px;max-width:30em}
.contact>div>p b{color:var(--ink)}
.links-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.lnk{display:flex;align-items:center;gap:12px;padding:13px 16px;border:1.5px solid var(--line);border-radius:var(--r-sm);text-decoration:none;background:var(--bg);height:100%}
.lnk .ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--sunk);flex:none}
.lnk .ic svg{width:19px;height:19px;fill:currentColor}
.lnk b{display:block;font-size:16px;font-weight:700;line-height:1.25}
.lnk small{display:block;font-size:14px;color:var(--muted);line-height:1.3;overflow-wrap:anywhere}
.lnk.mail .ic{background:var(--pen-soft);color:var(--pen)}
.contact-note{grid-column:2;margin-top:-30px}
.contact-note .note{margin-left:48px;max-width:36ch}
.contact-note .note svg{left:-42px;top:-24px;width:36px;height:34px}

/* ---- case page ---- */
.crumbs{display:flex;gap:10px 22px;flex-wrap:wrap;padding:30px 0 0;font-size:16px;font-weight:600}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--ink)}
.case-head{padding:26px 0 8px;max-width:900px}
.case-eyebrow{font-size:16px;font-weight:700;color:var(--muted)}
.case-head h1{margin-top:10px}
.nf{padding-bottom:72px}
.nf .proofrow{grid-template-columns:minmax(0,440px) 190px}
.nf .proofrow .note svg.long{left:-168px;width:154px}
.case-ctx{margin-top:14px;color:var(--muted);font-size:17px}
.case-ctx a{color:var(--ink);font-weight:600}
.layout{display:block;margin-top:34px}
.layout section{padding:0;margin:0 0 46px;min-width:0}
.layout-top{display:grid;grid-template-columns:minmax(0,1fr) 330px;column-gap:56px;align-items:start}
.layout-top>section{grid-column:1}
.layout-top>.glance{grid-column:2;grid-row:1 / span 2;margin-bottom:46px}
:where(.inner) article h2{font-size:30px;margin:0 0 14px}
:where(.inner) article p{margin:0 0 14px}
:where(.inner) article ul{margin:0;padding-left:22px}
:where(.inner) article li{margin:0 0 10px;padding-left:4px}
:where(.inner) article li::marker{color:var(--muted)}
.measure{margin-top:16px;font-size:16px;color:var(--muted);border-left:3px solid var(--line);padding:2px 0 2px 16px;line-height:1.55}
.stack{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0!important}
.stack li{margin:0;padding:5px 12px;border:1px solid var(--line);border-radius:999px;font-size:15px;font-weight:600;background:var(--surface)}
.glance{position:sticky;top:92px;border-radius:var(--r);padding:22px 22px 20px}
.glance h2{font-family:inherit;font-size:15px;font-weight:700;color:var(--muted);letter-spacing:.02em;margin:0 0 6px}
.glance .note{margin:4px 0 6px 40px;font-size:17px}
.glance .note svg{left:-36px;top:-20px;width:30px;height:28px}
.glance .btn{display:flex;justify-content:center;margin-top:14px;font-size:16px;padding:10px 18px;background:var(--ink);color:var(--btn-ink)}
.glance .alt{display:none}
.stats{list-style:none;margin:0;padding:0}
.stats li{padding:12px 0;border-bottom:1px solid var(--line)}
.stats li:last-child{border-bottom:0}
.stats b{display:block;font-size:28px;font-weight:800;letter-spacing:-.02em;line-height:1.2;white-space:nowrap}
.stats .arr{color:var(--muted);font-weight:600;margin:0 .15em}
.stats span.l{display:block;font-size:15px;color:var(--muted);line-height:1.35;margin-top:2px}
.case-nav{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:4px}
.case-nav a{display:block;text-decoration:none;border-width:1.5px;border-radius:var(--r-sm);padding:14px 18px;font-weight:700;font-size:17px;line-height:1.35}
.case-nav span{display:block;font-size:14px;color:var(--muted);font-weight:600;margin-bottom:2px}
.case-nav .next{text-align:right}
.all-link{margin:18px 0 0;font-size:17px;font-weight:700}

/* figures (generated SVG charts) */
:where(.inner) figure{margin:8px 0 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:28px 28px 24px;box-shadow:var(--shadow);display:flex;flex-wrap:wrap;gap:20px 44px;align-items:flex-start}
:where(.inner) figcaption{font-size:16px;color:var(--muted);line-height:1.5}
.fig-side{flex:1 1 220px;min-width:0;align-self:center}
.figscroll{flex:0 1 auto;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.figscroll>svg{display:block;max-width:none;width:calc(var(--w) * 1.3px);height:auto}
.scrollhint{flex-basis:100%;margin:-8px 0 0;font-size:14px;color:var(--muted);font-weight:600}
:where(.inner) .fig{display:block;overflow:visible}
.fig-m,.fig-notes{display:none}
:where(.inner) .fig text{font-family:system-ui,-apple-system,"Segoe UI",Ubuntu,Roboto,"Helvetica Neue",Arial,sans-serif;fill:var(--ink);font-size:13px}
:where(.inner) .fig .t{font-size:16px;font-weight:700;fill:var(--ink)}
:where(.inner) .fig .k{font-size:15px;font-weight:600;fill:var(--muted)}
:where(.inner) .fig .v{font-size:16px;font-weight:800;fill:var(--ink)}
:where(.inner) .fig .b{font-weight:700}
.fig .vb{font-size:16px;font-weight:700;fill:var(--muted)}
.fig .p{font-size:16px;font-weight:700;fill:var(--pen)}
.fig .n{font-size:16px;font-style:italic;fill:var(--pen);font-family:"Iowan Old Style","Palatino Linotype",Palatino,"URW Palladio L",P052,Georgia,serif}
.fig-m .t,.fig-m .v,.fig-m .vb,.fig-m .p,.fig-m .k{font-size:14px}
.fig .sm{font-size:11.5px;fill:var(--muted)}
.fig .acc{fill:var(--ink);font-weight:800}
.fig .mut{fill:var(--muted)}
.fig .box{fill:var(--surface);stroke:var(--line);stroke-width:1.2}
.fig .box-acc{fill:var(--surface);stroke:var(--ink);stroke-width:1.8}
.fig .bb,.fig .bar-before{stroke:var(--before);stroke-width:1.5}
.fig .ba,.fig .bar-after{fill:var(--after)}
.fig .hatch{stroke:var(--before);stroke-width:2}
.fig .pen{fill:none;stroke:var(--pen);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fig .line{stroke:var(--before);stroke-width:1.4;fill:none}
.fig .line-acc{stroke:var(--ink);stroke-width:1.8;fill:none}
.fig .dash{stroke-dasharray:4 4}
.fig .dot,.fig .arrow-acc{fill:var(--ink)}
.fig .dot-mut,.fig .arrow{fill:var(--before)}
.fig .grid{stroke:var(--line);stroke-width:1}
.fig .fn{fill:var(--pen);font-weight:800}
.fig .foot{font-style:italic}

/* ---- case-studies list ---- */
.head{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px 48px;align-items:end;padding:22px 0 0}
.head h1 .l2{display:block;color:var(--muted);font-size:.58em;letter-spacing:-.01em;margin-top:8px;text-wrap:balance}
.intro{font-size:19px;line-height:1.55;margin-top:18px;max-width:40em}
.head .note{margin:0 0 54px 44px}
.head .note svg{left:-42px;top:16px;width:34px;height:50px}
.start{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:14px;font-size:16px}
.start>span{color:var(--muted);font-weight:600;margin-right:2px}
.start a{font-weight:700;text-decoration-color:var(--pen);text-decoration-thickness:2px}
.jump{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.jump b{font-weight:800;color:var(--muted);margin-left:2px}
.group{margin-top:56px}
.group-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin-bottom:16px}
.group-h p{font-size:16px;color:var(--muted);font-weight:600}
.list{list-style:none;margin:0;padding:0 30px;border-radius:var(--r)}
.row{display:grid;grid-template-columns:44px 300px minmax(0,1fr) auto;grid-template-areas:"num res text go";gap:0 32px;padding:26px 0;border-top:1px solid var(--line);align-items:start}
.row:first-child{border-top:0}
.num{grid-area:num;font-size:16px;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:2px}
.res{grid-area:res}
.panel{background:var(--sunk);border-radius:var(--r-sm);padding:14px 16px 13px}
.rfig{display:block;font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.2;white-space:nowrap}
.rfig .arr{color:var(--muted);font-weight:600;margin:0 .22em}
.rfig small{font-size:.62em;font-weight:800;letter-spacing:0}
.lbl{display:block;font-size:15px;color:var(--muted);line-height:1.35;margin-top:4px}
.mini{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px;align-items:center;margin-top:11px;font-size:14px}
.mini .k{line-height:1}
.res .note{margin:18px 0 0 40px;font-size:17px;max-width:24ch}
.res .note svg{left:-38px;top:-16px;width:30px;height:28px}
.text{grid-area:text}
.ctx{font-size:15px;color:var(--muted);font-weight:600;margin-top:6px;line-height:1.4}
.ctx .nw{white-space:nowrap}
.sum{font-size:17px;line-height:1.55;margin-top:10px;max-width:38em}
.go{grid-area:go;font-size:16px;font-weight:700;white-space:nowrap;padding-top:2px}
.outro{margin-top:64px;border-radius:var(--r-lg);padding:30px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px 40px;flex-wrap:wrap}
.outro p{font-size:19px;max-width:34em}
.outro .acts{display:flex;gap:12px;flex-wrap:wrap}

/* ---- responsive ---- */
@media (max-width:1100px){
  .hero{grid-template-columns:340px 1fr;gap:44px}
  h1{font-size:44px}
  .portrait img{width:340px;height:380px}
  .earlier li{grid-template-columns:200px 180px minmax(0,1fr)}
  .projects{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact{grid-template-columns:1fr;gap:28px}
  .contact-note{grid-column:1;margin-top:-8px}
  .layout-top{grid-template-columns:minmax(0,1fr) 290px;column-gap:40px}
  .row{grid-template-columns:40px 280px minmax(0,1fr);grid-template-areas:"num res text" "num res go";gap:12px 28px}
  .go{justify-self:start}
  .head{grid-template-columns:minmax(0,1fr) 240px;gap:24px 40px}
  .recs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .wrap{padding:0 28px}
  .layout-top,.head{grid-template-columns:1fr}
  .layout-top>section,.layout-top>.glance{grid-column:1;grid-row:auto}
  .glance{position:static;order:-1;margin-bottom:40px}
  .stats{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}
  .stats li:nth-last-child(2){border-bottom:0}
  .head .note{margin:0 0 0 44px;max-width:32ch;order:3}
  .head .note svg{top:-18px;height:30px;transform:scaleY(-1)}
  .row{grid-template-columns:36px minmax(0,1fr);grid-template-areas:"num text" "num res" "num go";gap:14px 16px}
  .res{max-width:420px}
  .featured,.index{grid-template-columns:1fr}
  .fig-d{display:none}
  .fig-m{display:block;margin:0 auto}
  .fig-notes{display:block;margin-top:-6px}
  .fig-notes .note{margin:0 0 8px 40px;max-width:30ch}
  .fig-notes .note svg{left:-36px;top:-16px;width:30px;height:28px}
  :where(.inner) figure{display:block}
  :where(.inner) figcaption{margin-top:14px}
  .figscroll{margin:0 -4px}
  .figscroll>svg{width:calc(var(--w) * 1.15px)}
  .hero{grid-template-columns:1fr;gap:0;padding-top:28px}
  .portrait{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:end;margin-bottom:22px}
  .portrait img{width:150px;height:170px;border-radius:var(--r)}
  .portrait .note{margin:0 0 6px 0;padding-top:30px}
  .portrait .note svg{left:-6px;top:-4px;width:36px;height:30px;transform:rotate(-80deg)}
  .earlier li{grid-template-columns:1fr;gap:2px}
}
@media (max-width:700px){
  body{font-size:17px}
  h2,:where(.inner) article h2{font-size:24px}
  .note{font-size:17px}
  footer{font-size:14px}
  .wrap{padding:0 18px}
  .top{position:static}
  .top .wrap{height:auto;flex-wrap:wrap;gap:8px 12px;padding-top:12px;padding-bottom:10px}
  .brand{font-size:17px}
  .brand img{width:30px;height:30px}
  .brand .logo{height:24px}
  .tools{gap:6px}
  .chip{font-size:14px;padding:6px 11px;gap:6px}
  .nav{order:3;width:100%;gap:0;justify-content:space-between;border-top:1px solid var(--line);padding-top:9px}
  .nav a{font-size:15px}
  .btn{font-size:16px;padding:10px 18px}
  .bars{font-size:14px;gap:7px 10px}
  .bars .v{font-size:15px}
  /* homepage */
  :where(.home) section{padding-top:56px}
  .hero{padding-top:20px}
  h1{font-size:30px}
  .eyebrow{font-size:14px;margin-bottom:10px}
  .portrait{grid-template-columns:130px 1fr;margin-bottom:20px}
  .portrait img{width:130px;height:140px}
  .lead{font-size:18px;margin-top:14px}
  .proofrow{display:none}
  .proof,.glance{padding:16px 16px 14px}
  .big{font-size:36px}
  .proof-label{font-size:15px}
  .facts{font-size:15px;gap:4px 16px}
  .sec-head{grid-template-columns:1fr;margin-bottom:20px}
  .sec-head .note{margin-left:44px}
  .sec-head .note svg{top:-14px;transform:scaleY(-1)}
  .case-nav,.links-list{grid-template-columns:1fr}
  .case,.rec{padding:18px 16px 16px}
  .case .chart{padding:12px 12px 10px}
  .case .bars .v{min-width:0}
  .case-foot{flex-direction:column;align-items:flex-end;gap:12px}
  .index a{grid-template-columns:124px minmax(0,1fr);gap:12px;padding:13px 2px}
  .index .fig b{font-size:18px}
  .index .fig small{font-size:13px}
  .index .t{font-size:16px}
  .index .c{font-size:14px}
  .recs{grid-template-columns:1fr;gap:16px}
  .rec blockquote{font-size:16px}
  .projects{grid-template-columns:1fr;gap:20px}
  .thumb{padding:12px}
  .proj-b{padding:12px 14px 14px}
  .proj h3{font-size:18px}
  .proj .meta{font-size:14px}
  .glance .note,.proj p.d{font-size:16px;margin-top:6px}
  .proj .links{font-size:15px;margin-top:8px}
  .earlier li{font-size:15px}
  .contact{padding:24px 18px;border-radius:var(--r);margin-top:56px}
  .links-list li:has(> .mail){order:9}
  /* case pages */
  .crumbs{font-size:15px;padding-top:18px}
  .case-head{padding-top:16px}
  .case-eyebrow{font-size:14px}
  .case-ctx{font-size:15px}
  .layout{margin-top:24px}
  .glance{margin-bottom:32px}
  .glance .btn{display:none}
  .glance .alt{display:block;margin-top:8px;font-size:15px;font-weight:700}
  .stats{grid-template-columns:1fr 1fr;column-gap:14px}
  .stats li{padding:10px 0;min-width:0}
  .stats b{font-size:22px;white-space:normal}
  .stats span.l{font-size:14px}
  :where(.inner) figure{padding:16px 10px 14px}
  .figscroll{margin:0}
  .figscroll>svg{width:100%}
  .figscroll .fig text{font-size:14px}
  .figscroll .fig :is(.t,.k,.v,.vb,.p,.n){font-size:16px}
  .figscroll .fig .sm{font-size:12.5px}
  :where(.inner) figcaption{padding:0 4px;font-size:14px}
  .fig-notes{padding:0 4px}
  .measure{font-size:15px}
  .case-nav .next{text-align:left}
  /* case-studies list */
  .head{padding-top:14px;gap:18px}
  .head h1 .l2{font-size:.6em;margin-top:6px}
  .intro{font-size:17px;margin-top:12px}
  .start{font-size:15px}
  .jump{gap:8px;margin-top:16px}
  .group{margin-top:44px}
  .group-h{margin-bottom:12px}
  .group-h p{font-size:14px}
  .list{padding:0 16px}
  .row{grid-template-columns:minmax(0,1fr);grid-template-areas:"num" "text" "res" "go";gap:10px;padding:20px 0}
  .num{font-size:14px;padding:0}
  .res{max-width:none}
  .res .note{margin-top:16px}
  .text h3{font-size:19px}
  .ctx{font-size:14px;margin-top:4px}
  .sum{font-size:16px;margin-top:8px}
  .panel{padding:12px 14px 11px}
  .rfig{font-size:23px}
  .lbl{font-size:14px}
  .go{padding-top:0}
  .outro{padding:22px 18px;border-radius:var(--r);margin-top:48px}
  .outro p{font-size:17px}
}
@media (max-width:420px){
  .brand .bn{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  h1{font-size:28px}
}
