/* Hallmark · shape: Bento Grid · genre: atmospheric · theme: Lumen (deal 1/3, seed one-page-cyborg-personal-skill-f0af·58bd09d2·2026-11-28·r0) · job: try · draw: 103eb1
 * hero: Counter · nav: masthead · footer: statement · imagery: the product · signature: the request builder that writes the /cyborg run as you type
 * axes: dark/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · lumen: night · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: H, the builder could outweigh the head; held it to three fields and one filled action */
/* Hallmark · waive 38iii · the verb "decide", once, in the hero head only · Lumen names one rose verb as the theme signature of this page */
/* Hallmark · waive 47c · blueprint grid inside the one path diagram well, nowhere else · the Lumen texture, drawn under a diagram of the real run */
/* Hallmark · hero-review: fix · 5 findings · 5 resolved */
/* Hallmark · finish-review: subagent · 8 findings · 7 resolved 1 partial · gap: the hero foot at 1920 */
/* Hallmark · answered F4 · the footer repeats the one start action in the same brass recipe, far from the hero */
@import url("./fonts.css");
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 72px;
  --control-h: 48px;
  --seg-h: 44px;
  --node-h: 56px;
  --text-hero: clamp(3rem, 4.6vw + 1rem, 5.25rem);
  --text-item: clamp(1.625rem, 1vw + 1.25rem, 2.25rem);
  --text-result: clamp(4.5rem, 6vw + 2rem, 8rem);
}

/* Lumen's register: lowercase heads, labels and controls; prose keeps its case. */
body { font-variant-numeric: tabular-nums; }
h1, h2, h3, label, legend, .mast__in, .btn, [role="tab"], .statement { text-transform: lowercase; }
h1 { font-size: var(--text-hero); line-height: 0.98; }
h2 { font-size: var(--text-display-s); line-height: 0.98; }
h3 { font-size: var(--text-item); line-height: 1.08; }
.lead { color: var(--color-ink-2); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-accent-ink); }
.skip:focus-visible { top: var(--space-md); }

/* Masthead: the wordmark centred over a rule. */
.mast__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: var(--space-md); min-height: var(--nav-h); border-bottom: var(--rule-hair) solid var(--color-rule); }
.mast__mark { padding: var(--space-xs) var(--space-sm); font: 400 var(--text-2xl)/1 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; }
.mast__link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.mast__link--end { justify-self: end; }
.mast__link:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.mast__link:active { color: var(--color-muted); }

/* Hero: the head over the request builder, one well split by a hairline. */
.hero { display: grid; align-items: center; min-height: min(calc(100svh - var(--nav-h) - var(--space-lg)), 48rem); padding-block: var(--space-xl); }
.hero__in { display: grid; gap: var(--space-2xl); }
.hero__text { display: grid; gap: var(--space-lg); }
.hero h1 { max-width: none; }
.hero .lead { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.verb { display: inline-block; color: var(--color-accent-2); }
.verb::after { content: ""; display: block; height: var(--rule-hair); background: currentColor; transform-origin: left; animation: draw var(--dur-long) var(--ease-out) both; }
@keyframes draw { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .verb::after { animation: none; } }

.well { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.builder__in, .builder__out { display: grid; gap: var(--space-lg); min-width: 0; padding: var(--space-xl); }
.builder__in { align-content: start; }
.builder__out { align-content: space-between; border-left: var(--rule-hair) solid var(--color-rule); }
.builder__send { display: grid; gap: var(--space-md); }
.field { display: grid; gap: var(--space-xs); }
.field label, .seg legend, .slide label { font-size: var(--text-sm); color: var(--color-ink-2); }
.field input { width: 100%; min-height: var(--control-h); padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; transition: border-color var(--dur-short) var(--ease-out); }
.field input::placeholder { color: var(--color-muted); opacity: 1; }
.field input:hover { border-color: var(--color-ink-2); }
.field input:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }

/* A choice between a few: radios in the builder, tabs over the sources. */
.seg { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.seg legend { margin-bottom: var(--space-xs); padding: 0; }
.seg__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); }
.seg__row--tabs { display: inline-grid; }
.seg__row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg__row label, .seg__row [role="tab"] { display: inline-flex; align-items: center; justify-content: center; min-height: var(--seg-h); padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font-size: var(--text-sm); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.seg__row label:hover, .seg__row [role="tab"]:hover { background: var(--color-paper-3); }
.seg__row label:active, .seg__row [role="tab"]:active { color: var(--color-ink); }
.seg__row input:checked + label, .seg__row [role="tab"][aria-selected="true"] { background: var(--color-paper-3); color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-ink-2); }
.seg__row input:focus-visible + label, .seg__row [role="tab"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg__row input:disabled + label, .seg__row [role="tab"]:disabled { opacity: 0.55; cursor: not-allowed; }

.readout { margin: 0; font: 400 var(--text-xs)/1.5 var(--font-outlier); color: var(--color-ink-2); }
.request { display: block; min-height: 3lh; font: 400 var(--text-lg)/1.6 var(--font-outlier); color: var(--color-ink); white-space: pre-wrap; overflow-wrap: break-word; }
.request[data-empty] { color: var(--color-muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h); padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn--secondary { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); }
.btn--secondary:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }
html:not(.js) [role="tablist"], html:not(.js) [data-needs-js] { display: none; }

/* Sections part by different gaps; the doc sits on its own band of paper. */
.stack { display: grid; gap: var(--space-2xl); }
.path { padding-top: var(--section-gap-s); }
.sources { padding-top: var(--section-gap-l); }
.method { padding-block: var(--section-gap) var(--section-gap-l); }
.doc { padding-block: var(--section-gap-s); background: var(--color-paper-2); }

.head { display: grid; gap: var(--space-lg); }
.head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.head--split h2 { grid-column: 1 / span 6; }
.head--split .lead { grid-column: 8 / span 5; }

/* The path: six real steps as hairline nodes on one brass rule. */
.path__well { margin: 0; padding: var(--space-2xl) var(--space-xl); }
.blueprint { background-image: linear-gradient(var(--rule-blueprint) 1px, transparent 1px), linear-gradient(90deg, var(--rule-blueprint) 1px, transparent 1px); background-size: 48px 48px; }
.flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.flow::before { content: ""; position: absolute; inset: calc(var(--node-h) / 2) var(--space-xl) auto; height: var(--rule-hair); background: var(--color-accent); }
.flow li { position: relative; display: grid; gap: var(--space-md); align-content: start; min-width: 0; }
.flow b { display: flex; align-items: center; justify-content: center; min-height: var(--node-h); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper); font: 400 var(--text-xs)/1.5 var(--font-outlier); color: var(--color-ink); }
.flow span { font-size: var(--text-sm); color: var(--color-muted); }

/* Sources: the switcher, then the promise in a well of its own. */
.sources__grid { display: grid; gap: var(--space-2xl); }
.switch { display: grid; gap: var(--space-xl); align-content: start; justify-items: start; }
.panel { justify-self: stretch; }
.vow { padding: var(--space-xl); }

.rows { margin: 0; padding: 0; list-style: none; border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); align-items: baseline; min-height: 88px; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.rows p { max-width: 52ch; color: var(--color-ink-2); }

/* The bento: the formula leads, two rules beside it, the weight chart beneath. */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.tile { display: grid; align-content: space-between; gap: var(--space-lg); min-width: 0; margin: 0; padding: var(--space-xl); }
.tile--calc { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.tile--fig { grid-column: 9 / span 4; padding-block: var(--space-lg); }
.tile--chart { grid-column: 1 / -1; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); align-items: end; }
.tile p:not([class]) { color: var(--color-ink-2); }

.fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); }
.fig__n { min-width: 0; font: 400 var(--text-display-s)/0.9 var(--font-display); letter-spacing: var(--tracking-display); overflow-wrap: break-word; }
.fig__n--lead { font-size: var(--text-result); }
.unit { font: 400 var(--text-xs)/1.5 var(--font-outlier); color: var(--color-muted); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: end; }
.calc__in { display: grid; gap: var(--space-lg); }
.calc__out { display: grid; gap: var(--space-xs); }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-sm); align-items: baseline; }
.slide .range { grid-column: 1 / -1; }
.slide__lo, .slide__hi { color: var(--color-muted); }
.slide__hi { justify-self: end; }
.range { width: 100%; height: var(--seg-h); margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: var(--radius-pill); background: var(--color-muted); }
.range::-moz-range-track { height: 4px; border-radius: var(--radius-pill); background: var(--color-muted); }
.range::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: calc(-1 * var(--space-xs)); border: 0; border-radius: 50%; background: var(--color-ink); -webkit-appearance: none; appearance: none; }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--color-ink); }
.range:hover::-webkit-slider-thumb { background: var(--color-accent); }
.range:hover::-moz-range-thumb { background: var(--color-accent); }
.range:active::-webkit-slider-thumb { background: var(--color-accent); }
.range:active::-moz-range-thumb { background: var(--color-accent); }
.range:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-card); }
.range:disabled { opacity: 0.55; cursor: not-allowed; }

/* Review weight by age, drawn to scale: 1.0 for the older half, 1.5 for the recent half. */
.tile--chart figcaption { display: grid; gap: var(--space-md); }
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs) var(--space-sm); min-width: 0; }
.chart__y { position: relative; min-width: 3.5em; color: var(--color-muted); }
.chart__y span { position: absolute; right: 0; bottom: 60%; transform: translateY(50%); }
.chart__y span:first-child { bottom: 90%; }
.chart__plot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; height: 216px; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.chart__rule { position: absolute; inset: auto 0 60%; height: var(--rule-hair); background: var(--color-rule); }
.chart__rule--hi { bottom: 90%; }
.chart__level { position: relative; height: 60%; border-top: 2px solid var(--color-ink-2); background: color-mix(in oklab, var(--color-ink-2) 10%, transparent); }
.chart__level--new { height: 90%; border-top-color: var(--color-accent); }
.chart__level--new::before { content: ""; position: absolute; inset: 0 auto auto 0; height: 33.4%; border-left: 2px solid var(--color-accent); }
.chart__axis { grid-column: 2; display: flex; justify-content: space-between; color: var(--color-muted); }

.statement { max-width: 34ch; min-width: 0; font: 400 var(--text-display-s)/1.02 var(--font-display); letter-spacing: var(--tracking-display); overflow-wrap: break-word; text-wrap: balance; }

/* The doc: a head beside five numbered rows. */
.doc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.doc__grid .head { grid-column: 1 / span 4; }
.doc__grid .rows { grid-column: 5 / span 8; }
.rows--num { counter-reset: part; }
.rows--num > li { grid-template-columns: var(--space-xl) minmax(0, 5fr) minmax(0, 5fr); counter-increment: part; }
.rows--num > li::before { content: counter(part); font: 400 var(--text-xs)/1.5 var(--font-outlier); color: var(--color-muted); }

.foot__in { display: grid; gap: var(--space-xl); justify-items: start; padding-block: var(--section-gap-s) var(--space-3xl); }

@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero__in { gap: var(--space-xl); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder__out { border-top: var(--rule-hair) solid var(--color-rule); border-left: 0; }
  .head--split, .doc__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .head--split h2, .head--split .lead, .doc__grid .head, .doc__grid .rows { grid-column: auto; }
  .doc__grid { row-gap: var(--space-2xl); }
  .rows > li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .rows--num > li { grid-template-columns: var(--space-lg) minmax(0, 1fr); }
  .rows--num p { grid-column: 2; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow::before { inset: 0 auto 0 4.25rem; width: var(--rule-hair); height: auto; }
  .flow li { grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: var(--space-md); align-items: center; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--calc, .tile--fig, .tile--chart { grid-column: auto; grid-row: auto; }
  .tile--chart { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
}

@media (max-width: 40rem) {
  :root { --nav-h: 56px; --text-hero: 2.5rem; }
  .hero { padding-block: var(--space-md) var(--space-xl); }
  .hero__in, .hero__text { gap: var(--space-md); }
  .builder__in, .builder__out { gap: var(--space-md); padding: var(--space-md); }
  .builder__send { order: -1; }
  .actions .btn { flex: 1 1 auto; padding: 0 var(--space-md); }
  .request { font-size: var(--text-xs); }
  .tile, .vow, .path__well { padding: var(--space-lg); }
  .calc { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .seg__row--tabs { display: grid; justify-self: stretch; }
  .seg__row label, .seg__row [role="tab"] { padding: 0 var(--space-sm); }
  .chart__plot { height: 168px; }
}
