:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-2: #27272a;
  --border: #27272a;
  --text: #e2e8f0;
  --text-strong: #fafafa;
  --muted: #71717a;
  --accent: #b9a3e3;
  --max: 960px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 1.55; }
main { flex: 1 0 auto; width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); font-weight: 500; }
h3 { font-size: 0.95rem; }
p { margin: 0 0 0.9em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); font-size: 0.8rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #09090b; padding: 0.4rem 0.8rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 52px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-strong); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border); color: var(--accent); font-size: 0.75rem; font-weight: 700; font-family: var(--font-mono); }
.nav__links { display: flex; gap: 0; }
.nav__link { color: var(--muted); padding: 0.4rem 0.7rem; font-size: 0.85rem; font-family: var(--font-mono); }
.nav__link:hover { color: var(--text-strong); text-decoration: none; }
.nav__link.is-active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); padding: 0.4rem; cursor: pointer; flex-direction: column; gap: 3px; }
.nav-toggle span { display: block; width: 16px; height: 1px; background: var(--text); }
.hero { padding: 4rem 0 2.5rem; }
.eyebrow { color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; }
.lead { color: var(--muted); font-size: 1rem; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.btn { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-strong); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #09090b; }
.btn--primary:hover { color: #09090b; }
.btn--ghost { background: transparent; }
.section { padding: 2.25rem 0; border-top: 1px solid var(--border); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section__head h2 { margin: 0; }
.text-link { font-size: 0.85rem; font-family: var(--font-mono); }
.hub-group { margin-bottom: 1.5rem; }
.hub-group__title { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; margin-bottom: 0; }
.hub-list { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.hub-list li + li { border-top: 1px solid var(--border); }
.hub-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 1rem; align-items: baseline; padding: 0.6rem 0.9rem; color: var(--text); }
.hub-item:hover { background: var(--surface); text-decoration: none; }
.hub-item__name { color: var(--text-strong); font-weight: 500; }
.hub-item__desc { color: var(--muted); font-size: 0.88rem; }
.hub-item__host { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.hub-item:hover .hub-item__name { color: var(--accent); }
.project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.project { background: var(--surface); border: 1px solid var(--border); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.project p { color: var(--muted); font-size: 0.88rem; }
.project .text-link { margin-top: auto; }
.project__meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.project__kind { color: var(--muted); font-size: 0.78rem; }
.tag { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); border: 1px solid var(--border); padding: 0.1rem 0.4rem; }
.stack, .chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.7rem 0 0.9rem; }
.stack li, .chips li { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); border: 1px solid var(--border); padding: 0.1rem 0.4rem; }
.page { padding: 3rem 0 2.5rem; }
.page--center { text-align: center; padding-top: 5rem; }
.page__head { margin-bottom: 2rem; }
.prose { max-width: 40rem; color: #a1a1aa; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }
.panel { background: var(--surface); border: 1px solid var(--border); padding: 1.1rem 1.2rem; }
.panel p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.contact-list { display: grid; gap: 0.5rem; max-width: 520px; }
.contact-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); padding: 0.8rem 1rem; color: var(--text); }
.contact-item:hover { border-color: var(--accent); text-decoration: none; }
.contact-item__label { font-weight: 500; color: var(--text-strong); }
.contact-item__value { color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; overflow-wrap: anywhere; text-align: right; }
.site-footer { border-top: 1px solid var(--border); padding: 1.1rem 0; color: var(--muted); font-size: 0.8rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; align-items: center; }
.footer__inner p { margin: 0; }
.footer__links { display: flex; gap: 1rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text-strong); }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav__links { display: none; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.5rem 1rem; }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 0.6rem 0.2rem; }
  .hero { padding: 2.5rem 0 1.75rem; }
  .hub-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .hub-item__host { order: 3; }
  .contact-item { flex-direction: column; align-items: flex-start; }
  .contact-item__value { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Upgrade layer: smooth scroll, reveals, spotlight, progress. Sharp edges, 1px borders, no blur. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 1px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
.ch { display: inline-block; }
.spot { position: relative; isolation: isolate; }
@media (hover: hover) and (pointer: fine) {
  .spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 163, 227, 0.09), transparent 70%); z-index: -1; }
  .spot:hover::before { opacity: 1; }
  .spot:hover { border-color: #3f3f46; }
  .spot::after { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--accent); transition: width 0.5s cubic-bezier(.2,.7,.2,1); }
  .spot:hover::after { width: 100%; }
  .project:hover .tag { border-color: var(--accent); }
  .project:hover .text-link { letter-spacing: 0.02em; }
  .hub-item:hover { padding-left: 1.2rem; }
  .hub-item:hover .hub-item__name { transform: translateX(2px); }
  .btn--primary:hover { background: #c4b1ea; border-color: #c4b1ea; }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .brand:hover .brand__mark { border-color: var(--accent); transform: rotate(-6deg); }
  .contact-item:hover { padding-left: 1.2rem; }
}
.spot { border-color: var(--border); transition: border-color 0.3s ease; }
.project .text-link { transition: letter-spacing 0.3s ease; }
.hub-item { transition: background-color 0.25s ease, padding-left 0.3s cubic-bezier(.2,.7,.2,1); }
.hub-item__name { display: inline-block; transition: transform 0.3s cubic-bezier(.2,.7,.2,1); }
.btn { transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease; }
.nav__link { position: relative; }
.nav__link::after { content: ''; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(.2,.7,.2,1); }
.brand__mark { transition: border-color 0.3s ease, transform 0.4s cubic-bezier(.2,.7,.2,1); }
.contact-item { transition: border-color 0.3s ease, padding-left 0.3s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .spot::before, .spot::after { display: none; }
  .rv { opacity: 1 !important; transform: none !important; }
}
