/* ==========================================================
   atle.dev — public site styles
   (editor pages keep app.css + theme-dark.css)
   ========================================================== */

:root {
  --bg: #0a0c10;
  --bg-raise: #10141a;
  --bg-card: #131820;
  --line: #222a35;
  --line-strong: #2f3a48;
  --text: #e7ebf0;
  --text-2: #aab4c0;
  --text-3: #7a8594;
  --teal: #4fd1c5;
  --teal-dim: rgba(79, 209, 197, 0.14);
  --amber: #f5b454;
  --amber-dim: rgba(245, 180, 84, 0.14);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.14);
  --rose: #f47f8e;
  --radius: 14px;
  --wrap: 1120px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg, canvas { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; }
code { background: var(--bg-raise); border: 1px solid var(--line); padding: 0.1em 0.35em; border-radius: 5px; }
pre { background: var(--bg-raise); border: 1px solid var(--line); padding: 1rem; border-radius: 10px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__dot { color: var(--text-3); }
.brand__mark {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: radial-gradient(circle at 50% 50%, var(--teal) 0 2px, transparent 3px);
  box-shadow: 0 0 12px rgba(79, 209, 197, 0.35);
}
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--text-2); font-size: 0.95rem; padding: 6px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--bg-raise); text-decoration: none; }
.nav a.is-active { color: var(--text); background: var(--bg-card); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero__fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10,12,16,0.92) 38%, rgba(10,12,16,0.2) 70%, rgba(10,12,16,0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,12,16,0) 25%);
}
.hero__content { position: relative; padding: 80px 0 100px; max-width: 640px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent { color: var(--teal); }
.hero h1 .accent-2 { color: var(--amber); }
.lede { font-size: 1.2rem; color: var(--text-2); max-width: 560px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__caption {
  position: absolute; right: 20px; bottom: 22px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3);
  max-width: 300px; text-align: right;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.97rem;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text);
  background: var(--bg-raise); transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; border-color: var(--teal); transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #06231f; border-color: var(--teal); }
.btn--primary:hover { background: #6ee0d5; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--raise { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 8px 0 0; color: var(--text-2); max-width: 560px; }
.kicker { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }

/* ---------- "now" strip ---------- */
.now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.now__item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-card);
  position: relative; overflow: hidden;
}
.now__item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.now__item p { color: var(--text-2); font-size: 0.93rem; margin: 0; }
.pulse { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); margin-bottom: 10px; }
.pulse::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(79, 209, 197, 0); }
}

/* ---------- project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); overflow: hidden; color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7); }
.card__media { aspect-ratio: 16 / 9; background: #07090c; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.card__media video, .card__media img, .card__media canvas { width: 100%; height: 100%; object-fit: cover; }
.card__media--contain video, .card__media--contain img { object-fit: contain; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.3rem; }
.card__body p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
.card__stat { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 10px; }
.card__stat strong { font-family: var(--font-head); font-size: 1.9rem; line-height: 1.15; color: var(--teal); white-space: nowrap; }
.card__stat span { color: var(--text-3); font-size: 0.88rem; }
.card--wide { grid-column: 1 / -1; flex-direction: row; }
.card--wide .card__media { aspect-ratio: 16 / 10; width: 44%; flex-shrink: 0; border-bottom: 0; border-right: 1px solid var(--line); }
.card--wide .card__body { justify-content: center; padding: 32px; }
.card--wide .card__body h3 { font-size: 1.6rem; }
.card--wide .card__stat { margin-top: 10px; }

/* generated card visuals */
.viz-ocr { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 18px 22px; font-family: var(--font-mono); font-size: 0.8rem; background: radial-gradient(400px 200px at 80% 0%, rgba(245,180,84,0.08), transparent 70%), #07090c; }
.viz-ocr__row { display: grid; grid-template-columns: 82px 1fr; gap: 10px; color: var(--text-2); }
.viz-ocr__row span:first-child { color: var(--text-3); }
.viz-ocr .bad { color: var(--rose); background: rgba(244,127,142,0.12); border-radius: 3px; }
.viz-ocr .fold { color: var(--amber); }
.viz-ocr__vote { margin-top: 6px; padding-top: 9px; border-top: 1px dashed var(--line-strong); color: var(--teal); }
.viz-fsm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 20px; background: radial-gradient(400px 200px at 20% 100%, rgba(167,139,250,0.08), transparent 70%), #07090c; font-family: var(--font-mono); font-size: 0.78rem; }
.viz-fsm span { border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; color: var(--text-2); }
.viz-fsm span.on { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 16px -4px rgba(167,139,250,0.6); }
.viz-fsm i { color: var(--text-3); font-style: normal; }
.viz-fsm--ladder { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.viz-fsm--ladder i { font-size: 0.7rem; }
.card--compact .card__body { padding: 22px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2);
}
.tag--teal { color: var(--teal); border-color: rgba(79,209,197,0.35); background: var(--teal-dim); }
.tag--amber { color: var(--amber); border-color: rgba(245,180,84,0.35); background: var(--amber-dim); }
.tag--violet { color: var(--violet); border-color: rgba(167,139,250,0.35); background: var(--violet-dim); }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--line-strong), var(--teal)); }
.tl { position: relative; padding: 0 0 30px 32px; display: grid; grid-template-columns: 140px 1fr; gap: 20px; }
.tl::before {
  content: ""; position: absolute; left: -5px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
}
.tl--now::before { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 14px rgba(79,209,197,0.5); }
.tl__when { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-3); padding-top: 1px; }
.tl__what h3 { font-size: 1.08rem; margin: 0 0 4px; }
.tl__what p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
/* changelog: a timeline of <details>, one open at a time (name="changelog"), the rest just their headline */
.changelog .tl.cl { display: block; padding-bottom: 6px; }
.changelog .cl summary {
  display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline;
  list-style: none; cursor: pointer; padding: 4px 0 8px;
}
.changelog .cl summary::-webkit-details-marker { display: none; }
.changelog .cl__title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.changelog .cl__title::after { content: " +"; color: var(--text-3); font-family: var(--font-mono); font-size: 0.85rem; }
.changelog .cl[open] .cl__title::after { content: " –"; }
.changelog .cl summary:hover .cl__title { color: var(--teal); }
.changelog .cl > p { margin: 0 0 18px 160px; color: var(--text-2); font-size: 0.95rem; }
.changelog .cl::before { top: 10px; }
.changelog .cl[open]::before { border-color: var(--teal); }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-card); }
.principle__n { font-family: var(--font-mono); color: var(--amber); font-size: 0.8rem; margin-bottom: 10px; }
.principle h3 { font-size: 1.08rem; margin-bottom: 6px; }
.principle p { color: var(--text-2); font-size: 0.93rem; margin: 0; }

/* ---------- article / project pages ---------- */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 300px at 85% 0%, rgba(79,209,197,0.08), transparent 70%); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 860px; }
.page-hero .lede { max-width: 720px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--teal); }

.meta-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.meta-row div { display: flex; flex-direction: column; }
.meta-row .k { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.meta-row .v { color: var(--text); font-size: 0.97rem; }

.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 2.2em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.8em; }
.prose .tl__what h3 { margin-top: 0; }
.prose p, .prose li { color: #cfd6de; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.5em 0; padding: 0.4em 0 0.4em 1.2em; border-left: 3px solid var(--teal); color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.93rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text-3); font-weight: 500; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { border-radius: 10px; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding: 56px 0 96px; }
.layout-2 > * { min-width: 0; }  /* a wide table scrolls inside its column instead of widening the page */
.aside { position: sticky; top: 96px; align-self: start; display: grid; gap: 16px; }
.aside__box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-card); font-size: 0.92rem; }
.aside__box h4 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 10px; font-weight: 500; }
.aside__box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aside__box a { color: var(--text-2); }
.aside__box a:hover { color: var(--teal); }

.figure { margin: 2em 0; }
.figure__frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #07090c; }
.figure__frame video, .figure__frame img { width: 100%; }
.figure figcaption { font-size: 0.85rem; color: var(--text-3); margin-top: 10px; }
.figure--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--amber); background: var(--bg-card);
  border-radius: 10px; padding: 16px 18px; margin: 1.6em 0; font-size: 0.97rem;
}
.callout--teal { border-left-color: var(--teal); }
.callout strong:first-child { color: var(--amber); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 4px; }
.callout--teal strong:first-child { color: var(--teal); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 2em 0; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-card); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--teal); line-height: 1.1; }
.stat span { color: var(--text-3); font-size: 0.83rem; }

/* bar chart (results) */
.bars { display: grid; gap: 12px; margin: 1.8em 0; }
.bar { display: grid; grid-template-columns: 220px 1fr 64px; gap: 14px; align-items: center; font-size: 0.9rem; }
.bar__label { color: var(--text-2); line-height: 1.3; }
.bar__label small { display: block; color: var(--text-3); font-size: 0.78rem; }
.bar__track { height: 14px; background: var(--bg-raise); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar__fill { height: 100%; width: 0; border-radius: 999px; background: var(--line-strong); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bar--hi .bar__fill { background: linear-gradient(90deg, #2aa79c, var(--teal)); }
.bar--mid .bar__fill { background: #3b7f7a; }
.bar__val { font-family: var(--font-mono); color: var(--text); text-align: right; }

/* diverging chart (dimension crossover) */
.diverge { margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-card); }
.diverge__row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 0; align-items: center; margin-bottom: 14px; }
.diverge__row:last-of-type { margin-bottom: 0; }
.diverge__dim { font-family: var(--font-mono); color: var(--text-2); font-size: 0.85rem; }
.diverge__side { height: 26px; position: relative; }
.diverge__side--l { border-right: 1px solid var(--line-strong); display: flex; justify-content: flex-end; }
.diverge__fill { height: 100%; width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; font-family: var(--font-mono); font-size: 0.75rem; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.diverge__side--l .diverge__fill { background: rgba(245,180,84,0.75); color: #2a1a02; justify-content: flex-start; border-radius: 6px 0 0 6px; }
.diverge__side--r .diverge__fill { background: rgba(167,139,250,0.8); color: #1a1030; justify-content: flex-end; border-radius: 0 6px 6px 0; }
.diverge__legend { display: grid; grid-template-columns: 70px 1fr 1fr; font-size: 0.78rem; color: var(--text-3); font-family: var(--font-mono); margin-bottom: 12px; }
.diverge__legend span:nth-child(2) { text-align: right; padding-right: 10px; color: var(--amber); }
.diverge__legend span:nth-child(3) { padding-left: 10px; color: var(--violet); }

/* pipeline diagram */
.pipeline { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 1.8em 0; }
.pipeline__step { flex: 1 1 150px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg-card); font-size: 0.88rem; color: var(--text-2); position: relative; }
.pipeline__step b { display: block; color: var(--text); font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.pipeline__step--teal { border-color: rgba(79,209,197,0.4); }
.pipeline__step--amber { border-color: rgba(245,180,84,0.4); }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--text); align-items: baseline; }
.post-row:hover { text-decoration: none; }
.post-row:hover h3 { color: var(--teal); }
.post-row h3 { margin: 0; font-size: 1.2rem; transition: color 0.15s; }
.post-row time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-3); }
.post-row .arrow { color: var(--text-3); }

/* ---------- about ---------- */
.toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; background: var(--bg-raise); }
.toggle button { font: inherit; font-size: 0.9rem; color: var(--text-2); background: none; border: 0; padding: 7px 14px; border-radius: 7px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--bg-card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer__name { font-family: var(--font-head); font-weight: 600; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--text-2); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar__fill, .diverge__fill { transition: none; }
  html { scroll-behavior: auto; }
  .pulse::before { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .layout-2 { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; flex-direction: column; }
  .card--wide .card__media { width: 100%; aspect-ratio: 16/10; border-right: 0; border-bottom: 1px solid var(--line); }
  .card--wide .card__body { padding: 22px; }
  .now, .principles { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 2px; }
  .changelog .cl summary { grid-template-columns: 1fr; gap: 2px; }
  .changelog .cl > p { margin-left: 0; }
  .hero__fade { background: linear-gradient(0deg, var(--bg) 5%, rgba(10,12,16,0.82) 45%, rgba(10,12,16,0.55) 100%); }
  .hero__caption { display: none; }
  .bar { grid-template-columns: 1fr 56px; }
  .bar__label { grid-column: 1 / -1; }
  .figure--duo { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 4px; }
  .post-row .arrow { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .aside { grid-template-columns: 1fr; }
  .nav a { padding: 6px 8px; }
  .diverge__row, .diverge__legend { grid-template-columns: 48px 1fr 1fr; }
}

/* square demo videos: don't let them dominate the column */
.figure__frame--video { display: flex; justify-content: center; }
.figure__frame--video video { width: auto; max-width: 100%; max-height: 440px; aspect-ratio: 1 / 1; }
#resume-view > h1:first-child { display: none; }
@media (max-width: 560px) {
  .diverge { padding: 16px 12px; }
  .diverge__legend { font-size: 0.66rem; }
}
