:root {
  --green: #16a34a;
  --green-bright: #22c55e;

  --bg: #0a0910;
  --bg-soft: #100e18;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: #f4f1f8;
  --text-dim: #a29cb4;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  --radius: 22px;
  --radius-sm: 12px;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --veil-opacity: 0.62;
}

:root[data-theme='light'] {
  --bg: #f3efe6;
  --bg-soft: #faf7f0;
  --surface: rgba(20, 15, 35, 0.04);
  --surface-2: rgba(20, 15, 35, 0.07);
  --text: #16131d;
  --text-dim: #5c5468;
  --border: rgba(20, 15, 35, 0.12);
  --border-strong: rgba(20, 15, 35, 0.24);
  --veil-opacity: 0.4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ── skip link ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 999;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ── living background field ────────────────────────── */
.field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

:root[data-theme='light'] .blob {
  mix-blend-mode: multiply;
  opacity: 0.32;
}

.blob-a {
  top: -14vmax;
  left: -10vmax;
  background: radial-gradient(circle, #22c55e, transparent 70%);
  animation: drift-a 32s ease-in-out infinite alternate;
}

.blob-b {
  top: 18vmax;
  right: -16vmax;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  animation: drift-b 38s ease-in-out infinite alternate;
}

.blob-c {
  bottom: -20vmax;
  left: 20vmax;
  background: radial-gradient(circle, #f97316, transparent 70%);
  animation: drift-c 44s ease-in-out infinite alternate;
}

.block-rain {
  position: absolute;
  width: 86px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22px 13px, rgba(255, 255, 255, 0.5) 0 5px, transparent 6px),
    radial-gradient(circle at 56px 13px, rgba(255, 255, 255, 0.42) 0 5px, transparent 6px),
    linear-gradient(145deg, rgba(34, 197, 94, 0.24), rgba(168, 85, 247, 0.11));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  opacity: 0.18;
  transform: rotate(var(--r, 0deg));
  animation: block-drift var(--speed, 28s) linear infinite;
}

.block-rain-a { --r: -10deg; --speed: 34s; top: 14%; left: 6%; }
.block-rain-b { --r: 12deg; --speed: 30s; top: 26%; right: 8%; animation-delay: -9s; }
.block-rain-c { --r: -18deg; --speed: 38s; top: 54%; left: 12%; animation-delay: -16s; }
.block-rain-d { --r: 16deg; --speed: 32s; bottom: 18%; right: 16%; animation-delay: -22s; }
.block-rain-e { --r: 7deg; --speed: 36s; top: 72%; left: 48%; animation-delay: -13s; }
.block-rain-f { --r: -6deg; --speed: 40s; top: 8%; left: 62%; animation-delay: -27s; }

@keyframes drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vmax, 10vmax) scale(1.15); }
}

@keyframes drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10vmax, 8vmax) scale(1.1); }
}

@keyframes drift-c {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vmax, -8vmax) scale(1.2); }
}

@keyframes block-drift {
  0% { transform: translate3d(-10vw, -8vh, 0) rotate(var(--r)) scale(0.78); }
  45% { transform: translate3d(7vw, 8vh, 0) rotate(calc(var(--r) + 70deg)) scale(1); }
  100% { transform: translate3d(18vw, 18vh, 0) rotate(calc(var(--r) + 145deg)) scale(0.82); }
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 26px 26px;
}

:root[data-theme='light'] .grain {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
}

/* cursor-tracked spotlight veil: dims the field, punches a hole of colour at the pointer */
.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  opacity: var(--veil-opacity);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle 260px at var(--mx, 50%) var(--my, 20%),
    transparent 0%,
    black 65%
  );
  mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 20%), transparent 0%, black 65%);
  transition: opacity 0.4s ease;
}

body.no-spotlight .veil {
  opacity: 0;
}

/* ── top bar ─────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, var(--bg) 55%, transparent);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.wordmark span {
  background: linear-gradient(120deg, #22c55e, #a855f7, #f97316, #22c55e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue-sweep 8s linear infinite;
}

@keyframes hue-sweep {
  to { background-position: 300% 0; }
}

.topnav {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-left: auto;
  margin-right: 8px;
}

.topnav a {
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

.topnav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--green-bright);
  transition: right 0.25s ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  right: 0;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.4s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--green-bright);
  transform: rotate(180deg);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── hero ────────────────────────────────────────────── */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.hero {
  position: relative;
  padding: 64px 0 72px;
  max-width: 980px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin: 0 0 20px;
}

.hero-title {
  margin: 0 0 24px;
  max-width: 820px;
  font-size: clamp(2.2rem, 6.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-title .line {
  display: block;
}

.grad-text {
  max-width: 10.8ch;
  background: linear-gradient(100deg, #22c55e, #a855f7 45%, #f97316 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue-sweep-slow 10s ease-in-out infinite alternate;
}

@keyframes hue-sweep-slow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 36px;
  max-width: 58ch;
}

/* animated dev lab */
.dev-lab {
  position: absolute;
  top: 92px;
  right: 0;
  width: min(34vw, 390px);
  min-width: 310px;
  pointer-events: none;
  perspective: 900px;
}

.builder-stage {
  position: relative;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle at 70% 18%, rgba(34, 197, 94, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  animation: lab-float 7s ease-in-out infinite alternate;
}

.builder-stage::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 26px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
}

.builder-stage::after {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.26) 0 4px, transparent 5px) 0 0 / 34px 100%,
    linear-gradient(90deg, rgba(34, 197, 94, 0.28), rgba(168, 85, 247, 0.18));
  opacity: 0.7;
}

.drop-block {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 112px;
  height: 64px;
  border: 1px solid color-mix(in srgb, var(--block-color, #22c55e) 48%, white 12%);
  border-radius: 17px;
  background:
    radial-gradient(circle at 30px 16px, rgba(255, 255, 255, 0.58) 0 7px, transparent 8px),
    radial-gradient(circle at 80px 16px, rgba(255, 255, 255, 0.46) 0 7px, transparent 8px),
    linear-gradient(145deg, color-mix(in srgb, var(--block-color, #22c55e) 72%, white 7%), color-mix(in srgb, var(--block-color, #22c55e) 35%, black 48%));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -10px 20px rgba(0, 0, 0, 0.18),
    0 24px 48px color-mix(in srgb, var(--block-color, #22c55e) 24%, transparent);
  opacity: 0;
  transform: translateY(-130px) rotate(-18deg) scale(0.86);
  animation: block-snap 7s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.drop-block i {
  width: 22px;
  height: 10px;
  border-radius: 999px 999px 5px 5px;
  background: rgba(255, 255, 255, 0.36);
  align-self: start;
  margin-top: -8px;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.18);
}

.drop-block b {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #07100b;
  letter-spacing: 0.08em;
  margin-top: -10px;
}

.drop-a { --block-color: #22c55e; left: 42px; bottom: 64px; animation-delay: 0.1s; }
.drop-b { --block-color: #38bdf8; left: 160px; bottom: 64px; animation-delay: 0.65s; }
.drop-c { --block-color: #f97316; left: 102px; bottom: 132px; animation-delay: 1.2s; }
.drop-d { --block-color: #a855f7; left: 42px; bottom: 200px; animation-delay: 1.75s; }
.drop-e { --block-color: #a3e635; left: 160px; bottom: 200px; animation-delay: 2.3s; }

.crane-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 96px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.45));
  transform-origin: top;
  animation: crane-line 7s ease-in-out infinite;
}

.crane-hook {
  position: absolute;
  left: calc(50% - 12px);
  top: 88px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  animation: crane-hook 7s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.74);
  opacity: 0;
  animation: spark-pop 2.8s ease-out infinite;
}

.spark-a { left: 82px; bottom: 138px; animation-delay: 1s; }
.spark-b { right: 80px; bottom: 206px; animation-delay: 1.8s; }
.spark-c { left: 176px; bottom: 72px; animation-delay: 2.5s; }

@keyframes lab-float {
  from { transform: rotateY(-9deg) rotateX(5deg) translateY(0); }
  to { transform: rotateY(-5deg) rotateX(3deg) translateY(-12px); }
}

@keyframes block-snap {
  0%, 8% { opacity: 0; transform: translateY(-130px) rotate(-18deg) scale(0.86); }
  18%, 68% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  74% { transform: translateY(-10px) rotate(2deg) scale(1.03); }
  86%, 100% { opacity: 0; transform: translateY(52px) rotate(10deg) scale(0.9); }
}

@keyframes crane-line {
  0%, 100% { transform: translateX(-90px) scaleY(0.62); }
  40% { transform: translateX(70px) scaleY(1); }
  70% { transform: translateX(-10px) scaleY(0.75); }
}

@keyframes crane-hook {
  0%, 100% { transform: translateX(-90px) translateY(-16px); }
  40% { transform: translateX(70px) translateY(28px); }
  70% { transform: translateX(-10px) translateY(4px); }
}

@keyframes spark-pop {
  0%, 42%, 100% { opacity: 0; transform: scale(0.3); }
  52% { opacity: 1; transform: scale(1.4); }
  70% { opacity: 0; transform: scale(0.7) translateY(-16px); }
}

/* kinetic ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  animation: ticker-scroll 26s linear infinite;
}

.ticker-track span::before {
  content: '◆';
  margin-right: 28px;
  color: var(--green-bright);
  opacity: 0.7;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--text);
}

.scroll-cue-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

/* ── work section ────────────────────────────────────── */
.work {
  padding: 40px 0 100px;
  scroll-margin-top: 96px;
}

.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.work-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: -0.01em;
}

.work-head p {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.signal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.signal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.signal-link {
  --px: 50%;
  --py: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 56px 120px 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.signal-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--px) var(--py),
    color-mix(in srgb, var(--a) 22%, transparent),
    transparent 70%
  );
  transition: opacity 0.35s ease;
}

.signal-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--a), var(--b));
  opacity: 0.6;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.signal-link:hover,
.signal-link:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.signal-link:hover::before,
.signal-link:focus-visible::before {
  opacity: 1;
}

.signal-link:hover::after,
.signal-link:focus-visible::after {
  opacity: 1;
  width: 4px;
}

.signal-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.signal-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signal-glyph {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--a), var(--b));
  font-size: 1.5rem;
  color: #0a0910;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--a) 65%, transparent);
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.signal-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--a), var(--b));
  opacity: 0.55;
  animation: bar-wave 1.6s ease-in-out infinite;
}

.signal-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.signal-bars i:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.signal-bars i:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.signal-bars i:nth-child(4) { height: 60%; animation-delay: 0.45s; }
.signal-bars i:nth-child(5) { height: 85%; animation-delay: 0.6s; }

@keyframes bar-wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.signal-body {
  min-width: 0;
}

.signal-kind {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a);
}

.signal-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  transform: translate(0, 0);
  transition: transform 0.3s ease, color 0.3s ease;
}

.signal-link:hover .signal-arrow,
.signal-link:focus-visible .signal-arrow {
  transform: translate(3px, -3px);
  color: var(--a);
}

.signal-desc {
  margin: 0 0 14px;
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 62ch;
}

.signal-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.signal-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.signal-domain {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.8;
}

.signal-domain::before {
  content: '→ ';
  color: var(--a);
}

/* ── block-builder override: project shelf ───────────── */
.signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  perspective: 1200px;
}

.signal {
  transform: translateY(42px) rotateX(12deg) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.signal:nth-child(2n) { transition-delay: 0.08s; }
.signal:nth-child(3n) { transition-delay: 0.16s; }
.signal:nth-child(4n) { transition-delay: 0.24s; }

.signal.is-visible {
  transform: translateY(0) rotateX(0deg) scale(1);
}

.signal-link {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  align-items: stretch;
  min-height: 330px;
  gap: 18px;
  padding: 26px;
  border-radius: 28px;
  border-color: color-mix(in srgb, var(--a) 32%, rgba(255, 255, 255, 0.12));
  background:
    radial-gradient(circle at 26px 24px, rgba(255, 255, 255, 0.5) 0 8px, transparent 9px),
    radial-gradient(circle at 68px 24px, rgba(255, 255, 255, 0.42) 0 8px, transparent 9px),
    radial-gradient(circle at 110px 24px, rgba(255, 255, 255, 0.34) 0 8px, transparent 9px),
    linear-gradient(145deg, color-mix(in srgb, var(--a) 34%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.035) 48%),
    rgba(10, 9, 16, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 34px rgba(0, 0, 0, 0.22),
    0 28px 70px rgba(0, 0, 0, 0.24);
  animation: brick-breathe 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.35s);
}

.signal-link::before {
  opacity: 0.52;
  background: radial-gradient(
    420px circle at var(--px) var(--py),
    color-mix(in srgb, var(--b) 22%, transparent),
    transparent 70%
  );
}

.signal-link::after {
  left: 18px;
  right: 18px;
  top: auto;
  bottom: 14px;
  width: auto;
  height: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.25) 0 4px, transparent 5px) 0 0 / 30px 100%,
    linear-gradient(90deg, color-mix(in srgb, var(--a) 42%, transparent), color-mix(in srgb, var(--b) 34%, transparent));
  opacity: 0.72;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.signal-link:hover,
.signal-link:focus-visible {
  background:
    radial-gradient(circle at 26px 24px, rgba(255, 255, 255, 0.56) 0 8px, transparent 9px),
    radial-gradient(circle at 68px 24px, rgba(255, 255, 255, 0.48) 0 8px, transparent 9px),
    radial-gradient(circle at 110px 24px, rgba(255, 255, 255, 0.4) 0 8px, transparent 9px),
    linear-gradient(145deg, color-mix(in srgb, var(--a) 44%, rgba(255, 255, 255, 0.07)), rgba(255, 255, 255, 0.055) 48%),
    rgba(10, 9, 16, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 34px rgba(0, 0, 0, 0.18),
    0 34px 92px color-mix(in srgb, var(--a) 24%, rgba(0, 0, 0, 0.3));
}

.signal-link:hover::before,
.signal-link:focus-visible::before {
  opacity: 0.9;
}

.signal-link:hover::after,
.signal-link:focus-visible::after {
  width: auto;
  transform: translateY(-4px);
}

.signal-index {
  justify-self: end;
  color: color-mix(in srgb, var(--a) 72%, var(--text));
}

.signal-visual {
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
}

.signal-glyph {
  width: 72px;
  height: 64px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 24px 12px, rgba(255, 255, 255, 0.5) 0 6px, transparent 7px),
    radial-gradient(circle at 50px 12px, rgba(255, 255, 255, 0.42) 0 6px, transparent 7px),
    linear-gradient(135deg, var(--a), var(--b));
  animation: glyph-wiggle 3.4s ease-in-out infinite;
}

.signal-bars {
  height: 28px;
  margin-left: auto;
}

.signal-body {
  align-self: end;
}

.signal-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.signal-desc {
  max-width: 34ch;
}

.signal-tags li {
  color: color-mix(in srgb, var(--a) 42%, var(--text));
  background: rgba(255, 255, 255, 0.07);
  border-color: color-mix(in srgb, var(--a) 24%, var(--border));
}

.signal-domain::before {
  content: 'snap → ';
}

.signal:nth-child(1) .signal-link { --i: 1; }
.signal:nth-child(2) .signal-link { --i: 2; }
.signal:nth-child(3) .signal-link { --i: 3; }
.signal:nth-child(4) .signal-link { --i: 4; }
.signal:nth-child(5) .signal-link { --i: 5; }
.signal:nth-child(6) .signal-link { --i: 6; }
.signal:nth-child(7) .signal-link { --i: 7; }
.signal:nth-child(8) .signal-link { --i: 8; }
.signal:nth-child(9) .signal-link { --i: 9; }
.signal:nth-child(10) .signal-link { --i: 10; }

@keyframes brick-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes glyph-wiggle {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-5px); }
}

/* ── footer ──────────────────────────────────────────── */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 64px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 6px;
}

footer .muted {
  color: var(--text-dim);
}

.footer-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  margin: 18px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-instagram:hover,
.footer-instagram:focus-visible {
  color: var(--green-bright);
  border-color: var(--green-bright);
  transform: translateY(-2px);
}

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
  .hero {
    max-width: none;
  }

  .hero-title {
    max-width: 760px;
  }

  .dev-lab {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 560px);
    min-width: 0;
    margin: 34px 0 32px;
  }

  .builder-stage {
    transform: none;
    height: 320px;
  }

  .signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topnav {
    display: none;
  }

  .dev-lab {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    margin: 28px 0 30px;
  }

  .builder-stage {
    height: 280px;
    border-radius: 24px;
  }

  .drop-block {
    width: 92px;
    height: 56px;
  }

  .drop-a { left: 24px; bottom: 54px; }
  .drop-b { left: 124px; bottom: 54px; }
  .drop-c { left: 74px; bottom: 114px; }
  .drop-d { left: 24px; bottom: 174px; }
  .drop-e { left: 124px; bottom: 174px; }

  .signals {
    grid-template-columns: 1fr;
  }

  .signal-link {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
    transform: none !important;
  }

  .signal-index {
    order: -1;
  }

  .signal-visual {
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .signal {
    opacity: 1;
    transform: none;
  }

  .veil {
    opacity: 0;
  }
}
