/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #f3f1ec;
  --bg-2: #ebe8e1;
  --surface: #fbfaf7;
  --ink: #16181a;
  --ink-2: #3b3f44;
  --muted: #676b70;
  --line: #d9d5cc;
  --line-2: #c6c1b6;
  --accent: #c2410c;
  --accent-ink: #9a3412;
  --accent-soft: rgba(194, 65, 12, 0.09);
  --grid: rgba(22, 24, 26, 0.05);
  --s-live: #15803d; --s-beta: #2563eb; --s-proto: #b45309; --s-dev: #7c3aed; --s-done: #676b70;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1011; --bg-2: #151718; --surface: #1a1c1e;
    --ink: #ecebe6; --ink-2: #c9c8c2; --muted: #9a9ca0;
    --line: #2a2d30; --line-2: #3a3e42;
    --accent: #ff7a45; --accent-ink: #ff9a6e; --accent-soft: rgba(255, 122, 69, 0.12);
    --grid: rgba(236, 235, 230, 0.04);
    --s-live: #4ade80; --s-beta: #60a5fa; --s-proto: #fbbf24; --s-dev: #a78bfa; --s-done: #9a9ca0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1011; --bg-2: #151718; --surface: #1a1c1e;
  --ink: #ecebe6; --ink-2: #c9c8c2; --muted: #9a9ca0;
  --line: #2a2d30; --line-2: #3a3e42;
  --accent: #ff7a45; --accent-ink: #ff9a6e; --accent-soft: rgba(255, 122, 69, 0.12);
  --grid: rgba(236, 235, 230, 0.04);
  --s-live: #4ade80; --s-beta: #60a5fa; --s-proto: #fbbf24; --s-dev: #a78bfa; --s-done: #9a9ca0;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); font-weight: 500; }
.label {
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 1px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* --------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px var(--display); letter-spacing: -0.01em; }
.brand__mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  background: var(--ink); color: var(--bg); font: 600 13px var(--mono); letter-spacing: -0.04em;
}
.brand:hover .brand__mark { background: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 6px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav .nav__cta { border: 1px solid var(--line-2); margin-left: 8px; }
.topbar__tools { display: flex; gap: 6px; }
.iconbtn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
  background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
}
.iconbtn:hover { border-color: var(--line-2); background: var(--bg-2); }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.menubtn { display: none; }
@media (max-width: 860px) {
  .menubtn { display: grid; }
  .topbar__tools { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { margin: 12px 0 0; border-radius: 8px; text-align: center; }
}

/* --------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 8px; border: 1px solid var(--line-2); text-decoration: none;
  font: 500 15px var(--body); color: var(--ink); background: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { border-color: transparent; text-decoration: underline; text-decoration-color: var(--line-2); }
.btn--ghost:hover { border-color: transparent; color: var(--accent-ink); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.hero__in { display: grid; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
@media (min-width: 960px) {
  .hero__in { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 72px; padding-top: 112px; padding-bottom: 112px; }
}
.hero__h { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 24px; max-width: 14ch; font-weight: 600; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 56ch; margin-bottom: 32px; }

.chain { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 10px; }
.chain .label { margin-bottom: 16px; }
.chain ol { position: relative; }
.chain ol::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 26px; width: 1px; background: var(--line-2); }
.chain ol::after {
  content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 5s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes pulse { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(calc(var(--chain-h, 240px) - 40px)); opacity: 0; } }
.chain li a { display: grid; grid-template-columns: 15px 1fr; column-gap: 16px; padding: 6px 0 14px; text-decoration: none; }
.chain li a::before { content: ""; grid-row: span 2; width: 15px; height: 15px; margin-top: 3px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); position: relative; z-index: 1; }
.chain li a:hover::before { border-color: var(--accent); background: var(--accent-soft); }
.chain__k { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.chain__v { font-size: 15px; color: var(--ink); }
.chain li a:hover .chain__v { text-decoration: underline; text-decoration-color: var(--line-2); }

/* -------------------------------------------------------------- sections */
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 48px; max-width: 760px; }
.section__head h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; }
.refs { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.refs a { color: var(--ink-2); }

/* ---------------------------------------------------------- project rows */
.prow { display: grid; gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); }
.prow:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .prow { grid-template-columns: 1.15fr 1fr; gap: 64px; padding: 56px 0; } }
.prow__meta { font: 500 12.5px var(--mono); color: var(--muted); letter-spacing: .02em; margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.prow__meta .mono { color: var(--accent-ink); }
.prow__title { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.prow__title a { text-decoration: none; }
.prow__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prow__tag { font-size: 1.08rem; color: var(--ink-2); max-width: 52ch; }
.prow__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.more { display: inline-flex; gap: 6px; font-weight: 500; font-size: 15px; margin-top: 22px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.more:hover { color: var(--accent-ink); }

.status { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px var(--mono); color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px 3px 9px; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-done); }
.status--live i { background: var(--s-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-live) 20%, transparent); }
.status--beta i { background: var(--s-beta); }
.status--proto i { background: var(--s-proto); }
.status--dev i { background: var(--s-dev); }

/* --------------------------------------------------------------- metrics */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.metrics > div { background: var(--surface); padding: 20px 20px 18px; }
.metrics dt { font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 6px; }
.metrics dd { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.metrics--sm { margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.metrics--sm dt { font-size: 1.35rem; }

/* ------------------------------------------------------------ flow diagrams */
.flow { margin: 0; }
.flow__steps { counter-reset: step; display: grid; gap: 0; position: relative; }
.flow__step { position: relative; display: grid; padding: 0 0 18px 30px; }
.flow__step::before { content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--surface); z-index: 1; }
.flow__step::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: -4px; width: 1px; background: var(--line-2); }
.flow__step:last-child::after { display: none; }
.flow__step--alt::before { border-color: var(--accent); background: var(--accent-soft); }
.flow__k { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.flow__t { font-weight: 600; font-size: 15.5px; }
.flow__d { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.flow__step--alt .flow__k { color: var(--accent-ink); }

.flow--compact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 4px; }
.flow--compact .flow__step { grid-template-columns: 130px 1fr; align-items: baseline; padding-bottom: 12px; }
.flow--compact .flow__t { font-size: 14.5px; font-weight: 500; }
@media (max-width: 420px) { .flow--compact .flow__step { grid-template-columns: 1fr; } }

/* full-size flow goes horizontal on wide screens */
.case__body > .flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
@media (min-width: 960px) {
  .case__body > .flow .flow__steps { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 14px; }
  .case__body > .flow .flow__step { padding: 30px 0 0; align-content: start; }
  .case__body > .flow .flow__step::before { top: 0; left: 0; }
  .case__body > .flow .flow__step::after { left: 18px; right: -10px; top: 6px; bottom: auto; width: auto; height: 1px; }
  .case__body > .flow .flow__step:last-child::after { display: none; }
}

/* ----------------------------------------------------------------- about */
.about__body { max-width: 68ch; font-size: 1.1rem; color: var(--ink-2); margin-bottom: 48px; }
.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; counter-reset: pr; }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { background: var(--surface); padding: 26px; counter-increment: pr; }
.principles h3 { font-size: 1.2rem; margin-bottom: 10px; }
.principles h3::before { content: "0" counter(pr); display: block; font: 500 12px var(--mono); color: var(--accent-ink); margin-bottom: 14px; letter-spacing: .06em; }
.principles p { color: var(--ink-2); font-size: 15px; margin: 0; }
.principles .refs { margin-top: 14px; font-size: 13.5px; }

/* ------------------------------------------------------------------- lab */
.labgrid { display: grid; gap: 24px; }
@media (min-width: 860px) { .labgrid { grid-template-columns: 1fr 1fr; } }
.labcard { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--surface); display: flex; flex-direction: column; }
.labcard > p:not([class]) { color: var(--ink-2); }
.labcard .flow--compact { background: var(--bg); margin: 8px 0 4px; }
.labcard .more { align-self: flex-start; margin-top: auto; padding-top: 18px; }
.labcard .prow__facts { margin: 16px 0 0; }
.notes { display: grid; gap: 0 40px; margin-top: 56px; }
@media (min-width: 720px) { .notes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.notes li { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.notes h3 { font-size: 1.05rem; margin-bottom: 8px; }
.notes p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 10px; }
.notes .notes__tags { font-size: 12px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ experience */
.timeline > li { display: grid; gap: 8px 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .timeline > li { grid-template-columns: 220px 1fr; } }
.timeline__when { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.timeline h3 { font-size: 1.35rem; margin-bottom: 14px; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 9px; height: 1px; background: var(--accent); }

/* --------------------------------------------------------------- toolkit */
.toolkit { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 720px) { .toolkit { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .toolkit { grid-template-columns: repeat(3, 1fr); } }
.tk { background: var(--surface); padding: 24px; }
.tk h3 { font-size: 1.05rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; line-height: 1; padding: 7px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.tk .refs { font-size: 13px; }

/* ------------------------------------------------------------ background */
.bg { display: grid; gap: 40px; }
@media (min-width: 960px) { .bg { grid-template-columns: 1fr 1.3fr 1fr; gap: 56px; } }
.bg .label { margin-top: 0; }
.bg section > .label ~ .label { margin-top: 32px; }
.plain li { display: grid; gap: 2px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }
.plain span { color: var(--ink-2); font-size: 14.5px; }
.plain .mono { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------- contact */
.contact { text-align: left; }
.contact h2 { font-size: clamp(1.8rem, 4.2vw, 3.1rem); letter-spacing: -0.035em; max-width: 22ch; margin-bottom: 18px; }
.contact__lead { color: var(--ink-2); font-size: 1.1rem; }
.contact__mail { display: inline-block; font: 600 clamp(1.25rem, 4.2vw, 2.4rem) var(--display); letter-spacing: -0.02em; margin: 12px 0 32px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 18px; }

/* ------------------------------------------------------------ case study */
.case__head {
  border-bottom: 1px solid var(--line); padding: 48px 0 56px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
@media (min-width: 960px) { .case__head { padding: 64px 0 80px; } }
.crumbs { font-size: 14px; margin-bottom: 36px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.case__title { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 18px; max-width: 18ch; }
.case__tag { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 36px; }
.facts { display: grid; gap: 18px 40px; margin: 0 0 28px; border-top: 1px solid var(--line); padding-top: 22px; }
@media (min-width: 720px) { .facts { grid-template-columns: auto 1fr 1fr; } }
.facts dt { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; }
.case__body { display: grid; gap: 56px; padding-top: 56px; padding-bottom: 80px; }
.case__sec { max-width: 760px; }
.case__sec h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 18px; }
.prose p { color: var(--ink-2); font-size: 1.05rem; }
.decisions { display: grid; gap: 14px; }
.decisions li { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; }
.decisions h3 { font-size: 1.1rem; margin-bottom: 6px; }
.decisions p { color: var(--ink-2); margin: 0; }
.callout { max-width: 760px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 6px; padding: 16px 20px; font-size: 15px; color: var(--ink-2); }
.case__body > .metrics { margin-top: 0; }
.pager { display: grid; gap: 12px; padding-bottom: 96px; }
@media (min-width: 720px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; text-decoration: none; font: 600 1.2rem var(--display); letter-spacing: -0.02em; background: var(--surface); }
.pager a:last-child { text-align: right; }
.pager a:last-child .label { justify-content: flex-end; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .label { margin-bottom: 8px; }
.notfound { min-height: 50vh; }

/* ------------------------------------------------------------ matrix demo */
.demo { max-width: none; }
.demo__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .demo__grid { grid-template-columns: minmax(260px, 340px) 1fr; gap: 48px; } }
.demo__stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; place-items: center; }
.demo__stage canvas { width: 100%; max-width: 300px; height: auto; display: block; image-rendering: auto; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.seg button { font: 500 14px var(--body); padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.seg button:hover { border-color: var(--ink); color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.demo__text { font-size: 1.02rem; color: var(--ink-2); min-height: 5.5em; max-width: 56ch; }
.demo__note { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; max-width: 56ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chain ol::after { animation: none; opacity: 0; }
  * { transition: none !important; }
}

/* toolkit: let an odd last group fill the row instead of leaving a gap */
@media (min-width: 720px) and (max-width: 1079px) { .tk:last-child:nth-child(2n+1) { grid-column: span 2; } }
@media (min-width: 1080px) {
  .tk:last-child:nth-child(3n+1) { grid-column: span 3; }
  .tk:last-child:nth-child(3n+2) { grid-column: span 2; }
}
