/* Jumble Mint v2: modern editorial, indie-maker. Paper, ink, one hot accent, a marker-yellow highlight. */
:root {
  --paper: #f5f1e8;
  --paper-2: #ece7da;
  --card: #fffdf7;
  --ink: #16161b;
  --muted: #5a5b63;
  --line: #cfd0d3;
  --accent: #c9371b;      /* vermilion, 4.6:1 on paper */
  --accent-ink: #ffffff;
  --marker: #f0b429;      /* marigold highlight */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper) radial-gradient(rgba(22,22,27,.055) 1px, transparent 1.3px) 0 0 / 24px 24px; color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main, .site-header, .site-footer { position: relative; z-index: 1; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--marker); }
::selection { background: var(--marker); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 4px; }
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
p { margin: 0 0 1em; }
.eyebrow, .idx, .no, .tag, .sticker, .num, dt, .crumb, .foot-row, figcaption, .nav, .chips li, .pro-item em {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .02em;
}
.eyebrow { color: var(--muted); margin: 0 0 1.25rem; text-transform: none; }
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; height: 1.5px; background: var(--accent); vertical-align: middle; margin-right: .6rem; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.lede p:last-child { margin-bottom: 0; }
.statement { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.015em; max-width: 20ch; margin: 0 0 1.2rem; text-wrap: balance; }

/* ---------- header ---------- */
.site-header { padding-block: 1.1rem; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-tile {
  display: grid; place-items: center; width: 1.9rem; height: 2.1rem; background: var(--ink); color: var(--marker);
  font: 1.55rem/1 var(--serif); border-radius: 5px; transform: rotate(-5deg); transition: transform .3s var(--ease);
}
.brand:hover .brand-tile { transform: rotate(4deg) translateY(-2px); }
.brand-word { font: 1.55rem/1 var(--serif); letter-spacing: -.01em; }
.nav { display: flex; flex-wrap: wrap; gap: .1rem 1.15rem; font-size: .82rem; }
.nav a { text-decoration: none; padding: .35rem 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--marker); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- buttons, tags, stickers ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; min-height: 2.9rem;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--accent); border-radius: 6px;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[hidden] { display: none; }
.hero-actions, .links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 0; }

.tag { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .6rem; border: 1px solid var(--ink); border-radius: 4px; white-space: nowrap; line-height: 1.3; background: transparent; }
.tag::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.st-live { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.st-live::before { background: var(--marker); }
.st-alpha { background: var(--marker); }
.st-building { border-color: var(--accent); color: var(--accent); }
.st-workshop, .st-imaginary { border-style: dashed; border-color: var(--muted); color: var(--ink); }
.st-imaginary { background: var(--card); transform: rotate(-2deg); }
.st-find { background: var(--paper-2); }
.tag.st-alpha::before, .tag.st-find::before, .tag.st-workshop::before, .tag.st-imaginary::before { background: var(--ink); }

/* ---------- letter tiles (the Jumble) ---------- */
.jumble { display: flex; flex-wrap: wrap; gap: .5rem clamp(.9rem, 2.4vw, 1.9rem); }
.word { display: inline-flex; gap: clamp(3px, .7vw, 8px); }
.tile {
  --s: clamp(2.6rem, 11.5vw, 5.8rem);
  display: inline-grid; place-items: center; width: var(--s); height: calc(var(--s) * 1.14);
  background: var(--card); color: var(--ink); font: calc(var(--s) * .86)/1 var(--serif); letter-spacing: 0;
  border: 1px solid var(--ink); border-radius: calc(var(--s) * .09); padding-bottom: .04em;
  box-shadow: 0 calc(var(--s) * .05) 0 var(--ink);
  transform: rotate(var(--rr, 0deg)) translateY(var(--ry, 0px));
  transition: transform .25s var(--ease), background-color .2s;
  user-select: none;
}
.tile.is-y { background: var(--marker); }
.tile.is-r { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 calc(var(--s) * .05) 0 var(--ink); }
.hero-title { font-size: 1rem; line-height: 1; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.hero-title .tile:hover { transform: rotate(0deg) translateY(-6px); background: var(--marker); }
.hero-title .tile.is-r:hover { background: var(--accent); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); overflow-x: clip; }
.hero-grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.stickers { list-style: none; margin: 0; padding: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .8rem .7rem; align-content: flex-start; }
.stickers li { transform: rotate(var(--r, 0deg)); transition: transform .25s var(--ease); }
.stickers li:hover { transform: rotate(0deg) translateY(-3px); }
.sticker {
  display: inline-flex; align-items: baseline; gap: .55rem; padding: .7rem 1rem; text-decoration: none; font-size: .9rem;
  border: 1px solid var(--ink); border-radius: 5px; background: var(--card); color: var(--ink); box-shadow: 0 2px 0 var(--ink);
}
.sticker b { font-weight: 500; font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }
.sticker:hover { color: var(--ink); background: #fff; }
.sticker.k0 { background: var(--marker); }
.sticker.k1 { background: var(--card); }
.sticker.k2 { background: var(--ink); color: var(--paper); }
.sticker.k2:hover { color: var(--paper); background: #2a2a31; }
.sticker.k3 { background: var(--paper-2); }
.sticker.k4 { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 0 var(--ink); }
.sticker.k4:hover { background: var(--accent); color: #fff; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(3rem, 8vw, 6rem); }
.sec.tight { padding-block: 1rem clamp(3rem, 8vw, 6rem); }
.sec + .sec:not(.dark) { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 1rem 3rem; grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.idx { color: var(--muted); margin: 0 0 .9rem; }
.sec-head .idx { grid-column: 1 / -1; margin: 0; }
.blurb { color: var(--muted); max-width: 44ch; margin: 0 0 .8rem; }
.more { margin: 0; font-weight: 600; }
.more a { text-decoration-color: var(--marker); text-decoration-thickness: 3px; }
.more a:hover { text-decoration-color: var(--accent); }

.sec.dark { background: var(--ink); color: var(--paper); margin-block: clamp(1.5rem, 4vw, 3rem) 0; }
.sec.dark + .sec { border-top: 0; }
.dark .idx, .dark .blurb { color: #b4b4bc; }
.dark a { text-decoration-color: var(--marker); }
.dark a:hover { color: var(--marker); }
.dark .more a { color: var(--paper); }
.sec.dark.tight { margin-top: 0; padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- the index (ledger) ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row { border-bottom: 1px solid var(--line); }
.row a {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 1.2rem; grid-template-areas: "no name arr" ". line arr" ". stat arr";
  gap: .1rem 1rem; align-items: baseline; padding: 1.1rem 0; text-decoration: none; position: relative;
}
.row a:hover { color: var(--ink); }
.no { grid-area: no; color: var(--muted); font-size: .8rem; }
.name { grid-area: name; font: 1.9rem/1.05 var(--serif); letter-spacing: -.015em; }
.name span { background: linear-gradient(var(--marker), var(--marker)) 0 92%/0 .42em no-repeat; transition: background-size .35s var(--ease); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.line { grid-area: line; color: var(--muted); font-size: .98rem; line-height: 1.4; }
.stat { grid-area: stat; margin-top: .5rem; }
.arr { grid-area: arr; align-self: center; justify-self: end; font-size: 1.3rem; transition: transform .3s var(--ease), color .2s; }
.row a:hover .name span, .row a:focus-visible .name span { background-size: 100% .42em; }
.row a:hover .arr { transform: translateX(6px) rotate(-45deg); color: var(--accent); }

@media (min-width: 860px) {
  .row a {
    grid-template-columns: 3.4rem minmax(11rem, 22rem) minmax(0, 1fr) 9.5rem 1.4rem; grid-template-areas: "no name line stat arr";
    gap: 0 1.5rem; padding: 1.35rem 0; align-items: center;
  }
  .stat { margin: 0; justify-self: start; }
  .name { font-size: 2.3rem; }
  .row a:hover .stat .tag { transform: rotate(-3deg); }
  .tag { transition: transform .25s var(--ease); }
}

@media (min-width: 860px) {
  .group .row a { grid-template-columns: 2.6rem minmax(0, 1fr) auto 1.4rem; grid-template-areas: "no name stat arr" ". line stat arr"; gap: .2rem 1.2rem; align-items: baseline; }
  .group .name { font-size: 2.1rem; }
  .group .stat { align-self: center; grid-row: 1 / 3; }
}
/* groups on /apps */
.group { display: grid; gap: 1.2rem 3rem; margin-bottom: clamp(2.5rem, 7vw, 4.5rem); grid-template-columns: minmax(0, 1fr); }
.group-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.group-head .blurb { max-width: 30ch; }
@media (min-width: 900px) {
  .group { grid-template-columns: 17rem minmax(0, 1fr); }
  .group-head { position: sticky; top: 1.5rem; align-self: start; }
  .sec-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; }
}

/* ---------- gallery of index cards (Imaginary) ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: start; }
.tile-item:nth-child(3n+2) { margin-top: 1.6rem; }
.icard {
  display: block; color: var(--ink); text-decoration: none; background-color: var(--card); border-radius: 3px; padding: .85rem 1rem 1.1rem;
  min-height: 12.5rem; transform: rotate(var(--r, 0deg)); transition: transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 14px 22px -14px rgba(0,0,0,.6);
}
.icard:hover, .icard:focus-visible { color: var(--ink); transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 22px 26px -16px rgba(0,0,0,.7); }
.icard-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); margin-bottom: .6rem; }
.num { color: var(--muted); }
.emo { font-size: 1.15rem; line-height: 1; }
.icard-name { display: block; font: 1.9rem/1 var(--serif); letter-spacing: -.015em; margin-bottom: .55rem; min-height: 2rem; }
.icard-line { display: block; font-size: .92rem; line-height: 1.55rem; color: #43444b; }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(3rem, 10vw, 7rem); margin-bottom: 1.2rem; }
.page-head .lede { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.entry { padding-block: 1rem clamp(3rem, 8vw, 6rem); }
.crumb { margin: 0 0 clamp(1.5rem, 4vw, 3rem); }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.entry-head { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: center; margin-bottom: 2.4rem; }
.entry-head h1 { font-size: clamp(3rem, 9.5vw, 6.6rem); margin-bottom: 1.1rem; overflow-wrap: anywhere; }
.entry-head .lede { max-width: 34ch; }
.meta { margin: 1.4rem 0 0; }
.bigtile { display: none; }
@media (min-width: 760px) {
  .entry-head { grid-template-columns: minmax(0, 1fr) auto; }
  .bigtile { display: block; padding-right: 1rem; }
  .bigtile .tile { --s: clamp(7rem, 16vw, 11rem); transform: rotate(4deg); }
}
.record { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0 0 2.6rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.record > div { padding: 1rem 1rem 1.1rem 0; }
.record dt { color: var(--muted); margin-bottom: .45rem; }
.record dd { margin: 0; font: 1.35rem/1.1 var(--serif); }
.record dd .tag { font-family: var(--mono); font-size: .8rem; }

.prose { max-width: 62ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 2.1rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.6rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose li { font-size: 1.1rem; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--marker); font: 1.6rem/1.25 var(--serif); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.prose a { text-decoration-color: var(--accent); }
.plain .prose { max-width: 62ch; }
.plain h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: 1.2rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 1.4rem; margin-top: 3rem; }
.frame { margin: 0; padding: .6rem .6rem .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(22,22,27,.08); }
.frame img { border-radius: 3px; width: 100%; }
.frame figcaption { color: var(--muted); margin-top: .5rem; }

/* 404 */
.err { padding-bottom: clamp(3rem, 8vw, 6rem); }
.page-head .err-title { font-size: 1rem; margin-bottom: 2.4rem; }
.err-title .tile { --s: clamp(4.2rem, 20vw, 9.5rem); }
.err-title .tile:nth-child(1) { transform: rotate(-6deg); }
.err-title .tile:nth-child(2) { transform: rotate(9deg) translateY(8px); }
.err-title .tile:nth-child(3) { transform: rotate(172deg) translateY(4px); }
.err-title .tile:hover { transform: rotate(0deg) translateY(-6px); }

/* ---------- footer ---------- */
.site-footer { margin-top: 2rem; border-top: 2px solid var(--ink); padding-block: 2.6rem 2rem; background: var(--paper); }
.foot-tag { font: clamp(2.2rem, 7vw, 4.6rem)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 2rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; color: var(--muted); font-size: .8rem; }
.foot-row p { margin: 0; }

/* ---------- portfolio: the calm one ---------- */
body.mode-pro { background-image: none; }
.pro { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 6rem); display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr); }
.pro-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 1rem; }
.pro-head .lede { font-size: 1.15rem; }
.pro-section { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--ink); }
.pro-section h2 { font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.2rem; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font-size: .82rem; }
.pro-list { list-style: none; margin: 0; padding: 0; }
.pro-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.pro-item:hover { color: var(--ink); background: var(--paper-2); }
.pro-item strong { font: 1.7rem/1.1 var(--serif); font-weight: 400; }
.pro-item span { color: var(--muted); font-size: .98rem; }
.pro-item em { font-style: normal; color: var(--muted); }
@media (min-width: 900px) {
  .pro { grid-template-columns: 22rem minmax(0, 1fr); }
  .pro-head { position: sticky; top: 1.5rem; align-self: start; }
  .pro-item { grid-template-columns: 13rem minmax(0, 1fr) auto; align-items: baseline; gap: 1.5rem; padding: 1rem .5rem; }
  .pro-section:first-child { margin-top: 0; }
}
.pro .prose { margin-bottom: 0; }

/* ---------- motion (only if the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 80ms + 60ms); }
  .tile[style*="--x"] { animation: settle .95s cubic-bezier(.2, 1.25, .4, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
  .mode-pro .rise { animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle {
  from { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.9); }
  25% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  [data-shuffle] { display: none !important; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .stickers { padding-top: 1.2rem; gap: 1.1rem .9rem; }
  .sticker { font-size: 1rem; padding: .85rem 1.25rem; }
}
@media (max-width: 480px) {
  .name { font-size: 1.7rem; }
  .row a { grid-template-columns: 1.9rem minmax(0, 1fr) 1rem; gap: .1rem .7rem; }
}

/* ---------- v2.1 refinements ---------- */
.statement { max-width: none; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.hero-copy { max-width: 40rem; }

/* inner-page hero: text + specimen card */
.entry-head { grid-template-columns: minmax(0, 1fr); }
.spec {
  background: var(--card); border: 1px solid var(--ink); border-radius: 6px; padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: 0 4px 0 var(--ink); transform: rotate(1.6deg); max-width: 22rem; width: 100%;
}
.spec-tile { display: block; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--accent); }
.spec-tile .tile { --s: 5.5rem; transform: rotate(-4deg); }
.spec dl { margin: 0; }
.spec dl > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.spec dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font: 1.25rem/1.1 var(--serif); text-align: right; }
.spec dd .tag { font-family: var(--mono); font-size: .78rem; }
@media (min-width: 900px) {
  .entry-head { grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr); gap: 2rem 4rem; align-items: center; }
  .spec { justify-self: end; }
  .entry-head .lede { max-width: 40ch; }
}

/* 404 */
.err-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.err-grid > *:not(.err-title) { max-width: 34rem; }
.err .statement { font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (min-width: 900px) {
  .err-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  .err-title { grid-column: 2; grid-row: 1 / span 5; align-self: center; justify-self: end; margin: 0 !important; }
  .err-grid > *:not(.err-title) { grid-column: 1; }
}
.err-title .tile { --s: clamp(4rem, 19vw, 8.5rem); }
.err-title .tile .g { display: block; }
.err-title .tile:nth-child(1) { transform: rotate(-6deg); }
.err-title .tile:nth-child(2) { transform: rotate(7deg) translateY(8px); }
.err-title .tile:nth-child(3) { transform: rotate(-3deg) translateY(2px); }
.err-title .tile:nth-child(3) .g { transform: rotate(180deg); }
.err-title .tile:hover { transform: rotate(0deg) translateY(-6px); }

/* gallery: five across, content-height cards */
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 1.6rem 1.2rem; }
.tile-item:nth-child(3n+2) { margin-top: 0; }
.icard { min-height: 0; }
@media (min-width: 700px) {
  .icard { min-height: 11.5rem; }
  .tile-item:nth-child(even) { margin-top: 1.4rem; }
}
.icard-name { min-height: 0; }
.emo {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid var(--line); border-radius: 50%;
  font-size: .8rem; filter: grayscale(1); opacity: .75; background: var(--paper);
}

/* footer */
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.foot-tag { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; font: .82rem/1 var(--mono); }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* tap targets */
.crumb { margin-bottom: clamp(.5rem, 2vw, 1.5rem); }
.crumb a, .more a { display: inline-flex; align-items: center; min-height: 44px; }
.more { margin: 0; }
.nav a { padding: .7rem 0; }
.pro-section h2 { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .85rem; }

/* phone nav: one tidy scrolling row */
@media (max-width: 759px) {
  .bar { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--gutter)); margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); gap: 1.3rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; scroll-snap-align: start; }
}
