/* Hallmark · shape: work-first showcase · genre: modern-minimal · theme: custom (look by request, from background.md) · redesign: polish (content revision by REDESIGN_PROMPT.md; system and layout kept) · job: hire · idea: "show the products running, say little about the person" · vibe: "spacious, exact, near-black, one mint signal"
 * paper: oklch(15% 0.012 168) · accent: oklch(88.5% 0.14 167) (#7CF5C8, by request) · display: Space Grotesk (by request) · body: Inter (by request) · label face: JetBrains Mono, for figures, years, step numbers and tech tags (by request) · hero: head beside Sextant's home page (owner's capture, by request); Sextant shows portfolio and risk, then the AI analyst answer · nav: edge-aligned, wordmark and three anchors with the email action · footer: colophon block · imagery: screenshots 7 (the owner's own captures) · signature: real product screens, framed, as the first thing a visitor sees
 * axes: dark/grotesk-sans/chromatic-green · posture: Restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: R, a figures strip and a four-column skills row are common portfolio parts; kept because the brief asks for them and every figure is the owner's own */
/* Hallmark · polish 2026-11-26 (audit): hero grid background removed (47c) · 01 to 04 ordinals dropped from the skills list, now a ul (66) · tech tags set in the body face, mono kept for figures and years (64) · timeline rows put in date order, empty BCom cell merged into Where · Expense Splitter frames lighter, padding halved */
/* Hallmark · answered F3 · balance kept on the h1: without it the head ends on a one-word stub ("works.") at 1280 and 1440, which F26 names */
/* Hallmark · reworded "01 Full-stack engineering", "02 AI applications", "03 Testing and reliability", "04 Finance and operations" to the same heads without ordinals · 66 names decorative counts */
/* Hallmark · dismissed 58 · the eight-word hero head is Josh's own line, kept verbatim by the brief */
/* Hallmark · dropped the visible "Selected work" kicker (Floor 9, an eyebrow); kept as the section's aria-label · proof lines set as lists, not middle-dot strings (Floor 10) */
/* Hallmark · dropped es-group.png, es-insights.png, es-why.png · the owner replaced them with new captures (why.png, balance-expenses.png, log.png) and removed the old files */
/* Hallmark · dropped #concept, #contact · nav links only: the brief removes Concept from the nav and points Email me at mailto; both sections keep their ids */
/* Hallmark · reworded "Building next: an AI work platform" to "Now exploring" and "Have a costly problem? Let’s build the AI for it." to "Building AI that touches real money or real operations? Let’s talk." · both by the brief */
@import url("./tokens.css");
@import url("./base.css");

/* chrome */
.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); }
.skip:focus-visible { top: var(--space-md); }

.nav { position: relative; z-index: var(--z-raised); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.wordmark { margin: 0; font: 500 var(--text-lg)/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none; color: var(--color-ink); }
a.wordmark:hover { color: var(--color-accent); }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav__links a { 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; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); }
.nav__links a:active { color: var(--color-accent); }
.nav__links .nav__action { padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink); transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.nav__links .nav__action:hover { border-color: var(--color-accent); }

/* controls */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); border-color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { background: var(--color-clear); color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
a:not([class]):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a:not([class]):hover { color: var(--color-accent); }

/* type */
h1 { max-width: 13ch; font-size: var(--text-display); font-weight: 500; line-height: 1.02; letter-spacing: var(--tracking-display); }
h2 { max-width: 20ch; font-size: var(--text-section); font-weight: 500; line-height: 1.06; letter-spacing: var(--tracking-display); }
.display-s { max-width: 18ch; font-size: var(--text-display-s); }
.lead { max-width: 44ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
figure { margin: 0; }
figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }

/* product screenshots */
.shot { --shot-pad: var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); }
.shot > img { inset: var(--shot-pad); width: calc(100% - 2 * var(--shot-pad)); height: calc(100% - 2 * var(--shot-pad)); object-fit: contain; object-position: center; border-radius: calc(var(--radius-card) - 2px); }
.shot--hero { aspect-ratio: 2054 / 1902; }
.shot--sx-analyst { aspect-ratio: 1680 / 968; }
.work__lead-shot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-top: var(--space-xl); }
.work__lead-shot figcaption { margin: 0; max-width: 32ch; font-size: var(--text-lead); line-height: 1.45; }
.shot--sx-risk { aspect-ratio: 1938 / 1906; } .shot--sx-health { aspect-ratio: 2028 / 1890; }
.shot--sx-option { aspect-ratio: 1856 / 1894; } .shot--sx-portfolio { aspect-ratio: 1876 / 1780; } .shot--sx-macro { aspect-ratio: 1940 / 1900; }
.shot--es-why { aspect-ratio: 1524 / 1892; } .shot--es-balance { aspect-ratio: 1292 / 1884; } .shot--es-log { aspect-ratio: 1580 / 1882; }
.slot__note { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); text-align: center; }

/* hero */
.hero { min-height: calc(100dvh - 72px); display: grid; align-items: center; padding-block: var(--space-xl) var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }

/* figures strip */
.figures { padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.figures__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.figures__row div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-xs); }
.figures__row dt { max-width: 26ch; font-size: var(--text-sm); color: var(--color-muted); }
.figures__n { margin: 0; font: 500 var(--text-3xl)/1 var(--font-display); letter-spacing: var(--tracking-display); }

/* work */
.work { padding-block: var(--section-gap) var(--section-gap-l); border-top: 1px solid var(--color-rule); }
.project + .project { margin-top: var(--section-gap); padding-top: var(--section-gap); border-top: 1px solid var(--color-rule); }
.work__detail { display: grid; gap: var(--space-lg); }
.proof, .tags { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.proof { font-family: var(--font-outlier); gap: var(--space-xs) var(--space-xl); color: var(--color-ink-2); }
.tags { gap: var(--space-xs); color: var(--color-muted); }
.tags li { padding: var(--space-3xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); }
.more { display: grid; gap: var(--space-md); margin-top: var(--section-gap); }
.more__title { font-size: var(--text-lg); font-weight: 500; }
.more__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-md); border-block: 1px solid var(--color-rule); }
.more__name { font: 500 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.015em; }
.more__what { color: var(--color-ink-2); }
.more__row .links { margin: 0; }

/* approach */
.approach { padding-block: var(--section-gap); border-top: 1px solid var(--color-rule); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.steps li { display: grid; align-content: start; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.steps h3 { font-size: var(--text-title); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.steps p { color: var(--color-ink-2); }
.work__intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; margin-bottom: var(--space-2xl); }
.work__head { display: grid; gap: var(--space-md); }
.links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: var(--space-xs) 0 0; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }
.decisions { display: grid; margin: 0; }
.decisions div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap-columns); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.decisions div:last-child { border-bottom: 1px solid var(--color-rule); }
.decisions dt { font: 500 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.015em; }
.decisions dd { margin: 0; color: var(--color-ink-2); }
.work__shots { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: start; }
.work__shots--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* one large, two small: the large shot sets the height, the two small ones split it and crop from the top */
.work__shots--feature { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.work__shots--feature > figure:first-child { grid-row: span 2; }
.work__shots--feature > figure:not(:first-child) { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.work__shots--feature > figure:not(:first-child) .shot { aspect-ratio: auto; min-height: 0; }
.work__shots--feature > figure:not(:first-child) .shot > img { object-fit: cover; object-position: top; }
.work__shots--feature .shot { --shot-pad: var(--space-xs); background: var(--color-paper-3); }
.work__shots + .work__shots { margin-top: var(--space-xl); }

/* concept */
.concept { padding-block: var(--space-2xl); background: var(--color-paper-2); }
.h-small { font-size: var(--text-2xl); }
.concept__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.concept__text { display: grid; gap: var(--space-lg); }
.loop { display: grid; justify-items: center; }
.loop__ring { position: relative; width: min(100%, 340px); aspect-ratio: 1; container-type: inline-size; }
.loop__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop__track { fill: none; stroke: var(--color-rule); stroke-width: 0.3; }
.loop__return { fill: none; stroke: var(--color-accent); stroke-width: 0.7; stroke-linecap: round; }
.loop__stages { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.loop__stages li { --a: calc(var(--n) * 51.4286deg - 90deg); position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm); font-size: var(--text-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-3); white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(39cqw) rotate(calc(-1 * var(--a))); }
.loop__stages li:first-child, .loop__stages li:last-child { border-color: var(--color-accent); }
.loop__stages .num { font-size: var(--text-sm); color: var(--color-muted); }
.loop__centre { position: absolute; inset: 28%; display: grid; place-content: center; gap: var(--space-2xs); text-align: center; }
.loop__centre b { font: 500 var(--text-md)/1.2 var(--font-display); letter-spacing: -0.015em; }
.loop__centre span { font-size: var(--text-xs); color: var(--color-muted); }
/* loop draw: one accent line runs the whole loop, Collect through Monitor and back to Collect, lighting each stage as it passes; then it settles into the static return arc. Armed only by script, once, never under reduced motion */
.loop__run { fill: none; stroke: var(--color-accent); stroke-width: 0.7; stroke-linecap: round; opacity: 0; }
.loop--armed .loop__stages li { opacity: 0.3; }
.loop--armed .loop__run { opacity: 1; stroke-dasharray: var(--track) calc(var(--track) + 1); stroke-dashoffset: var(--track); }
.loop--armed .loop__return { opacity: 0; }
.loop--armed:not(.is-drawn) .loop__run { visibility: hidden; }
.loop--armed.is-drawn .loop__run { stroke-dashoffset: 0; opacity: 0; transition: stroke-dashoffset 4200ms linear, opacity 900ms var(--ease-out) 4600ms; }
.loop--armed.is-drawn .loop__stages li { opacity: 1; transition: opacity var(--dur-long) var(--ease-out) calc(var(--n) * 600ms); }
.loop--armed.is-drawn .loop__return { opacity: 1; transition: opacity var(--dur-long) var(--ease-out) 4200ms; }
@media (prefers-reduced-motion: reduce) { .loop__run { display: none; } .loop--armed .loop__stages li, .loop--armed .loop__return { opacity: 1; transition: none; } }

/* background */
.head { display: grid; gap: var(--space-md); }
.record { padding-block: var(--section-gap-l) var(--section-gap); }
.record__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap-columns); align-items: start; }
.timeline { width: 100%; border-collapse: collapse; }
.timeline th, .timeline td { padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
.timeline thead th { padding-top: 0; font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); white-space: nowrap; }
.timeline tbody th { font-weight: 600; }
.timeline td.num { width: 9.5rem; font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
.timeline td:last-child { color: var(--color-ink-2); }
.timeline__did { min-width: 16ch; }

/* contact */
.fill { padding: 0 0.25em; border: 1px dashed var(--color-muted); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.contact { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: end; }
.contact__side { display: grid; gap: var(--space-xl); }
.contact__list { display: grid; gap: var(--space-md); margin: 0; }
.contact__list div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.contact__list dt { font-size: var(--text-sm); color: var(--color-muted); }
.contact__list dd { margin: 0; font-size: var(--text-lg); }

/* footer */
.footer { padding-block: var(--space-3xl); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md); }
.footer p:not(.wordmark) { font-size: var(--text-sm); color: var(--color-muted); }

/* responsive */
@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-2xl); }
  .hero__grid, .work__lead-shot, .work__intro, .work__shots, .work__shots--even, .work__shots--feature, .concept__grid, .record__grid, .contact__grid, .more__row { grid-template-columns: minmax(0, 1fr); }
  .figures__row, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .more__row { gap: var(--space-xs); }
  .timeline thead { display: none; }
  .timeline tr { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule); }
  .timeline th, .timeline td { padding: 0; border: 0; }
  .timeline td.num { grid-row: span 3; }
  .hero__grid, .concept__grid, .contact__grid { gap: var(--space-xl); }
  .work__shots--feature { grid-template-rows: none; }
  .work__shots--feature > figure:first-child { grid-row: auto; }
  .work__shots--feature > figure:not(:first-child) { display: block; }
  .work__shots--feature > figure:not(:first-child) .shot--es-balance { aspect-ratio: 1292 / 1884; }
  .work__shots--feature > figure:not(:first-child) .shot--es-log { aspect-ratio: 1580 / 1882; }
  .work__shots--feature > figure:not(:first-child) .shot > img { object-fit: contain; }
}
@media (max-width: 40rem) {
  .nav__links li:not(:last-child) { display: none; }
  .decisions div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .loop__ring { aspect-ratio: auto; container-type: normal; }
  .loop__ring svg, .loop__centre { display: none; }
  .loop__stages { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
  .loop__stages li { position: static; transform: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .shot { --shot-pad: var(--space-xs); }
  .timeline tr { grid-template-columns: minmax(0, 1fr); }
  .contact__list div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .contact__list dd { font-size: var(--text-md); white-space: nowrap; }
  .timeline td.num { grid-row: auto; }
}
