/*
 * site.css
 * Shared look of the site: fonts, navigation, the image-first "plate" layout and
 * the slide-in detail sheets that hold the longer text. Loaded after output.css
 * (Tailwind), which the interactive demos still use for their own markup.
 */

/* ── Fonts (self-hosted, variable) ───────────────────────────────────────── */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(fonts/inter-latin-wght-normal.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'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(fonts/inter-greek-wght-normal.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url(fonts/jetbrains-mono-latin-wght-normal.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: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url(fonts/jetbrains-mono-greek-wght-normal.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
    --paper: #ffffff;
    --ink: #0a0a0a;
    --mute: #6b6b6b;      /* secondary text, 5.3:1 on paper */
    --faint: #9a9a9a;     /* tertiary: dates, counters */
    --line: #e6e6e6;
    --stage: #f5f5f4;     /* backdrop behind figures */
    --signal: #059669;    /* the one accent: the green stretch of a trace */
    --wrap: 1200px;
    --gutter: clamp(20px, 4.5vw, 56px);
    --nav-h: 56px;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: 'cv11', 'ss03';   /* single-storey a off, round quotes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.site ::selection { background: var(--ink); color: var(--paper); }
.site :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
    background: rgba(255, 255, 255, 0.93);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav a { color: var(--mute); font-size: 14px; text-decoration: none; transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.nav .nav-home { color: var(--ink); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.nav .nav-home .back { display: inline-block; margin-right: 6px; color: var(--faint); transition: transform 0.15s; }
.nav .nav-home:hover .back { transform: translateX(-3px); color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.nav .lang { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.nav .lang:hover { border-color: var(--ink); }
@media (max-width: 420px) { .nav a { font-size: 13px; } }

/* ── Type ────────────────────────────────────────────────────────────────── */
.display {
    margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
    font-size: clamp(1.75rem, 3.8vw, 3rem);
    max-width: 18em; text-wrap: balance;
}
.page-title { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(2.1rem, 5.2vw, 3.75rem); text-wrap: balance; }
.intro { margin: 0; color: var(--mute); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.5; max-width: 34em; text-wrap: pretty; }
.section-title { margin: 0; font-size: 14px; font-weight: 400; color: var(--faint); }
.site a.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: #c4c4c4; transition: text-decoration-color 0.15s; }
.site a.link:hover { text-decoration-color: var(--ink); }

/* ── Home: hero ──────────────────────────────────────────────────────────── */
.hero { padding-top: calc(var(--nav-h) + clamp(56px, 11vh, 120px)); }
.who { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.who p { margin: 0; font-size: 15px; line-height: 1.35; color: var(--mute); }
.who strong { display: block; font-weight: 500; color: var(--ink); }

.trace { margin-top: clamp(40px, 7vw, 84px); }
.trace canvas { display: block; width: 100%; height: clamp(72px, 11vw, 132px); }
.trace-label { display: flex; justify-content: flex-end; min-height: 22px; margin-top: 6px; }
.trace-label a { font-size: 13px; color: var(--mute); text-decoration: none; transition: opacity 0.5s, color 0.15s; }
.trace-label a::before { content: ''; display: inline-block; width: 18px; height: 1.5px; margin-right: 8px; vertical-align: middle; background: var(--signal); }
.trace-label a:hover { color: var(--ink); }
.trace-label a.swap { opacity: 0; }

/* ── Plates: one large image or demo, one line of caption ────────────────── */
.work { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(80px, 12vw, 168px); }
.plates { display: grid; gap: clamp(48px, 7vw, 96px); margin-top: 20px; }
.plate { display: block; color: inherit; text-decoration: none; }
.plate-media {
    position: relative; overflow: hidden; border-radius: 4px; background: var(--stage);
    aspect-ratio: 2.25 / 1;
}
.plate-media img, .plate-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.plate-media.contain img { object-fit: contain; }
.plate-media.dark { background: #171b1f; }
.plate-media.black { background: #0d0d0d; }
.plate-media.paper { background: var(--paper); border-radius: 0; aspect-ratio: auto; }
.plate-media.paper img { position: static; height: auto; }
.plate-media.framed { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.plate-media.framed img { inset: 5% 4%; width: 92%; height: 90%; object-fit: contain; }
a.plate:hover .plate-media img { transform: scale(1.018); }
@media (max-width: 640px) { .plate-media { aspect-ratio: 1.6 / 1; } }
@media (prefers-reduced-motion: reduce) { .plate-media img { transition: none; } a.plate:hover .plate-media img { transform: none; } }

.plate-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; margin-top: 16px; }
.plate-cap h3 { margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.plate-cap p { margin: 0; grid-column: 1; color: var(--mute); font-size: 15px; max-width: 46em; }
.plate-cap .where { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--faint); white-space: nowrap; }
a.plate:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (max-width: 640px) { .plate-cap { grid-template-columns: 1fr; } .plate-cap .where { grid-column: 1; grid-row: auto; order: 3; } }

/* Smaller projects: live glyph tiles, four across */
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(56px, 8vw, 104px); }
.mini { display: block; color: inherit; text-decoration: none; }
.mini .glyph { display: block; width: 100%; height: auto; aspect-ratio: 112 / 68; border-radius: 0; background: var(--paper); }
.mini h3 { margin: 12px 0 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.mini p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--mute); }
.mini:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 860px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Home: the timeline, newest first ────────────────────────────────────── */
.tl { --tl-date: 3.5rem; --tl-gap: clamp(36px, 5vw, 64px); list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; top: 12px; bottom: 6px; left: calc(var(--tl-date) + var(--tl-gap) / 2); width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: var(--tl-date) minmax(0, 1fr); column-gap: var(--tl-gap); position: relative; padding-bottom: clamp(32px, 4vw, 48px); }
.tl-item.big { padding-bottom: clamp(52px, 7vw, 92px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; top: 8px; left: calc(var(--tl-date) + var(--tl-gap) / 2 - 4px); width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--faint); background: var(--paper); }
.tl-item.big::before { border-color: var(--ink); }
.tl-item.now::before { background: var(--ink); border-color: var(--ink); }
.tl-when { text-align: right; padding-top: 2px; }
.tl-year { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-body { min-width: 0; }
.tl-body > h3 { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.tl-body > h3 a { color: inherit; text-decoration: none; }
.tl-body > h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tl-body > .where { display: block; margin-top: 2px; font-size: 13px; color: var(--faint); }
.tl-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--mute); max-width: 46em; }
/* Talks and posters that came out of an entry */
.tl-note { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--mute); }
.plate + .tl-note { margin-top: 12px; }
.side-title { margin-top: clamp(88px, 12vw, 160px); }
.minis.side { margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px); }
.minis.side .mini { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.minis.side .glyph { grid-row: 1 / 3; width: 72px; }
.minis.side .mini h3 { margin: 0; }
@media (max-width: 860px) { .minis.side { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .tl { --tl-gap: 0px; padding-left: 26px; }
    .tl::before { left: 4px; }
    .tl-item { grid-template-columns: 1fr; }
    .tl-item::before { left: -26px; top: 6px; }
    .tl-when { text-align: left; padding: 0 0 4px; }
    .tl-when:empty { display: none; }
    .plate-cap .where { white-space: normal; }
}

.places { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--mute); }

/* ── Home: contact ───────────────────────────────────────────────────────── */
.contact { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--faint); }
.contact nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ── "More" buttons that open a sheet ────────────────────────────────────── */
.info-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
    font: 500 13px/1 var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap;
    transition: border-color 0.15s, background-color 0.15s;
}
.info-btn::before { content: ''; width: 11px; height: 11px; flex: none;
    background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; }
.info-btn:hover { border-color: var(--ink); }

/* ── Sheets: the longer text, one click away ─────────────────────────────── */
dialog.sheet {
    position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
    width: min(460px, 100vw); max-width: none; height: 100dvh; max-height: none;
    background: var(--paper); color: var(--ink); overflow: hidden;
    box-shadow: -1px 0 0 var(--line), -24px 0 60px -20px rgba(0, 0, 0, 0.18);
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
dialog.sheet::backdrop { background: rgba(255, 255, 255, 0.5); animation: fade-in 0.25s ease; }
@keyframes sheet-in { from { transform: translateX(28px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px 28px; }
.sheet-head h2 { margin: 0; font-size: 14px; font-weight: 400; color: var(--faint); }
.sheet-close { width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; position: relative; transition: border-color 0.15s; }
.sheet-close:hover { border-color: var(--ink); }
.sheet-close::before, .sheet-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.sheet-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 28px 48px; font-size: 15px; line-height: 1.65; color: #333; }
.sheet-body > :first-child { margin-top: 0; }
.sheet-body h3 { margin: 30px 0 8px; font-size: 13px; font-weight: 500; color: var(--faint); }
.sheet-body p { margin: 0 0 14px; text-wrap: pretty; }
.sheet-body .big { font-size: 19px; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.sheet-body ul { margin: 0 0 14px; padding: 0; list-style: none; }
.sheet-body li { padding: 9px 0; border-top: 1px solid var(--line); }
.sheet-body li:first-child { border-top: 0; padding-top: 0; }
.sheet-body dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; }
.sheet-body dt { padding: 9px 0; color: var(--faint); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet-body dd { margin: 0; padding: 9px 0; }
.sheet-body dt, .sheet-body dd { border-top: 1px solid var(--line); }
.sheet-body dt:first-of-type, .sheet-body dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.sheet-body dd b { display: block; font-weight: 500; color: var(--ink); }
.sheet-body dd span { display: block; color: var(--mute); font-size: 14px; }
.sheet-body dd a { color: inherit; }
.sheet-body .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-body .tags span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--mute); }
@media (max-width: 640px) {
    dialog.sheet { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 86dvh; border-radius: 14px 14px 0 0; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.25); }
    @keyframes sheet-in { from { transform: translateY(36px); opacity: 0; } }
    .sheet-head { padding-left: 20px; }
    .sheet-body { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { dialog.sheet[open], dialog.sheet::backdrop { animation: none; } }

/* ── Project pages ───────────────────────────────────────────────────────── */
.project-head { padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 104px)); padding-bottom: clamp(28px, 4vw, 48px); }
.project-head .head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-top: 18px; }
.project-head .kicker { margin: 0 0 14px; font-size: 14px; color: var(--faint); }

.fig { margin: 0; padding-bottom: clamp(56px, 8vw, 112px); }
.fig-media { overflow: hidden; background: var(--paper); }
.fig-media.photo { border-radius: 4px; }
.fig-media.dark { background: #000; border-radius: 4px; }
.fig-media.bare { background: none; border-radius: 0; overflow: visible; }
.fig-media > img, .fig-media > video { display: block; width: 100%; height: auto; }
.fig-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: 16px; }
.fig-cap p { margin: 0; flex: 1 1 22em; max-width: 44em; color: var(--mute); font-size: 15px; line-height: 1.5; }
.fig-cap p b { font-weight: 500; color: var(--ink); }
.fig-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.fig-pair .fig { padding-bottom: 0; }
.fig-pair .fig-media { aspect-ratio: 1 / 1; }
.fig-pair .fig-media > video, .fig-pair .fig-media > img { width: 100%; height: 100%; object-fit: cover; }
.fig-pair-wrap { padding-bottom: clamp(56px, 8vw, 112px); }
@media (max-width: 700px) { .fig-pair { grid-template-columns: 1fr; gap: 40px; } }

/* A row of headline numbers */
.figures-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px clamp(16px, 3vw, 40px); margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; }
.figures-row div { min-width: 0; }
.figures-row dd { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.figures-row dt { margin-top: 6px; font-size: 14px; color: var(--ink); }
.figures-row small { display: block; font-size: 13px; color: var(--faint); }
@media (max-width: 820px) { .figures-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .figures-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.next { border-top: 1px solid var(--line); }
.next a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-block: clamp(28px, 4vw, 48px); color: inherit; text-decoration: none; }
.next span { font-size: 14px; color: var(--faint); }
.next b { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.025em; }
.next a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Lists inside sheets: a title, a line, a date */
.sheet-body dd p, .sheet-body li p { margin: 0; color: var(--mute); font-size: 14px; }
.sheet-body li b { display: block; font-weight: 500; color: var(--ink); }
.sheet-body li small { display: block; margin-top: 2px; font-size: 13px; color: var(--faint); }
.sheet-body dd b a { text-decoration: none; }
.sheet-body dd b a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Reused blocks inside sheets */
dialog.sheet.wide { width: min(700px, 100vw); }
.sheet-body .fact { display: block; padding: 9px 0; border-top: 1px solid var(--line); margin: 0; }
.sheet-body .fact b { display: block; font-size: 13px; font-weight: 400; color: var(--faint); }
.sheet-body h3 + .fact { border-top: 0; padding-top: 0; }
.sheet-body .tags { margin-top: 0; }
.sheet-body .tags span { font-family: var(--sans); }
.sheet-body table { width: 100%; }
.sheet-body em { font-style: italic; }
.sheet-body .formula { display: block; margin: 0 0 14px; padding: 10px 12px; background: var(--stage); border-radius: 4px; font-family: var(--mono); font-size: 13px; overflow-x: auto; white-space: nowrap; }
.sheet-body img { display: block; max-width: 100%; height: auto; border-radius: 4px; margin: 0 0 14px; }

/* Buttons side by side */
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fig-media.outlined { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fig-head { margin: 0 0 18px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }

/* "More projects": two columns of live glyph tiles */
.plates.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2.4vw, 32px); margin-top: 0; padding-bottom: clamp(56px, 8vw, 112px); }
.plates.two .glyph { display: block; width: 100%; height: auto; aspect-ratio: 112 / 68; border-radius: 0; background: var(--paper); }
@media (max-width: 700px) { .plates.two { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.lost p { margin: 0; }

/* Project head: kicker parts and key facts spaced apart, no separator glyphs */
.project-head .kicker:has(span) { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.project-head .facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.project-head > .intro { margin-top: 18px; }
.project-head .facts a { color: var(--mute); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.project-head .facts a:hover { color: var(--ink); }
.fig-cap .formula-math { flex: 1 1 100%; overflow-x: auto; color: var(--ink); }
.formula-math { padding-top: 4px; }
.formula-math math { font-size: 1.2rem; }
.fig-cap p.formula { flex: 1 1 100%; max-width: none; margin: 0; font-family: var(--mono); font-size: 13px; color: var(--mute); overflow-x: auto; white-space: nowrap; }
