/* Archivo (latin subset, variable weight 400–700, width 62–125%), self-hosted – SIL OFL 1.1 */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #F3F2EE;
  --ground-tint: #E4E3DD;
  --figure: #1B1B1A;
  --figure-hover: #3A3A36;
  --on-figure: #F3F2EE;
  --ink: #1B1B1A;
  --ink-muted: #5E5D58;
  --rule: #CFCEC7;
  --rot: #D21F12;
  --rot-hover: #B5190E;
  --on-rot: #FFFFFF;
  --f: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

/* Night mode: follows the system setting */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121211;
    --ground-tint: #22221F;
    --figure: #E9E8E2;
    --figure-hover: #CFCEC7;
    --on-figure: #121211;
    --ink: #E9E8E2;
    --ink-muted: #A3A29C;
    --rule: #3A3A36;
    --rot: #FF5A47;
    --rot-hover: #FF7A6A;
    --on-rot: #121211;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* No elastic bounce on phones: it drags the sticky header down/up at the page ends */
html { scroll-behavior: smooth; scroll-padding-top: 72px; overscroll-behavior-y: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--rot); text-decoration-color: var(--rot); }
a:focus-visible { outline: 2px solid var(--rot); outline-offset: 4px; }

/* Hero figure-ground plan */
.b { fill: var(--figure); }
.r { fill: var(--rot); }
.g { fill: var(--ground); }
.w { fill: none; stroke: var(--ground-tint); }
.wf { fill: var(--ground-tint); }
#top { overflow: hidden; }
/* Full width, but on wide screens capped at 60vh: the plan is cropped top/bottom
   (the name sits in the vertical middle), never cropped below half its height. */
.hero { display: block; width: 100%; height: clamp(22.22vw, 60vh, 44.44vw); }

/* Header */
.top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; padding: 22px 28px;
  position: sticky; top: 0; z-index: 10; background: var(--ground);
}
.top a { text-decoration: none; }
.brand { font-size: 17px; font-weight: 600; align-self: center; line-height: 0; }

/* Brand mark: two building blocks "A T" that unfold to "Achim Tack" below the hero (brand.js) */
.mark { display: block; height: 26px; overflow: visible; }
.mk-bg { fill: var(--figure); transition: fill .2s; }
.mk-s { transform-box: fill-box; transform-origin: 0 50%; }
.mk-t { fill: var(--on-figure); font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.mk1 .mk-s { transform: scaleX(var(--s1, .3)); }
.mk2 .mk-s { transform: scaleX(var(--s2, .37)); }
.mk2 { transform: translateX(var(--x2c, 29px)); }
.brand.open .mk-s { transform: none; }
.brand.open .mk2 { transform: translateX(var(--x2o, 61px)); }
@media (hover: hover) { .brand:hover .mk-bg { fill: var(--rot); } }
.brand:focus-visible { outline-offset: 6px; }
/* Unfold: first block grows and pushes the second, then the second grows.
   Fold back in reverse order. (The delays come from the target state.) */
.brand.ready .mk-s, .brand.ready .mk2 { transition: transform .42s cubic-bezier(.7, 0, .2, 1), fill .2s; }
.brand.ready .mk2 .mk-s { transition-delay: 0s; }
.brand.ready .mk1 .mk-s, .brand.ready .mk2 { transition-delay: .2s, 0s; }
.brand.ready.open .mk1 .mk-s, .brand.ready.open .mk2 { transition-delay: 0s; }
.brand.ready.open .mk2 .mk-s { transition-delay: .2s, 0s; }
/* Letters after the first fade in while their block grows, and out before it shrinks */
.mk-r { fill-opacity: 0; }
.brand.open .mk-r { fill-opacity: 1; }
.brand.ready .mk-r { transition: fill-opacity .15s; }
.brand.ready.open .mk1 .mk-r { transition: fill-opacity .3s .12s; }
.brand.ready.open .mk2 .mk-r { transition: fill-opacity .3s .32s; }
@media (prefers-reduced-motion: reduce) { .brand.ready .mk-s, .brand.ready .mk2, .brand.ready .mk-r { transition: fill .2s; } }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
/* Current page (Lab subpages) or the section in view on the homepage (brand.js) */
.nav a[aria-current] { color: var(--rot); }
.nav a { transition: color .15s; }

/* Sections on a 12-column grid */
.sec {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 12px;
  padding: 0 28px; margin-top: 144px;
  scroll-margin-top: 24px;
}
.sec.first { margin-top: 112px; }
.sec > .lbl { grid-column: 1 / span 3; margin: 0 0 24px; font-size: 17px; font-weight: 600; line-height: 1.55; }
.sec > .body { grid-column: 4 / span 9; }

.lead { margin: 0; max-width: 24em; font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; font-stretch: 92%; line-height: 1.1; letter-spacing: -0.015em; }
/* About: one big statement with an inline portrait, links underlined like the example */
.hello { margin: 0; max-width: 21em; font-size: clamp(28px, 4vw, 52px); font-weight: 500; font-stretch: 92%; line-height: 1.22; letter-spacing: -0.015em; }
.hello a { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: .07em; text-underline-offset: .16em; text-decoration-skip-ink: none; }
.hello a:hover { text-decoration-color: var(--rot); }
.hello-me { display: inline-block; width: 1.25em; height: 1.25em; margin: -.3em 0 -.2em .05em; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.intro { margin: 32px 0 0; max-width: 34em; font-size: 19px; line-height: 1.55; }

/* Contact: portrait as a small building with a chamfered corner, links beside it */
.reach-row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 46em); gap: 32px; align-items: start; }
.me { margin: 0; }
.me-ph { display: block; aspect-ratio: 1; background: var(--ground-tint); clip-path: polygon(0 22px, 22px 0, 100% 0, 100% 100%, 0 100%); }
.me-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* CV table */
.cvs { margin-top: 56px; max-width: 46em; border-top: 1px solid var(--ink); }
.cv { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 24px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.cv > span:first-child { color: var(--ink-muted); }

/* Block of plots ("buildings" on a city block) */
.blk { --s: 26px; --c: 34px; --wall: 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: var(--rows); gap: 6px; }
.plot { position: relative; display: block; background: var(--figure); color: var(--on-figure); text-decoration: none; transition: background-color .15s; }
.plot.red { background: var(--rot); color: var(--on-rot); }
/* Hover: the building turns red, like the one marked in the hero plan */
a.plot:hover { background: var(--rot); color: var(--on-rot); }
.plot.red:hover { background: var(--figure); color: var(--on-figure); }
.ins { position: absolute; top: var(--it, var(--wall)); right: var(--ir, var(--wall)); bottom: var(--ib, 84px); left: var(--il, var(--wall)); overflow: hidden; background: var(--ground-tint); }
.ins img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ins picture { display: contents; }
.cap { position: absolute; left: var(--cl, var(--wall)); right: var(--cr, var(--wall)); bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.pt { font-size: 19px; font-weight: 500; line-height: 1.15; }
/* English translation of a German project name (title_en) */
.pt .tr { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; font-style: italic; opacity: .82; }
.city > .plot:has(.tr) { --ib: 100px; }
.pm { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .82; }
/* Link arrow: → opens a page on this site, ↗ (.ext) leaves to the project */
a.plot .pm::after {
  content: ""; flex: none; width: 11px; height: 11px; background: var(--rot);
  -webkit-mask: var(--arr) center / contain no-repeat; mask: var(--arr) center / contain no-repeat;
  --arr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h9M6.5 2.5 10 6l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  transition: transform .15s ease;
}
a.plot.ext .pm::after { --arr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 9.5l7-7M4 2.5h5.5V8' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); }
a.plot:hover .pm::after, a.plot:focus-visible .pm::after { transform: translateX(3px); background: currentColor; }
a.plot.ext:hover .pm::after, a.plot.ext:focus-visible .pm::after { transform: translate(2px, -2px); }
/* Project names: .t-short replaces .t-long on mobile (set via short_title / by hand) */
.t-short { display: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.plot:hover .pt { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a.plot:focus-visible { outline: none; background: var(--rot); color: var(--on-rot); }
a.plot.red:focus-visible { background: var(--figure); color: var(--on-figure); }
.yard { position: relative; }
.shed { position: absolute; background: var(--figure); }

/* City block (Work, Lab): like a perimeter block in the hero plan. The buildings share
   party walls (thin parcel lines instead of streets), the block's corners are chamfered
   like Gründerzeit corner plots, the street front stays straight and only the courtyard
   side is ragged: wings (.shed at the yard's edge) and a rear building. */
.blk.court {
  --c: 30px; gap: 3px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)),
                     calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
/* "All lab projects": the rear building in the Lab courtyard, attached to the plot in front */
.plot.all { margin: 46px 28px 0; clip-path: polygon(0 0, 64% 0, 64% 12px, 100% 12px, 100% 100%, 0 100%); }
.plot.all .cap { bottom: 14px; left: 18px; right: 18px; }

/* ---------- Lab subpages (generated by build.py) ---------- */
h1.lbl { font-size: 17px; }
.tr-note { margin: 14px 0 0; font-size: 15px; font-style: italic; color: var(--ink-muted); }
.entry .lead { max-width: 20em; font-size: clamp(30px, 4vw, 56px); line-height: 1.04; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.crumb::before { content: "←"; font-weight: 400; color: var(--rot); transition: transform .15s ease; }
.crumb:hover::before { transform: translateX(-3px); }
.facts { margin: 24px 0 0; max-width: 16em; border-top: 1px solid var(--ink); font-size: 14px; font-weight: 400; }
.facts:empty { display: none; }
.facts dt { padding-top: 9px; color: var(--ink-muted); }
.facts dd { margin: 0; padding-bottom: 9px; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.cover { margin: 48px 0 0; background: var(--ground-tint); }
.cover img { display: block; width: 100%; max-height: 72vh; object-fit: cover; }

.prose { margin-top: 48px; max-width: 38em; font-size: 18px; line-height: 1.6; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin: 0 0 1.1em; }
.prose h2 { margin: 2.2em 0 .5em; font-size: 26px; font-weight: 500; font-stretch: 92%; line-height: 1.15; letter-spacing: -0.01em; }
.prose h3 { margin: 1.8em 0 .4em; font-size: 19px; font-weight: 600; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--rot); }
.prose img { display: block; max-width: 100%; height: auto; margin: 2em 0 .4em; background: var(--ground-tint); }
.prose p:has(> img:only-child) { margin: 0; }
.prose img + em, .prose figcaption { display: block; font-size: 14px; color: var(--ink-muted); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--rot); font-size: 21px; line-height: 1.4; }
.prose code { padding: .1em .3em; background: var(--ground-tint); font-size: .88em; }
.prose pre { padding: 16px 18px; overflow-x: auto; background: var(--ground-tint); font-size: 14px; line-height: 1.5; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { border-bottom-color: var(--ink); font-weight: 600; }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--rule); }
.prose .chart { margin: 2em 0; }
.prose .chart iframe { display: block; width: 0; min-width: 100%; border: none; }
.prose .maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin: 2em 0; }
.prose .maps figure { margin: 0; }
.prose .maps a { display: block; }
.prose .maps img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 .35em; }
@media (max-width: 560px) { .prose .maps { grid-template-columns: 1fr; } }

.pager { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 96px; }
.pager a { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 110px; padding: 16px 20px; background: var(--figure); color: var(--on-figure); font-size: 17px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.pager a span { font-size: 13px; font-weight: 400; opacity: .82; }
.pager a:hover, .pager a:focus-visible { background: var(--rot); color: var(--on-rot); outline: none; }
.pager .pg-all { grid-column: 1; }
.pager .pg-prev { grid-column: 2; }
.pager .pg-next { grid-column: 3; text-align: right; }

/* Overview: every project as a building in a loose grid */
/* Overview: every project as a building in one city block, like the homepage blocks:
   party walls instead of streets, chamfered block corners. The number of columns and
   entries varies, so the bottom-right corner is cut on the last building instead of
   the grid (it closes the block even when the last row is only partly built up). */
.city {
  --s: 26px; --wall: 20px; --c: 30px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 300px; gap: 3px; margin-top: 56px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.city > .plot:last-child { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); }

/* Contact & footer */
.contact { margin: 0; font-size: clamp(26px, 3vw, 42px); font-weight: 500; font-stretch: 92%; line-height: 1.15; letter-spacing: -0.015em; }
.cf-intro { margin: 12px 0 36px; max-width: 34em; font-size: 19px; color: var(--ink-muted); }
/* Contact rows: label left, address right, arrow at the end (→ mail, ↗ leaves the site) */
.reach { list-style: none; margin: 0; padding: 0; max-width: 46em; border-top: 1px solid var(--ink); }
.reach a {
  display: grid; grid-template-columns: 10em minmax(0, 1fr) auto; align-items: baseline; gap: 4px 24px;
  padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color .15s;
}
.reach .rk { font-size: 15px; color: var(--ink-muted); transition: color .15s; }
.reach .rv { font-size: clamp(21px, 2.2vw, 28px); font-weight: 500; font-stretch: 92%; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.reach a::after {
  content: ""; align-self: center; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--arr) center / contain no-repeat; mask: var(--arr) center / contain no-repeat; transition: transform .15s ease;
  --arr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h9M6.5 2.5 10 6l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  background: var(--rot);
}
.reach a.ext::after { --arr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 9.5l7-7M4 2.5h5.5V8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E"); }
.reach a:hover, .reach a:hover .rk { color: var(--rot); }
.reach a:hover::after { transform: translateX(4px); }
.reach a.ext:hover::after { transform: translate(3px, -3px); }
.reach a:focus-visible { outline: none; background: var(--rot); color: var(--on-rot); box-shadow: -12px 0 0 var(--rot), 12px 0 0 var(--rot); }
.reach a:focus-visible .rk { color: var(--on-rot); }
.reach a:focus-visible::after { background: currentColor; }
.foot { margin-top: 128px; padding-bottom: 40px; }
.foot-inner { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 14px; color: var(--ink-muted); }
.foot-inner nav { display: flex; gap: 24px; }
.foot-inner a { color: var(--ink-muted); }

@media (max-width: 900px) {
  html { scroll-padding-top: 56px; }
  .top { padding: 14px 16px; }
  /* The name replaces "About" and links to the About section (href switched in brand.js) */
  .top { flex-wrap: nowrap; align-items: center; column-gap: 12px; }
  .brand { flex: none; }
  .mark { height: 22px; width: auto; }
  .nav a[href$="#about"], .nav a[href$="#engagement"] { display: none; }
  .nav { flex: 1; flex-wrap: nowrap; gap: 12px 20px; overflow-x: auto; scrollbar-width: none; }
  .nav::before { content: ""; margin-left: auto; } /* right-align; unlike flex-end, stays scrollable if it overflows */
  .nav::-webkit-scrollbar { display: none; }
  .sec { padding: 0 16px; margin-top: 64px; }
  .sec.first { margin-top: 40px; }
  .sec > .lbl, .sec > .body { grid-column: 1 / -1; }
  .sec > .lbl { margin-bottom: 12px; }
  .sec > .lbl.hide-m { display: none; }
  .reach-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .blk > .plot:has(.tr) { --ib: 84px !important; }
  .intro { margin-top: 16px; font-size: 17px; }
  .cvs { display: none; }
  .blk { --s: 12px; --c: 20px; --wall: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 4px; }
  /* Height on the plots, not the rows, so the shorter "All" plot doesn't leave a gap */
  .blk > .plot { height: 230px; }
  .blk > .plot { --it: calc(var(--s) + var(--wall)) !important; --ir: var(--wall) !important; --il: var(--wall) !important; --ib: 66px !important; --cl: var(--wall) !important; --cr: var(--wall) !important; }
  .blk > .plot { grid-column: auto !important; grid-row: auto !important; }
  .blk > .plot.wide { grid-column: 1 / -1 !important; }
  .blk > .yard { display: none; }
  .blk > .plot.all { grid-column: 1 / -1 !important; height: 120px; margin: 0; clip-path: none !important; }
  .blk > .plot.all .cap { bottom: 16px; left: var(--wall); right: var(--wall); }
  /* No courtyard on phones: the block becomes one row of houses, flat-topped */
  .blk.court { --c: 18px; gap: 3px; }
  .blk.court > .plot { clip-path: none !important; --it: var(--wall) !important; }
  .t-long:has(+ .t-short) { display: none; }
  .t-short { display: inline; }
  .facts { max-width: none; }
  .cover, .prose { margin-top: 28px; }
  .prose { font-size: 17px; }
  .pager { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .pager a { min-height: 80px; }
  .pager .pg-all, .pager .pg-prev, .pager .pg-next { grid-column: 1; text-align: left; }
  .city { --s: 12px; --wall: 14px; --c: 18px; margin-top: 28px; grid-auto-rows: 240px; }
  .foot { margin-top: 56px; padding-bottom: 20px; }
  /* Contact on phones: just "Let's talk." and the links as building-blocks below */
  #contact .me { display: none; }
  #contact .reach { margin-top: 24px; }
  .cf-intro { display: none; }
  .reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border-top: 0; }
  .reach li:first-child { grid-column: 1 / -1; }
  .reach a {
    grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; height: 100%; box-sizing: border-box;
    padding: 14px 16px; border: 0; background: var(--figure); color: var(--on-figure);
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% 100%, 0 100%);
  }
  .reach li:first-child a { background: var(--rot); color: var(--on-rot); padding: 18px 16px; }
  .reach .rk { grid-column: 1; font-size: 13px; color: inherit; opacity: .75; }
  .reach .rv { grid-column: 1; font-size: 18px; }
  .reach li:first-child .rv { font-size: 21px; }
  .reach a::after { grid-column: 2; grid-row: 1 / span 2; background: currentColor; }
  .reach a:hover, .reach a:hover .rk { color: inherit; }
  .reach a:focus-visible { background: var(--figure); color: var(--on-figure); box-shadow: none; outline: 2px solid var(--rot); outline-offset: -2px; clip-path: none; }
  .reach li:first-child a:focus-visible { background: var(--rot); color: var(--on-rot); outline-color: var(--ink); }
  .reach a:focus-visible .rk { color: inherit; }
}

@media (max-width: 560px) {
  .blk { grid-template-columns: minmax(0, 1fr); }
  .blk > .plot:not(.all) { height: 220px; }
  .blk > .plot { grid-column: 1 / -1 !important; }
  .pt { font-size: 17px; }
  .cap { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) { .plot, .ins img, a.plot .pm::after, .reach a, .reach a::after, .nav a { transition: none; } a.plot .pm::after, .reach a::after { transform: none !important; } }

/* Smallest phones: keep the unfolded name and all nav links on one line */
@media (max-width: 399px) { .nav { font-size: 14px; } }
