@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Spectral:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --bg: #08090c;
  --bg-alt: #0f1119;
  --bg-raised: #14161f;
  --ink: #e7e4da;
  --muted: #8b8fa3;
  --muted-dim: #565a6b;
  --line: #22242f;
  --cyan: #4fd8d8;
  --cyan-dim: rgba(79, 216, 216, 0.15);
  --green: #76f452;
  --green-dim: rgba(118, 244, 82, 0.18);
  --green-hover: #8bff68;
  --magenta: #ff4d7d;
  --magenta-dim: rgba(255, 77, 125, 0.15);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Spectral', Georgia, serif;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

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

a { color: inherit; }

h1, h2, h3, .mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow.magenta { color: var(--magenta); }

/* ---------- Layout shell ---------- */
.shell { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: min(56vw, 470px);
  object-fit: contain;
}
@media (max-width: 720px) {
  .brand-logo {
    height: 46px;
    max-width: min(82vw, 360px);
  }
}
.nav-links {
  display: flex;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(118, 244, 82, 0.35);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.nav-toggle:hover span,
.nav-toggle[aria-expanded="true"] span { background: var(--green); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .shell { padding-left: 18px; padding-right: 18px; }

  .site-nav .shell { height: 70px; }
  .brand-logo {
    height: 40px;
    max-width: min(70vw, 250px);
  }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    gap: 2px;
    padding: 10px 18px 16px;
    background: rgba(0, 0, 0, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0,0,0,0.42);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 4px;
    font-size: 14px;
  }
  .nav-links a.active::after {
    left: 4px;
    right: auto;
    width: 36px;
    bottom: 5px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 120px;
  margin-top: 96px;
}
.site-footer .shell {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .foot-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-dim);
  line-height: 1.8;
}
.site-footer .foot-mono a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer .foot-mono a:hover { color: var(--green); }
.site-footer .foot-links {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.site-footer .foot-links a { text-decoration: none; color: var(--muted); }
.site-footer .foot-links a:hover { color: var(--green); }

/* ---------- Transmission log (signature element) ---------- */
.tlog {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.tlog-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.06em;
}
.tlog-toggle:hover { color: var(--green); border-color: var(--green-dim); }
.tlog-toggle .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(118, 244, 82, 0.38);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.tlog-panel {
  display: none;
  position: absolute;
  bottom: 44px;
  right: 0;
  width: 280px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.tlog-panel.open { display: block; }
.tlog-panel .tlog-title {
  color: var(--muted-dim);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tlog-line {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.tlog-line:first-of-type { border-top: none; }
.tlog-line .tag { color: var(--cyan); flex-shrink: 0; }
.tlog-line.m .tag { color: var(--magenta); }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-boot {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-dim);
  margin-bottom: 28px;
  min-height: 1.4em;
}
.hero-boot .cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--cyan);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: -2px;
}
@keyframes blink { 50% { opacity: 0; } }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.02;
  margin: 0 0 24px;
  font-weight: 700;
}
.hero h1 .accent { color: var(--cyan); }
.hero-no-break { white-space: nowrap; }
@media (max-width: 720px) {
  .hero-no-break { white-space: normal; }
}

.hero p.lede {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-whisper {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 38px;
}
.hero-whisper em { font-weight: 400; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--green);
  color: #06090a;
  font-weight: 600;
}
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green-dim); color: var(--green); }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 48px; max-width: 640px; }
.section-head h2 {
  font-size: 32px;
  margin: 10px 0 14px;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--green-dim); transform: translateY(-2px); }
.card.magenta-hover:hover { border-color: var(--magenta-dim); }

/* ---------- Page header (non-home pages) ---------- */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 12px 0 16px; }
.page-head p { color: var(--muted); max-width: 620px; font-size: 17px; margin: 0; }

/* ---------- Utility ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  background: var(--cyan-dim);
  padding: 3px 8px;
  border-radius: 2px;
  margin: 0 6px 6px 0;
}
.tag.magenta { color: var(--magenta); border-color: var(--magenta-dim); background: var(--magenta-dim); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.placeholder-tile {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(79,216,216,0.06), rgba(255,77,125,0.05)),
    var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 20px;
}
.placeholder-tile .glyph {
  font-size: 22px;
  color: var(--muted-dim);
}

.char-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.char-card h3 { font-size: 21px; margin: 4px 0 4px; }
.char-card .role { color: var(--muted-dim); font-family: var(--font-mono); font-size: 12px; margin-bottom: 16px; display: block; }
.char-card p { color: var(--muted); margin: 0 0 12px; }
.char-card p:last-child { margin-bottom: 0; }
.char-card strong { color: var(--ink); font-weight: 500; }


/* ---------- Manifesto ---------- */
.manifesto-shell { max-width: 900px; }
.manifesto-head { max-width: 780px; margin-bottom: 44px; }
.manifesto-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  margin-top: 12px;
}
.manifesto-copy {
  max-width: 760px;
  font-size: 18px;
}
.manifesto-copy p {
  color: #b6b8c5;
  margin: 0 0 24px;
}
.manifesto-emphasis {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink) !important;
  padding-left: 20px;
  border-left: 2px solid var(--cyan);
}
.manifesto-credo {
  margin: 42px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-credo p {
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 10px;
}
.manifesto-credo p:last-child {
  color: var(--green);
  margin-bottom: 0;
}
.manifesto-bridge {
  color: var(--ink) !important;
  font-size: 20px;
  line-height: 1.65;
}
.manifesto-bridge strong { color: var(--cyan); font-weight: 500; }
.manifesto-coda {
  margin-top: 44px !important;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-style: italic;
  color: var(--ink) !important;
}
@media (max-width: 720px) {
  .manifesto-copy { font-size: 17px; }
  .manifesto-emphasis { font-size: 19px; padding-left: 14px; }
}


/* ---------- Mobile layout pass ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .hero {
    padding: 68px 0 56px;
  }
  .hero-boot {
    font-size: 11.5px;
    margin-bottom: 22px;
  }
  .hero h1 {
    font-size: clamp(34px, 9.4vw, 44px);
    line-height: 1.06;
    margin-bottom: 20px;
  }
  .hero-no-break { white-space: normal; }
  .hero-whisper {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .hero-cta {
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 27px; line-height: 1.2; }
  .manifesto-head h2 { font-size: 32px; }
  .manifesto-copy { font-size: 16.5px; }
  .manifesto-copy p { margin-bottom: 21px; }
  .manifesto-emphasis { font-size: 18px; line-height: 1.55; }
  .manifesto-bridge { font-size: 18px; }
  .manifesto-credo { margin: 34px 0; padding: 20px 0; }

  .page-head { padding: 52px 0 42px; }
  .page-head h1 { font-size: 34px; }

  .card, .char-card { padding: 22px; }

  .site-footer {
    padding: 38px 0 100px;
    margin-top: 64px;
  }
  .site-footer .shell {
    flex-direction: column;
    gap: 22px;
  }
  .site-footer .foot-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .site-footer .foot-mono {
    overflow-wrap: anywhere;
  }

  .tlog {
    right: 12px;
    bottom: 12px;
  }
  .tlog-panel {
    width: min(300px, calc(100vw - 24px));
    max-height: 62vh;
    overflow-y: auto;
  }
}

@media (max-width: 380px) {
  .brand-logo { max-width: 230px; height: 37px; }
  .nav-toggle { width: 42px; height: 42px; }
  .hero h1 { font-size: 32px; }
}


/* ==========================================================
   Mobile v2 — phone-first layout
   Keeps the desktop design intact while making the site feel
   native on narrow touch screens.
   ========================================================== */
html, body { max-width: 100%; overflow-x: clip; }

@media (max-width: 768px) {
  html { scroll-padding-top: 64px; }
  body {
    font-size: 16px;
    padding-bottom: 62px;
    -webkit-text-size-adjust: 100%;
  }

  .shell {
    width: 100%;
    max-width: none;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  /* Compact sticky header */
  .site-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .site-nav .shell { height: 64px; }
  .brand { min-width: 0; }
  .brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(245px, calc(100vw - 86px));
    object-fit: contain;
    object-position: left center;
  }
  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    padding: 9px;
    flex: 0 0 40px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links {
    display: none;
    position: fixed;
    z-index: 80;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px max(18px, env(safe-area-inset-right)) 18px max(18px, env(safe-area-inset-left));
    flex-direction: column;
    gap: 0;
    background: rgba(5, 6, 8, 0.985);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 45px rgba(0,0,0,.55);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 14px 2px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.045);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active::after {
    left: 2px;
    right: auto;
    bottom: 7px;
    width: 42px;
  }
  body.nav-open { overflow: hidden; }

  /* Hero */
  .hero { padding: 54px 0 50px; }
  .hero-boot {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 10.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .hero h1 {
    max-width: 100%;
    margin: 0 0 20px;
    font-size: clamp(34px, 10.6vw, 46px);
    line-height: 1.045;
    letter-spacing: -0.025em;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hero-no-break { white-space: normal; }
  .hero-whisper {
    max-width: 31rem;
    margin-bottom: 28px;
    font-size: clamp(17px, 4.8vw, 19px);
    line-height: 1.48;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 360px;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 13px 18px;
  }

  /* Main sections */
  .section { padding: 58px 0; }
  .section-head { max-width: none; margin-bottom: 30px; }
  .section-head h2 {
    margin: 10px 0 13px;
    font-size: clamp(27px, 8.1vw, 34px);
    line-height: 1.12;
    text-wrap: balance;
  }
  .section-head p { font-size: 16px; line-height: 1.6; }
  .eyebrow { font-size: 10.5px; letter-spacing: .12em; }

  /* Manifesto */
  .manifesto-shell, .manifesto-head, .manifesto-copy { max-width: none; }
  .manifesto-head { margin-bottom: 32px; }
  .manifesto-head h2 {
    font-size: clamp(29px, 8.7vw, 36px);
    line-height: 1.12;
  }
  .manifesto-copy { font-size: 16.5px; line-height: 1.67; }
  .manifesto-copy p { margin-bottom: 22px; }
  .manifesto-emphasis {
    padding-left: 14px;
    font-size: 18px;
    line-height: 1.55;
  }
  .manifesto-credo { margin: 32px 0; padding: 20px 0; }
  .manifesto-credo p { font-size: clamp(18px, 5.3vw, 22px); }
  .manifesto-bridge { font-size: 18px; line-height: 1.62; }
  .manifesto-coda { margin-top: 36px !important; padding-top: 24px; }

  /* Cards and grids */
  .grid, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card, .char-card { min-width: 0; padding: 20px; }
  .card h3, .char-card h3 { overflow-wrap: anywhere; }
  .tag { max-width: 100%; white-space: normal; }

  /* Other pages */
  .page-head { padding: 48px 0 40px; }
  .page-head h1 {
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.08;
  }
  .page-head p { font-size: 16px; }

  /* Footer */
  .site-footer { margin-top: 48px; padding: 36px 0 82px; }
  .site-footer .shell { flex-direction: column; gap: 24px; }
  .site-footer .foot-mono {
    width: 100%;
    font-size: 11px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }
  .site-footer .foot-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
  .site-footer .foot-links a { min-height: 34px; display: flex; align-items: center; }

  /* Protocol Log becomes a compact mobile sheet */
  .tlog {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .tlog-toggle {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 10.5px;
    touch-action: manipulation;
  }
  .tlog-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 62px;
    width: auto;
    max-height: min(62vh, 460px);
    overflow-y: auto;
  }
}

@media (max-width: 390px) {
  .shell { padding-left: 15px; padding-right: 15px; }
  .brand-logo { height: 37px; max-width: min(225px, calc(100vw - 78px)); }
  .hero { padding-top: 46px; }
  .hero h1 { font-size: clamp(31px, 10.2vw, 39px); }
  .hero-whisper { font-size: 17px; }
  .manifesto-copy { font-size: 16px; }
  .site-footer .foot-links { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero welcome signal ---------- */
.hero-welcome {
  --welcome-cyan: #2f7f87;
  --welcome-green: var(--green);
  --welcome-peak: #b8ff9e;

  margin: 4px 0 14px;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--welcome-cyan);
}

/*
  One narrow light band moves through the glyphs. Visually it reads as
  letter-by-letter illumination, but stays smooth and lightweight.
  42% of the 5.2s cycle is the sweep (~2.2s); the rest is the quiet pause.
*/
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .welcome-glow {
    /*
      The gradient image is deliberately wider than the text, but it only
      travels from 100% to 0%. That keeps the darker cyan base visible across
      the entire sentence at every point in the animation.
    */
    background-image: linear-gradient(
      90deg,
      var(--welcome-cyan) 0%,
      var(--welcome-cyan) 49.35%,
      var(--welcome-green) 49.72%,
      var(--welcome-peak) 50%,
      var(--welcome-green) 50.28%,
      var(--welcome-cyan) 50.65%,
      var(--welcome-cyan) 100%
    );
    background-size: 340% 100%;
    background-position: 100% 50%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: welcome-signal-sweep 8s linear infinite;
  }

  @keyframes welcome-signal-sweep {
    0%   { background-position: 100% 50%; }
    60%  { background-position: 0% 50%; }
    100% { background-position: 0% 50%; }
  }
}

.hero-whisper {
  font-size: clamp(16px, 1.85vw, 20px);
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-glow {
    animation: none !important;
    background: none !important;
    color: #2f7f87 !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

@media (max-width: 768px) {
  .hero-welcome {
    margin: 2px 0 12px;
    max-width: 34rem;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.6;
  }

  .hero-whisper {
    font-size: clamp(16px, 4.55vw, 18px);
  }
}

/* ---------- Project gateway ---------- */
.project-gateway {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.project-gateway-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    color .18s ease,
    border-color .18s ease,
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.project-gateway-link:hover,
.project-gateway-link:focus-visible {
  color: var(--green);
  border-color: var(--green-dim);
  background: rgba(118, 244, 82, 0.045);
  box-shadow: 0 0 18px rgba(118, 244, 82, 0.08);
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 768px) {
  .project-gateway {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 38px;
    padding-top: 24px;
  }

  .project-gateway-link {
    min-height: 54px;
    padding: 13px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 430px) {
  .project-gateway {
    grid-template-columns: 1fr;
  }
}

/* ---------- Project page Home shortcuts ---------- */
.page-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.page-title-row h1 {
  margin-right: 0;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 7px;
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(79, 216, 216, 0.035);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.home-chip:hover,
.home-chip:focus-visible {
  color: var(--green);
  border-color: var(--green-dim);
  background: rgba(118, 244, 82, 0.045);
  box-shadow: 0 0 12px rgba(118, 244, 82, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.page-bottom-home {
  padding: 34px 0 0;
}

.page-bottom-home .shell {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .page-title-row {
    gap: 10px;
  }

  .home-chip {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 11.5px;
  }

  .page-bottom-home {
    padding-top: 26px;
  }
}

/* ---------- Protocol Log crew hierarchy ---------- */
.tlog-group-label {
  margin: 6px 0 5px;
  color: var(--muted-dim);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tlog-group-spaced {
  margin-top: 12px;
}

.tlog-line {
  align-items: center;
}

.tlog-line > span:last-child {
  min-width: 0;
}

.tlog-founder {
  color: var(--green);
  border-color: var(--green-dim);
  background: var(--green-dim);
}

.tlog-collab {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  background: var(--cyan-dim);
}

/* ---------- Data-driven discography ---------- */
.release-grid .release-card,
.release-list .release-card {
  overflow: hidden;
}

.release-list {
  display: grid;
  gap: 18px;
}

.release-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.release-card-body {
  min-width: 0;
  padding: 24px 26px;
}

.release-card h3 {
  font-size: 20px;
  margin: 8px 0 0;
}

.release-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.release-card.has-cover {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
}

.release-cover-wrap {
  min-height: 100%;
  background: var(--bg-raised);
  border-right: 1px solid var(--line);
}

.release-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.release-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.release-meta-row time {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.release-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.release-link {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.release-link:hover {
  color: var(--green);
}

.release-empty {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

@media (max-width: 640px) {
  .release-card.has-cover {
    grid-template-columns: 1fr;
  }

  .release-cover-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .release-cover {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .release-card-body {
    padding: 20px;
  }
}
