@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/catamaran-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/catamaran-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/catamaran-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/catamaran-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/catamaran-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/catamaran-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/catamaran-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/catamaran-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/catamaran-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Asap Sharp'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/asap-sharp-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-dark-base: #211014;
  --fg-dark-base-body: #e2d2c5;
  --fg-dark-base-heading: #f5ebe1;
  --fg-dark-base-muted: #c4ab9f;
  --fg-dark-base-link: #e0de42;
  --fg-dark-base-inverse: #f5ebe1;
  --bg-dark-card: #2c161a;
  --fg-dark-card-body: #e2d2c5;
  --fg-dark-card-heading: #f5ebe1;
  --fg-dark-card-muted: #c4ab9f;
  --fg-dark-card-link: #e0de42;
  --fg-dark-card-inverse: #f5ebe1;
  --bg-dark-elevated: #3a1d22;
  --fg-dark-elevated-body: #e2d2c5;
  --fg-dark-elevated-heading: #f5ebe1;
  --fg-dark-elevated-muted: #c4ab9f;
  --fg-dark-elevated-link: #e0de42;
  --fg-dark-elevated-inverse: #f5ebe1;
  --brand-dark-accent: #e0de42;
  --brand-dark-accent-hover: #f7f782;
  --brand-dark-on-accent: #211014;
  --focus-dark-ring: #e0de42;
  --focus-ring: var(--focus-dark-ring);
  --border-dark-default: #9c7e76;
  --border-dark-subtle: #563339;
}
.bg-surface-base { background: var(--bg-dark-base); --fg-body: var(--fg-dark-base-body); --fg-heading: var(--fg-dark-base-heading); --fg-muted: var(--fg-dark-base-muted); --fg-link: var(--fg-dark-base-link); --fg-inverse: var(--fg-dark-base-inverse); }
.bg-surface-card { background: var(--bg-dark-card); --fg-body: var(--fg-dark-card-body); --fg-heading: var(--fg-dark-card-heading); --fg-muted: var(--fg-dark-card-muted); --fg-link: var(--fg-dark-card-link); --fg-inverse: var(--fg-dark-card-inverse); }
.bg-surface-elevated { background: var(--bg-dark-elevated); --fg-body: var(--fg-dark-elevated-body); --fg-heading: var(--fg-dark-elevated-heading); --fg-muted: var(--fg-dark-elevated-muted); --fg-link: var(--fg-dark-elevated-link); --fg-inverse: var(--fg-dark-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

:root {
  --ground: #211014;
  --panel: #2c161a;
  --raised: #3a1d22;
  --cream: #f5ebe1;
  --sand: #e2d2c5;
  --clay: #c4ab9f;
  --line: #9c7e76;
  --line-soft: #563339;
  --sulphur: #e0de42;
  --sulphur-hi: #f7f782;
  --epi: #e8c3b3;
  --derm: #b66a6c;
  --fat: #d7bd7c;
  --smas: #8a3f49;
  --muscle: #a2525a;
  --display: 'Catamaran', 'Segoe UI', Arial, sans-serif;
  --sans: 'Asap Sharp', 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 40rem;
  --wide: 62rem;
  --rail: 18rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-body);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--fg-heading);
  line-height: 1.08;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem); font-weight: 800; margin: 0 0 1.2rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); margin: 2.6rem 0 0.8rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; margin: 1.7rem 0 0.4rem; }
p { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }

main a { color: var(--fg-link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
main a:hover, a.text-role-link:hover { color: var(--sulphur-hi); text-decoration-thickness: 2px; }

/* ---------- Frame: probe rail on the right at desktop ---------- */
.bench { min-height: 100vh; }
.bench-page { min-width: 0; display: flex; flex-direction: column; }
.bench-page > main { flex: 1 0 auto; }

.site-header { position: relative; overflow-wrap: normal; }
.core {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0.4rem;
  background: linear-gradient(to right, var(--epi) 0 12%, var(--derm) 12% 48%, var(--fat) 48% 78%, var(--smas) 78% 84%, var(--muscle) 84%);
}
.rail-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem var(--gutter) 1.05rem;
}
.rail-brand { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; }
.rail-brand .site-logo { display: block; width: auto; height: 2.1rem; }
.rail-probe { display: none; }

/* Section glyphs, drawn with gradients, shared by the sheet tiles and the rail */
.site-menu > ul > li > a::before,
.site-nav > ul > li > a::before {
  content: "";
  display: block; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 0.55rem;
  border: 1px solid var(--line-soft);
  background-color: var(--ground);
}
.site-menu > ul > li:nth-child(1) > a::before,
.site-nav > ul > li:nth-child(1) > a::before {
  background-image: radial-gradient(circle at 50% 8%, transparent 0 0.22rem, var(--sulphur) 0.22rem 0.32rem, transparent 0.32rem 0.55rem, var(--sulphur) 0.55rem 0.65rem, transparent 0.65rem 0.9rem, var(--sulphur) 0.9rem 1rem, transparent 1rem);
}
.site-menu > ul > li:nth-child(2) > a::before,
.site-nav > ul > li:nth-child(2) > a::before {
  background-image:
    linear-gradient(var(--cream), var(--cream)),
    linear-gradient(var(--sulphur), var(--sulphur)),
    linear-gradient(var(--sulphur), var(--sulphur)),
    linear-gradient(var(--sulphur), var(--sulphur));
  background-size: 64% 0.32rem, 0.14rem 48%, 0.14rem 48%, 0.14rem 48%;
  background-position: 50% 24%, 30% 76%, 50% 76%, 70% 76%;
  background-repeat: no-repeat;
}
.site-menu > ul > li:nth-child(3) > a::before,
.site-nav > ul > li:nth-child(3) > a::before {
  background-image:
    linear-gradient(var(--sulphur), var(--sulphur)),
    repeating-linear-gradient(to bottom, var(--cream) 0 0.12rem, transparent 0.12rem 0.34rem);
  background-size: 0.14rem 58%, 50% 50%;
  background-position: 26% 50%, 66% 56%;
  background-repeat: no-repeat;
}
.site-menu > ul > li:nth-child(4) > a::before,
.site-nav > ul > li:nth-child(4) > a::before {
  background-image:
    linear-gradient(var(--sulphur), var(--sulphur)),
    linear-gradient(var(--cream), var(--cream)),
    linear-gradient(var(--cream), var(--cream));
  background-size: 62% 0.36rem, 62% 0.14rem, 40% 0.14rem;
  background-position: 50% 30%, 50% 58%, 31% 74%;
  background-repeat: no-repeat;
}

/* Phone menu: a bottom sheet of six tiles */
.site-menu { flex: none; }
.site-menu > summary {
  display: flex; align-items: center; gap: 0.55rem;
  min-height: 2.75rem; padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  border: 1px solid var(--line); border-radius: 0.9rem;
  list-style: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.98rem; line-height: 1.1;
  color: var(--fg-heading); background: var(--raised); white-space: nowrap;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover { border-color: var(--sulphur); color: var(--cream); }
.site-menu[open] > summary { border-color: var(--sulphur); box-shadow: inset 0 -0.2rem 0 var(--sulphur); }
.menu-icon {
  display: block; flex: none; width: 1.05rem; height: 1.45rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 0.42rem 0.36rem,
    linear-gradient(currentColor, currentColor) 100% 0 / 0.42rem 0.36rem,
    linear-gradient(currentColor, currentColor) 0 50% / 0.42rem 0.36rem,
    linear-gradient(currentColor, currentColor) 100% 50% / 0.42rem 0.36rem,
    linear-gradient(var(--sulphur), var(--sulphur)) 0 100% / 0.42rem 0.36rem,
    linear-gradient(var(--sulphur), var(--sulphur)) 100% 100% / 0.42rem 0.36rem;
  background-repeat: no-repeat;
}
.menu-label { overflow-wrap: normal; }
@media (max-width: 419px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-menu > summary { padding: 0.35rem 0.8rem; }
}
.site-menu > ul {
  list-style: none; margin: 0;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(6.25rem, auto); gap: 0.6rem;
  padding: 1.7rem var(--gutter) calc(1.2rem + env(safe-area-inset-bottom));
  max-height: 80dvh; overflow-y: auto;
  background: linear-gradient(var(--line), var(--line)) 50% 0.7rem / 2.8rem 0.25rem no-repeat, var(--raised);
  border-top: 1px solid var(--line);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -1.25rem 3rem rgba(12, 4, 6, 0.6);
  animation: sheet-rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sheet-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.site-menu > ul::before,
.site-menu > ul::after {
  content: ""; order: 1; border-radius: 1rem; border: 1px solid var(--line-soft);
}
.site-menu > ul::before {
  background: linear-gradient(to bottom, var(--ground) 0 30%, var(--epi) 30% 40%, var(--derm) 40% 66%, var(--fat) 66% 86%, var(--muscle) 86%);
}
.site-menu > ul::after {
  background:
    repeating-linear-gradient(to bottom, var(--clay) 0 1px, transparent 1px 0.6rem) 1rem 50% / 0.7rem 70% no-repeat,
    repeating-linear-gradient(to bottom, var(--sulphur) 0 2px, transparent 2px 1.8rem) 1rem 50% / 1.4rem 70% no-repeat,
    linear-gradient(var(--sulphur), var(--sulphur)) 1rem 50% / 2px 70% no-repeat,
    var(--ground);
}
.site-menu > ul > li { display: block; min-width: 0; }
.site-menu > ul > li > a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.7rem;
  height: 100%; padding: 0.8rem 0.85rem 0.85rem;
  border: 1px solid var(--line-soft); border-radius: 1rem;
  background-color: var(--panel);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  color: var(--cream); text-decoration: none;
}
.site-menu > ul > li > a:hover { border-color: var(--sulphur); background-color: var(--ground); color: var(--cream); }
.site-menu ul ul { list-style: none; margin: 0; padding: 0; }
.site-menu ul ul a { display: block; padding: 0.3rem 0; font-size: 0.95rem; color: var(--sand); }

/* Desktop rail: sections as depth stops along a probe line */
.site-nav > ul { list-style: none; margin: 0; padding: 0; position: relative; }
.site-nav > ul::before {
  content: ""; position: absolute; left: 1.08rem; top: 1rem; bottom: 1rem; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 0.35rem, transparent 0.35rem 0.6rem);
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a,
.site-nav-group > summary {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.5rem 0.6rem 0.5rem 0; margin: 0.35rem 0;
  border-radius: 0.7rem;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.2;
  white-space: nowrap; color: var(--cream); text-decoration: none;
}
.site-nav-group > summary { list-style: none; cursor: pointer; }
.site-nav-group > summary::-webkit-details-marker { display: none; }
.site-nav > ul > li > a:hover,
.site-nav-group > summary:hover,
.site-nav-group[open] > summary { background-color: var(--raised); color: var(--cream); }
.site-nav > ul > li > a:hover::before { border-color: var(--sulphur); }
.site-nav-group > ul { list-style: none; margin: 0 0 0.6rem 3rem; padding: 0; }
.site-nav-group > ul a {
  display: block; padding: 0.35rem 0; font-family: var(--sans); font-size: 0.97rem; line-height: 1.35;
  color: var(--sand); text-decoration: none;
}
.site-nav-group > ul a:hover { color: var(--sulphur-hi); text-decoration: underline; }

@media (min-width: 1024px) {
  .bench { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); align-items: stretch; }
  .site-header {
    grid-column: 2; grid-row: 1;
    display: flex; flex-direction: column; gap: 1.6rem;
    padding: 2.2rem 1.2rem 2.4rem 1.9rem;
  }
  .core {
    right: auto; top: 0; bottom: 0; width: 0.5rem; height: auto;
    background: linear-gradient(to bottom, var(--epi) 0 6%, var(--derm) 6% 34%, var(--fat) 34% 62%, var(--smas) 62% 66%, var(--muscle) 66%);
  }
  .bench-page { grid-column: 1; grid-row: 1; }
  .rail-probe { display: block; order: 1; }
  .rail-top { order: 2; display: block; padding: 1.5rem 0 0; border-top: 1px solid var(--line-soft); }
  .rail-brand .site-logo { width: 100%; height: auto; }
  .site-menu { display: none; }
}

/* Breadcrumbs */
.breadcrumbs { max-width: var(--wide); margin: 1.2rem 0 0; padding: 0 var(--gutter); font-size: 0.95rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--fg-muted); }

/* Photos: framed as scan windows, pixels untouched */
.photo-hero, .photo-inline { margin: 0 0 2.2rem; }
.photo-hero img, .photo-inline img { display: block; width: 100%; }
.photo-hero img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 50% 50% 1rem 1rem / 34% 34% 1rem 1rem; }
.photo-inline img { border-radius: 1.5rem; }

/* Shared diagram fills */
.epi { fill: var(--epi); }
.derm { fill: var(--derm); }
.fat { fill: var(--fat); }
.smas { fill: var(--smas); }
.muscle { fill: var(--muscle); }
.fibre { fill: none; stroke: #d99a97; stroke-width: 1.5; }
.lobe circle { fill: none; stroke: #a98a46; stroke-width: 1.5; }
.striation { fill: none; stroke: #c9777e; stroke-width: 1.2; }
.surface { fill: none; stroke: var(--cream); stroke-width: 2; }
.ruler, .tick { fill: none; stroke: var(--cream); stroke-width: 1.5; }
.head { fill: var(--cream); }
.beam { fill: none; stroke: var(--sulphur); stroke-width: 2.6; stroke-dasharray: 5 4; }
.needle { fill: none; stroke: var(--cream); stroke-width: 2.6; stroke-linecap: round; }
.wave { fill: none; stroke: var(--sulphur); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 6; }
.cone { fill: none; stroke: var(--sulphur); stroke-width: 1.8; }
.zone { fill: var(--sulphur); stroke: var(--ground); stroke-width: 1.6; }
.range circle { fill: none; stroke: var(--ground); stroke-width: 1.2; stroke-dasharray: 3 7; opacity: 0.55; }
.fan-edge { fill: none; stroke: var(--sulphur); stroke-width: 2; }

/* ---------- Home: one column, headline set into the skin plate ---------- */
.front { max-width: 76rem; padding: clamp(1.25rem, 4vw, 2.75rem) var(--gutter) 3rem; }
.plate { display: grid; margin: 0; }
.plate-head { position: relative; z-index: 1; }
.plate-head h1 { max-width: 16ch; margin-bottom: 1rem; }
.front-lines { display: grid; gap: 0.7rem; max-width: 34rem; }
.front-lines .display-line { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--fg-body); }
.plate-art { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 480; margin-top: 0.5rem; border-radius: 0 0 1.25rem 1.25rem; }
.cable { fill: none; stroke: var(--line-soft); stroke-width: 2; stroke-dasharray: 2 6; }
@media (min-width: 1280px) {
  .plate > * { grid-area: 1 / 1; }
  .plate-art { aspect-ratio: 1000 / 700; margin-top: 0; }
  .plate-head { align-self: start; max-width: 50%; padding-top: 1.5rem; }
  .plate-head h1 { font-size: clamp(2.6rem, 0.9rem + 2.3vw, 3.6rem); max-width: none; }
}

.plate-key { display: grid; gap: 1.1rem 2.4rem; padding: 1.3rem clamp(1rem, 3vw, 1.6rem); border-radius: 1.25rem; margin-top: 1.1rem; }
.device-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem 1.6rem; }
.device-key li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: center; font-size: 0.98rem; line-height: 1.4; }
.key-glyph { width: 2rem; height: 2rem; }
.key-glyph .g-beam, .key-glyph .g-wave, .key-glyph .g-cone { fill: none; stroke: var(--sulphur); stroke-width: 2; stroke-linecap: round; }
.key-glyph .g-needle, .key-glyph .g-line { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; }
.key-glyph .g-head { fill: var(--cream); }
.key-glyph .g-zone { fill: var(--sulphur); stroke: var(--ground); stroke-width: 1.2; }
.layer-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.95rem; }
.layer-key li { display: flex; align-items: center; gap: 0.5rem; }
.swatch { display: inline-block; width: 1.4rem; height: 0.7rem; border-radius: 0.2rem; }
.sw-epi { background: var(--epi); }
.sw-derm { background: var(--derm); }
.sw-fat { background: var(--fat); }
.sw-smas { background: var(--smas); }
.scan-note { margin: 0; font-size: 0.93rem; line-height: 1.5; }
@media (min-width: 760px) {
  .device-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .device-key { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .device-key li { grid-template-columns: 1fr; gap: 0.5rem; align-items: start; }
}

/* Entry log: numbered stops along a probe line */
.log { margin-top: clamp(2.75rem, 6vw, 4.25rem); counter-reset: entry; max-width: var(--wide); }
.log > h2 { margin: 0 0 0.4rem; }
.log-stratum h3 { margin: 2rem 0 0.6rem; padding-left: 0.9rem; border-left: 0.4rem solid var(--derm); font-size: 1.35rem; }
.log-stratum:nth-of-type(2) h3 { border-left-color: var(--fat); }
.log-stratum h3 a { text-decoration: none; }
.log-stratum h3 a:hover { text-decoration: underline; }
.log-list { list-style: none; margin: 0; padding: 0 0 0 0.2rem; position: relative; }
.log-list::before { content: ""; position: absolute; left: 1.3rem; top: 0.9rem; bottom: 0.9rem; width: 2px; background: var(--line-soft); }
.log-list li {
  counter-increment: entry; position: relative;
  display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.9rem; align-items: center;
  padding: 0.35rem 0;
}
.log-list li::before {
  content: counter(entry);
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--sulphur); background: var(--ground);
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; line-height: 1; color: var(--sulphur);
  font-variant-numeric: tabular-nums; position: relative;
}
.log-list a { display: block; padding: 0.4rem 0; font-weight: 600; font-size: 1.1rem; line-height: 1.35; text-decoration: none; }
.log-list a:hover { text-decoration: underline; }

.front-body { margin-top: clamp(2.75rem, 6vw, 4.25rem); }
.front-body > :not(.photo-hero) { max-width: var(--measure); }

/* ---------- Topic hub: split explainer / entries ---------- */
.hub { max-width: 76rem; padding: 1.6rem var(--gutter) 3.5rem; }
.hub-head { margin-bottom: 2rem; }
.hub-head h1 { max-width: 20ch; }
.hub-split { display: grid; gap: 2.5rem; }
.hub-explain { min-width: 0; }
.beam-plate { margin: 0 0 2rem; padding: 1.1rem 1.1rem 0.9rem; border-radius: 50% 50% 1.25rem 1.25rem / 22% 22% 1.25rem 1.25rem; }
.beam-art { display: block; width: 100%; height: auto; border-radius: 50% 50% 0.6rem 0.6rem / 26% 26% 0.6rem 0.6rem; }
.beam-note { margin: 0.8rem 0 0; font-size: 0.93rem; line-height: 1.5; text-align: center; }
.hub-body > :not(.photo-hero):not(.photo-inline) { max-width: var(--measure); }
.hub-entries { padding: 1.4rem 1.4rem 1.2rem; border-radius: 1.25rem; align-self: start; }
.hub-entries h2 { margin: 0 0 0.8rem; font-size: 1.35rem; }
.hub-entries ul { list-style: disc outside; margin: 0; padding: 0 0 0 1.1rem; }
.hub-entries li::marker { color: var(--sulphur); }
.hub-entries li + li { border-top: 1px dashed var(--line-soft); }
.hub-entries li a {
  display: block; padding: 0.65rem 0 0.65rem 0.3rem;
  font-weight: 600; font-size: 1.04rem; line-height: 1.35; text-decoration: none;
}
.hub-entries li a:hover { text-decoration: underline; }
.hub-back { margin: 1rem 0 0; font-size: 0.95rem; }
@media (min-width: 960px) {
  .hub-split { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: 3.5rem; }
}

/* ---------- Article: single reading column ---------- */
.entry { padding: 1.6rem var(--gutter) 3.5rem; }
.entry-head { max-width: var(--measure); }
.entry-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); }
.strip { display: block; width: 100%; height: 3.5rem; margin: 0.6rem 0 2.2rem; border-radius: 1.75rem; }
.strip .fibre { stroke-width: 1; }
.entry-body { max-width: var(--measure); }
.entry-body h2 { padding-top: 0.4rem; }
.entry-body blockquote { margin: 1.6rem 0; padding: 0.9rem 1.2rem; border-radius: 1rem; background: var(--panel); color: var(--cream); }
.day-scale { max-width: var(--measure); margin-top: 3rem; padding: 1.2rem 1.3rem 1rem; border-radius: 1rem; }
.scale-label { margin: 0 0 0.7rem; font-size: 0.95rem; line-height: 1.4; }
.ruler {
  height: 1.4rem; border-bottom: 2px solid var(--sulphur);
  background:
    repeating-linear-gradient(90deg, var(--clay) 0 2px, transparent 2px calc(100% / 14)) bottom left / 100% 0.55rem no-repeat,
    repeating-linear-gradient(90deg, var(--sulphur) 0 2px, transparent 2px calc(100% / 2)) bottom left / 100% 1.3rem no-repeat;
}
.ruler-marks { display: flex; justify-content: space-between; margin-top: 0.35rem; font-weight: 600; font-size: 0.9rem; }

/* ---------- About: stepped timeline ---------- */
.method { max-width: var(--wide); padding: 1.6rem var(--gutter) 3.5rem; }
.method-head { margin-bottom: 1.5rem; }
.method-head h1 { max-width: 22ch; }
.steps { counter-reset: step; }
.steps > * { max-width: var(--measure); }
.steps > h2 {
  counter-increment: step;
  position: relative; margin-top: 2.6rem; padding-left: 3.4rem; min-height: 2.6rem;
}
.steps > h2::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.15rem;
  width: 2.4rem; height: 2.9rem; padding-top: 1.4rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 800; text-align: center; line-height: 1; color: var(--ground);
  border-radius: 0 0 1.2rem 1.2rem;
  background:
    linear-gradient(var(--sulphur), var(--sulphur)) 0.55rem 0 / 0.3rem 1.2rem no-repeat,
    linear-gradient(var(--sulphur), var(--sulphur)) 1.05rem 0 / 0.3rem 0.9rem no-repeat,
    linear-gradient(var(--sulphur), var(--sulphur)) 1.55rem 0 / 0.3rem 1.05rem no-repeat,
    linear-gradient(var(--epi), var(--epi)) 0 1.2rem / 100% 1.7rem no-repeat;
}
@media (min-width: 820px) {
  .steps > h2:nth-of-type(2), .steps > h2:nth-of-type(2) ~ * { margin-left: 3rem; }
  .steps > h2:nth-of-type(3), .steps > h2:nth-of-type(3) ~ * { margin-left: 6rem; }
  .steps > h2:nth-of-type(4), .steps > h2:nth-of-type(4) ~ * { margin-left: 9rem; }
}

/* ---------- Contact: full-width dark bay, diagram over the form ---------- */
.write-in { padding: 0 0 3.5rem; }
.bay { position: relative; padding: clamp(2rem, 5vw, 3.4rem) var(--gutter) clamp(2rem, 5vw, 3rem); }
.bay-strata {
  position: absolute; left: 0; right: 0; top: 0; height: 0.45rem;
  background: linear-gradient(to right, var(--epi) 0 10%, var(--derm) 10% 52%, var(--fat) 52% 84%, var(--muscle) 84%);
}
.bay-split { display: grid; gap: 1.6rem 3rem; align-items: end; max-width: 76rem; }
.bay-head h1 { max-width: 12ch; margin-bottom: 0.9rem; }
.bay-lede { max-width: 26rem; margin: 0; font-size: 1.12rem; line-height: 1.55; }
.bay-figure { margin: 0; min-width: 0; }
.bay-art { display: block; width: 100%; height: auto; border-bottom: 2px solid var(--line); }
.bay-asks { display: grid; gap: 0.5rem 1.6rem; padding-top: 1rem; }
.bay-asks-head { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.ask-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem 1.4rem; font-size: 0.98rem; line-height: 1.45; }
.ask-list li { padding-left: 1rem; border-left: 0.3rem solid var(--sulphur); }
.clause-form {
  display: grid; gap: 1.1rem 1.6rem; max-width: 76rem;
  margin-top: clamp(2rem, 4vw, 2.8rem); padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px dashed var(--line);
}
.field { display: grid; gap: 0.3rem; align-content: start; }
.field-label { font-weight: 600; font-size: 1rem; color: var(--fg-heading); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--cream); background: var(--ground);
  border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.6rem 0.75rem; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--sulphur); }
.clause-button {
  justify-self: start; margin-top: 0.3rem;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: 0.75rem 1.8rem; border: 0; border-radius: 0.6rem; cursor: pointer;
  background: var(--sulphur); color: var(--ground);
}
.clause-button:hover { background: var(--sulphur-hi); color: var(--ground); }
.clause-button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.write-body { max-width: var(--measure); margin: 3rem var(--gutter) 0; }
@media (min-width: 760px) {
  .clause-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide, .clause-button { grid-column: 1 / -1; }
  .bay-asks { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .bay-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .clause-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Thank you: confirmation on top, two picks below ---------- */
.after { max-width: 64rem; padding: clamp(2rem, 6vw, 4rem) var(--gutter) 4rem; }
.after-top { max-width: var(--measure); padding-bottom: 2.2rem; border-bottom: 2px solid var(--line-soft); }
.after-pair { display: grid; gap: 1.5rem; margin-top: 2.4rem; }
.pick { display: grid; align-content: start; gap: 1rem; padding: 0 0 1.4rem; border-radius: 1.25rem; overflow: hidden; }
.pick-strip { display: block; width: 100%; height: 7.5rem; background: var(--ground); }
.pick-title { margin: 0; padding: 0 1.3rem; font-size: 1.3rem; line-height: 1.3; }
.pick-title a { text-decoration: none; }
.pick-title a:hover { text-decoration: underline; }
@media (min-width: 640px) { .after-pair { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; padding: 2rem var(--gutter) 2.4rem; border-radius: 1.75rem 1.75rem 0 0; }
.footer-inner { max-width: var(--wide); display: grid; gap: 0.6rem; }
.footer-name { margin: 0; font-family: var(--display); font-size: 1.25rem; }
.footer-line { margin: 0; font-size: 0.98rem; max-width: 34rem; }
.footer-links { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.8rem; font-size: 1rem; }
.footer-links a:hover { color: var(--sulphur-hi); text-decoration-thickness: 2px; }

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