/* ─────────────────────────────────────────────
   Josh Münte — homepage
   display: Chakra Petch · body: IBM Plex Sans · mono: JetBrains Mono
   ───────────────────────────────────────────── */

:root {
  --bg: #070a0d;
  --bg-2: #0b1116;
  --panel: rgba(8, 12, 16, 0.96);
  --ink: #d9e4e2;
  --dim: #7f9296;
  --faint: #4a5a5e;
  --amber: #ffb454;
  --orange: #ff6b35;
  --green: #46d68c;
  --cyan: #5ad7e0;
  --line: rgba(127, 146, 150, 0.16);
  --line-strong: rgba(127, 146, 150, 0.32);
  --rail-w: 76px;
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

/* hide the browser scrollbar — the left rail carries progress */
html { scrollbar-width: none; }
body::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: #10130a; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* fixed 3D canvas behind everything */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* film grain over the scene */
#grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

main { position: relative; z-index: 2; }

/* ── depth rail (left) ─────────────────────── */
#rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
}
.rail-track {
  position: relative;
  width: 2px;
  height: 46vh;
  background: var(--line);
}
.rail-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--amber), var(--orange));
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.5);
  transition: height 0.15s linear;
}
.rail-dot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 180, 84, 0.8);
  transition: top 0.15s linear;
}

/* ── top bar ───────────────────────────────── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: calc(16px + env(safe-area-inset-top)) calc(32px + env(safe-area-inset-right)) 16px calc(var(--rail-w) + 24px + env(safe-area-inset-left));
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
#topbar.scrolled {
  background: rgba(7, 10, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-bottom: 10px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark { color: var(--amber); font-size: 20px; }
.brand-cursor { color: var(--amber); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

#topbar nav { display: flex; gap: 26px; margin-left: auto; }
#topbar nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
#topbar nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.25s;
}
#topbar nav a:hover { color: var(--ink); }
#topbar nav a:hover::after { width: 100%; }

.topbar-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, 0.4);
  padding: 7px 14px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.topbar-cta:hover {
  background: var(--amber);
  color: #14100a;
  box-shadow: 0 0 22px rgba(255, 180, 84, 0.35);
}

/* ── mobile nav toggle ────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: var(--amber); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── mobile drawer nav ────────────────────── */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: calc(84px + env(safe-area-inset-top)) 8vw calc(48px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(7, 10, 13, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}
#mobile-nav.open { opacity: 1; visibility: visible; }
#mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: clamp(21px, 6.5vw, 27px);
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.3s ease, color 0.2s;
}
#mobile-nav.open a { opacity: 1; transform: none; }
#mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
#mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
#mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
#mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }
#mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
#mobile-nav.open a:nth-child(6) { transition-delay: 0.3s; }
#mobile-nav.open a:nth-child(7) { transition-delay: 0.35s; }
#mobile-nav a .idx {
  font-size: 0.62em;
  letter-spacing: 0.2em;
  color: var(--amber);
}
#mobile-nav a:hover, #mobile-nav a:active { color: var(--amber); }
.mobile-nav-cta {
  justify-content: center;
  margin-top: 18px;
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, 0.4);
  border-radius: 4px;
}
.mobile-nav-cta:hover, .mobile-nav-cta:active {
  background: var(--amber);
  color: #17110a;
}
.nav-toggle:focus-visible, #mobile-nav a:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 3px;
}

/* ── hero ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8vw 60px calc(var(--rail-w) + 6vw);
  position: relative;
}
.hero-inner { max-width: 880px; }
.hero-eyebrow {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.2vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: none;
}
.hero-title .line { display: block; }
.hero-title .line-2 { color: var(--dim); }
.hero-title em {
  font-style: normal;
  color: var(--orange);
  position: relative;
  white-space: nowrap;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 14px);
  opacity: 0.7;
}
.hero-sub {
  margin-top: 26px;
  max-width: 620px;
  color: var(--dim);
  font-size: 18px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* terminal card */
.hero-terminal {
  margin-top: 38px;
  max-width: 640px;
  background: rgba(9, 13, 17, 0.85);
  background: rgba(7, 11, 15, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(255, 180, 84, 0.06), 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 44px rgba(255, 180, 84, 0.05);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.term-dot:nth-child(1) { background: #e0564f; }
.term-dot:nth-child(2) { background: var(--amber); }
.term-dot:nth-child(3) { background: var(--green); }
.term-title {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.term-body {
  padding: 18px 20px 22px;
  font-size: 13.5px;
  line-height: 1.85;
  min-height: 218px;
  color: var(--ink);
}
.term-body .t-prompt { color: var(--green); }
.term-body .t-cmd { color: var(--ink); }
.term-body .t-out { color: var(--dim); }
.term-body .t-ok { color: var(--green); }
.term-body .t-warn { color: var(--orange); }
.term-body .t-amber { color: var(--amber); }
.term-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--amber);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  padding: 13px 24px;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  display: inline-block;
}
.btn-solid {
  background: var(--amber);
  color: #17110a;
  font-weight: 700;
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 180, 84, 0.35);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: calc(34px + env(safe-area-inset-bottom));
  left: calc(var(--rail-w) + 6vw);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.hint-arrow { animation: bob 1.6s ease-in-out infinite; color: var(--amber); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── sections ──────────────────────────────── */
.section {
  padding: 130px 8vw 40px calc(var(--rail-w) + 6vw);
  max-width: 1280px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
}
.sec-index {
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.2em;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.01em;
}
.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.section-intro { color: var(--dim); max-width: 640px; margin-bottom: 40px; }
.section-intro a { color: var(--amber); border-bottom: 1px solid rgba(255, 180, 84, 0.4); }
.section-intro a:hover { border-bottom-color: var(--amber); }

.lead { font-size: 19px; color: var(--ink); }
.lead + p, .profile-grid p + p { margin-top: 18px; color: var(--dim); }
p strong { color: var(--amber); font-weight: 600; }

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

/* profile */
.profile-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: start;
}
.stat-stack { display: flex; flex-direction: column; gap: 14px; }
/* panels are 96% opaque (--panel), so backdrop blur is imperceptible — and
   dropping it avoids re-blurring the live WebGL canvas behind ~30 cards on
   every frame, which was the main frame-rate killer */
.stat {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--panel);
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.stat:hover {
  transform: translateX(6px);
  border-left-color: var(--orange);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}
.stat-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--amber);
  min-width: 86px;
}
.stat-label { color: var(--dim); font-size: 14.5px; }

/* timeline */
.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), var(--line) 30%, var(--line));
}
.tl-item { position: relative; margin-bottom: 42px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 8px;
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: var(--bg);
  border: 2px solid var(--amber);
  transition: background 0.2s, box-shadow 0.2s;
}
.tl-item:hover::before {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 180, 84, 0.7);
}
.tl-when {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 8px;
}
.tl-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px 30px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.tl-item:hover .tl-card {
  border-color: var(--line-strong);
  transform: translateX(6px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}
.tl-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.tl-org { color: var(--dim); font-family: var(--font-body); font-weight: 400; font-size: 16px; }
.tl-card p { color: var(--dim); font-size: 15.5px; }
.tl-points { margin: 12px 0 0 18px; color: var(--dim); font-size: 15px; }
.tl-points li { margin-bottom: 6px; }
.tl-points li::marker { color: var(--amber); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 4px 11px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: default;
}
.chips span:hover {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.5);
  background: rgba(255, 180, 84, 0.06);
}

/* security */
.sec-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.vuln-list { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.vuln {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.vuln:hover { border-color: rgba(255, 107, 53, 0.45); transform: translateX(6px); }
.vuln-sev {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  border: 1px solid rgba(255, 107, 53, 0.5);
  color: var(--orange);
  white-space: nowrap;
  margin-top: 3px;
}
.vuln h4 { font-family: var(--font-display); font-size: 16.5px; margin-bottom: 4px; }
.vuln p { color: var(--dim); font-size: 14.5px; }
.disclosure-note {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
}
.sec-side { display: flex; flex-direction: column; gap: 16px; }
.sec-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.sec-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.sec-card h4 {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.sec-card ul { list-style: none; }
.sec-card li {
  color: var(--dim);
  font-size: 14.5px;
  padding: 5px 0 5px 18px;
  position: relative;
}
.sec-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
  top: 8px;
}
.sec-card-accent { border-color: rgba(255, 180, 84, 0.35); }
.sec-card-accent h4 { color: var(--amber); }

/* open source */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.repo {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.repo::before, .repo::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
.repo::before { top: -1px; left: -1px; border-top: 2px solid var(--faint); border-left: 2px solid var(--faint); }
.repo::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--faint); border-right: 2px solid var(--faint); }
.repo:hover {
  border-color: rgba(255, 180, 84, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}
.repo:hover::before, .repo:hover::after {
  width: 26px; height: 26px;
  border-color: var(--amber);
}
.repo-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.repo-lang { padding: 3px 9px; border: 1px solid var(--line-strong); }
.lang-rust { color: #f78c5b; border-color: rgba(247, 140, 91, 0.4); }
.lang-ts { color: var(--cyan); border-color: rgba(90, 215, 224, 0.4); }
.lang-py { color: var(--green); border-color: rgba(70, 214, 140, 0.4); }
.lang-dart { color: #45d0c6; border-color: rgba(69, 208, 198, 0.4); }
.repo-stars { color: var(--amber); align-self: center; }
.repo h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.repo p { color: var(--dim); font-size: 14.5px; flex: 1; }
.repo-link {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faint);
  transition: color 0.2s, letter-spacing 0.2s;
}
.repo:hover .repo-link { color: var(--amber); letter-spacing: 0.16em; }

/* featured Votello build — its story reflows around a live ownership graph */
.repo-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(70, 214, 140, 0.25);
  background: linear-gradient(118deg, rgba(8, 14, 17, 0.99) 0 48%, rgba(5, 24, 25, 0.98) 100%);
}
.repo-featured:hover { transform: translateY(-3px); border-color: rgba(70, 214, 140, 0.52); }
.repo-featured::before { border-color: var(--green); }
.repo-featured-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 32px 34px 30px;
}
.repo-featured .repo-top { color: var(--dim); }
.repo-featured .repo-top > span { white-space: nowrap; }
.repo-featured-label { color: var(--green); font-size: 10px; }
.repo-featured-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 18px;
}
.repo-featured-title img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  box-shadow: 0 0 30px rgba(70, 214, 140, 0.18);
}
.repo-featured-title span {
  display: block;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.repo-featured .repo-featured-title h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
}
.repo-featured-copy > p { max-width: 520px; font-size: 15.5px; }
.repo-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.repo-featured-actions a {
  padding: 9px 13px;
  border: 1px solid rgba(70, 214, 140, 0.32);
  color: var(--green);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.repo-featured-actions a:first-child { background: rgba(70, 214, 140, 0.08); }
.repo-featured-actions a:hover {
  color: #07100e;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}
.votello-type {
  position: relative;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  border-left: 1px solid rgba(70, 214, 140, 0.15);
  background:
    radial-gradient(circle at 56% 48%, rgba(70, 214, 140, 0.09), transparent 35%),
    linear-gradient(90deg, rgba(5, 18, 20, 0.25), rgba(3, 26, 27, 0.72));
  cursor: crosshair;
}
.votello-type::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 14, 17, 0.92), transparent 14%, transparent 88%, rgba(5, 18, 20, 0.45));
}
#votello-type-canvas {
  width: 100%;
  height: 100%;
  display: block;
  /* soft bottom edge — the looping copy dissolves instead of hard-clipping */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
}
.votello-type-hint {
  position: absolute;
  right: 16px;
  bottom: 13px;
  z-index: 2;
  color: rgba(70, 214, 140, 0.55);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.25s;
}
.votello-type:hover .votello-type-hint { opacity: 0; }
.votello-type.type-fallback::before {
  content: "Scan a product. Trace who owns it. Read the evidence. Decide for yourself.";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: rgba(70, 214, 140, 0.56);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 20px);
  letter-spacing: 0.16em;
  text-align: center;
}

/* stack */
.stack-rows { display: flex; flex-direction: column; gap: 14px; }
.stack-row {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stack-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.stack-label {
  min-width: 110px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.2s;
}
.stack-row:hover .stack-label { color: var(--amber); }
.stack-row .chips { margin-top: 0; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.pgp-note {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-link:hover {
  border-color: rgba(255, 180, 84, 0.5);
  transform: translateX(8px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}
.cl-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  min-width: 84px;
}
.cl-value { font-size: 16.5px; font-weight: 500; flex: 1; }
.cl-arrow { color: var(--amber); font-size: 18px; transition: transform 0.2s; }
.contact-link:hover .cl-arrow { transform: translateX(5px); }

/* last section breathes before the page ends (footer is gone) */
.section-contact { padding-bottom: calc(18vh + env(safe-area-inset-bottom)); }

/* ── responsive ────────────────────────────── */
@media (max-width: 1000px) {
  :root { --rail-w: 0px; }
  #rail { display: none; }
  .hero, .section { padding-left: 7vw; padding-right: 7vw; }
  .scroll-hint { left: 7vw; }
  #topbar {
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
  }
  #topbar nav { display: none; }
  .nav-toggle { display: flex; }
  .profile-grid, .sec-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .repo-featured { grid-template-columns: 1fr; }
  .votello-type { min-height: 310px; border-left: 0; border-top: 1px solid rgba(70, 214, 140, 0.15); }
}
@media (min-width: 1001px) {
  #mobile-nav { display: none; }
}
@media (max-width: 768px) {
  #grain { animation: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding-top: 90px; }
  .hero-title { font-size: clamp(34px, 10.5vw, 48px); }
  .btn { padding: 14px 22px; }
  .stat { flex-direction: column; gap: 4px; }
  .stack-row { flex-direction: column; gap: 12px; }
  .vuln { flex-direction: column; gap: 10px; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-featured-copy { padding: 26px 24px 24px; }
  .repo-featured .repo-top { justify-content: flex-start; gap: 12px; }
  .repo-featured .repo-featured-title h3 { font-size: 28px; }
  .votello-type { min-height: 300px; }
  .votello-type-hint { display: none; }
}
@media (max-width: 480px) {
  .topbar-cta { display: none; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
/* touch screens: hover effects stick — drop the transforms/shadows */
@media (hover: none) {
  .stat:hover, .vuln:hover, .tl-item:hover .tl-card, .contact-link:hover,
  .repo:hover, .sec-card:hover, .btn-solid:hover, .btn-ghost:hover {
    transform: none;
    box-shadow: none;
  }
  .contact-link:hover .cl-arrow { transform: none; }
  .repo:hover::before, .repo:hover::after { width: 14px; height: 14px; border-color: var(--faint); }
  .repo-featured-actions a:hover { transform: none; }
  .votello-type-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #grain, .hint-arrow, .brand-cursor, .term-cursor { animation: none; }
  .nav-toggle-bar, #mobile-nav a { transition: none; }
  .votello-type-hint { display: none; }
}
