:root {
  --bg: #040208;
  --bg-2: #090511;
  --panel: rgba(18, 12, 31, 0.72);
  --panel-strong: rgba(30, 17, 54, 0.84);
  --line: rgba(214, 196, 255, 0.2);
  --line-strong: rgba(214, 196, 255, 0.34);
  --text: #f8f5ff;
  --muted: #d2c2f3;
  --purple-900: #22094a;
  --purple-700: #5d2fa9;
  --purple-500: #8d65e6;
  --purple-300: #bba0fb;
  --purple-200: #d6c4ff;
  --cyan-glow: rgba(90, 232, 255, 0.18);
  --pink-glow: rgba(255, 114, 214, 0.12);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.32);
  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(900px 450px at 12% 8%, rgba(141, 101, 230, 0.15), transparent 55%),
    radial-gradient(800px 420px at 88% 10%, rgba(187, 160, 251, 0.09), transparent 55%),
    radial-gradient(700px 340px at 72% 62%, rgba(90, 232, 255, 0.06), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, #05030b 45%, #030207 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  z-index: -3;
}

.background-glow {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -4;
  filter: blur(22px);
  background:
    radial-gradient(40% 28% at 20% 15%, rgba(93, 47, 169, 0.35), transparent 70%),
    radial-gradient(32% 26% at 82% 18%, rgba(214, 196, 255, 0.22), transparent 72%),
    radial-gradient(28% 24% at 70% 70%, rgba(90, 232, 255, 0.14), transparent 78%);
  animation: driftGlow 16s ease-in-out infinite alternate;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.2;
  background:
    linear-gradient(transparent 94%, rgba(214, 196, 255, 0.15) 100%),
    linear-gradient(90deg, transparent 94%, rgba(214, 196, 255, 0.12) 100%);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-300), rgba(90, 232, 255, 0.7));
  box-shadow: 0 0 14px rgba(187, 160, 251, 0.55);
  transition: width 80ms linear;
}

.site-header,
main,
.site-footer {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 20;
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 196, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(214, 196, 255, 0.08), transparent 45%),
    rgba(8, 6, 14, 0.62);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.02rem;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(135deg, rgba(187, 160, 251, 0.14), rgba(34, 9, 74, 0.22));
  border: 1px solid rgba(214, 196, 255, 0.18);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(214, 196, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

main {
  display: grid;
  gap: 1.1rem;
  padding: 1rem 0 2.4rem;
}

.panel,
.metric-strip-card,
.journey-card,
.rail-card,
.info-card,
.workflow-step,
.hero-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(35, 20, 64, 0.72), rgba(9, 7, 15, 0.86)),
    rgba(12, 8, 21, 0.8);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.panel::before,
.metric-strip-card::before,
.journey-card::before,
.rail-card::before,
.info-card::before,
.workflow-step::before,
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(220px 220px at var(--mx) var(--my), rgba(214, 196, 255, 0.14), transparent 65%),
    radial-gradient(160px 160px at calc(var(--mx) + 8%) calc(var(--my) - 10%), var(--cyan-glow), transparent 70%);
  opacity: 0.9;
}

.panel::after,
.metric-strip-card::after,
.journey-card::after,
.rail-card::after,
.info-card::after,
.workflow-step::after,
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.1) 35%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 26%);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.panel:hover,
.panel:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(214, 196, 255, 0.08) inset;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 550ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

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

.eyebrow {
  margin: 0;
  color: var(--purple-200);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  font-size: 0.78rem;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.hero {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 430px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -25% 40% auto -10%;
  height: 80%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(90, 232, 255, 0.12), transparent 65%);
  filter: blur(18px);
  animation: heroPulse 6s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -12% 38%;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 114, 214, 0.08), transparent 70%);
  filter: blur(22px);
  animation: heroPulse 7.5s ease-in-out infinite reverse;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.hero-accent {
  display: inline-block;
  background:
    linear-gradient(90deg, var(--purple-200) 0%, rgba(90, 232, 255, 0.95) 45%, #fff 58%, var(--purple-300) 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(187, 160, 251, 0.18);
  animation: shimmerText 7s linear infinite;
}

.headline-rotator {
  display: grid;
  gap: 0.2rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 196, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(214, 196, 255, 0.06), rgba(90, 232, 255, 0.05)),
    rgba(8, 7, 13, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.rotator-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.headline-rotator strong {
  font-size: 0.94rem;
  line-height: 1.25;
  color: var(--text);
}

.headline-rotator.is-switching strong {
  opacity: 0.35;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.hero-text {
  max-width: 58ch;
  color: var(--muted);
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 820px;
}

.mini-stat {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(214, 196, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(187, 160, 251, 0.08), rgba(34, 9, 74, 0.18)),
    rgba(255, 255, 255, 0.015);
  padding: 0.7rem 0.75rem;
  box-shadow: var(--shadow-md);
}

.mini-stat::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-200), rgba(90, 232, 255, 0.7), transparent);
  opacity: 0.6;
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.mini-stat strong {
  display: block;
  margin-top: 0.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.mini-stat small {
  display: block;
  margin-top: 0.15rem;
  color: rgba(210, 194, 243, 0.82);
  font-size: 0.72rem;
 }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn-solid {
  color: #0b0712;
  background: linear-gradient(135deg, var(--purple-200), var(--purple-500));
  box-shadow: 0 14px 28px rgba(93, 47, 169, 0.32);
}

.btn-solid:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--text);
  border-color: rgba(214, 196, 255, 0.24);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
  background: rgba(214, 196, 255, 0.08);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(214, 196, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 8, 17, 0.85), rgba(8, 6, 12, 0.92)),
    rgba(8, 7, 14, 0.8);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.hero-card h2 {
  font-size: 1.08rem;
  margin-bottom: 0;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid rgba(214, 196, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(90, 232, 255, 0.95);
  box-shadow: 0 0 12px rgba(90, 232, 255, 0.7);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-tile {
  margin: 0;
  padding: 0.8rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(214, 196, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(187, 160, 251, 0.16), rgba(34, 9, 74, 0.25)),
    rgba(255, 255, 255, 0.01);
}

.metric-tile p {
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-tile strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

.hero-telemetry {
  margin-top: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 196, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(214, 196, 255, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.015);
  padding: 0.8rem;
}

.telemetry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.telemetry-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.telemetry-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--purple-200);
}

.telemetry-bars {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: end;
  height: 70px;
}

.telemetry-bars span {
  display: block;
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(180deg, rgba(90, 232, 255, 0.85), rgba(141, 101, 230, 0.95));
  min-height: 8px;
  height: var(--bar);
  box-shadow: 0 0 12px rgba(141, 101, 230, 0.2);
  opacity: 0.85;
  transform-origin: bottom center;
  animation: telemetryBreath 3.2s ease-in-out infinite;
  animation-delay: var(--delay);
}

.terminal-feed {
  margin-top: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 196, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 13, 19, 0.24), transparent 34%),
    rgba(6, 7, 11, 0.72);
  padding: 0.8rem;
  position: relative;
  overflow: hidden;
}

.terminal-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 49%, transparent 51%, transparent 100%);
  background-size: 100% 6px;
  opacity: 0.35;
  pointer-events: none;
}

.terminal-feed__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.terminal-feed__status {
  color: rgba(90, 232, 255, 0.95);
  text-shadow: 0 0 10px rgba(90, 232, 255, 0.25);
}

.terminal-feed ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.terminal-feed li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  color: #d9fff7;
  font-size: 0.78rem;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.terminal-feed li span {
  color: rgba(214, 196, 255, 0.9);
  white-space: nowrap;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
}

.section-grid > .panel,
.stacked-section,
.dashboard-card,
.contact-card,
.page-hero,
.cta-panel {
  padding: 1.1rem;
}

.section-grid h2,
.stacked-section h2,
.dashboard-card h2,
.contact-card h2,
.page-hero h1,
.cta-panel h2 {
  margin-top: 0.45rem;
}

.section-grid p:not(.eyebrow),
.stacked-section p:not(.eyebrow),
.dashboard-card p:not(.eyebrow),
.contact-card p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.cta-panel p:not(.eyebrow) {
  color: var(--muted);
}

.tag-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tag-list li {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 196, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(214, 196, 255, 0.08), rgba(141, 101, 230, 0.08)),
    rgba(255, 255, 255, 0.01);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stacked-section {
  display: grid;
  gap: 0.95rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(214, 196, 255, 0.22);
  background: rgba(214, 196, 255, 0.05);
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.45rem 0.8rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.info-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(214, 196, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(23, 15, 39, 0.84), rgba(10, 7, 17, 0.88)),
    rgba(255, 255, 255, 0.01);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  margin-bottom: 0.55rem;
}

.info-card ul,
.workflow-step ul,
.project-card ul,
.contact-list {
  margin: 0;
  padding-left: 1.1rem;
}

.info-card li,
.workflow-step li,
.project-card li {
  margin: 0.35rem 0;
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.workflow-step {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(214, 196, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(187, 160, 251, 0.08), rgba(34, 9, 74, 0.14)),
    rgba(8, 6, 13, 0.7);
  padding: 0.9rem;
  box-shadow: var(--shadow-md);
}

.workflow-step h3 {
  margin-bottom: 0.35rem;
  color: var(--purple-200);
}

.signal-journey {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.journey-sticky {
  position: sticky;
  top: 108px;
  padding: 0.95rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(214, 196, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(14, 11, 24, 0.82), rgba(8, 6, 14, 0.9));
}

.journey-sticky h2 {
  margin: 0.45rem 0 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.journey-sticky p:not(.eyebrow) {
  color: var(--muted);
}

.journey-steps {
  display: grid;
  gap: 0.85rem;
}

.journey-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(214, 196, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(187, 160, 251, 0.07), rgba(34, 9, 74, 0.14)),
    rgba(9, 7, 15, 0.84);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease, border-color 180ms ease;
}

.journey-card.is-active {
  border-color: rgba(214, 196, 255, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(214, 196, 255, 0.08) inset;
}

.journey-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(214, 196, 255, 0.2);
  background: linear-gradient(135deg, rgba(214, 196, 255, 0.08), rgba(141, 101, 230, 0.14));
  color: var(--purple-200);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.journey-card h3 {
  margin: 0.65rem 0 0.35rem;
}

.journey-card p {
  color: var(--muted);
}

.dashboard-card .btn {
  margin-top: 0.8rem;
}

.contact-list li {
  margin: 0.3rem 0;
  color: var(--muted);
}

.contact-list a {
  color: var(--purple-200);
  text-underline-offset: 3px;
}

.muted {
  margin-top: 0.55rem;
  color: var(--muted);
  opacity: 0.85;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-strip-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(214, 196, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(187, 160, 251, 0.12), rgba(34, 9, 74, 0.22)),
    rgba(9, 7, 14, 0.76);
  padding: 0.95rem;
  box-shadow: var(--shadow-md);
}

.metric-strip-card p {
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-strip-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.projects-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  padding: 1.1rem;
}

.project-header h2 {
  margin-top: 0.3rem;
}

.project-card > p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.project-columns {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-columns > div {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid rgba(214, 196, 255, 0.12);
  background: rgba(255, 255, 255, 0.015);
  padding: 0.75rem;
}

.project-columns h3 {
  margin-bottom: 0.3rem;
  color: var(--purple-200);
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.project-tags span {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid rgba(214, 196, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(214, 196, 255, 0.04), rgba(90, 232, 255, 0.04)),
    rgba(255, 255, 255, 0.01);
}

.project-scroll-rail {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1rem;
  align-items: start;
}

.rail-sticky {
  padding: 1rem;
  position: sticky;
  top: 108px;
}

.rail-sticky h2 {
  margin: 0.45rem 0 0.5rem;
}

.rail-sticky p:not(.eyebrow) {
  color: var(--muted);
}

.rail-stack {
  display: grid;
  gap: 0.8rem;
}

.rail-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(214, 196, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(187, 160, 251, 0.1), rgba(34, 9, 74, 0.18)),
    rgba(10, 7, 16, 0.82);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  min-height: 160px;
}

.rail-card.is-active {
  border-color: rgba(214, 196, 255, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(214, 196, 255, 0.06) inset;
}

.rail-card h3 {
  margin-bottom: 0.35rem;
}

.rail-card p {
  color: var(--muted);
}

.cta-panel {
  text-align: left;
}

.site-footer {
  padding: 0.55rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes driftGlow {
  from {
    transform: translate3d(-1.2%, -0.8%, 0) scale(1);
  }
  to {
    transform: translate3d(1.6%, 1.1%, 0) scale(1.04);
  }
}

@keyframes shimmerText {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@keyframes telemetryBreath {
  0%, 100% {
    transform: scaleY(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}

@keyframes heroPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.95;
  }
  50% {
    transform: translateY(-6px) scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .section-grid,
  .signal-journey,
  .project-scroll-rail,
  .cards-3,
  .workflow {
    grid-template-columns: 1fr;
  }

  .journey-sticky,
  .rail-sticky {
    position: static;
  }

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

@media (max-width: 700px) {
  .site-header {
    top: 0;
    border-radius: 20px;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .hero,
  .page-hero,
  .section-grid > .panel,
  .stacked-section,
  .project-card,
  .cta-panel {
    padding: 1rem;
  }

  .metric-grid,
  .hero-mini-stats,
  .project-columns,
  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .panel {
    border-radius: 20px;
  }
}

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

  .background-glow {
    animation: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .panel,
  .btn,
  .journey-card,
  .rail-card {
    transition: none !important;
  }
}
