/* Hallmark · shape: Stat-Led · genre: atmospheric · theme: Lumen (deal 1/3, seed applied-engineer-portfolio-hiring-551c·463559fc·2026-11-09·r0) · lumen: night · job: hire · draw: e06aaf
 * hero: Corridor · nav: search-led bar with a working command palette · footer: statement · imagery: the product, the Valar recording; diagrams of real systems · signature: the english and roman urdu switch on the hero figure, 48.5% against 11.5%
 * axes: dark/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: E, the palette is a second modal on a one-page site; kept because it is the nav the draw dealt and it answers a real need, a hiring reader jumping to one project */
/* Hallmark · hero-review: fix · 4 findings · 4 resolved (readout added, instrument well on the blueprint grid, head raised to 7rem, label and switch moved into the well) */
/* Hallmark · finish-review: subagent · 7 findings · 7 resolved (steps ruled not boxed, results in ink, rejects muted, video cropped to the product and opened on the redaction, phone actions above the fold at y 731, firewall head names its result, stat row cut to three) · gap: none */
/* Hallmark · dismissed 58 · the window at y 2700 holds the Worldsmith loop diagram, whose four step titles and readouts count as prose; the prose itself is two lines */
/* Hallmark · dismissed F7 · the pills are the command button, the segmented control's track and its key cap, all controls, plus the skip link */
/* Hallmark · waive 47c · the blueprint grid sits only inside the hero instrument well, under a figure and two readouts · Lumen names the blueprint grid inside one well as its texture */
/* Hallmark · waive 82 · the hero grid shows one square per attack, lit if caught · it is the chart of 194 / 400 attacks caught against 46 / 399, marks differ in colour */
/* Hallmark · waive 38iii · the rose verb "miss" in the hero head only · Lumen names the one rose verb in the hero as its signature */
@import url("./tokens.css");
@import url("./base.css");

body { font-variant-numeric: tabular-nums; line-height: 1.6; }
h1, h2, h3, nav, label, legend, th, figcaption, .btn, .cmd, .wordmark { text-transform: lowercase; }
h1, h2, h3 { font-weight: 400; }
h2 { font-size: var(--text-display-s); line-height: 0.98; max-width: 24ch; }
.muted { color: var(--color-muted); }
.readout { font: 400 0.8125rem/1.5 var(--font-outlier); color: var(--color-ink-2); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }

.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-paper); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; 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), 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: var(--color-ink); }
.btn--secondary { background: transparent; box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-paper-2); }
.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; }
a:not(.btn):hover { text-decoration-color: var(--color-accent); }

/* nav: a search-led bar */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-md); min-height: 64px; }
.wordmark { font: 400 1.6rem/1 var(--font-display); text-decoration: none; letter-spacing: var(--tracking-display); white-space: nowrap; }
.cmd { display: inline-flex; align-items: center; gap: var(--space-xl); min-height: 44px; padding: 0 var(--space-xs) 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: var(--color-paper-2); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); color: var(--color-muted); font: 400 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.cmd:hover { color: var(--color-ink); background: var(--color-paper-3); }
.cmd:active { transform: translateY(1px); }
.cmd:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cmd kbd { text-transform: none; padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--color-paper); font: 400 0.75rem/1 var(--font-outlier); color: var(--color-ink-2); }
.bar__mail { font-size: var(--text-sm); white-space: nowrap; text-decoration: none; padding-block: var(--space-sm); }
.bar__mail:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }

/* hero: corridor */
.hero { min-height: calc(100svh - 65px); display: grid; align-items: center; padding-block: var(--space-2xl) var(--space-3xl); }
.hero__col { display: grid; justify-items: center; text-align: center; gap: var(--space-lg); }
.hero__col > h1 { margin-top: var(--space-md); }
.hero__col > * { max-width: 44ch; }
.blueprint { background-image: linear-gradient(var(--rule-blueprint) 1px, transparent 1px), linear-gradient(90deg, var(--rule-blueprint) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.instrument { width: min(100%, 44rem); max-width: none; margin: 0; padding: var(--space-lg); display: grid; gap: var(--space-md); background-color: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); text-align: left; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); border: 0; margin: 0; padding: 0; }
.seg legend { float: left; margin-right: auto; padding: 0; font-size: var(--text-sm); color: var(--color-muted); }
.seg legend + input + label { margin-left: auto; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); cursor: pointer; color: var(--color-muted); font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg label:hover { color: var(--color-ink); background: var(--color-paper-3); }
.seg input:checked + label { background: var(--color-paper-3); color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.fig { font: 400 clamp(5.5rem, 11vw, 10rem)/0.9 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; padding-block: var(--space-sm) 0; }
.fig__unit { font: 400 0.3em/1 var(--font-outlier); color: var(--color-accent); letter-spacing: 0; margin-left: 0.1em; vertical-align: 1.1em; }
.instrument__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-xl); }
.instrument__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.instrument .readout span:last-child { color: var(--color-muted); }
.hero h1 { font-size: clamp(3rem, 5.6vw + 0.5rem, 7rem); line-height: 0.95; max-width: 16ch; }
.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) 300ms both; }
@keyframes draw { from { transform: scaleX(0); } }
.hero .lead { color: var(--color-ink-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }

/* sections */
.sec { padding-block: var(--section-gap) 0; }
.sec + .sec { padding-top: var(--section-gap-l); }
#firewall, #bench { padding-top: var(--section-gap); }
.sec--band { margin-top: var(--section-gap-s); padding-block: var(--section-gap-s); background: var(--color-paper-2); color: var(--color-ink); border-block: var(--rule-hair) solid var(--color-rule); }
.sec--band + .sec { padding-top: var(--section-gap-s); }
.head { display: grid; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-ink-2); }
.head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.head--split h2 { grid-column: 1 / span 7; }
.head--split .lead { grid-column: 8 / span 5; }
.well { margin: 0; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }

/* transliteration: the same attack in both scripts */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.req { padding: var(--space-xl); display: grid; gap: var(--space-lg); align-content: space-between; min-height: 300px; }
.req figcaption { font-size: var(--text-sm); color: var(--color-muted); }
.req__text { font: 400 var(--text-xl)/1.35 var(--font-outlier); color: var(--color-ink); max-width: 32ch; }
.req .readout b { font-weight: 400; color: var(--color-ink); }
.req .readout b.hot { color: var(--color-accent); }
.figures { margin: var(--space-2xl) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figures__next { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-xs); padding-inline: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures dt { font-size: var(--text-sm); color: var(--color-muted); max-width: 24ch; }
.figures dd { margin: 0; font: 400 var(--text-display-s)/1 var(--font-display); letter-spacing: var(--tracking-display); }

/* firewall: a measured table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.table thead th { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); white-space: nowrap; }
.table tbody th { font-weight: 500; }
#firewall .table td:nth-child(2), #firewall .table td:nth-child(3) { font: 400 var(--text-section)/1 var(--font-display); letter-spacing: var(--tracking-display); white-space: nowrap; }
#firewall .table td:nth-child(2) { color: var(--color-muted); }
#firewall .table td.good { color: var(--color-ink); }
#firewall .table td.muted { font: 400 var(--text-md)/1.4 var(--font-body); }
#firewall .table td:last-child { color: var(--color-ink-2); font-size: var(--text-sm); }

/* worldsmith: the loop as a diagram */
.loop { padding: var(--space-xl); background-color: var(--color-paper); }
.loop__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.loop__steps > li { position: relative; display: grid; align-content: start; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 2px solid var(--color-rule-2); }
.loop__steps > li:not(:last-child)::after { content: ""; position: absolute; top: -6px; right: calc(-1 * var(--space-lg) / 2 - 5px); width: 10px; height: 10px; border-top: 2px solid var(--color-rule-2); border-right: 2px solid var(--color-rule-2); transform: rotate(45deg); }
.loop__steps > li.loop__gate { border-top-color: var(--color-accent); }
.loop__steps h3 { font-size: var(--text-xl); }
.loop__steps p { font-size: var(--text-sm); color: var(--color-ink-2); }
.loop__rejects { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.loop__rejects li { font: 400 0.8125rem/1.5 var(--font-outlier); color: var(--color-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.loop__foot { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); font-size: var(--text-sm); color: var(--color-ink-2); }
.loop__foot .muted { display: block; margin-bottom: var(--space-2xs); }

/* valar: the recording */
.reel { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-card); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__toggle { position: absolute; z-index: 2; right: var(--space-md); top: var(--space-md); background: color-mix(in oklab, var(--color-paper) 80%, transparent); }
html:not(.js) .reel__toggle { display: none; }
.policy { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); font-size: var(--text-sm); }
.policy__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.policy__list li { padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); font: 400 0.8125rem/1.5 var(--font-outlier); color: var(--color-ink-2); }
.policy__list li.is-key { border-color: var(--color-accent); color: var(--color-ink); }
.policy__link { margin-left: auto; }

/* bench: the index */
.index tbody th { font: 400 var(--text-title)/1.15 var(--font-display); text-transform: lowercase; white-space: nowrap; padding-right: var(--space-xl); }
.index tbody th a { text-decoration: none; }
.index tbody th a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.index td { color: var(--color-ink-2); }
.index td:last-child { font: 400 0.8125rem/1.5 var(--font-outlier); color: var(--color-muted); white-space: nowrap; }
.bench__more { margin-top: var(--space-xl); }

/* close: a statement footer */
.close { margin-top: var(--section-gap-l); padding-block: var(--section-gap-s) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.close__line { font: 400 var(--text-display-s)/1 var(--font-display); letter-spacing: var(--tracking-display); max-width: 20ch; text-wrap: balance; }
.close__grid { margin-top: var(--space-2xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg) var(--space-xl); }
.close__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.close__links a { white-space: nowrap; }
.close__legal { margin-top: var(--space-2xl); font-size: var(--text-sm); color: var(--color-muted); }

/* the command palette */
.palette { width: min(36rem, calc(100% - 2 * var(--space-md))); margin: 12vh auto auto; padding: 0; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); }
.palette::backdrop { background: color-mix(in oklab, var(--color-paper) 70%, transparent); }
.palette__form { display: grid; }
.palette input { min-height: 56px; padding: 0 var(--space-lg); border: 0; border-bottom: var(--rule-hair) solid var(--color-rule); background: transparent; color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -2px; }
.palette input:focus-visible { outline-color: var(--color-focus); }
.palette input::placeholder { color: var(--color-muted); }
.palette__list { list-style: none; margin: 0; padding: var(--space-xs); max-height: 50vh; overflow-y: auto; }
.palette__list a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--space-xs); text-decoration: none; text-transform: lowercase; }
.palette__list a:hover, .palette__list li.is-on a { background: var(--color-paper-3); }
.palette__list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.palette__list .readout { color: var(--color-muted); }
.palette__empty { padding: var(--space-md) var(--space-lg); font-size: var(--text-sm); }

@media (max-width: 60rem) {
  .head--split h2, .head--split .lead { grid-column: 1 / -1; }
  .pair, .loop__steps, .loop__foot { grid-template-columns: minmax(0, 1fr); }
  .loop__steps > li:not(:last-child)::after { display: none; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .table th, .table td { padding: 0; border: 0; }
  .table tbody th { grid-column: 1 / -1; white-space: normal; }
  #firewall .table td:last-child, .index td:nth-child(2) { grid-column: 1 / -1; }
  .index td:last-child { grid-row: 1; grid-column: 2; text-align: right; }
  .index tbody th { grid-column: 1; }
  .policy__link { margin-left: 0; }
}
@media (max-width: 40rem) {
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div { padding: var(--space-md) 0; border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .req { padding: var(--space-lg); min-height: 0; }
  .loop { padding: var(--space-md); }
}

@media (max-width: 40rem) {
  .bar__row { grid-template-columns: auto 1fr; }
  .bar__mail { display: none; }
  .cmd { justify-self: end; gap: var(--space-sm); }
  .cmd span { display: none; }
  .cmd::before { content: "jump to"; }
  .instrument { padding: var(--space-md); }
  .instrument__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .instrument { gap: var(--space-sm); }
  .instrument__foot span:last-child { display: none; }
  .fig { font-size: 5rem; padding-top: 0; }
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .hero__col { gap: var(--space-md); }
  .seg legend { width: 100%; margin-bottom: var(--space-xs); }
  .seg legend + input + label { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .verb::after { animation: none; }
  .btn, .cmd, .seg label { transition: none; }
}
