/* mitch.kaminsen.com — one stylesheet for the whole site.
 *
 * Colors are tokens on :root and are redefined only for dark mode, so every
 * component below takes its color from a token and works in both themes.
 * The site follows the visitor's OS setting; there is no manual toggle.
 */
:root {
  --bg: #EDF0F3; --surface: #FFFFFF; --ink: #13202B; --muted: #5A6977; --line: #D4DAE1;
  --accent: #2C55F0; --accent-ink: #FFFFFF; --win: #F0AE2E; --win-soft: #FCEFD3;
  --ok: #1E8A5A; --bad: #C8392E;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --shadow: 0 1px 2px rgba(19, 32, 43, .06), 0 8px 24px rgba(19, 32, 43, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0E151C; --surface: #16202A; --ink: #E5EBF1; --muted: #93A2B1; --line: #283543;
    --accent: #7E9BFF; --accent-ink: #0E151C; --win: #F3B847; --win-soft: #3A2E14;
    --ok: #4CC28A; --bad: #F07067;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  padding-inline: 20px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wrap { max-width: 1040px; margin: 0 auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.05; }
code { font-family: var(--mono); font-size: .9em; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[hidden] { display: none !important; }

/* Shown only while content.js has `sample: true`. */
.sample {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--win-soft); color: var(--ink); padding: 6px 12px; text-align: center; margin-inline: -20px;
}

/* ─── Header ─────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  border-bottom: 1px solid var(--line); margin-inline: -20px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 800; font-size: 20px; background: none; border: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
/* The gold dot (v1.47.1). It used to pulse forever, which to a network
 * engineer reads as an amber status LED: provisioning, degraded. Now it
 * only moves when something happens: it drops into place beside the name
 * when the page loads, hops on hover or tap, and five quick taps get
 * a bigger bounce (app.js, an Android-version-screen nod). The one dot that
 * still pulses is next to "Updating", where "in transition" is true. */
.mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--win); display: inline-block; transform-origin: 50% 100%; }
.mark i.land { animation: land .75s cubic-bezier(.3, 1.4, .5, 1) .25s both; }
/* Taps use "tap", a copy of "hop": with the same name as the hover
 * animation, a click while hovering wouldn't restart it. */
.mark i.hop { animation: tap .5s cubic-bezier(.3, 1.5, .5, 1); }
.mark i.boing { animation: boing 1.3s cubic-bezier(.3, 1.2, .5, 1); }
@media (hover: hover) { .mark:hover i:not(.land):not(.hop):not(.boing) { animation: hop .5s cubic-bezier(.3, 1.5, .5, 1); } }
@keyframes land {
  0% { opacity: 0; transform: translateY(-18px) scale(.5); }
  55% { opacity: 1; transform: translateY(1px) scale(1.25, .7); }
  75% { transform: translateY(-3px) scale(.92, 1.1); }
  100% { transform: none; }
}
@keyframes hop {
  0% { transform: none; }
  25% { transform: scale(1.2, .75); }
  55% { transform: translateY(-9px) scale(.9, 1.15); }
  80% { transform: translateY(0) scale(1.15, .85); }
  100% { transform: none; }
}
@keyframes tap {
  0% { transform: none; }
  25% { transform: scale(1.2, .75); }
  55% { transform: translateY(-9px) scale(.9, 1.15); }
  80% { transform: translateY(0) scale(1.15, .85); }
  100% { transform: none; }
}
@keyframes boing {
  0% { transform: none; }
  10% { transform: scale(1.35, .6); }
  28% { transform: translateY(-26px) scale(.85, 1.2) rotate(180deg); }
  44% { transform: translateY(0) scale(1.4, .65) rotate(360deg); }
  58% { transform: translateY(-12px) scale(.95, 1.08) rotate(360deg); }
  70% { transform: translateY(0) scale(1.2, .8) rotate(360deg); }
  80% { transform: translateY(-4px) rotate(360deg); }
  90%, 100% { transform: rotate(360deg); }
}
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav button, nav a { background: none; text-decoration: none; line-height: inherit; border: 1px solid transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
nav button:hover, nav a:hover { color: var(--ink); }
nav .ext-arrow { font-size: 12px; margin-left: 2px; color: var(--accent); }
nav button[aria-current="page"] { color: var(--ink); border-color: var(--line); background: var(--surface); }
nav .lk { font-size: 11px; margin-left: 4px; }

main { padding-block: 40px 64px; }
.view { animation: enter .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes enter { from { transform: translateY(10px); opacity: .3; } }

footer { border-top: 1px solid var(--line); margin-inline: -20px; padding: 20px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ─── Shared ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 20px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; }
.head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--win-soft); }

/* ─── Home ───────────────────────────────────────────────────── */
.hero { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 800; letter-spacing: -.03em; }
.rotator { font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px); font-weight: 400; line-height: 1.25; max-width: 24ch; margin: 0; }
/* Line two is fixed (v1.49.1), so the rotating word never reflows the rest.
 * Line one needs room for the longest word, hence no 24ch cap when "then"
 * is used; the font size keeps it on one line down to a 320px phone. */
.rotator:has(.then) { max-width: none; }
.rotator .then { display: block; }
/* Below 375px the 22px minimum no longer fits line one with the longest
 * word, so the size follows the width instead (22px at 375, ~18px at 320). */
@media (max-width: 374px) { .rotator:has(.then) { font-size: calc((100vw - 40px) * .065); } }
.rotator .word { display: inline-block; color: var(--accent); font-weight: 600; border-bottom: 3px solid var(--win); transition: opacity .3s, transform .3s; }
.rotator .word.out { opacity: 0; transform: translateY(-8px); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.stat { background: var(--surface); padding: 20px; display: grid; gap: 4px; }
.stat b { font-family: var(--display); font-size: clamp(32px, 5vw, 48px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat small { font-size: .45em; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 14px; margin-top: 40px; margin-inline: -20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 40px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
/* .live: app.js has taken over (draggable, see setupTicker). The CSS
 * animation above stays only as the no-script fallback. pan-y leaves vertical
 * page scrolling to the browser on phones. */
.marquee.live { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.live.grabbing { cursor: grabbing; }
.marquee.live .track { animation: none; will-change: transform; }
.track span { font-family: var(--display); font-size: 22px; white-space: nowrap; color: var(--muted); }
.track span::before { content: "✦"; color: var(--win); margin-right: 40px; }
@keyframes slide { to { transform: translateX(-50%); } }

.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.teaser { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; align-content: start; transition: border-color .2s, transform .2s; }
.teaser:hover { border-color: var(--accent); transform: translateY(-3px); }
.teaser h3 { font-size: 22px; }
.teaser p { margin: 0; color: var(--muted); font-size: 15px; }
.teaser .go { color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 760px) { .teasers { grid-template-columns: 1fr; } }

/* ─── Home: featured case study ──────────────────────────────── */
.feature { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 22px; }
.feat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ext { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ext:hover { text-decoration: underline; }
.pull { margin: 0; display: grid; gap: 12px; position: relative; padding-left: clamp(34px, 5vw, 56px); }
.pull::before { content: "\201C"; position: absolute; left: 0; top: -.18em; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 9vw, 96px); line-height: 1; color: var(--win); }
.pull p { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.8vw, 30px); line-height: 1.25; letter-spacing: -.01em; max-width: 34ch; text-wrap: balance; }
.pull footer { color: var(--muted); font-size: 14px; }
.pull cite { font-style: normal; color: var(--ink); }
.feat-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feat-stats div { background: var(--bg); padding: 16px 18px; display: grid; gap: 2px; }
.feat-stats b { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.01em; }
.feat-stats span { color: var(--muted); font-size: 14px; }
.feature .fine { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .feat-stats { grid-template-columns: 1fr; } }

/* ─── Home: references ───────────────────────────────────────── */
.refs { margin-top: 48px; display: grid; gap: 8px; }
.refs h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.refgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ref { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 16px; align-content: start; }
.ref blockquote { margin: 0; }
.ref blockquote p { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.35; font-weight: 400; text-wrap: pretty; }
.ref blockquote p::before { content: "\201C"; color: var(--win); font-weight: 800; margin-right: 2px; }
.ref blockquote p::after { content: "\201D"; color: var(--win); font-weight: 800; margin-left: 1px; }
.ref figcaption { display: flex; gap: 12px; align-items: center; }
.mono { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .04em; position: relative; }
.mono::after { content: ""; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--win); border: 2px solid var(--surface); }
.ref .who { display: grid; gap: 1px; font-size: 14px; }
.ref .who b { font-size: 15px; }
.ref .dim { color: var(--muted); font-size: 13px; }
.ref details { border-top: 1px solid var(--line); padding-top: 12px; }
.ref summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; list-style: none; }
.ref summary::-webkit-details-marker { display: none; }
.ref summary::after { content: " +"; }
.ref details[open] summary::after { content: " \2212"; }
.ref details p { margin: 10px 0 0; color: var(--ink); font-size: 15px; max-width: 62ch; }

/* ─── Wins ───────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { box-shadow: var(--shadow); }
.card h3 { font-family: var(--body); font-size: 18px; font-weight: 600; line-height: 1.3; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .open { color: var(--accent); font-size: 14px; font-weight: 600; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.src { background: none; border: 1px solid var(--accent); color: var(--accent); }
.srclink { justify-self: start; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.srclink:hover { border-color: var(--accent); }
.card.hide { display: none; }
.metric { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric small { font-size: 20px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.metric.badge { font-size: 30px; color: var(--accent); }

.scrim { position: fixed; inset: 0; background: rgba(10, 16, 22, .45); z-index: 20; display: flex; justify-content: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(520px, 100%); height: 100%; background: var(--surface); overflow: auto; padding: calc(28px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 20px; align-content: start; animation: slidein .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer .x { justify-self: end; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.drawer h3 { font-size: 32px; font-weight: 800; }
.star { display: grid; gap: 16px; }
.star div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.star em { font-style: normal; font-family: var(--mono); font-weight: 600; font-size: 13px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); }
.star p { margin: 0; }
.star b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.nextrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ─── Story ──────────────────────────────────────────────────── */
/* The stops share the width (no scrolling), and the line and dots are
 * drawn inside the strip. Earlier the dots hung 7px below a scrolling strip,
 * so the enlarged first dot was clipped on the left and bottom, and the
 * strip scrolled both ways. The selected dot grows to ~16px; left: 2px and
 * bottom: 2px leave room for that. Dot center (bottom 2px + 6px) sits on
 * the line's center (bottom 7px + 1px). */
.timeline { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 2px; background: var(--line); }
.stop { min-width: 0; background: none; border: 0; text-align: left; padding: 0 0 26px; position: relative; display: grid; gap: 4px; align-content: start; }
.stop::after { content: ""; position: absolute; left: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); transition: all .2s; }
.stop[aria-selected="true"]::after { background: var(--win); border-color: var(--win); transform: scale(1.3); }
.stop .yr { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stop .rl { font-weight: 600; }
.stop[aria-selected="true"] .rl { color: var(--accent); }
/* Phones: a vertical line. Seven stops sharing 350px left each about 45px,
 * narrower than "Principal", and the labels ran into each other (v1.45).
 * One row per stop instead: dot on the line, year, role. Dot center (left
 * 2px + 6px) sits on the line's center (left 7px + 1px), as above. */
@media (max-width: 700px) {
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .timeline::before { left: 7px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .stop { grid-template-columns: 68px 1fr; align-items: baseline; gap: 8px; padding: 8px 0 8px 30px; }
  .stop::after { top: 50%; bottom: auto; transform: translateY(-50%); }
  .stop[aria-selected="true"]::after { transform: translateY(-50%) scale(1.3); }
}
.chapter { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.chapter h3 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.chapter p { margin: 0 0 12px; max-width: 62ch; }
.aside { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 12px; }
.aside ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; } }
.offclock { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.offclock div { border-top: 2px solid var(--ink); padding-top: 12px; }
.offclock h4 { margin: 0 0 4px; font-size: 20px; }
.offclock p { margin: 0; color: var(--muted); font-size: 15px; }

/* ─── Vault ──────────────────────────────────────────────────── */
.lockbox { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; text-align: center; }
.lockbox.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.lockbox h3 { font-size: 28px; font-weight: 800; }
.lockbox .sub { margin: 6px 0 0; color: var(--muted); }
/* Opening: the shackle lifts and swings on its right leg, like a real
 * padlock. transform-box: fill-box makes the origin the shackle's own
 * bottom-right corner; without it, SVG measures percentages against the
 * whole drawing and the pivot lands far below the lock, which swung the
 * shackle off the top and detached its left leg. The legs run down
 * behind the body (to y=52) so the right leg still looks seated when
 * lifted. The open shackle rises about 13px above the drawing, hence
 * overflow: visible; the lockbox's 28px padding leaves room for it. */
.lock { width: 84px; height: 96px; overflow: visible; }
.lock .shackle { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 100% 100%; stroke: var(--ink); }
.lockbox.open .lock .shackle { transform: translateY(-10px) rotate(18deg); }
.lock rect { fill: var(--ink); }
.lock circle { fill: var(--win); }
.vaultbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; width: 100%; }
.codeform { display: flex; gap: 8px; width: 100%; max-width: 340px; }
.codeform input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.msg { font-size: 14px; min-height: 1.5em; margin: 0; }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
/* ─── Contact (v1.47) ───────────────────────────────────────────
 * One column that reads like a note to the card holder: greeting, the ways
 * to reach Mitch (the main content), the résumé as one quieter row, then
 * "keep exploring" and the device lock as a footnote. Left-aligned, unlike
 * the centred unlock box it replaced. */
.invite { max-width: 640px; display: grid; gap: 28px; }
.invite-head { display: grid; gap: 14px; justify-items: start; }
.invite-head h2 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; }
.invite-head .lede { margin: 0; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 46ch; }
.invite-body { display: grid; gap: 12px; }
.retryrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mkbadge { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; position: relative; }
.mkbadge::after { content: ""; position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--win); border: 3px solid var(--bg); }

/* Ways to reach me: shown only to cards that share contact details. Each
 * row: icon, name and value, then the action in words plus Copy. Below
 * 560px the actions drop under the value so the address gets the width. */
.reach { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reach li, .resrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); animation: enter .45s cubic-bezier(.2, .7, .2, 1) both; }
.reach li:nth-child(2) { animation-delay: .06s; } .reach li:nth-child(3) { animation-delay: .12s; } .reach li:nth-child(n+4) { animation-delay: .18s; }
.reach li.best { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 1px 0 var(--line), 0 10px 28px -18px var(--accent); }
.ico-tile { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--accent); }
.ico { width: 20px; height: 20px; }
.who { display: grid; min-width: 0; gap: 2px; }
.who b { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who .sub { font-size: 14px; color: var(--muted); }
.besttag { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--win-soft); border-radius: 999px; padding: 2px 8px; }
.val { font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.acts { display: flex; align-items: center; gap: 8px; }
.act { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; background: var(--bg); color: var(--ink); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.act:hover { transform: translateY(-1px); border-color: var(--accent); }
.reach li.best .act { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mini { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; min-width: 74px; }
.mini:hover { border-color: var(--accent); }
/* The résumé: the same solid card as a contact row, secondary only by
 * coming last, with a little space above. v1.47 gave it a dashed outline on
 * the page background, which read as disabled (v1.47.3). The whole row is
 * the link. */
.resrow { margin-top: 8px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.resrow:hover { border-color: var(--accent); }
.resrow .act { pointer-events: none; }
.resnote { color: var(--muted); }
@media (max-width: 560px) {
  .reach li { grid-template-columns: auto minmax(0, 1fr); row-gap: 12px; }
  .reach li .acts { grid-column: 1 / -1; }
  .reach li .act { flex: 1; justify-content: center; }
  .reach li .acts:not(:has(.act)) .mini { flex: 1; }
}
/* Keep exploring (v1.54): four cards under the note, two by two: Wins,
 * Story, and two that open the home page at the F5 case study and the
 * references, which card holders (who land here) otherwise rarely saw. */
.contact { position: relative; }
.explore { display: grid; gap: 0; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.explore .teasers { margin-top: 14px; }
.teasers.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .teasers.two { grid-template-columns: 1fr; } }
.feature, .refs { scroll-margin-top: 84px; }
/* Sign out (ends this browser's unlock), out of the way in the top corner:
 * a small solid pill (never a greyed-out look, v1.47.3), the days in its
 * tooltip. */
.lockpill { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px/1 var(--body);
  cursor: pointer; transition: border-color .15s, transform .15s; }
.lockpill .ico { width: 15px; height: 15px; color: var(--accent); }
.lockpill:hover { border-color: var(--accent); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .lockpill { transition: none; } .lockpill:hover { transform: none; } }
.fine.logged { margin: 28px 0 0; color: var(--muted); font-size: 13px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Hidden page (MK Vault switch): name and greeting only, set a little
 * lower so the page doesn't look empty-on-purpose. */
.hiddenpage { min-height: 52vh; align-content: center; gap: 20px; }
.hiddenpage .greeting { font-family: var(--display); font-size: clamp(20px, 2.8vw, 28px); line-height: 1.35; max-width: 32ch; margin: 0; color: var(--muted); text-wrap: balance; }
.hiddenpage .quietnote { margin: 0; }
.updating { display: inline-flex; align-items: center; gap: 10px; }
.updating i { width: 8px; height: 8px; border-radius: 50%; background: var(--win); animation: pulse 2.4s ease-in-out infinite; }
/* The only infinite pulse left: "Updating" really is a transitional state.
 * (Until v1.47.1 a second @keyframes pulse higher up was silently
 * overridden by this one.) */
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

/* Locked home: a quiet line under the tagline opens the unlock panel. Easy
 * to find, but the page is about Mitch, not the lock. */
.quiet { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--muted); text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color .15s, text-decoration-color .15s; }
.quiet:hover, .quiet:focus-visible { color: var(--ink); text-decoration-color: var(--accent); }
.quiet span { color: var(--accent); }
.quietnote { margin: -16px 0 0; font-size: 14px; color: var(--ok); }
.quietnote:empty { display: none; }

/* Unlock panel: a <dialog>. Centered card on desktop; on phones it rises
 * from the bottom like a native sheet, thumb-reachable.
 *
 * Height is fit-content, and must stay that: a modal dialog is pinned top
 * and bottom (inset-block: 0), so height: auto stretches it to the full
 * screen (v1.30 on desktop). iOS Safari stretched it too in v1.29, and the
 * grid spread its rows to fill the space, turning Close into a tall pill;
 * align-content: start keeps rows packed if a browser stretches it anyway. */
dialog.sheet { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); padding: 22px 18px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
dialog.sheet[open] { display: grid; align-content: start; gap: 4px; animation: sheetin .28s cubic-bezier(.2, .7, .2, 1); }
dialog.sheet { transition: transform .26s cubic-bezier(.2, .7, .2, 1); }
dialog.sheet.dragging { transition: none; }
dialog.sheet::backdrop { background: rgba(10, 16, 22, .45); backdrop-filter: blur(3px); }
@keyframes sheetin { from { transform: translateY(14px) scale(.98); opacity: 0; } }
/* Close: a round × in the corner, out of the grid flow so it can't stretch.
 * 36px circle inside a 44px tap area. */
.sheet .x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.sheet .x::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); transition: border-color .15s; }
.sheet .x svg { position: relative; width: 14px; height: 14px; }
.sheet .x:hover, .sheet .x:focus-visible { color: var(--ink); }
.sheet .x:hover::before, .sheet .x:focus-visible::before { border-color: var(--accent); }
.sheet .grab { display: none; }
.sheet .lockbox { border: 0; background: none; padding: 8px 10px 4px; }
.sheet .lockbox h3 { font-size: 24px; }
.sheet .sub { text-wrap: balance; }
.sheet .lock { width: 64px; height: 73px; }
.sheetfoot { display: grid; gap: 6px; text-align: center; padding: 0 12px; }
.sheetfoot .fine { margin: 0; color: var(--muted); font-size: 13px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike span { text-decoration: none; }
/* Request-a-card face of the panel */
.reqform { display: grid; gap: 12px; width: 100%; text-align: left; }
.reqform > div { text-align: center; }
.reqform label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.reqform input, .reqform textarea { font: 16px/1.4 var(--body); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; min-width: 0; }
.reqform .btn { justify-self: stretch; justify-content: center; }
.reqform .linklike { justify-self: center; font-size: 14px; }
.reqform .msg { text-align: center; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) {
  dialog.sheet { width: 100%; max-width: 100%; max-height: 92dvh; inset: auto 0 0 0; margin: 0; border-radius: 22px 22px 0 0; border-bottom: 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  /* The grab bar says "sheet" at a glance; decorative only. */
  .sheet .grab { display: block; justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
  .sheet .x { top: 8px; right: 8px; }
  @keyframes sheetin { from { transform: translateY(40%); opacity: .4; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Review mode (content.js review: true) ──────────────────────
 * Marks everything that didn't come from Mitch's materials: U("…") text as
 * hatched pink with a dashed underline, whole unverified items with a dashed
 * outline and an UNVERIFIED tag. Turning review off leaves the text and
 * removes every mark. Pink is outside the site palette on purpose, so it
 * can't be mistaken for design. */
:root { --uv: #C2187A; --uv-hatch: rgba(214, 51, 132, .16); }
@media (prefers-color-scheme: dark) { :root { --uv: #FF7FC6; --uv-hatch: rgba(255, 127, 198, .18); } }
mark.uv { background: none; color: inherit; padding: 0; }
.reviewbar { font-size: 13px; padding: 8px 12px; text-align: center; margin-inline: -20px; background: var(--surface); border-bottom: 1px solid var(--line); }
body.review mark.uv, body.review .rotator .word.uv {
  color: var(--uv); border-radius: 3px; padding: 0 2px;
  background: repeating-linear-gradient(135deg, var(--uv-hatch) 0 5px, transparent 5px 10px);
  text-decoration: underline dashed; text-underline-offset: 3px;
}
body.review .rotator .word.uv { border-bottom-color: var(--uv); }
body.review .uv-block, body.review .uv-drawer { position: relative; outline: 2px dashed var(--uv); outline-offset: -2px; }
body.review .uv-block::after, body.review .uv-drawer::before, .uvchip {
  content: "Unverified"; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--uv); padding: 3px 6px; border-radius: 4px;
}
/* Tag sits inside the item: the home-page stat tiles clip anything outside. */
body.review .uv-block::after { content: attr(data-uv); position: absolute; top: 8px; right: 8px; z-index: 1; }
body.review .offclock .uv-block { padding-right: 96px; }
body.review .uv-drawer::before { position: sticky; top: 0; justify-self: start; }
body.review .uv-block, body.review .uv-block * { color: var(--uv); }
body.review .stop.uv-stop .rl, body.review .stop.uv-stop .yr { color: var(--uv); text-decoration: underline dashed; text-underline-offset: 3px; }
