/* ═══════════════════════════════════════════════════════════════
   skornuta.dev — "Signal Lab" design system
   Vanilla CSS · mobile-first · transform/opacity motion only
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg-0: #07090b;
  --bg-1: #0c0f12;
  --bg-2: #10141a;
  --glass: rgba(16, 20, 26, 0.55);

  --line: rgba(255, 255, 255, 0.07);
  --line-hi: rgba(255, 255, 255, 0.16);

  --ink-1: #eef3f0;
  --ink-2: #9aa5a0;
  --ink-3: #5d6862;

  --acc: #34f5a2;
  --acc-ink: #052e1d;
  --acc-dim: rgba(52, 245, 162, 0.12);
  --acc-line: rgba(52, 245, 162, 0.35);
  --amber: #ffc24b;
  --amber-dim: rgba(255, 194, 75, 0.12);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 60px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--acc); color: var(--acc-ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #1e242b; border-radius: 6px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #2b333c; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 720px) {
  .container { padding-inline: 40px; }
}

/* ── Accessibility helpers ──────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--acc);
  color: var(--acc-ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ── Scroll progress ────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--acc), #7dd3fc);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ── Ambient background ─────────────────────────────────────── */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.033) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(52, 245, 162, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 100%, rgba(125, 211, 252, 0.03), transparent 60%);
}

.bg-noise {
  position: absolute; inset: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: absolute;
  top: 0; left: 0;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 245, 162, 0.055), transparent 65%);
  transform: translate3d(-50vw, -50vh, 0);
  will-change: transform;
  pointer-events: none;
}

/* ── LEDs ───────────────────────────────────────────────────── */
.led {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
}
.led-green { background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: led-pulse 2.4s ease-in-out infinite; }
.led-amber { background: var(--amber); box-shadow: 0 0 8px rgba(255, 194, 75, 0.7); }
.led-dim   { background: #2a323a; }
.led-blink { animation: led-blink 1.1s steps(2, start) infinite; }

@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes led-blink {
  50% { opacity: 0.25; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.35s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: var(--acc);
  color: var(--acc-ink);
  box-shadow: 0 0 0 0 rgba(52, 245, 162, 0);
}
.btn-primary:hover { box-shadow: 0 8px 32px -6px rgba(52, 245, 162, 0.45); }
.btn-primary .btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-hi);
  color: var(--ink-1);
}
.btn-ghost:hover { border-color: var(--acc-line); background: var(--acc-dim); }
.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 0.88rem; border-radius: 14px; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 9, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  display: inline-flex;
  align-items: baseline;
  min-height: 44px;
  padding-top: 12px;
}
.brand-dot { color: var(--acc); }
.caret {
  color: var(--acc);
  animation: caret-blink 1.2s steps(2, start) infinite;
  margin-left: 1px;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--ink-1); background: rgba(255, 255, 255, 0.04); }
.nav-link[aria-current="true"] { color: var(--acc); }
.nav-link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--acc);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-github {
  display: none;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  padding: 9px 15px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  min-height: 40px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-github:hover { color: var(--ink-1); border-color: var(--acc-line); background: var(--acc-dim); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px; height: 44px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
}
.menu-toggle-bar {
  width: 18px; height: 1.6px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child { transform: translateY(-3.8px) rotate(-45deg); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-github { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ── Mobile menu ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 9, 11, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 28px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color 0.15s;
}
.mobile-menu.open .mobile-menu-links a { opacity: 1; transform: none; }
.mobile-menu.open .mobile-menu-links li:nth-child(1) a { transition-delay: 0.06s; }
.mobile-menu.open .mobile-menu-links li:nth-child(2) a { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) a { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) a { transition-delay: 0.24s; }
.mobile-menu-links a:hover { color: var(--acc); }
.menu-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--acc);
}
.mobile-menu-foot {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.mobile-menu-foot a { padding: 6px 0; }
.mobile-menu-foot a:hover { color: var(--acc); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 90px;
}

.hero-inner {
  display: grid;
  gap: 56px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 15px;
  border: 1px solid var(--line-hi);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--acc);
}

.hero-lede {
  max-width: 520px;
  color: var(--ink-2);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.spec {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.spec dd {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-1);
}

@media (min-width: 640px) {
  .spec-row { grid-template-columns: repeat(4, 1fr); }
}

/* Hero visual / dev console */
.hero-visual {
  position: relative;
  perspective: 1100px;
  max-width: 480px;
}

.devboard {
  position: relative;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 25, 32, 0.9), rgba(10, 13, 17, 0.9));
  backdrop-filter: blur(8px);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.12s linear;
  will-change: transform;
}
/* corner screws */
.devboard::before,
.devboard::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a444f, #14181d);
  box-shadow: inset 0 0 2px #000;
}
.devboard::before { top: 10px; right: 10px; }
.devboard::after { bottom: 10px; left: 10px; }

.devboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.devboard-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.devboard-leds { display: inline-flex; gap: 8px; }

.devboard-screen {
  position: relative;
  padding: 18px 18px 20px;
  min-height: 196px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 3px),
    rgba(3, 5, 6, 0.55);
}
.boot-log {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 2.05;
  color: var(--ink-2);
}
.boot-log li { white-space: pre-wrap; word-break: break-word; }
.boot-log li[data-accent] { color: var(--acc); }
.boot-caret {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--acc);
  margin-left: 18px;
  vertical-align: -2px;
  animation: caret-blink 0.9s steps(2, start) infinite;
}

.devboard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--acc);
}
.wave-path { stroke-dasharray: 6 4; animation: wave-flow 3s linear infinite; }
@keyframes wave-flow { to { stroke-dashoffset: -40; } }
.devboard-pins {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.float-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-1);
  padding: 8px 13px;
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  background: rgba(12, 15, 18, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
  will-change: transform;
}
.float-chip-1 { top: -16px; right: 8%; color: var(--acc); border-color: var(--acc-line); }
.float-chip-2 { bottom: 22%; left: -14px; }
.float-chip-3 { bottom: -14px; right: 14%; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.15s;
  padding: 10px;
}
.scroll-cue:hover { color: var(--acc); }
.scroll-cue-line {
  width: 44px; height: 1px;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acc);
  transform: translateX(-100%);
  animation: cue-sweep 2.2s var(--ease-out) infinite;
}
@keyframes cue-sweep {
  40%, 100% { transform: translateX(100%); }
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .scroll-cue { display: inline-flex; }
}

/* ── Marquee ────────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 15px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  background: rgba(255, 255, 255, 0.012);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  color: var(--acc);
  font-weight: 400;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ───────────────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(84px, 11vw, 140px) 0;
  scroll-margin-top: var(--header-h);
}

.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 640px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--acc);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-sub { color: var(--ink-2); font-size: 0.98rem; }

/* ── Cards (shared) ─────────────────────────────────────────── */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.5s var(--ease-out);
}
.card::before {
  /* spotlight that follows the pointer */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 245, 162, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.card:hover::before { opacity: 1; }

/* ── Projects ───────────────────────────────────────────────── */
.project-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 880px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 0;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.12em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.badge-progress { color: var(--amber); background: var(--amber-dim); border: 1px solid rgba(255, 194, 75, 0.25); }
.badge-done { color: var(--acc); background: var(--acc-dim); border: 1px solid var(--acc-line); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.card-text {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.15s, border-color 0.15s;
}
.card:hover .tag-list li { border-color: var(--line-hi); }

/* Project visuals */
.card-visual {
  margin-top: auto;
  border-top: 1px solid var(--line);
  margin-inline: -26px;
  padding: 24px 26px;
  background: rgba(3, 5, 6, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 168px;
  justify-content: center;
}
.visual-caption {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* GC9A01 round display */
.lcd-round {
  position: relative;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: #05070a;
  border: 5px solid #171c22;
  box-shadow: 0 0 0 1px var(--line-hi), 0 14px 34px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.lcd-round-art {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 45%),
    conic-gradient(from 210deg, #34f5a2, #0ea5e9, #6366f1, #f472b6, #34f5a2);
  animation: art-spin 14s linear infinite;
}
.lcd-round-art::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: #05070a;
}
@keyframes art-spin { to { transform: rotate(1turn); } }

.now-playing {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-2);
}
.now-playing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: led-pulse 1.8s ease-in-out infinite;
}
.progress {
  width: min(240px, 100%);
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--acc);
  animation: progress-run 9s linear infinite;
}
@keyframes progress-run {
  from { width: 6%; }
  to { width: 96%; }
}

/* 16x2 LCD + RSSI */
.lcd-flat {
  width: min(300px, 100%);
  padding: 13px 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0d211a, #08130f);
  border: 1px solid rgba(52, 245, 162, 0.22);
  box-shadow: inset 0 0 24px rgba(52, 245, 162, 0.06), 0 10px 26px -14px rgba(0, 0, 0, 0.9);
}
.lcd-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #5cf7b5;
  line-height: 1.9;
  text-shadow: 0 0 8px rgba(52, 245, 162, 0.45);
}
.rssi {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.rssi-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-bottom: 2px;
}
.rssi-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 30px;
}
.rssi-bars i {
  width: 6px;
  height: var(--h, 50%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--acc), rgba(52, 245, 162, 0.35));
  animation: rssi-bob 1.6s ease-in-out infinite;
}
.rssi-bars i:nth-child(2) { animation-delay: 0.15s; }
.rssi-bars i:nth-child(3) { animation-delay: 0.3s; }
.rssi-bars i:nth-child(4) { animation-delay: 0.45s; }
.rssi-bars i:nth-child(5) { animation-delay: 0.6s; }
@keyframes rssi-bob {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}
.rssi-bars i { transform-origin: bottom; }

/* LED strip */
.led-strip {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 100px;
  background: #0a0d10;
  border: 1px solid var(--line-hi);
}
.led-strip i {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
  animation: led-chase 1.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
.led-strip i:nth-child(3n) { background: #7dd3fc; box-shadow: 0 0 12px #7dd3fc; }
.led-strip i:nth-child(3n + 2) { background: #f472b6; box-shadow: 0 0 12px #f472b6; }
@keyframes led-chase {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.82); }
}

/* CAD wireframe */
.cad-iso {
  width: min(280px, 100%);
  color: var(--ink-2);
}
.cad-solid { color: #8b96a3; }
.cad-dims { color: var(--acc); opacity: 0.8; }

/* ── Stack bento ────────────────────────────────────────────── */
.bento {
  display: grid;
  gap: 22px;
}
.bento-card { padding: 28px; }
.bento-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.bento-head h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bento-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  color: var(--acc);
  background: var(--acc-dim);
  border: 1px solid var(--acc-line);
  flex: none;
}
.spec-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 0.88rem;
  color: var(--ink-2);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before {
  content: "▸";
  position: absolute;
  left: 2px;
  color: var(--acc);
  font-size: 0.75rem;
}
.bento-text {
  color: var(--ink-2);
  font-size: 0.92rem;
  margin-bottom: 18px;
  max-width: 520px;
}

@media (min-width: 880px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-wide { grid-column: 1 / -1; }
}

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  gap: 48px;
}
.about-copy p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 22px;
  max-width: 560px;
}
.about-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--acc-line);
  border-radius: var(--radius-sm);
  background: var(--acc-dim);
  color: var(--ink-1) !important;
  font-size: 0.92rem !important;
}
.about-callout .led { margin-top: 8px; }

.hobby-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--acc);
  margin-bottom: 18px;
}
.hobby-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hobby-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
  transition: transform 0.4s var(--ease-out), border-color 0.25s, background 0.25s;
}
.hobby-card:hover {
  transform: translateY(-4px);
  border-color: var(--acc-line);
  background: rgba(52, 245, 162, 0.05);
}
.hobby-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 10px;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-hi);
}
.hobby-card h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.hobby-card p {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-3);
}

@media (min-width: 980px) {
  .about-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
}
@media (max-width: 420px) {
  .hobby-cards { grid-template-columns: 1fr; }
}

/* ── Contact ────────────────────────────────────────────────── */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 55% at 50% 110%, rgba(52, 245, 162, 0.07), transparent 65%);
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 16px 0 22px;
}
.contact-title em {
  font-style: normal;
  color: var(--acc);
}
.contact-sub {
  color: var(--ink-2);
  max-width: 480px;
  margin-bottom: 40px;
}
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}
.footer-note { letter-spacing: 0.06em; }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--ink-2);
  transition: color 0.15s;
}
.footer-top:hover { color: var(--acc); }

/* ── Reveal system (JS-gated) ───────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; transform: none; }
  .cursor-glow, .scroll-cue-line::after { display: none; }
  .devboard { transform: none !important; }
  .float-chip { transform: none !important; }
  .boot-caret { animation: none; }
  .card:hover, .hobby-card:hover { transform: none; }
}
