/* ============================================================
   stevethorpe.dev
   Monochrome, warm off-white, misty mountains.
   Sibling to the Utah Technology Management brand.
   ============================================================ */

/* Self-hosted variable fonts (latin). No third-party font requests. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #fbfaf8;
  --bg-2: #f4f2ee;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #3a3a3a;
  --ink-soft: #666666;
  --ink-faint: #9a9a9a;
  --line: #e3e0da;
  --line-strong: #cfcbc3;
  --accent: #0d0d0d;
  --accent-ink: #ffffff;
  --live: #16a34a;
  --m1: #b9bcc0;
  --m2: #cdd0d4;
  --m3: #dfe1e4;
  --m4: #eceef0;
  --mist: rgba(251, 250, 248, 0.75);
  --shadow: 0 1px 2px rgba(13, 13, 13, 0.04), 0 10px 30px rgba(13, 13, 13, 0.06);
  --shadow-lg: 0 2px 4px rgba(13, 13, 13, 0.05), 0 24px 60px rgba(13, 13, 13, 0.10);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 12px; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- backdrop ---- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 52vh; display: block; }
.m1 { fill: var(--m1); }
.m2 { fill: var(--m2); }
.m3 { fill: var(--m3); }
.m4 { fill: var(--m4); }
.mist {
  position: absolute; left: -20%; right: -20%; height: 40vh; bottom: 0;
  background: linear-gradient(to top, var(--mist), transparent);
}
.mist-b {
  bottom: 18vh; height: 22vh; opacity: 0.8;
  background: linear-gradient(to top, var(--mist), transparent);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@media (prefers-reduced-motion: reduce) { .mist-b { animation: none; } }

/* ---- grain + progress ---- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--ink); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---- parallax vars ---- */
:root { --px: 0; --py: 0; }
.m4 { transform: translate(calc(var(--px) * -6px), calc(var(--py) * -3px)); }
.m3 { transform: translate(calc(var(--px) * -12px), calc(var(--py) * -5px)); }
.m2 { transform: translate(calc(var(--px) * -20px), calc(var(--py) * -8px)); }
.m1 { transform: translate(calc(var(--px) * -30px), calc(var(--py) * -12px)); }
.mountains polygon { transition: transform 0.12s linear; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav--scrolled { border-bottom-color: var(--line); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
}
.nav-logo { height: 22px; width: auto; display: block; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--bg-2); }
.nav-links a.nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-left: 6px; }
.nav-links a.nav-cta:hover { opacity: 0.85; }
.kbd-hint {
  height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  cursor: pointer; font-size: 0.72rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.kbd-hint:hover { background: var(--bg-2); border-color: var(--line-strong); color: var(--ink); }
.nav-burger {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-burger:hover { background: var(--bg-2); border-color: var(--line-strong); }

.nav-burger { display: none; flex-direction: column; gap: 5px; }
.nav-burger span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease; }
.nav--open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav--open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---- layout ---- */
.page {
  max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 120px;
}

/* ---- type ---- */
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
  margin-bottom: 18px;
}
.eyebrow > span { white-space: nowrap; }
.eyebrow .sep { color: var(--ink-faint); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 18%, transparent); }
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.06;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
  text-wrap: balance;
}
h3 { font-weight: 700; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 56ch; margin-top: 22px; }
.lede a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.lede a:hover { text-decoration-color: var(--ink); }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 60ch; margin-top: 12px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: min(calc(100vh - var(--nav-h)), 800px);
  padding: clamp(40px, 8vh, 96px) 0 clamp(40px, 6vh, 72px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.92rem; color: var(--ink-2);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts .mono { color: var(--ink-faint); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.1em; }

.hero-photo {
  position: relative; margin: 0; justify-self: end; width: min(100%, 560px);
  transform: translate(calc(var(--px) * 8px), calc(var(--py) * 6px));
  transition: transform 0.12s linear;
}
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* rotating headline word */
.rotate-line { display: block; font-weight: 700; color: var(--ink-soft); font-size: 0.62em; letter-spacing: -0.02em; margin-top: 0.25em; }
.rotate { position: relative; display: inline-grid; color: var(--ink); vertical-align: top; text-align: left; }
.rotate-ghost { visibility: hidden; grid-area: 1 / 1; height: 1.1em; overflow: hidden; white-space: nowrap; }
.rotate-word {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(0.5em) rotateX(-40deg); transform-origin: 50% 100%;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rotate-word.is-in { opacity: 1; transform: none; }
.rotate-word.is-out { opacity: 0; transform: translateY(-0.5em) rotateX(40deg); }

/* ticker */
.ticker {
  position: relative; overflow: hidden; margin: 8px 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-run { display: flex; align-items: center; padding: 12px 0; }
.ticker-item { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; padding: 0 18px; }
.ticker-dot { color: var(--ink-faint); font-size: 0.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* cursor spotlight */
.project, .link-card, .gear-card, .stat, .social { position: relative; overflow: hidden; }
.project::after, .link-card::after, .gear-card::after, .stat::after, .social::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, -200px) var(--my, -200px), color-mix(in srgb, var(--ink) 7%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
.project:hover::after, .link-card:hover::after, .gear-card:hover::after, .stat:hover::after, .social:hover::after { opacity: 1; }
.link-card--featured::after { background: radial-gradient(240px circle at var(--mx, -200px) var(--my, -200px), color-mix(in srgb, var(--accent-ink) 16%, transparent), transparent 60%); }

/* command palette */
.palette { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding-top: 14vh; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.palette-box {
  position: relative; width: min(560px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: rise 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.palette-box input {
  width: 100%; padding: 16px 18px; font: inherit; font-size: 1.05rem;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); outline: none;
}
#palette-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
#palette-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
#palette-list li.active, #palette-list li:hover { background: var(--bg-2); }
.pi-label { font-weight: 600; font-size: 0.95rem; }
.pi-hint { color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.pi-empty { color: var(--ink-faint); padding: 14px 12px; }
.palette-hint { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink-faint); }
.palette-hint kbd { font: inherit; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; margin-right: 2px; }
@media (prefers-reduced-motion: reduce) { .hero-photo img { animation: none; } }

/* ---- sections ---- */
.section { padding: clamp(56px, 9vh, 110px) 0 0; }
.section--tight { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section--tight .section-head { margin-bottom: 20px; }

/* ---- link stack (link-in-bio) ---- */
.link-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 820px; }
.link-card {
  min-width: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.link-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.link-card--featured { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.link-card--featured .link-subtitle { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.link-card--featured .link-icon { background: color-mix(in srgb, var(--accent-ink) 12%, transparent); border-color: transparent; }
.link-card--featured .link-arrow { color: var(--accent-ink); }
.link-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
}
.link-icon svg { width: 20px; height: 20px; }
.link-text { display: flex; flex-direction: column; min-width: 0; }
.link-title { font-weight: 700; font-size: 1rem; }
.link-subtitle { font-size: 0.85rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-arrow { margin-left: auto; width: 16px; height: 16px; color: var(--ink-faint); flex-shrink: 0; transition: transform 0.2s ease; }
.link-arrow svg { width: 100%; height: 100%; }
.link-card:hover .link-arrow { transform: translate(2px, -2px); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- tags / status ---- */
.tag {
  display: inline-block; font-size: 0.64rem; font-weight: 700; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-soft); border: 1px solid var(--line);
  vertical-align: middle;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.72rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.status--live .status-dot { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent); }
.status--building .status-dot { background: #f59e0b; }

/* ---- projects ---- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.project {
  min-width: 0;
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 26px; min-height: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.project:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.project--featured { grid-column: span 2; background: linear-gradient(160deg, var(--surface), var(--bg-2)); }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-logo { height: 26px; width: auto; opacity: 0.9; }

.project-title { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.project--featured .project-title { font-size: 1.5rem; }
.project-arrow { display: inline-flex; width: 18px; height: 18px; color: var(--ink-faint); transition: transform 0.2s ease, color 0.2s ease; }
.project-arrow svg { width: 100%; height: 100%; }
a.project:hover .project-arrow { transform: translate(2px, -2px); color: var(--ink); }
.project-blurb { color: var(--ink-2); font-size: 0.97rem; }
.project--featured .project-blurb { font-size: 1.04rem; max-width: 60ch; }
.project-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 8px; }
.project-link { color: var(--ink-soft); white-space: nowrap; }

/* ---- posts ---- */
.post-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post {
  display: grid; grid-template-columns: 160px 1fr; gap: 8px 32px; align-items: baseline;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background 0.15s ease;
}
.post:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.post-meta { display: flex; gap: 8px; color: var(--ink-soft); grid-row: span 2; }
.post-title { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.post-arrow { display: inline-flex; width: 18px; height: 18px; color: var(--ink-faint); transition: transform 0.2s ease, color 0.2s ease; }
.post-arrow svg { width: 100%; height: 100%; }
.post:hover .post-arrow { transform: translate(2px, -2px); color: var(--ink); }
.post-summary { color: var(--ink-2); max-width: 64ch; }
.empty { color: var(--ink-soft); padding: 24px 0; }

/* ---- gear ---- */
.gear-group { margin-bottom: 34px; }
.gear-category { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 500; margin-bottom: 12px; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gear-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; padding-right: 44px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.gear-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.gear-name { font-weight: 600; font-size: 0.96rem; }
.gear-note { font-size: 0.84rem; color: var(--ink-soft); }
.gear-card .tag { position: static; align-self: flex-start; margin-top: 6px; }
.gear-arrow { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; color: var(--ink-faint); }
.gear-arrow svg { width: 100%; height: 100%; }
.gear-card:hover .gear-arrow { color: var(--ink); }

/* ---- about ---- */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-copy { font-size: 1.05rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.about-copy a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.about-copy a:hover { text-decoration-color: var(--ink); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink-faint);
}
.tl-item--current::before { border-color: var(--live); background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent); }
.tl-org { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.tl-when { color: var(--ink-faint); margin-top: 2px; }
.tl-roles { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.tl-roles li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--ink-2); }
.tl-roles li .mono { color: var(--ink-faint); white-space: nowrap; font-size: 0.7rem; }
.tl-note { margin-top: 6px; font-size: 0.86rem; color: var(--ink-soft); }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 48px;
}
.stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-value { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 0.86rem; color: var(--ink-soft); }

/* ---- contact ---- */
.contact-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.social-list { display: flex; flex-direction: column; gap: 10px; }
.social {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg);
  text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.social:hover { transform: translateX(3px); border-color: var(--ink); }
.social-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); flex-shrink: 0; }
.social-icon svg { width: 18px; height: 18px; }
.social-text { display: flex; flex-direction: column; min-width: 0; }
.social-label { font-weight: 600; font-size: 0.95rem; }
.social-handle { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-arrow { margin-left: auto; width: 16px; height: 16px; color: var(--ink-faint); }
.social-arrow svg { width: 100%; height: 100%; }

/* ---- disclosure & footer ---- */
.disclosure { margin-top: 56px; padding: 18px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.disclosure p { font-size: 0.86rem; color: var(--ink-soft); }
.disclosure strong { color: var(--ink-2); }
.footer { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.86rem; color: var(--ink-soft); }
.footer a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer-note { color: var(--ink-faint); }

/* ============================================================
   Post pages (writing/*.html)
   ============================================================ */
.article { max-width: 700px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) 0 0; }
.article-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; margin-bottom: 36px; }
.article-back:hover { color: var(--ink); }
.article-back svg { width: 16px; height: 16px; }
.article header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; gap: 10px; color: var(--ink-soft); margin-top: 16px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article-body { font-size: 1.08rem; color: var(--ink-2); }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 { font-size: 1.35rem; color: var(--ink); margin-top: 2em; }
.article-body strong { color: var(--ink); }
.article-body a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--ink); }
.article-body ol, .article-body ul { padding-left: 1.3em; }
.article-body ul { list-style: disc; }
.article-body li + li { margin-top: 0.5em; }
.article-body blockquote { border-left: 3px solid var(--line-strong); padding-left: 18px; color: var(--ink-soft); font-style: italic; }
.article-foot { margin-top: 56px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 18px; align-items: center; }
.article-foot img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-foot p { font-size: 0.92rem; color: var(--ink-2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project--featured { grid-column: span 2; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 32px; }
  .hero-photo { order: -1; justify-self: start; width: min(64%, 280px); margin-bottom: -8px; }
  .about-grid, .contact-card { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-stack { grid-template-columns: minmax(0, 1fr); }
  .post { grid-template-columns: 1fr; gap: 6px; }
  .post-meta { grid-row: auto; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .kbd-hint { display: none; }
  .hero-photo { transform: none; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px clamp(16px, 4vw, 40px) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav--open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }

}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .project--featured { grid-column: auto; }
  .project { min-height: auto; }
  .gear-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 12px 20px; }
  .footer { flex-direction: column; }
}

/* ---- hero photo treatment (kept from the 2026-09-04 review pass) ---- */
.hero { grid-template-columns: 1.05fr 1fr; gap: 30px; }
.hero-photo { width: 100%; max-width: 580px; isolation: isolate; }
.hero-photo img { position: relative; z-index: 1; }
.photo-contours {
  position: absolute; inset: -6%; width: 112%; height: 112%; z-index: 0;
  color: var(--ink); opacity: 0.075; stroke: currentColor; stroke-width: 0.65;
  transform: rotate(-12deg);
}
.photo-caption {
  position: relative; z-index: 2; display: flex; gap: 9px; align-items: center; justify-content: center;
  margin-top: -2%; color: var(--ink-soft); font-size: 0.54rem; letter-spacing: 0.06em; white-space: nowrap;
}
.caption-cross { font-size: 20px; color: var(--ink-faint); font-weight: 400; }
@media (max-width: 820px) {
  .hero-photo { width: min(65%, 330px); justify-self: center; margin-bottom: 0; }
  .photo-caption { font-size: 0.41rem; }
  .photo-contours { opacity: 0.06; }
}

/* ============================================================
   Voxel viewers (places carousel + gear setups)
   ============================================================ */
.voxel-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--m3) 70%, transparent), transparent 60%),
    linear-gradient(to bottom, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
  outline: none;
}
.voxel-stage:focus-visible { border-color: var(--ink); }
.voxel-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.voxel-unavailable .voxel-stage::after {
  content: "3D scenes need WebGL and a network connection."; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-soft); font-size: 0.9rem;
}

/* places */
.places { position: relative; }
.places-hud {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 82%, transparent), transparent);
  border-radius: 0 0 24px 24px;
}
.places-label { min-width: 0; }
.places-label .mono { color: var(--ink-faint); }
.places-label h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.025em; margin-top: 4px; }
.places-label p { color: var(--ink-soft); font-size: 0.92rem; max-width: 46ch; margin-top: 2px; }
.places-nav { display: flex; align-items: center; gap: 10px; pointer-events: auto; flex-shrink: 0; }
.places-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease;
}
.places-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.places-btn svg { width: 18px; height: 18px; }
.places-dots { display: flex; gap: 6px; padding: 0 4px; }
.places-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; padding: 0; transition: transform 0.15s ease, background 0.15s ease; }
.places-dot.active { background: var(--ink); transform: scale(1.3); }

/* setups */
.setup { margin-bottom: 40px; }
.setup-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 14px; }
.setup-tab { padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.setup-tab.active { background: var(--accent); color: var(--accent-ink); }
.setup-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr); gap: 16px; align-items: start; }
.setup-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.setup-detail {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; min-height: 190px;
}
.setup-detail .eyebrow { margin-bottom: 4px; }
.setup-detail h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.setup-detail p { color: var(--ink-soft); font-size: 0.92rem; }
.setup-detail .btn { align-self: flex-start; margin-top: auto; }
.setup-detail .btn svg { width: 16px; height: 16px; }
.btn.is-disabled { opacity: 0.6; cursor: default; pointer-events: none; }
.setup-list { display: flex; flex-direction: column; gap: 6px; }
.setup-list button {
  width: 100%; text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.setup-list button:hover, .setup-list button.hover { border-color: var(--line-strong); background: var(--bg-2); transform: translateX(2px); }
.setup-list button.active { border-color: var(--ink); color: var(--ink); }

@media (max-width: 820px) {
  .voxel-stage { aspect-ratio: 4 / 3; border-radius: 18px; }
  .places-hud { flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .places-label h3 { font-size: 1.15rem; }
  .places-label p { font-size: 0.85rem; }
  .places-nav { justify-content: space-between; }
  .setup-body { grid-template-columns: 1fr; }
  .setup-detail { min-height: 0; }
}

/* setup render + hotspots */
.setup-scene {
  position: relative; margin: 0; width: 100%; height: auto; min-width: 0; overflow: hidden; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--surface), var(--bg-2)); box-shadow: var(--shadow); aspect-ratio: 16 / 11;
}
.setup-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.setup-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px; }
.setup-placeholder h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.setup-placeholder p { color: var(--ink-soft); font-size: 0.92rem; max-width: 36ch; }
.hotspot {
  position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%);
  border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.hotspot-ring { position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1.5px solid var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,0.25); transition: transform 0.2s ease, background 0.2s ease; }
.hotspot-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hotspot-ring::after { animation: none; } }
.hotspot-num { position: relative; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; color: var(--ink); }
.hotspot:hover .hotspot-ring, .hotspot.hover .hotspot-ring { transform: scale(1.15); }
.hotspot.active .hotspot-ring { background: var(--ink); }
.hotspot.active .hotspot-num { color: var(--accent-ink); }
.setup-list { list-style: none; }
.setup-list button { display: flex; align-items: center; gap: 12px; }
.setup-list button .mono { color: var(--ink-faint); font-size: 0.7rem; }
@media (max-width: 820px) { .setup-scene { aspect-ratio: 4 / 3; border-radius: 18px; } }

/* ============================================================
   Simplified hero, links, projects (2026-09-04 evening)
   ============================================================ */
.link-list { list-style: none; border-top: 1px solid var(--line); max-width: 720px; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-row {
  display: grid; grid-template-columns: 28px 1fr auto 18px; align-items: center; gap: 16px;
  padding: 18px 4px; text-decoration: none; color: var(--ink);
  transition: padding-left 0.2s ease;
}
.link-row:hover { padding-left: 10px; }
.link-row-icon { width: 20px; height: 20px; color: var(--ink-soft); }
.link-row-icon svg { width: 20px; height: 20px; }
.link-row-title { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.link-row-handle { color: var(--ink-faint); }
.link-row-arrow { width: 16px; height: 16px; color: var(--ink-faint); transition: transform 0.2s ease, color 0.2s ease; }
.link-row-arrow svg { width: 100%; height: 100%; }
.link-row:hover .link-row-arrow { transform: translate(2px, -2px); color: var(--ink); }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
.project { min-height: 0; gap: 12px; padding: 30px; }
.project .project-logo { height: 26px; width: auto; margin-bottom: 6px; }
.project .project-title { font-size: 1.4rem; }
.project .project-link { margin-top: auto; padding-top: 10px; color: var(--ink-soft); }
@media (max-width: 820px) {
  .link-row { grid-template-columns: 24px 1fr 18px; }
  .link-row-handle { display: none; }
  .project-grid { grid-template-columns: 1fr; }
}
.project .project-logo { align-self: flex-start; }

/* hero with photo, nothing moves with the mouse */
.hero { grid-template-columns: 1.05fr 1fr; gap: 30px; }
.hero-photo { transform: none !important; transition: none; }
.m1, .m2, .m3, .m4 { transform: none !important; transition: none; }

/* nav brand: domain in mono next to the mark */
.nav-brand { gap: 12px; }
.nav-logo { height: 18px; opacity: 0.9; }
.nav-brand-text { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink); }
.nav-brand:hover .nav-brand-text { color: var(--ink-soft); }

/* 13 places is too many for a dot row: the 04 / 13 counter and arrows carry it. */
.places-dots { display: none !important; }

/* zoom control lives inside the places image; the rest of the tools row is hidden */
.stage-zoom.cozy-tools { position: absolute; right: 12px; bottom: 12px; z-index: 3; border: 0; padding: 0; gap: 0; }
.stage-zoom .cozy-hint, .stage-zoom [data-action="reset"], .stage-zoom [data-action="motion"], .stage-zoom [data-action="save"] { display: none; }
.stage-zoom > div { gap: 4px; }
.stage-zoom button { width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 8px; font-size: 1rem; line-height: 1; color: var(--ink); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); }

/* hero icon bar */
.hero-links { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.hero-link {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-2);
  transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.hero-link:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.hero-link svg { width: 17px; height: 17px; }
.hero-link img { width: 20px; height: 20px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.85; }
.hero-link:hover img { filter: none; opacity: 1; }

.hero-link img { width: 22px; height: 22px; }
.hero-link[title="HXP"] img { width: 24px; height: auto; }

/* no subtext anywhere: place captions off too */
#place-sub { display: none; }

/* hero photo is a transparent cutout now: no blend, no card, just a soft fade at the hem */
.hero-photo img {
  mix-blend-mode: normal !important; filter: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%) !important;
}
.hero-photo { max-width: 520px; }

/* project cards: tighter, and marks in monochrome */
.project { padding: 22px 24px; gap: 10px; }
.project .project-blurb { font-size: 0.95rem; line-height: 1.65; }
.project .project-foot { padding-top: 4px; }
.project .project-logo { height: 22px; margin-bottom: 2px; filter: grayscale(1); opacity: 0.85; }

/* mobile hero: photo on top, then text; the late desktop override above must not win here */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr !important; gap: 4px; padding-top: 20px; padding-bottom: 40px; }
  .hero-photo { order: -1; justify-self: center; margin: 0 auto 8px; }
  .hero-text { max-width: none; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-actions { margin-top: 22px; }
  .hero-links { margin-top: 20px; }
}
