/* Continuum: a single line of work, with a gate across it.
   Ground = drafting concrete, ink = near-black blue, cobalt = verified work, amber = the gate, red = failure only. */
@font-face { font-family: "Bricolage"; src: url("/static/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/static/fonts/jbmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/static/fonts/jbmono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ground: #DDE2E5;
  --sheet: #F8F9F7;
  --ink: #0E1620;
  --graphite: #4F5B66;
  --line: rgba(14, 22, 32, .18);
  --cobalt: #2336FF;
  --cobalt-soft: #E3E6FF;
  --amber: #FFB000;
  --amber-soft: #FFF1CC;
  --red: #D8261F;
  --red-soft: #FDE4E2;
  --radius: 4px;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --mono: "JB Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--display); font-size: 1.0625rem; line-height: 1.5; font-variation-settings: "wdth" 96;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .8rem; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--graphite); } .faint { color: var(--graphite); } .small { font-size: .85rem; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 3rem); }
.brand { display: flex; align-items: center; gap: .65rem; }
.mark { width: 26px; height: 26px; background: var(--ink); }
.mark path { stroke: #fff; stroke-width: 3; fill: none; }
.mark rect { fill: var(--amber); }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; font-variation-settings: "wdth" 80; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; }
.pill i { width: .5rem; height: .5rem; border-radius: 50%; background: #9aa4ad; }
.pill.on i { background: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.pill.warn { background: var(--amber-soft); border-color: var(--amber); }

main { padding: 0 clamp(1rem, 4vw, 3rem) 4rem; }

/* ---------- controls ---------- */
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .4; }
.primary { background: var(--cobalt); color: #fff; font-weight: 700; padding: .7rem 1.3rem; border-radius: var(--radius); letter-spacing: -.005em; transition: transform .12s, background .12s; }
.primary:hover:not(:disabled) { background: #1425d6; transform: translateY(-1px); }
.primary.big { font-size: 1.15rem; padding: .85rem 1.6rem; }
.gate-btn { background: var(--ink); color: var(--amber); font-weight: 700; font-size: 1.1rem; padding: .85rem 1.6rem; border-radius: var(--radius); }
.gate-btn:hover:not(:disabled) { background: #1c2a3a; }
.ghost { display: inline-block; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: .45rem .85rem; font-size: .92rem; font-weight: 600; cursor: pointer; background: transparent; }
.ghost:hover { background: var(--ink); color: #fff; }
.link { font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); text-align: left; padding: 0; }
.link:hover { color: var(--cobalt); }
.link.faint { color: var(--graphite); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.error { color: var(--red); font-weight: 600; font-size: .95rem; }
.error-box { background: var(--red-soft); border-left: 5px solid var(--red); padding: .9rem 1.1rem; font-weight: 500; }

label { display: block; font-weight: 700; font-size: .98rem; margin: 1.1rem 0 .35rem; }
label:first-child { margin-top: 0; }
label .opt { font-weight: 400; color: var(--graphite); font-size: .85rem; margin-left: .4rem; }
input[type=text], textarea {
  width: 100%; background: #fff; border: 1.5px solid rgba(14, 22, 32, .35); border-radius: var(--radius); padding: .7rem .85rem; line-height: 1.45;
}
input[type=text]:focus, textarea:focus { border-color: var(--cobalt); outline: 3px solid var(--cobalt-soft); outline-offset: 0; }
textarea { resize: vertical; }
.sheet { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 14px; padding: clamp(1.1rem, 2.5vw, 1.7rem); }

/* ---------- start ---------- */
.start { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; padding-top: clamp(1rem, 5vw, 4rem); max-width: 1280px; margin: 0 auto; }
.display { text-wrap: balance; font-size: clamp(2.8rem, 7.2vw, 6rem); line-height: .93; letter-spacing: -.045em; font-weight: 800; font-variation-settings: "wdth" 75; }
.lede { margin-top: 1.6rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 34rem; line-height: 1.45; }
.promises { margin-top: 1.8rem; display: grid; gap: .6rem; max-width: 34rem; color: var(--graphite); }
.promises li { padding-left: 1.3rem; position: relative; }
.promises li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--ink); }
.start-form { margin-top: .5rem; }
.start-form .primary { margin-top: 1.4rem; width: 100%; }

.hero-thread { display: block; width: min(100%, 520px); margin-top: 2.2rem; overflow: visible; }
.hero-thread .ht-line { stroke: var(--ink); stroke-width: 3; fill: none; stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 1.5s .2s cubic-bezier(.6, 0, .2, 1) forwards; }
.hero-thread circle { fill: var(--ground); stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .35s ease-out forwards; }
.hero-thread .n1 circle { animation-delay: .5s; } .hero-thread .n2 circle { animation-delay: .95s; } .hero-thread .n3 circle { animation-delay: 1.9s; }
.hero-thread .gl, .hero-thread .gr { fill: var(--amber); stroke: var(--ink); stroke-width: 2.5; }
.hero-thread .gl { transform: translateX(-60px); opacity: 0; animation: gate-l 1s 1.3s cubic-bezier(.7, 0, .2, 1) forwards; }
.hero-thread .gr { transform: translateX(60px); opacity: 0; animation: gate-r 1s 1.3s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes gate-l { to { transform: translateX(0); opacity: 1; } }
@keyframes gate-r { to { transform: translateX(0); opacity: 1; } }

/* ---------- app layout ---------- */
.app { display: grid; gap: clamp(1.2rem, 2.5vw, 2.4rem); grid-template-columns: minmax(250px, 22rem) minmax(0, 1fr) minmax(230px, 19rem); max-width: 1500px; margin: 0 auto; padding-top: 1rem; align-items: start; }
.thread-col, .dossier { position: sticky; top: 1rem; }

/* ---------- the thread ---------- */
.thread-head { margin-bottom: 1.4rem; display: grid; gap: .4rem; }
.project { font-size: 1.7rem; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; word-break: break-word; font-variation-settings: "wdth" 80; }
.thread { position: relative; }
.step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .8rem; padding-bottom: 0; }
.step .rail { position: relative; display: flex; flex-direction: column; align-items: center; }
.step .node { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); background: var(--ground); flex: none; display: grid; place-items: center; font-size: .7rem; font-weight: 800; line-height: 1; }
.step .rail::after { content: ""; flex: 1; width: 3px; background: var(--ink); margin-top: 2px; min-height: 18px; }
.step:last-child .rail::after { background: repeating-linear-gradient(var(--ink) 0 4px, transparent 4px 9px); }
.step .body { padding: .05rem 0 1.3rem; min-width: 0; }
.step .title { font-weight: 700; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.01em; }
.step .meta { font-size: .86rem; color: var(--graphite); margin-top: .2rem; }
.step.done .node { background: var(--ink); color: #fff; }
.step.current .node { border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 5px var(--cobalt-soft); }
.step.current .title { color: var(--cobalt); }
.step.blocked .node { border-color: var(--red); background: var(--red); color: #fff; }
.step.replaced { opacity: .45; } .step.replaced .title { text-decoration: line-through; }
.step.pending .title { color: var(--graphite); }
.step.running .node { animation: breathe 1.2s ease-in-out infinite; border-color: var(--cobalt); }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px var(--cobalt-soft); } }

/* the gate across the thread */
.gate-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .8rem; }
.gate-row .rail { position: relative; height: 34px; }
.gate-row .rail::before { content: ""; position: absolute; left: 50%; margin-left: -1.5px; top: 0; bottom: 0; width: 3px; background: var(--ink); }
.gatebar { position: absolute; left: 50%; margin-left: -32px; top: 6px; width: 64px; height: 22px; }
.gatebar i { position: absolute; top: 0; height: 100%; width: 50%; background: repeating-linear-gradient(135deg, var(--amber) 0 6px, #ffd05c 6px 12px); border: 2px solid var(--ink); }
.gatebar i:first-child { left: 0; } .gatebar i:last-child { right: 0; }
.gate-row.open .gatebar i { opacity: 0; }
.gate-row.open .gatebar i:first-child { transform: translateX(-130%); }
.gate-row.open .gatebar i:last-child { transform: translateX(130%); }
.gate-row.opening .gatebar i:first-child { animation: gl-open .9s cubic-bezier(.7, 0, .2, 1) forwards; }
.gate-row.opening .gatebar i:last-child { animation: gr-open .9s cubic-bezier(.7, 0, .2, 1) forwards; }
.gate-row.closed.slam .gatebar i:first-child { animation: gl-close .5s cubic-bezier(.5, 0, .3, 1.4); }
.gate-row.closed.slam .gatebar i:last-child { animation: gr-close .5s cubic-bezier(.5, 0, .3, 1.4); }
.gate-row.shake .gatebar { animation: shake .45s; }
.gate-row .gate-note { font-size: .82rem; font-weight: 700; background: var(--amber); padding: 0 .45rem; align-self: center; width: fit-content; border: 2px solid var(--ink); }
@keyframes gl-open { from { transform: none; opacity: 1; } to { transform: translateX(-130%); opacity: 0; } }
@keyframes gr-open { from { transform: none; opacity: 1; } to { transform: translateX(130%); opacity: 0; } }
@keyframes gl-close { from { transform: translateX(-130%); } to { transform: none; } }
@keyframes gr-close { from { transform: translateX(130%); } to { transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.revisions { margin-top: 1rem; border-left: 5px solid var(--amber); padding-left: .9rem; display: grid; gap: .7rem; font-size: .9rem; }
.revisions b { display: block; }
.thread-col .link.faint { margin-top: 1.4rem; display: inline-block; }

/* ---------- stage ---------- */
.stage { min-width: 0; display: grid; gap: 1.5rem; outline: none; }
.headline h2 { text-wrap: balance; font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: .98; letter-spacing: -.04em; font-weight: 800; font-variation-settings: "wdth" 78; max-width: 20ch; }
.headline p { margin-top: .9rem; font-size: 1.12rem; max-width: 40rem; }
.headline p b { background: var(--amber); padding: 0 .3rem; }
.runbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.log { background: var(--ink); color: #c8d3dd; font-family: var(--mono); font-size: .8rem; line-height: 1.6; padding: .9rem 1.1rem; border-radius: var(--radius); max-height: 15rem; overflow-y: auto; }
.log div { white-space: pre-wrap; word-break: break-word; animation: logline .25s ease-out; }
.log .t { color: #6f7f8e; margin-right: .8rem; }
.log .tool { color: #7fb2ff; } .log .run { color: #6ee7a8; } .log .fail { color: #ff8a84; } .log .verify, .log .gate { color: var(--amber); } .log .error { color: #ff8a84; }
@keyframes logline { from { opacity: 0; transform: translateX(-6px); } }

/* ---------- evidence ---------- */
.ticket { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--radius); position: relative; overflow: hidden; }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1.5px solid var(--ink); }
.ticket-head h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.ticket-head .by { font-size: .85rem; color: var(--graphite); }
.stamp { font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; padding: .05rem .8rem; border: 3px solid currentColor; border-radius: 6px; transform: rotate(-4deg); transform-origin: center; animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) both; font-variation-settings: "wdth" 80; }
.stamp.verified { color: var(--cobalt); } .stamp.failed { color: var(--red); } .stamp.compiles { color: #b97800; } .stamp.unverified, .stamp.not_applicable { color: var(--graphite); }
@keyframes stamp { from { transform: rotate(-4deg) scale(2.2); opacity: 0; } }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > div { padding: 1.1rem 1.3rem; min-width: 0; }
.split .said { border-right: 1.5px dashed var(--ink); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(14, 22, 32, .04) 10px 20px); }
.split h4 { margin: 0 0 .5rem; font-size: .95rem; font-weight: 700; color: var(--graphite); }
.split .said blockquote { margin: 0; font-size: 1rem; white-space: pre-wrap; word-break: break-word; max-height: 12rem; overflow: auto; }
.split .headline-measured { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.liar { background: var(--red); color: #fff; padding: .7rem 1.3rem; font-weight: 700; font-size: 1.05rem; }
.ticket pre, .diffbox { margin: .8rem 0 0; background: var(--ink); color: #d6e0ea; font-family: var(--mono); font-size: .76rem; line-height: 1.55; padding: .8rem 1rem; border-radius: var(--radius); overflow: auto; max-height: 15rem; white-space: pre-wrap; word-break: break-word; }
.diffbox .add { color: #6ee7a8; } .diffbox .del { color: #ff8a84; } .diffbox .hdr { color: #8da0b3; }
.files { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.fchip { font-family: var(--mono); font-size: .76rem; background: var(--cobalt-soft); padding: .1rem .5rem; border-radius: 3px; }
details.more { border-top: 1.5px solid var(--line); padding: .7rem 1.3rem; }
details.more summary { cursor: pointer; font-weight: 600; font-size: .95rem; }

/* ---------- reflection / explanation ---------- */
.reflect { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1.4rem; max-width: 46rem; }
.reflect dt { font-weight: 700; color: var(--graphite); } .reflect dd { margin: 0; }
.explain { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.38; letter-spacing: -.012em; max-width: 42rem; border-left: 6px solid var(--ink); padding-left: 1.2rem; white-space: pre-wrap; }

/* ---------- the gate sheet ---------- */
.gate-sheet { background: var(--sheet); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.gate-sheet.fail { border-color: var(--red); }
.gate-top { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.4rem; background: repeating-linear-gradient(135deg, var(--amber) 0 12px, #ffc233 12px 24px); border-bottom: 2px solid var(--ink); }
.gate-sheet.fail .gate-top { background: repeating-linear-gradient(135deg, var(--red) 0 12px, #e5453f 12px 24px); color: #fff; border-color: var(--red); }
.gate-top h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.025em; font-variation-settings: "wdth" 80; }
.lock { width: 26px; height: 26px; flex: none; }
.lock path, .lock rect { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.gate-body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: 1.1rem; }
.strict { background: var(--amber-soft); border-left: 5px solid var(--amber); padding: .75rem 1rem; }
.q label { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.3; }
.q .kind { display: inline-block; margin-right: .5rem; font-size: .76rem; font-weight: 700; background: var(--ink); color: #fff; padding: .05rem .45rem; border-radius: 3px; vertical-align: .1em; }
.q .focus { font-family: var(--mono); font-size: .74rem; color: var(--graphite); margin-left: .4rem; }
.gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.path { counter-reset: p; display: grid; gap: .7rem; }
.path li { counter-increment: p; display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; }
.path li::before { content: counter(p); font-weight: 800; font-size: 1.2rem; color: var(--red); }

/* ---------- grade ---------- */
.grade { background: var(--sheet); border: 2px solid var(--ink); border-radius: 14px; padding: 1.3rem 1.4rem; display: grid; gap: .9rem; }
.grade.pass { border-color: var(--cobalt); } .grade.fail { border-color: var(--amber); }
.grade h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variation-settings: "wdth" 78; }
.grade.pass h3 { color: var(--cobalt); }
.meter { position: relative; height: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; overflow: visible; max-width: 28rem; }
.meter b { position: absolute; inset: 0 auto 0 0; background: var(--cobalt); border-radius: 999px 0 0 999px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.grade.fail .meter b { background: var(--amber); }
.meter u { position: absolute; top: -8px; bottom: -8px; width: 3px; background: var(--ink); text-decoration: none; }
.meter-label { font-size: .9rem; color: var(--graphite); }
.flags { display: flex; flex-wrap: wrap; gap: .5rem; }
.flag { background: var(--amber-soft); border: 1.5px solid var(--amber); border-radius: 999px; padding: .1rem .75rem; font-size: .88rem; font-weight: 600; }
.pips { display: inline-flex; gap: 3px; margin-right: .5rem; vertical-align: middle; }
.pips i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); } .pips i.on { background: var(--ink); }
.qres { font-size: .93rem; color: var(--graphite); }
.finale { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; letter-spacing: -.055em; line-height: .9; font-variation-settings: "wdth" 72; }

/* ---------- dossier ---------- */
.dossier { display: grid; gap: 1.1rem; }
.dossier-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.dossier h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.strictness { font-size: 2.6rem; font-weight: 800; letter-spacing: -.045em; line-height: .95; font-variation-settings: "wdth" 75; }
.strictness.strict { background: var(--amber); display: inline-block; padding: 0 .35rem; border: 2px solid var(--ink); }
#memory { display: grid; gap: 1.2rem; }
.dossier ul.sent { display: grid; gap: .35rem; margin-top: .55rem; font-size: .92rem; color: var(--graphite); }
.dossier h4 { margin: 0 0 .3rem; font-size: .9rem; font-weight: 700; color: var(--graphite); }
.weak span { border-bottom: 3px solid var(--red); margin-right: .7rem; font-weight: 700; display: inline-block; }
.good span { margin-right: .7rem; font-weight: 700; display: inline-block; } .good span::before { content: "\2713\00a0"; color: var(--cobalt); }
.none { color: var(--graphite); font-size: .92rem; }
.trace-title { margin-top: .6rem; font-size: .9rem; font-weight: 700; color: var(--graphite); }
.trace { font-family: var(--mono); font-size: .72rem; line-height: 1.7; color: var(--graphite); display: grid; }
.trace .bad { color: var(--red); }
.trace span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ---------- voice mic (outline icon button) ---------- */
/* the mic sits inside the top-right corner of the text box (the bottom-right is the resize grip) */
.field-mic { position: relative; }
.field-mic textarea { display: block; padding-right: 3.2rem; }
.field-mic .mic-btn { position: absolute; top: .5rem; right: .5rem; }
.mic-btn {
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  padding: 0;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #b4bec8;                 /* soft grey outline icon, like the reference */
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.mic-btn:hover:not(:disabled) { color: #fff; background: #1c2a3a; }
.mic-icon {
  width: 1.2rem; height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.mic-icon.stop { fill: currentColor; }
.mic-btn.rec { background: var(--red); border-color: var(--red); color: #fff; animation: mic-pulse 1.1s ease-in-out infinite; }
.mic-btn.busy { opacity: .7; cursor: wait; }
.mic-btn.busy .mic-icon { animation: mic-spin .8s linear infinite; }
@keyframes mic-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(216, 38, 31, .45); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(216, 38, 31, 0); }
}
@keyframes mic-spin { to { transform: rotate(360deg); } }
.q > label { display: block; }

/* ---------- logo as home link + resume banner ---------- */
a.brand { color: inherit; text-decoration: none; }
a.brand:hover .wordmark { color: var(--cobalt); }
.resume { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; background: var(--amber-soft); border-left: 5px solid var(--amber); padding: .8rem 1rem; margin-bottom: 1.6rem; max-width: 34rem; }

/* ---------- past projects ---------- */
.past { margin-bottom: 1.6rem; max-width: 34rem; }
.past h3 { font-size: .95rem; font-weight: 700; color: var(--graphite); margin-bottom: .5rem; }
.past ul { display: grid; gap: .5rem; }
.past li { display: flex; align-items: center; gap: .8rem; background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; }
.past .pname { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past .pmeta { font-size: .85rem; color: var(--graphite); white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .app { grid-template-columns: minmax(230px, 20rem) minmax(0, 1fr); }
  .dossier { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .dossier-head, .trace-title, .trace { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .start { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .thread-col { position: static; }
  .split { grid-template-columns: 1fr; } .split .said { border-right: 0; border-bottom: 1.5px dashed var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .hero-thread .ht-line { stroke-dashoffset: 0; } .hero-thread circle { transform: none; } .hero-thread .gl, .hero-thread .gr { transform: none; opacity: 1; }
}