/* comfyui-node · Cyanotype Specimen Plates
   Three values plus one rubric. Every rule at one device pixel. */

:root {
  --prussian: #14306b;
  --prussian-hi: #1d4189;
  --deep: #0b1d45;
  --deepest: #071433;
  --ink: #dfeaf3;          /* cyan-white, on blue */
  --ink-2: #a9bcd6;        /* secondary ink on blue (tinted, never gray) */
  --ink-3: #7f97bd;
  --paper: #f3f5f2;        /* label paper, cool */
  --paper-2: #e6ebe9;
  --paper-ink: #0b1d45;
  --paper-ink-2: #3b4f78;
  --rubric: #c8d43c;       /* sensitizer yellow-green: actions, focus, now */
  --rubric-deep: #5c6410;
  --hair: 1px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.75  0 0 0 0 0.84  0 0 0 0 0.95  0 0 0 1.4 -0.3'/%3E%3C/filter%3E%3Crect width='40' height='40' filter='url(%23g)'/%3E%3C/svg%3E");

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(96px, 11vw, 168px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

@media (min-resolution: 2dppx) {
  :root { --hair: 0.5px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--deepest); }
body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--rubric); color: var(--deepest); }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: var(--hair); text-underline-offset: 0.22em; }
a:hover { color: var(--rubric); }
img, canvas, svg { display: block; max-width: 100%; }
code, pre { font-family: var(--f-mono); font-variant-ligatures: none; }
em { font-style: italic; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 60;
  background: var(--rubric); color: var(--deepest); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--deepest); }

/* ------------------------------------------------------------------ plates */
.plate {
  position: relative;
  padding: var(--section) var(--gutter) calc(var(--section) * 0.62);
  /* Hand-brushed cyanotype plate ground rendered via comfyui-node: visible hake brush strokes,
     uneven cobalt brush margins, and cotton rag paper grain in deep Prussian blue. */
  background:
    radial-gradient(120% 90% at 30% 22%, rgba(29, 65, 137, 0.22), rgba(7, 20, 51, 0.36) 75%),
    url("../specimens/cyanotype-plate-ground.webp") center / cover no-repeat,
    linear-gradient(180deg, var(--prussian) 0%, var(--deep) 100%);
  isolation: isolate;
}
.plate + .plate { border-top: var(--hair) solid rgba(223, 234, 243, 0.18); }
.plate__head { max-width: 1376px; margin: 0 auto clamp(48px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.plate__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(3rem, 7.2vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.plate__title em { color: var(--ink); }
.plate__lede { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.plate-legend {
  max-width: 1376px;
  margin: clamp(56px, 6vw, 88px) auto 0;
  padding-top: 14px;
  border-top: var(--hair) solid rgba(223, 234, 243, 0.28);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-2);
  text-align: right;
}
.plate-legend em { font-style: normal; }
.plate-legend a { color: var(--ink); }

/* ------------------------------------------------------------------ nav */
.nav {
  width: 100%; max-width: 1376px; margin: 0 auto;
  display: flex; align-items: center; gap: clamp(16px, 2.8vw, 40px);
  padding-bottom: 14px;
  border-bottom: var(--hair) solid rgba(223, 234, 243, 0.32);
}
.nav__mark {
  margin-right: auto;
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: 1.75rem; line-height: 1; color: #fff; text-decoration: none;
}
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 38px); margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.nav__links a { text-decoration: none; color: var(--ink); }
.nav__links a:hover { color: var(--rubric); }
.nav__cta {
  position: relative;
  border: 0; cursor: pointer;
  background: var(--rubric); color: var(--deepest);
  font: 600 0.9375rem/1 var(--f-mono);
  padding: 11px 16px;
  transition: background-color 0.2s var(--ease-out);
}
.nav__cta:hover { background: #d9e45a; }

/* ------------------------------------------------------------------ hero */
.hero {
  padding-top: clamp(16px, 2vh, 26px);
  padding-bottom: clamp(18px, 2.2vh, 28px);
  min-height: min(100svh, 1000px);
  display: flex;
  flex-direction: column;
}
.hero__grid {
  flex: 1;
  max-width: 1376px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding: clamp(16px, 2vh, 32px) 0 clamp(18px, 2.2vh, 30px);
}
.hero__title {
  margin: 0 0 clamp(18px, 2vh, 28px);
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(3.1rem, 5.8vw, 5.4rem);
  line-height: 0.95; letter-spacing: -0.03em; color: #fff;
}
.hero__title .br { display: block; white-space: nowrap; }
.hero__title em { color: var(--ink); font-weight: 500; }
.hero__lede { margin: 0 0 clamp(18px, 2vh, 28px); max-width: 33em; font-size: clamp(1.03125rem, 1.25vw, 1.15625rem); color: var(--ink); }
.hero__compat { margin: clamp(16px, 1.8vh, 24px) 0 0; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--ink-2); }

.doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; max-width: 600px; }
.door { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); align-items: center; gap: 12px; border: var(--hair) solid rgba(223, 234, 243, 0.42); padding: 9px 10px 9px 16px; background: rgba(7, 20, 51, 0.34); transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out); }
.door:hover { border-color: var(--rubric); background: rgba(7, 20, 51, 0.52); }
.door__name { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rubric); }
.door__line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.door__line code { flex: 1; min-width: 0; font-size: 0.875rem; color: #fff; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }

.copy {
  position: relative; flex: none;
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: var(--hair) solid rgba(223, 234, 243, 0.42); background: transparent; color: var(--ink);
  cursor: pointer;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy:hover { color: var(--deepest); background: var(--rubric); border-color: var(--rubric); }
.copy.is-copied { color: var(--deepest); background: var(--rubric); border-color: var(--rubric); }
.copy-status {
  position: absolute; right: 0; bottom: calc(100% + 8px);
  white-space: nowrap; pointer-events: none;
  font: 600 0.75rem/1 var(--f-body); letter-spacing: 0.04em;
  background: var(--paper); color: var(--paper-ink); padding: 6px 8px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s var(--ease-out), transform 0.3s var(--ease-out);
}
.copy-status:not(:empty) { opacity: 1; transform: none; }
.copy-status.is-error { background: #ffd9cf; color: #6b1500; }

/* ------------------------------------------------------------------ specimen + mount */
.hero__specimen { position: relative; margin: 0; justify-self: end; width: min(100%, 600px); padding-bottom: 68px; }
.mount { position: relative; aspect-ratio: 832 / 1024; width: min(76%, 416px, 50svh); margin-left: auto; margin-right: 11%; }
.plate-print {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--deepest);
  box-shadow: 0 30px 60px -20px rgba(2, 8, 24, 0.75), 0 2px 6px rgba(2, 8, 24, 0.4);
}
.plate-print > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-print__noise { image-rendering: auto; filter: url(#cyanotype) blur(1.5px); transform: scale(1.04); opacity: 0; }
.plate-print__frame { filter: url(#cyanotype) blur(2px); transform: scale(1.03); opacity: 0; transition: opacity 0.22s linear; }
.plate-print__final { clip-path: inset(0 0 0 0); }
/* developing: the final colour rises from the bottom like developer climbing the print */
.plate-print[data-stage]:not([data-stage="final"]) .plate-print__final { clip-path: inset(100% 0 0 0); }
.plate-print[data-stage="noise"] .plate-print__noise { opacity: 1; }
.plate-print[data-stage^="step"] .plate-print__frame { opacity: 1; }
.plate-print[data-stage="final"] .plate-print__frame { opacity: 1; }
.plate-print.is-rising .plate-print__final { transition: clip-path 1.1s var(--ease-out); }

/* Real archival gummed linen hinge tape raster with woven thread and frayed cut ends */
.tape {
  position: absolute; z-index: 2; width: 112px; height: 28px;
  background: url("../specimens/linen-tape.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 2px rgba(2, 8, 24, 0.35));
}
.tape--a { top: -12px; left: 8%; transform: rotate(-5deg); }
.tape--b { top: -10px; right: 6%; transform: rotate(4deg); }
.tape--c { bottom: -12px; left: 6%; transform: rotate(2deg); width: 92px; height: 24px; }

/* ------------------------------------------------------------------ labels (paper) */
.label {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 18px 36px -12px rgba(2, 8, 24, 0.6), 0 1px 2px rgba(2, 8, 24, 0.3);
}
.label::selection, .label *::selection { background: var(--prussian); color: #fff; }
.label__title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--paper-ink); text-wrap: balance; }
.label__title em { font-style: italic; }
.label__code { margin: 0; min-width: 0; max-width: 100%; font-size: 0.8125rem; line-height: 1.6; white-space: pre; overflow-x: auto; color: var(--paper-ink); tab-size: 2; scrollbar-color: var(--paper-ink-2) transparent; scrollbar-width: thin; }
.label__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 12px 0 0; padding-top: 9px;
  border-top: var(--hair) solid var(--paper-ink);
  font: 400 0.6875rem/1.4 var(--f-mono); color: var(--paper-ink-2);
  font-variant-numeric: tabular-nums;
}
.label__meta b { color: var(--paper-ink); font-weight: 600; }
.label__meta code { font-size: 0.96em; color: var(--prussian); }
.label__meta--foot { margin-top: auto; padding-top: 12px; justify-content: space-between; }
.label__links { font-family: var(--f-body); font-size: 0.875rem; }
.label__links a { color: var(--prussian); font-weight: 600; }
.label__links a:hover { color: var(--paper-ink); text-decoration-thickness: 2px; }
.label a:focus-visible, .label button:focus-visible, .label input:focus-visible + span { outline-color: var(--prussian); }

/* syntax: three values on paper plus the rubric's deep cousin for keywords */
.t-k { color: var(--prussian); font-weight: 600; }
.t-f { color: var(--paper-ink); }
.t-s { color: #46621a; }
.t-n { color: #8a3d0c; }
.t-c { color: #4f6085; font-style: italic; }

.label--hero {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  width: min(100%, 432px);
  padding: 13px 16px 11px;
  transform: rotate(-0.6deg);
}
.label--hero .label__title { font-size: 1.375rem; margin-bottom: 9px; }
.label--hero .label__code { font-size: 0.71875rem; margin-top: 2px; line-height: 1.54; }
.label--hero .label__meta { margin-top: 9px; padding-top: 7px; }

.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; border: 0; }
.chips legend { float: left; width: 64px; padding: 0; font: 500 0.6875rem/28px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-ink-2); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 5px 10px;
  border: var(--hair) solid var(--paper-ink);
  font: 500 0.75rem/1 var(--f-mono); color: var(--paper-ink);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.chips label:hover span { background: var(--paper-2); }
.chips input:checked + span { background: var(--paper-ink); color: var(--rubric); }
.chips input:focus-visible + span { outline: 2px solid var(--prussian); outline-offset: 2px; }

/* ------------------------------------------------------------------ hero foot: sampling states */
.hero__foot { max-width: 1376px; width: 100%; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-top: var(--hair) solid rgba(223, 234, 243, 0.28); padding-top: 12px; }
.hero__foot .plate-legend { margin: 0; padding: 0; border: 0; }
.stages { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font: 400 0.75rem/1 var(--f-mono); color: var(--ink-2); }
.stages li { display: flex; align-items: center; gap: 8px; transition: color 0.2s var(--ease-out); }
.stages i { width: 18px; height: 18px; border: var(--hair) solid rgba(223, 234, 243, 0.55); }
.stages li[data-stage-key="noise"] i { background: #14306b var(--grain) 0 0 / 40px 40px; }
.stages li[data-stage-key="step2"] i { background: #2a4f95; }
.stages li[data-stage-key="step4"] i { background: #5a7fbd; }
.stages li[data-stage-key="step6"] i { background: #a8c0e0; }
.stages li[data-stage-key="final"] i { background: linear-gradient(135deg, #8a3a5e, #c27a9a 60%, #e9d4dc); }
.stages li.is-now { color: var(--rubric); }
.stages li.is-now i { outline: 2px solid var(--rubric); outline-offset: 2px; }

/* ------------------------------------------------------------------ plate II: doors + MCP comparison */
.doors-plate__grid { max-width: 1376px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 10.5fr) minmax(0, 9.5fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.label--sheet { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; }
.label--sheet:first-child { transform: rotate(-0.35deg); }
.label--agent { transform: rotate(0.35deg); }
.label__code--long { font-size: 0.8125rem; }

.tabs__list { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 0; border-bottom: var(--hair) solid var(--paper-ink); }
.tabs__list [role="tab"] {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 600 0.875rem/1 var(--f-body); color: var(--paper-ink-2);
  padding: 10px 14px 9px; margin-bottom: -1px;
  border-bottom: 3px solid transparent;
}
.tabs__list [role="tab"]:hover { color: var(--paper-ink); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--paper-ink); border-bottom-color: var(--prussian); }
.tabs__panel { padding: 14px 0 0; }
.tabs__panel .label__code { background: var(--paper-2); padding: 12px 14px; }
.copy--text {
  width: auto; height: auto; margin-top: 10px; padding: 8px 12px;
  border-color: var(--paper-ink); color: var(--paper-ink);
  font: 600 0.8125rem/1 var(--f-body);
}
.copy--text:hover, .copy--text.is-copied { background: var(--paper-ink); color: var(--rubric); border-color: var(--paper-ink); }
.copy--text .copy-status { right: auto; left: 0; }

.tools { margin: 20px 0 18px; display: grid; gap: 0; }
.tools > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: var(--hair) solid rgba(11, 29, 69, 0.22); }
.tools dt { font: 600 0.8125rem/1.5 var(--f-mono); color: var(--prussian); }
.tools dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--paper-ink); }
.tools dd code { font-size: 0.85em; color: var(--prussian); }

/* MCP vs Comfy-Org/comfy-mcp comparison ledger */
.mcp-compare {
  max-width: 1376px;
  margin: clamp(56px, 6vw, 88px) auto 0;
  padding-top: clamp(36px, 4vw, 56px);
  border-top: var(--hair) solid rgba(223, 234, 243, 0.28);
}
.mcp-compare__head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 24px 56px;
  align-items: end;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.mcp-compare__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.mcp-compare__title a { color: var(--ink); }
.mcp-compare__title a:hover { color: var(--rubric); }
.mcp-compare__lede { margin: 0; color: var(--ink-2); font-size: 1.03125rem; max-width: 56ch; }
.mcp-compare__lede code { color: var(--ink); font-size: 0.9em; }
.mcp-compare__table td {
  white-space: normal !important;
  font-family: var(--f-body) !important;
  font-size: 0.96875rem !important;
  line-height: 1.5;
  vertical-align: top;
  padding: 15px 24px 15px 0 !important;
}
.mcp-compare__table td:first-child {
  font-family: var(--f-display) !important;
  font-size: 1.25rem !important;
  font-style: italic;
  color: #fff;
  width: 19%;
  white-space: nowrap !important;
}
.mcp-compare__table td b { color: #fff; font-weight: 600; }
.mcp-compare__table td code, .mcp-compare__table th code { font-family: var(--f-mono); font-size: 0.85em; color: var(--ink); text-transform: none; letter-spacing: 0; }

/* ------------------------------------------------------------------ plate III: develop */
.develop { max-width: 1376px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.develop__stage { position: relative; aspect-ratio: 832 / 1024; width: min(100%, 560px, 68svh); }
.develop__stage .plate-print__final { transition: clip-path 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.develop__readout {
  position: absolute; right: -18px; bottom: 24px; z-index: 3; margin: 0;
  background: var(--paper); color: var(--paper-ink);
  padding: 10px 14px 8px; box-shadow: 0 12px 24px -10px rgba(2, 8, 24, 0.6);
  font-family: var(--f-display); font-weight: 600; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums;
}
.develop__readout small { font-family: var(--f-mono); font-size: 0.875rem; margin-left: 6px; color: var(--paper-ink-2); }

.develop__ruler { margin: 0; padding: 0; list-style: none; border-top: var(--hair) solid rgba(223, 234, 243, 0.5); }
.develop__ruler button {
  width: 100%; display: grid; grid-template-columns: 52px 5.2em minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 10px 8px 10px 0; border: 0; border-bottom: var(--hair) solid rgba(223, 234, 243, 0.2);
  background: transparent; color: var(--ink-2); text-align: left; cursor: pointer;
  font: inherit; transition: color 0.2s var(--ease-out), background-color 0.25s var(--ease-out);
}
.develop__ruler button:hover { color: var(--ink); background: rgba(223, 234, 243, 0.04); }
.develop__thumb { width: 52px; aspect-ratio: 832 / 1024; overflow: hidden; background: var(--deepest); outline: var(--hair) solid rgba(223, 234, 243, 0.3); }
.develop__thumb img, .develop__thumb canvas { width: 100%; height: 100%; object-fit: cover; filter: url(#cyanotype); }
.develop__state { font: 500 0.875rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.develop__what { font-family: var(--f-display); font-style: italic; font-size: 1.1875rem; line-height: 1.25; }
.develop__ruler button.is-now { color: #fff; }
.develop__ruler button.is-now .develop__state { color: var(--rubric); }
.develop__ruler button.is-now .develop__thumb { outline: 2px solid var(--rubric); outline-offset: 2px; }
.develop__ruler li:last-child button.is-now .develop__thumb img { filter: none; }

.develop__scrub { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; margin: 28px 0 36px; }
.develop__scrub label { font-size: 0.9375rem; color: var(--ink-2); }
.develop__scrub input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.develop__scrub input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: rgba(223, 234, 243, 0.5); }
.develop__scrub input[type="range"]::-moz-range-track { height: 1px; background: rgba(223, 234, 243, 0.5); }
.develop__scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 28px; margin-top: -14px; background: var(--rubric); border: 0; }
.develop__scrub input[type="range"]::-moz-range-thumb { width: 18px; height: 28px; background: var(--rubric); border: 0; border-radius: 0; }

.label--note { padding: 16px 18px 14px; }
.develop .label--note { transform: rotate(0.4deg); }

/* ------------------------------------------------------------------ plate IV: series */
.series { max-width: 1376px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); align-items: start; }
.series__drawer { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.series__note { grid-column: 1 / 7; margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; max-width: 52ch; }
.series__note em { font-family: var(--f-display); font-size: 1.15em; color: #fff; }
.series__note code { font-size: 0.88em; color: var(--ink); }
.series__label { grid-column: 7 / -1; margin-top: -42px; z-index: 3; transform: rotate(-0.5deg); }

.specimen {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--deepest); color: inherit; text-align: left;
  aspect-ratio: 1;
  box-shadow: 0 18px 36px -16px rgba(2, 8, 24, 0.7);
}
.specimen img { width: 100%; height: 100%; object-fit: cover; }
.specimen > img { position: relative; z-index: 0; }
.specimen .mono {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  filter: url(#cyanotype);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease-out);
}
.specimen:hover .mono, .specimen:focus-visible .mono, .specimen[aria-pressed="true"] .mono { clip-path: inset(0 0 100% 0); }
.specimen__tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: var(--paper); color: var(--paper-ink);
  font: 500 0.6875rem/1 var(--f-mono); letter-spacing: 0.03em; padding: 6px 8px;
  font-variant-numeric: tabular-nums;
}
.specimen:focus-visible { outline-offset: 4px; }

.lineage { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 4fr) minmax(0, 5fr); gap: clamp(12px, 1.6vw, 24px); align-items: center; margin-top: clamp(36px, 4.5vw, 72px); }
.specimen--tall { aspect-ratio: 640 / 788; }
.lineage__bracket svg { width: 100%; height: 44px; fill: none; stroke: var(--rubric); stroke-width: 1; }
.lineage__label { align-self: end; transform: rotate(0.6deg); }

/* ------------------------------------------------------------------ plate V: hosts */
.hosts { max-width: 1376px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.hosts__left { min-width: 0; display: grid; gap: clamp(28px, 3.6vw, 48px); }
.hosts__right { min-width: 0; display: grid; gap: 0; }
.hosts__variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.hosts__variant { position: relative; min-width: 0; }
.tape--var-a { top: -11px; left: 16%; transform: rotate(-4deg); width: 96px; height: 24px; z-index: 3; }
.tape--var-b { top: -11px; right: 16%; transform: rotate(3.5deg); width: 96px; height: 24px; z-index: 3; }
.hosts__label { margin-top: 14px; z-index: 3; transform: rotate(-0.4deg); }
.hosts__label .label__code { font-size: 0.75rem; }

.hosts__table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.hosts__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hosts__table caption { caption-side: bottom; text-align: left; padding-top: 14px; font-family: var(--f-display); font-style: italic; color: var(--ink-2); }
.hosts__table caption a { color: var(--ink); }
.hosts__table th { text-align: left; font: 600 0.75rem/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 0 14px 12px 0; border-bottom: var(--hair) solid rgba(223, 234, 243, 0.5); }
.hosts__table td { padding: 15px 14px 15px 0; border-bottom: var(--hair) solid rgba(223, 234, 243, 0.2); font-family: var(--f-mono); font-size: 0.875rem; color: var(--ink); white-space: nowrap; }
.hosts__table td:last-child, .hosts__table th:last-child { padding-right: 0; }
.hosts__table td:first-child { font-family: var(--f-display); font-size: 1.3125rem; font-style: italic; color: #fff; }
.hosts__table tr.is-now td { color: #fff; }
.state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.state::before { content: ""; width: 8px; height: 8px; border: var(--hair) solid currentColor; }
.state--busy::before { background: var(--ink-2); }
.state--now { color: var(--rubric); }
.state--now::before { background: var(--rubric); }

.hosts__facts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.hosts__facts li { position: relative; padding: 12px 0 12px 18px; border-top: var(--hair) solid rgba(223, 234, 243, 0.2); color: var(--ink-2); font-size: 0.96875rem; }
.hosts__facts li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; background: var(--rubric); }
.hosts__facts b { font-family: var(--f-mono); font-weight: 500; font-size: 0.875rem; color: #fff; }

/* ------------------------------------------------------------------ plate VI: the register (paper) */
.register-plate {
  padding: var(--section) var(--gutter);
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(20, 48, 107, 0.35), rgba(7, 20, 51, 0.78) 80%),
    url("../specimens/cyanotype-plate-ground.webp") center / cover no-repeat,
    linear-gradient(180deg, var(--deep), var(--deepest));
}
.register {
  position: relative; max-width: 1240px; margin: 0 auto;
  background: var(--paper); color: var(--paper-ink);
  padding: clamp(40px, 5vw, 80px) clamp(28px, 5vw, 88px) clamp(40px, 5vw, 72px);
  box-shadow: 0 40px 80px -30px rgba(0, 4, 16, 0.9), 0 1px 3px rgba(0, 4, 16, 0.4);
}
.register *::selection { background: var(--prussian); color: #fff; }
.tape--reg-a { top: -14px; left: 10%; transform: rotate(-3deg); width: 140px; height: 32px; }
.tape--reg-b { top: -12px; right: 12%; transform: rotate(4deg); width: 128px; height: 30px; }
.register__title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 7vw, 5.75rem); line-height: 0.95; letter-spacing: -0.025em; color: var(--prussian); }
.register__lede { margin: 18px 0 clamp(36px, 4vw, 56px); max-width: 52ch; font-size: 1.125rem; color: var(--paper-ink-2); }
.register__lede code { font-size: 0.95em; color: var(--paper-ink); }
.register__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); }
.register__head { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--paper-ink); font: 600 0.8125rem/1 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-ink); }
.register__list { margin: 0; padding: 0; list-style: none; }
.register__list li { display: grid; grid-template-columns: 3.4em 8.2em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: var(--hair) solid rgba(11, 29, 69, 0.2); font-size: 0.9375rem; }
.register__list .acc { font: 400 0.6875rem/1 var(--f-mono); letter-spacing: 0.03em; color: var(--paper-ink-2); font-variant-numeric: tabular-nums; }
.register__list code { font-size: 0.875rem; font-weight: 600; color: var(--prussian); }
.register__list--guides li { grid-template-columns: 3.4em minmax(0, 1fr); }
.register__list--guides a { font-family: var(--f-display); font-size: 1.25rem; color: var(--paper-ink); text-decoration: none; background: linear-gradient(var(--rubric), var(--rubric)) 0 100% / 0 6px no-repeat; transition: background-size 0.35s var(--ease-out); }
.register__list--guides a:hover, .register__list--guides a:focus-visible { background-size: 100% 6px; color: var(--paper-ink); }
.register__more { margin: 20px 0 0; }
.register__more a { color: var(--prussian); font-weight: 600; }
.register a:focus-visible { outline-color: var(--prussian); }

/* ------------------------------------------------------------------ colophon */
.colophon { background: var(--deepest); padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(40px, 4vw, 64px); border-top: var(--hair) solid rgba(223, 234, 243, 0.14); }
.colophon__grid { max-width: 1376px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 32px 56px; align-items: start; }
.colophon__mark { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 2rem; line-height: 1; color: #fff; }
.colophon__note { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 0.9875rem; }
.colophon__note b { color: var(--ink); font-weight: 600; }
.colophon__note code { color: var(--ink); font-size: 0.875em; }
.colophon__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; justify-items: end; }
.colophon__links a { color: var(--ink); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hosts { grid-template-columns: minmax(0, 1fr); }
  .mcp-compare__head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .hero__specimen { justify-self: stretch; width: 100%; max-width: 560px; margin: 8px auto 0; padding-bottom: 210px; }
  .mount { width: 82%; margin: 0 auto; }
  .label--hero { left: 0; right: 0; width: auto; transform: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__foot .plate-legend { text-align: left; }
  .plate__head { grid-template-columns: minmax(0, 1fr); }
  .doors-plate__grid { grid-template-columns: minmax(0, 1fr); }
  .develop { grid-template-columns: minmax(0, 1fr); }
  .develop__stage { margin: 0 auto; width: min(100%, 520px); }
  .develop__readout { right: -6px; }
  .series__drawer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series__note { grid-column: 1 / -1; }
  .series__label { grid-column: 1 / -1; margin-top: 0; }
  .lineage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lineage__bracket { display: none; }
  .lineage__label { grid-column: 1 / -1; }
  .hosts__facts { grid-template-columns: minmax(0, 1fr); }
  .register__cols { grid-template-columns: minmax(0, 1fr); }
  .colophon__grid { grid-template-columns: minmax(0, 1fr); }
  .colophon__links { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 20px; }
}
@media (max-width: 560px) {
  .hero__title .br { white-space: normal; }
  .door { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nav__mark { font-size: 1.375rem; white-space: nowrap; }
  .nav__cta { white-space: nowrap; padding: 10px 12px; }
  .register { padding-top: 56px; }
  .colophon__links { grid-auto-flow: row; display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .register__list li { grid-template-columns: 3em minmax(0, 1fr); }
  .register__list li > span:last-child { grid-column: 2; }
  .tools > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero__specimen { padding-bottom: 240px; }
  .nav__cta-text { font-size: 0.8125rem; }
  .mcp-compare__table thead { display: none; }
  .mcp-compare__table, .mcp-compare__table caption, .mcp-compare__table tbody, .mcp-compare__table tr, .mcp-compare__table td { display: block; width: 100%; }
  .mcp-compare__table caption { padding-top: 12px; }
  .mcp-compare__table tr { padding: 14px 0; border-bottom: var(--hair) solid rgba(223, 234, 243, 0.28); }
  .mcp-compare__table td { border: 0; padding: 4px 0 !important; white-space: normal !important; }
  .mcp-compare__table td:first-child { width: auto; padding-bottom: 6px !important; }
  .mcp-compare__table td:nth-child(2)::before { content: "comfyui-node · "; font: 600 0.75rem/1 var(--f-mono); color: var(--rubric); }
  .mcp-compare__table td:nth-child(3)::before { content: "comfy-mcp · "; font: 600 0.75rem/1 var(--f-mono); color: var(--ink-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
