/* =========================================================
   Pavel Kireyev / tech edition
   Dark, geometric, frontier-AI / Vercel / Linear inspired
   ========================================================= */

:root {
  --bg:        #0c0c0d;
  --bg-1:      #131316;
  --bg-2:      #1a1a1d;
  --bg-3:      #222226;
  --line:      #25252a;
  --line-2:    #2e2e34;
  --ink:       #ede8de;       /* warm cream */
  --ink-2:     #c8c2b4;
  --ink-soft:  #8a8478;
  --ink-mute:  #5a554c;
  --ink-faint: #3a352f;
  --accent:    #b8e23e;       /* electric lime */
  --accent-2:  #d4ff4f;
  --accent-rgb: 184, 226, 62;
  --warn:      #ff6b3a;

  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:  "Spectral", "Iowan Old Style", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max:    920px;
  --gutter: clamp(20px, 4vw, 40px);

  --t-fast:  140ms;
  --t-base:  280ms;
  --t-slow:  600ms;
  --ease:    cubic-bezier(.2,.7,.15,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

/* faint film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.86  0 0 0 0 0.74  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* warm amber glow at top */
body::after {
  content: "";
  position: fixed; left: 50%; top: -45vh;
  width: 90vw; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
}

main, .topbar, .bottombar { position: relative; z-index: 2; }

/* selection */
::selection { background: var(--accent); color: #000; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px var(--gutter) 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.005em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.brand-glyph {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}
.brand-glyph::after {
  content: "";
  position: absolute; inset: 3px;
  background: var(--bg);
  border-radius: 1px;
}
.brand-name { color: var(--ink); }

.topnav {
  justify-self: center;
  display: flex;
  gap: clamp(14px, 2.4vw, 24px);
}
.topnav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease);
}
.topnav a::after {
  content: "";
  position: absolute; left: 0; right: 100%;
  bottom: 0; height: 1px;
  background: var(--accent);
  transition: right var(--t-base) var(--ease);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.6);
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { right: 0; }

.status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(40px, 5vw, 56px);
}
.hero-grid {
  position: relative;
  padding-right: clamp(200px, 32vw, 320px);
  min-height: 200px;
  margin-bottom: 0;
}
.hero-text {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--ink-mute);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker-tag {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--accent);
}

.display {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.display .line { display: block; }
.display em {
  font-style: italic;
  font-weight: 320;
  color: var(--ink-mute);
  font-size: 0.55em;
  letter-spacing: -0.005em;
  vertical-align: 0.4em;
  margin-left: 0.14em;
  font-variation-settings: "opsz" 96;
}
.display .cursor {
  color: transparent;
  position: relative;
  display: inline-block;
  animation: blink 1.4s step-end infinite;
}
.display .cursor::after {
  content: "";
  position: absolute;
  left: 0.06em;
  bottom: 0.06em;
  width: 0.21em;
  height: 0.21em;
  background: var(--accent);
}
@keyframes blink {
  50% { opacity: 0; }
}

.tagline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 22px 0 0;
  max-width: 50ch;
  letter-spacing: -0.005em;
}

/* avatar / portrait that extends behind bio */
.avatar {
  margin: 0;
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(180px, 30vw, 300px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.avatar-frame {
  position: relative;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  overflow: hidden;
  border-radius: 4px;
  line-height: 0;
}
.avatar-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.04) saturate(.92) brightness(.96);
  transition: filter var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.avatar-frame:hover img {
  filter: contrast(1.06) saturate(1) brightness(1);
  transform: scale(1.02);
}
.avatar-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  z-index: 2;
  pointer-events: none;
}
.avatar-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.avatar-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.avatar-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.avatar-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.avatar figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
}

.bio {
  position: relative;
  z-index: 2;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-top: clamp(8px, 1.5vw, 18px);
  margin-bottom: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
  background: rgba(8, 8, 8, 0.62);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
          backdrop-filter: blur(8px) saturate(0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 18px 40px -24px rgba(0,0,0,.7);
}
.bio p { margin: 0 0 1em; }
.bio p:last-child { margin-bottom: 0; }
.bio em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.bio a {
  text-decoration: none;
  border-bottom: 1px dotted rgba(var(--accent-rgb), 0.35);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.bio a:hover { border-bottom-color: var(--accent); }
.bio a:hover em { color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  letter-spacing: -0.005em;
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.actions a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.action-arrow {
  color: var(--accent);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.actions a:hover .action-arrow {
  color: var(--bg);
  transform: translateX(2px);
}

/* ============================================================
   AFFILIATIONS
   ============================================================ */
.affiliations {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--gutter) clamp(40px, 5vw, 56px);
}
.aff-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: -0.005em;
  color: var(--ink-mute);
  margin-bottom: 18px;
  padding: 0 4px;
}
.aff-head .tag { color: var(--ink-soft); }
.aff-head .tag-meta { color: var(--accent); }

.marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-row {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding: 0 clamp(20px, 3vw, 40px);
  flex-shrink: 0;
}
.logo-row li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 32px;
}
.logo-row img {
  max-height: 100%;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  opacity: .85;
  transition: opacity var(--t-fast) var(--ease);
}
.logo-row li:hover img {
  opacity: 1;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   WORK SECTIONS
   ============================================================ */
.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  position: relative;
}
.work::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) - 14px);
  top: clamp(48px, 6vw, 80px);
  bottom: clamp(48px, 6vw, 80px);
  width: 1px;
  background: var(--line);
  opacity: 0.7;
}
@media (max-width: 720px) {
  .work::before { display: none; }
}

.work-head {
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.work-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.work-meta .hash {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}
.work-meta h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}
.work-meta .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  margin-left: 4px;
}
.work-sub {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: -0.005em;
}

/* ENTRIES */
.entries {
  display: flex;
  flex-direction: column;
}
.entry {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 4px clamp(16px, 2vw, 24px);
  align-items: baseline;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--t-fast) var(--ease);
}
.entry.is-collapsible {
  cursor: pointer;
}
.entry:hover {
  background: var(--bg-1);
}
.entry.is-collapsible:hover .entry-title {
  color: var(--accent-2);
}
.entry::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background var(--t-fast) var(--ease);
}
.entry:hover::before { background: var(--accent); }

.entry .num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  align-self: start;
  padding-top: 4px;
  letter-spacing: -0.005em;
}
.entry-body {
  min-width: 0;
}
.entry-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  max-width: 60ch;
  transition: color var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.is-collapsible .entry-title::before {
  content: "+";
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease);
  display: inline-block;
}
.is-collapsible.is-open .entry-title::before {
  content: "−";
}
.entry-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 6px 0 0;
  max-width: 70ch;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.is-collapsible .entry-desc {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--t-base) var(--ease),
              margin var(--t-base) var(--ease),
              opacity var(--t-base) var(--ease);
}
.is-collapsible.is-open .entry-desc {
  max-height: 400px;
  margin: 8px 0 0;
  opacity: 1;
}
.entry-venue {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
  white-space: nowrap;
  align-self: start;
  padding-top: 5px;
}
.entry-venue em {
  font-style: italic;
  color: var(--ink-soft);
}
.tag-pop {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 5px 0;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: lowercase;
  background: rgba(var(--accent-rgb), 0.08);
}
.entry-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: -0.005em;
  white-space: nowrap;
  align-self: start;
  padding: 4px 8px 3px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.entry-link:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.entry-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  padding-top: 4px;
  flex-wrap: wrap;
}
.entry-links .entry-link {
  align-self: auto;
  padding-top: 4px;
  padding-bottom: 3px;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  background: rgba(15, 15, 15, 0.92);
  box-shadow: 0 0 20px -4px rgba(var(--accent-rgb), 0.18),
              0 6px 24px -8px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .back-to-top { bottom: 16px; right: 16px; width: 32px; height: 32px; font-size: 14px; }
}

/* ============================================================
   CTA (continue elsewhere)
   ============================================================ */
.cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(20px, 3vw, 32px);
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta .kicker {
  margin: 0 0 18px;
  justify-content: center;
}
.actions-cta {
  justify-content: center;
  gap: 10px;
}
.actions-cta a {
  padding: 10px 18px;
  font-size: 13px;
}
@media (max-width: 540px) {
  .cta { padding: 32px var(--gutter) 16px; }
  .actions-cta a { padding: 9px 14px; font-size: 12px; }
}

/* ============================================================
   APPENDIX (selected press / talks)
   ============================================================ */
.appendix {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) var(--gutter) 0;
  position: relative;
  z-index: 2;
}
.appendix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.app-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.005em;
  color: var(--ink-mute);
  margin: 0 0 8px;
}
.app-value {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.005em;
}
.app-value a {
  border-bottom: 1px dotted rgba(var(--accent-rgb), 0.35);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.app-value a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (max-width: 720px) {
  .appendix-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.bottombar {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 40px) var(--gutter) 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
}
.foot-top {
  color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease);
}
.foot-top:hover { color: var(--accent); }

/* ============================================================
   REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  }
  .reveal.is-in {
    opacity: 1;
    transform: translateY(0);
  }

  /* hero stagger on load */
  .kicker, .display .line-1, .display .line-2, .tagline,
  .avatar, .bio, .actions {
    opacity: 0;
    animation: fadeUp 600ms var(--ease) forwards;
  }
  .kicker          { animation-delay: 60ms; }
  .display .line-1 { animation-delay: 140ms; }
  .display .line-2 { animation-delay: 220ms; }
  .tagline         { animation-delay: 380ms; }
  .avatar          { animation-delay: 280ms; }
  .bio             { animation-delay: 460ms; }
  .actions         { animation-delay: 560ms; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
    border-radius: 8px;
  }
  .status { font-size: 11px; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }

  .topbar {
    padding: 12px var(--gutter);
    gap: 12px;
  }
  .topnav { display: none; }
  .status .status-text { display: none; }

  .hero { padding-top: clamp(24px, 5vw, 40px); }
  .hero-grid {
    padding-right: 120px;
    min-height: 0;
  }
  .display { font-size: clamp(30px, 8vw, 42px); }
  .avatar {
    width: 104px;
    top: 4px;
  }
  .tagline { font-size: 14.5px; }
  .bio { padding: 18px; border-radius: 6px; }

  .actions { gap: 6px; }
  .actions a { padding: 7px 12px; font-size: 11.5px; }

  .marquee { padding: 22px 0; border-radius: 6px; }
  .logo-row li { height: 26px; }
  .logo-row img { max-width: 100px; }

  .work-meta h2 { font-size: 26px; }
  .work-meta .count { font-size: 10.5px; padding: 2px 6px; }

  .entry {
    grid-template-columns: 28px 1fr;
    grid-template-areas: none;
    gap: 6px 12px;
    padding: 16px 6px;
    align-items: start;
  }
  .entry .num {
    grid-area: auto;
    grid-column: 1;
    padding-top: 2px;
  }
  .entry-body,
  .entry-venue,
  .entry-link,
  .entry-links {
    grid-area: auto;
    grid-column: 2;
  }
  .entry-title { font-size: 15px; line-height: 1.3; }
  .entry-desc { font-size: 13px; }
  .entry-venue {
    margin-top: 6px;
    display: inline-block;
    padding-top: 0;
    white-space: normal;
  }
  .entry-link {
    margin-top: 6px;
    padding-top: 4px;
    align-self: auto;
    justify-self: start;
    width: -webkit-max-content;
    width: max-content;
    max-width: 100%;
  }
  .entry-links {
    margin-top: 6px;
    padding-top: 0;
    justify-self: start;
    flex-wrap: wrap;
    gap: 8px;
    align-self: auto;
  }

  .bottombar { flex-direction: column; gap: 8px; align-items: flex-start; padding-bottom: 28px; }
}

@media (max-width: 540px) {
  body { font-size: 14px; line-height: 1.55; }

  .topbar { padding: 12px var(--gutter) 0; gap: 10px; }
  .brand-name { font-size: 11.5px; }
  .brand-glyph { width: 12px; height: 12px; }
  .status-dot { width: 7px; height: 7px; }

  .hero { padding-top: 18px; padding-bottom: clamp(28px, 6vw, 36px); }
  .hero-grid {
    padding-right: 0;
    min-height: 0;
  }
  .avatar {
    position: static;
    width: 124px;
    margin-top: 18px;
    align-items: flex-start;
  }
  .display { font-size: clamp(28px, 8.5vw, 38px); }
  .display em { font-size: 0.6em; vertical-align: 0.42em; }
  .tagline { font-size: 14px; max-width: none; }
  .bio {
    margin-top: 18px;
    padding: 16px 16px;
    font-size: 14px;
    line-height: 1.6;
  }
  .actions { gap: 6px; }
  .actions a { padding: 6px 10px; font-size: 11px; }

  .work { padding: clamp(32px, 8vw, 48px) var(--gutter); }
  .work-meta h2 { font-size: 22px; }
  .work-head { padding-bottom: 12px; }
  .work-sub { font-size: 13px; }

  .entry { padding: 14px 4px; }
  .entry-title { font-size: 14.5px; line-height: 1.3; gap: 6px; }
  .entry-desc { font-size: 12.5px; line-height: 1.5; }
  .is-collapsible .entry-title::before { font-size: 12px; }
  .entry-link { padding: 3px 7px 2px; font-size: 10.5px; }
  .entry-links { gap: 6px; padding-top: 2px; }

  .marquee { padding: 18px 0; }
  .logo-row { gap: clamp(28px, 6vw, 40px); padding: 0 clamp(14px, 4vw, 20px); }
  .logo-row li { height: 22px; }
  .logo-row img { max-width: 84px; }

  .appendix { padding: clamp(20px, 5vw, 28px) var(--gutter) 0; }
  .appendix-grid { padding-top: 22px; gap: 16px; }
  .app-value { font-size: 13px; }

  .bottombar { padding: 24px var(--gutter) 28px; font-size: 10.5px; }
  .back-to-top { bottom: 14px; right: 14px; width: 30px; height: 30px; font-size: 13px; }
}
