/* anamaya.fyi
   ---------------------------------------------------------------------------
   Type does the work here. There is one accent colour per project and almost no
   chrome otherwise: no shadows on text, no borders that a gap could do instead,
   no gradient that is not lighting something. Motion is a single gesture --
   16px up and into opacity -- reused everywhere so the page feels like one
   object rather than a stack of effects.
--------------------------------------------------------------------------- */

/* ------------------------------------------------------------- tokens ---- */
:root {
  --bg:        #fbfbfd;
  --bg-raised: #ffffff;
  --bg-sunken: #f5f5f7;
  --ink:       #1d1d1f;
  --ink-2:     #48484a;
  --ink-3:     #86868b;
  --hair:      rgba(0, 0, 0, .10);
  --hair-soft: rgba(0, 0, 0, .06);
  --accent:    #0b66c3;
  --nav-bg:    rgba(251, 251, 253, .72);
  --shadow-lg: 0 18px 60px -20px rgba(0, 0, 0, .22);
  --shadow-sm: 0 2px 14px -6px rgba(0, 0, 0, .18);

  --maxw: 1120px;
  --gut: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 11vw, 152px);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino,
           "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

/* The three theme states: explicit light, system, explicit dark. Every colour
   is defined on bare :root above so nothing is only defined inside a query. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #000000;
    --bg-raised: #1c1c1e;
    --bg-sunken: #131315;
    --ink:       #f5f5f7;
    --ink-2:     #c7c7cc;
    --ink-3:     #8e8e93;
    --hair:      rgba(255, 255, 255, .14);
    --hair-soft: rgba(255, 255, 255, .08);
    --accent:    #4ea3ff;
    --nav-bg:    rgba(0, 0, 0, .68);
    --shadow-lg: 0 18px 60px -20px rgba(0, 0, 0, .8);
    --shadow-sm: 0 2px 14px -6px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #000000;
  --bg-raised: #1c1c1e;
  --bg-sunken: #131315;
  --ink:       #f5f5f7;
  --ink-2:     #c7c7cc;
  --ink-3:     #8e8e93;
  --hair:      rgba(255, 255, 255, .14);
  --hair-soft: rgba(255, 255, 255, .08);
  --accent:    #4ea3ff;
  --nav-bg:    rgba(0, 0, 0, .68);
  --shadow-lg: 0 18px 60px -20px rgba(0, 0, 0, .8);
  --shadow-sm: 0 2px 14px -6px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* -------------------------------------------------------------- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.022em; line-height: 1.07; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ scaffold --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 760px; }
.wrap-wide { max-width: 1320px; }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(52px, 7vw, 96px); }
.sunken { background: var(--bg-sunken); }

.hr { height: 1px; background: var(--hair-soft); border: 0; margin: 0; }

/* --------------------------------------------------------------- type ---- */
.display {
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  letter-spacing: -.035em;
  line-height: 1.02;
  font-weight: 640;
}
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.028em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.024em; }
.h3 { font-size: clamp(1.16rem, 1.7vw, 1.42rem); letter-spacing: -.016em; }

.lede {
  font-size: clamp(1.12rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -.014em;
}
.body-lg { font-size: 1.06rem; line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; line-height: 1.5; }

.eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ---------------------------------------------------------------- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--hair-soft); }
.nav-in {
  height: 52px;
  display: flex; align-items: center; gap: 8px;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut);
}
.nav-name { font-weight: 600; font-size: .96rem; letter-spacing: -.01em; margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .85rem; color: var(--ink-2);
  padding: 7px 11px; border-radius: 980px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--hair-soft); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 550; }

.theme-btn {
  appearance: none; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 980px;
  display: inline-grid; place-items: center;
  transition: background-color .2s ease, color .2s ease;
}
.theme-btn:hover { background: var(--hair-soft); color: var(--ink); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
}

@media (max-width: 640px) {
  .nav-links a { padding: 7px 8px; font-size: .8rem; }
  .nav-in { gap: 2px; }
}

/* --------------------------------------------------------------- hero ---- */
.hero {
  padding-top: clamp(72px, 13vh, 148px);
  padding-bottom: clamp(56px, 9vh, 104px);
  text-align: center;
}
.hero .display { max-width: 16ch; margin-inline: auto; }
.hero .lede { max-width: 58ch; margin: 26px auto 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 980px;
  font-size: .95rem; font-weight: 500;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), opacity .22s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1.5px); opacity: .88; }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { background: var(--hair-soft); opacity: 1; }

/* ------------------------------------------------------- project cards --- */
.cards { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--hair-soft);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--hair); }

.card-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-sunken);
  /* The full hairline, not the soft one: since these shots follow the reader's
     theme, a dark screenshot now sits on a dark card and a light one on white,
     and at --hair-soft the edge of the product disappeared into the card. */
  border-bottom: 1px solid var(--hair);
}
.card-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-shot img { transform: scale(1.028); }

/* Projects with no public deployment get a drawn mark instead of a screenshot,
   rather than a stock photo standing in for a product that is not shown. */
.card-mark {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--hair-soft);
  background:
    radial-gradient(120% 130% at 50% 0%,
      color-mix(in srgb, var(--tint) 22%, transparent) 0%,
      transparent 62%),
    var(--bg-sunken);
}
.card-mark span {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -.04em;
  color: color-mix(in srgb, var(--tint) 82%, var(--ink));
  opacity: .92;
}

.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-kind {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.card-kind::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tint, var(--accent));
}
.card-body h3 { font-size: 1.3rem; }
.card-body p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.card-foot {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--ink-3);
}
.card-cta { color: var(--accent); font-weight: 500; }
.card-cta::after { content: " →"; }

/* The whole card is the link target; the visible <a> just carries the label. */
.card-link::after { content: ""; position: absolute; inset: 0; }

/* ------------------------------------------------------------ spotlight -- */
/* The newest project, one per landing page. A card in the grid below cannot be
   made to mean "new" -- every card is the same size, which is the point of a
   grid -- so this is a different object: wider, with room for the finding and
   not just the one-liner, and lit by the project's own accent rather than by a
   badge. One tint, one glow, no second border. */
.spot {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--hair-soft);
  background:
    radial-gradient(120% 140% at 0% 0%,
      color-mix(in srgb, var(--tint) 13%, transparent) 0%, transparent 58%),
    var(--bg-raised);
  box-shadow: var(--shadow-sm);
}
.spot-shot {
  display: block;
  border-radius: clamp(12px, 1.6vw, 18px);
  overflow: hidden;
  /* Same reason as .card-shot, and more so: this one floats inside the panel
     rather than sitting against its edge, so it is the border alone that says
     where the product stops and the page starts. */
  border: 1px solid var(--hair);
  background: var(--bg-sunken);
  aspect-ratio: 16 / 10;
}
.spot-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.spot-mark {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 130% at 50% 0%,
      color-mix(in srgb, var(--tint) 24%, transparent) 0%, transparent 62%),
    var(--bg-sunken);
}
.spot-mark span {
  font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 5rem); font-weight: 500;
  letter-spacing: -.04em; color: color-mix(in srgb, var(--tint) 82%, var(--ink));
}

/* The shot keeps its 16/10 frame at every width rather than stretching to the
   height of the prose beside it. Stretching was tried: filling a 561x671 column
   with a 1440x900 page crops 256px off each side, which takes the product's own
   name off its own screenshot. A band of quiet card above and below is the
   cheaper price. */
@media (min-width: 940px) {
  .spot { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}

.spot-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(4px, 1vw, 14px); }
.spot-new { color: color-mix(in srgb, var(--tint) 72%, var(--ink-2)); }
.spot-new::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 7px; height: 7px; border-radius: 50%; margin-right: 9px;
  background: var(--tint);
}
.spot-body .body-lg { max-width: 56ch; }

/* The finding, not the description. Set apart by a rule in the project's own
   colour so the eye can take it alone, and still a paragraph rather than a
   pull-quote -- it is an argument, and an argument needs its sentences. */
.spot-pitch {
  color: var(--ink-2); font-size: .95rem; line-height: 1.6; max-width: 58ch;
  padding-left: 16px;
  border-left: 2px solid color-mix(in srgb, var(--tint) 55%, transparent);
}

.spot-figs {
  display: grid; gap: 18px 26px; margin-top: 4px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
}
.spot-fig .n {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 620;
  letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.spot-fig .l { margin-top: 7px; font-size: .8rem; color: var(--ink-3); line-height: 1.35; }

.spot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* --------------------------------------------------- shots, per theme ---- */
/* Half the projects are dark-first, and a dark product shot in a light card
   read as a rendering fault rather than as the product. Where both exist the
   page carries both images and this picks -- the same three states the theme
   toggle uses (explicit light, system, explicit dark), so a reader who has
   chosen a theme sees the screenshots in it too. Pages with a single shot emit
   one <img> and never reach these rules. */
.shot-d { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-l { display: none; }
  :root:not([data-theme="light"]) .shot-d { display: block; }
}
:root[data-theme="dark"] .shot-l { display: none; }
:root[data-theme="dark"] .shot-d { display: block; }

/* ------------------------------------------------------------- metrics --- */
.metrics {
  display: grid; gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.metric .n {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 620; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric .l { margin-top: 9px; font-size: .87rem; color: var(--ink-3); line-height: 1.4; }

/* --------------------------------------------------------- case layout --- */
.case-hero { padding-top: clamp(48px, 8vh, 92px); padding-bottom: clamp(30px, 5vh, 52px); }
.case-hero .display { max-width: 18ch; }
.case-hero .lede { max-width: 62ch; margin-top: 22px; }

.case-shot {
  border-radius: clamp(14px, 2vw, 22px);
  overflow: hidden;
  border: 1px solid var(--hair-soft);
  box-shadow: var(--shadow-lg);
  background: var(--bg-sunken);
}

.prose { display: flex; flex-direction: column; gap: clamp(38px, 5vw, 60px); }
.prose section { display: flex; flex-direction: column; gap: 13px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.022em; }
.prose p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.68; max-width: 68ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .81rem; color: var(--ink-2);
  padding: 5px 12px; border-radius: 980px;
  border: 1px solid var(--hair); background: var(--bg-raised);
}

.pair { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .pair { grid-template-columns: 320px 1fr; } }

/* -------------------------------------------------------------- lists ---- */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid; gap: 6px 24px; align-items: baseline;
  padding-block: 22px;
  border-top: 1px solid var(--hair-soft);
  grid-template-columns: 1fr;
}
.row:last-child { border-bottom: 1px solid var(--hair-soft); }
@media (min-width: 760px) { .row { grid-template-columns: 210px 1fr; } }
.row dt, .row .k { font-weight: 550; }
.row .v, .row dd { margin: 0; color: var(--ink-2); }

.bullets { display: flex; flex-direction: column; gap: 11px; }
.bullets li {
  position: relative; padding-left: 20px;
  color: var(--ink-2); line-height: 1.6;
}
.bullets li::before {
  content: ""; position: absolute; left: 3px; top: .68em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3);
}

.linklist a {
  display: flex; align-items: baseline; gap: 14px;
  padding-block: 17px;
  border-top: 1px solid var(--hair-soft);
  transition: padding-left .28s cubic-bezier(.2,.7,.2,1);
}
.linklist a:last-child { border-bottom: 1px solid var(--hair-soft); }
.linklist a:hover { padding-left: 8px; }
.linklist .nm { font-weight: 550; min-width: 0; }
.linklist .ds { color: var(--ink-3); font-size: .92rem; flex: 1; }
.linklist .ar { color: var(--ink-3); }

/* -------------------------------------------------------------- footer --- */
.footer { border-top: 1px solid var(--hair-soft); padding-block: 52px 40px; }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.footer h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.footer ul { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.footer a { color: var(--ink-2); font-size: .92rem; transition: color .2s ease; }
.footer a:hover { color: var(--ink); }
.footer-note { margin-top: 44px; color: var(--ink-3); font-size: .82rem; }

/* ------------------------------------------------------------- reveal ---- */
/* One gesture, reused. Elements are visible by default and only hidden once JS
   confirms it will be the thing revealing them -- so with JS off or broken the
   page is fully readable instead of blank. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.in { transition: none; }
  .card, .card-shot img, .btn, .linklist a { transition: none !important; }
  .card:hover { transform: none; }
  .card:hover .card-shot img { transform: none; }
}

/* --------------------------------------------------------------- misc ---- */
.stack { display: flex; flex-direction: column; }
.gap-xs { gap: 8px; } .gap-s { gap: 14px; } .gap-m { gap: 24px; }
.gap-l { gap: clamp(30px, 4vw, 48px); } .gap-xl { gap: clamp(44px, 6vw, 78px); }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: clamp(34px, 5vw, 56px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #30b85c; }
.dot-idle { background: var(--ink-3); }

a.inline { color: var(--accent); }
a.inline:hover { text-decoration: underline; text-underline-offset: 3px; }

code { font-family: var(--mono); font-size: .88em; }

/* ------------------------------------------------------- refinements ----- */

/* A hero already ends in a large pad; the section that follows it does not need
   its full top pad as well, or the two stack into a screenful of nothing.
   The sibling selector covers the pages where a section follows the hero
   directly; .section-first is for /work, where a wrapping div sits between
   them and there is no sibling relationship to match on. */
.case-hero + .section,
.case-hero + .section-tight,
.section-first { padding-top: clamp(16px, 2.5vw, 34px); }

/* Centred text is right for a short hero line and wrong for a paragraph. Below
   the breakpoint a 60-word lede becomes eight ragged centred lines with no
   common left edge for the eye to return to, so it goes left-aligned -- while
   the headline and the buttons stay centred. */
@media (max-width: 680px) {
  .hero .lede, .center .lede { text-align: left; }
  .hero .display { max-width: none; }
}

/* Phone: the case-study hero carries the same treatment. */
@media (max-width: 680px) {
  .case-hero .lede { text-align: left; }
}

/* ------------------------------------------------------- the catalogue --- */

/* Fifty-seven dated rows want to read like a well-set index, not a spreadsheet.
   The first pass was too airy: 13px of vertical padding per row and a name
   column pinned at 300px, which left a dead gutter between the title and its
   description and pushed the page past 5,000px. Tighter leading, a name column
   that sizes to its content, and the arrow only on hover. */

.cat-hero { padding-block: clamp(40px, 7vh, 78px) clamp(16px, 2.4vw, 26px); }
.cat-hero .lede { max-width: 60ch; margin-top: 18px; }

.jump { display: flex; flex-wrap: wrap; gap: 7px; margin-top: clamp(18px, 2.4vw, 26px); }
.jump a {
  font-size: .8rem; color: var(--ink-2);
  padding: 5px 12px; border-radius: 980px; border: 1px solid var(--hair);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.jump a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.era { padding-block: clamp(22px, 3vw, 34px); scroll-margin-top: 66px; }
.era-head { max-width: 62ch; margin-bottom: 12px; }
.era-head h2 { font-size: clamp(1.12rem, 1.9vw, 1.4rem); letter-spacing: -.018em; }
.era-head p { margin-top: 6px; color: var(--ink-3); font-size: .9rem; line-height: 1.55; }

.cat { display: flex; flex-direction: column; }

.cat-row {
  display: grid;
  gap: 1px 20px;
  align-items: baseline;
  grid-template-columns: 1fr;
  padding: 8px 10px;
  margin-inline: -10px;
  border-radius: 8px;
  border-top: 1px solid var(--hair-soft);
  transition: background-color .16s ease;
}
.cat-row:last-child { border-bottom: 1px solid var(--hair-soft); }
a.cat-row:hover { background: var(--hair-soft); }

/* Columns are shared across the whole list, not per row.
   max-content on an individual row sizes to THAT row's title, so every
   description started at a different x and the left edge came out ragged.
   subgrid lets the container own the tracks while each row stays a real element
   that can carry a border and a hover state. */
@media (min-width: 800px) {
  .cat {
    display: grid;
    grid-template-columns: 46px minmax(0, max-content) 1fr 14px;
  }
  .cat-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }
  /* Wide enough that the longest title plus its private badge stays on one
     line; a single wrapping row makes the whole list look uneven. */
  .cat-n { max-width: 44ch; flex-wrap: nowrap; }
}

/* A live dot: this one is open-able right now. */
.cat-live {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: #30b85c; align-self: center; margin-right: 1px;
}

.cat-y {
  font-family: var(--mono); font-size: .76rem; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cat-n {
  font-weight: 550; font-size: .94rem; line-height: 1.45;
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
}
.cat-d {
  color: var(--ink-3); font-size: .88rem; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 800px) { .cat-d { white-space: nowrap; } }

.cat-a { color: var(--accent); font-size: .8rem; text-align: right; opacity: 0; transition: opacity .16s ease; }
a.cat-row:hover .cat-a { opacity: 1; }
.cat-dead .cat-n { color: var(--ink-2); }
.cat-vis {
  flex: none;
  font-size: .6rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--hair); border-radius: 980px; padding: 1px 6px;
}
.cat-foot {
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: 18px; border-top: 1px solid var(--hair-soft);
  max-width: 62ch;
}

/* Certifications: several per issuer, so a plain list inside the row's value
   column rather than one row each. */
.certs { display: flex; flex-direction: column; gap: 7px; }
.certs li { position: relative; padding-left: 18px; line-height: 1.5; }
.certs li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3);
}
.certs-wide { gap: 7px; }
@media (min-width: 760px) {
  .certs-wide { display: block; columns: 2; column-gap: 34px; }
  .certs-wide li { break-inside: avoid; margin-bottom: 7px; }
}
.cert-y {
  font-family: var(--mono); font-size: .78rem; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
