/* ==========================================================================
   jupiter.au
   Display: Archivo · Body: system stack · Metadata: IBM Plex Mono
   Restrained technical: hairline rules, 2px radii, no shadows, no gradients.
   ========================================================================== */

/* --- typefaces (self-hosted, no remote dependency) ---------------------- */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- tokens ------------------------------------------------------------ */

:root {
  color-scheme: light;

  --bg:        oklch(98% 0.005 250);
  --surface:   oklch(100% 0 0);
  --fg:        oklch(22% 0.02 240);
  --muted:     oklch(43% 0.018 240);
  --border:    oklch(90% 0.008 240);   /* decorative hairline               */
  --edge:      oklch(52% 0.02 240);    /* control outline, >= 3:1 on --bg    */
  --line-soft: oklch(78% 0.012 240);   /* schematic line work                */
  --chip:      oklch(95% 0.006 240);
  --hover:     oklch(94% 0.007 240);
  --accent:    oklch(58% 0.16 145);
  --focus:     oklch(52% 0.16 145);
  --btn-bg:    oklch(22% 0.02 240);
  --btn-fg:    oklch(98% 0.005 250);
  --btn-hover: oklch(34% 0.02 240);

  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --r: 2px;
  --w: 1160px;
  --pad: clamp(20px, 5vw, 40px);
  --section: clamp(52px, 8vw, 96px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --bg:        oklch(16% 0.01 240);
    --surface:   oklch(19% 0.012 240);
    --fg:        oklch(95% 0.008 240);
    --muted:     oklch(72% 0.014 240);
    --border:    oklch(30% 0.012 240);
    --edge:      oklch(52% 0.02 240);
    --line-soft: oklch(40% 0.014 240);
    --chip:      oklch(22% 0.012 240);
    --hover:     oklch(23% 0.012 240);
    --accent:    oklch(72% 0.15 145);
    --focus:     oklch(72% 0.15 145);
    --btn-bg:    oklch(95% 0.008 240);
    --btn-fg:    oklch(16% 0.01 240);
    --btn-hover: oklch(86% 0.01 240);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --bg:        oklch(16% 0.01 240);
  --surface:   oklch(19% 0.012 240);
  --fg:        oklch(95% 0.008 240);
  --muted:     oklch(72% 0.014 240);
  --border:    oklch(30% 0.012 240);
  --edge:      oklch(52% 0.02 240);
  --line-soft: oklch(40% 0.014 240);
  --chip:      oklch(22% 0.012 240);
  --hover:     oklch(23% 0.012 240);
  --accent:    oklch(72% 0.15 145);
  --focus:     oklch(72% 0.15 145);
  --btn-bg:    oklch(95% 0.008 240);
  --btn-fg:    oklch(16% 0.01 240);
  --btn-hover: oklch(86% 0.01 240);
}

/* --- base -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

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

a { color: inherit; }

::selection { background: var(--fg); color: var(--bg); }

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

#work, #credentials, #availability, #contact { scroll-margin-top: 92px; }

/* --- layout primitives -------------------------------------------------- */

.wrap {
  width: min(100% - (2 * var(--pad)), var(--w));
  margin-inline: auto;
}

.sect { margin-top: var(--section); }

.strip { margin-top: clamp(40px, 5.5vw, 68px); }

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

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 40;
  padding: 12px 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
}

.skip:focus { top: 12px; }

/* --- metadata type ------------------------------------------------------ */

.meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* schematic state mark: hollow = pending, filled = complete */
.mark {
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid var(--edge);
}

.mark--full { background: var(--fg); border-color: var(--fg); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.ulink {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--edge);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.ulink:hover {
  text-decoration-color: var(--fg);
  text-decoration-thickness: 2px;
}

.go {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 140ms ease;
}

/* --- header ------------------------------------------------------------ */

.head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.head__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 20px;
  min-height: 68px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover { text-decoration: underline; text-underline-offset: 0.24em; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--fg); }

.nav a[aria-current='page'] { border-bottom-color: var(--fg); }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
}

.toggle:hover { background: var(--hover); }

.toggle__mark {
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
}

.toggle[aria-pressed='true'] .toggle__mark { background: currentColor; }

/* --- hero -------------------------------------------------------------- */

.hero { padding: clamp(48px, 9vw, 108px) 0 clamp(28px, 4vw, 44px); }

.hero h1 {
  font-size: clamp(2rem, 1.1rem + 4.6vw, 3.7rem);
  max-width: 22ch;
}

.hero__sub {
  margin-top: clamp(18px, 2.4vw, 26px);
  max-width: 64ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero__inner { display: grid; gap: clamp(24px, 4vw, 40px); }

.hero__text { min-width: 0; }

/* the schematic fills the hero's blank column, so it only appears where that column exists */
.hero__mark { display: none; }

/* --- schematic plates ----------------------------------------------------
   One line-art figure per page. Three stroke weights and two marker fills,
   so fifteen different figures read as one family.
   ------------------------------------------------------------------------ */

.plate { width: 100%; height: auto; }

.plate__line,
.plate__soft,
.plate__faint,
.plate__dash,
.plate__chip {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.plate__line { fill: none; stroke: var(--edge); }
.plate__soft { fill: none; stroke: var(--line-soft); }
.plate__faint { fill: none; stroke: var(--border); }
.plate__dash { fill: none; stroke: var(--line-soft); stroke-dasharray: 3 5; }
/* discs and chips sit on --bg, so they mask any line running behind them */
.plate__chip { fill: var(--bg); stroke: var(--edge); }
.plate__dot { fill: var(--fg); }

/* only the hero figure moves, and only its orbits */
.jup__orb {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: jup-orbit var(--t, 60s) linear infinite;
}

@keyframes jup-orbit { to { transform: rotate(360deg); } }

/* --- proof strip -------------------------------------------------------- */

.proof { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.proof ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.proof li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 18px 12px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  border-right: 1px solid var(--border);
}

.proof li + li { padding-left: 18px; }

.proof li:last-child { border-right: 0; padding-right: 0; }

.proof b {
  font-weight: 500;
  color: var(--fg);
}

/* --- systems diagram ---------------------------------------------------- */

.diagram { padding-top: var(--section); }

.node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-inline: auto;
  padding: 11px 20px;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
}

.node::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.node::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 34px;
  background: var(--border);
}

.rails {
  position: relative;
  --rail-gap: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--rail-gap);
  padding-top: 34px;
}

.rails::before {
  content: '';
  position: absolute;
  top: 0;
  height: 1px;
  left: calc(12.5% - (var(--rail-gap) * 0.375));
  right: calc(12.5% - (var(--rail-gap) * 0.375));
  background: var(--border);
}

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
}

.rail::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -34px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.rail__port {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-bottom: 12px;
  padding: 0 9px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.door {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'name name'
    'line go';
  grid-template-rows: auto 1fr;
  gap: 10px 12px;
  min-height: 212px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  color: var(--fg);
  text-decoration: none;
}

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

.door:hover .go { transform: translateX(5px); }

.door__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.9rem + 0.55vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.door__line {
  grid-area: line;
  align-self: start;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.door__go {
  grid-area: go;
  align-self: end;
  color: var(--fg);
}

/* --- "what I'm into" strip ---------------------------------------------- */

.into {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.into ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  font-size: 0.9375rem;
  color: var(--fg);
}

.into li { display: flex; align-items: baseline; }

/* every item carries the separator, so a wrapped line never starts with a stray dot */
.into li::before,
.envs li::before {
  content: '·';
  padding-right: 8px;
  color: var(--edge);
}

.into__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- details band ------------------------------------------------------- */


.row {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.row:last-child { border-bottom: 1px solid var(--border); }

.row__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.row__val {
  max-width: 76ch;
  font-size: 0.9375rem;
  line-height: 1.62;
}

.row__val p + p { margin-top: 5px; }

/* --- sections on interior pages ---------------------------------------- */

.phead {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  padding: clamp(40px, 7vw, 84px) 0 clamp(24px, 3.4vw, 36px);
}

.phead__text { min-width: 0; }

/* the figure fills the head's blank column, so it appears only where that column exists */
.plate-wrap { display: none; }

.phead h1 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 1.1rem + 3vw, 3rem);
  max-width: 26ch;
}

.lede {
  margin-top: 18px;
  max-width: 66ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.62;
  color: var(--muted);
}

.block { margin-top: var(--section); }

.block__title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
}

.block__note {
  margin-top: 14px;
  max-width: 68ch;
  font-size: 0.9375rem;
  color: var(--muted);
}

.block__note + ul { margin-top: 16px; }

/* what I handle */
.handles {
  display: grid;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.handles li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 0 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.handles li::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-top: 0.62em;
  background: var(--edge);
}

/* quiet mono stat row, closing the section it sits in */
.stat {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.stat__row {
  display: grid;
  gap: 2px;
  margin: 0;
}

.stat__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 0.93rem + 0.35vw, 1.125rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.stat__caption {
  max-width: 64ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* data tables */
.table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  text-align: left;
}

.table th,
.table td {
  padding: 12px 20px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
}

.table thead th {
  padding: 0 20px 10px 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.table tbody th { font-weight: 500; color: var(--fg); }

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

.table th:last-child,
.table td:last-child { padding-right: 0; }

/* case-study cards */
.cards {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

/* the li stretches to the row height so its link can fill it */
.card { display: grid; }

.card__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 186px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  color: var(--fg);
  text-decoration: none;
}

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

.card__link:hover .go { transform: translateX(5px); }

.card__title {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
}

.card__sum {
  max-width: 46ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.card__go { margin-top: auto; align-self: flex-end; }

/* lab notes */
.notes { display: grid; margin-top: 2px; }

.note {
  display: grid;
  gap: 4px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.note__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.note__text {
  max-width: 74ch;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- pager -------------------------------------------------------------- */

.pager {
  display: grid;
  gap: 12px;
  margin-top: var(--section);
}

.pager__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  color: var(--fg);
  text-decoration: none;
}

.pager__go { display: flex; align-items: center; color: var(--fg); }

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

.pager__item:hover .go { transform: translateX(5px); }

.pager__n {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pager__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pager--cases .pager__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-height: 84px;
  justify-content: center;
}

.pager--cases .pager__item:last-child { align-items: flex-end; text-align: right; }

/* --- prose + case study ------------------------------------------------- */

.case { padding-bottom: clamp(48px, 7vw, 92px); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: clamp(32px, 5vw, 56px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.crumbs a { color: var(--muted); text-decoration: none; }

.crumbs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; }

.crumbs [aria-current='page'] { color: var(--fg); }

.case__head {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  padding-top: clamp(24px, 3.4vw, 40px);
}

.case__head h1 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 1.05rem + 3.1vw, 3rem);
  max-width: 24ch;
}

.case__sum {
  margin-top: 14px;
  max-width: 62ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
}

.byline {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  max-width: 62ch;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
}

.case__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(32px, 5vw, 56px);
}

.prose h2 {
  margin-top: clamp(34px, 4.4vw, 52px);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-top: 12px;
  max-width: 68ch;
}

.prose ul { margin-top: 14px; }

.prose li {
  position: relative;
  padding-left: 18px;
  margin-top: 10px;
  max-width: 68ch;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 4px;
  height: 4px;
  background: var(--edge);
}

.prose strong { font-weight: 600; }

code {
  padding: 0.1em 0.36em;
  background: var(--chip);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.pending {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px dashed var(--edge);
  border-radius: var(--r);
}

.pending p + p { margin-top: 6px; }

.pending__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.pending__text { font-size: 0.9375rem; color: var(--fg); }

.tools { margin-top: clamp(34px, 4.4vw, 52px); }

.tools__label {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.tools ul { margin-top: 12px; }

.tools li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tools li:last-child { border-bottom: 0; }

/* --- register ----------------------------------------------------------- */

.reg { display: grid; margin-top: 16px; }

.reg__item {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.reg__item h3 { font-size: 1.0625rem; font-weight: 600; }

.reg__sum {
  max-width: 74ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.reg__repo {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

/* environments */
.envs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.9375rem;
}

.envs li { display: flex; align-items: baseline; }

/* builds */
.builds { display: grid; margin-top: 2px; }

.builds li {
  border-bottom: 1px solid var(--border);
}

.builds a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.builds a:hover .builds__name { text-decoration: underline; text-underline-offset: 0.2em; }

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

.builds__host { color: var(--muted); }

/* --- closing CTA -------------------------------------------------------- */

.cta {
  margin-top: var(--section);
  padding: clamp(34px, 5vw, 60px) 0;
  border-top: 1px solid var(--edge);
}

.cta__line {
  max-width: 26ch;
  font-size: clamp(1.4rem, 1rem + 2.1vw, 2.35rem);
}

.cta__sub {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
}

.cta__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(22px, 3vw, 30px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }

.btn--primary:hover { background: var(--btn-hover); }

.btn--primary:hover .go { transform: translateX(4px); }

/* --- footer ------------------------------------------------------------- */

.foot {
  padding: clamp(26px, 4vw, 40px) 0 clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--border);
}

.foot__inner {
  display: grid;
  gap: 14px;
  align-items: center;
}

.foot__mark {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.foot__nav a { text-decoration: none; }

.foot__nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; }

.foot__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==========================================================================
   wider viewports
   ========================================================================== */

@media (min-width: 620px) {
  .into { grid-template-columns: 168px minmax(0, 1fr); align-items: baseline; gap: 6px 24px; }
  .row { grid-template-columns: 168px minmax(0, 1fr); gap: 6px 24px; }
  .note { grid-template-columns: 118px minmax(0, 1fr); gap: 4px 22px; align-items: baseline; }
  .stat { grid-template-columns: 168px minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
  .stat__row { grid-column: 1 / -1; grid-template-columns: 168px minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
  .stat__caption { grid-column: 2; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .foot__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; }
  .foot__nav { justify-content: center; }
  .foot__meta { text-align: right; }
}

@media (min-width: 760px) {
  .handles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .pager { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pager--cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 26%, 300px);
    column-gap: clamp(32px, 4vw, 56px);
    align-items: center;
  }
  .hero__mark { display: block; }
  /* the case-head figure sits in the same column as the tools aside */
  .phead {
    grid-template-columns: minmax(0, 1fr) clamp(170px, 19%, 220px);
    column-gap: clamp(32px, 4vw, 56px);
    align-items: center;
  }
  .case__head {
    grid-template-columns: minmax(0, 1fr) 244px;
    column-gap: 56px;
    align-items: center;
  }
  .plate-wrap { display: block; }
  .case__grid { grid-template-columns: minmax(0, 1fr) 244px; gap: 56px; }
  .tools { position: sticky; top: 100px; margin-top: 0; }
}

/* the fan collapses to a plain list on small screens */
@media (max-width: 999px) {
  .node { margin-inline: 0; }
  .node::after { display: none; }
  .rails {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-top: 0;
  }
  .rails::before { display: none; }
  .rail::before { display: none; }
  .rail__port { align-self: flex-start; margin-bottom: 8px; padding: 0; }
  .door { min-height: 0; gap: 12px; }
}

@media (max-width: 719px) {
  .head__inner { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0 4px; }
  .brand { grid-column: 1; }
  .toggle { grid-column: 2; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 2px 0 8px; }
  .nav a { padding: 0 16px 0 0; min-height: 44px; }
  .proof ul { display: grid; }
  .proof li {
    padding: 10px 0;
    border-right: 0;
    border-top: 1px solid var(--border);
  }
  .proof li:first-child { border-top: 0; }
  .proof li + li { padding-left: 0; }
  .pending { padding: 14px; }
}

@media (max-width: 700px) {
  .table { margin-top: 10px; }
  .table thead { display: none; }
  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td { display: block; width: auto; }
  .table tr {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
  }
  .table tr:last-child { border-bottom: 0; }
  .table th,
  .table td { padding: 0; border-bottom: 0; }
  .table tbody th { padding-bottom: 6px; font-weight: 600; }
  .table td {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    margin-top: 3px;
  }
  /* the column header follows each value when the table stacks */
  .table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .go { transition: none; }
  .jup__orb { animation: none; }
  .door:hover .go,
  .card__link:hover .go,
  .pager__item:hover .go,
  .btn--primary:hover .go { transform: none; }
}

