/* zdeeno.cz — shared by / (English) and /cs/ (Czech, generated by tools/build_cs.py) */

/* fonts: self-hosted copies of Inter Tight (variable 300–700) and IBM Plex Mono, both SIL OFL */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400-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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-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; }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/inter-tight-italic-300-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/inter-tight-italic-300-700-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; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/inter-tight-300-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/inter-tight-300-700-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 {
  --paper: #f1ede3;
  --ink: #1d1c19;
  --ink-2: #5d594f;
  --grid: rgba(29, 28, 25, .055);
  --route: rgba(29, 28, 25, .55);
  --signal: #3ea3fb;
  --particle: rgba(62, 163, 251, .55);
  --pin-fill: #f1ede3;
  --honey: #c98a12;
  --olive: #8a8c63;
  --metal: #1d1c19;
  --metal-edge: #1d1c19;
  --card: #faf8f3;
  /* accents dark enough for text on the light paper (≥ 4.5:1); --signal / --honey stay for graphics */
  --signal-text: #0b6cc2;
  --honey-text: #8f5f00;
}
/* Dark theme: follows the system unless the visitor picked one with the switch in the top bar
   (data-theme on <html>, set before first paint by the script in <head>). Keep the two lists equal. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #181d20;
  --ink: #e7e3d8;
  --ink-2: #8f9a9c;
  --grid: rgba(231, 227, 216, .05);
  --route: rgba(231, 227, 216, .45);
  --signal: #3ea3fb;
  --particle: rgba(62, 163, 251, .6);
  --pin-fill: #181d20;
  --honey: #f0b43c;
  --olive: #5f6446;
  --metal: #090b0c;
  --metal-edge: #8f9a9c;
  --card: #222a2e;
  --signal-text: #3ea3fb;
  --honey-text: #f0b43c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #181d20;
    --ink: #e7e3d8;
    --ink-2: #8f9a9c;
    --grid: rgba(231, 227, 216, .05);
    --route: rgba(231, 227, 216, .45);
    --signal: #3ea3fb;
    --particle: rgba(62, 163, 251, .6);
    --pin-fill: #181d20;
    --honey: #f0b43c;
    --olive: #5f6446;
    --metal: #090b0c;
    --metal-edge: #8f9a9c;
    --card: #222a2e;
    --signal-text: #3ea3fb;
    --honey-text: #f0b43c;
  }
}
:root {
  /* type scale */
  --h1: clamp(56px, 9vw, 120px);
  --h2: clamp(40px, 5vw, 64px);
  --h3: clamp(26px, 2.4vw, 32px);
  --h4: clamp(20px, 1.8vw, 24px);
  --h5: 18px;
  /* vertical rhythm */
  --section-y: clamp(72px, 8vw, 112px);
  --block-gap: 56px;
  /* shape */
  --radius: 16px;
}
@media (max-width: 720px) { :root { --section-y: 56px; --block-gap: 36px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font: 16px/1.6 "Inter Tight", system-ui, sans-serif;
  overflow-x: hidden;
}
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 64px; }

/* ---------- full-width dividers between sections (same as the header line) ---------- */
.wrap > section + section, .wrap > footer { position: relative; }
.wrap > section + section::after, .wrap > footer::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 0; transform: translateX(-50%);
  border-top: 1px dotted var(--route); pointer-events: none;
}

/* ---------- link button (same look as the video Play button) ---------- */
.go {
  display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; margin-left: 14px;
  padding: 6px 14px 6px 6px; border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink);
  font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; transition: background .2s;
}
.go-dot {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--signal); color: #fff;
}
.go-dot svg { width: 14px; height: 14px; transition: transform .25s ease; }
.projects .go-dot { background: var(--honey); }
.projects .go { margin: auto 0 0; align-self: flex-start; }
.projects a > :nth-last-child(2) { margin-bottom: 28px; }
a:hover .go, a:focus-visible .go { background: color-mix(in srgb, var(--ink) 16%, transparent); }
a:hover .go-dot svg, a:focus-visible .go-dot svg { transform: translate(1.5px, -1.5px); }
a.go { text-decoration: none; outline: none; }
/* buttons that sit under their text */
.lab-go, .trial > .go, .trial-body > .go, .wp a > .go { display: flex; width: max-content; margin: 28px 0 0; }
.wp a > .go { margin-top: 20px; }
.trial > .go, .trial-body > .go { margin-top: auto; }
a.go:hover, a.go:focus-visible { background: color-mix(in srgb, var(--ink) 16%, transparent); }
a.go:focus-visible { box-shadow: 0 0 0 2px var(--signal); }

/* ---------- hero ---------- */
.top {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.top b { color: var(--signal-text); font-weight: 500; }
.top-bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px dotted var(--route);
}
.top { align-items: center; padding-top: 14px; padding-bottom: 14px; }
@media (min-width: 721px) {
  .top { display: grid; grid-template-columns: 1fr auto 1fr; }
  .top > :last-child { justify-self: end; }
}
.top a { color: inherit; text-decoration: none; }
.top-end { display: flex; align-items: center; gap: 16px; }
.top .lang { padding: 3px 10px; border: 1px dotted var(--route); border-radius: 99px; color: var(--ink); transition: background .2s; }
.top .lang:hover, .top .lang:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); outline: none; }
.theme {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px dotted var(--route); border-radius: 50%;
  background: none; color: var(--ink); cursor: pointer; transition: background .2s;
}
.theme:hover, .theme:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); outline: none; }
.theme svg { width: 14px; height: 14px; }
.theme .sun { display: none; }   /* light theme shows the moon (switch to dark), dark shows the sun */
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
@media (max-width: 400px) { .top .st-label { display: none; } }
.top-nav { display: flex; gap: 4px; }
.top-nav a {
  padding: 7px 14px; border-radius: 99px; font-size: 13px; letter-spacing: .02em; text-transform: none;
  color: var(--ink); transition: background .2s, color .2s;
}
.top-nav a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.top-nav a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.top-nav a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.hero {
  min-height: calc(100vh - 52px); min-height: calc(100svh - 52px);
  display: flex; flex-direction: column; justify-content: center; padding: 6vh 0;
}
h1 {
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500;
 
  font-size: var(--h1); line-height: .95; letter-spacing: -.025em;
  margin: 0;
}
h1 em { font-style: normal; font-weight: inherit; color: inherit; }
.hero-grid {
  --photo: clamp(230px, 23vw, 320px);
  display: grid; align-items: center; column-gap: clamp(64px, 7vw, 112px);
  grid-template-columns: minmax(0, 1fr) var(--photo);
  grid-template-areas: "affil photo" "name photo" "bio photo";
  container-type: inline-size;
}
.hero-grid > .affil { grid-area: affil; align-self: end; }
/* the name scales with its column so "Rozsypálek Ph.D." (≈ 6.05em) always fits on one line */
.hero-grid > h1 { grid-area: name; font-size: min(var(--h1), calc((100cqi - var(--photo) - clamp(64px, 7vw, 112px)) / 6.2)); }
.phd { margin-left: .1em; font-size: .5em; font-weight: 400; letter-spacing: -.015em; color: var(--signal-text); white-space: nowrap; }
.hero-grid > .hero-row { grid-area: bio; align-self: start; margin-top: 36px; }
/* two photos as a small overlapping pair: portrait top right, lab photo bottom left */
.photos { grid-area: photo; position: relative; width: 100%; aspect-ratio: 1 / 1.2; }
.photos picture { position: absolute; display: block; }
.photos .ph-me { top: 0; right: 0; width: 64%; }
.photos .ph-lab { left: 0; bottom: 0; width: 80%; }
.photos img {
  display: block; width: 100%; height: auto; object-fit: cover;
  border-radius: 12px; background: var(--card);
}
.photos .ph-me img { aspect-ratio: 4 / 5; }
.photos .ph-lab img { aspect-ratio: 4 / 3; box-shadow: 0 0 0 6px var(--paper); }
@media (min-width: 1101px) {
  /* same two columns as the lab section below: the photos start where its right-hand list starts */
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 80px; }
  .hero-grid > h1 { font-size: min(var(--h1), calc((100cqi - 80px) * 1.35 / 2.35 / 6.1)); }
  .photos { width: var(--photo); justify-self: start; }
}
/* Prague as a robot sees it, drawn faintly along the bottom of the first screen (tools/make_skyline.py).
   The band is as tall as the window allows; the drawing fills its height and is cropped at the sides,
   which works while the band is no flatter than the drawing (3000:360, so at least 12vw tall). */
.hero {
  --sky: max(190px, clamp(12.2vw, 25vh, 18vw));
  position: relative; isolation: isolate;
  padding-bottom: calc(var(--sky) * .6);   /* the text stops above the low, left part of the drawing */
}
.skyline {
  position: absolute; z-index: -1; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100vw; height: var(--sky); pointer-events: none;
}
.sk-city { color: var(--ink); opacity: .45; }
.sk-seen { color: var(--signal); opacity: .75; }
:root[data-theme="dark"] .sk-city { opacity: .26; }
:root[data-theme="dark"] .sk-seen { opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sk-city { opacity: .26; } :root:not([data-theme="light"]) .sk-seen { opacity: .55; } }
/* the cathedral's coordinates, pinned inside the top right corner of the camera frame (x 1922, y 10 of the drawing) */
.sk-label {
  position: absolute; z-index: -1; right: calc(50% - var(--sky) * 1.172); top: calc(100% - var(--sky) * .972);
  font-size: 9.5px; line-height: 1.35; letter-spacing: .04em; text-align: right; color: var(--signal-text); opacity: .6;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-row {
  display: grid; gap: 14px; margin-top: 12px; max-width: 84ch;
}
.bio { font-size: 15.5px; margin: 0; color: var(--ink-2); }
.bio.lead { font-size: 17.5px; line-height: 1.6; color: var(--ink); }
.bio a { color: inherit; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.bio a:hover { color: var(--signal-text); }
.bio .hl { font-style: italic; color: var(--signal-text); }
.contact { margin: 6px 0 0; font-size: 12px; letter-spacing: .02em; }
.contact, .f-contact { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.contact a, .f-contact a { overflow-wrap: anywhere; }
.c-kind { color: var(--ink-2); }
@media (max-width: 420px) { .c-kind { display: none; } }   /* the address alone just fits a phone line */
@media (max-width: 340px) { .contact { font-size: 11px; letter-spacing: 0; } }
.contact a, footer a { color: var(--signal-text); text-decoration: none; }
.contact a::before { content: "→ "; }
.contact a:hover, .contact a:focus-visible, footer a:hover, footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
.legend {
  justify-self: end; font-size: 12px; letter-spacing: .04em; color: var(--ink-2); line-height: 1.9;
  border-left: 1px dotted var(--route); padding-left: 16px;
}
.legend span { display: inline-block; width: 18px; vertical-align: middle; margin-right: 8px; }
.legend .l-route { border-top: 1.5px dashed var(--route); }
.legend .l-bot { height: 10px; width: 10px; margin: 0 16px 0 4px; border-radius: 50%; background: var(--signal); }
.legend .l-pf { width: 18px; height: 10px; background: radial-gradient(circle, var(--particle) 1.5px, transparent 2px) 0 0 / 6px 5px; }

/* ---------- route ---------- */
.route { position: relative; padding: var(--section-y) 0; }
.route-head { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: flex-end; gap: 24px; margin-left: var(--text, 38%); }
.route-head .kicker { margin: 0 auto 0 0; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#path { fill: none; stroke: var(--route); stroke-width: 1.5; stroke-dasharray: 6 7; }
#teach { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.particle { fill: var(--particle); }
#bot-body { fill: var(--signal); }
#bot-ring { fill: none; stroke: var(--signal); stroke-width: 1; opacity: .35; }

/* The route keeps to a lane on the left; text always starts at --text. */
.route { --text: 38%; }
.wp { position: relative; padding: 4.5vh 0; --x: 8%; }
.wp:nth-of-type(2) { --x: 27%; }
.wp:nth-of-type(3) { --x: 12%; }
.wp:nth-of-type(4) { --x: 30%; }
.wp:nth-of-type(5) { --x: 16%; }
.wp:nth-of-type(6) { --x: 28%; }
.wp:nth-of-type(7) { --x: 14%; }
.wp:nth-of-type(8) { --x: 26%; }
.wp:nth-of-type(9) { --x: 12%; }
.wp::before {
  content: ""; position: absolute; top: 50%; left: calc(var(--x) + 18px);
  width: calc(var(--text) - var(--x) - 34px); border-top: 1px dotted var(--route);
  transition: border-color .25s;
}
.wp.active::before { border-top-color: var(--signal); }
.pin {
  position: absolute; left: var(--x); top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; border: 1.5px solid var(--ink); background: var(--pin-fill);
  transition: transform .25s ease, border-color .25s ease; z-index: 1;
}
.pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); transition: background .25s; }
.wp.active .pin { transform: scale(1.25); border-color: var(--signal); }
.wp.active .pin::after { background: var(--signal); }

.wp > a, .wp > .wp-card {
  position: relative; z-index: 2; display: block; width: max-content; max-width: min(440px, 80vw);
  margin-left: var(--text); color: inherit; text-decoration: none; outline: none;
}
.meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.meta .lock { color: var(--signal-text); }
.wp h2 {
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500;
  font-size: var(--h2); line-height: 1; margin: 6px 0 12px; letter-spacing: -.02em;
}
.wp a:focus-visible h2 { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 6px; }
.wp p { margin: 0; color: var(--ink-2); font-size: 15px; }
.host { margin-top: 10px; font-size: 12px; letter-spacing: .02em; color: var(--signal-text); }
.profiles { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; letter-spacing: .02em; }
.profiles a { color: var(--signal-text); text-decoration: none; border-bottom: 1px solid transparent; }
.profiles a::before { content: "→ "; }
.profiles a:hover, .profiles a:focus-visible { border-bottom-color: currentColor; outline: none; }
/* side projects: smaller waypoints, the whole card is the link */
.wp.minor { padding: 2.6vh 0; }
.wp.minor h2 { font-size: var(--h3); line-height: 1.1; margin: 4px 0 8px; letter-spacing: -.015em; }
.wp.minor .go { display: none; }
.wp.minor a:hover h2 { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Wide screens: the route runs down a lane just left of the text column and the
   waypoints alternate sides. Each one spans two grid rows and the two sides are
   offset by a row, so the list takes about half the height of a single column.
   Right-hand cards still start at --text, in line with the rest of the page. */
@media (min-width: 760px) {
  .route {
    --text: max(38%, 400px); --lane: 120px;
    display: grid; grid-template-columns: calc(var(--text) - var(--lane)) var(--lane) minmax(0, 1fr); align-items: center;
  }
  .route-head { grid-column: 3; grid-row: 1; margin: 0 0 2vh; flex-wrap: wrap; }
  .route-head .legend > div { white-space: nowrap; }
  .wp, .wp.minor { padding: 2vh 0; display: flex; align-self: stretch; align-items: center; }
  .wp:nth-of-type(odd)  { grid-column: 3; --x: calc(var(--lane) / -2 + var(--dx, 0px)); }
  .wp:nth-of-type(even) { grid-column: 1; --x: calc(100% + var(--lane) / 2 + var(--dx, 0px)); justify-content: flex-end; }
  .wp:nth-of-type(1) { grid-row: 2 / span 2; --dx: 12px; }
  .wp:nth-of-type(2) { grid-row: 3 / span 2; --dx: -16px; }
  .wp:nth-of-type(3) { grid-row: 4 / span 2; --dx: 18px; }
  .wp:nth-of-type(4) { grid-row: 5 / span 2; --dx: -10px; }
  .wp:nth-of-type(5) { grid-row: 6 / span 2; --dx: 14px; }
  .wp:nth-of-type(6) { grid-row: 7 / span 2; --dx: -18px; }
  .wp:nth-of-type(7) { grid-row: 8 / span 2; --dx: 10px; }
  .wp:nth-of-type(8) { grid-row: 9 / span 2; --dx: -14px; }
  .wp:nth-of-type(9) { grid-row: 10 / span 2; --dx: 16px; }
  .wp > a, .wp > .wp-card { margin-left: 0; max-width: min(440px, 100%); }
  .wp:nth-of-type(even) > a, .wp:nth-of-type(even) > .wp-card { margin-right: 28px; text-align: right; }
  .wp:nth-of-type(even) a > .go { margin-left: auto; }
  /* the dotted connector runs between the pin and the near edge of the card */
  .wp:nth-of-type(odd)::before  { left: calc(var(--x) + 16px); width: calc(-1 * var(--x) - 28px); }
  .wp:nth-of-type(even)::before { left: auto; right: calc(-1 * var(--lane) / 2 - var(--dx) + 16px); width: calc(var(--lane) / 2 + var(--dx) - 16px + 12px); }
}


/* ---------- hive ---------- */
.hive {
  position: relative; margin: 0; padding: var(--section-y) 0;
}
.hive-head { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; align-items: end; }
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.kicker b { color: var(--honey-text); font-weight: 500; }
.hive h2 {
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500;
  font-size: var(--h2); line-height: 1; letter-spacing: -.02em; margin: 0;
}
.hive h2 em { font-style: normal; color: var(--honey-text); }
.hive-head > p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 86ch; }
.hive-head > p strong { color: var(--ink); font-weight: 500; }

.projects { list-style: none; margin: var(--block-gap) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.projects li { display: flex; padding: 0; border-radius: var(--radius); background: var(--card); }
.projects a { color: inherit; text-decoration: none; display: flex; flex-direction: column; width: 100%; padding: 32px 32px 34px; outline: none; }
.projects .prog { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.projects h3 { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500; font-size: var(--h3); line-height: 1.1; margin: 14px 0 14px; letter-spacing: -.015em; }
.projects a:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: 5px; }
.projects p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 42ch; }

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: var(--block-gap); }
.video { margin: 0; }
.player {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: #000; cursor: pointer; overflow: hidden; border-radius: var(--radius);
}
.player img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: opacity .25s, transform .4s ease; }
.player:hover img, .player:focus-visible img { opacity: 1; transform: scale(1.02); }
.player .play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 99px; background: var(--paper); color: var(--ink);
  font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase;
}
.player .play svg { width: 18px; height: 18px; color: var(--signal); }
.player:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; font-size: 15px; }
.video figcaption span { color: var(--ink-2); }
.video figcaption .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }

/* ---------- competitions ---------- */
.trials { margin-top: var(--block-gap); padding: var(--block-gap) 0 0; border-top: 1px dotted var(--route); scroll-margin-top: 64px; }
.trials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 32px; }
.trial { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 56px 8px 0; color: inherit; text-decoration: none; outline: none; }
.trial + .trial { padding-left: 56px; border-left: 1px dotted var(--route); }
.trial .big {
  display: flex; align-items: flex-start; height: .86em; margin-bottom: 28px;
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500;
  font-size: clamp(72px, 7vw, 104px); line-height: .86; letter-spacing: -.03em; color: var(--signal-text);
}
.trial .big sup { font-size: .34em; line-height: 1; letter-spacing: 0; vertical-align: baseline; margin: .02em 0 0 .06em; }
.trial .meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.trial h3 { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500; font-size: var(--h3); line-height: 1.1; letter-spacing: -.015em; margin: 0; }
.trial:focus-visible h3, .trial-body:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 5px; }
.trial p { margin: 16px 0 28px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 52ch; }
/* a trial with a video: the text is the link, the small thumbnail sits beside the big number */
div.trial { position: relative; }
.trial-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; color: inherit; text-decoration: none; outline: none; }
/* a full-width trial under the others, with its press coverage in the same box */
.trials-grid .trial.wide { grid-column: 1 / -1; margin-top: 48px; padding: 48px 0 8px; border-left: 0; border-top: 1px dotted var(--route); }
.trial.wide .trial-body { align-self: stretch; }
.trial.wide p { max-width: 78ch; }
.trial.wide .press { margin-top: 28px; }
.trial.wide .press ul { grid-auto-flow: column; justify-content: start; column-gap: 40px; }
.press ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; line-height: 1.45; letter-spacing: .02em; }
.press a { color: var(--signal-text); text-decoration: none; }
.press a::before { content: "→ "; }
.press a span { color: var(--ink-2); }
.press a:hover, .press a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.mini { position: absolute; top: 4px; right: 56px; width: clamp(150px, 34%, 210px); margin: 0; }
.mini .play { left: 8px; bottom: 8px; padding: 5px; }
.mini .play svg { width: 16px; height: 16px; }
.mini figcaption { margin-top: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
/* the video opens large, over the page */
.vbox { width: min(1100px, 94vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.vbox::backdrop { background: rgba(12, 12, 10, .82); }
.vbox .player { cursor: default; }
.vbox-close {
  position: absolute; right: 0; bottom: calc(100% + 10px); padding: 6px 14px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--paper); color: var(--ink); font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase;
}
.vbox-close:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- papers ---------- */
/* ---------- blog: one element that opens the blog sub-site ---------- */
.blog { padding: var(--section-y) 0; }
.blog-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 3.4vw, 44px); border-radius: 22px; background: var(--card);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); color: inherit; text-decoration: none;
  transition: border-color .25s;
}
.blog-feature:hover, .blog-feature:focus-visible { border-color: var(--signal); outline: none; }
.blog-feature h2 { font-size: var(--h2); line-height: 1; letter-spacing: -.02em; font-weight: 600; margin: 0 0 18px; }
.blog-feature h2 span { color: var(--ink-2); font-weight: 400; }
.bf-desc { margin: 0 0 22px; color: var(--ink-2); max-width: 46ch; }
.bf-list { list-style: none; margin: 0; padding: 0; }
.bf-list li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px dotted var(--route); font-size: 16px; line-height: 1.3; }
.bf-list li:last-child { border-bottom: 1px dotted var(--route); }
.bf-list .mono { font-size: 11.5px; letter-spacing: .08em; color: var(--signal-text); }
.bf-list .wip-tag { margin-left: auto; padding-left: 10px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--honey-text); white-space: nowrap; }
.blog-feature > .bf-text > .go { display: flex; width: max-content; margin: 26px 0 0; }
.blog-feature .go-dot { background: var(--signal); }
.bf-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-mosaic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); transition: transform .35s ease; }
.bf-mosaic img.wide { grid-column: 1 / -1; aspect-ratio: 33 / 10; object-position: 50% 45%; }
.blog-feature:hover .bf-mosaic img:nth-child(odd) { transform: translateY(-4px); }
.blog-feature:hover .bf-mosaic img:nth-child(even) { transform: translateY(4px); }
@media (max-width: 860px) { .blog-feature { grid-template-columns: 1fr; } .bf-mosaic { order: -1; } }
@media (prefers-reduced-motion: reduce) { .bf-mosaic img { transition: none; } .blog-feature:hover .bf-mosaic img { transform: none; } }
.papers { padding: var(--section-y) 0; }
.papers-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.papers .all { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-text); text-decoration: none; }
.papers .all:hover { text-decoration: underline; text-underline-offset: 4px; }
.papers ol { list-style: none; margin: 20px 0 0; padding: 0; }
.papers li + li { border-top: 1px dotted var(--route); }
.papers li a {
  display: grid; grid-template-columns: 72px 1fr minmax(220px, 360px); gap: 32px; align-items: baseline;
  padding: 26px 0; color: inherit; text-decoration: none; outline: none;
}
.papers .yr { font-size: 12px; letter-spacing: .08em; color: var(--ink-2); }
.papers .ttl { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500; letter-spacing: -.005em; font-size: var(--h5); line-height: 1.4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.papers li a:hover .ttl .t, .papers li a:focus-visible .ttl .t { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.papers .first { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--signal-text); border: 1px solid currentColor; border-radius: 99px; padding: 2px 8px; white-space: nowrap; align-self: center; }
.papers .venue { font-size: 12px; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.projects .award { display: block; margin-top: 18px; font-size: 11px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--honey-text); }

/* ---------- affiliation & lab ---------- */
.affil { margin: 0 0 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lab {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0 80px; align-items: stretch;
  margin: 0; padding: var(--section-y) 0;
}
.lab-name {
  display: inline-block; color: var(--ink); text-decoration: none; outline: none;
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500;
  font-size: var(--h2); line-height: 1; letter-spacing: -.02em;
}
.lab-name:focus-visible { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 8px; }
.lab-desc { margin: 18px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 78ch; }
.lab-desc strong { color: var(--ink); font-weight: 500; }
.lab-claim {
  margin: 24px 0 0; max-width: 40ch; color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500; letter-spacing: -.01em; font-size: var(--h4); line-height: 1.3;
}
.lab-claim em { font-style: italic; color: var(--signal-text); }
.lab-themes { grid-column: 1 / -1; grid-row: 2; list-style: none; counter-reset: t; margin: var(--block-gap) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lab-themes li { counter-increment: t; display: flex; flex-direction: column; gap: 6px; padding: 28px 28px 30px; border-radius: var(--radius); background: var(--card); }
.lab-themes li::before { content: "0" counter(t); font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .08em; color: var(--signal-text); margin-bottom: 6px; }
.lab-themes b { font-weight: 500; font-size: var(--h5); line-height: 1.3; letter-spacing: -.005em; }
.lab-themes span { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.lab-themes .refs { display: grid; gap: 4px; margin-top: auto; padding-top: 16px; font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
.lab-themes .refs a { color: var(--signal-text); text-decoration: none; }
.lab-themes .refs a::before { content: "→ "; }
.lab-themes .refs a:hover, .lab-themes .refs a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.lab-wins { grid-column: 2; grid-row: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lab-wins li { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 0; }
.lab-wins li + li { border-top: 1px dotted var(--route); }
.lab-wins b { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500; font-size: var(--h3); line-height: 1.1; letter-spacing: -.015em; }
.lab-wins span { font: 12px/1.5 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- fleet illustration ---------- */
.fleet { position: relative; margin: var(--block-gap) 0 0; padding: 44px 0 52px; }
.fleet::before, .fleet::after {
  content: ""; position: absolute; left: 0; right: 0; height: 0;
  border-top: 1px dotted var(--route); pointer-events: none;
}
.fleet::before { top: 0; }
.fleet::after { bottom: 0; }
.fleet figcaption { margin-bottom: 20px; }
.fleet .ground, .fleet .dim path, .fleet .dim-bg { display: none; }
.fleet svg { display: block; width: 100%; height: auto; overflow: visible; }
.fleet .ground { stroke: var(--route); stroke-width: 1.5; stroke-dasharray: 6 7; fill: none; }
.fleet .shadow { fill: var(--ink); opacity: .08; }
.fleet .line { stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.fleet .ink { fill: var(--metal); stroke: var(--metal-edge); stroke-width: 1.2; }
.fleet .paper { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.fleet .honey { fill: var(--honey); stroke: var(--ink); stroke-width: 1.8; }
.fleet .olive { fill: var(--olive); stroke: var(--ink); stroke-width: 1.8; }
.fleet .hatch { fill: url(#hatch); stroke: none; }
.fleet .hatch-line { stroke: var(--ink); stroke-width: 1; opacity: .18; }
.fleet .lens { fill: var(--signal); }
.fleet .tyre { fill: var(--metal); stroke: var(--metal-edge); stroke-width: 1.2; }
.fleet .lugs { fill: none; stroke: var(--paper); stroke-width: 2.4; opacity: .35; }
.fleet .rim { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.fleet .hub { fill: var(--metal); }
.fleet .leg { fill: none; stroke: var(--metal-edge); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.fleet .leg.far { opacity: .35; }
.fleet .joint { fill: var(--honey); stroke: var(--ink); stroke-width: 1.6; }
.fleet .stripe { stroke: var(--honey); stroke-width: 3; }
.fleet .scan { fill: none; stroke: var(--signal); stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .8; }
.fleet .comb-line { fill: none; stroke: var(--honey); stroke-width: 1; opacity: .55; }
.fleet .lens-bg { fill: var(--paper); }
.fleet .lens-ring { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.fleet .lens-handle { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.fleet .lens-leader { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: .6; fill: none; }
.fleet .dot { fill: var(--honey); stroke: var(--ink); stroke-width: .6; }
.fleet .bee-body { fill: var(--honey); stroke: var(--metal-edge); stroke-width: 1.4; }
.fleet .bee-stripe { stroke: var(--metal); stroke-width: 3; }
.fleet .bee-head { fill: var(--metal); stroke: var(--metal-edge); stroke-width: 1; }
.fleet .wing { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1; opacity: .85; }
.fleet .line.thin { stroke-width: 1.1; }
.fleet .zoom { font: 500 12px "IBM Plex Mono", monospace; fill: var(--signal-text); }
.fleet .door { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.1; }
.fleet .wire { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 4; opacity: .7; }
.fleet .person rect, .fleet .person circle { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.4; }
.fleet .dim path { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.fleet .dim-bg { fill: var(--paper); }
.fleet .dim-text { font: 500 13px "IBM Plex Mono", monospace; fill: var(--ink-2); letter-spacing: .04em; }
.fleet .mass { font: 500 13px "IBM Plex Mono", monospace; letter-spacing: .06em; fill: var(--signal-text); }
.fleet .model { font: 500 26px "Inter Tight", system-ui, sans-serif; fill: var(--ink); }
.fleet .brand { font: 500 11.5px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink-2); }
.fleet .bot { transition: transform .35s ease; transform-box: fill-box; }
.fleet .bot:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: no-preference) {
  .fleet .scan { animation: scan 2.4s linear infinite; }
  @keyframes scan { to { stroke-dashoffset: -32; } }
}

/* ---------- peers ---------- */
#team { scroll-margin-top: 64px; }
.peers {
  grid-column: 1 / -1; padding: var(--section-y) 0 0;
  display: grid; grid-template-columns: 1.35fr 1fr; column-gap: 80px; align-items: start;
}
.peers > .kicker, .peers > .peers-lead { grid-column: 1; }
.peers > .peer-list { grid-column: 2; grid-row: 1 / span 3; }
.peers-lead {
  margin: 14px 0 0; max-width: 22ch; color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500; letter-spacing: -.015em;
  font-size: var(--h3); line-height: 1.1;
}
.peers .peer-list { list-style: none; margin: 0; padding: 0; }
.peers .peer-list > li { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; }
.peers .peer-list > li:first-child { padding-top: 0; }
.peers .peer-list > li:last-child { padding-bottom: 0; }
.peers .peer-list > li + li { border-top: 1px dotted var(--route); }
.peers .pname { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500; letter-spacing: -.01em; font-size: var(--h4); line-height: 1.3; color: inherit; text-decoration: none; outline: none; width: max-content; max-width: 100%; }
.peers .pname { transition: color .2s; }
.peers .pname:hover, .peers .pname:focus-visible { color: var(--signal-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.peers .prole { font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.peers .plinks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
.peers .plinks a { color: var(--signal-text); text-decoration: none; }
.peers .plinks a::before { content: "→ "; }
.peers .plinks a:hover, .peers .plinks a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* shared-papers matrix: one column per paper, one row per person */
.peers > .coauth { grid-column: 1; grid-row: 3; margin: 64px 0 0; max-width: 620px; }
.ca-head { margin: 0 0 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ca-grid {
  --row: 32px;
  display: grid; grid-template-columns: max-content repeat(var(--n), minmax(0, 1fr));
  grid-template-rows: repeat(4, var(--row)) auto;
}
.ca-c { display: contents; }
.ca-name { grid-column: 1; align-self: center; padding-right: 20px; white-space: nowrap; font-size: 12px; letter-spacing: .02em; color: var(--ink-2); }
.ca-name b { margin-left: 8px; font-weight: 500; color: var(--ink); }
.ca-col { grid-row: 1 / 5; position: relative; z-index: 0; border-radius: 8px; outline: none; transition: background .2s; }
.ca-col:hover, .ca-col:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.ca-col:focus-visible { box-shadow: 0 0 0 2px var(--signal); }
.ca-line, .ca-dot { position: relative; z-index: 1; pointer-events: none; justify-self: center; }
.ca-line { width: 0; margin: calc(var(--row) / 2) 0; border-left: 1px dotted var(--signal); }
.ca-dot { align-self: center; width: 4px; height: 4px; border-radius: 50%; background: var(--route); opacity: .55; }
.ca-dot.on { width: 10px; height: 10px; background: var(--signal); opacity: 1; }
.ca-dot.first { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 3.5px var(--signal); }
.ca-year { grid-row: 5; margin-top: 8px; padding: 6px 0 0 6px; border-left: 1px dotted var(--route); font-size: 11px; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
.ca-year .ys { display: none; }
/* narrow matrix (phones, and the slim left column on tablets): surnames and short years */
.coauth { container-type: inline-size; }
@container (max-width: 520px) {
  .ca-name { padding-right: 12px; }
  .ca-given { display: none; }
  .ca-year { padding-left: 2px; font-size: 10px; letter-spacing: -.04em; }
  .ca-year .yl { display: none; }
  .ca-year .ys { display: inline; }
}
@container (max-width: 380px) { .ca-year .ap { display: none; } }
.coauth figcaption { margin-top: 20px; max-width: 58ch; font-size: 12px; line-height: 1.6; letter-spacing: .02em; color: var(--ink-2); }

footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 28px 0 40px; font-size: 12px; letter-spacing: .04em; color: var(--ink-2);
}

@media (max-width: 1100px) { .lab-themes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "affil" "name" "photo" "bio"; }
  .hero-grid > h1 { font-size: min(var(--h1), calc(100cqi / 6.2)); }
  /* side by side at equal height (flex-grow ∝ aspect ratio) */
  .photos { display: flex; gap: 10px; aspect-ratio: auto; max-width: 440px; margin-top: 28px; }
  .photos picture { position: static; }
  .photos .ph-me { width: auto; flex: .8 1 0; }
  .photos .ph-lab { width: auto; flex: 1.3333 1 0; }
  .photos .ph-lab img { box-shadow: none; }
  .hero-grid > .hero-row { margin-top: 44px; }
}
@media (max-width: 720px) {
  .go { display: flex; width: max-content; margin: 14px 0 2px; }
  .wrap { padding: 0 16px; }
  .top { padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; row-gap: 8px; }
  .top-nav { order: 3; width: calc(100% + 16px); margin-right: -16px; padding-right: 16px; gap: 2px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .top-nav a { padding: 7px 12px; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { white-space: nowrap; }
  section[id], #team { scroll-margin-top: 92px; }
  .hero { min-height: calc(100vh - 88px); min-height: calc(100svh - 88px); padding: 5vh 0 var(--sky); }   /* the phone shows the Castle, which is tall: keep the text above all of it */
  .sk-label { display: none; }
  .hero-row { gap: 14px; margin-top: 28px; }
  .bio.lead { font-size: 16.5px; }
  .bio { font-size: 15px; }
  .route-head { margin-left: 44px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .route { --text: 44px; }
  .wp, .wp:nth-of-type(n) { --x: 14px; padding: 3.6vh 0; }
  .wp.minor { padding: 2.4vh 0; }
  .wp::before { display: none; }
  .wp > a, .wp > .wp-card { max-width: calc(100% - 44px); }
  .top .hide-sm { display: none; }
  .hive-head, .videos { grid-template-columns: 1fr; gap: 18px; }
  .projects { grid-template-columns: 1fr; }
  .peers { grid-template-columns: 1fr; }
  .peers > .peer-list { grid-column: 1; grid-row: auto; margin-top: 40px; }
  .peers > .coauth { grid-row: auto; margin-top: 48px; }
  .peers .peer-list > li { padding: 24px 0; }
  .peers .peer-list > li:first-child { padding-top: 0; }
  .fleet { padding: 28px 0 32px; }
  .fleet figcaption { margin-bottom: 12px; }
  .fleet .model { font-size: 38px; }
  .fleet .brand { display: none; }
  .fleet .model.micro-label { font-size: 30px; }
  .fleet .zoom { font-size: 20px; }
  .fleet .mass { font-size: 22px; }
  .fleet .dim-text { font-size: 20px; }
  .trials-grid { grid-template-columns: 1fr; }
  .lab { grid-template-columns: 1fr; gap: 0; }
  .lab-wins { margin-top: var(--block-gap); }
  .lab-themes { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .lab-themes li { padding: 24px 22px; }
  .lab-wins { grid-column: 1; grid-row: auto; order: 1; }
  .lab-themes { order: 2; }
  .peers { order: 3; }
  .lab-wins li { padding: 16px 0; gap: 4px; }
  .lab-themes { grid-row: auto; }
  .affil { line-height: 1.8; }
  .papers-head { flex-direction: column; gap: 4px; }
  .papers li a { grid-template-columns: 44px 1fr; gap: 8px 12px; padding: 20px 0; }
  .papers .venue { grid-column: 2; text-align: left; }
  .trial, .trial + .trial { padding: 0; border-left: 0; }
  .trial + .trial { margin-top: 48px; }
  .trials-grid .trial.wide { padding: 48px 0 0; }
  .trial.wide .press ul { grid-auto-flow: row; }
  .trial .big { margin-bottom: 24px; }
  .mini { right: 0; top: 0; width: clamp(130px, 42%, 200px); }
  .mini figcaption { display: none; }
  .projects { gap: 12px; grid-auto-rows: auto; }
  .projects a { padding: 26px 22px 28px; }
}
