/* Portfolio v2.3 (11-23): v2.2's look plus motion (end of file). Portfolio v2.2 (11-23): Astra's look. One sans family (the system's own: zero font bytes). One accent, for status
   only. Background #0E161B; headings, headline and credentials #F1F0E9; supporting text #A7B0B5; 1 px rules #303B42;
   #94C9B0 only for the "Live" dot and fill. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root { --bg: #0e161b; --ink: #f1f0e9; --soft: #a7b0b5; --rule: #303b42; --status: #94c9b0; --tile: #121c22; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(241, 240, 233, .45); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- first screen: the headline leads ---------- */
.hero { padding-top: 24px; }
.open { font-size: 13px; line-height: 1.45; color: var(--soft); display: flex; gap: 10px; align-items: baseline; }
.dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--status); transform: translateY(-2px); }
.ti { white-space: nowrap; }
.name { margin-top: 24px; font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: .16em; color: var(--ink); }
.headline {
  margin-top: 24px; max-width: 15em; font-size: 42px; line-height: 1.05; font-weight: 600; letter-spacing: -.035em;
  color: var(--ink); text-wrap: balance;
}
/* the defense headline is longer: at most four lines on a 390 px phone */
.home:has(#proof-defense:first-child) .headline { font-size: 40px; max-width: 17em; }
.trust { margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--ink); max-width: 62ch; }
.cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.hero .cta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px; background: transparent;
}
.btn:hover { background: rgba(241, 240, 233, .06); }
.cta .btn:first-child, .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gh { font-size: 14px; color: var(--soft); padding: 12px 6px; }
/* phones: the credentials stack, one fact per line, with no dot left at a line's end */
@media (max-width: 699px) {
  .trust .ti { display: block; }
  .trust .ti::first-letter { text-transform: uppercase; }
  .trust .sep { display: none; }
}

/* ---------- the work: rows, CareerSurfer first and largest ---------- */
.work { margin-top: 28px; }
.label { font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--soft); }
.work > .label { margin-bottom: 10px; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows > li:first-child:not(.has-band) { border-top: 1px solid var(--rule); }
.row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "text";
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.row-text { grid-area: text; min-width: 0; }
.row-pic { grid-area: pic; display: none; }
.row-name { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.rows > li:first-child .row-name, #proof-careersurfer .row-name { font-size: 27px; line-height: 1.15; letter-spacing: -.025em; }
.row-link { text-decoration: none; }
.row-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.row:hover .row-name a, .row-link:focus-visible { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; }
.row-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
/* one quiet chip, "Live"; every other fact is plain text */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; line-height: 1; font-weight: 500; white-space: nowrap; }
.chip.live { color: var(--status); background: rgba(148, 201, 176, .14); }
.chip.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.demo { color: var(--ink); background: rgba(241, 240, 233, .08); }
.chip.fact { height: auto; padding: 0; font-size: 14px; font-weight: 500; color: var(--soft); background: none; }
.addr { position: relative; z-index: 2; font-size: 14px; color: var(--ink); text-decoration: underline; padding: 10px 0; margin: -10px 0; }
.row-line { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--soft); max-width: 62ch; }
.row-more { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(241, 240, 233, .45); }

/* CareerSurfer's row: the numbers, then its name with "Live" on the same line, then (phones) one real screen at full width */
#proof-careersurfer {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "band band" "name chip" "addr addr" "line line" "more more" "pic pic";
}
.rows > #proof-careersurfer:first-child { padding-top: 0; }
#proof-careersurfer .row-text, #proof-careersurfer .row-meta { display: contents; }
#proof-careersurfer .row-name { grid-area: name; align-self: center; }
#proof-careersurfer .chip { grid-area: chip; align-self: center; justify-self: end; margin-left: 12px; }
#proof-careersurfer .addr { grid-area: addr; justify-self: start; margin: -4px 0 -10px; }
#proof-careersurfer .row-line { grid-area: line; }
#proof-careersurfer .row-more { grid-area: more; justify-self: start; }
#proof-careersurfer .row-pic { display: block; margin-top: 20px; }

/* the numbers band: ruled above and below, no boxes; the first column on the headline's left edge */
.row > .nums { grid-area: band; margin: 0 0 24px; }
.nums-note { margin: 0 0 10px; font-size: 12px; line-height: 1.4; color: var(--soft); }
.nums-grid {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.num { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 0 18px 16px; }
.num:nth-child(odd) { padding: 18px 12px 18px 0; border-right: 1px solid var(--rule); }
.num:nth-child(n+3) { border-top: 1px solid var(--rule); }
.nfig { font-size: 30px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.nlab { font-size: 13px; line-height: 1.35; color: var(--soft); max-width: 11em; }

/* pictures and drawings */
.pic { position: relative; overflow: hidden; border-radius: 6px; background: var(--tile); border: 1px solid var(--rule); }
.pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pic picture { display: contents; }
.pic-svg { display: block; width: 100%; height: 100%; }
.pic-draw .pic-svg { position: absolute; inset: 0; }
.row-pic .pic { aspect-ratio: 16 / 10; }
.row-pic .pic-draw { height: auto; }
@media (max-width: 699px) {
  .pic.has-phone { aspect-ratio: var(--ar-phone); }
}
/* the one quiet loop: a radar sweep, only while visible, only with motion allowed (site.js adds .is-live) */
.radar .sweep { transform-box: fill-box; transform-origin: 0% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .is-live .radar .sweep { animation: sweep 5s linear infinite; }
}
@keyframes sweep { to { transform: rotate(-360deg); } }

.also { margin-top: 28px; }
.also ul { margin-top: 8px; padding: 0; list-style: none; }
.also li { font-size: 15px; line-height: 1.5; color: var(--soft); padding: 4px 0; max-width: 72ch; }
.also li a, .also li strong { color: var(--ink); font-weight: 600; }

/* ---------- below the work ---------- */
.about, .writing { margin-top: 56px; }
.sec-h { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.about p, .sec-intro, .p-sec p { margin-top: 10px; font-size: 16px; line-height: 25px; color: var(--ink); max-width: 62ch; }
.sec-intro { color: var(--soft); }
.arts { margin-top: 14px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.arts li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.arts a { font-size: 16px; line-height: 1.4; padding: 4px 0; }
.date { flex: none; font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.arts-more { margin-top: 12px; }
.arts-more a { display: inline-block; padding: 10px 0; font-size: 15px; font-weight: 600; }
body:has(#writing-all:target) .back-d { display: inline-flex !important; }
body:has(#writing-all:target) .back-b { display: none; }

.foot { margin-top: 72px; border-top: 1px solid var(--rule); padding: 28px 0 44px; }
.foot-name { font-size: 15px; font-weight: 600; }
.foot-links { margin-top: 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { font-size: 15px; display: inline-block; padding: 10px 0; }
.foot-links .quiet a { color: var(--soft); text-decoration-color: rgba(167, 176, 181, .45); }

/* ---------- project pages: headings, a thin rule and even gaps; no panels ---------- */
.back { padding-top: 12px; }
.back a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.back-d { display: none !important; }
.back-d:target { display: inline-flex !important; }
.back-d:target + .back-b { display: none; }
.p-head { margin-top: 8px; }
.p-head .name { margin-top: 0; }
.p-title { margin-top: 14px; font-size: 36px; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.p-head .row-meta { margin-top: 12px; }
.lead { margin-top: 16px; font-size: 16px; line-height: 25px; color: var(--ink); max-width: 62ch; }
.lead2 { margin-top: 12px; }
.pic-hero { margin-top: 28px; aspect-ratio: 16 / 10; }
.p-sec { margin-top: 32px; }
.p-sec::before { content: ""; display: block; height: 1px; background: var(--rule); margin-bottom: 28px; }
.figs { margin-top: 16px; display: grid; gap: 28px; }
.fig .pic { aspect-ratio: 16 / 10; }
.fig.tall .pic { aspect-ratio: 390 / 600; max-width: 320px; }
.fig.art img { object-position: center; }
.fig a { text-decoration: none; }
.fig figcaption a { text-decoration: underline; color: var(--soft); }
figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--soft); max-width: 62ch; }
.ticks { margin-top: 12px; padding-left: 20px; }
.ticks li { font-size: 16px; line-height: 25px; margin: 6px 0; max-width: 62ch; }
.ticks li::marker { color: var(--soft); }
.checks { margin-top: 12px; display: grid; gap: 14px; }
.checks dt { font-size: 15px; font-weight: 600; }
.checks dd { margin: 2px 0 0; font-size: 16px; line-height: 25px; color: var(--soft); max-width: 62ch; }
.prof { margin-top: 20px; border-collapse: collapse; width: 100%; max-width: 560px; font-size: 15px; }
.prof caption { text-align: left; font-size: 12px; color: var(--soft); padding-bottom: 6px; }
.prof th, .prof td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.prof thead th { font-size: 12px; color: var(--soft); font-weight: 600; }
/* Problem / What I did / Impact: three headed parts on thin rules (was three rounded panels) */
.pdi { margin-top: 16px; display: grid; gap: 28px; }
.pdi-b { border-top: 1px solid var(--rule); padding-top: 16px; }
.pdi-b p { margin-top: 8px; }
.impact { margin-top: 10px; padding: 0; list-style: none; display: grid; gap: 12px; }
.impact .big { font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.impact .small { font-size: 16px; color: var(--soft); }
/* How CareerSurfer works: the five steps as a plain numbered list, one line each (was five rounded boxes) */
.steps { margin-top: 28px; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--rule); max-width: 760px; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); column-gap: 10px;
  align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; color: var(--soft);
}
.steps li::before { content: counter(step); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--soft); }
.step-k { color: var(--ink); font-weight: 600; }
.cap { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--soft); max-width: 62ch; }
.numlist { margin-top: 16px; border-top: 1px solid var(--rule); }
.numlist div { display: grid; grid-template-columns: 6.5em 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.numlist dt { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.numlist dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); max-width: 56ch; }
.p-sec p.fine { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.nf { padding-top: 48px; min-height: 60vh; }

/* "Tap to grow": cross-document view transitions, only where supported and only with motion allowed.
   Words swap at once (no fade, no movement); only the picture grows from its row into the page, and back. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  ::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  /* v2.3: only a title or picture found on both pages flies; one found on one page only swaps at once, like the words */
  ::view-transition-old(*):only-child { animation: none; opacity: 0; }
  ::view-transition-new(*):only-child { animation: none; }
}
/* v2.3: the named title boxes hug their words, so a row's title scales cleanly into the page title and back */
.row-link { display: inline-block; }
.p-title { width: fit-content; max-width: 100%; }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .wrap { padding: 0 40px; }
  .hero { padding-top: 56px; }
  .name { margin-top: 28px; }
  .headline { margin-top: 24px; font-size: 60px; }
  .home:has(#proof-defense:first-child) .headline { font-size: 50px; max-width: 18em; }
  .trust { font-size: 16px; line-height: 25px; }
  .cta { gap: 10px; }
  .hero .cta { display: flex; }
  .btn { min-height: 46px; font-size: 15px; padding: 0 26px; }
  .work { margin-top: 38px; }
  .row { grid-template-columns: minmax(0, 1fr) var(--pic-w, 240px); grid-template-areas: "text pic"; column-gap: 40px; padding: 28px 0; }
  .row-pic { display: block; }
  .row-name { font-size: 24px; }
  .rows > li:first-child .row-name, #proof-careersurfer .row-name { font-size: 36px; }
  .row-line { font-size: 16px; }
  #proof-careersurfer {
    grid-template-columns: auto auto minmax(0, 1fr) calc(var(--pic-w, 240px) + 40px);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "band band band band" "name chip addr addr" "line line line pic" "more more more pic" "rest rest rest pic";
    column-gap: 0;
  }
  #proof-careersurfer .chip { justify-self: start; margin-left: 14px; }
  #proof-careersurfer .addr { justify-self: end; align-self: center; margin: 0 0 0 24px; }
  #proof-careersurfer .row-pic { margin: 4px 0 0 40px; }
  .row > .nums { margin-bottom: 28px; }
  .nums-grid { grid-template-columns: repeat(4, 1fr); padding: 26px 0; }
  .num:nth-child(n) { padding: 0 24px; border-right: 0; border-top: 0; }
  .nlab { max-width: none; }
  .num + .num { border-left: 1px solid var(--rule); }
  .num:first-child { padding-left: 0; }
  .nfig { font-size: 42px; }
  .about p, .p-sec p { font-size: 17px; line-height: 27px; }
  .sec-h { font-size: 24px; }
  .p-title { font-size: 52px; }
  .figs { grid-template-columns: 1fr 1fr; }
  .fig.tall { grid-row: span 2; }
  .pdi { grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; }
  .numlist div { grid-template-columns: 8em 1fr; }
  .numlist dt { font-size: 24px; }
  .numlist dd { font-size: 16px; }
}
@media (min-width: 1000px) {
  .row { --pic-w: 300px; }
  #proof-careersurfer { --pic-w: 400px; }
  .headline { font-size: 76px; }
  .home:has(#proof-defense:first-child) .headline { font-size: 62px; }
  .p-title { font-size: 60px; }
}

/* ---------- v2.3 motion: enhancement only (site.js adds the classes). Reduced motion: none of it moves. ---------- */
/* 1) the count-up: the real figure stays in place, transparent while counting; an aria-hidden copy counts on top */
.nfig.cu { position: relative; color: transparent; }
.cu-n { position: absolute; left: 0; top: 0; color: var(--ink); white-space: nowrap; }
/* 2) the path: a thin line through the five steps, a small green dot at its tip, each step brightening as it passes */
.steps { position: relative; }
.pd-svg { position: absolute; left: 0; top: 0; width: 40px; height: 100%; overflow: visible; pointer-events: none; }
.pd-line { fill: none; stroke: #a7b0b5; stroke-width: 1.5; }
.flowthumb .pd-line { stroke-width: 2; }
.pd-dot { fill: #94c9b0; opacity: 0; }
.pd-go .pd-dot { opacity: 1; }
.steps.pd-armed li:not(.lit) .step-k { color: var(--soft); }
.flowthumb.pd-armed .st:not(.lit) { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .pd-dot { transition: opacity .3s ease-out; }
  .pd-go .pd-dot { transition: none; }
  .steps .step-k { transition: color .2s ease-out; }
  .flowthumb .st { transition: opacity .2s ease-out; }
}
/* 4) pointer polish, mouse and trackpad only (touch keeps the native press): the row's rule brightens and its
   arrow moves 4 px on hover and keyboard focus; buttons show a pressed state */
.row-more .arr { display: inline-block; }
@media (hover: hover) and (pointer: fine) {
  .row:hover { border-bottom-color: #6b757a; }
  .row:has(:focus-visible) { border-bottom-color: #6b757a; }
  .btn:active { background: rgba(241, 240, 233, .12); }
  .cta .btn:first-child:active, .btn.primary:active { background: #d9d8d0; border-color: #d9d8d0; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .row { transition: border-color .2s ease-out; }
  .row-more .arr { transition: transform .2s ease-out; }
  .row:hover .arr { transform: translateX(4px); }
  .row:has(:focus-visible) .arr { transform: translateX(4px); }
  .btn { transition: background-color .15s ease-out, transform .1s ease-out; }
  .btn:active { transform: translateY(1px); }
}
/* print: the final figures and steps, never a count or a path mid-way */
@media print {
  .nfig.cu { color: var(--ink); }
  .cu-n, .pd-dot { display: none; }
  .steps.pd-armed li:not(.lit) .step-k { color: var(--ink); }
  .flowthumb.pd-armed .st:not(.lit) { opacity: 1; }
}
