/* =====================================================================
   andy-barber.co.uk — a TUI

   The portfolio built as a terminal application, in the lineage of k9s,
   lazygit and btop: bordered panels with titles set into the top rule,
   a tree for the career log, ls-style colouring for the skill list,
   a persistent status bar, and keybindings that actually work.

   Not a fake shell prompt with a typing animation. An application.

   One typeface, as a terminal has: Martian Mono. Its width axis carries
   the hierarchy — condensed for dense rows, expanded for the banner.

   Palette is a 16-colour terminal scheme, dark by default because a
   terminal is, with a light scheme for those who run one. Every ink
   value clears 4.5:1 on both surfaces it sits on; the steps were solved,
   not eyeballed.

   CLASS CONTRACT
   ---------------------------------------------------------------------
   Chrome ....... .bar  .bar__brand  .tabs  .tab  .status  .status__mode
                  .status__loc  .status__keys  .key
   Layout ....... .tui  .panel  .panel__title  .panel__idx  .panel__meta
                  .panel__body
   Splash ....... .splash  .banner  .cursor  .idcard  .idcard__row
   Platform ..... .arch  .arch__node  .arch__flow  .arch__pulse
   Skills ....... .ls  .ls__row  .ls__dir  .ls__items  .ls__item
   Experience ... .tree  .tree__node  .tree__head  .tree__org  .tree__role
                  .tree__when  .tree__points
   Certs ........ .table  .table__row  .badge
   Work ......... .card  .card__head  .card__preview  .card__points
   Contact ...... .cmds  .cmd  .cmd__sigil
   Overlay ...... .help  .help__grid
   Utility ...... .visually-hidden  .skip-link  [data-reveal]
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens — a terminal scheme
   --------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #10141c;
  --alt: #161b26;
  --hi: #1e2533;
  --border: #323a4c;

  --fg: #ced6e4;
  --dim: #8892a6;
  --faint: #7a8397;

  --green: #7fd6a2;
  --cyan: #6fc7d4;
  --blue: #7aa8e8;
  --yellow: #e0c179;
  --magenta: #c69ae0;
  --red: #e08c8c;

  --on-accent: #0b1016;

  /* A terminal has a width. */
  --cols: 108ch;
  --gutter: clamp(0.75rem, 3vw, 2rem);
  --row: 1.55rem;

  --mono: "Martian Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo,
    Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);
  --speed: 150ms;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #eef1f5;
    --alt: #e6eaf0;
    --hi: #dce2ea;
    --border: #b8c1cd;

    --fg: #1c2430;
    --dim: #4d5666;
    --faint: #616a79;

    --green: #1d7850;
    --cyan: #10707d;
    --blue: #2f5fa8;
    --yellow: #85650d;
    --magenta: #7a4b96;
    --red: #a33b3b;

    --on-accent: #f2f6f4;
  }
}

/* ---------------------------------------------------------------------
   2. Reset / base
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--mono);
  font-stretch: 75%; /* condensed: dense rows, like a terminal */
  font-size: 15px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* clear of the fixed bars */
  padding: 3.1rem 0 2.6rem;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input {
  font: inherit;
  font-stretch: 75%;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

::selection {
  background: var(--green);
  color: var(--on-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 0.5rem;
  top: -4rem;
  z-index: 200;
  padding: 0.4rem 0.9rem;
  background: var(--green);
  color: var(--on-accent);
  font-size: 0.8rem;
  transition: top var(--speed) var(--ease);
}

.skip-link:focus {
  top: 0.5rem;
}

/* ---------------------------------------------------------------------
   3. Chrome — top bar and status bar
   --------------------------------------------------------------------- */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5ch;
  height: 3.1rem;
  padding-inline: var(--gutter);
  background: var(--alt);
  border-bottom: 1px solid var(--border);
}

.bar__brand {
  display: flex;
  align-items: center;
  gap: 1ch;
  flex: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
}

.bar__brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.tabs {
  display: flex;
  gap: 0.5ch;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.7ch;
  flex: none;
  padding: 0.3rem 1ch;
  font-size: 0.76rem;
  color: var(--dim);
  border: 1px solid transparent;
  transition: color var(--speed) var(--ease),
    border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.tab b {
  font-weight: 700;
  color: var(--faint);
}

.tab:hover {
  color: var(--fg);
  border-color: var(--border);
}

.tab.is-current {
  color: var(--on-accent);
  background: var(--green);
  border-color: var(--green);
}

.tab.is-current b {
  color: var(--on-accent);
}

.status {
  position: fixed;
  inset: auto 0 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  height: 2.6rem;
  padding-right: var(--gutter);
  background: var(--alt);
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--dim);
}

.status__mode {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  background: var(--green);
  color: var(--on-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status__loc {
  padding-inline: 1.5ch;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status__keys {
  display: flex;
  gap: 2ch;
  margin-left: auto;
  flex: none;
}

.key {
  color: var(--faint);
  white-space: nowrap;
}

.key b {
  font-weight: 700;
  color: var(--yellow);
}

/* Keyboard hints mean nothing without a keyboard. */
@media (max-width: 860px), (pointer: coarse) {
  .status__keys {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   4. Panels — the box, with its title set into the top rule
   --------------------------------------------------------------------- */
.tui {
  width: 100%;
  max-width: var(--cols);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  padding-block: 1.9rem;
}

.panel {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg);
}

.panel__title,
.panel__meta {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  background: var(--bg);
  padding-inline: 1ch;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.panel__title {
  left: 2ch;
  display: flex;
  align-items: center;
  gap: 1ch;
  color: var(--fg);
}

.panel__idx {
  color: var(--yellow);
  background: var(--hi);
  padding: 0.15em 0.7ch;
  font-size: 0.9em;
}

.panel__meta {
  right: 2ch;
  font-weight: 400;
  color: var(--faint);
}

.panel__body {
  padding: 1.6rem clamp(1ch, 2.5vw, 3ch) 1.5rem;
}

.panel__lead {
  max-width: 68ch;
  color: var(--dim);
  margin-bottom: 1.4rem;
}

.panel__lead strong {
  color: var(--fg);
  font-weight: 500;
}

@media (max-width: 620px) {
  .panel__meta {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   5. Splash — banner, id card, on-call grid
   --------------------------------------------------------------------- */
.splash {
  display: grid;
  gap: 2rem;
}

/* Signature and actions travel together in the right column. */
.splash__side {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.banner {
  font-stretch: 112.5%;
  font-weight: 800;
  font-size: clamp(1.9rem, 6.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  color: var(--fg);
}

.banner em {
  font-style: normal;
  color: var(--green);
}

.cursor {
  display: inline-block;
  width: 0.62em;
  height: 0.86em;
  margin-left: 0.1em;
  vertical-align: -0.06em;
  background: var(--green);
  animation: blink 1.15s steps(1) infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.idcard {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 2.5ch;
  align-items: start;
}

.idcard__avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(1) contrast(1.1);
}

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

.idcard__who {
  color: var(--green);
  font-weight: 700;
  font-size: 0.88rem;
}

.idcard__rule {
  display: block;
  height: 1px;
  margin: 0.5rem 0 0.7rem;
  background: var(--border);
}

.idcard__row {
  display: grid;
  grid-template-columns: 8ch minmax(0, 1fr);
  gap: 1.5ch;
  font-size: 0.86rem;
  line-height: 1.75;
}

.idcard__row dt {
  color: var(--faint);
}

.idcard__row dd {
  margin: 0;
  color: var(--fg);
}

.idcard__row dd b {
  font-weight: 700;
  color: var(--yellow);
}

@media (max-width: 560px) {
  .idcard {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .idcard__row {
    grid-template-columns: 7ch minmax(0, 1fr);
    gap: 1ch;
  }
}

@media (min-width: 900px) {
  .splash {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }

}

/* --- The platform, as a diagram ------------------------------------- */
.arch {
  border: 1px solid var(--border);
  background: var(--alt);
}

.arch__head {
  display: flex;
  align-items: center;
  gap: 1ch;
  padding: 0.5rem 1.5ch;
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--fg);
}

.arch__head-meta {
  margin-left: auto;
  font-weight: 400;
  color: var(--faint);
}

.arch__body {
  padding: 1.2rem 1.5ch 1.3rem;
  display: flex;
  flex-direction: column;
}

.arch__node {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.5rem 1.5ch 0.55rem;
  transition: border-color var(--speed) var(--ease);
}

.arch__node:hover {
  border-color: var(--c, var(--fg));
}

.arch__name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--c, var(--fg));
}

.arch__meta {
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--dim);
}

/* Fixed hue order down the stack, matching the ls convention above. */
.arch__node--iac { --c: var(--magenta); }
.arch__node--cloud { --c: var(--blue); }
.arch__node--platform { --c: var(--cyan); }
.arch__node--ai { --c: var(--green); }
.arch__node--obs { --c: var(--yellow); }

/* The connector between two layers. */
.arch__flow {
  position: relative;
  display: block;
  height: 1.7rem;
}

.arch__flow::before {
  content: "";
  position: absolute;
  left: 3ch;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.arch__flow::after {
  content: "\25be"; /* ▾ */
  position: absolute;
  left: 3ch;
  bottom: -0.15rem;
  transform: translateX(-50%);
  font-size: 0.66rem;
  line-height: 1;
  color: var(--border);
}

.arch__label {
  position: absolute;
  left: 5ch;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.66rem;
  color: var(--faint);
  white-space: nowrap;
}

/* A pulse travels the spine top to bottom — motion that stands for flow,
   not for data. Killed outright under reduced motion. */
.arch__pulse {
  position: absolute;
  left: 3ch;
  top: 0;
  width: 5px;
  height: 5px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  animation: flow 3.6s linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes flow {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    transform: translateY(1.7rem);
    opacity: 0;
  }
}

.arch__foot {
  padding: 0.7rem 1.5ch 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .arch__pulse {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   6. Skills — ls output, coloured by kind
   --------------------------------------------------------------------- */
.filter {
  display: flex;
  align-items: center;
  gap: 1ch;
  margin-bottom: 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.filter__sigil {
  color: var(--yellow);
  font-weight: 700;
}

.filter__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 0.88rem;
  padding: 0.1rem 0;
}

.filter__input::placeholder {
  color: var(--faint);
}

.filter__input:focus {
  outline: none;
}

.filter__count {
  flex: none;
  font-size: 0.72rem;
  color: var(--faint);
}

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

.ls__row {
  display: grid;
  gap: 0.2rem 2ch;
  padding-block: 0.55rem;
  border-bottom: 1px dotted var(--border);
}

.ls__row:last-child {
  border-bottom: 0;
}

.ls__row.is-empty {
  display: none;
}

.ls__dir {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--c, var(--fg));
  white-space: nowrap;
}

.ls__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 2.5ch;
  font-size: 0.84rem;
}

.ls__item {
  color: var(--c, var(--fg));
  transition: color var(--speed) var(--ease);
}

.ls__item.is-hidden {
  display: none;
}

.ls__item.is-match {
  background: var(--yellow);
  color: var(--on-accent);
}

/* Fixed hue order, assigned per domain — the ls convention. */
.ls__row--1 { --c: var(--blue); }
.ls__row--2 { --c: var(--cyan); }
.ls__row--3 { --c: var(--magenta); }
.ls__row--4 { --c: var(--green); }
.ls__row--5 { --c: var(--yellow); }
.ls__row--6 { --c: var(--fg); }

@media (min-width: 760px) {
  .ls__row {
    grid-template-columns: 22ch minmax(0, 1fr);
    align-items: baseline;
  }
}

/* ---------------------------------------------------------------------
   7. Experience — the career as a tree
   --------------------------------------------------------------------- */
.tree {
  display: flex;
  flex-direction: column;
}

.tree__node {
  border-bottom: 1px dotted var(--border);
}

.tree__node:last-child {
  border-bottom: 0;
}

/* Flex, not grid: ::before is itself a box, and a two-track grid pushed the
   identity into the 3ch marker column. */
.tree__head {
  display: flex;
  align-items: baseline;
  gap: 0 1.2ch;
  padding-block: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.tree__head::-webkit-details-marker {
  display: none;
}

.tree__head::before {
  content: "\25b8"; /* ▸ */
  flex: none;
  color: var(--faint);
  transition: transform var(--speed) var(--ease);
}

.tree__node[open] > .tree__head::before {
  content: "\25be"; /* ▾ */
  color: var(--green);
}

.tree__head:hover .tree__org {
  text-decoration: underline;
}

.tree__ident {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 2ch;
}

.tree__org {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}

.tree__role {
  color: var(--fg);
  font-size: 0.86rem;
}

.tree__when {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.78rem;
  white-space: nowrap;
}

.tree__points {
  display: flex;
  flex-direction: column;
  padding: 0 0 1rem 4ch;
  max-width: 84ch;
}

.tree__points li {
  position: relative;
  padding-left: 3ch;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.75;
  padding-bottom: 0.45rem;
}

.tree__points li::before {
  content: "\251c\2500"; /* ├─ */
  position: absolute;
  left: 0;
  color: var(--border);
}

.tree__points li:last-child::before {
  content: "\2514\2500"; /* └─ */
}

.tree__logo {
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
  align-self: center;
}

@media (max-width: 700px) {
  .tree__when {
    margin-left: 0;
    flex-basis: 100%;
  }

  .tree__points {
    padding-left: 2ch;
  }
}

/* ---------------------------------------------------------------------
   8. Certifications — a table
   --------------------------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.table th {
  text-align: left;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding-block: 0.5rem;
  border-bottom: 1px dotted var(--border);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr {
  transition: background-color var(--speed) var(--ease);
}

.table tbody tr:hover {
  background: var(--alt);
}

.table__name {
  color: var(--fg);
}

.table__issuer {
  color: var(--dim);
  white-space: nowrap;
}

.table__state {
  color: var(--green);
  white-space: nowrap;
}

.badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (max-width: 620px) {
  .table thead {
    display: none;
  }

  .table tr {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0 1.5ch;
    padding-block: 0.6rem;
    border-bottom: 1px dotted var(--border);
  }

  .table td {
    border: 0;
    padding: 0;
  }

  .table td:first-child {
    grid-row: span 2;
  }

  .table__issuer,
  .table__state {
    font-size: 0.74rem;
  }
}

/* ---------------------------------------------------------------------
   9. Projects
   --------------------------------------------------------------------- */
.work__cols {
  columns: 1;
  column-gap: 1.4rem;
  margin-top: 1.4rem;
}

.work__cols .card {
  break-inside: avoid;
  margin-bottom: 1.4rem;
}

@media (min-width: 720px) {
  .work__cols {
    columns: 2;
  }
}

.card {
  border: 1px solid var(--border);
  background: var(--alt);
  display: flex;
  flex-direction: column;
}

.card__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 2ch;
  padding: 0.7rem 1.5ch;
  border-bottom: 1px solid var(--border);
}

.card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}

.card__tag {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--faint);
}

.card__body {
  padding: 1.1rem 1.5ch 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.card__desc {
  color: var(--dim);
  font-size: 0.86rem;
}

.card__preview {
  border: 1px solid var(--border);
  background: var(--bg);
}

.card__preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.card__points {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
}

.card__points li {
  position: relative;
  padding-left: 3ch;
  padding-bottom: 0.3rem;
  color: var(--dim);
}

.card__points li::before {
  content: "\251c\2500";
  position: absolute;
  left: 0;
  color: var(--border);
}

.card__points li:last-child::before {
  content: "\2514\2500";
}

.card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 2ch;
  font-size: 0.78rem;
  color: var(--cyan);
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 2ch;
  margin-top: auto;
  padding-top: 0.3rem;
}

.card__link {
  font-size: 0.8rem;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease);
}

.card__link:hover {
  border-color: var(--blue);
}

.card__link::after {
  content: " \2197";
}

@media (min-width: 820px) {
  .card--lead .card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 2.5ch;
    align-items: start;
  }

  .card--lead .card__preview {
    grid-row: 1 / span 4;
  }

  .card--lead .card__preview img {
    aspect-ratio: 3 / 2;
  }
}

/* ---------------------------------------------------------------------
   10. Contact — runnable-looking commands
   --------------------------------------------------------------------- */
.cmds {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cmd {
  display: flex;
  align-items: baseline;
  gap: 1.5ch;
  padding: 0.5rem 1.5ch;
  font-size: 0.88rem;
  color: var(--fg);
  border: 1px solid transparent;
  transition: background-color var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.cmd:hover {
  background: var(--alt);
  border-color: var(--border);
}

.cmd__sigil {
  color: var(--green);
  font-weight: 700;
  flex: none;
}

.cmd__arg {
  color: var(--cyan);
  word-break: break-all;
}

.cmd__note {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.74rem;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .cmd__note {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   11. Help overlay
   --------------------------------------------------------------------- */
.help {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(3px);
}

.help[hidden] {
  display: none;
}

.help__box {
  width: min(56ch, 100%);
  border: 1px solid var(--green);
  background: var(--bg);
}

.help__head {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5ch;
  border-bottom: 1px solid var(--border);
  background: var(--alt);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
}

.help__close {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 400;
}

.help__grid {
  display: grid;
  grid-template-columns: 9ch minmax(0, 1fr);
  gap: 0.35rem 2ch;
  padding: 1.1rem 1.5ch 1.3rem;
  font-size: 0.82rem;
}

.help__grid dt {
  color: var(--yellow);
  font-weight: 700;
}

.help__grid dd {
  margin: 0;
  color: var(--dim);
}

/* ---------------------------------------------------------------------
   12. Motion
   --------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .cursor {
    opacity: 1;
  }
}

@media print {
  .bar,
  .status,
  .help,
  .skip-link,
  .filter {
    display: none;
  }

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }

  .panel {
    break-inside: avoid;
  }
}
