/* ---------- tokens ---------- */

:root {
  --bg: #090a0e;
  --surface: #14161b;
  --surface-raised: #181b21;
  --border: #23262e;
  --text: #e7e9ee;
  /* explicit token for "this is body/foreground white", distinct from --accent */
  --ink: #e7e9ee;
  /* prose color — clears AA on both --bg and --surface */
  --text-body: #c5cad6;
  --text-muted: #8a8f9c;
  /* #8b94a6 ≈ 4.5:1 on --surface (cards), not just on --bg — fixes .tech-line on cards */
  --text-faint: #8b94a6;

  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Fira Code', Menlo, monospace;
  --font-display: 'Clash Display', var(--font-sans);

  /* signal ramp — journey palette (propagates site-wide later) */
  --signal-cyan: #34e7ff;
  --signal-magenta: #f072d0;
  --signal-rose: #fb7185;
  --signal-amber: #ffbf45;
  --signal-periwinkle: #8b9cf6;
  --signal-vision: #5ef2a4;
  --void: #08090c;

  /* cyan leads the brand — already opens the spine, aurora and name sheen */
  --accent: #34e7ff;
  --accent-2: #8b9cf6;
  /* reserved EXCLUSIVELY for conversion: Live pills, primary CTA, active nav */
  --accent-conversion: #5ef2a4;

  /* modular type scale — 1.2 minor third */
  --t--1: 0.833rem;
  --t-0: 1rem;
  --t-1: 1.2rem;
  --t-2: 1.44rem;
  --t-3: 1.728rem;
  --t-4: 2.074rem;
  --eyebrow: 0.78rem;

  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* keyboard focus: visible ring, mouse clicks unaffected */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- shared animations ---------- */

.enter {
  opacity: 0;
  transform: translateY(14px);
  animation: enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.enter-1 {
  animation-delay: 0.05s;
}

.enter-2 {
  animation-delay: 0.18s;
}

.enter-3 {
  animation-delay: 0.32s;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- shell ---------- */

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  transition: text-shadow 0.2s ease;
}

.logo-mark {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}

/* chromatic aberration on hover — a small prism nod */
.wordmark:hover {
  text-shadow:
    -2px 0 0 rgba(255, 60, 80, 0.7),
    2px 0 0 rgba(60, 160, 255, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
}

.site-nav a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

/* active route gets a cyan underline */
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* contact is the one nav item in the conversion color */
.nav-contact {
  color: var(--accent-conversion) !important;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  color: var(--text-faint);
}

.nav-github:hover {
  color: var(--text);
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
  }

  .site-nav {
    gap: 13px;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .wordmark {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  /* keep the M mark, drop the wordmark text so the nav never wraps */
  .wordmark {
    font-size: 0;
    gap: 0;
  }
}

.site-main {
  flex: 1;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 0 40px;
}

.colophon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
}

.copyright {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}

/* The running version, set apart from the copyright it sits beside. */
.version {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  opacity: 0.7;
}

.version::before {
  content: ' · ';
}

/* ---------- social links ---------- */

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--text-faint);
  transform: translateY(-2px);
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* ---------- keycaps ---------- */

.keycap {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78em;
  line-height: 1;
  padding: 4px 9px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text-muted);
}

.keycap-space {
  padding-left: 22px;
  padding-right: 22px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56vh;
  padding: 40px 0;
}

.aurora {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob {
  position: absolute;
  display: block;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
}

.aurora-1 {
  background: var(--signal-cyan);
  top: 8%;
  left: 4%;
  animation: drift-a 26s ease-in-out infinite alternate;
}

.aurora-2 {
  background: var(--signal-magenta);
  top: 30%;
  right: 6%;
  animation: drift-b 32s ease-in-out infinite alternate;
}

.aurora-3 {
  background: var(--signal-vision);
  bottom: 0;
  left: 38%;
  width: 340px;
  height: 340px;
  opacity: 0.1;
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate(90px, 60px) scale(1.15);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-110px, 40px) scale(0.9);
  }
}

@keyframes drift-c {
  to {
    transform: translate(60px, -70px) scale(1.2);
  }
}

/* quiet always-on flow field — the journey "wire" idling at the front door */
.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 50%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 70% 50%, #000 30%, transparent 78%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(
    110deg,
    var(--text) 0%,
    var(--text) 38%,
    var(--signal-cyan) 46%,
    var(--signal-magenta) 50%,
    var(--signal-amber) 54%,
    var(--signal-periwinkle) 58%,
    var(--text) 66%,
    var(--text) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* sheen fires ONCE on load — a flourish, not a screensaver loop */
  animation:
    enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    sheen-once 2.8s cubic-bezier(0.16, 1, 0.3, 1) 1.3s 1 both;
}

@keyframes sheen-once {
  0%,
  100% {
    background-position: 100% 0;
  }
  55% {
    background-position: 0% 0;
  }
}

.hero-tagline {
  margin-top: 22px;
  max-width: 22em;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-sub {
  margin-top: 12px;
  max-width: 34em;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-stack {
  margin-top: 18px;
  font-size: 0.85rem;
}

/* ---------- work grid ---------- */

.section-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: var(--t-3);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-lede {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 38em;
  line-height: 1.5;
}

/* ---------- signal band (home → journey) ---------- */

.signal-band {
  /* break out of the 1080 column to read as a full-bleed band */
  margin: 8px calc(50% - 50vw) 8px;
  width: 100vw;
}

.signal-band-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px clamp(24px, 5vw, 64px);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0b0d12, #090a0e);
  transition: border-color 0.25s ease;
}

.signal-band-link .hero-field {
  opacity: 0.5;
}

.signal-band-link:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.sb-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-label {
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 78%, var(--text-faint));
}

.sb-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sb-line {
  max-width: 40em;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.sb-go {
  position: relative;
  z-index: 2;
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.signal-band-link:hover .sb-go {
  transform: translateX(4px);
}

@media (max-width: 760px) {
  .signal-band-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.work {
  padding: 24px 0 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* gradient hairline that sweeps in across the card top on hover */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  transform: translateY(-3px);
  box-shadow: 0 14px 44px -18px color-mix(in srgb, var(--accent) 50%, transparent);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  image-rendering: pixelated;
}

/* status pill — Live (green) / Open source (cyan) / In development (amber) */
.status-pill {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-live {
  color: var(--accent-conversion);
  border: 1px solid color-mix(in srgb, var(--accent-conversion) 45%, transparent);
  background: color-mix(in srgb, var(--accent-conversion) 12%, transparent);
}

.status-open-source {
  color: var(--signal-cyan);
  border: 1px solid color-mix(in srgb, var(--signal-cyan) 40%, transparent);
  background: color-mix(in srgb, var(--signal-cyan) 10%, transparent);
}

.status-in-dev {
  color: var(--signal-amber);
  border: 1px solid color-mix(in srgb, var(--signal-amber) 35%, transparent);
  background: color-mix(in srgb, var(--signal-amber) 9%, transparent);
}

.card-tagline {
  color: var(--text-muted);
  line-height: 1.5;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.card-signals,
.project-signals {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-signals {
  flex: none;
  justify-content: flex-end;
}

.github-stars {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--signal-amber);
  white-space: nowrap;
}

.tech-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  transition: color 0.25s ease;
}

.project-card:hover .tech-line {
  color: color-mix(in srgb, var(--accent) 70%, var(--text-faint));
}

/* ---------- project page ---------- */

.project-page {
  position: relative;
  padding: 24px 0 48px;
}

.project-hero {
  position: relative;
  padding: 40px 0 32px;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    ellipse at top left,
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.crumb {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.crumb:hover {
  color: var(--text);
}

.project-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-top: 20px;
  border-radius: 14px;
  image-rendering: pixelated;
}

.project-name {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-tagline {
  margin-top: 12px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-hero .tech-line {
  margin-top: 16px;
}

.project-signals {
  margin-top: 18px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 32px -14px var(--accent);
}

/* live products convert in the one reserved color */
.cta-live {
  color: #06281b;
  background: var(--accent-conversion);
  border-color: var(--accent-conversion);
}

.cta-live:hover {
  box-shadow: 0 12px 32px -14px var(--accent-conversion);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.cta-secondary:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.project-description {
  max-width: 44em;
  line-height: 1.65;
  color: var(--text);
}

.play-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  min-height: 280px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.play-stage-hint {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.play-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.notes {
  margin-top: 48px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    border-color 0.25s ease,
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.note:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.note-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.note-body {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 52vh;
  }

  .aurora-blob {
    width: 280px;
    height: 280px;
    filter: blur(70px);
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .enter,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-name {
    background-position: 100% 0;
  }

  .logo-mark {
    content: url('/m-logo.png');
  }
}

/* ---------- legal / policy ---------- */

.policy {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.policy .project-hero {
  padding-bottom: 24px;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.policy-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.policy-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.policy-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.policy-card h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.policy-card p {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.policy-body {
  margin-top: 44px;
}

.policy-body .lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.policy-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.policy-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.policy-heading::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.policy-body p {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--text) 82%, var(--text-muted));
}

.policy-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 0.2s ease;
}

.policy-body a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 760px) {
  .policy-summary {
    grid-template-columns: 1fr;
  }
}

/* ---------- about ---------- */

.about {
  max-width: 48rem;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.about-body {
  margin-top: 12px;
}

.about-lede {
  max-width: 42em;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
}

.about-body p {
  margin-top: 18px;
  max-width: 42em;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
}

.about-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.about-body a:hover {
  border-bottom-color: var(--accent);
}

.about-facets {
  margin-top: 44px;
}

.about-contact {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

/* ---------- journey page (the Signal) ---------- */

.journey-page {
  position: relative;
  background: var(--void);
  padding-bottom: 14vh;
}

/* fixed full-bleed flow-field canvas (the wire) */
.j-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.journey-page > .journey-intro,
.journey-page > .j-chapter,
.journey-page > .j-finale-cta {
  position: relative;
  z-index: 1;
}

/* finale payoff — the scroll resolves into a call to action */
.j-finale-cta {
  max-width: 40rem;
  margin: 0 auto;
  padding: 12vh 0 8vh;
  text-align: center;
}

.j-finale-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(
    100deg,
    var(--signal-cyan),
    var(--signal-magenta) 50%,
    var(--signal-periwinkle)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.j-finale-line {
  margin: 18px auto 28px;
  max-width: 32rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-body);
}

.j-finale-cta .project-actions {
  justify-content: center;
}

.j-finale-cta .j-tag {
  color: color-mix(in srgb, var(--signal-cyan) 70%, var(--text-faint));
}

.journey-intro {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0 8px;
}

.journey-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 0.98;
  background: linear-gradient(
    100deg,
    var(--signal-cyan),
    var(--signal-magenta) 50%,
    var(--signal-periwinkle)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.journey-sub {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* progress spine — fixed left rail */
.j-spine {
  position: fixed;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 3;
  pointer-events: none;
}

.j-spine-track {
  position: absolute;
  inset: 0;
  background: #1c2029;
}

.j-spine-fill {
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: scaleY(var(--j-progress, 0));
  background: linear-gradient(
    to bottom,
    var(--signal-cyan),
    var(--signal-amber) 70%,
    var(--signal-periwinkle)
  );
}

.j-ticks {
  position: absolute;
  inset: 0;
  list-style: none;
}

.j-tick {
  position: absolute;
  left: 1px;
  top: var(--pos);
  transform: translate(-50%, -50%);
}

.j-tick-link {
  display: block;
  position: relative;
  padding: 9px;
  margin: -9px;
  pointer-events: auto;
  border-radius: 50%;
}

.j-tick-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.j-tick-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2f3a;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.j-tick-link:hover .j-tick-dot {
  background: color-mix(in srgb, var(--accent) 70%, #2a2f3a);
  transform: scale(1.3);
}

.j-tick-link:hover .j-tick-year {
  opacity: 1;
}

.j-tick.is-past .j-tick-dot {
  background: color-mix(in srgb, var(--accent) 55%, #2a2f3a);
}

.j-tick.is-active .j-tick-dot {
  background: var(--accent);
  transform: scale(1.6);
  box-shadow: 0 0 16px -1px var(--accent);
}

.j-tick-year {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text-faint);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

.j-tick.is-active .j-tick-year {
  opacity: 1;
  color: var(--accent);
}

/* chapters */
.j-chapter {
  position: relative;
  min-height: 150vh;
}

.j-beat {
  min-height: 168vh;
}

.j-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.j-ghost-year {
  position: absolute;
  right: -1vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 17rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--accent) 11%, transparent);
  transition: color 0.6s ease;
  pointer-events: none;
  user-select: none;
}

.j-chapter.is-active .j-ghost-year {
  color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.j-copy {
  position: relative;
  max-width: 40rem;
  padding: 8px 0;
}

.j-copy::before {
  content: '';
  position: absolute;
  inset: -36px -56px;
  z-index: -1;
  background: radial-gradient(
    110% 120% at 28% 50%,
    rgba(8, 9, 12, 0.88),
    rgba(8, 9, 12, 0.42) 56%,
    transparent
  );
}

.j-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.j-index i {
  color: var(--text-faint);
  font-style: normal;
}

.j-tag {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.j-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.06;
  /* breathes open as the scroll speeds up (--j-vel set by useJourneyScroll) */
  letter-spacing: calc(-0.02em + var(--j-vel, 0) * 0.05em);
  color: var(--text);
}

.j-beat .j-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.j-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.j-word > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 55ms);
}

.j-chapter.is-active .j-word > span {
  transform: translateY(0);
}

.j-word + .j-word {
  margin-left: 0.28em;
}

.j-body {
  margin-top: 20px;
  max-width: 32rem;
  font-size: 1.12rem;
  line-height: 1.68;
  color: var(--text-body);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease 0.15s,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.j-chapter.is-active .j-body {
  opacity: 1;
  transform: translateY(0);
}

.j-code {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--accent) 75%, var(--text-faint));
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

.j-chapter.is-active .j-code {
  opacity: 0.92;
}

.j-finale .j-ghost-year {
  right: 50%;
  transform: translate(50%, -50%);
}

@media (max-width: 760px) {
  .j-spine {
    left: 12px;
  }

  .j-chapter,
  .j-beat {
    min-height: 132vh;
  }

  .j-stage {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
  }

  .j-ghost-year {
    font-size: clamp(4.5rem, 26vw, 8rem);
    right: -2vw;
    top: 32%;
  }

  .j-copy {
    max-width: 100%;
  }

  .j-body {
    font-size: 1.04rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .j-word > span,
  .j-body,
  .j-code {
    transform: none;
    opacity: 1;
    transition: none;
  }
}
